.workflow-settings { max-width: 1400px; margin: 0 auto; padding-bottom: 48px; }
.workflow-settings h2 { margin: 0 0 8px; font-size: 1.75rem; }
.workflow-settings p { color: var(--muted); line-height: 1.65; }
.wf-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; margin: 20px 0; }
.wf-fields label { display: grid; gap: 8px; min-width: 0; font-weight: 700; }
.workflow-settings input:not([type=checkbox]), .workflow-settings select { min-width: 0; width: 100%; min-height: 44px; padding: 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; color: var(--ink); }
.workflow-settings button { min-height: 44px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer; }
.workflow-settings button:disabled { opacity: .55; cursor: default; }
.workflow-settings .primary-action { background: var(--ink); color: var(--paper); }
.wf-layout { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: 24px; align-items: start; }
.wf-list-head, .wf-inline, .wf-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.wf-list-head { justify-content: space-between; }
.wf-template { display: grid; gap: 8px; text-align: left; width: 100%; margin: 8px 0; overflow-wrap: anywhere; }
.wf-template span { font-size: .875rem; color: var(--muted); }
.wf-template.is-active { border-color: var(--ink); background: var(--surface-2); }
.wf-editor { background: var(--surface); padding: 20px; border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.wf-editor > fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.wf-editor legend { font-size: 1.125rem; font-weight: 700; }
.wf-node { border: 1px solid var(--line); margin: 20px 0; padding: 16px; min-width: 0; border-radius: 6px; }
.wf-node legend { font-size: 1rem; padding: 0 6px; }
.wf-node summary { cursor: pointer; min-height: 44px; }
.wf-node .wf-inline { margin-top: 12px; }
.wf-checks { display: flex; flex-wrap: wrap; gap: 12px; }
.wf-checks label { display: flex; align-items: center; min-height: 44px; gap: 8px; }
.wf-checks input { width: 20px; height: 20px; }
.wf-actions { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.wf-error, .wf-check-result { padding: 16px; border-left: 4px solid var(--danger); background: var(--surface-2); margin: 16px 0; overflow-wrap: anywhere; }
.wf-error { color: var(--danger); }
.wf-check-result h3, .wf-check-result h4 { margin: 8px 0; }
.wf-check-result li { margin: 8px 0; line-height: 1.6; }
@media (max-width: 760px) {
  .wf-layout { grid-template-columns: minmax(0, 1fr); }
  .wf-editor, .wf-node { padding: 12px; }
  .workflow-settings { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .wf-actions > button { flex: 1 1 130px; }
}
