/* CYNEX × GreenYellow — Shared Control-Room Theme */
:root{
  --void:#060D1A; --surface:#0D1F3C; --surf2:#112348; --surf3:#162D58;
  --teal:#00D4B4; --teal2:#00A896; --teal-bg:rgba(0,212,180,0.08);
  --gy-green:#8BC53F; --gy-green-bg:rgba(139,197,63,0.1);
  --amber:#F59E0B; --amber-bg:rgba(245,158,11,0.1);
  --red:#EF4444; --red-bg:rgba(239,68,68,0.1);
  --green:#10B981; --green-bg:rgba(16,185,129,0.08);
  --ice:#CBD5E1; --muted:#64748B; --dim:#334155;
  --border:rgba(0,212,180,0.12); --border2:rgba(203,213,225,0.08);
  --mono:'Courier New','Consolas',monospace; --sans:-apple-system,'Segoe UI',sans-serif;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{background:var(--void);color:var(--ice);font-family:var(--sans);font-size:13px;line-height:1.5;overflow:hidden}
body::before{content:'';position:fixed;inset:0;background:repeating-linear-gradient(0deg,transparent,transparent 2px,rgba(0,0,0,0.06) 2px,rgba(0,0,0,0.06) 4px);pointer-events:none;z-index:1000}
.shell{display:flex;height:100vh;width:100vw}

/* Sidebar */
.nav-logo{width:44px;height:44px;display:flex;align-items:center;justify-content:center;margin-bottom:8px;padding:4px;border-radius:9px}
.nav-logo img{width:100%;height:auto;filter:drop-shadow(0 0 6px rgba(0,168,150,.4))}
.sidebar{width:60px;flex-shrink:0;background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column;align-items:center;padding:12px 0;gap:4px;position:relative;z-index:10}
.brand-mark{width:42px;height:42px;display:flex;align-items:center;justify-content:center;margin-bottom:14px;padding:2px;border-radius:9px;text-decoration:none}
.brand-mark img{width:100%;height:auto;filter:drop-shadow(0 0 6px rgba(0,168,150,.45))}
.nav-icon{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:8px;cursor:pointer;color:var(--muted);font-size:16px;transition:all .15s;text-decoration:none;position:relative}
.nav-icon:hover{background:var(--surf2);color:var(--ice)}
.nav-icon.active{background:var(--teal-bg);color:var(--teal)}
.nav-icon.active::before{content:'';position:absolute;left:-2px;top:9px;bottom:9px;width:2px;background:var(--teal);border-radius:0 1px 1px 0}
.nav-icon .lbl{position:absolute;left:52px;background:var(--surf3);border:1px solid var(--border);padding:4px 10px;border-radius:5px;white-space:nowrap;font-size:11px;opacity:0;pointer-events:none;transition:opacity .15s;z-index:100}
.nav-icon:hover .lbl{opacity:1}
.nav-spacer{flex:1}
.sidebar-alert{width:8px;height:8px;border-radius:50%;background:var(--red);position:absolute;top:6px;right:8px;box-shadow:0 0 6px var(--red);animation:pulse-dot 2s ease-in-out infinite}
@keyframes pulse-dot{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.3)}}

/* Main */
.main{flex:1;display:flex;flex-direction:column;overflow:hidden;min-width:0}
.topbar{height:48px;flex-shrink:0;background:var(--surface);border-bottom:1px solid var(--border);display:flex;align-items:center;padding:0 18px;gap:16px}
.tb-brand{font-family:var(--mono);font-size:14px;font-weight:700;color:var(--teal);letter-spacing:.06em}
.tb-brand b{color:var(--gy-green)}
.tb-sep{width:1px;height:22px;background:var(--dim)}
.tb-site{font-size:11px;color:var(--muted)}
.tb-page{font-size:13px;font-weight:600;color:var(--ice)}
.live-badge{display:flex;align-items:center;gap:5px;font-size:10px;font-weight:700;color:var(--green);letter-spacing:.08em}
.live-dot{width:6px;height:6px;border-radius:50%;background:var(--green);animation:pulse-dot 2s infinite}
.tb-spacer{flex:1}
.tb-time{font-family:var(--mono);font-size:12px;color:var(--ice)}
.tb-irr{font-size:11px;color:var(--muted);background:var(--surf2);padding:3px 10px;border-radius:4px}
.tb-irr b{color:var(--amber);font-family:var(--mono)}

/* generic */
.content{flex:1;overflow:auto;padding:16px}
.section-hdr{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.section-title{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.legend{display:flex;gap:12px}
.leg{display:flex;align-items:center;gap:4px;font-size:9px;color:var(--muted)}
.leg-dot{width:7px;height:7px;border-radius:50%}
::-webkit-scrollbar{width:5px;height:5px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:var(--dim);border-radius:3px}

/* status colors */
.g{color:var(--green)!important}.a{color:var(--amber)!important}.r{color:var(--red)!important}.t{color:var(--teal)!important}
