html[data-air-text=large] :is(.entry-text,.story,.message p,.root-entry>p,.thread-reply>p){font-size:19px!important;line-height:1.85!important}html[data-air-text=large] :is(main p,main label){font-size:17px}
html[data-air-theme=dark]{color-scheme:dark;--bg:#14211d;--ink:#e4eee7;--muted:#a8b9ad;--line:#3a4e43;--green:#70d8a8}
html[data-air-theme=dark] body{background:#14211d!important;color:#e4eee7!important}
html[data-air-theme=dark] :is(header,dialog,main>section,.panel,.card,#content,.sidebar,.rail,.intro,.mode,.search-panel,.notice-item,.settings-section,details,.entry-menu-items){background:#1d3027!important;color:#e4eee7!important;border-color:#40584a!important}
html[data-air-theme=dark] :is(input,textarea,select){background:#18271f!important;color:#eef6f0!important;border-color:#6c8976!important}
html[data-air-theme=dark] :is(a,.hint,.muted,small,.byline,.entry-meta,.linkbtn,.plain,.report-link){color:#a5d7bb!important}
html[data-air-theme=dark] :is(.story,.entry-text,h1,h2,h3,label,summary){color:#e4eee7!important}
html[data-air-theme=dark] :is(.notice,.privacy,.reply-composer,.message,.thread,.poll-type,.vote-box,.question-card){background:#243e30!important;color:#e4eee7!important}
html[data-air-theme=dark] :is(.chip,.categories button,.cats button,.secondary){background:#2a4436!important;color:#d5ecdf!important}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}
/* Dark surfaces and their text must change together, including nested controls. */
html[data-air-theme=dark]{--air-surface:#1d3027;--air-border:#526c5c;--air-muted:#b9cbbb}
html[data-air-theme=dark] :is(.swipe-card,.quick-filter,.poll-info,.air-support,.air-ad,.related-topic,.entry-menu summary,.notice-bell,.pill,.vote-badge,.intro-symbol,.local-discussion-note,.notification,.block-row,.air-spoiler-toggle,.air-entry-tool-results button,.entry-insert-tools button){background:#243e30!important;color:#e4eee7!important;border-color:#526c5c!important}
html[data-air-theme=dark] :is(button,.button,.live-soon-link,.tabs a,.quick-format-tabs button){background:#294738!important;color:#e4eee7!important;border-color:#63806c!important}
html[data-air-theme=dark] :is(.primary,button[type=submit],#submit,.tabs a[aria-current=page],.mode button.active,.categories button.active,.quick-format-tabs button[aria-selected=true],button[aria-pressed=true],.choice.selected){background:#70d8a8!important;color:#102c20!important;border-color:#70d8a8!important}
html[data-air-theme=dark] :is(.choice,.leans-right,.entry-votes button){background:#294b39!important;color:#d8f5e5!important;border-color:#6d9d7f!important}
html[data-air-theme=dark] :is(.choice:last-child,.leans-wrong,.quick-action.wrong){background:#59342f!important;color:#ffe1d8!important;border-color:#b77869!important}
html[data-air-theme=dark] .choice.selected{background:#70d8a8!important;color:#102c20!important}
html[data-air-theme=dark] :is(.topic,.topic span,.sidebar .topic.selected,.sidebar .topic.selected span){color:#e4eee7!important}
html[data-air-theme=dark] :is(p,small,.hint,.muted,.pending,.round-track,.swipe-prompt,.reply-target,.air-entry-tool-status,.security-table th,.today-heading,.section-title,.entry-live-soon span){color:#b9cbbb!important}
html[data-air-theme=dark] :is(.story,.entry-text,.message p,.root-entry>p,.thread-reply>p){color:#e4eee7!important}
html[data-air-theme=dark] :is(.live-soon-link small,.notice-bell b,.badge){background:#754137!important;color:#fff1e9!important}
html[data-air-theme=dark] :is(.air-ad span,.air-ad small,.poll-info div,.poll-info span,.air-support p){color:#b9cbbb!important}
html[data-air-theme=dark] :is(.air-ad,.air-support,.quick-filter,.swipe-card,.poll-info){box-shadow:none!important}
html[data-air-theme=dark] :is(.topic:hover,.entry-menu-items a:hover,.entry-menu-items button:hover,.air-suggestions button:hover,.air-suggestions button[aria-selected=true]){background:#365c45!important;color:#f0fff5!important}
html[data-air-theme=dark] :is(.air-suggestions-group,.air-suggestions-empty,.air-suggestions button small){color:#bdd1c1!important}
html[data-air-theme=dark] input::placeholder,html[data-air-theme=dark] textarea::placeholder{color:#b1c6b7!important;opacity:1}
html[data-air-theme=dark] input:-webkit-autofill{-webkit-text-fill-color:#eef6f0!important;-webkit-box-shadow:0 0 0 1000px #18271f inset!important;caret-color:#eef6f0}
html[data-air-theme=dark] :focus-visible{outline:2px solid #8fe5b9!important;outline-offset:3px}
html[data-air-theme=dark] dialog::backdrop{background:#07110cc9}
/* Account styles use more specific selectors; keep these paired overrides equally specific. */
html[data-air-theme=dark] body:not([data-air-page=demo]) :is(button,.button,.secondary){background:#294738!important;color:#e4eee7!important;border-color:#63806c!important}
html[data-air-theme=dark] body:not([data-air-page=demo]) :is(button[type=submit],#submit,.tabs a[aria-current=page],button[aria-pressed=true]){background:#70d8a8!important;color:#102c20!important;border-color:#70d8a8!important}
html[data-air-theme=dark] :is(section,.avatar-editor,#status,.avatar){background:#1d3027!important;border-color:#526c5c!important}
html[data-air-theme=dark] :is(.eyebrow,.avatar){color:#a5d7bb!important}
html[data-air-theme=dark] :is(.brand em,.intro h2 span){color:#ff9a89!important}
html[data-air-theme=dark] :is(.topic small,.sidebar .topic small,.topic.selected small){background:#294738!important;color:#d5ecdf!important}
html[data-air-theme=dark] button:disabled{opacity:1!important;color:#b9cbbb!important;cursor:not-allowed}
html[data-air-theme=dark] :is(.error,.reply-error,#status[data-error=true]){color:#ffb2a1!important}
html[data-air-theme=dark] :is(.success,#status.success){color:#a5e8bf!important}
/* Avoid intermediate light backgrounds while the theme is being applied. */
html[data-air-theme=dark] :is(button,.button,input,textarea,select){transition-property:transform!important}
html[data-air-theme=dark] legend{color:#e4eee7!important}
html[data-air-theme=dark] .fresh-count{background:#294738!important;color:#e4eee7!important}

body[data-air-page] :is(header,nav,.discussion-controls,.mobile-account-panel,footer) a,
body[data-air-page] .settings-panel a{text-decoration:none!important}
#followCategories{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px;margin-block:12px}
#followCategories strong{grid-column:1/-1}
#followCategories label{display:flex;align-items:center;gap:6px}

/* AiR dark theme: comment actions and notification-chain controls.
   Scoped to demo discussion entries; selected votes and primary actions retain their states. */
html[data-air-theme="dark"] body[data-air-page="demo"] :is(
  .entry-section .thread-mute-button,
  .entry-section .entry-share-button,
  .entry-section .entry-edit-button,
  .entry-section .entry-bottom-actions button,
  .entry-section button[data-delete-demo-root],
  .entry-section button[data-delete-demo-reply],
  .entry-section .entry-menu-items button,
  .entry-section .entry-menu-items a,
  .entry-section .server-entry .linkbtn,
  .entry-section .server-reply .linkbtn
){background:#1d3027!important;color:#e4eee7!important;border-color:#526c5c!important;box-shadow:none!important}
html[data-air-theme="dark"] body[data-air-page="demo"] :is(
  .entry-section .thread-mute-button,
  .entry-section .entry-share-button,
  .entry-section .entry-edit-button,
  .entry-section .entry-bottom-actions button,
  .entry-section .entry-menu-items button,
  .entry-section .entry-menu-items a
):not(:disabled):hover{background:#294738!important;color:#f0fff5!important}
html[data-air-theme="dark"] body[data-air-page="demo"] .entry-section .thread-mute-button[aria-pressed="true"]{background:#294738!important;color:#b6e8c9!important;border-color:#63806c!important}
html[data-air-theme="dark"] body[data-air-page="demo"] .entry-section :is(.thread-mute-button,.entry-share-button,.entry-bottom-actions button):focus-visible{outline:2px solid #8fe5b9!important;outline-offset:2px}
html[data-air-theme="dark"] body[data-air-page="demo"] .entry-section :is(.reply-form-slot,.server-chain,.reply-list,.server-reply,.reply-composer){background:#1d3027!important;color:#e4eee7!important;border-color:#40584a!important}
