:root{--page:#fff;--surface:#fff;--surface-soft:#f5f6f1;--surface-hover:#f0f3e8;--accent-soft:#f0f8cc;--accent-ink:#596d0b;--text-soft:#676e5d;--border-strong:#dfe4d4}
html[data-theme="dark"]{--page:#111311;--surface:#191c18;--surface-soft:#22261f;--surface-hover:#2c3326;--accent-soft:#303c16;--accent-ink:#c4ec09;--ink:#edf0e8;--muted:#a4ac9b;--line:#30362c;--text-soft:#b2baa8;--border-strong:#434c3a;background:var(--page)}
body{background:var(--page)}
html[data-theme="dark"] :is(.sidebar,.mobile-brand,.dm-layout,dialog,.comment-menu,.dm-post-card,.hashtag-input-wrap,.privacy-banner,.privacy-dialog,.legal-card,.admin-gate){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] :is(input,textarea,select,.field input,.field textarea,.field select,.search-form input,.dm-send-form textarea,.inline-comment-form textarea){background:var(--surface-soft);color:var(--ink);border-color:var(--border-strong)}
html[data-theme="dark"] :is(input,textarea)::placeholder{color:var(--muted);opacity:1}
html[data-theme="dark"] :is(.search,.edit,.follow,.guest-register,.google-preview,.composer-send,.composer-order button,.dm-thread-row,.dm-post-card,.inline-comment-form,.admin-card,.admin-post,.cleanup-row){border-color:var(--line)}
html[data-theme="dark"] :is(nav a:hover,.dm-thread-open:hover,.dm-thread-row.selected,.real-notification.unread,.search-result,.auth-preview,.composer-summary,.composer-stage,.upload,.dm-message,.dm-post-card img,.beta,.search kbd,.avatar,.notification-badge){background:var(--surface-soft);color:var(--ink)}
html[data-theme="dark"] :is(nav a.active,.follow.on,.avatar.me,.dm-message.mine,.callout,.moderation-avatar,.composer-kicker span){background:var(--accent-soft);color:var(--ink);border-color:var(--border-strong)}
html[data-theme="dark"] :is(.primary,.mobile-brand .create,.filters .active){background:#c4ec09;color:#192000}
html[data-theme="dark"] .primary:hover{background:#d2f443}
html[data-theme="dark"] .guest-login{color:#192000}
html[data-theme="dark"] :is(.guest-account strong,.support-link,.about-support,.callout p,.pill,.guest-continue,.composer-caption,.notification-target span,.moderation-notice-reason,.dm-post-card small,.dm-thread-open small,.dm-message time,.community-heading p,.community-empty,.share-heading,.share-empty,#share-feedback,.composer-summary span){color:var(--text-soft)!important}
html[data-theme="dark"] :is(.post-hashtag,.dm-send-label){color:var(--accent-ink)}
html[data-theme="dark"] .hashtag-input-wrap #composer-caption{background:transparent}
html[data-theme="dark"] .hashtag-input-backdrop mark{background:#405317}
html[data-theme="dark"] .meme.custom{background:#0c0e0c}
html[data-theme="dark"] .composer-remove{background:var(--surface)!important;border-color:var(--border-strong)!important}
html[data-theme="dark"] :is(.feed-gallery-prev,.feed-gallery-next){background:#252a22ed;color:#edf0e8}
html[data-theme="dark"] .dm-blocked{background:#3a2e19;color:#f0cd8a}
html[data-theme="dark"] :is(.privacy-banner p,.legal-main p,.legal-main li){color:var(--text-soft)}

.settings-kicker{display:block;color:var(--muted);font-size:9px;font-weight:700;letter-spacing:1.5px;margin-bottom:12px}.theme-choices{border:0;padding:0;margin:26px 0 0;display:grid;gap:10px}.theme-choices legend{font-size:12px;font-weight:700;margin-bottom:12px}.theme-choice{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:12px;cursor:pointer}.theme-choice:has(input:checked){border-color:#8ba700;background:var(--accent-soft)}.theme-choice input{accent-color:#799300;margin:0;width:16px;height:16px;flex-shrink:0}.theme-choice b{display:block;font-size:13px}.theme-choice small{font-size:10px;line-height:1.5}.theme-swatch{display:grid;gap:4px;align-content:center;width:46px;height:40px;border:1px solid #cbd0c0;border-radius:7px;padding:7px;background:#fff;flex-shrink:0}.theme-swatch i{height:4px;background:#c4ec09;border-radius:2px}.theme-swatch i:last-child{width:65%;background:#c9cebf}.theme-swatch-dark{background:#191c18}.theme-swatch-system{background:linear-gradient(90deg,#fff 50%,#191c18 50%)}.settings-save{width:100%;margin-top:20px}.settings-status{min-height:20px}.settings-links{display:grid;border-top:1px solid var(--line);margin-top:20px;padding-top:10px}.settings-links>*{display:flex;justify-content:space-between;align-items:center;padding:13px 0;font-size:12px;color:var(--text-soft);text-align:left}.account-settings-button{font-size:11px;color:var(--muted);padding:10px 0}.theme-choice:focus-within{outline:2px solid #8ba700;outline-offset:2px}
@media(min-width:621px){.sidebar>.account-settings-button{margin-top:auto;text-align:left;padding-top:16px}.sidebar>.account-settings-button+.sidebar-bottom{margin-top:0}}
@media(max-width:620px){.sidebar>.account-settings-button{display:none}}

@media(max-width:620px){.mobile-brand .mobile-settings{position:absolute;right:126px;top:16px;margin:0;width:31px;height:31px;padding:6px;border-radius:8px;background:var(--surface-soft);color:var(--ink);display:flex;align-items:center;justify-content:center}.mobile-settings svg{width:19px;height:19px}}
html[data-theme="dark"] .topic{border-color:var(--line)}
html[data-theme="dark"] .privacy-actions .edit{background:var(--surface-soft);color:var(--ink);border-color:var(--border-strong)}
html[data-theme="dark"] .legal-draft{background:#3a2e19;color:#f0cd8a}

/* Admin surfaces share the account theme. */
html[data-theme="dark"] .admin-page{background:var(--page);color:var(--ink)}
html[data-theme="dark"] .admin-page :is(.admin-top,.queue-item,.review-card,.admin-empty,.comment-report-card,.admin-ban-form,.stats-period button,.stats-card,.stats-table-wrap,.stats-top a,.cleanup-filters,.cleanup-card){background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .admin-page :is(.review-image,.review-meta,.stats-table thead,.cleanup-backlog){background:var(--surface-soft)}
html[data-theme="dark"] .admin-page :is(.admin-filters button,.review-head,.stats-table td,.stats-table th){border-color:var(--line)}
html[data-theme="dark"] .admin-page .admin-filters .active{background:var(--accent-soft);color:var(--accent-ink);border-color:var(--border-strong)}
html[data-theme="dark"] .admin-page :is(.review-approve,.stats-period .active){background:var(--lime);color:#192000}
html[data-theme="dark"] .admin-page .review-reject{background:#38231f;color:#ffb7a7;border-color:#70453c}
html[data-theme="dark"] .admin-page .cleanup-confirm{background:#38231f;border-color:#70453c}
html[data-theme="dark"] .admin-page .status-tag{background:var(--accent-soft);color:var(--accent-ink)}
html[data-theme="dark"] .admin-page :is(.admin-top>a:last-child,.admin-gate p,.admin-eyebrow,.admin-heading p,.queue-item p,.queue-item small,.review-caption,.review-meta span,.review-check,.admin-message,.admin-empty p,.admin-pager,.admin-internal,.report-details,.stats-card span,.cleanup-card p){color:var(--text-soft)}
html[data-theme="dark"] .admin-page .admin-message.error{color:#ffb7a7}

.settings-danger{border-top:1px solid var(--line);margin-top:22px;padding-top:18px}.settings-danger button{color:#a93e36;font-size:12px;padding:12px 0}html[data-theme="dark"] .settings-danger button{color:#ffb3a7}
