@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600;700&family=Unbounded:wght@500;600&display=swap');
/* ScreenBridge brand 1.0 — "on air" red.
   Red marks three things only: the brand, the main action of a view, and what is live on a screen.
   Everything else is graphite. Rules are scoped to html[data-sbr] so they outrank the old theme rules. */
:root{
 --sbr-red:#d3182d;--sbr-red-strong:#b01222;--sbr-red-ink:#a3101f;--sbr-red-tint:#fdedef;--sbr-red-line:#f4c4ca;
 --sbr-console:#141519;--sbr-console-2:#22232a;--sbr-console-line:#26272d;--sbr-console-text:#a4a6ae;
 --sbr-ring:0 0 0 3px rgba(211,24,45,.22);
 --sbr-ink:#18191d;--sbr-ink-on:#fff;--sbr-field-line:#cdced5;
}
:root[data-sbr][data-resolved-theme]{--navy:#17181c;--blue:#d3182d;--blue2:#b01222;--bg:#f3f3f5;--card:#fff;--text:#18191d;--muted:#666973;--border:#e3e3e8;--shadow:0 1px 2px rgba(20,21,25,.05)}
:root[data-sbr][data-resolved-theme="dark"]{
 --sbr-red:#ec3347;--sbr-red-strong:#d4243a;--sbr-red-ink:#ff8d9a;--sbr-red-tint:rgba(236,51,71,.14);--sbr-red-line:rgba(236,51,71,.4);
 --sbr-console:#09090b;--sbr-console-2:#1b1c21;--sbr-console-line:#1f2025;--sbr-console-text:#9c9ea7;
 --sbr-ring:0 0 0 3px rgba(236,51,71,.3);
 --sbr-ink:#2a2b31;--sbr-ink-on:#f1f1f3;--sbr-field-line:#35363e;
 --navy:#f2f2f4;--blue:#ec3347;--blue2:#d4243a;--bg:#0e0f12;--card:#17181c;--text:#f1f1f3;--muted:#a0a2ab;--border:#2a2b31;--shadow:none;
}

/* Type: Golos Text for reading; Unbounded only where the brand speaks — wordmark, page titles, big numbers. */
body,button,input,select,textarea{font-family:'Golos Text',system-ui,-apple-system,'Segoe UI',sans-serif}
:root[data-sbr][data-resolved-theme] .page-head h1,:root[data-sbr][data-resolved-theme] .brand,:root[data-sbr][data-resolved-theme] .metric-value,:root[data-sbr][data-resolved-theme] .auth-card h1{font-family:'Unbounded','Golos Text',system-ui,sans-serif!important}
:root[data-sbr][data-resolved-theme] .page-head h1{font-weight:600!important;letter-spacing:-.4px!important;font-size:clamp(22px,1.8vw,28px)!important}
:root[data-sbr][data-resolved-theme] .metric-value{font-weight:600!important;letter-spacing:-.6px!important}
:root[data-sbr][data-resolved-theme] .page-head .kicker{display:none}
:root[data-sbr][data-resolved-theme] .kicker,:root[data-sbr][data-resolved-theme] .sb-eyebrow,:root[data-sbr][data-resolved-theme] .sb-editor-eyebrow,:root[data-sbr][data-resolved-theme] .sb-device-kicker,:root[data-sbr][data-resolved-theme] .sb-guide-kicker,:root[data-sbr][data-resolved-theme] .layout-gallery-modal-kicker{text-transform:none!important;letter-spacing:0!important;font-size:12px!important;font-weight:600!important}
:root[data-sbr][data-resolved-theme] .nav-caption,:root[data-sbr][data-resolved-theme] th,:root[data-sbr][data-resolved-theme] .badge,:root[data-sbr][data-resolved-theme] .tiny-chip{text-transform:none!important;letter-spacing:0!important}
:root[data-sbr][data-resolved-theme] th{font-size:12px!important;font-weight:600!important;color:var(--muted)!important}
:root[data-sbr][data-resolved-theme] .btn{font-weight:600!important;letter-spacing:0}

/* The console: graphite sidebar in both themes; the red tally light is the brand mark. */
:root[data-sbr][data-resolved-theme] .sidebar{background:var(--sbr-console)!important;border-right:1px solid var(--sbr-console-line)!important;color:var(--sbr-console-text)!important}
:root[data-sbr][data-resolved-theme] .brand{color:#fff!important;font-weight:600!important;font-size:15px!important;letter-spacing:-.3px!important}
:root[data-sbr][data-resolved-theme] .brand span,:root[data-sbr][data-resolved-theme] .brand span span{color:inherit!important}
:root[data-sbr][data-resolved-theme] .brandmark{background:var(--sbr-red)!important;color:#fff!important;border-radius:10px!important;box-shadow:0 0 0 4px rgba(211,24,45,.18),0 0 22px rgba(236,51,71,.5)!important}
:root[data-sbr][data-resolved-theme] .nav-caption{color:#6f717b!important;font-size:11px!important;font-weight:600!important}
:root[data-sbr][data-resolved-theme] .nav{color:var(--sbr-console-text)!important;background:transparent!important;font-weight:600!important;position:relative}
:root[data-sbr][data-resolved-theme] .nav .nav-icon,:root[data-sbr][data-resolved-theme] .nav .nav-icon svg{color:inherit!important;background:transparent!important}
:root[data-sbr][data-resolved-theme] .nav:hover{background:var(--sbr-console-2)!important;color:#fff!important}
:root[data-sbr][data-resolved-theme] .nav.active{background:var(--sbr-console-2)!important;color:#fff!important}
:root[data-sbr][data-resolved-theme] .nav.active .nav-icon,:root[data-sbr][data-resolved-theme] .nav.active .nav-icon svg{color:var(--sbr-red)!important}
:root[data-sbr][data-resolved-theme] .nav.active::before{content:"";position:absolute;left:-13px;top:10px;bottom:10px;width:4px;border-radius:0 4px 4px 0;background:var(--sbr-red);box-shadow:0 0 12px var(--sbr-red)}
:root[data-sbr][data-resolved-theme] .sidebar-bottom,:root[data-sbr][data-resolved-theme] .sb-side-bottom{background:transparent!important;color:var(--sbr-console-text)!important;border:1px solid var(--sbr-console-line)!important}

/* Chrome around the content stays quiet. */
:root[data-sbr][data-resolved-theme] .top-left,:root[data-sbr][data-resolved-theme] .top-title{min-width:0}
:root[data-sbr][data-resolved-theme] .top-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:root[data-sbr][data-resolved-theme] .tiny-chip,:root[data-sbr][data-resolved-theme] .topuser{white-space:nowrap}
:root[data-sbr][data-resolved-theme] .field input:not([type=checkbox]):not([type=radio]):not(:focus),:root[data-sbr][data-resolved-theme] .field select:not(:focus),:root[data-sbr][data-resolved-theme] .field textarea:not(:focus),:root[data-sbr][data-resolved-theme] .toolbar .search:not(:focus),:root[data-sbr][data-resolved-theme] .toolbar select:not(:focus){border-color:var(--sbr-field-line)!important}
:root[data-sbr][data-resolved-theme] .topbar{background:var(--card)!important;border-bottom:1px solid var(--border)!important}
:root[data-sbr][data-resolved-theme] .avatar{background:var(--sbr-red)!important;color:#fff!important}

/* Actions: one red per view — the primary button. */
:root[data-sbr][data-resolved-theme] .btn.primary{background:var(--sbr-red)!important;border-color:var(--sbr-red)!important;color:#fff!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 6px 14px -8px rgba(211,24,45,.7)!important}
:root[data-sbr][data-resolved-theme] .btn.primary:hover{background:var(--sbr-red-strong)!important;border-color:var(--sbr-red-strong)!important}
:root[data-sbr][data-resolved-theme] .btn:not(.primary):not(.danger):hover{border-color:var(--sbr-red-line)!important;color:var(--sbr-red-ink)!important}
:root[data-sbr][data-resolved-theme] .btn.danger{background:transparent!important;color:var(--sbr-red-ink)!important;border-color:var(--sbr-red-line)!important}
:root[data-sbr][data-resolved-theme] .btn.danger:hover{background:var(--sbr-red-tint)!important}
/* Inside card grids the per-card action is graphite, so the page keeps a single red call to action. */
:root[data-sbr][data-resolved-theme] .playlist-catalog-card .btn.primary,:root[data-sbr][data-resolved-theme] .layout-gallery-card .btn.primary{background:var(--sbr-ink)!important;border-color:var(--sbr-ink)!important;color:var(--sbr-ink-on)!important;box-shadow:none!important}
:root[data-sbr][data-resolved-theme] .playlist-catalog-card .btn.primary:hover,:root[data-sbr][data-resolved-theme] .layout-gallery-card .btn.primary:hover{background:var(--sbr-red)!important;border-color:var(--sbr-red)!important;color:#fff!important}
:root[data-sbr][data-resolved-theme] .btn.sb-stop-play{background:transparent!important;color:var(--text)!important;border-color:var(--border)!important}
:root[data-sbr][data-resolved-theme] :focus-visible{outline:2px solid var(--sbr-red)!important;outline-offset:2px}
:root[data-sbr][data-resolved-theme] input:focus,:root[data-sbr][data-resolved-theme] select:focus,:root[data-sbr][data-resolved-theme] textarea:focus{border-color:var(--sbr-red)!important;box-shadow:var(--sbr-ring)!important;outline:none}

/* Status language: green = connected, grey = not connected, red = on air. */
:root[data-sbr][data-resolved-theme] .badge.bad{background:transparent!important;color:var(--muted)!important;box-shadow:inset 0 0 0 1px var(--border)!important}
:root[data-sbr][data-resolved-theme] .badge.blue{background:var(--sbr-red-tint)!important;color:var(--sbr-red-ink)!important}
:root[data-sbr][data-resolved-theme] .sb-playback-playing{color:var(--sbr-red-ink)!important;background:var(--sbr-red-tint)!important;border:1px solid var(--sbr-red-line)!important;border-radius:999px!important;padding:3px 10px 3px 8px!important;display:inline-flex!important;align-items:center;gap:6px}
:root[data-sbr][data-resolved-theme] .sb-playback-playing::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--sbr-red);animation:sbr-onair 1.8s ease-out infinite;flex:none}
@keyframes sbr-onair{0%{box-shadow:0 0 0 0 rgba(236,51,71,.55)}70%{box-shadow:0 0 0 6px rgba(236,51,71,0)}100%{box-shadow:0 0 0 0 rgba(236,51,71,0)}}
@media (prefers-reduced-motion:reduce){:root[data-sbr][data-resolved-theme] .sb-playback-playing::before{animation:none}}

/* Surfaces: flat cards on a neutral canvas — borders, not shadows. */
:root[data-sbr][data-resolved-theme] .panel,:root[data-sbr][data-resolved-theme] .metric,:root[data-sbr][data-resolved-theme] .overview-card,:root[data-sbr][data-resolved-theme] .asset-card,:root[data-sbr][data-resolved-theme] .layout-gallery-card,:root[data-sbr][data-resolved-theme] .playlist-catalog-card,:root[data-sbr][data-resolved-theme] .sb-quick,:root[data-sbr][data-resolved-theme] .sb-home{box-shadow:none!important}
:root[data-sbr][data-resolved-theme] .layout-gallery-filter.is-active{background:var(--sbr-red-tint)!important;color:var(--sbr-red-ink)!important;box-shadow:inset 0 0 0 1px var(--sbr-red-line)!important}
:root[data-sbr][data-resolved-theme] .playlist-poster{background:radial-gradient(120% 95% at 50% 0%,#2e2f36 0%,#16171b 72%)!important}
:root[data-sbr][data-resolved-theme] .metric-icon{background:var(--bg)!important;color:var(--muted)!important}
:root[data-sbr][data-resolved-theme] .mini-tab.active,:root[data-sbr][data-resolved-theme] .mini-tabs .active,:root[data-sbr][data-resolved-theme] .channel-studio-tabs .active{background:var(--sbr-red-tint)!important;color:var(--sbr-red-ink)!important;border-color:var(--sbr-red-line)!important}
/* Sign-in: the console is the backdrop, the tally glows behind the card. */
:root[data-sbr][data-resolved-theme] .auth-page{background:radial-gradient(55% 45% at 50% 40%,rgba(211,24,45,.18),rgba(211,24,45,0) 70%),var(--sbr-console)!important}
:root[data-sbr][data-resolved-theme] .auth-card{border:1px solid var(--sbr-console-line)!important;box-shadow:0 40px 90px -40px rgba(0,0,0,.75)!important}
:root[data-sbr][data-resolved-theme] .auth-card .brand{color:var(--text)!important;font-size:17px!important;gap:0!important}
:root[data-sbr][data-resolved-theme] .auth-card .brandmark{margin-right:10px}
:root[data-sbr][data-resolved-theme] .auth-card h1{font-weight:600!important;letter-spacing:-.4px!important}
::selection{background:rgba(211,24,45,.2)}
@media (max-width:900px){:root[data-sbr][data-resolved-theme] .nav.active::before{display:none}}
