@font-face { font-family: 'Chakra Petch'; font-weight: 400; font-display: swap; src: url(/fonts/chakra-petch-400.woff2) format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-weight: 500; font-display: swap; src: url(/fonts/chakra-petch-500.woff2) format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-weight: 600; font-display: swap; src: url(/fonts/chakra-petch-600.woff2) format('woff2'); }
@font-face { font-family: 'Michroma'; font-weight: 400; font-display: swap; src: url(/fonts/michroma.woff2) format('woff2'); }
:root { --lcg-blue-500: #3D7FCB; --lcg-blue-400: #5A95D6; --lcg-blue-300: #8CB6E8; --lcg-blue-100: #D6E5F7; --navy-900: #0A1322; --navy-800: #14213A; --navy-600: #24375A;
  --ph: var(--lcg-blue-500); --ph-rgb: 61,127,203; --live: #5fb3ff; --needs: #ff4d6d; --done: #7fd6a4; --gold: #f2c66d; --muted: #a3a9b3; --tc: #ff9f43;
  --sans: 'Chakra Petch', system-ui, sans-serif; --title: 'Michroma', sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; touch-action: pan-x pan-y; overscroll-behavior: none; background: var(--navy-900); color: #f4f5f7; font: 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
button, input, select { font: inherit; color: inherit; }
.muted { color: var(--muted); }

/* Screens: sign-in etc. */
.screen { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(ellipse at 50% 0%, rgba(61,127,203,.18), transparent 60%), var(--navy-900); }
.card { border-radius: 10px; background: rgba(9,11,15,.9); box-shadow: 0 0 0 1.5px rgba(var(--ph-rgb),.55), 0 0 0 3px rgba(0,0,0,.85), 0 0 24px rgba(var(--ph-rgb),.2); }
.login { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 12px; padding: 26px; }
.login h2 { margin: 0; font-size: 20px; }
.login label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.login input, .admin input, .admin select { height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); background: #06080d; }
.login input:focus, .admin input:focus { outline: 2px solid var(--ph); outline-offset: 1px; }
.row2 { display: flex; gap: 8px; } .row2 .btn { flex: 1; }
.msg { min-height: 18px; margin: 0; font-size: 12.5px; color: #ffd2a6; }
.brand { display: flex; align-items: center; gap: 10px; }
.b1 { font: 400 15px/1 var(--title); letter-spacing: .08em; color: #f4f6fb; text-shadow: 0 0 14px rgba(140,182,232,.5); }
.b2 { font: 400 7.5px/1 var(--title); letter-spacing: .42em; color: var(--lcg-blue-300); margin-top: 5px; }
.brand.big .b1 { font-size: 26px; } .brand.big .b2 { font-size: 9px; }

/* App chrome */
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
#gl.drag { cursor: grabbing; } #gl.pick { cursor: pointer; }
#labels { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.scan { position: fixed; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px), radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0,0,0,.55)); }
.top { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); left: 14px; right: 14px; display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-radius: 8px; background: rgba(20,33,58,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--navy-600), 0 0 0 3px rgba(0,0,0,.6), 0 0 20px rgba(var(--ph-rgb),.12); z-index: 5; }
.tabs { display: flex; gap: 6px; margin-left: 8px; }
.tab { height: 32px; padding: 0 14px; border-radius: 5px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.03); font: 600 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.tab i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); box-shadow: 0 0 8px var(--c); }
.tab.on { color: #fff; border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); box-shadow: 0 0 16px color-mix(in srgb, var(--c) 35%, transparent); }
.reads { margin-left: auto; display: flex; gap: 6px; }
.rd { display: flex; align-items: baseline; gap: 7px; padding: 4px 10px; border: 1px solid rgba(var(--ph-rgb),.35); border-radius: 4px; background: rgba(0,0,0,.45); }
.rd b { font-size: 16px; font-weight: 600; } .rd span { font-size: 9px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.rd.live b { color: var(--live); text-shadow: 0 0 10px rgba(95,179,255,.8); } .rd.rev b { color: var(--gold); } .rd.needs b { color: var(--needs); }
.pill { height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid rgba(242,198,109,.5); background: rgba(242,198,109,.08); color: #ffe3a6; font: 600 10.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: #3c4d6b; }
.pill.blue { border-color: var(--lcg-blue-500); background: rgba(var(--ph-rgb),.1); color: var(--lcg-blue-100); }
.pill.on i { background: var(--live); box-shadow: 0 0 8px var(--live); animation: blink 1s infinite; }
.me { display: flex; flex-direction: column; align-items: flex-end; font-size: 11px; color: var(--muted); line-height: 1.2; }
.link { border: 0; background: none; padding: 0; color: var(--lcg-blue-300); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 11px; }
@keyframes blink { 50% { opacity: .3; } }

.nav { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; gap: 2px; padding: 5px; border-radius: 10px; background: rgba(8,10,16,.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 0 24px rgba(0,0,0,.6); z-index: 5; max-width: calc(100vw - 30px); overflow-x: auto; }
.nav button { height: 30px; padding: 0 12px; border: 0; border-radius: 6px; background: none; color: var(--muted); font: 500 12px var(--sans); white-space: nowrap; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.nav button b { font: 400 9px var(--title); color: var(--tc); }
.nav button:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav button.on { color: #fff; background: color-mix(in srgb, var(--tc) 22%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 60%, transparent); }
.nav .sep { width: 1px; margin: 6px 4px; background: rgba(255,255,255,.12); flex: none; }

.feed { position: fixed; top: 80px; right: 14px; width: 300px; max-height: calc(100vh - 170px); overflow: auto; padding: 12px 14px; border-radius: 8px; background: rgba(20,33,58,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--navy-600); z-index: 4; transition: opacity .3s; }
.feed h4, .drawer h5, .admin h4 { margin: 0 0 8px; display: flex; justify-content: space-between; font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--lcg-blue-100); }
.feed h4 { padding-bottom: 7px; border-bottom: 1px solid var(--navy-600); }
.fe { display: grid; grid-template-columns: 62px 9px 1fr; gap: 7px; padding: 6px 0; font-size: 11.5px; border-top: 1px solid rgba(255,255,255,.05); cursor: pointer; }
.fe:first-of-type { border-top: 0; }
.fe time { color: var(--muted); font-size: 10.5px; } .fe .d { margin-top: 5px; }
.fe b { display: block; font-weight: 500; } .fe span span { color: var(--muted); font-size: 10.5px; }
.d { width: 8px; height: 8px; border-radius: 50%; background: #6b7380; display: inline-block; flex: none; }
.d.live, .d.started, .d.pending { background: var(--live); box-shadow: 0 0 6px var(--live); } .d.ran, .d.done { background: var(--done); } .d.needs, .d.failed { background: var(--needs); } .d.rev { background: var(--gold); }
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.08); font-size: 10.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.help { margin-top: 8px; font-size: 10.5px; color: #7f8794; }

/* Floating 3D labels */
.sign, .tag, .bubble, .zone, .flr { position: absolute; left: 0; top: 0; transform-origin: 50% 100%; white-space: nowrap; -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; }
.sign { pointer-events: auto; cursor: pointer; display: flex; align-items: stretch; border-radius: 6px; overflow: hidden; background: rgba(6,8,14,.86); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 70%, transparent), 0 0 18px color-mix(in srgb, var(--c) 35%, transparent); transition: opacity .4s; }
.sign .n { display: grid; place-items: center; width: 34px; font: 400 15px var(--title); color: var(--navy-900); background: var(--c); }
.sign .n svg { display: block; }
.nav button b.ic { display: inline-flex; } .nav button b.ic svg { display: block; }
.sign .t { padding: 5px 11px 6px; }
.sign .t b { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; }
.sign .t span { font-size: 10.5px; color: var(--muted); }
.sign .t em { font-style: normal; color: var(--live); } .sign .t em.bad { color: var(--needs); }
.sign:hover { box-shadow: 0 0 0 1.5px var(--c), 0 0 26px color-mix(in srgb, var(--c) 60%, transparent); }
.sign.core { --c: var(--lcg-blue-300); } .sign.core .n { font-size: 12px; } .sign.dock { --c: var(--gold); }
.zone { pointer-events: none; font: 400 10px var(--title); letter-spacing: .3em; color: var(--c); text-shadow: 0 0 10px var(--c); opacity: .85; }
.flr { pointer-events: none; font: 600 9px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--c); padding: 1px 6px; border-radius: 3px; background: rgba(0,0,0,.55); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent); }
.tag { pointer-events: auto; cursor: pointer; padding: 3px 8px; border-radius: 5px; font-size: 11px; font-weight: 500; background: rgba(6,8,14,.82); box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.tag small { display: block; font-size: 9.5px; color: var(--muted); }
.tag.live { box-shadow: 0 0 0 1px var(--live), 0 0 12px rgba(95,179,255,.6); } .tag.live small { color: var(--live); }
.tag.ran small { color: #b9e9cd; } .tag.needs { box-shadow: 0 0 0 1px var(--needs); } .tag.needs small { color: var(--needs); }
.tag.hov { box-shadow: 0 0 0 1.5px #fff, 0 0 14px rgba(255,255,255,.4); }
.bubble { pointer-events: none; padding: 4px 9px; border-radius: 7px; font-size: 11px; font-weight: 500; color: #06101e; background: #e8f2ff; box-shadow: 0 0 16px rgba(95,179,255,.8); }

/* Agent drawer */
.drawer { position: fixed; top: 80px; right: 14px; bottom: 74px; width: 370px; z-index: 6; display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; transform: translateX(120%); transition: transform .35s cubic-bezier(.2,.7,.2,1);
  background: linear-gradient(170deg, color-mix(in srgb, var(--tc) 18%, transparent), transparent 30%), #070a12; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--tc) 70%, transparent), 0 0 0 4px rgba(0,0,0,.8), 0 0 30px color-mix(in srgb, var(--tc) 25%, transparent); }
.drawer.open { transform: none; }
.dh { position: relative; display: flex; gap: 12px; align-items: center; padding: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.dh .bot { flex: none; filter: drop-shadow(0 0 8px var(--tc)); }
.k { font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--tc); }
.dh h3 { margin: 2px 0 3px; font-size: 18px; font-weight: 600; line-height: 1.15; }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.st.live { color: var(--live); } .st.ran { color: #b9e9cd; } .st.needs { color: var(--needs); }
.x { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 6px; border: 1px solid rgba(255,255,255,.15); background: rgba(0,0,0,.4); color: var(--muted); cursor: pointer; }
.db { flex: 1; overflow: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 14px; }
.drawer h5 { color: var(--muted); }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.g2 div { padding: 7px 9px; border-radius: 6px; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.g2 span { display: block; font-size: 9px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.g2 b { font-size: 13.5px; font-weight: 600; }
.role { margin: 0; padding-left: 16px; font-size: 12.5px; line-height: 1.5; }
.role li { margin: 2px 0; }
.note { padding: 10px; border-radius: 6px; background: rgba(95,179,255,.08); box-shadow: inset 0 0 0 1px rgba(95,179,255,.6); font-size: 12.5px; }
.note.bad { background: rgba(255,77,109,.08); box-shadow: inset 0 0 0 1px rgba(255,77,109,.6); }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; margin: 2px 4px 2px 0; border-radius: 11px; font-size: 11px; color: #ffe3a6; background: rgba(242,198,109,.1); box-shadow: inset 0 0 0 1px rgba(242,198,109,.35); }
.chip.out { color: #c7f2da; background: rgba(127,214,164,.1); box-shadow: inset 0 0 0 1px rgba(127,214,164,.35); }
.chain div { display: flex; align-items: center; gap: 9px; padding: 4px 0; font-size: 12.5px; }
.chain i { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 2px var(--tc); background: #07101e; }
.chain .me i { background: var(--tc); box-shadow: 0 0 0 2px var(--tc), 0 0 10px var(--tc); } .chain .gd i { box-shadow: 0 0 0 2px var(--gold); }
.runs div { display: grid; grid-template-columns: 74px 1fr; gap: 8px; padding: 5px 0; font-size: 12px; border-top: 1px solid rgba(255,255,255,.06); }
.runs time { color: var(--muted); font-size: 11px; }
.df { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.08); }
.df textarea { width: 100%; min-height: 54px; resize: vertical; padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); background: #06080d; font: inherit; font-size: 12.5px; }
.btn { height: 38px; padding: 0 16px; border-radius: 19px; border: 1px solid rgba(var(--ph-rgb),.5); background: rgba(var(--ph-rgb),.08); font: 600 12px var(--sans); letter-spacing: .04em; cursor: pointer; }
.btn:hover { background: rgba(var(--ph-rgb),.2); border-color: var(--lcg-blue-400); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.p { background: linear-gradient(180deg, var(--lcg-blue-400), var(--lcg-blue-500)); border-color: rgba(214,229,247,.35); box-shadow: 0 0 20px -6px rgba(61,127,203,.55), inset 0 1px 0 rgba(255,255,255,.25); }
.btn.small { height: 30px; padding: 0 12px; font-size: 11px; }

/* Admin */
.admin { position: fixed; top: 80px; left: 14px; right: 14px; bottom: 74px; z-index: 7; overflow: auto; padding: 18px; border-radius: 10px; background: rgba(6,8,14,.96); box-shadow: 0 0 0 1.5px rgba(var(--ph-rgb),.6), 0 0 0 4px rgba(0,0,0,.85); }
.admin .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; }
.admin section { padding: 14px; border-radius: 8px; background: rgba(255,255,255,.02); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.admin table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.admin th { text-align: left; font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid rgba(var(--ph-rgb),.3); }
.admin td { padding: 7px 8px; border-bottom: 1px solid rgba(255,255,255,.06); vertical-align: middle; }
.admin form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.admin form input { flex: 1 1 160px; }
.admin .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.admin .head h3 { margin: 0; font-size: 18px; }
.ok { color: var(--done); } .bad { color: var(--needs); }
code { font-size: 11px; padding: 1px 5px; border-radius: 4px; background: rgba(255,255,255,.06); word-break: break-all; }

.toast { position: fixed; left: 50%; bottom: 70px; transform: translate(-50%, 20px); opacity: 0; max-width: 90vw; padding: 8px 14px; border-radius: 6px; background: rgba(4,10,20,.95); box-shadow: 0 0 0 1px rgba(var(--ph-rgb),.6); font-size: 12.5px; transition: all .3s; pointer-events: none; z-index: 20; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.loading { position: fixed; inset: 0; display: grid; place-items: center; font: 400 12px var(--title); letter-spacing: .3em; color: var(--lcg-blue-300); z-index: 30; background: var(--navy-900); transition: opacity .6s; }
.loading.gone { opacity: 0; pointer-events: none; }

@media (max-width: 900px) {
  .reads .rd:nth-child(n+3) { display: none; }
  .feed { display: none; }
  .drawer { left: 10px; right: 10px; width: auto; top: auto; height: 70vh; }
  .tabs { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.zone.click { pointer-events: auto; cursor: pointer; padding: 4px 8px; border-radius: 4px; }
.zone.click:hover { opacity: 1; background: color-mix(in srgb, var(--c) 16%, rgba(0,0,0,.5)); box-shadow: 0 0 0 1px var(--c); }
.sign.wallsign .n { font-size: 14px; }
.d.pl { background: transparent !important; box-shadow: inset 0 0 0 1.5px #6b7380 !important; }

.pill.win { border-color: rgba(127,214,164,.55); background: rgba(127,214,164,.1); color: #c9f1da; } .pill.win i { background: var(--done); box-shadow: 0 0 8px var(--done); }
.score { display: flex; flex-direction: column; gap: 14px; }
.score .head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } .score .head h3 { margin: 0; font-size: 16px; }
.score .head .big { margin-left: auto; color: var(--muted); font-size: 12.5px; } .score .head .big b { font-size: 22px; color: var(--done); margin-right: 4px; }
.seg { display: inline-flex; padding: 3px; border-radius: 8px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.seg button { border: 0; background: none; height: 28px; padding: 0 12px; border-radius: 6px; color: var(--muted); font: 600 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.seg button.on { color: #fff; background: rgba(var(--ph-rgb),.3); box-shadow: inset 0 0 0 1px rgba(var(--ph-rgb),.7); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.tile { text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 8px; border: 0; cursor: pointer; background: rgba(255,255,255,.025); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); color: #f4f5f7; }
.tile:hover { box-shadow: inset 0 0 0 1px rgba(var(--ph-rgb),.6); } .tile.on { box-shadow: inset 0 0 0 1.5px var(--done), 0 0 18px rgba(127,214,164,.2); }
.tile .tl { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tile b { font-size: 30px; line-height: 1; font-weight: 600; color: #6b7380; } .tile.has b { color: var(--done); text-shadow: 0 0 14px rgba(127,214,164,.45); } .tile b small { font-size: 15px; color: var(--muted); }
.tile .bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; } .tile .bar i { display: block; height: 100%; background: var(--done); }
.tile .dl { font-size: 11px; color: var(--muted); } .tile .dl.up { color: var(--done); } .tile .dl.down { color: #ffb38a; }
.score section { padding: 14px; border-radius: 8px; background: rgba(255,255,255,.02); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.score table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.score th { text-align: left; font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid rgba(var(--ph-rgb),.3); }
.score td { padding: 7px 8px; border-bottom: 1px solid rgba(255,255,255,.06); } .score td a { color: var(--lcg-blue-300); white-space: nowrap; }
.score h4 { margin: 0 0 8px; display: flex; justify-content: space-between; font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--lcg-blue-100); }
.score form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.score input, .score select { height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); background: #06080d; color: #f4f5f7; }
.recenter { height: 44px; padding: 0 14px 0 11px; justify-content: center; border-radius: 22px; border: 0; display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--lcg-blue-100); font: 600 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; background: rgba(8,10,16,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 0 1.5px rgba(var(--ph-rgb),.75), 0 0 22px rgba(var(--ph-rgb),.35); animation: rcIn .25s ease-out; }
.recenter:hover { color: #fff; box-shadow: 0 0 0 2px var(--ph), 0 0 28px rgba(var(--ph-rgb),.6); }
.recenter svg { color: var(--live); }
/* Map controls: one bottom-right cluster. Zoom pill (− | +) sits right above Re-center, same width. */
.mapctl { position: fixed; right: 18px; bottom: calc(68px + env(safe-area-inset-bottom, 0px)); z-index: 6; width: 140px; height: 92px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.mapctl > * { pointer-events: auto; }
.zoom { display: flex; height: 40px; border-radius: 20px; overflow: hidden; background: rgba(8,10,16,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 0 1.5px var(--lcg-blue-500), 0 0 22px rgba(var(--ph-rgb),.35); }
.zoom button { flex: 1; height: 100%; border: 0; padding: 0; display: grid; place-items: center; cursor: pointer; background: transparent; color: var(--lcg-blue-100); transition: background .15s, color .15s; }
.zoom button + button { border-left: 1px solid rgba(var(--ph-rgb),.4); }
.zoom button:hover { color: #fff; background: rgba(var(--ph-rgb),.18); }
.zoom button:active { background: rgba(var(--ph-rgb),.3); }
.zoom button:focus-visible, .recenter:focus-visible { outline: 2px solid var(--ph); outline-offset: -3px; }
@keyframes rcIn { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 900px) { .recenter span { display: none; } .recenter { padding: 0 11px; } .mapctl { width: 96px; } }

/* Bottom bar team groups (like Chrome tab groups) */
.nav .grp { display: inline-flex; align-items: center; flex: none; margin: 0 3px; padding-bottom: 0; }
.nav .grp .gl { height: 24px; margin: 3px 2px 3px 0; padding: 0 10px; border-radius: 6px; background: var(--g); color: var(--navy-900); font: 600 11.5px var(--sans); letter-spacing: .02em; box-shadow: 0 0 12px color-mix(in srgb, var(--g) 45%, transparent); }
.nav .grp .gl:hover { background: var(--g); color: var(--navy-900); filter: brightness(1.12); }
.nav .grp .gl.on { color: var(--navy-900); background: var(--g); box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 0 16px var(--g); }
.nav .grp .gl i { font-style: normal; margin-left: 4px; padding: 0 5px; border-radius: 8px; background: rgba(0,0,0,.25); font-size: 10px; }
.nav .grp .gt { display: inline-flex; align-items: center; gap: 1px; padding: 0 3px; border-bottom: 2px solid var(--g); border-radius: 0 0 4px 4px; background: color-mix(in srgb, var(--g) 7%, transparent); }
.nav .grp .gt button b { color: var(--g); }
.nav .grp .gt button.on { color: #fff; background: color-mix(in srgb, var(--g) 24%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--g) 70%, transparent); }
.nav { align-items: center; }

/* Panels: a close button that is always visible, pinned at the top while you scroll */
.admin .head { position: sticky; top: -18px; z-index: 2; margin: -18px -18px 4px; padding: 14px 18px; display: flex; align-items: center; gap: 14px; background: rgba(6,8,14,.97); border-bottom: 1px solid rgba(var(--ph-rgb),.3); }
.admin .head h3 { margin: 0; }
.pclose { margin-left: auto; height: 34px; padding: 0 14px; border-radius: 17px; border: 0; cursor: pointer; font: 600 12px var(--sans); letter-spacing: .06em; color: #fff; background: rgba(255,77,109,.16); box-shadow: inset 0 0 0 1.5px rgba(255,77,109,.7); }
.pclose:hover { background: rgba(255,77,109,.3); }
.score .head .big { margin-left: auto; } .score .head .big + .pclose { margin-left: 0; }
.score td.note-c { color: #d6dce6; font-size: 12px; max-width: 340px; }

/* Clickable name tags on the floor */
.tag:hover { box-shadow: 0 0 0 1.5px #fff, 0 0 14px rgba(255,255,255,.4); }

/* Agents list: slides in from the left, opened by the Agents count in the top bar */
button.rd { cursor: pointer; font: inherit; color: inherit; }
.rd.agents:hover, .rd.agents.on { border-color: var(--tc); box-shadow: 0 0 12px color-mix(in srgb, var(--tc) 35%, transparent); }
.roster { position: fixed; top: 80px; left: 14px; bottom: 74px; width: 300px; z-index: 6; display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; transform: translateX(-120%); visibility: hidden; transition: transform .35s cubic-bezier(.2,.7,.2,1), visibility 0s .35s;
  background: rgba(7,10,18,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--tc) 70%, transparent), 0 0 0 4px rgba(0,0,0,.8), 0 0 30px color-mix(in srgb, var(--tc) 25%, transparent); }
.roster.open { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2,.7,.2,1), visibility 0s; }
.roster .rh { position: relative; display: flex; align-items: center; padding: 14px 44px 12px 14px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--lcg-blue-100); }
.roster .rh em { font-style: normal; margin-left: 8px; padding: 1px 7px; border-radius: 9px; letter-spacing: .04em; color: var(--tc); background: color-mix(in srgb, var(--tc) 14%, transparent); }
.roster .rb { flex: 1; overflow: auto; padding: 6px 10px 12px; }
.roster .rteam { margin-top: 8px; }
.roster .rtn { display: inline-block; padding: 2px 9px; border-radius: 5px; background: var(--g); color: var(--navy-900); font: 600 11px var(--sans); }
.roster .rdn { margin: 10px 4px 4px; font-size: 9.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.roster ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.roster .ra { display: grid; grid-template-columns: 22px 1fr 9px; align-items: center; gap: 9px; padding: 5px 8px; border-radius: 6px; cursor: pointer; }
.roster .ra:hover { background: rgba(255,255,255,.05); }
.roster .ra.on { background: color-mix(in srgb, var(--tc) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 60%, transparent); }
.roster .ra.pl { opacity: .55; }
.roster .rt b { display: block; font-size: 12.5px; font-weight: 500; line-height: 1.25; }
.roster .rt span { font-size: 10.5px; color: var(--muted); }
.roster .ra.live .rt span { color: var(--live); } .roster .ra.ran .rt span { color: #b9e9cd; } .roster .ra.needs .rt span { color: var(--needs); }
.roster .x { top: 9px; }
@media (max-width: 900px) { .roster { right: 10px; width: auto; top: auto; height: 70vh; } }
.nav .grp .gt { animation: grpIn .18s ease-out; transform-origin: left center; }
@keyframes grpIn { from { opacity: 0; transform: scaleX(.6); } }
.nav .grp:not(.open) .gl { opacity: .92; } .nav .grp.open .gl { border-radius: 6px 0 0 6px; margin-right: 0; }

/* Floor control (towers): up/down a floor at a time */
.flr.click { pointer-events: auto; cursor: pointer; }
.flr.click:hover { color: #fff; background: color-mix(in srgb, var(--c) 30%, rgba(0,0,0,.6)); }
.floors { position: fixed; left: 14px; bottom: 74px; z-index: 6; width: 190px; display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 10px; background: rgba(7,10,18,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--c) 70%, transparent), 0 0 22px color-mix(in srgb, var(--c) 25%, transparent); transition: left .35s cubic-bezier(.2,.7,.2,1); }
.roster.open ~ .floors { left: 330px; }
.floors .fh { font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--c); padding: 0 2px 4px; }
.floors ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.floors button { width: 100%; height: 30px; border: 0; border-radius: 6px; background: rgba(255,255,255,.04); color: var(--muted); font: 600 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; text-align: left; padding: 0 10px; }
.floors > button { text-align: center; color: #fff; background: color-mix(in srgb, var(--c) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent); }
.floors button:hover:not(:disabled) { color: #fff; background: color-mix(in srgb, var(--c) 28%, transparent); }
.floors button.on { color: #05070c; background: var(--c); }
.floors button:disabled { opacity: .35; cursor: default; }
@media (max-width: 900px) { .floors { left: 10px; bottom: 70px; width: 150px; } .roster.open ~ .floors { left: 10px; } }

/* Review list (same shell as the agents list) */
.rd.rev.on { border-color: var(--gold); box-shadow: 0 0 12px rgba(242,198,109,.35); }
/* Dock sign glows while work is waiting */
.sign.dock.hot { animation: dockHot 2.6s ease-in-out infinite; }
@keyframes dockHot { 0%,100% { box-shadow: 0 0 0 1px var(--gold), 0 0 16px rgba(242,198,109,.45); } 50% { box-shadow: 0 0 0 2px #ffe3a3, 0 0 34px rgba(242,198,109,.85); } }

.feed .rvhint { font-size: 11px; color: var(--muted); margin: 8px 4px 6px; line-height: 1.4; }
.feed .rv { display: block; margin: 0 0 8px; padding: 10px 11px; cursor: default; }
.feed .rv:hover { background: rgba(242,198,109,.06); }
.feed .rv.urg { border-color: rgba(255,77,109,.6); background: rgba(255,77,109,.06); }
.feed .rv.stuck { border-color: rgba(255,77,109,.3); background: rgba(255,77,109,.03); }
.feed .rvh { display: flex; gap: 9px; align-items: flex-start; } .feed .rvh > svg { flex: 0 0 22px; } .feed .rvh > div { flex: 1; min-width: 0; }
.feed .rvh b { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; }
.feed .rvh span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.feed .tag { display: inline-block; font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--needs); border-radius: 3px; padding: 1px 5px; margin-bottom: 3px; }
.feed .rvw { margin: 8px 0 0 31px; font-size: 11.5px; line-height: 1.4; color: #e6e9f0; }
.feed .rvw span { display: block; font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.feed .rvl { margin: 8px 0 0 31px; }
.feed .rvl a { text-decoration: none; }
.feed .rva { display: flex; gap: 6px; margin: 10px 0 0 31px; }
.feed .rvback { margin: 8px 0 0 31px; display: flex; flex-direction: column; gap: 6px; }
.feed .rvback[hidden] { display: none; }
.feed .rvback textarea { min-height: 54px; resize: vertical; padding: 7px 8px; border-radius: 6px; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.4); color: inherit; font: 12px var(--sans); }
.feed .rvback .btn { align-self: flex-start; }
.feed .rvh5 { margin: 16px 4px 6px; font-size: 9.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.feed .rvdone { display: grid; grid-template-columns: 74px 1fr; gap: 8px; padding: 4px; font-size: 11px; color: var(--muted); }
.feed .rvdone i { font-style: normal; color: var(--needs); } .feed .rvdone i.ok { color: #7fd6a4; }

/* Right panel tabs: Review Dock | Floor Feed */
.feed.rvmode { width: 380px; }
.sidetabs { display: flex; gap: 4px; margin: -2px 0 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(var(--ph-rgb),.3); }
.sidetabs button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; height: 28px; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--muted); font: 600 10px var(--sans); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.sidetabs button:hover { color: var(--lcg-blue-100); }
.sidetabs button.on { color: var(--lcg-blue-100); background: rgba(var(--ph-rgb),.12); border-color: rgba(var(--ph-rgb),.45); }
.sidetabs button[data-side="review"].on { color: var(--gold); background: rgba(242,198,109,.1); border-color: rgba(242,198,109,.5); }
.sidetabs em { font-style: normal; letter-spacing: .04em; padding: 0 6px; border-radius: 8px; background: rgba(255,255,255,.08); }
.feed .rv { border: 1px solid rgba(242,198,109,.18); border-radius: 6px; }
.feed .rvgi { margin-top: 10px; } .feed .rvgi .rv { margin-left: 0; }
/* Scoreboard: tiles grouped by area + "Where AP stands" card */
.tarea { grid-column: 1 / -1; margin-top: 4px; font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--lcg-blue-100); }
.apstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.aps { padding: 10px 12px; border-radius: 8px; background: rgba(255,255,255,.025); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); display: flex; flex-direction: column; gap: 4px; }
.aps b { font-size: 22px; line-height: 1.1; font-weight: 600; } .aps span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.aps.ok b { color: var(--done); } .aps.bad b { color: var(--needs); } .aps.warn b { color: var(--gold); }
.apnow tr.click { cursor: pointer; } .apnow tr.click:hover td { background: rgba(255,255,255,.03); }
.apnow td i.d { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5b6478; vertical-align: middle; }
.apnow td i.d.live { background: var(--live); } .apnow td i.d.needs { background: var(--needs); } .apnow td i.d.ran { background: var(--done); }
.feed .rvh b .tag, .feed .rvrow .tag { margin-right: 6px; vertical-align: 1px; }
.feed .rvgi { margin: 10px 0 0; max-height: 50vh; overflow: auto; border-top: 1px solid rgba(255,255,255,.08); }
.feed .rvrow { display: grid; grid-template-columns: 1fr 26px 26px; gap: 6px; align-items: start; padding: 7px 2px; border-bottom: 1px solid rgba(255,255,255,.06); }
.feed .rvrow.urg { background: rgba(255,77,109,.06); }
.feed .rvrow .rt { min-width: 0; } .feed .rvrow .rt b { display: block; font-size: 12px; font-weight: 600; line-height: 1.3; }
.feed .rvrow .rt > span { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.feed .rvrow .rvl { margin: 4px 0 0; }
.feed .rvrow .ic { width: 26px; height: 26px; border-radius: 6px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.04); color: inherit; cursor: pointer; font-size: 13px; }
.feed .rvrow .ic.ok:hover { border-color: #7fd6a4; color: #7fd6a4; } .feed .rvrow .ic.no:hover { border-color: var(--needs); color: var(--needs); }
.feed .rvrow .rvback { grid-column: 1 / -1; margin: 4px 0 0; }
.df .btn:disabled { opacity: .45; cursor: not-allowed; }
