/* CEAS / Institutional visual unity: black, white, red only. No image colour transformations. */
:root{
 --ceas-black:#060606;--ceas-panel:#101010;--ceas-white:#ffffff;
 --ceas-ink:#080808;--ceas-graphite:#111111;--ceas-raised:#1b1b1b;
 --ceas-paper:#f6f6f6;--ceas-secondary:#c2c2c2;--ceas-hint:#9d9d9d;
 --ceas-signal:#c80000;--ceas-signal-bright:#e00000;--ceas-rule:rgba(255,255,255,.14);
 --ceas-surface:#111111;--ceas-muted:#a3a3a3;--black:#050505;--black2:#080808;
 --panel:#101010;--panel2:#151515;--white:#ffffff;--soft:#c8c8c8;--muted:#aaaaaa;
 --ceas-accent:#c80000;--ceas-line:rgba(255,255,255,.16);
 --red:#c80000;--red2:#e00000;--orange:#c80000;
 --blue:#c80000;--green:#c80000;--cyan:#c80000;
 --glow:rgba(200,0,0,.19);
}
html{color-scheme:dark;scroll-behavior:smooth}
body{background-color:var(--ceas-black);color:#f9f9f9}
:is(.masthead,.library-topbar,.topbar,.stream-hero,.library-pane,.editor-pane,.article-card,.stream-card,.story-card,.library-card,.panel,.rail-card){border-color:var(--ceas-line)}
:is(.library-card,.stream-card,.story-card,.panel,.rail-card){min-width:0;overflow:hidden}
:is(.library-card,.stream-card,.story-card) :is(h2,h3,p){overflow-wrap:anywhere}
:is(.library-card,.stream-card,.story-card) :is(img,video){max-width:100%;height:auto;object-fit:contain}
:is(.lang-switch,.ceas-global-lang,.ceas-v72-lang,.filter-row){display:flex;flex-wrap:wrap;gap:8px;align-items:center}
:where(button,select,input,textarea,a):focus-visible{outline:2px solid #e00000;outline-offset:3px}
:where(button,select,input,textarea){accent-color:#c80000}
:where(button,select){touch-action:manipulation}
:where(.stream-filters,.filter-row,.library-tools) select{min-height:44px;max-width:100%;background:#101010;color:#ffffff;border:1px solid var(--ceas-line);border-radius:4px;padding:9px 12px}
:where(.ceas-v72-lang,.ceas-global-lang) button{background:#101010;border:1px solid var(--ceas-line);color:#ffffff;min-height:40px;min-width:46px;border-radius:3px;font-weight:700;cursor:pointer}
:where(.ceas-v72-lang,.ceas-global-lang) button:is(.active,[aria-pressed="true"]){background:#c80000;border-color:#e00000;color:white}
:is(.library-card-meta,.stream-card small,.library-card-evidence,.story-meta){color:#c5c5c5}
:where(.tag,.badge,.status,.tag-pill){border-color:var(--ceas-line)}
:where(.library-list,.stream-grid,.story-grid){min-width:0}
:where(.library-list,.stream-grid,.story-grid)>*{min-width:0}
@media(max-width:720px){.filter-row select{width:100%}.mast-actions,.stream-filters,.library-tools{gap:10px}.ceas-v72-lang{width:100%}.ceas-v72-lang button{flex:1}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Institutional neutral materials: never tint the UI blue or green. Photography stays original. */
html body .masthead{background:rgba(7,7,7,.96)!important}
html body .hero-v45{background:radial-gradient(ellipse at 74% 48%,rgba(200,0,0,.08),transparent 40%),#080808!important}
:where(.library-topbar,.stream-brief,.v42-signalbar,.v42-instrument-dock,.article-top,.audio-topbar){background-color:#0b0b0b!important}
:where(.library-card,.stream-card,.story-card,.v42-metric-card,.rail-card,.news-card){background-color:#111111!important}
:where(.ceas-editor-language-card,.registry-stats,.filter-row,.stream-filters){border-color:rgba(255,255,255,.16)!important}
:where(.library-topbar,.library-nav,.stream-filters,.v42-ops,.stream-brief){color:#f6f6f6}
:where(.status-ok,.state-ready,.confidence-high,.level-low,.level-medium,.level-high){color:#e00000!important}
