.flow-node-studio {
--a3s-bg: var(--flow-bg);
--a3s-panel: var(--flow-surface);
--a3s-panel-soft: var(--flow-paper);
--a3s-panel-strong: var(--flow-surface-strong);
--a3s-ink: var(--flow-text);
--a3s-muted: var(--flow-muted);
--a3s-subtle: var(--flow-faint);
--a3s-faint: var(--flow-faint);
--a3s-line: var(--flow-line);
--a3s-line-strong: var(--flow-line-strong);
--a3s-blue: var(--flow-accent);
--a3s-green: var(--flow-success);
--a3s-red: #c43d47;
--a3s-ui-font: var(--flow-font);
--font-mono: var(--flow-mono);
container: flow-node-studio / inline-size;
margin: 32px 0 48px;
overflow: hidden;
border: 1px solid var(--flow-line-strong);
border-radius: 20px;
background: var(--flow-surface);
box-shadow: 0 24px 54px -40px rgb(15 35 70 / 48%);
color: var(--flow-text);
}
.flow-node-studio :where(button, input, select, textarea) {
font: inherit;
}
.flow-node-studio button {
appearance: none;
border: 0;
cursor: pointer;
}
.flow-node-studio button:focus-visible,
.flow-node-studio a:focus-visible {
outline: 3px solid color-mix(in srgb, var(--flow-accent) 34%, transparent);
outline-offset: 2px;
}
.flow-node-studio__header {
display: flex;
min-height: 112px;
padding: 24px 28px;
border-bottom: 1px solid var(--flow-line);
align-items: center;
justify-content: space-between;
gap: 28px;
}
.flow-node-studio__header > div {
min-width: 0;
}
.flow-node-studio__header h2 {
margin: 0;
color: var(--flow-text);
font-size: clamp(24px, 3vw, 34px);
font-weight: 735;
letter-spacing: -0.035em;
line-height: 1.12;
}
.flow-node-studio__header p {
max-width: 67ch;
margin: 10px 0 0;
color: var(--flow-muted);
font-size: 14px;
line-height: 1.65;
}
.flow-node-studio__header > span {
display: inline-flex;
min-height: 36px;
padding: 0 12px;
border: 1px solid color-mix(in srgb, var(--flow-accent) 22%, var(--flow-line));
border-radius: 9px;
background: var(--flow-accent-soft);
color: var(--flow-accent-strong);
align-items: center;
gap: 7px;
font-family: var(--flow-mono);
font-size: 11px;
font-weight: 690;
white-space: nowrap;
}
.flow-node-studio__body {
display: grid;
min-width: 0;
grid-template-columns: 216px minmax(0, 1fr);
}
.flow-node-studio__catalog {
min-width: 0;
padding: 18px 12px 24px;
border-right: 1px solid var(--flow-line);
background: var(--flow-bg);
}
.flow-node-studio__catalog > strong {
display: block;
padding: 0 9px 10px;
color: var(--flow-faint);
font-family: var(--flow-mono);
font-size: 10px;
font-weight: 690;
letter-spacing: 0.07em;
text-transform: uppercase;
}
.flow-node-studio__catalog [role='tablist'] {
display: grid;
gap: 3px;
}
.flow-node-studio__catalog [role='tab'] {
position: relative;
display: grid;
width: 100%;
min-height: 58px;
padding: 9px 34px 9px 10px;
border: 1px solid transparent;
border-radius: 10px;
background: transparent;
color: var(--flow-text);
grid-template-columns: 1fr;
text-align: left;
transition:
border-color 150ms ease,
background 150ms ease;
}
.flow-node-studio__catalog [role='tab']:hover {
border-color: var(--flow-line);
background: var(--flow-surface);
}
.flow-node-studio__catalog [role='tab'][aria-selected='true'] {
border-color: color-mix(in srgb, var(--flow-accent) 25%, var(--flow-line));
background: var(--flow-accent-soft);
}
.flow-node-studio__catalog [role='tab'] span {
font-size: 13px;
font-weight: 690;
line-height: 1.35;
}
.flow-node-studio__catalog [role='tab'] small {
margin-top: 3px;
color: var(--flow-faint);
font-size: 11px;
line-height: 1.35;
}
.flow-node-studio__catalog [role='tab'] b {
position: absolute;
top: 11px;
right: 10px;
display: grid;
min-width: 20px;
height: 20px;
padding: 0 5px;
border: 1px solid var(--flow-line);
border-radius: 6px;
background: var(--flow-surface);
color: var(--flow-faint);
font-family: var(--flow-mono);
font-size: 10px;
font-weight: 650;
place-items: center;
}
.flow-node-studio__catalog nav {
display: grid;
margin-top: 14px;
padding-top: 14px;
border-top: 1px solid var(--flow-line);
gap: 4px;
}
.flow-node-studio__catalog nav button {
display: flex;
min-width: 0;
min-height: 51px;
padding: 8px 10px;
border: 1px solid transparent;
border-radius: 9px;
background: transparent;
align-items: flex-start;
flex-direction: column;
gap: 3px;
text-align: left;
}
.flow-node-studio__catalog nav button:hover {
border-color: var(--flow-line);
background: var(--flow-surface);
}
.flow-node-studio__catalog nav button[aria-current='true'] {
border-color: var(--flow-accent);
background: var(--flow-surface);
box-shadow: 0 8px 18px -14px rgb(20 86 240 / 70%);
}
.flow-node-studio__catalog nav span {
color: var(--flow-text);
font-size: 12px;
font-weight: 680;
line-height: 1.35;
}
.flow-node-studio__catalog nav code {
max-width: 100%;
padding: 0;
overflow: hidden;
border: 0;
background: transparent;
color: var(--flow-faint);
font-family: var(--flow-mono);
font-size: 9px;
line-height: 1.35;
text-overflow: ellipsis;
white-space: nowrap;
}
.flow-node-studio__workspace {
display: grid;
min-width: 0;
padding: 18px;
background: var(--flow-paper);
gap: 18px;
grid-template-columns: minmax(280px, 1fr) minmax(360px, 400px);
}
.flow-node-studio__canvas,
.flow-node-studio__panel {
min-width: 0;
overflow: hidden;
border: 1px solid var(--flow-line);
border-radius: 15px;
background: var(--flow-surface);
}
.flow-node-studio__canvas {
display: flex;
min-height: 680px;
flex-direction: column;
}
.flow-node-studio__canvas > header,
.flow-node-studio__canvas > footer,
.flow-node-studio__panel-label {
display: flex;
min-height: 46px;
padding: 0 15px;
border-bottom: 1px solid var(--flow-line);
color: var(--flow-muted);
align-items: center;
justify-content: space-between;
gap: 12px;
font-size: 11px;
font-weight: 680;
}
.flow-node-studio__canvas > header small {
display: inline-flex;
color: var(--flow-success);
align-items: center;
gap: 5px;
font-size: 10px;
font-weight: 620;
}
.flow-node-studio__canvas-body {
position: relative;
display: flex;
min-width: 0;
flex: 1 1 auto;
padding: 48px 24px;
overflow: hidden;
background-color: #f9fbff;
background-image: radial-gradient(circle, #cad5e5 1px, transparent 1px);
background-size: 20px 20px;
align-items: center;
justify-content: center;
gap: 12px;
}
.flow-node-studio__canvas-body .a3s-form-workflow-node-preview {
position: relative;
z-index: 1;
flex: 0 1 280px;
}
.flow-node-studio__ghost {
display: grid;
width: 92px;
min-width: 72px;
min-height: 58px;
padding: 8px;
border: 1px dashed var(--flow-line-strong);
border-radius: 11px;
background: rgb(255 255 255 / 82%);
color: var(--flow-faint);
font-size: 10px;
text-align: center;
place-items: center;
}
.flow-node-studio__arrow {
flex: 0 0 auto;
color: var(--flow-border-strong);
}
.flow-node-studio__canvas > footer {
border-top: 1px solid var(--flow-line);
border-bottom: 0;
}
.flow-node-studio__canvas > footer span {
display: inline-flex;
min-width: 0;
align-items: center;
gap: 7px;
}
.flow-node-studio__canvas > footer code {
max-width: 180px;
padding: 2px 5px;
overflow: hidden;
border: 1px solid var(--flow-line);
border-radius: 5px;
background: var(--flow-bg);
color: var(--flow-accent-strong);
font-family: var(--flow-mono);
font-size: 9px;
text-overflow: ellipsis;
white-space: nowrap;
}
.flow-node-studio__canvas > footer a {
display: inline-flex;
color: var(--flow-accent-strong);
align-items: center;
gap: 5px;
text-decoration: none;
white-space: nowrap;
}
.flow-node-studio__panel {
min-height: 680px;
background: var(--flow-bg);
}
.flow-node-studio__panel-label {
justify-content: flex-start;
background: var(--flow-surface);
}
.flow-node-studio__panel > .a3s-form-flow-node-panel {
width: 100%;
height: 632px;
max-height: 632px;
border: 0;
border-radius: 0;
box-shadow: none;
}
.flow-node-studio__sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
}
@container flow-node-studio (max-width: 1040px) {
.flow-node-studio__workspace {
grid-template-columns: 1fr;
}
.flow-node-studio__canvas {
min-height: 470px;
}
.flow-node-studio__panel,
.flow-node-studio__panel > .a3s-form-flow-node-panel {
min-height: 620px;
height: 620px;
max-height: 620px;
}
}
@container flow-node-studio (max-width: 720px) {
.flow-node-studio__header {
min-height: 0;
padding: 22px 20px;
align-items: flex-start;
flex-direction: column;
}
.flow-node-studio__body {
grid-template-columns: 1fr;
}
.flow-node-studio__catalog {
padding: 12px;
border-right: 0;
border-bottom: 1px solid var(--flow-line);
}
.flow-node-studio__catalog > strong {
display: none;
}
.flow-node-studio__catalog [role='tablist'] {
display: flex;
padding-bottom: 5px;
overflow-x: auto;
gap: 6px;
scrollbar-width: thin;
}
.flow-node-studio__catalog [role='tab'] {
min-width: 142px;
}
.flow-node-studio__catalog nav {
display: flex;
padding-bottom: 3px;
overflow-x: auto;
}
.flow-node-studio__catalog nav button {
min-width: 154px;
}
.flow-node-studio__workspace {
padding: 12px;
}
.flow-node-studio__canvas-body {
padding: 40px 14px;
}
.flow-node-studio__ghost,
.flow-node-studio__arrow {
display: none;
}
}
@container flow-node-studio (max-width: 460px) {
.flow-node-studio {
border-right: 0;
border-left: 0;
border-radius: 0;
}
.flow-node-studio__header h2 {
font-size: 25px;
}
.flow-node-studio__workspace {
padding: 8px;
}
.flow-node-studio__canvas > header small {
display: none;
}
.flow-node-studio__canvas > footer {
min-height: 74px;
align-items: flex-start;
flex-direction: column;
justify-content: center;
}
.flow-node-studio__panel,
.flow-node-studio__panel > .a3s-form-flow-node-panel {
min-height: 660px;
height: 660px;
max-height: 660px;
}
}
@media (prefers-reduced-motion: reduce) {
.flow-node-studio *,
.flow-node-studio *::before,
.flow-node-studio *::after {
scroll-behavior: auto !important;
transition-duration: 0.01ms !important;
}
}
.flow-node-reference {
color: var(--flow-text);
}
.flow-node-reference__lead {
margin: 8px 0 32px;
padding: 18px 20px;
border: 1px solid var(--flow-line);
border-radius: 12px;
background: var(--flow-surface);
color: var(--flow-text) !important;
font-size: 16px;
line-height: 1.75;
}
.flow-node-reference__contract {
display: grid;
margin: 18px 0 28px;
overflow: hidden;
border: 1px solid var(--flow-line);
border-radius: 12px;
background: var(--flow-surface);
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.flow-node-reference__contract > div {
min-width: 0;
padding: 15px 17px;
}
.flow-node-reference__contract > div:nth-child(even) {
border-left: 1px solid var(--flow-line);
}
.flow-node-reference__contract > div:nth-child(n + 3) {
border-top: 1px solid var(--flow-line);
}
.flow-node-reference__contract dt {
margin-bottom: 5px;
color: var(--flow-faint);
font-size: 11px;
font-weight: 660;
}
.flow-node-reference__contract dd {
margin: 0;
color: var(--flow-text);
font-size: 13px;
font-weight: 620;
overflow-wrap: anywhere;
}
.flow-node-reference__contract code {
font-family: var(--flow-mono);
font-size: 11px;
}
.flow-node-reference__table-wrap {
width: 100%;
margin: 16px 0 28px;
overflow-x: auto;
border: 1px solid var(--flow-line);
border-radius: 12px;
background: var(--flow-surface);
}
.flow-node-reference__table-wrap table {
width: 100%;
min-width: 680px;
margin: 0;
border: 0;
border-collapse: collapse;
font-size: 12px;
}
.flow-node-reference__table-wrap :is(th, td) {
min-width: 120px;
padding: 12px 14px;
border: 0;
border-bottom: 1px solid var(--flow-line);
text-align: left;
vertical-align: top;
}
.flow-node-reference__table-wrap th {
background: var(--flow-bg);
color: var(--flow-faint);
font-size: 10px;
font-weight: 700;
letter-spacing: 0.04em;
}
.flow-node-reference__table-wrap tbody tr:last-child td {
border-bottom: 0;
}
.flow-node-reference__table-wrap td:first-child {
min-width: 148px;
}
.flow-node-reference__table-wrap td code {
padding: 2px 5px;
border: 1px solid var(--flow-line);
border-radius: 5px;
background: var(--flow-bg);
color: var(--flow-accent-strong);
font-family: var(--flow-mono);
font-size: 10px;
overflow-wrap: anywhere;
}
.flow-node-reference__table-wrap td small {
display: block;
margin-top: 5px;
color: var(--flow-faint);
font-size: 10px;
line-height: 1.5;
}
.flow-node-reference__table-wrap td > span {
display: block;
color: var(--flow-muted);
line-height: 1.55;
}
.flow-node-reference__value {
display: inline-block;
max-width: 260px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.flow-node-reference__nested {
margin: 28px 0;
}
.flow-node-reference__nested h3 {
margin-bottom: 0;
color: var(--flow-text);
font-size: 16px;
font-weight: 690;
}
.flow-node-reference > .flow-node-reference__code {
margin-block: 1.5rem 2rem;
}
.flow-node-reference > ul {
padding: 16px 20px 16px 38px;
border: 1px solid var(--flow-line);
border-radius: 12px;
background: var(--flow-surface);
}
.flow-node-reference > ul li + li {
margin-top: 7px;
}
@media (max-width: 640px) {
.flow-node-reference__contract {
grid-template-columns: 1fr;
}
.flow-node-reference__contract > div:nth-child(even) {
border-left: 0;
}
.flow-node-reference__contract > div + div {
border-top: 1px solid var(--flow-line);
}
.flow-node-reference__lead {
padding: 16px;
font-size: 15px;
}
}