/* Quiet optional night palette. Original light appearance remains the default. */
#theme-toggle{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;width:100%;color:var(--muted);font:inherit;text-align:left}
.theme-label{display:inline-flex;align-items:center;gap:10px}
.theme-switch{display:inline-block;flex:0 0 30px;width:30px;height:18px;border:1px solid var(--line);border-radius:12px;background:var(--soft);position:relative}
.theme-switch:after{content:'';position:absolute;top:3px;left:3px;width:10px;height:10px;background:var(--muted);border-radius:50%}
#theme-toggle[aria-checked=true] .theme-switch{background:#3a5661;border-color:#64818a}
#theme-toggle[aria-checked=true] .theme-switch:after{left:15px;background:#dbe5e7}
html[data-theme=dark]{--ink:#dce5e8;--paper:#1b2226;--surface:#232c31;--soft:#2a353b;--line:#3d4a51;--muted:#aabac2;--accent:#79bddb;--yellow:#79bddb;--shadow:0 6px 24px #00000018;color-scheme:dark;background:var(--paper)}
html[data-theme=dark] body{background:var(--paper);color:var(--ink)}
html[data-theme=dark] :is(header,.masthead,.section-nav,#headerMenu,dialog,.chat,.chat-head,.chat-body,.media-browser-dialog,.media-browser-header,.media-reader-dialog,.media-reader-body,.media-reader-header,.guide-detail-body,.site-footer,.footer-services,.bottom-nav,.mobile-nav,.mobile-bottom-nav,.bottom-menu,.business-detail-page){background-color:var(--surface)!important;color:var(--ink);border-color:var(--line)!important;box-shadow:var(--shadow)}
html[data-theme=dark] :is(.location-strip,.service-info-ticker,.service-ticker-item,.article-source,.source-detail,.notice,.chat-body>p,.guide-shortcuts a,.guide-actions a,.guide-actions button,.guide-input-row,.searchbar input,.outline,.chivi-float-label,#chivi-assistant-launcher){background:var(--soft)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme=dark] :is(.card,.real-card,.brief,.voice-box,.pharmacy-card,.obit-card,.culture-event,.bus-planner,.bus-smart-panel,.bus-geo-panel,.guide-card,.guide-featured,.guide-featured-card,.media-banner-button,.culture-mini,.home-media,.story,.article,.business-profile,.advertiser-panel,.advertise-card){background-color:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important;box-shadow:var(--shadow)}
html[data-theme=dark] :is(.media-banner-button,.culture-mini,.home-media,.guide-featured){background-image:none!important}
html[data-theme=dark] :is(input,select,textarea){background-color:var(--soft)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:var(--muted)}
html[data-theme=dark] :is(h1,h2,h3,h4,.home-media-title,.media-banner-caption,.guide-card h2,.guide-card p,.guide-detail-body p,.guide-detail-body h3,.brand-descriptor,.section-nav button,.header-actions button,.menu-access button,.menu-access a,.menu-sections button,.menu-sections a,.story-meta,.hero-summary,.card p,.guide-rubro,.culture-mini-copy,.footer-services a,.site-footer a,.footer-brand p){color:var(--ink)!important}
html[data-theme=dark] :is(.eyebrow,.home-media-kicker,small,.edition,.guide-footnote,#guide-count,.media-time,.media-source){color:var(--muted)}
html[data-theme=dark] :is(.solid,.guide-input-row>button){background:#3a6476!important;color:#f2f6f7!important}
html[data-theme=dark] .brand-wordmark{filter:brightness(0) saturate(100%) invert(93%) sepia(5%) saturate(460%) hue-rotate(153deg)}
html[data-theme=dark] dialog::backdrop{background:#080d10b8}
html[data-theme=dark] :focus-visible{outline-color:#8bc3d9}
html[data-theme=dark] :is(.reader-bar,.reader-help,.reader-body,.media-reader,.footer-service-head,.footer-service-body,.media-browser-body,.media-preview-body,.media-preview-card,.media-preview-summary,.media-summary,.guide-featured-info){background-color:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme=dark] :is(.footer-services a,.reader-message p,.reader-message small,.media-preview-summary p,.media-preview-card p){color:var(--ink)!important;background-color:transparent!important}
html[data-theme=dark] :is(.footer-services a,.reader-help,.media-preview-card){border-color:var(--line)!important}
html[data-theme=dark] :is(.city-scenes,.modal-city-header) :is(h1,h2,h3,p,small,.eyebrow,.city-scene-title){color:#f5f7f8!important}
