:root { color-scheme: light; }
.theme-switch { display:flex; flex-shrink:0; gap:3px; padding:4px; border:1px solid var(--line); border-radius:9px; background:var(--soft); }
.theme-switch button { min-height:40px; padding:7px 10px; border:1px solid transparent; border-radius:6px; background:transparent; color:var(--ink); font-size:12px; font-weight:700; white-space:nowrap; }
.theme-switch button[aria-pressed="true"] { background:#fff; color:#075eaf; border-color:#b8ccd9; }
.site-header { gap:16px; }
.site-header nav { gap:20px; margin-right:0; }
html[data-theme="dark"] { color-scheme:dark; --ink:#e3edf6; --muted:#b1c2d3; --blue:#76bdff; --blue-dark:#a0d1ff; --paper:#14273b; --soft:#192f45; --line:#38506a; }
html[data-theme="dark"] body { background:#0b1b2b; }
html[data-theme="dark"] :is(.renewal-section,.paid-plan) { background:#0b1b2b; }
html[data-theme="dark"] :is(.calculator-section,.workflow-section,.free-plan) { background:#112438; }
html[data-theme="dark"] :is(.cost-form,dialog,.float-card,.button-outline) { background:#14273b; border-color:var(--line); }
html[data-theme="dark"] :is(.yen-input,#url-form,.total-fee,.comparison-label,.service-glyph,.line-icon span) { background:#1b344c; border-color:var(--line); color:var(--ink); }
html[data-theme="dark"] :is(.url-controls>input,.template-controls button,.theme-switch button[aria-pressed="true"]) { background:#0b1b2b; border-color:#55738e; color:var(--ink); }
html[data-theme="dark"] .template-controls button[aria-pressed="true"] { background:#76bdff; color:#071c36; }
html[data-theme="dark"] .primary { color:#071c36; }
html[data-theme="dark"] :is(.micro,.hero-footnote p,.art-caption,.art-index,.feature-number,.feature-tail,.field-help,.service-check small,.row-fields>label,.preview-placeholder small,.preview-toolbar p,.preview-warning,.comparison-benefits,.plan-note,.workflow p,.workflow-note,footer>a:last-child,.saving-card p,.float-label,.approve-card div>span) { color:var(--muted); }
html[data-theme="dark"] :is(.text-button,.tag,.dialog-close,.line-icon,.workflow li>span) { color:#a6d5ff; }
html[data-theme="dark"] .tag { border-color:#55738e; }
html[data-theme="dark"] .preview-placeholder { background:#14273b; border-color:#55738e; }
html[data-theme="dark"] .after-sample .comparison-label { background:#20435f; color:#c8e8ff; }
html[data-theme="dark"] .final-cta { background:#19364e; }
html[data-theme="dark"] .hero-art { background:radial-gradient(ellipse,#193b58 0%,#102a40 56%,transparent 72%); }
html[data-theme="dark"] :is(.cost-row,.fee-list p,.workflow li,.extras) { border-color:var(--line); }
html[data-theme="dark"] .error { background:#492923; color:#ffd5c9; border-color:#a16553; }
html[data-theme="dark"] .demo-complete { background:#1e4035; color:#c0efce!important; }
/* The fictional client-site samples retain their own palettes in both themes. */
.site-window,.old-site,.new-site { color-scheme:light; --ink:#152e48; --muted:#627283; --blue:#0876d9; color:#152e48; }
.old-site { color:#586843; }
@media(max-width:1100px) { .site-header { height:auto; min-height:100px; flex-wrap:wrap; padding-block:18px; } .site-header nav { order:3; width:100%; justify-content:center; } }
@media(max-width:800px) { .site-header { gap:12px; } .theme-switch { margin-left:auto; } .site-header>.button { margin-left:auto; } }
@media(max-width:500px) { .site-header .brand img { width:145px; } .theme-switch { width:100%; justify-content:center; } .theme-switch button { flex:1; min-height:44px; } }
