:root { color-scheme: light; }
.theme-toggle { min-height: 44px; white-space: nowrap; gap: 6px; }
.theme-toggle-floating { position: fixed; top: 16px; right: 16px; z-index: 20; }
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e6edf7; --muted: #a7b4c8; --line: #304058; --bg: #101827;
  --link: #91baff; --positive: #82d7a0; --crimson: #ffaaa2;
  --shadow: 0 5px 22px #00000020;
  --surface: #182335; --raised: #202f44; --soft-blue: #1c304c;
}
html[data-theme="dark"] body { background: var(--bg); }
html[data-theme="dark"] :is(.panel,.sidebar,.workspace-top,.stat-card,.example-workspace,.earnings-float,.benefit,dialog,.sms-value-card,.sms-status,.sms-progress li>span,.skip-link) { background: var(--surface); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] :is(input:not([type=checkbox]),textarea,select,.button.secondary,.button.danger-outline) { background: var(--surface); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] :is(.button.secondary:hover,.nav-link:hover,.icon-button:hover,th,.step-editor,.instruction-library article,.image-button,.upload-preview img,.proof-expired,.benefits-section) { background: var(--raised); }
html[data-theme="dark"] :is(.hero-tag,.example-active,.example-upload,.final-cta,.count-chip,.password-box,.step-password,.dropzone,.review-summary,.sms-empty,.sms-code-placeholder,.sms-value-tag,.avatar,.task-icon,.feature-symbol,.review-status-icon,.empty-state>span,.auth-illustration span,.user-choice:has(input:checked),.step-list .current,.nav-link.active,.notice,.badge,.review-status>.review-live) { background: var(--soft-blue); color: var(--link); border-color: var(--line); }
html[data-theme="dark"] :is(.site-header nav a,.nav-link,.side-note,.side-note small,.stat-card>small,.instruction-copy,.instruction-library ol,.step-password small,.step-list small,.step-list .locked,.sms-eyebrow,.sms-value-label,.sms-value-card>small,.sms-help,.sms-progress li,.sms-code-dashes,.sms-skip>small,.sms-skip .button,.workspace-footer,.icon-button,.example-label,.example-bottom,.example-caption) { color: var(--muted); }
html[data-theme="dark"] :is(.step-password code,.sms-empty strong) { color: var(--ink); }
html[data-theme="dark"] :is(a:hover,.smsbower-step[data-stage] .sms-progress li,.sms-skip .button:hover) { color: var(--link); }
html[data-theme="dark"] .button:hover { color: #fff; }
html[data-theme="dark"] .button.secondary:hover { color: var(--ink); }
html[data-theme="dark"] :is(.balance-stat,.admin-summary,.notice.success,.badge.approved,.badge.completed,.badge.paid,.activity-icon,.step-dot.done,.step-list .done>span,.sms-code-card,.sms-code-card .sms-value-tag,.smsbower-step[data-stage="3"] .sms-status,.approval-check) { background: #193a2c; color: var(--positive); border-color: #315b45; }
html[data-theme="dark"] :is(.sms-code-card code,.sms-code-card .sms-value-label,.sms-code-card>small,.approval-notice a,.mini-done) { color: var(--positive); }
html[data-theme="dark"] :is(.badge.pending,.badge.submitted,.how-number.n2,.auth-illustration span:nth-of-type(2)) { background: #3b3219; color: #f4d47d; }
html[data-theme="dark"] :is(.badge.rejected,.badge.blocked,.proof-issues) { background: #40272b; color: var(--crimson); border-color: #714249; }
html[data-theme="dark"] :is(.proof-issues h3,.proof-issues p,.proof-issues a,.proof-issues li>span,.smsbower-step [data-sms-action="cancel"]) { color: var(--crimson); }
html[data-theme="dark"] .proof-card.proof-rejected { border-color: #b56e66; box-shadow: 0 0 0 3px #40272b; }
html[data-theme="dark"] .smsbower-step { background: linear-gradient(145deg,var(--soft-blue),var(--surface) 65%); border-color: var(--line); }
html[data-theme="dark"] .sms-symbol { background: var(--soft-blue); color: var(--link); border-color: var(--line); }
html[data-theme="dark"] .smsbower-step>.form-feedback { background: var(--soft-blue); color: var(--link); border-color: var(--line); }
html[data-theme="dark"] .smsbower-step>.form-feedback[data-tone="success"] { background: #193a2c; color: var(--positive); border-color: #315b45; }
html[data-theme="dark"] .smsbower-step>.form-feedback[data-tone="error"] { background: #40272b; color: var(--crimson); border-color: #714249; }
html[data-theme="dark"] .sms-footer [data-sms-continue]:disabled { background: var(--raised); color: var(--muted); border-color: var(--line); }
html[data-theme="dark"] .smsbower-step [data-sms-action="cancel"]:hover { background: #40272b; }
html[data-theme="dark"] .sms-skip .button { background: transparent; }
html[data-theme="dark"] .hero-visual::before { opacity: .12; }
html[data-theme="dark"] :is(.orbit,.example-upload) { border-color: var(--line); }
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder { color: var(--muted); }
html[data-theme="dark"] :is(.example-top,.example-bottom,.benefits-section) { background: var(--raised); border-color: var(--line); }
html[data-theme="dark"] :is(.how-number,.step-list li>span) { background: var(--soft-blue); color: var(--link); }
html[data-theme="dark"] :is(.how-number.n3) { background: #40272b; color: var(--crimson); }
html[data-theme="dark"] :is(.how-number.n4,.earning-icon,.auth-illustration span:last-child) { background: #193a2c; color: var(--positive); }
html[data-theme="dark"] .button.success-button { background: #247440; color: #fff; }
html[data-theme="dark"] .button.danger-outline { color: var(--crimson); }
html[data-theme="dark"] .button.danger-outline:hover { background: #81332e; color: #fff; }
html[data-theme="dark"] .step-list .done>span,
html[data-theme="dark"] .smsbower-step[data-stage="2"] .sms-progress li:first-child>span,
html[data-theme="dark"] .smsbower-step[data-stage="3"] .sms-progress li:not(:last-child)>span { background: #193a2c; color: var(--positive); border-color: #315b45; }
html[data-theme="dark"] .step-list .current>span,
html[data-theme="dark"] .smsbower-step[data-stage="1"] .sms-progress li:first-child>span,
html[data-theme="dark"] .smsbower-step[data-stage="2"] .sms-progress li:nth-child(2)>span,
html[data-theme="dark"] .smsbower-step[data-stage="3"] .sms-progress li:last-child>span { background: #286bd5; color: #fff; border-color: #286bd5; }
