/* One theme palette for public pages, the account and the administration panel. */
.theme-toggle{display:inline-grid;place-items:center;flex:none;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--ink);line-height:1;cursor:pointer;box-shadow:none;transition:background-color 160ms var(--ease),border-color 160ms var(--ease)}.theme-toggle svg{width:20px;height:20px}.theme-toggle:hover{background:var(--soft);border-color:var(--accent)}.theme-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:4px}.topbar nav .theme-toggle:last-child{display:inline-grid;color:var(--ink)}.sidebar-bottom .theme-toggle{margin-bottom:12px}.login-card>.theme-toggle{float:right}.topbar:has(>.theme-toggle) .help-link{margin-left:auto}
html[data-theme=dark]{color-scheme:dark;--bg:#101011;--panel:#1b1b1d;--card:#1b1b1d;--field:#232325;--ink:#f0f0f1;--text:var(--ink);--muted:#b2b2b7;--meta:#a3a3a9;--line:#38383b;--accent:#f3a281;--blue:var(--accent);--action:#e99570;--action-ink:#251b15;--soft:#252527;--tint:#392b25;--green:#a0ccae;--green-bg:#25382c;--red:#ffb6a4;background:var(--bg);color:var(--ink)}
html[data-theme=dark] body{background:var(--bg);color:var(--ink)}
html[data-theme=dark] :is(h1,h2,h3,h4,.brand,.account-wordmark,.account-narrow h1,.account-device-copy h3,.account-section-title h2,.journey-steps h3,.tile-copy h3,.tile-bank .tile-copy h3){color:var(--ink)}
html[data-theme=dark] :is(.muted,.fine,.footnote,.lead,.account-muted,.account-fine,.instructions,.flow-description,.prose p,.checkbox,.account-check,.help-link,.topbar nav a,.account-help p,.account-recovery-note p,.account-sandbox p,.next-device h2,.account-device-copy .account-muted){color:var(--muted)}
html[data-theme=dark] :is(.panel,.metric,.login-card,.account-panel,.account-auth-form,.account-device-card,.phone-overview-card,.flow-card,.access-card,.install-card,.card,.app,.app-card,.account-app-card,.account-shortcut,.access-plan,.demo-banner){background:var(--panel);border-color:var(--line);color:var(--ink);box-shadow:none}
html[data-theme=dark] :is(input:not([type=checkbox]):not([type=radio]),textarea,select,.account-code){background:var(--field);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(label,.account-panel label,dt,dd,.message-body){color:var(--ink)}
html[data-theme=dark] :is(.secondary,.button.secondary,.workspace .button.secondary,.quiet,.account-shortcut,.info-box,.status-list){background:var(--soft);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.primary,.button:not(.secondary):not(.danger)){background:var(--action);border-color:transparent;color:var(--action-ink)}
html[data-theme=dark] :is(.primary,.button:not(.secondary):not(.danger)):hover{background:#efa786;color:var(--action-ink)}
html[data-theme=dark] :is(.text-link,.account-link,.story-underlink){color:var(--accent)}
html[data-theme=dark] :is(.account-tabs,.account-nav){background:var(--soft);border-color:var(--line)}
html[data-theme=dark] :is(.account-tabs a.is-active,.account-nav a.active,.sidebar nav a.selected){background:var(--panel);color:var(--accent);box-shadow:none}
html[data-theme=dark] .sidebar{background:#161618;border-color:var(--line)}
html[data-theme=dark] .topbar,html[data-theme=dark].motion-ready body>.topbar{background:var(--bg);border-color:var(--line)}
html[data-theme=dark] .topbar nav a[href='/account']{background:var(--panel);border-color:var(--line);color:var(--ink)}
html[data-theme=dark] :is(.notice,.workspace .notice,.account-alert,.account-sandbox,.waiting-note,.next-device){background:#342d21;color:#f0d69f;border-color:#665331}
html[data-theme=dark] :is(.account-status.good,.pill.good,.workspace .pill.good){background:var(--green-bg);color:var(--green)}
html[data-theme=dark] :is(.pill.warning,.workspace .pill.warning){background:#342d21;color:#f0d69f;border-color:#665331}
html[data-theme=dark] :is(.pill.error,.workspace .pill.error,.form-error,.account-alert.error){background:#3b2925;color:var(--red);border-color:#715044}
html[data-theme=dark] :is(.account-top,.footer,footer,.account-shortcut,.story-divider,.story-underlink,.story-finale,.story-questions details,.journey-steps>li){border-color:var(--line)}
html[data-theme=dark] :is(.membership-premium,.access-plan-premium){background:var(--panel);border-color:#74513c}
html[data-theme=dark] :is(.membership-plan p,.access-plan>p,.tile-copy p,.tile-kicker,.tile-open,.journey-index,.journey-caption,.journey-caption-label){color:var(--muted)}
html[data-theme=dark] :is(.landing.motion-edition,.motion-stage){background:var(--bg)}
html[data-theme=dark] :is(.motion-chapter h1,.motion-chapter h2,.story-heading h2,.story-faq h2,.story-finale h2,.access-plans-heading h2){color:var(--ink)}
html[data-theme=dark] :is(.motion-lead,.motion-help,.motion-actions>p,.motion-example,.motion-scroll-cue,.motion-chapters button,.story-heading>p,.story-questions summary,.story-questions p,.journey-steps li>div>p,.journey-note,.member-story-copy>p,.member-browser-note){color:var(--muted)}
html[data-theme=dark] .motion-chapters button.is-active{color:var(--accent)}
html[data-theme=dark] :is(.journey-sticky,.story-member){background:var(--panel);border-color:var(--line)}
html[data-theme=dark] .tile-bank{background:#322c24}html[data-theme=dark] .tile-social{background:#252f28}html[data-theme=dark] .tile-music{background:#242729}
html[data-theme=dark] :is(.member-dashboard,.member-layer,.journey-phone){background:var(--soft);border-color:var(--line)}
html[data-theme=dark] .managed-app-issue{background:transparent;border:0;color:var(--ink)}
html[data-theme=dark] .phone-plan.premium{background:var(--tint);color:var(--accent)}
@media(max-width:760px){.topbar nav{gap:8px}.topbar nav .theme-toggle{width:44px;min-width:44px;height:44px;min-height:44px}.topbar .brand{font-size:18px}}
