/* Day mode: hand-set details on top of theme-light.css (generated by living/theme_light.py from the night stylesheets).
   Keep this short: most day colours follow the night design through the generator. Every selector starts with
   html[data-theme][data-mode="light"], so it outweighs the generated rules (same weight, later in the page). */
html[data-theme][data-mode="light"]{color-scheme:light}
/* the directions disc: the centre names sit on a pale glow in day mode */
html[data-theme][data-mode="light"] .sky-system .sky-sun-name,html[data-theme][data-mode="light"] .sky-system .sky-sun-count{fill:#10201c}
html[data-theme][data-mode="light"] ::selection{background:#cfe8df;color:#10201c}
html[data-theme][data-mode="light"] .sky-system .sky-sun-name,html[data-theme][data-mode="light"] .sky-system .sky-sun-count{paint-order:stroke;stroke:rgba(255,255,255,.85);stroke-width:3px;stroke-linejoin:round}
/* the home sky: names in their galaxy's deeper colour with a white halo; the left scrim keeps the headline readable */
html[data-theme][data-mode="light"] .hs-label{color:color-mix(in srgb,var(--c) 38%,#0c1d19);text-shadow:0 0 2px #fff,0 0 5px #fff,0 0 9px rgba(255,255,255,.9)}
html[data-theme][data-mode="light"] .hs-label:hover,html[data-theme][data-mode="light"] .hs-label:focus-visible{color:#10201c;outline-color:rgba(23,107,86,.6)}
html[data-theme][data-mode="light"] .hs-scrim{background:linear-gradient(90deg,rgba(255,255,255,.88) 0%,rgba(255,255,255,.6) 32%,rgba(255,255,255,0) 58%)}
/* chapter tabs: the number on the active (green) tab */
html[data-theme][data-mode="light"] .bd-tabs button.is-on span{color:#e3f3ed;opacity:1}
/* canvases drawn for the night sky (star map, cluster and paper 3-D views, team maps): inverted lightness, hues kept.
   The home sky and the evolution film draw their own day colours. */
html[data-theme][data-mode="light"] canvas:not(.hs-canvas):not(#rq-canvas):not(.st-canvas){filter:invert(1) hue-rotate(180deg) saturate(.75) brightness(1.03)}
/* layers (owner, 2026-11-12: "太惨白了，分层也没有很明确"): a white header with a soft edge, tinted bands for the heads of
   pages and boards, white cards with shadows (theme_light.py), shaded table heads */
html[data-theme][data-mode="light"] body{background:#e9efec}
html[data-theme][data-mode="light"] header.site-header{background:#ffffff;box-shadow:0 1px 0 rgba(16,38,33,.06),0 2px 12px rgba(16,38,33,.05)}
html[data-theme][data-mode="light"] .bd-hero,html[data-theme][data-mode="light"] .fd-hero,html[data-theme][data-mode="light"] .tg-topic-hero,html[data-theme][data-mode="light"] .tg-directory-hero{background:linear-gradient(120deg,#dff0e8 0%,#e8f2f6 55%,#f4f0e4 100%);border-color:transparent;box-shadow:0 1px 2px rgba(16,38,33,.06),0 6px 20px rgba(16,38,33,.07)}
html[data-theme][data-mode="light"] .bd-hero .hero-stat,html[data-theme][data-mode="light"] .bd-hero [class*="kpi"],html[data-theme][data-mode="light"] .fd-hero .hero-stat{background:rgba(255,255,255,.85);border-color:transparent;box-shadow:0 1px 2px rgba(16,38,33,.06)}
html[data-theme][data-mode="light"] .pagehead{background:linear-gradient(120deg,#dff0e8 0%,#e8f2f6 60%,rgba(233,239,236,0) 100%);border-radius:18px;padding:22px 26px;margin-top:18px}
html[data-theme][data-mode="light"] .pagehead .stamp{background:#ffffff;border-color:transparent;box-shadow:0 1px 2px rgba(16,38,33,.06)}
html[data-theme][data-mode="light"] table thead th{background:#f1f5f3}
html[data-theme][data-mode="light"] h1,html[data-theme][data-mode="light"] h2{color:#0c1d19}
/* key views: the day steps of the categorical palette (dataviz reference, light column) */
html[data-theme][data-mode="light"] .kv{--kv-s1:#2a78d6;--kv-s2:#eb6834;--kv-s3:#1baf7a;--kv-s4:#eda100;--kv-s5:#e87ba4;--kv-s6:#008300;--kv-s7:#6250d6;--kv-s8:#e34948;--kv-muted:#a9b6b2;--kv-surface:#ffffff}
html[data-theme][data-mode="light"] .kv-svg text.kv-seglabel{fill:#0c1d19}
html[data-theme][data-mode="light"] .kv-matrix .kv-cell{fill:#2a78d6}
html[data-theme][data-mode="light"] .kv-svg .kv-dot.is-b{fill:#176b56}
html[data-theme][data-mode="light"] .an-fbar em{color:#ffffff}
html[data-theme][data-mode="light"] .an-fbar em.on-light{color:#0c1d19}
html[data-theme][data-mode="light"] text.lg-nowname{stroke:#ffffff}
/* the observatory (整体分析): day tokens. The stage is a pale sky with deep, saturated dots (stage.js draws them). */
html[data-theme][data-mode="light"] .ob{--ob-ink:#0c1d19;--ob-muted:#52675f;--ob-line:rgba(16,38,33,.13);--ob-panel:#ffffff;--ob-accent:#176b56;--ob-accent-ink:#ffffff;--ob-pill:rgba(255,255,255,.93);--ob-chip:rgba(16,38,33,.045);--ob-on:#eef6f2;
  --ob-stage:radial-gradient(120% 95% at 50% 35%,#ffffff 0%,#f3f8fb 55%,#e4edf3 100%);--ob-shadow:0 1px 2px rgba(16,38,33,.06),0 10px 30px rgba(16,38,33,.09)}
html[data-theme][data-mode="light"] .ob{--ob-up:#12804a;--ob-down:#c2432f;--ob-heat:40%;--ob-hatch:rgba(16,38,33,.22);--ob-none:#93a39e}
html[data-theme][data-mode="light"] .dm-comp .is-unl{color:#0c1d19}
html[data-theme][data-mode="light"] .ob-rail,html[data-theme][data-mode="light"] .ob-detail.kv{box-shadow:0 1px 2px rgba(16,38,33,.06),0 6px 20px rgba(16,38,33,.06)}
html[data-theme][data-mode="light"] .bd-deep{background:#ffffff;border-color:rgba(16,38,33,.1)}
/* the directions disc in day mode (owner, 2026-11-14: too pale): a tinted plate, firmer rings and sectors, solid stars */
html[data-theme][data-mode="light"] svg.sky-system{background:radial-gradient(closest-side,#ffffff 0%,#f6fafc 48%,#e9f1f5 78%,rgba(233,241,245,0) 84%)}
html[data-theme][data-mode="light"] .sky-ring{stroke:rgba(16,38,33,.17)}
html[data-theme][data-mode="light"] .sky-ring-tick{stroke:rgba(16,38,33,.16)}
html[data-theme][data-mode="light"] .sky-sector{stroke:rgba(16,38,33,.16)}
html[data-theme][data-mode="light"] .sky-sector:hover{fill:rgba(23,107,86,.06)}
html[data-theme][data-mode="light"] .sky-sector.is-on{fill:rgba(23,107,86,.07);stroke:rgba(23,107,86,.55)}
html[data-theme][data-mode="light"] .sky-sector.is-picked{fill:rgba(23,107,86,.1);stroke:#176b56}
html[data-theme][data-mode="light"] .sky-sys-star{opacity:1}
html[data-theme][data-mode="light"] .sky-sys-star.is-attached{opacity:.6}
html[data-theme][data-mode="light"] .sky-sys-star:hover{stroke:#0c1d19}
html[data-theme][data-mode="light"] .sky-sector-label{fill:#1c332d}
html[data-theme][data-mode="light"] .sky-ring-label,html[data-theme][data-mode="light"] .sky-sector-count{fill:#5b7069}

/* the profile of one resource: its own palette, set by hand (the generator would turn the faint chips into deep tones) */
html[data-theme][data-mode="light"] dialog.rp{--ink:#0c1d19;--muted:#52675f;--line:rgba(16,38,33,.13);--panel:#ffffff;--accent:#176b56;--accent-ink:#ffffff;--chip:rgba(16,38,33,.05);background:#f4f8f5;color:#0c1d19}
html[data-theme][data-mode="light"] dialog.rp .rp-quote,html[data-theme][data-mode="light"] dialog.rp .rp-tag,html[data-theme][data-mode="light"] dialog.rp .rp-btn,html[data-theme][data-mode="light"] dialog.rp .rs-dir{background:var(--chip);color:var(--ink);border-color:var(--line)}
html[data-theme][data-mode="light"] dialog.rp .rp-btn.is-main{background:var(--accent);color:var(--accent-ink)}
html[data-theme][data-mode="light"] dialog.rp .rp-sec,html[data-theme][data-mode="light"] dialog.rp .rp-tile,html[data-theme][data-mode="light"] dialog.rp .rp-close{background:var(--panel);color:var(--ink);border-color:var(--line)}
html[data-theme][data-mode="light"] dialog.rp .rp-papers .textlink{color:var(--ink);background:none;border:0}
html[data-theme][data-mode="light"] dialog.rp .rp-papers .textlink:hover{color:var(--accent)}
html[data-theme][data-mode="light"] dialog.rp .rp-head{background:transparent}
html[data-theme][data-mode="light"] dialog.rp .rp-rank b{color:var(--accent)}
/* the home sky: the theme legend sits over the lower stars; opaque chips keep their names readable */
html[data-theme][data-mode="light"] .view-home .hs-legend button{background:#ffffff;border-color:rgba(16,38,33,.16)}
