/* Persistent, keyboard-accessible display switch. No image inversion. */
html{--cn-theme-height:0px;scroll-padding-top:1rem}
.cn-theme-bar{position:static!important;margin:0!important;width:auto!important;min-height:44px;background:transparent!important;color:#173d49!important;border:0!important;box-sizing:border-box!important;font:13px/1.3 system-ui,sans-serif!important;padding:0!important;display:inline-flex!important;align-items:center;flex:0 0 auto}
.cn-theme-inner{margin:0;display:inline-flex;align-items:center;gap:0;min-height:44px}.cn-theme-caption,.cn-theme-bar [data-theme-state]{display:none!important}
.cn-theme-bar .cn-theme-switch{display:inline-flex!important;align-items:center!important;gap:8px!important;margin:0!important;padding:6px 10px!important;min-height:44px!important;width:auto!important;border:1px solid #739a9f!important;border-radius:24px!important;background:#fffdf8!important;color:#173d49!important;box-shadow:none!important;font:700 12px/1.2 system-ui,sans-serif!important;cursor:pointer;flex-shrink:0}.cn-theme-switch:focus-visible{outline:3px solid #bf3f79!important;outline-offset:3px!important}
.cn-theme-fallback{position:sticky!important;top:0;z-index:1200;margin:8px 12px 8px auto!important;display:flex!important;width:fit-content!important}
.cn-unified-header .nav-right>#cn-theme-bar{align-self:center;flex:0 0 auto}
@media(max-width:360px){.cn-theme-bar .cn-theme-switch{font-size:11px!important;gap:6px!important;padding:6px 8px!important}}
.cn-theme-track{position:relative;display:inline-block;width:42px;height:24px;background:#44646d;border-radius:20px}.cn-theme-track>span{position:absolute;width:18px;height:18px;top:3px;left:3px;border-radius:50%;background:white;transition:transform .15s}.cn-theme-switch[aria-checked=true] .cn-theme-track{background:#3dada5}.cn-theme-switch[aria-checked=true] .cn-theme-track>span{transform:translateX(18px)}
@media(max-width:400px){.cn-theme-inner{gap:8px}.cn-theme-caption{font-size:12px}.cn-theme-bar [data-theme-state]{display:none}}
@media(prefers-reduced-motion:reduce){.cn-theme-track>span{transition:none}}
@media screen{
 html:is([data-theme=dark],[data-theme=light]){color-scheme:dark!important;--ink:var(--studio-ink,#f4faff);--paper:var(--studio-card,#0b345a);--cream:var(--studio-card,#0b345a);--muted:var(--studio-muted,#d5eaf7);--navy:var(--studio-ink,#f4faff);--navy2:#0a2948;--teal:var(--studio-blue,#9bd6ff);--teal2:var(--studio-blue,#9bd6ff);--mint:var(--studio-recess,#143b5e);--sky:var(--studio-recess,#143b5e);--soft:var(--studio-paper,#071f39);--line:var(--studio-line,#6388a4);--white:var(--studio-card,#0b345a);--gold:#e0ba86;--green:#94d7ae;--red:#ffafb5;--crm-ink:var(--studio-ink,#f4faff);--crm-teal:var(--studio-blue,#9bd6ff);--crm-mint:var(--studio-recess,#143b5e);--crm-pink:var(--studio-focus,#ffdc60);--crm-line:var(--studio-line,#6388a4);--crm-bg:var(--studio-paper,#071f39);--crm-muted:var(--studio-muted,#d5eaf7);--crm-card:var(--studio-card,#0b345a);--cn-control-bg:var(--studio-control,#143b5e);--cn-control-ink:var(--studio-ink,#f4faff);--cn-control-border:var(--studio-control-line,#82a9c4);--cn-control-hover:#244f74;--cn-control-focus:var(--studio-focus,#ffdc60);--cn-dialog-bg:var(--studio-card,#0b345a);--cn-dialog-shadow:0 24px 80px #0008;background:var(--studio-paper,#071f39);color:var(--studio-ink,#f4faff)}
 html:is([data-theme=dark],[data-theme=light]) body{color:var(--studio-ink,#f4faff)!important}
 html:is([data-theme=dark],[data-theme=light]) :is(.v5-card,.card,.panel,.form-card,.auth-panel,.signin-card,.cn-orgs,.project-card,.completed-card,.case-card,.design-card,.crm-panel,.crm-card,.crm-metric,.crm-stage,.crm-table-wrap,.crm-template-preview,.crm-invite-link,.crm-dialog-head,.wh-card,.wh-help,.wh-return,.cn-menu-links,.dropdown-menu,dialog,[role=dialog],[role=menu],[role=listbox]){background:var(--studio-card,#0b345a)!important;color:var(--studio-ink,#f4faff)!important;border-color:var(--studio-line,#6388a4)!important}
 html:is([data-theme=dark],[data-theme=light]) :is(.hero,.signin-card,.cn-dropdown-nav){background-color:var(--studio-card,#0b345a)!important}
 html:is([data-theme=dark],[data-theme=light]) :is(input:not([type=color]),select,textarea){background-color:var(--studio-control,#143b5e)!important;color:var(--studio-ink,#f4faff)!important;border-color:var(--studio-control-line,#82a9c4)!important}
 html:is([data-theme=dark],[data-theme=light]) :is(input,textarea)::placeholder{color:var(--studio-muted,#d5eaf7)!important;opacity:1}
 html:is([data-theme=dark],[data-theme=light]) :is(a,.text-link,.fine,.crm-small,.crm-muted,.crm-help,.wh-choice-status){color:var(--studio-blue,#9bd6ff)}
 html:is([data-theme=dark],[data-theme=light]) :is(th,.metric,.crm-note,.crm-month-day,.crm-product-line,.scope-note,.status-pill){background:var(--studio-recess,#143b5e)!important;color:var(--studio-ink,#f4faff)!important;border-color:var(--studio-line,#6388a4)!important}
 html:is([data-theme=dark],[data-theme=light]) :is(td,th,fieldset,hr){border-color:var(--studio-line,#6388a4)!important}
 html:is([data-theme=dark],[data-theme=light]) :is(.exceeds,.crm-due,[role=alert],#form-error,#energy-error){color:#ffb1b8!important}
 html:is([data-theme=dark],[data-theme=light]) .within{color:#a3e5bd!important}
 html:is([data-theme=dark],[data-theme=light]) .cn-theme-bar{background:transparent!important;color:var(--studio-ink,#f4faff)!important}
 html:is([data-theme=dark],[data-theme=light]) .cn-theme-bar [data-theme-state]{color:var(--studio-muted,#d5eaf7)!important}
 html:is([data-theme=dark],[data-theme=light]) .cn-theme-bar .cn-theme-switch{background:var(--studio-control,#143b5e)!important;color:var(--studio-ink,#f4faff)!important;border-color:var(--studio-control-line,#82a9c4)!important}
 /* Mark only light surfaces and low-contrast text, leaving photos, maps and drawings intact. */
 html:is([data-theme=dark],[data-theme=light]) body [data-cn-dark-surface]{background:var(--studio-card,#0b345a)!important;color:var(--studio-ink,#f4faff)!important;border-color:var(--studio-line,#6388a4)!important}
 html:is([data-theme=dark],[data-theme=light]) body [data-cn-dark-ink=text]{color:var(--studio-ink,#f4faff)!important}
 html:is([data-theme=dark],[data-theme=light]) body [data-cn-dark-ink=link]{color:var(--studio-blue,#9bd6ff)!important}
 html:is([data-theme=dark],[data-theme=light]) body [data-cn-dark-ink=warning]{color:#ffb1b8!important}
 html:is([data-theme=dark],[data-theme=light]) body [data-cn-dark-ink=success]{color:#a3e5bd!important}
 html:is([data-theme=dark],[data-theme=light]) body :is([aria-pressed=true],[aria-selected=true]){background-color:var(--studio-selected,#23527b)!important;color:var(--studio-ink,#f4faff)!important;border-color:var(--studio-focus,#ffdc60)!important}
 html:is([data-theme=dark],[data-theme=light]) :focus-visible{outline-color:var(--studio-focus,#ffdc60)!important}
}
@media print{.cn-theme-bar{display:none!important}html:is([data-theme=dark],[data-theme=light]),html:is([data-theme=dark],[data-theme=light]) body,html:is([data-theme=dark],[data-theme=light]) body [data-cn-dark-surface]{color-scheme:light!important;background:white!important;color:var(--studio-card,#0b345a)!important}html:is([data-theme=dark],[data-theme=light]) body [data-cn-dark-ink]{color:var(--studio-card,#0b345a)!important}}
@media(forced-colors:active){.cn-theme-switch,.cn-theme-track{border:1px solid ButtonText!important}.cn-theme-switch:focus-visible{outline-color:Highlight!important}}
