/* Version B, "Cinema": dark, full-bleed fly-through hero, visual first */
:root { --ink: #e9ecf3; --ink-2: #b4bac8; --ink-3: #8a91a2; --line: #2a2f3b; --bg: #0e1015; --bg-2: #141720; --accent: #6aa8ff; color-scheme: dark; }
body { background: var(--bg); color: var(--ink); }
a { color: var(--accent); }
section:nth-of-type(even) { background: var(--bg-2); }
.topnav { background: rgba(14, 16, 21, 0.86); border-bottom-color: var(--line); }
.topnav .brand { color: var(--ink); }
code { background: #1d212b; color: #dfe3ec; }
.btn { background: #f2f4f8; color: #0e1015; border-color: #f2f4f8; }
.btn.ghost { background: transparent; color: var(--ink); border-color: #5b6273; }
.chip, .mbtn, .mspeeds, .explorer, .viewer, .info, .plot-card, .explore, .scene-card, .capture-land figure, .capture-port figure, .valley-chart, table.data, .figure-wide img, .finding img { background: #161a23 !important; border-color: var(--line) !important; color: var(--ink); }
.chip[aria-pressed="true"], .mspeeds button[aria-pressed="true"] { background: #f2f4f8 !important; color: #0e1015 !important; border-color: #f2f4f8 !important; }
.mspeeds button { color: var(--ink-2); }
table.data th { background: #1b1f29; color: var(--ink-2); }
table.data td, table.data th { border-bottom-color: var(--line); }
.disclosure.gen { background: #2a1d10; border-left-color: #d9822b; }
.placeholder { background: #4a3c12; color: #f6e7b8; }
.figure-wide img, .finding img { background: #fff !important; }   /* paper figures stay on white */
.info .cfg-id, .info .names { background: #1d212b; color: var(--ink-2); }
pre.bib { background: #05060a; }
footer { color: var(--ink-3); }
.valley-plot svg text { fill: var(--ink-2); }
.version-switch { background: rgba(20,23,32,0.9); border-color: var(--line); }
.version-switch a { color: var(--ink); }
.version-switch a[aria-current="page"] { background: #f2f4f8; color: #0e1015; }
/* SSIM badges stay dark-on-white; chart grid recedes on the dark background */
.vcell .score { color: #0e1015; }
.valley-plot svg line[stroke="#eef0f4"] { stroke: #2a2f3b; }
.theme-toggle { background: rgba(20,23,32,0.9); border-color: var(--line); color: var(--ink); }
.steps li::before { color: #0e1015; }   /* dark text on the light-blue circle */
.req-menu { background: #11141b; border-color: var(--line); }
/* popups (chart readout, camera-name tooltip, toast): dark box, light text; var(--ink) is light in this theme */
.valley-tip, .tooltip, .toast { background: #1c2130; color: #e9ecf3; border: 1px solid #3a4152; box-shadow: 0 6px 20px rgba(0,0,0,.45); }
/* per-scene analysis: lighter method colours on the dark background */
:root { --m-nerf: #b592e6; --m-dsnerf: #4cc35a; --m-adgs: #5aa9ff; --m-3dgs: #ffa04d; --m-dropgs: #ff6b66; }
.ps .ps-cam.train path, .ps .ps-guide-cam { fill: var(--accent); }
.ps .ps-dot { stroke: #161a23; }
.ps .ps-label b { color: #0e1015; }
table.ps-mean .on { background: #1f2430 !important; }
