:root{color-scheme:light;--theme-bg:#eee9df;--theme-fg:#0e0e0d;--theme-surface:#e3dccf;--theme-card:#f7f3eb;--theme-muted:#514d46;--theme-border:#aaa69b}
:root[data-theme=dark]{color-scheme:dark;--theme-bg:#111110;--theme-fg:#eee9df;--theme-surface:#20201e;--theme-card:#252522;--theme-muted:#c7c1b6;--theme-border:#666257;--line:#57534b}
/* Keep the footer surface and its inherited link text in the same palette. */
.site-foot{background:var(--theme-card);color:var(--theme-fg)}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex-shrink:0;min-height:44px;min-width:100px;padding:8px 14px;border:1px solid var(--theme-border);border-radius:999px;background:var(--theme-bg);color:var(--theme-fg);font:700 14px/1.4 var(--sans,Arial,sans-serif);letter-spacing:0;cursor:pointer}.theme-toggle:hover{border-color:#f07d00}.theme-toggle:focus-visible{outline:3px solid #986cff;outline-offset:4px}.theme-toggle [data-theme-icon]{color:#9a4d00;font-size:20px;line-height:1}.theme-toggle[aria-checked=true] [data-theme-icon]{color:#f07d00}.theme-toggle[hidden]{display:none!important}.digital-site .site-head{flex-wrap:wrap}.digital-site .site-head>.theme-toggle{margin-left:0}.demo-strip{align-items:center}.demo-strip>.theme-toggle{margin-left:auto}.wrap>header{flex-wrap:wrap}
html[data-theme=dark],html[data-theme=dark] body{background:var(--theme-bg);color:var(--theme-fg)}
[data-theme=dark] .site-head,[data-theme=dark] .product-page .site-head{background:var(--theme-bg);color:var(--theme-fg)}
[data-theme=dark] .product-hero{background:#231b12;color:var(--theme-fg);border-bottom:1px solid #6b4420}
[data-theme=dark] .product-hero .section__kicker{color:#ff9d38}
[data-theme=dark] .button--dark{background:#f07d00;color:#0e0e0d;border-color:#f07d00}
[data-theme=dark] .button--ghost{border-color:#a59f92;color:#eee9df}
[data-theme=dark] .button--orange{color:#0e0e0d}
[data-theme=dark] .digital-nav a:hover,[data-theme=dark] .digital-link:hover{color:#ffac52}
[data-theme=dark] .product-inquiry,[data-theme=dark] .demo-intro,[data-theme=dark] .print-home,[data-theme=dark] .print-brief{background:var(--theme-surface);color:var(--theme-fg)}
[data-theme=dark] .digital-pair,[data-theme=dark] .digital-pair article+article,[data-theme=dark] .digital-approach,[data-theme=dark] .print-paths,[data-theme=dark] .print-paths article+article,[data-theme=dark] .print-home-list>a{border-color:var(--theme-border)}
[data-theme=dark] .product-features article{border-color:#f07d00}
[data-theme=dark] .lead p:last-child,[data-theme=dark] .pilot-note,[data-theme=dark] .print-home-list>p{color:var(--theme-muted)}
[data-theme=dark] .pilot-steps li:before{color:#ff9d38}
[data-theme=dark] .legal-copy{color:var(--theme-fg)}
[data-theme=dark] .legal-draft{background:#332718;color:#f7e7ca}
[data-theme=dark] .launch-form,[data-theme=dark] .analytics-choice{background:var(--theme-surface);color:var(--theme-fg);border-color:var(--theme-border)}
[data-theme=dark] .launch-form input,[data-theme=dark] .launch-form select,[data-theme=dark] .launch-form textarea{background:var(--theme-bg);color:var(--theme-fg);border-color:#888174}
[data-theme=dark] .launch-form button,[data-theme=dark] .analytics-choice button,[data-theme=dark] .analytics-preferences{background:#f07d00;color:#0e0e0d;border-color:#f07d00}
[data-theme=dark] .skull-wrap img{filter:drop-shadow(0 0 1px #eee9df) drop-shadow(0 0 20px #eee9df22)}
[data-theme=dark] .hero-c img{opacity:.3;filter:drop-shadow(0 0 1px #eee9df)}
[data-theme=dark] .wrap>header .brand{background:#eee9df;padding:8px 12px}
[data-theme=dark] .hero-c h1 span{color:#f07d00}
/* StudioPilot demo: the shared preference also covers forms and interactive states. */
[data-theme=dark] .workspace{--card:#252522;color:var(--theme-fg)}
[data-theme=dark] .workspace button:not(.primary-button):not(.theme-toggle),[data-theme=dark] .workspace input,[data-theme=dark] .workspace select{color:var(--theme-fg)}
[data-theme=dark] .workspace .demo-strip{color:#0e0e0d}
[data-theme=dark] .workspace .eyebrow,[data-theme=dark] .page-heading p:last-child,[data-theme=dark] .brand-note p,[data-theme=dark] .stats small,[data-theme=dark] .widget summary,[data-theme=dark] .calendar-hint,[data-theme=dark] .muted,[data-theme=dark] .note-meta,[data-theme=dark] .note p,[data-theme=dark] .customer-list small,[data-theme=dark] .try-steps p{color:var(--theme-muted)}
[data-theme=dark] .brand-note,[data-theme=dark] .weekday,[data-theme=dark] .feedback,[data-theme=dark] .storage-notice,[data-theme=dark] .day small{background:var(--theme-surface);color:var(--theme-fg)}
[data-theme=dark] .segments button,[data-theme=dark] .widget-tools button{background:var(--theme-surface)}
[data-theme=dark] .segments button[aria-pressed=true],[data-theme=dark] .edit-button[aria-pressed=true]{background:#f07d00;color:#0e0e0d!important}
[data-theme=dark] .day:hover,[data-theme=dark] .appointment-row:hover,[data-theme=dark] .customer-appointment:hover{background:#39362f}
[data-theme=dark] .day[aria-pressed=true]{background:#382918}
[data-theme=dark] .customer-list li summary,[data-theme=dark] .text-button{color:var(--theme-fg)}
[data-theme=dark] dialog{background:var(--theme-card);color:var(--theme-fg);border-color:var(--theme-border)}
[data-theme=dark] dialog input,[data-theme=dark] dialog select{background:var(--theme-bg);color:var(--theme-fg)}
[data-theme=dark] dialog button:not(.primary-button){color:var(--theme-fg)}
[data-theme=dark] .form-error,[data-theme=dark] .danger{color:#ff9f8e!important}
[data-theme=dark] .stats>div,[data-theme=dark] .demo-footer,[data-theme=dark] .edit-button,[data-theme=dark] .form-actions button{border-color:var(--theme-border)}
@media(max-width:1000px){.digital-site .site-head{gap:16px}.digital-site .digital-nav{gap:16px}.digital-site .site-head>.theme-toggle{min-width:90px}}
@media(max-width:600px){.digital-site .site-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px 10px}.digital-site .site-head>.brand{grid-column:1;grid-row:1}.digital-site .site-head>.theme-toggle{grid-column:2;grid-row:1;min-width:90px;padding:8px 10px}.digital-site .site-head>.digital-nav{grid-column:1/-1;grid-row:2;justify-content:space-between;width:100%;gap:12px}.demo-strip>.theme-toggle{margin-left:0;align-self:flex-start}.theme-toggle{min-height:44px}}
