/* Shared controls; the original palette remains the default. */
.theme-toggle{display:inline-flex;align-items:center;gap:8px;flex-shrink:0;margin-left:auto;margin-right:18px;padding:8px 11px;border:1px solid var(--line);border-radius:99px;background:var(--surface);color:var(--ink);font-size:.75rem;font-weight:650;line-height:1.4;cursor:pointer}
.theme-toggle[hidden]{display:none}.theme-toggle-track{display:block;width:27px;height:16px;border-radius:99px;background:var(--line);padding:3px}.theme-toggle-track:before{content:"";display:block;width:10px;height:10px;border-radius:50%;background:var(--muted)}.theme-toggle[aria-checked=true] .theme-toggle-track{background:#c47b89}.theme-toggle[aria-checked=true] .theme-toggle-track:before{transform:translateX(11px);background:#170e11}.theme-toggle:focus-visible{outline:2px solid var(--mint);outline-offset:4px}
.site-header{gap:16px}.site-header nav{gap:1rem}
@media(min-width:821px) and (max-width:1150px){.site-header{flex-wrap:wrap;height:auto;min-height:76px;padding-block:12px}.site-header #site-nav{width:100%;justify-content:flex-end}.theme-toggle{margin-right:0}}
@media(max-width:820px){.site-header{gap:8px}.theme-toggle{margin-right:0;padding:8px;min-height:40px}.brand{gap:7px}.brand>span:last-child{font-size:.85rem}.theme-toggle>span:first-child{display:none}}
@media(max-width:380px){.site-header{padding-inline:12px}.theme-toggle{font-size:.68rem;gap:5px}.brand-mark{width:30px;height:30px}}
html[data-theme=dark]{color-scheme:dark;--ink:#f2e9ec;--muted:#bbaeb5;--bg:#0b090c;--surface:#161216;--surface2:#21191f;--line:#44333e;--lime:#e4a0af;--mint:#e7b3c1;--danger:#ff939d}
html[data-theme=dark] body{background:radial-gradient(ellipse at 80% 0,#40162380,transparent 45rem),var(--bg)}
html[data-theme=dark] .site-header{background:#100c10ed;border-bottom-color:#573543;box-shadow:0 10px 35px #0003}
html[data-theme=dark] .brand-mark{background:linear-gradient(145deg,#301922,#100c10);border-color:#bd7b8e;color:#edbdca;box-shadow:inset 0 0 0 3px #ffffff05}
html[data-theme=dark] :is(.hero-panel,.challenge-card,.challenge-list article.featured,.home-locktober){background:linear-gradient(130deg,#321720,#171116 75%);border-color:#744453}
html[data-theme=dark] .hero-panel:before{border-color:#945e72}
html[data-theme=dark] :is(.panel,.profile-card,.stat-grid article,.conversation-list,.thread,.age-gate-card){box-shadow:0 16px 45px #0004}
html[data-theme=dark] :is(.profile-card:hover,.dropzone){border-color:#856273}
html[data-theme=dark] :is(input,select,textarea){color:var(--ink);background-color:#100d11;border-color:var(--line)}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#a599a1;opacity:1}
html[data-theme=dark] :is(input,select,textarea):focus{border-color:var(--mint);box-shadow:0 0 0 3px #e7b3c11a}
html[data-theme=dark] :is(.form-stack input,.form-stack textarea,.form-stack select,.search input,.composer textarea,.discover-filters input,.discover-filters select,.admin-user-filters input,.admin-user-filters select,.admin-user-actions select,.admin-password-reset input,.checkin-extras textarea,.checkin-extras input){background:#100d11;color:var(--ink)}
html[data-theme=dark] :is(.avatar,.status,.tag,.bubbles article.mine){background:#35212c;border-color:#674454;color:var(--mint)}
html[data-theme=dark] :is(.mini-calendar span,.bubbles article,.dropzone,.admin-export-panel){background:var(--surface2)}
html[data-theme=dark] :is(.profile-card small,.form-stack small,.handle,.mini-calendar i,.bubbles time){color:var(--muted)}
html[data-theme=dark] .prose p{color:#d0c3ca}
html[data-theme=dark] .trust{background:linear-gradient(125deg,#572735,#301820);color:var(--ink);border:1px solid #875467;box-shadow:0 25px 70px #0005}
html[data-theme=dark] .trust .eyebrow{color:var(--mint)}
html[data-theme=dark] .button.primary{background:linear-gradient(135deg,#efbac7,#ce859b);color:#210f17;border-color:#e4a0af;box-shadow:0 4px 20px #0003}
html[data-theme=dark] .button.danger{color:#ffb7be;border-color:#9b5662}
html[data-theme=dark] dialog:not(.lightbox){background:var(--surface);color:var(--ink)}
html[data-theme=dark] dialog::backdrop{background:#080509df}
html[data-theme=dark] .age-gate{background:radial-gradient(ellipse at 50% 20%,#451d2d80,transparent 35rem)}
html[data-theme=dark] :is(.public-id-card,.id-directory-card){background:#180f16;border-color:#674754;box-shadow:0 25px 70px #0005}
html[data-theme=dark] :is(.id-card-details dt,.id-directory-card small){color:#c5b5be}
html[data-theme=dark] :is(.card-number,.id-directory-card b){color:#210f17}
html[data-theme=dark] :is(.mini-calendar .locked,.public-calendar .locked,.public-calendar>.calendar-day.locked,.community-calendar .has-locks,.locktober-calendar article.locked,.checkin-locked){background:#19342b;border-color:#456d5b;color:#ddf0e5}
html[data-theme=dark] :is(.mini-calendar .unlocked,.public-calendar .unlocked,.public-calendar>.calendar-day.unlocked,.locktober-calendar article.unlocked,.checkin-unlocked){background:#353019;border-color:#756743;color:#f2e4b6}
html[data-theme=dark] .locktober-calendar article.rest{background:#33203a;color:#eedbef}
html[data-theme=dark] :is(.checkin-success,.locktober-saved){background:#19342b!important;color:#b0e5c8!important;border-color:#456d5b}
html[data-theme=dark] :is(.verification-badge.is-verified,.participant-type.is-member,.locktober-public-status){background:#19342b;color:#b0e5c8;border-color:#456d5b}
html[data-theme=dark] :is(.verification-badge.is-unverified,.participant-type.is-guest,.locktober-public-status.unlocked){background:#353019;color:#f0d591;border-color:#756743}
html[data-theme=dark] .locktober-public-status.rest{background:#33203a;color:#e5bfe9}
html[data-theme=dark] :is(.admin-profile-notice,.guest-code-notice,.locktober-admin-notice){background:#2a2119;border-color:#796043;color:#ecd4a8}
html[data-theme=dark] .guest-code-notice code{background:#130f10;color:var(--ink)}
html[data-theme=dark] .admin-user-table tr.is-suspended{background:#361921}
html[data-theme=dark] .admin-user-table tbody tr:hover{background:var(--surface2)}
html[data-theme=dark] :is(.locktober-hero aside,.dashboard-locktober,.profile-locktober,.locktober-community-days details.has-checkins){background:#291921;border-color:#795064}
html[data-theme=dark] :is(.locktober-hero h1 em,.locktober-hero aside b,.locktober-principles article>b,.locktober-board span,.journey-score b){color:var(--lime)}
html[data-theme=dark] :is(.locktober-badges b,.locktober-public-calendar .section-heading>strong){background:#38212d;color:#edbdca}
html[data-theme=dark] .locktober-status button{color:var(--ink)}
html[data-theme=dark] .locktober-status button:hover{background:#38212d;border-color:var(--mint)}
html[data-theme=dark] .locktober-safety{background:#22151e;border:1px solid var(--line)}
html[data-theme=dark] :is(.home-locktober p,.locktober-safety p){color:#c9bac3}
html[data-theme=dark] .pulse{box-shadow:0 0 0 8px #e4a0af18}
html[data-theme=dark] .cms-toolbar{background:#2e1823}
html[data-theme=dark] :focus-visible{outline:2px solid var(--mint);outline-offset:3px}
html[data-theme=dark] ::selection{background:#85465f;color:#fff}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.theme-toggle *{transition:none}}
