/* Confined to /news/: surfaces, controls and overlays share one night palette. */
html[data-news-theme="light"]{color-scheme:light}
html[data-news-theme="dark"]{color-scheme:dark;--bg:#101a29;--ink:#e0e8f3;--blue:#abc6e8;--accent:#ddba7e;--muted:#a4b3c5;--line:#334355;--wash:#202e40;--news-surface:#182536;--news-raised:#213147;--news-button:#b5c9e6;--news-button-ink:#152238;--t-models:#acc6e8;--t-perks:#d5b277;--t-news:#9cc6b9;--t-rumors:#c4b3d8}
.news-body .hero-kicker{display:flex;align-items:center;justify-content:space-between;gap:12px}
.news-body .hero-kicker>.news-kicker-copy{display:block;color:inherit;margin:0;min-width:0}
.news-theme-toggle{display:inline-grid;place-items:center;width:36px;height:36px;min-width:36px;border:1px solid var(--line);border-radius:50%;padding:0;background:transparent;color:var(--blue);cursor:pointer;flex:none;transition:background .18s,border-color .18s}
.news-theme-toggle:hover{background:var(--wash);border-color:var(--blue)}
.news-theme-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.news-theme-toggle svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.news-theme-toggle .theme-sun{display:none}
html[data-news-theme="dark"] .news-theme-toggle .theme-sun{display:block}
html[data-news-theme="dark"] .news-theme-toggle .theme-moon{display:none}
html[data-news-theme="dark"] body{background:radial-gradient(ellipse at 80% 0,#21334955,transparent 42%),var(--bg);color:var(--ink)}
html[data-news-theme="dark"] ::selection{background:#668aad66;color:#fff}
html[data-news-theme="dark"] .site-header{color:var(--ink);border-color:var(--line)}
html[data-news-theme="dark"] .site-header :is(.chapter-nav,.lang-toggle,.header-contact){color:var(--blue);border-color:var(--line)}
html[data-news-theme="dark"] .site-header :is([lang-state="zh"] .lt-zh,[lang-state="en"] .lt-en){color:var(--ink)}
html[data-news-theme="dark"] .site-header .chapter-nav a::after{background:var(--blue)}
html[data-news-theme="dark"] .site-header .brand-wordmark{filter:brightness(0) invert(.88)}
html[data-news-theme="dark"] .site-header .brand>img:first-child{filter:brightness(1.7) saturate(.75)}
html[data-news-theme="dark"] :is(.hero-description,.hero-kicker,.form-hint,.subscriber-count,.board-baseline,.filter-hint,.filter-label,.section-title>span,.asof-divider,.pg-info,.sec-toggle-label,.empty,.empty p,footer){color:var(--muted)}
html[data-news-theme="dark"] :is(h1 em,.section-kicker,.rss-entry){color:var(--accent)}
html[data-news-theme="dark"] :is(.section-title h2,.boardhead .asof b,.row .title,.sec-name){color:var(--ink)}
html[data-news-theme="dark"] :is(.subbox input,.rseg,.day,.chip,.pg-btn){background:var(--news-surface);color:var(--ink);border-color:var(--line)}
html[data-news-theme="dark"] input::placeholder{color:#9bacc1;opacity:1}
html[data-news-theme="dark"] :is(.subbox button,.rbtn[aria-pressed=true],.day.sel){background:var(--news-button);border-color:var(--news-button);color:var(--news-button-ink)}
html[data-news-theme="dark"] .subbox button:hover{background:#cbdaf0}
html[data-news-theme="dark"] .day.sel :is(.dw,.dd){color:var(--news-button-ink)}
html[data-news-theme="dark"] .day.sel .dc i{background:#46627d88}
html[data-news-theme="dark"] .day.sel .dc i[class]{background:#253d5b}
html[data-news-theme="dark"] .rbtn.vlit{background:#302c28;color:#e0c090;border-color:#63533b}
html[data-news-theme="dark"] .rbtn.vlit[aria-pressed=true]{background:#d5b277;color:#201c17;border-color:#d5b277}
html[data-news-theme="dark"] :is(.asof-count,.track-sec .sec-n,.category-count){background:#2a3b50;color:#bdcde0}
html[data-news-theme="dark"] .chip[aria-pressed=true]{background:#314963;border-color:#6685a4;color:#e4edf7}
html[data-news-theme="dark"] .category-filter button{color:var(--muted)}
html[data-news-theme="dark"] .category-filter button[aria-pressed=true]{background:#b5c9e6;color:#152238}
html[data-news-theme="dark"] .category-filter button[aria-pressed=true] .category-count{background:#91accb;color:#152238}
html[data-news-theme="dark"] .track-sec .sec-head{border-color:var(--line)}
html[data-news-theme="dark"] .track-sec .card{background:var(--news-surface);border-color:var(--line);box-shadow:none}
html[data-news-theme="dark"] .track-sec[aria-labelledby="section-perks"] .card{background:linear-gradient(130deg,#282b2e,#192536 80%);border-color:#514737}
html[data-news-theme="dark"] .track-sec[aria-labelledby="section-models"] .card{border-color:#3e5470}
html[data-news-theme="dark"] .track-sec[aria-labelledby="section-news"] .card{background:#172c2d;border-color:#36534e}
html[data-news-theme="dark"] .track-sec[aria-labelledby="section-rumors"] .card{background:#242638;border-color:#4b435e}
html[data-news-theme="dark"] .track-sec .row{border-color:#ffffff0d}
html[data-news-theme="dark"] .row .prov,html[data-news-theme="dark"] .row .prov b{color:#a9bbce}
html[data-news-theme="dark"] .row .sum{color:#c0ccdb}
html[data-news-theme="dark"] .row.ended{background:#142031}
html[data-news-theme="dark"] .row.ended :is(.title,.sum){color:#91a0b3}
html[data-news-theme="dark"] :is(.entry-more,.row .foot a,.pg-btn){color:var(--blue)}
html[data-news-theme="dark"] :is(.b-grant,.b-conf){background:#213f33;color:#b4dabc;border-color:#557b62}
html[data-news-theme="dark"] :is(.b-new,.b-dl){background:#47392a;color:#f0c9a2;border-color:#8e6b47}
html[data-news-theme="dark"] .b-up{background:#263b54;color:#c1d4f0;border-color:#506c8d}
html[data-news-theme="dark"] :is(.b-end,.b-cred){background:#263140;color:#b1bfd1;border-color:#4e5c70}
html[data-news-theme="dark"] .b-debunk{background:#442d31;color:#eab6ad;border-color:#87615e}
html[data-news-theme="dark"] .conf-original{background:#243d34;color:#b1cbbb;border-color:#6a977d}
html[data-news-theme="dark"] .conf-original>span{color:#b4dabc}
html[data-news-theme="dark"] .debunk-original{background:#3c2a30;color:#cdb4b5}
html[data-news-theme="dark"] :is(.tibo,.tibo.reset-confirmed,.radar-shortcut){background:linear-gradient(150deg,#243842,#192c33 58%,#1b283c);border-color:#425b59;color:var(--ink);box-shadow:0 12px 30px #0002}
html[data-news-theme="dark"] .tibo::before{box-shadow:inset 0 1px 0 #a8c2c014}
html[data-news-theme="dark"] :is(.tibo,.radar-shortcut) .wordmark-tibo{background-image:linear-gradient(150deg,#dfebf4,#a7c0d6)}
html[data-news-theme="dark"] :is(.tibo,.radar-shortcut) .wordmark-reset{background-image:linear-gradient(150deg,#f1d59c,#c5a471)}
html[data-news-theme="dark"] .tibo :is(.radar-kicker,.radar-status,.radar-elapsed>span,.radar-metrics span,.radar-metrics small,.radar-src,.radar-src a,.radar-history-toggle,.radar-viewer-zone,.reset-preview-details p,.reset-preview-details span){color:#adc3bd}
html[data-news-theme="dark"] .tibo :is(.radar-core>span:first-child,.radar-coordinate){color:#c1d3cb}
html[data-news-theme="dark"] .tibo :is(.radar-core strong,.radar-metrics strong,.reset-preview-details strong){color:#e0dcc0}
html[data-news-theme="dark"] .tibo .radar-core .reset-countdown-clock strong{color:#f0d098}
html[data-news-theme="dark"] .tibo :is(.reset-countdown>div>span,.reset-countdown>i){color:#b5c9bf}
html[data-news-theme="dark"] .tibo .radar-unit{color:#b5c9bf!important}
html[data-news-theme="dark"] .tibo :is(.radar-metrics,.radar-metrics>div+div,.reset-preview-details>div){border-color:#59746b55}
html[data-news-theme="dark"] .tibo .radar-motion{background:#31463f;color:#d1e1d7;border-color:#577268}
html[data-news-theme="dark"] .tibo .radar-confidence>div>span{color:#d6e4df}
html[data-news-theme="dark"] .tibo .radar-confidence.is-confirmed{background:linear-gradient(135deg,#344c68,#23364f);border-color:#b59864;box-shadow:0 8px 24px #0002}
html[data-news-theme="dark"] .tibo .heat-0{background:#263e37}
html[data-news-theme="dark"] .tibo .heatmap-day{border-color:#4a6458}
html[data-news-theme="dark"] .tibo .heatmap-day.is-future{background:#23352e;border-color:#3b4d43}
html[data-news-theme="dark"] .tibo .heatmap-legend{color:#b3c5bb}
html[data-news-theme="dark"] .tibo .heatmap-tooltip,html[data-news-theme="dark"] .tibo .heatmap-tooltip::after{background:#203c32;color:#e3eade;border-color:#597665}
/* Reading details, subscriptions, RSS and full-size mail previews. */
html[data-news-theme="dark"] :is(.entry-dialog,.rss-dialog,.mail-preview-dialog,.modal,#modal-backdrop.subscription-designed .modal){background:var(--news-surface);color:var(--ink);border-color:var(--line);box-shadow:0 25px 90px #0006}
html[data-news-theme="dark"] :is(.entry-dialog,.rss-dialog,.mail-preview-dialog)::backdrop,html[data-news-theme="dark"] .modal-backdrop{background:#070e1ac9}
html[data-news-theme="dark"] :is(.modal-head,.subscription-designed .modal-head,.subscription-steps,.mail-preview-toolbar){background:#1c2b3e;color:var(--ink);border-color:var(--line)}
html[data-news-theme="dark"] :is(.entry-dialog h2,#entry-provider,#entry-summary,.dialog-sources,#entry-evidence p,.rss-dialog h2,.rss-feed-option label,.mail-preview-toolbar h2,.modal h3,.modal h4,.subscription-steps button[aria-current=step]){color:var(--ink)}
html[data-news-theme="dark"] :is(#entry-claim,.mail-style-note,.preferences-help){background:#21362f;color:#c1d4c6;border-color:#426256}
html[data-news-theme="dark"] :is(.dialog-close,.modal-close,.mail-preview-close,.rss-dialog-close,.tip){color:#c0d1e3;border-color:var(--line)}
html[data-news-theme="dark"] :is(.modal .trk,.subscription-designed .trk){background:#203045!important;border-color:#43556a!important}
html[data-news-theme="dark"] :is(.modal .chip,.freq-chip,.freq-chip.mail-style-card,.vsel,.vgrid,.vcell,.m-email,.tz-select,.vsel-search,.rss-feed-option,.mail-preview-size,.tip,.tip::after,.subscription-tooltip){background:#223248;color:var(--ink);border-color:#43556a}
html[data-news-theme="dark"] :is(.freq-chip[aria-pressed=true],.freq-chip.mail-style-card[aria-pressed=true],.vcell.on){background:#304b54;color:#e0ece9;border-color:#789f94;box-shadow:inset 0 0 0 1px #789f94}
html[data-news-theme="dark"] :is(.subscription-next button,.pill-btn,.chk[aria-pressed=true]){background:var(--news-button);color:var(--news-button-ink);border-color:var(--news-button)}
html[data-news-theme="dark"] .chk[aria-pressed=true]::after{color:var(--news-button-ink)}
html[data-news-theme="dark"] :is(.track-summary,.track-details,.track-disclosure,.subscription-designed .mf-label,.modal-note,.detect-hint,.feedback,.ms-sub,.freq-chip.mail-style-card .mail-style-description,.rss-dialog #rss-dialog-intro,.rss-dialog-note,.rss-feed-caption){color:#b0c1d4}
html[data-news-theme="dark"] .freq-chip.mail-style-card .mail-style-heading{color:var(--ink)}
html[data-news-theme="dark"] .freq-chip.mail-style-card .mail-style-tag{color:var(--accent)}
html[data-news-theme="dark"] :is(.mail-style-preview,.mail-preview-stage){background:#111e2e;border-color:#42536a}
html[data-news-theme="dark"] .rss-dialog .rss-copy-row textarea{background:#142135;color:#c8d6e7;border-color:#43556a}
html[data-news-theme="dark"] .rss-dialog .rss-copy-row button{background:#29443b;color:#d3e8da;border-color:#5c7f6f}
html[data-news-theme="dark"] .feedback[data-state=error]{color:#efb19c}
html[data-news-theme="dark"] .feedback[data-state=ok],html[data-news-theme="dark"] .rss-copy-status{color:#a9d6b7}
/* This sheet also mounts inside the news mascot's open shadow root only. */
:host([data-news-theme="dark"]){color:#b9d5cc;--ink:#cbdef0;--muted:#a8c5bd;--wash:#233a36;--mascot-color:#9dc8ba}
:host([data-news-theme="dark"]) #lyre{stroke:#b0c8e5}
:host([data-news-theme="dark"]) :is(.service-label,.pluck-hint,.rail-top-label,.rail-chapter,.rail-count){color:#afc5c1}
:host([data-news-theme="dark"]) :is(.sound-toggle,.settings-body,.settings-body>button,.pluck-controls button){background:#203630;color:#cee3db;border-color:#536e62}
:host([data-news-theme="dark"]) .messenger-envelope rect{fill:#243e36}
:host([data-news-theme="dark"]) .messenger-envelope{stroke:#a9cebc}
:host([data-news-theme="dark"]) :is(.robot-aside,.central-robot-aside,.toast){background:#233b33!important;color:#e0eee2!important;border-color:#739881!important}
:host([data-news-theme="dark"]) .settings-body small{color:#b0c6ba}
@media(max-width:780px){.news-theme-toggle{width:32px;height:32px;min-width:32px}.news-body .hero-kicker{gap:6px;align-items:flex-start}}
@media(prefers-reduced-motion:reduce){.news-theme-toggle{transition:none}}

html[data-news-theme="dark"] .day.no-sample:not(.sel){background:var(--news-surface)}
html[data-news-theme="dark"] .b-access{background:#273a3d;color:#c2d8d2;border-color:#536e67}
html[data-news-theme="dark"] .b-deadline{background:#483626;color:#f0c9a2;border-color:#8e6b47}
html[data-news-theme="dark"] .modal .chip[aria-pressed=true]{background:#405d79;color:#f0f5fb;border-color:#7a9ab9}
:host([data-news-theme="dark"]) .robot-thumb:not([data-egg-state="burst"]){background:#203630;box-shadow:0 0 0 2px #36584a88,0 3px 9px #0003}
:host([data-news-theme="dark"]) .robot-aside::after{background:#233b33;border-color:#739881}
html[data-news-theme="dark"] .subscription-designed .subscription-next{background:#182536f5;border-color:var(--line)}

html[data-news-theme="dark"] .row .entry-times{background:#203145;border-color:#3e536c}html[data-news-theme="dark"] .row .entry-times dt{color:#a4b7ce}html[data-news-theme="dark"] .row .entry-times dd{color:#d6e4f3}html[data-news-theme="dark"] .track-sec[aria-labelledby="section-perks"] .entry-times{background:#342f25;border-color:#62533a}html[data-news-theme="dark"] .track-sec[aria-labelledby="section-perks"] .entry-times dd{color:#ebc78e}

html[data-news-theme="dark"] :is(.news-search,.reader-filter-toggle,.reader-filters){background:var(--news-surface);border-color:var(--line);color:var(--ink)}
html[data-news-theme="dark"] .news-search:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px #abc6e819}
html[data-news-theme="dark"] :is(.news-search>svg,.reader-filter-toggle>svg,.news-search button){color:var(--blue)}
html[data-news-theme="dark"] .reader-filter-toggle[aria-expanded=true]{background:var(--news-raised);border-color:var(--blue)}
