/* A quiet, keyboard-accessible control that never obscures modal dialogs. */
.theme-toggle{position:fixed;left:max(18px,env(safe-area-inset-left));bottom:max(18px,env(safe-area-inset-bottom));z-index:80;display:grid;place-items:center;width:46px;height:46px;padding:11px;border:1px solid #d0cbdc;border-radius:50%;background:#f8f6ff;color:#252731;box-shadow:0 5px 22px #16182324;opacity:.62;cursor:pointer;transition:opacity .2s,transform .2s;touch-action:manipulation}
.theme-toggle:hover,.theme-toggle:focus-visible{opacity:1;transform:translateY(-2px)}.theme-toggle:focus-visible{outline:3px solid #8270b6;outline-offset:4px}.theme-toggle svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.theme-sun{display:none}html[data-theme=dark] .theme-moon{display:none}html[data-theme=dark] .theme-sun{display:block}html[data-theme=dark] .theme-toggle{background:#e9e3fb;color:#252731;border-color:#b5a8d5}
@media(hover:none){.theme-toggle{opacity:.9}}
@media(prefers-reduced-motion:reduce){.theme-toggle{transition:none}.theme-toggle:hover,.theme-toggle:focus-visible{transform:none}}
@media print{.theme-toggle{display:none}}
/* Shared tokens also cover the older systems and resource pages. */
html[data-theme=dark],html[data-theme=dark] body,html[data-theme=dark] .rose-shell{
 color-scheme:dark;--ink:#f2eff8;--muted:#c2c2d2;--accent:#d2c1f2;--line:#444554;--line-strong:#626274;--edge:#444554;--glass:linear-gradient(135deg,#292b37,#222430);--shadow:inset 0 1px 0 #ffffff0c,0 20px 60px -35px #000a;--bg:#171923;--bg-wash:#1e202b;--card:#252733;--text-main:#f2eff8;--text-soft:#c2c2d2;--rose-bg:#171923;--rose-paper:#252733;--rose-ink:#f2eff8;--rose-soft:#c2c2d2;--rose-gold:#d2c1f2;--rose-line:#444554;
}
html[data-theme=dark] body,html[data-theme=dark] .rose-shell{background:radial-gradient(ellipse at 95% 5%,#30294155,transparent 35%),radial-gradient(ellipse at 0 45%,#213b3550,transparent 35%),#171923;color:var(--ink)}
html[data-theme=dark] :is(h1,h2,h3,h4,h5,h6,strong,label,summary){color:var(--ink)}
html[data-theme=dark] :is(.premium em,.eyebrow,.kicker,.legacy-portfolio .kicker,.card-link,.flow-detail-type,.flow-dialog dt,.support-heading){color:#d2c1f2}
html[data-theme=dark] :is(.premium-nav,.premium-nav.scrolled,.industry-menu>div){background:#222430f5;border-color:#444554;box-shadow:0 12px 35px -20px #000a}
html[data-theme=dark] :is(.premium-nav nav a:hover,.premium-nav nav a[aria-current],.underlink:hover){color:#e2d2ff}
html[data-theme=dark] .industry-menu>div a:hover{background:#363348}
html[data-theme=dark] .brand img{background:#f7f3ed;border-radius:9px;padding:3px}
html[data-theme=dark] :is(.premium-nav .nav-contact,.pill.dark,.primary-btn,.jump,.new-note,.publish,.studio-actions .publish){background:#d9c9f2;border-color:#d9c9f2;color:#241c33}
html[data-theme=dark] :is(.primary-btn:hover,.primary-btn:focus-visible,.reset-btn:hover){background:#eee4ff;color:#241c33}
html[data-theme=dark] :is(.pill.light,.nav-toggle,.skip-link,.back-btn,.secondary-btn,.tool-pause,.reset-btn,.flow-motion,.flow-tool,dialog button,.studio-actions a,.studio-actions button){background:#303240;color:var(--ink);border-color:#5a5b70}
html[data-theme=dark] :is(.back-btn:hover,.secondary-btn:hover,.tool-pause:hover){background:#414354;color:var(--ink)}
/* Glass panels, both new and retained project / resource interfaces. */
html[data-theme=dark] :is(.dashboard,.floating-card,.mini-stats>div,.service-card,.evidence-band,.contact-panel,.workflow-demo,.demo-output,.legacy-portfolio .opening,.legacy-portfolio .index,.cover-proof,.stage,.flow-shell,.evidence-card,.report-note,.group,.work-feature,.support-card,.automation-extra,.orgboard-case,.tool-categories,.post-card,.empty-note,.card,.mini-card,.copy-source,.systems-sidebar,.roles-sidebar,.role-card,.canvas-dropzone,.result-panel,.choice,.question-item,.mini-note,.badge,.drag-card,.canvas-area,.canvas-slot,.result-card,.agenda-output,.flow-step,.studio-sidebar,.editor-page,.studio-topbar,.editor-toolbar,.studio-list button.selected,.studio-access-denied){background:var(--glass);color:var(--ink);border-color:#444554;box-shadow:var(--shadow)}
html[data-theme=dark] .tool-strip{background:var(--glass)!important;border-color:#444554!important}
html[data-theme=dark] :is(.service-icon,.work-icon,.flow-symbol,.dash-mark){color:#e1d2fc;background:#3b344d;border-color:#6a5d83;box-shadow:inset 0 1px 0 #ffffff15}
html[data-theme=dark] .service-card:nth-child(3n+2) .service-icon{background:#294237;color:#c3e7ce}
html[data-theme=dark] .service-card:nth-child(3n) .service-icon{background:#2d3e55;color:#cbdffd}
html[data-theme=dark] :is(.mini-stats span,.dash-top,.dash-bottom,.demo-label,.floating-card span,.premium-footer small,.flow-node-top,.flow-node-open,.tool-category h3){color:#c2c2d2}
html[data-theme=dark] .floating-card svg{background:#294237;color:#c3e7ce}
html[data-theme=dark] .dash-top{border-color:#444554}
html[data-theme=dark] .orb-one{background:radial-gradient(circle at 28% 25%,#b6a4d4,#605377 48%,#302a43 80%);box-shadow:inset -25px -20px 35px #2a203b80,20px 30px 80px #50436240}
html[data-theme=dark] .orb-two{background:radial-gradient(circle at 30% 25%,#a6c6b7,#4a6e60 45%,#263e34);box-shadow:10px 15px 40px #2c4a3a55}
html[data-theme=dark] .lavender{background:linear-gradient(120deg,#373046,#292534)}html[data-theme=dark] .sage{background:linear-gradient(120deg,#2e4138,#26342e)}
html[data-theme=dark] .portrait-ring{background:linear-gradient(135deg,#2a4236,#423953);border-color:#70647e;box-shadow:inset 0 0 0 15px #ffffff08}
html[data-theme=dark] .portrait-caption{background:#292b37ed;color:#f2eff8;border-color:#5a5b70}
/* Photo overlays and screenshot pixels retain their intended colors. */
html[data-theme=dark] .industry-copy :is(h3,p){color:#fff}
html[data-theme=dark] .industry-tag{color:#e5e7ee}
html[data-theme=dark] :is(.tool-list img,.tool-category img,.stack-logos img,.mini-route img){background:#f7f7fa;border-radius:5px;padding:2px}
html[data-theme=dark] :is(.proof a,.feature-proof,.orgboard-case a.zoom){background:#20232e;border-color:#4d5266}
html[data-theme=dark] :is(.proof figcaption,.orgboard-overview figcaption,.visual-caption){color:#c2c2d2}
html[data-theme=dark] :is(.support-visual,.mini-route,.stack-logos span,.agenda-sketch,.folder-sketch span,.org-sketch span){background:#303240;color:#f2eff8;border-color:#55586d;box-shadow:0 5px 15px -10px #0008}
html[data-theme=dark] .org-sketch span:first-child{background:#d9c9f2;color:#241c33}
html[data-theme=dark] .org-sketch:before,html[data-theme=dark] .org-sketch:after{border-color:#9e96b4}
html[data-theme=dark] .folder-sketch svg{stroke:#d2c1f2}html[data-theme=dark] .agenda-sketch i{color:#b3d9c0}
html[data-theme=dark] :is(.flow-controls,.flow-panel-foot){background:#20222d;border-color:#444554}
html[data-theme=dark] .flow-node{background:linear-gradient(135deg,#30323f,#252733);color:var(--ink);border-color:#626074;box-shadow:inset 0 1px 0 #ffffff0c,0 8px 22px -15px #0009}
html[data-theme=dark] .flow-node[data-kind=handoff]{background:#283e34;border-color:#627f6a}html[data-theme=dark] .flow-node[data-kind=decision]{background:#41372d;border-color:#887252}
html[data-theme=dark] .flow-node[data-kind=handoff] .flow-symbol{color:#c3e7ce;background:#304e3e}
html[data-theme=dark] .flow-node:hover .flow-symbol,html[data-theme=dark] .flow-node:focus-visible .flow-symbol{background:#514463;color:#f5edff;box-shadow:0 0 18px #d1b3ff25}
html[data-theme=dark] :is(.flow-tabs button[aria-selected=true],.demo-steps button[aria-pressed=true],.tag-filter a.active,.tag-filter a:hover){background:#d9c9f2;color:#241c33;border-color:#d9c9f2}
html[data-theme=dark] :is(.flow-tabs button:hover:not([aria-selected=true]),.demo-steps button){background:#303240;color:#f2eff8;border-color:#626074}
html[data-theme=dark] .flow-wire{stroke:#aaa0bf}html[data-theme=dark] .flow-dot{stroke:#cfb4ff}html[data-theme=dark] .flow-wire-label rect{fill:#292b37;stroke:#626074}html[data-theme=dark] .flow-wire-label text{fill:#e2d2ff}
html[data-theme=dark] :is(dialog,dialog.flow-dialog){background:#252733;color:#f2eff8;border-color:#626074;box-shadow:0 30px 90px #0009}html[data-theme=dark] dialog::backdrop{background:#090b15c2}html[data-theme=dark] dialog img{background:#1c1e28}
html[data-theme=dark] :is(input,textarea,select,.tags-field input,.date-row input){background:#20222d;color:#f2eff8;border-color:#626074}html[data-theme=dark] :is(input,textarea)::placeholder{color:#b2aec3}
html[data-theme=dark] :is(.title-input,.excerpt-input){background:transparent;color:#f2eff8}
html[data-theme=dark] :is(.sidebar-link:hover,.sidebar-link:focus-visible,.sidebar-link[aria-current=page],.studio-filters button.active,.editor-toolbar button:hover,.photo-button:hover){background:#373449;color:#f2eff8}
html[data-theme=dark] :is(.rule-box,.result-action,.canvas-badge){background:#3b344d;color:#f2eff8}html[data-theme=dark] :is(.system-card pre,.article-body pre,.article-body code){background:#20222d;color:#e7dafb}
html[data-theme=dark] .section-divider{background:linear-gradient(90deg,#626074,#44455422)}html[data-theme=dark] .studio-shell{background:#171923;color:#f2eff8}html[data-theme=dark] .studio-actions .delete-action{color:#ffb9b4}
html[data-theme=dark] .rose-shell .article-body figure:has(img[src^="/images/blog/"]){background:#292b37;border-color:#444554}
html[data-theme=dark] :is(a,button,summary,input,select,textarea):focus-visible{outline:3px solid #c5a4ff;outline-offset:4px}
html[data-theme=dark] ::selection{background:#d9c9f2;color:#241c33}
@media(max-width:860px){html[data-theme=dark] .premium-nav nav.open{background:#222430;border-color:#444554}}
