/* Shared neutral/orange palette for portal, onboarding, designer and dialogs. */
:root{color-scheme:light;--theme-page:#f7f7f5;--theme-surface:#fff;--theme-quiet:#f0f0ed;--theme-ink:#252525;--theme-muted:#686864;--theme-line:#e1e1dd;--theme-dot:#d8d8d0;--theme-accent:#f97316;--theme-accent-soft:#fff0e5;--theme-accent-ink:#a64c17;--theme-inverse:#252525;--theme-on-inverse:#fff;
--dark-page:#161616;--dark-surface:#202020;--dark-quiet:#292927;--dark-ink:#ededeb;--dark-secondary:#cecec9;--dark-muted:#aaa9a4;--dark-line:#41413d;--dark-strong-line:#73736e;--dark-accent:#f68a48;--dark-accent-soft:#39291e;--dark-accent-ink:#ffae7b;--dark-danger:#ffaaa0;--dark-danger-soft:#42231f}
:root[data-theme=dark]{color-scheme:dark;--theme-page:var(--dark-page);--theme-surface:var(--dark-surface);--theme-quiet:var(--dark-quiet);--theme-ink:var(--dark-ink);--theme-muted:var(--dark-muted);--theme-line:var(--dark-line);--theme-dot:#3b3b37;--theme-accent:var(--dark-accent);--theme-accent-soft:var(--dark-accent-soft);--theme-accent-ink:var(--dark-accent-ink);--theme-inverse:#ededeb;--theme-on-inverse:#202020}
:root{--page:var(--theme-page);--surface:var(--theme-surface);--quiet:var(--theme-quiet);--preview:var(--theme-quiet);--dot:var(--theme-dot);--soft-orange:var(--theme-accent-soft);--orange-ink:var(--theme-accent-ink);--button:var(--theme-inverse);--button-text:var(--theme-on-inverse);--ink:var(--theme-ink);--muted:var(--theme-muted);--line:var(--theme-line);--accent:var(--theme-accent);--orange:var(--theme-accent);--cream:var(--theme-page);--teal:var(--theme-inverse);--green:var(--theme-quiet);--purple:var(--theme-muted)}
.studio-theme-switch{display:inline-flex;flex:0 0 auto;gap:3px;background:var(--theme-quiet);border:1px solid var(--theme-line);padding:3px;border-radius:9px;align-items:center}
.studio-theme-switch button{border:0;border-radius:6px;padding:6px 9px;color:var(--theme-muted);background:transparent;font-family:inherit;font-size:11px;font-weight:500;line-height:1.5;min-height:30px;white-space:nowrap;cursor:pointer;box-shadow:none}
.studio-theme-switch button[aria-pressed=true]{background:var(--theme-surface);color:var(--theme-ink);box-shadow:0 1px 4px #0002}
.studio-theme-switch button:focus-visible{outline:2px solid var(--theme-accent);outline-offset:2px}
.welcome-header-actions{display:flex;align-items:center;gap:16px}.topbar .studio-theme-switch{margin-right:3px}
/* Intentional color pairs: brand logo, orange CTAs, selection states and export controls. */
.brand-logo{background:#fff}.welcome-submit:not(:disabled),.btn-teal,.allocation-bar span:nth-child(3n){color:#171717}.btn-danger{background:#b42318;color:#fff}.toast{background:var(--theme-inverse);color:var(--theme-on-inverse)}.toast .toast-undo{color:light-dark(#ffb37c,#9c400a)}
body,main,.welcome-screen,.canvas-viewport{background-color:var(--theme-page)}.topbar,.canvas-toolbar,.inspector,.statusbar,dialog{background-color:var(--theme-surface)}.sidebar{background:var(--theme-quiet)}
.canvas-viewport,.welcome-screen{background-image:radial-gradient(var(--theme-dot) .8px,transparent .8px)}
#edges text{fill:var(--theme-muted)}#edges path[stroke="#bbb"]{stroke:var(--theme-muted)}#edges #arrow path{fill:var(--theme-muted)}#edges path[stroke="#f97316"]{stroke:var(--theme-accent)}#edges #returnArrow path{fill:var(--theme-accent)}
:root[data-theme=dark] .variant-route-select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23ffae7b' stroke-width='1.5'/%3E%3C/svg%3E")}
@media(max-width:700px){.welcome-header{height:auto;min-height:100px;padding-top:14px;padding-bottom:14px;flex-wrap:wrap;gap:12px}.welcome-header-actions{gap:10px;margin-left:auto}.topbar{height:auto;min-height:68px;flex-wrap:wrap;padding-top:8px;padding-bottom:8px;gap:8px}.top-actions{flex-wrap:wrap;gap:7px}.topbar .breadcrumb{flex:1 0 100%}.studio-theme-switch button{min-height:32px;padding:5px 8px}}

.nav-item[href]{color:var(--theme-ink);text-decoration:none}.canvas-tip{background:var(--theme-surface);color:var(--theme-muted)}
:root[data-theme=dark] .allocation-bar span:nth-child(3n+2){background:#555550;color:#fff}

#edges .step-timing-bg{fill:var(--theme-page)}
