.setup-phases { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; list-style: none; padding: 0; margin: 0 0 20px; }
.setup-phases li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; }
.setup-phases li > span { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--bg); color: var(--muted); }
.setup-phases li.active { border-color: color-mix(in srgb,var(--brand) 45%,var(--line)); background: color-mix(in srgb,var(--brand) 5%,var(--surface)); }
.setup-phases li.active > span { background: var(--brand); color: var(--surface); }
.setup-phases strong { font-size: 13px; display: block; }
.setup-phases small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.6; }
.setup-workspace .setup-tab { min-height: 48px; padding: 10px 12px; }
.setup-tab .icon { width: 16px; height: 16px; flex: none; color: var(--muted); }
.setup-tab.active .icon { color: inherit; }
dialog.setup-editor-dialog { width: min(1040px,calc(100vw - 40px)); max-width: 1040px; padding: 24px; }
.setup-editor-dialog .modal-body, .setup-editor-dialog .dialog-body { overflow: visible; }
.setup-editor-layout { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 20px; align-items: start; }
.setup-editor-main { min-width: 0; display: grid; gap: 16px; }
.setup-editor-section { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: var(--surface); }
.setup-editor-section > header { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.setup-editor-section > header > span { display: grid; place-items: center; width: 25px; height: 25px; flex: none; border-radius: 7px; color: var(--brand); background: color-mix(in srgb,var(--brand) 8%,var(--surface)); font-size: 12px; font-weight: 700; }
.setup-editor-section h3 { font-size: 15px; margin: 0; line-height: 1.6; }
.setup-editor-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.setup-editor-fields > .field:has(textarea), .setup-editor-fields > .setup-field-editor { grid-column: 1 / -1; }
.setup-editor-fields > [hidden], .setup-editor-fields .field[hidden], .setup-options[hidden] { display: none !important; }
.setup-editor-fields .field { min-width: 0; margin: 0; }
.setup-editor-fields .field > span { font-size: 12px; font-weight: 650; }
.setup-editor-fields input, .setup-editor-fields select, .setup-editor-fields textarea { width: 100%; min-width: 0; min-height: 42px; font-size: 13px; }
.setup-editor-fields textarea { min-height: 90px; }
.setup-editor-fields input[readonly] { background: var(--bg); color: var(--ink); }
.setup-control-hint { display: block; font-size: 11px; color: var(--muted); line-height: 1.7; margin-top: 6px; font-weight: 400; }
.setup-editor-summary { border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb,var(--brand) 4%,var(--surface)); padding: 18px; min-width: 0; }
.setup-summary-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--surface); color: var(--brand); margin-bottom: 12px; }
.setup-editor-summary h3 { font-size: 15px; margin: 0 0 12px; }
.setup-editor-summary dl { margin: 0; }
.setup-editor-summary dl > div { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.setup-editor-summary dl > div:last-child { border: 0; }
.setup-editor-summary dt, .setup-editor-summary > p { font-size: 11px; color: var(--muted); line-height: 1.8; }
.setup-editor-summary dd { font-size: 13px; margin: 0; overflow-wrap: anywhere; font-weight: 650; }
.setup-editor-summary > p { border-top: 1px solid var(--line); margin: 14px 0 0; padding-top: 12px; }
.setup-field-preview { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.setup-field-preview label { font-size: 13px; display: block; margin-bottom: 8px; font-weight: 650; }
.setup-field-preview label > span { color: var(--danger,#b53b43); }
.setup-field-preview input, .setup-field-preview select { width: 100%; min-width: 0; min-height: 40px; font-size: 12px; pointer-events: none; }
.setup-inline-note { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; line-height: 1.8; color: var(--muted); margin: 10px 0 0; }
.setup-inline-note .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.setup-options { padding: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.setup-options > p { font-size: 11px; color: var(--muted); margin: 5px 0 12px; line-height: 1.8; }
.setup-choice-row { display: grid; grid-template-columns: 24px minmax(0,1.2fr) minmax(0,1fr) 32px; gap: 8px; align-items: end; margin-bottom: 12px; }
.setup-choice-row label { display: grid; gap: 5px; min-width: 0; }
.setup-choice-row label > span { font-size: 11px; color: var(--muted); }
.setup-choice-row .icon-btn { min-width: 32px; width: 32px; height: 42px; }
.setup-choice-number { align-self: center; padding-top: 20px; font-size: 11px; color: var(--muted); }
.setup-options .btn { min-height: 36px; padding: 8px 12px; font-size: 12px; }
.setup-editor-fields .completion-choices { padding: 12px; border-radius: 9px; }
.setup-editor-fields .completion-choices input { width: auto; min-height: auto; }
.setup-editor-dialog .form-footer { padding-top: 18px; margin-top: 4px; display: flex; gap: 10px; justify-content: flex-end; }
.setup-editor-dialog .form-footer .btn { min-height: 42px; }
.setup-editor-dialog .form-draft-status { margin: 0; font-size: 11px; }
.setup-copy-fields { padding-inline-start: 18px; font-size: 12px; line-height: 1.9; color: var(--muted); }
.setup-flow-summary { border: 1px solid var(--line); background: color-mix(in srgb,var(--brand) 4%,var(--surface)); border-radius: 10px; padding: 14px; }
.setup-flow-summary > strong { font-size: 13px; }
.setup-flow-summary dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 12px 0 0; }
.setup-flow-summary dt { font-size: 11px; color: var(--muted); }
.setup-flow-summary dd { font-size: 12px; font-weight: 650; margin: 5px 0 0; }
.setup-workspace .flow-config-fields { gap: 16px; }
.setup-workspace .flow-config-fields .btn { font-size: 11px; padding: 6px 8px; min-height: 32px; margin-top: 6px; }
.setup-editor-fields :is(input,select,textarea,button):focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
@media(max-width:900px) { .setup-editor-layout { grid-template-columns: minmax(0,1fr); } .setup-editor-summary { padding: 16px; } .setup-editor-summary dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px; } .setup-phases { gap: 8px; } .setup-phases li { padding: 10px; gap: 8px; } }
@media(max-width:600px) { dialog.setup-editor-dialog { width: calc(100vw - 16px); padding: 16px; } .setup-editor-fields { grid-template-columns: minmax(0,1fr); gap: 14px; } .setup-editor-section { padding: 14px; } .setup-editor-layout { gap: 14px; } .setup-phases { grid-template-columns: minmax(0,1fr); } .setup-phases small { margin: 0; } .setup-choice-row { grid-template-columns: 20px minmax(0,1fr) 32px; } .setup-choice-row label:has([data-choice-value]) { grid-column: 2; } .setup-choice-row .icon-btn { grid-column: 3; grid-row: 1 / 3; align-self: center; } .setup-choice-number { padding: 0; } .setup-editor-summary dl { grid-template-columns: minmax(0,1fr); } }
