.theme-switch{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:7px 10px;min-height:40px;white-space:nowrap;font-size:10px;border:1px solid #83a193;color:#fff6e9;background:transparent;cursor:pointer}.theme-switch-track{display:block;width:35px;height:20px;border-radius:20px;background:#94a89c;position:relative}.theme-switch-track::after{content:'';position:absolute;width:14px;height:14px;border-radius:50%;background:#fff9ed;top:3px;left:3px;transition:transform .15s}.theme-switch[aria-checked=true] .theme-switch-track{background:#4fa18a}.theme-switch[aria-checked=true] .theme-switch-track::after{transform:translateX(15px)}.theme-switch:focus-visible{outline:3px solid #d6b47b;outline-offset:4px}
@media screen{
 :root[data-theme=dark]{--cream:#101914;--paper:#19251f;--ink:#e7eee7;--muted:#b2c3b6;--line:#35483c;--teal:#80d2ba;--gold:#c9a66c;color-scheme:dark}
 [data-theme=dark] header{background:#0a2c22;color:#fff5e7}
 [data-theme=dark] .brand-lockup,[data-theme=dark] .brand-lockup>span,[data-theme=dark] header>span>a{color:#fff5e7}
 [data-theme=dark] button,[data-theme=dark] .button-link,[data-theme=dark] .actions a{background:#245743;border-color:#4e8167;color:#fff7e9}
 [data-theme=dark] button:hover:not(:disabled),[data-theme=dark] .button-link:hover{background:#326f55;color:#fff7e9}
 [data-theme=dark] .theme-switch{background:transparent;border-color:#83a193}
 [data-theme=dark] .studio-layout aside input{background:#24332a;color:var(--ink)}
 [data-theme=dark] .workflow-card h3,[data-theme=dark] .workflow-card summary,[data-theme=dark] .request-record .next-action{color:#d4e8d9}
 [data-theme=dark] .studio-nav button{background:transparent;color:var(--ink)}
 [data-theme=dark] .studio-nav button[aria-pressed=true]{background:#2b5944;color:#fff7e9;border-color:#4e8167}
 [data-theme=dark] .studio-nav button:hover:not(:disabled){background:#284c39;color:#fff7e9}
 [data-theme=dark] .welcome-panel{background:linear-gradient(135deg,#0c372a,#163b2a);color:#fff7e9}
 [data-theme=dark] .welcome-panel h2{color:#fff7e9}
 [data-theme=dark] .summary,[data-theme=dark] .quote-summary{background:#20392b}
 [data-theme=dark] .notice{background:#3e3420;color:#eddfc7}
 [data-theme=dark] .request-badges span{background:#293f31;color:#d5eadb}
 [data-theme=dark] .option-row{border-color:var(--line)}
 [data-theme=dark] input[type=checkbox],[data-theme=dark] input[type=radio]{accent-color:#74c69c}
 [data-theme=dark] .portal-metrics button{background:transparent;color:#b4e3cd;border:0}
 [data-theme=dark] .portal-metrics button:hover:not(:disabled){background:transparent;color:#d7f6e7}
 [data-theme=dark] .client-record-tabs button,[data-theme=dark] .studio-layout .stage-filters button{background:transparent;color:var(--ink);border-color:var(--line)}
 [data-theme=dark] .client-record-tabs button[aria-selected=true],[data-theme=dark] .studio-layout .stage-filters button[aria-pressed=true]{background:#2b5944;color:#fff7e9;border-color:#4e8167}
 [data-theme=dark] .client-record-tabs button:hover:not(:disabled),[data-theme=dark] .studio-layout .stage-filters button:hover:not(:disabled){background:#284c39;color:#fff7e9}
 [data-theme=dark] .workflow-badge{background:#314331;color:#d8e6da;border-color:#52705d}
 [data-theme=dark] .workflow-badge.stage-attention{background:#4f3b23;color:#f1d69d;border-color:#866d45}
 [data-theme=dark] .draft-hint{background:#21392a}
 [data-theme=dark] .settings-actions button+button,[data-theme=dark] .preview-actions .draft-download{background:transparent;color:#d3e9db;border-color:#6d9580}
 [data-theme=dark] .send-readiness .needs-review>span:first-child{color:#e2c391}
 [data-theme=dark] .document-preview{background:#fffcf5;color:#163b33;border-color:#b9c7b8}
 [data-theme=dark] .document-preview h2,[data-theme=dark] .document-preview h3,[data-theme=dark] .document-preview .signature{color:#073c34}
}
@media(max-width:600px){header>span{gap:7px;flex-wrap:wrap;justify-content:flex-end}.theme-switch{font-size:9px;gap:5px;min-height:36px;padding:5px 7px}.theme-switch-track{width:32px}.theme-switch[aria-checked=true] .theme-switch-track::after{transform:translateX(12px)}}
@media(prefers-reduced-motion:reduce){.theme-switch-track::after{transition:none}}

/* Owner-supplied wordmark, preserved without redrawing. */
.brand-lockup .brand-wordmark,.brand .brand-wordmark{display:block;width:190px;height:auto;max-width:none;object-fit:contain;border-radius:4px}.command-brand{min-width:0}.brand .brand-wordmark{width:140px}.brand .command-brand small{font-size:9px;letter-spacing:2px;margin-top:8px}@media(max-width:600px){.brand-lockup .brand-wordmark{width:145px}.brand-lockup{gap:7px}}

header .brand-lockup>img.brand-wordmark{width:190px!important;height:auto!important;max-height:none!important;flex-shrink:0}@media(max-width:600px){header .brand-lockup>img.brand-wordmark{width:145px!important}}
header .brand-lockup>img.brand-wordmark{width:135px!important}@media(max-width:600px){header .brand-lockup>img.brand-wordmark{width:115px!important}}
header .brand-lockup{align-items:center}header .brand-lockup>img.brand-wordmark{transform:translateY(6px)}

/* Public pages share the owner's light-first Tune Lab appearance preference. */
@media screen{
 [data-theme=dark] .landing nav a,[data-theme=dark] .landing .team-link{color:#f7ecd9}
 [data-theme=dark] .principles{color:var(--ink);border-color:var(--line)}
 [data-theme=dark] .hero-art{box-shadow:15px 18px 0 #24382e}
 [data-theme=dark] .branding-offers article{background:var(--paper);border-color:var(--line)}
 [data-theme=dark] .branding-offers article>strong{color:var(--teal)}
 [data-theme=dark] .work-card{background:#223b30;color:var(--ink);border-color:var(--line)}
 [data-theme=dark] .landing .business-package,[data-theme=dark] .landing .closing{background:#0c372a;color:#fff7e9}
 [data-theme=dark] .landing nav a:hover{color:#e5c590}
}
@media(max-width:850px){.landing header{flex-wrap:wrap}.landing nav{flex-wrap:wrap;gap:12px}.landing nav>a:not(.team-link){display:inline}.landing nav .theme-switch{margin-left:auto}}
@media(max-width:600px){.landing nav{width:100%;justify-content:space-between}.landing nav a{font-size:11px}}
@media screen{
 [data-theme=dark] .request-page .choice-card input:not(:checked)+.choice-body{background:#24362d;color:#e7eee7;border-color:#637d6c;box-shadow:inset 0 1px 0 #ffffff0a}
 [data-theme=dark] .request-page .choice-card:hover input:not(:checked)+.choice-body{background:#304b3c;border-color:#80d2ba}
 [data-theme=dark] .choice-card input:checked+.choice-body{background:#174d39;color:#f2f7ef;border-color:#80d2ba}
 [data-theme=dark] .choice-card input:checked+.choice-body small{color:#d0e3d7}
 [data-theme=dark] .choice-group legend{color:#d4e8d9}
 [data-theme=dark] dialog{background:#192b21;color:#e7eee7;border-color:#637d6c}
 [data-theme=dark] dialog [role=alert]{color:#ffb4a5}
 [data-theme=dark] .signature-target{background:#243b2e;color:#e7eee7;border-color:#80d2ba}
 [data-theme=dark] .launch-checks article{background:var(--paper);color:var(--ink);border-color:var(--line)}
}
@media screen{header>a:not(.brand-lockup){color:#fff5e7}header>a:not(.brand-lockup):hover{color:#e5c590}[data-theme=dark] .request-page input::placeholder,[data-theme=dark] .request-page textarea::placeholder{color:#a5b9ab;opacity:1}}
@media screen{[data-theme=dark] #demo-note{color:#b2c3b6}}
/* Keep Google's transparent iframe canvas from receiving a forced white backdrop
   when the host page uses color-scheme:dark. Google still draws its own button. */
#google-team-button iframe{color-scheme:light}
