:root {
  --bg: #15181c; --panel: #1e2228; --line: #2c323a; --fg: #e6e8eb; --muted: #8a93a0;
  --accent: #ffb400; --a: #4fc3f7; --b: #ff7043; --danger: #ef5350;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--bg); color: var(--fg); font: 13px/1.4 system-ui, sans-serif; }
body { display: flex; flex-direction: column; }
header, footer { background: var(--panel); border-bottom: 1px solid var(--line); padding: 6px 10px; display: flex; align-items: center; gap: 10px; }
footer { border-top: 1px solid var(--line); border-bottom: 0; flex-direction: column; align-items: stretch; gap: 4px; }
main { flex: 1; display: flex; min-height: 0; }
#mapWrap { flex: 1; position: relative; overflow: hidden; background: #0d1a2b; }
#map { width: 100%; height: 100%; display: block; cursor: grab; }
#mapHud { position: absolute; right: 8px; bottom: 6px; max-width: 60%; text-align: right; background: rgba(0,0,0,.5); padding: 2px 6px; border-radius: 3px; }
#side { width: 350px; border-left: 1px solid var(--line); background: var(--panel); padding: 8px; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
body.sideHidden #side { display: none; }
/* the side panel's pop out button: on the map / 3D view's right edge */
#sideToggle { position: absolute; right: 0; top: 8px; z-index: 20; border-radius: 4px 0 0 4px; padding: 3px 7px; }
#tabs { display: flex; flex-wrap: wrap; gap: 3px; }
#tabs button { padding: 2px 5px; font-size: 11.5px; }
.pane { display: none; flex-direction: column; gap: 6px; flex: 1; min-height: 0; overflow: auto; }
.pane.on { display: flex; }
.pane .list { max-height: none; flex: 1 1 auto; min-height: 60px; }
.pane[data-pane=reports] .fblist { flex: 3 1 auto; }
.pane[data-pane=reports] #exports { flex: 1 1 auto; }
.paneHead { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.paneHead .grow { flex: 1; min-width: 80px; }
input.mini { background: #2a3038; color: var(--fg); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; font-size: 12px; }
.legend { font-size: 11px; }
.row .st { flex: none; width: 2.6em; text-align: center; white-space: nowrap; font-size: 12px; }
.row.offline .nm { color: var(--muted); }
.checks label { display: flex; gap: 6px; align-items: center; padding: 2px 0; }
.popover { border: 1px solid var(--line); border-radius: 4px; background: #20252c; padding: 6px 8px; display: flex; flex-direction: column; gap: 2px; max-height: 45vh; overflow: auto; }
.popover h4 { margin: 6px 0 2px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.popover label { display: flex; gap: 6px; align-items: center; }
.popover label.sub { padding-left: 18px; }
/* two-sided buttons (3D / Map, 1st / 3rd person): the side in use yellow, the other grey */
.seg { display: inline-flex; }
.seg button { border-radius: 0; color: var(--muted); }
.seg button:first-child { border-radius: 4px 0 0 4px; }
.seg button:last-child { border-radius: 0 4px 4px 0; border-left: 0; }
.seg button.on { color: #000; }
button:disabled, button:disabled:hover { opacity: .45; cursor: default; background: #2a3038; }
button.icon { font-size: 15px; line-height: 1; padding: 2px 7px; }
/* reviewer overlays over the 3D view (overlay.js): never takes the mouse */
.overlay3d { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; }
.setRow { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.setRow.sub { padding-left: 20px; }
.setRow.sub2 { padding-left: 40px; }
.setRow.dim { opacity: .5; }   /* (attack arcs: the lines while "Show attack arcs" is off) */
#side h3 { margin: 6px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.list { max-height: 30vh; overflow: auto; border: 1px solid var(--line); border-radius: 4px; }
.row { padding: 3px 6px; border-bottom: 1px solid var(--line); cursor: pointer; display: flex; gap: 6px; align-items: baseline; }
.row:hover { background: #262c34; }
.row.sel { background: #33404f; }
.row .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.row .t { color: var(--muted); font-family: ui-monospace, monospace; font-size: 11px; flex: none; }
.row .k { color: var(--accent); flex: none; }
.row.death .k { color: var(--danger); }
.row.report .k, .row.violation .k { color: var(--b); }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, monospace; }
#timeNow { cursor: text; border-bottom: 1px dashed currentColor; }
#controls button.jump { padding-left: 6px; padding-right: 6px; }
.spacer { flex: 1; }
button, select { background: #2a3038; color: var(--fg); border: 1px solid var(--line); border-radius: 4px; padding: 3px 8px; cursor: pointer; }
button:hover { background: #343b45; }
button.on { background: var(--accent); color: #000; }
#controls { display: flex; align-items: center; gap: 8px; }
/* (#timeline = the time scale, #healthStrip, #presenceStrip: rows of the timeline area, sized by app.js) */
.ctxmenu.scroll { max-height: 70vh; overflow-y: auto; }
.ctxmenu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.ctxmenu .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; }
#netBox { position: absolute; left: 10px; bottom: 10px; z-index: 6; background: rgba(16,19,24,.86); border: 1px solid var(--line); border-radius: 6px;
  padding: 6px 9px; font-size: 12px; line-height: 1.45; max-width: min(420px, calc(100% - 20px)); pointer-events: none; }
#netBox b { font-weight: 600; } #netBox .muted { color: #8a93a0; } #netBox .bad { color: #ef5350; } #netBox .warn { color: #ffb74d; }
#netBox canvas { display: block; width: 180px; height: 26px; margin-top: 3px; }

#view3d { position: absolute; inset: 0; }
.ctxmenu { position: fixed; z-index: 50; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 4px 0; min-width: 170px; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.ctxmenu div { padding: 5px 12px; cursor: pointer; }
.ctxmenu div:hover { background: #33404f; }
.ctxmenu .muted { cursor: default; font-size: 11px; }
#pip { position: absolute; right: 8px; bottom: 34px; width: 240px; height: 240px; border: 1px solid var(--line); border-radius: 4px; background: #0d1a2b; display: none; z-index: 5; cursor: crosshair; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
#view3d canvas { width: 100% !important; height: 100% !important; display: block; }
.hud3d { position: absolute; right: 8px; top: 6px; background: rgba(0,0,0,.5); padding: 2px 6px; border-radius: 3px; color: var(--muted); font-size: 12px; }

.findbar { display: flex; gap: 4px; margin-bottom: 4px; }
.findbar input { flex: 1; min-width: 0; }
.row.world .k { color: #b388ff; }

.dlg { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.dlgBox { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; width: min(760px, 100%); max-height: 100%; overflow: auto; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 8px 30px rgba(0,0,0,.6); }
.dlgBox h3 { margin: 0; }
/* player reports: the bell and the cases view (app.js "cases") */
#btnBell { position: relative; }
.bellBadge { position: absolute; top: -6px; right: -8px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #e53935; color: #fff; font: bold 10px/16px system-ui, sans-serif; text-align: center; box-sizing: border-box; }
#casesDlg .casesBox { width: min(1180px, 100%); height: min(860px, 100%); }
.casesCols { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 10px; min-height: 0; flex: 1; }
.casesCols > div { overflow: auto; min-height: 0; }
@media (max-width: 720px) { .casesCols { grid-template-columns: 1fr; } }
.caseRow { padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; margin-bottom: 6px; cursor: pointer; background: #20252c; }
.caseRow.on { border-color: var(--accent); }
.caseRow .muted { font-size: 11px; }
.rep { border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; margin: 6px 0; background: #20252c; }
.rep .msg { white-space: pre-wrap; overflow-wrap: anywhere; margin: 4px 0; }
.rep .snap, .rep .evid { font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }
.rep .gone { color: #ef9a9a; }
.caseMenu { position: fixed; z-index: 120; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 6px 20px rgba(0,0,0,.6); padding: 4px 0; min-width: 220px; }
.caseMenu div { padding: 5px 12px; cursor: pointer; } .caseMenu div:hover { background: #2a3038; } .caseMenu .muted { cursor: default; }
.dlgBox img { width: 100%; border: 1px solid var(--line); border-radius: 4px; background: #000; }
.dlgBox textarea { width: 100%; box-sizing: border-box; background: #2a3038; color: var(--fg); border: 1px solid var(--line); border-radius: 4px; padding: 6px; font: inherit; resize: vertical; }
.dlgBox label { display: flex; gap: 8px; align-items: center; }
.dlgBar { display: flex; gap: 8px; align-items: center; }
#reportCam { font-size: 11px; }

body.kiosk #top, body.kiosk #side, body.kiosk #bottom, body.kiosk #mapHud, body.kiosk #pip, body.kiosk .hud3d { display: none !important; }

.fblist { max-height: 38vh; }
.fbrow { display: grid; grid-template-columns: 84px 1fr; gap: 6px; padding: 5px 6px; border-bottom: 1px solid var(--line); cursor: pointer; }
.fbrow:hover { background: #262c34; }
.fbrow img { width: 84px; height: 46px; object-fit: cover; border-radius: 3px; border: 1px solid var(--line); background: #000; }
.fbrow .fbtitle { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.fbrow .fbnote { grid-column: 1 / 3; font-size: 12px; line-height: 1.35; white-space: pre-wrap; overflow-wrap: anywhere; background: #20252c; border: 1px solid var(--line); border-radius: 3px; padding: 4px 6px; }
.tknote { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.4; background: #20252c; border: 1px solid var(--line); border-radius: 4px; padding: 8px; }
.dlgBox h4 { margin: 4px 0 0; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.tkcomments { display: flex; flex-direction: column; gap: 6px; }
.tkc { border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; background: #20252c; }
.tkc.ai { border-color: #3a4f6a; background: #1d2633; }
.tkch { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 11px; }
.tkct { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; margin-top: 3px; }
.badge.ai { background: #23395a; color: #90caf9; } .badge.review { background: #1d3a40; color: #80deea; }
.tkcimgs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; } .tkcimgs figure { margin: 0; flex: 1 1 220px; max-width: 100%; } .tkcimgs img { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 3px; cursor: zoom-in; } .tkcimgs figcaption { font-size: 10px; color: var(--muted); } .badge.needs-info { background: #3d2f4a; color: #ce93d8; } .badge.closed { background: #333; color: var(--muted); }
.fbrow .fbmeta { font-size: 11px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
.fbrow .badge { border-radius: 3px; padding: 0 4px; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.badge.open { background: #4a3a12; color: var(--accent); } .badge.fixed { background: #1f3d24; color: #81c784; } .badge.wontfix { background: #333; color: var(--muted); }
.fbrow .fbact { display: flex; gap: 4px; margin-top: 3px; grid-column: 1 / 3; }
button.mini, select.mini { padding: 0 5px; font-size: 11px; }

.gfxDlg { position: absolute; right: 8px; top: 34px; z-index: 60; width: 420px; max-height: 80vh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; box-shadow: 0 4px 16px rgba(0,0,0,.5); }
.gfxDlg h3 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.gfxDlg h3 button { margin-left: auto; }
.gfxRow { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.gfxRow label { width: 150px; flex: none; font-family: ui-monospace, monospace; font-size: 11px; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gfxRow input[type=range] { flex: 1; min-width: 0; }
.gfxRow .radios { flex: 1; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.gfxRow .radios label.radio { width: auto; display: inline-flex; align-items: center; gap: 4px; font-family: system-ui, sans-serif; font-size: 12px; }
.gfxRow .val { width: 48px; text-align: right; flex: none; }
.gfxRow select { flex: 1; min-width: 0; }
.gfxRow .grow { flex: 1; }
.gfxRow.na { opacity: .45; }
.gfxCat { margin: 10px 0 2px; padding-bottom: 2px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--line); }
#gfxBody .gfxRow > label { width: 176px; font-family: system-ui, sans-serif; font-size: 12px; }
#gfxBody .gfxRow .val { width: 70px; }
#settingsDlg { width: 480px; }
.setTabs { display: flex; gap: 4px; margin: 0 0 8px; border-bottom: 1px solid var(--line); }
.setTabs button { border-radius: 4px 4px 0 0; border-bottom: none; }
.setTabs button.on { background: var(--line); }
.keysTbl { width: 100%; border-collapse: collapse; }
.keysTbl td { padding: 2px 4px; }
.keysTbl tr.sect td { padding-top: 8px; color: var(--muted); text-transform: uppercase; font-size: 11px; }
.keysTbl button.waiting { outline: 1px solid var(--accent, #4a9); }
.gfxRow .tod { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; }
.gfxRow .tod input[type=range] { flex: 1; min-width: 0; background: linear-gradient(90deg, #0b1020, #f4c95d 50%, #0b1020); border-radius: 4px; }
.gfxDlg .dlgBar { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
/* the share button's confirmation (app.js toast) */
#toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(12px); background: var(--panel); color: var(--fg); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 1000; max-width: 80vw; overflow-wrap: anywhere; }
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* the spectated player's HUD and client view (clientview.js) - drawn over the 3D view, never takes the mouse */
/* (z-index 3: over the picture and over night vision's two layers (2). Without one the layer's place depended on whether it
   was made before or after the WebGPU canvas - made first, its belt, bars, compass lay UNDER the picture, 2026-11-16) */
.clientHud { position: absolute; inset: 0; z-index: 3; pointer-events: none; font-family: system-ui, sans-serif; color: #e8e4dc; overflow: hidden; }
.clientHud .cvInfo { position: absolute; left: 8px; bottom: 8px; font-size: 12px; background: rgba(0,0,0,.45); padding: 2px 6px; border-radius: 3px; }
.clientHud .cvInfo:empty { display: none; }
.clientHud .cvVitals { position: absolute; right: 16px; bottom: 16px; width: 220px; display: flex; flex-direction: column; gap: 3px; }
.clientHud .cvBar { position: relative; height: 22px; background: rgba(40,38,34,.75); }
.clientHud .cvBar i { position: absolute; left: 0; top: 0; bottom: 0; }
.clientHud .cvBar span { position: absolute; left: 8px; top: 2px; font-size: 13px; font-weight: 600; text-shadow: 0 1px 2px #000; }
.clientHud .cvBar.hp i { background: #6f9a3a; } .clientHud .cvBar.cal i { background: #c27b2e; } .clientHud .cvBar.h2o i { background: #3d7fb5; }
.clientHud .cvChips { display: flex; flex-wrap: wrap; gap: 3px; justify-content: flex-end; }
.clientHud .cvChips b { font-size: 11px; font-weight: 600; background: rgba(150,40,30,.8); padding: 1px 5px; }
.clientHud .cvBelt { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 4px; }
.clientHud .cvSlot { position: relative; width: 74px; height: 74px; background: rgba(40,38,34,.7); border: 2px solid transparent; overflow: hidden; }
.clientHud .cvSlot.on { border-color: #8db7e6; background: rgba(60,90,120,.75); }
.clientHud .cvSlot .nm { position: absolute; left: 4px; right: 4px; top: 4px; font-size: 11px; line-height: 1.15; word-break: break-word; }
.clientHud .cvSlot .amt { position: absolute; right: 5px; bottom: 3px; font-size: 13px; font-weight: 600; }
.clientHud .cvSlot .ammo { position: absolute; left: 5px; bottom: 3px; font-size: 13px; font-weight: 600; color: #f0d27a; }
.clientHud .cvSlot .cond { position: absolute; left: 0; bottom: 0; width: 4px; background: #6f9a3a; }
.clientHud .cvDmg { position: absolute; left: 50%; top: 50%; }
.clientHud .cvHit { position: absolute; left: 0; top: 0; width: 220px; height: 220px; border-radius: 50%; border-top: 10px solid rgba(200,30,20,.85); }
.clientHud .cvLoot { position: absolute; right: 16px; top: 40%; font-size: 14px; }
/* the mortar's display (clientview.js drawMortar): canvas units inside .mo, the prefab's places; y down here */
.clientHud .cvMortar { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.clientHud .cvMortar .mo { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; color: #fffcfa; font: 700 12px/14px 'Roboto Condensed', 'Arial Narrow', system-ui, sans-serif; }
.clientHud .cvMortar .sh { position: absolute; left: -70px; top: -97.28px; width: 160px; height: 180px; background: radial-gradient(closest-side, rgba(0,0,0,.25), rgba(0,0,0,0)); }
.clientHud .cvMortar .mk { position: absolute; left: -90px; top: -57.28px; width: 100px; height: 100px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent); }
.clientHud .cvMortar .mk i { position: absolute; right: 0; height: 2px; background: #fffcfa; }
.clientHud .cvMortar .mk b { position: absolute; transform: translateY(-50%); white-space: nowrap; text-shadow: 0 0 2px rgba(0,0,0,.5); }
.clientHud .cvMortar .sb { position: absolute; left: 14.07px; top: -56.8px; width: 2px; height: 100px; background: #fffcfa; }
.clientHud .cvMortar .tt { position: absolute; left: 20.08px; top: -7.8px; width: 10px; height: 2px; background: #fffcfa; }
.clientHud .cvMortar .am { position: absolute; width: 30.72px; height: 15.36px; background: #fffcfa; color: #3a3a3a; border-radius: 1.5px; font-size: 10px; line-height: 15.36px; text-align: center; letter-spacing: .04em; }
.clientHud .cvMortar .dot { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,252,250,.9); box-shadow: 0 0 3px rgba(0,0,0,.5); }
.clientHud .cvLoot div { background: rgba(40,38,34,.8); padding: 6px 10px; }
.clientHud .cvCui, .clientHud .cuiRoot, .clientHud .cuiLayer { position: absolute; inset: 0; }
.clientHud .cuiEl { position: absolute; }
.clientHud .cuiText { position: absolute; inset: 0; display: flex; overflow: hidden; line-height: 1.15; white-space: pre-wrap; }
.clientHud .cuiImg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.clientHud .cvSlot .ic { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: contain; }
.clientHud .cvSlot .ic ~ .amt, .clientHud .cvSlot .ic ~ .ammo { text-shadow: 0 1px 2px #000; }
.clientHud .cvSlot .nm { z-index: 0; }
.clientHud .cvSlot:has(.ic) .nm { display: none; }
#settingsBody h4 { margin: 8px 0 2px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
#settingsBody h4:first-child { margin-top: 0; }

/* custom window period: calendar + digital clocks (app.js openWinDlg) */
#winDlg .dlgBox { width: min(400px, 100%); }
.calBar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal .dow { text-align: center; color: var(--muted); font-size: 11px; padding-bottom: 2px; }
.calDay { aspect-ratio: 1; padding: 0; border-radius: 50%; border: 0; background: transparent; font-variant-numeric: tabular-nums; }
.calDay:hover:not(:disabled) { background: #2f3640; }
.calDay:disabled { color: #4a515b; cursor: default; }
.calDay.in { background: rgba(255,180,0,.18); }
.calDay.start, .calDay.end { background: var(--accent); color: #000; }
.calDay.today { box-shadow: inset 0 0 0 2px var(--fg); }
.clocks { display: flex; gap: 16px; justify-content: space-around; flex-wrap: wrap; }
.clock { display: flex; align-items: center; gap: 2px; background: #0b0d10; border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px;
  font: 600 24px/1 ui-monospace, monospace; color: #7dffa0; }
.clock input { width: 2.2ch; background: transparent; border: 0; color: inherit; font: inherit; text-align: center; padding: 2px 0; border-radius: 3px; }
.clock input:focus { outline: none; background: #1c2a20; }
#winSum { font-size: 12px; min-height: 1.4em; }
#winSum.bad { color: var(--danger); }
#timeline { cursor: crosshair; }

/* first person for review (2026-11-16): the compass strip and the "screen covered" banner */
.clientHud .cvCompass { position: absolute; left: 50%; top: 10px; width: 480px; height: 26px; transform: translateX(-50%); overflow: hidden; background: rgba(20,19,17,.45); border-radius: 3px; }
.clientHud .cvCompass:empty { display: none; }
.clientHud .cvCompass i { position: absolute; top: 5px; transform: translateX(-50%); font-style: normal; font-size: 11px; color: #cfcabd; text-shadow: 0 1px 2px #000; }
.clientHud .cvCompass i.c { font-size: 14px; font-weight: 700; color: #fff; top: 3px; }
.clientHud .cvCompass b { position: absolute; left: 50%; bottom: 0; width: 2px; height: 6px; background: #e5c453; transform: translateX(-50%); }
#coverToast { position: absolute; left: 50%; top: 44px; transform: translateX(-50%); z-index: 6; padding: 7px 14px; border-radius: 4px; background: rgba(120,28,22,.92); color: #fff; font: 600 14px system-ui, sans-serif; box-shadow: 0 2px 10px rgba(0,0,0,.5); pointer-events: none; white-space: nowrap; }
/* the game server's clock notice (2026-11-30, app.js clockWarn): recorded past 6 days of uptime, vehicles move in steps */
#clockWarn { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); z-index: 6; width: max-content; max-width: min(860px, calc(100% - 32px)); box-sizing: border-box; padding: 8px 34px 8px 14px; border-radius: 6px; background: rgba(104,74,10,.94); border: 1px solid rgba(255,196,80,.5); color: #fff; font: 13px/1.4 system-ui, sans-serif; box-shadow: 0 2px 10px rgba(0,0,0,.5); }
#clockWarn b { color: #ffd27a; font-weight: 650; }
#clockWarn .cwX { position: absolute; right: 6px; top: 4px; background: none; border: 0; color: #fff; font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 6px; opacity: .8; }
#clockWarn .cwX:hover { opacity: 1; }
body.kiosk #clockWarn { display: none !important; }

/* the Player Loot window (lootwin.js): a card docked on the view, or the body of its own browser window */
.lootWin { position: absolute; right: 36px; top: 8px; z-index: 7; width: 330px; max-height: calc(100% - 56px); overflow: auto; background: rgba(22,25,30,.93); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 3px 14px rgba(0,0,0,.55); font: 12px/1.3 system-ui, sans-serif; color: var(--fg); }
.lootWin.popped { position: static; width: auto; max-height: none; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
body.lootPop { background: var(--bg); overflow: auto; height: auto; }
body.kiosk .lootWin { display: none !important; }
.lootWin .lwHead { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 6px; padding: 5px 8px; background: #252a32; border-bottom: 1px solid var(--line); }
.lootWin .lwHead b, .lootWin .lwHead button { white-space: nowrap; flex: none; }
.lootWin .lwWho { color: #9fc3ea; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lootWin .lwBody { padding: 4px 8px 8px; }
.lootWin .lwSec h5 { margin: 7px 0 3px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #aab3bf; }
.lootWin .lwSec h5 b, .lootWin .lwSec h5 span { text-transform: none; letter-spacing: 0; }
.lootWin .lwSec.loot { border: 1px solid #6b5a2a; background: rgba(90,72,24,.22); border-radius: 4px; padding: 0 6px 6px; margin-top: 6px; }
.lootWin .lwSec.loot h5 { color: #e9c96a; }
.lootWin .lwNote { margin: 6px 0; color: var(--muted); } .lootWin .lwNote.warn { color: #ffb74d; }
.lootWin .lwFoot { margin-top: 7px; font-size: 11px; }
.lootWin .lwGrid { display: grid; gap: 3px; }
.lootWin .lwSlot { position: relative; aspect-ratio: 1; background: rgba(52,56,62,.8); border: 1px solid transparent; overflow: hidden; border-radius: 2px; }
.lootWin .lwSlot.on { border-color: #8db7e6; background: rgba(60,90,120,.75); box-shadow: inset 0 0 0 1px #8db7e6; }   /* (the item in the hand: the first-person belt's 2 px frame - .clientHud .cvSlot.on) */
.lootWin .lwSlot.chg { border-color: #ffd54f; box-shadow: inset 0 0 0 1px #ffd54f; }
.lootWin .lwSlot .ic { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); object-fit: contain; }
.lootWin .lwSlot .ic.bp { filter: sepia(1) hue-rotate(170deg) saturate(2.2) brightness(.9); }
.lootWin .lwSlot .nm { position: absolute; left: 2px; right: 2px; top: 2px; font-size: 9px; line-height: 1.1; word-break: break-all; color: #9aa3ad; }
.lootWin .lwSlot .ic + .cond, .lootWin .lwSlot .ic ~ span { z-index: 1; }
.lootWin .lwSlot .nm:has(+ .ic) { display: none; }
.lootWin .lwSlot .amt { position: absolute; right: 3px; bottom: 1px; font-size: 11px; font-weight: 600; text-shadow: 0 1px 2px #000, 0 0 2px #000; }
.lootWin .lwSlot .ammo { position: absolute; left: 6px; bottom: 1px; font-size: 11px; font-weight: 600; color: #f0d27a; text-shadow: 0 1px 2px #000; }
.lootWin .lwSlot .mods { position: absolute; right: 3px; top: 1px; font-size: 10px; color: #9fd0a0; text-shadow: 0 1px 2px #000; }
.lootWin .lwSlot .tag { position: absolute; left: 6px; top: 1px; font-size: 9px; font-weight: 700; color: #8fc3ff; text-shadow: 0 1px 2px #000; }
.lootWin .lwSlot .cond { position: absolute; left: 0; bottom: 0; width: 3px; background: #6f9a3a; }
.lootWin .lwSlot .cond.low { background: #d6902f; } .lootWin .lwSlot .cond.broken { background: #c0392b; height: 100% !important; }
.lootWin { scrollbar-width: thin; scrollbar-color: #4a515b transparent; }
/* the client's whole-picture overlays (clientview.js drawSight): scope picture, binocular lenses, worn masks - under the HUD's own parts */
.clientHud .cvSight, .clientHud .cvOv { position: absolute; inset: 0; overflow: hidden; }
.clientHud .cvCross { position: absolute; border-radius: 50%; background: rgb(227, 231, 229); pointer-events: none; }
.clientHud .cvTick { position: absolute; background: rgb(227, 231, 229); border-radius: 1px; pointer-events: none; }
.clientHud .cvOv > div { position: absolute; }
.clientHud .cvOv > svg { position: absolute; left: 0; top: 0; }

/* Players list: clans, teams, fold-downs (2026-11-24) */
.row .fold { flex: none; width: 1em; color: var(--muted); cursor: pointer; text-align: center; }
.row .fold:hover { color: var(--fg); }
.row.sub { padding-left: 22px; }
.row .bdg { flex: none; white-space: nowrap; }
.row .crown { position: relative; display: inline-block; margin-right: 6px; font-size: 12px; }
.row .crown b { position: absolute; right: -6px; bottom: -3px; font-size: 8px; line-height: 9px; padding: 0 2px; border-radius: 3px; background: #1a1e24; color: #ffd54f; border: 1px solid #ffd54f; }
.row .tmk { font-size: 12px; margin-right: 2px; }
.clogo { display: inline-block; width: 16px; height: 16px; border-radius: 3px; flex: none; object-fit: cover; vertical-align: middle; align-self: center; }
.clogo.mini { width: 12px; height: 12px; }
.row.clanHead { background: rgba(255,255,255,.03); align-items: center; }
.paneSub { padding: 4px 6px 2px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.filtBox { display: flex; flex-direction: column; gap: 3px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); }
#playerFilt.on { color: var(--accent); border-color: var(--accent); }

.help { display: inline-block; width: 1.4em; height: 1.4em; line-height: 1.4em; text-align: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); cursor: help; font-size: 11px; flex: none; }
/* the trail length slider over the map (2026-11-24) */
#trailCtl { position: absolute; left: 8px; top: 8px; z-index: 5; display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,.55); padding: 3px 8px; border-radius: 4px; font-size: 12px; }
#trailCtl input { width: 170px; }
#trailLab { min-width: 9em; white-space: nowrap; }
body.kiosk #trailCtl, body.kiosk #focusLegend { display: none !important; }
#focusLegend { position: absolute; left: 8px; top: 40px; z-index: 5; display: flex; flex-wrap: wrap; gap: 4px 12px; max-width: 70%; background: rgba(0,0,0,.55); padding: 3px 8px; border-radius: 4px; font-size: 12px; align-items: center; }
#focusLegend span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
#focusLegend i.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
#focusLegend i.ring { display: inline-block; width: 8px; height: 8px; border-radius: 50%; border: 3px solid; box-shadow: 0 0 0 1px rgba(0,0,0,.7); }
/* (2026-11-26) the wipe list grows to its longest label: test fixtures' long labels pushed the bar's right-hand buttons
   (gfx, settings, report ...) off the screen on the 5080. Capped; a cut label ends in an ellipsis, the full text in the list */
#wipeSel { max-width: 34em; text-overflow: ellipsis; }

/* ---- the timeline area (2026-11-30): labelled rows over one time axis, the time scale at the bottom, an overlay with
   the playhead / A-B / hover line over all rows (app.js "Timeline rows") ---- */
:root { --tlGut: 138px; }
body.tlNoLegend { --tlGut: 0px; }
body.noFooter #bottom { display: none !important; }
#tlWrap { position: relative; display: flex; flex-direction: column; }
#tlGrip { height: 6px; margin: -2px 0 0; cursor: ns-resize; border-top: 1px solid var(--line); }
#tlGrip:hover, #tlGrip.on { background: #33404f; }
#tlStack { overflow-y: auto; overflow-x: hidden; scrollbar-gutter: stable; }
.tlRow { display: flex; align-items: stretch; position: relative; box-sizing: content-box; overflow: hidden; border-top: 1px solid rgba(255,255,255,.045); }
.tlRow:has(.tlRowGrip) { overflow: visible; }
.tlRow.off { display: none; }
#rulerRow { height: 18px; }
#laneLab .ln.muted { font-size: 10px; }
.tlLab { flex: 0 0 var(--tlGut); width: var(--tlGut); box-sizing: border-box; font-size: 10.5px; line-height: 1.15; padding: 1px 4px 1px 5px;
  overflow: hidden; color: var(--muted); white-space: nowrap; position: relative; background: #171b21; border-right: 1px solid var(--line); }
body.tlNoLegend .tlLab { display: none; }
.tlLab b { color: var(--fg); font-weight: 600; }
.tlLab .q { position: absolute; right: 3px; top: 1px; cursor: help; color: #6c7682; }
.tlLab .key { font-size: 9.5px; }
.tlLab .sw { display: inline-block; width: 7px; height: 7px; border-radius: 1px; margin: 0 2px 0 4px; vertical-align: middle; }
.tlCv { flex: 1 1 auto; min-width: 0; display: block; cursor: crosshair; }
.tlRowGrip { position: absolute; left: 0; right: 0; bottom: -3px; height: 6px; cursor: ns-resize; z-index: 3; }
.tlRowGrip:hover { background: rgba(79,195,247,.25); }
#tlOver { position: absolute; pointer-events: none; z-index: 2; }
#laneLab { padding: 0; }
#laneLab .ln { height: 14px; line-height: 14px; padding: 0 3px 0 5px; display: flex; align-items: center; gap: 4px; }
#laneLab .ln .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; color: var(--fg); }
#laneLab .ln .x { cursor: pointer; color: #6c7682; }
#laneLab .ln .x:hover { color: #ef5350; }
#laneLab .ln .dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; }
#tzSel { max-width: 11em; }
#btnBm:disabled { opacity: .35; cursor: default; }
#btnBm.on { background: #4a3b10; border-color: #ffb400; }
.bmBox { width: min(460px, 100%); }
.bmBox label { display: flex; gap: 6px; align-items: center; }
.bmBox input { background: #2a3038; color: var(--fg); border: 1px solid var(--line); border-radius: 4px; padding: 4px 6px; font: inherit; }
.bmList { width: 420px; }
.bmList .bmRow { padding: 4px 6px; border-bottom: 1px solid var(--line); cursor: pointer; }
.bmList .bmRow:hover { background: #2a3340; }
.bmList .bmRow .nm { font-weight: 600; }
.bmList .bmRow .cm { white-space: pre-wrap; color: var(--muted); font-size: 11px; }
.bmList .bmRow input { width: 70%; }
.ctxmenu .sub::after { content: ' \25b8'; float: right; color: var(--muted); }
.ctxmenu .chk { display: inline-block; width: 1.2em; }
/* review views (2026-11-30): the Inspect button and card on the 3D view, the "review" class tag in menus and settings */
.rev { font-size: 10px; padding: 0 4px; border-radius: 3px; background: #5d4037; color: #ffcc80; vertical-align: 1px; }
.inspBtn { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 6; background: rgba(20,24,30,.82); color: var(--fg, #e6eaef);
  border: 1px solid var(--line); border-radius: 4px; padding: 3px 10px; font-size: 12px; cursor: pointer; }
.inspBtn:hover { background: rgba(40,48,60,.95); }
body.kiosk .inspBtn, body.kiosk .inspCard { display: none !important; }
.inspCard { position: absolute; left: 10px; top: 40px; z-index: 7; width: 330px; max-width: calc(100% - 20px); max-height: 72%; overflow: auto; background: var(--panel);
  border: 1px solid var(--line); border-radius: 5px; padding: 8px 10px; font-size: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.inspCard .ih { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 2px; }
.inspCard .ih .x { cursor: pointer; color: var(--muted); padding: 0 3px; }
.inspCard table.it { width: 100%; border-collapse: collapse; margin: 6px 0; }
.inspCard table.it td { padding: 2px 4px; vertical-align: top; border-top: 1px solid var(--line); }
.inspCard table.it td:first-child { color: var(--muted); width: 82px; }
.inspCard .bad { color: #ef5350; }
.inspCard .isec { margin: 8px 0 3px; color: var(--muted); }
.inspCard .igrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.inspCard .islot { position: relative; aspect-ratio: 1; background: rgba(255,255,255,.06); border-radius: 3px; cursor: pointer; }
.inspCard .islot:hover { outline: 1px solid #ffb400; }
.inspCard .islot img { width: 100%; height: 100%; object-fit: contain; }
.inspCard .islot span { position: absolute; right: 2px; bottom: 0; font-size: 10px; text-shadow: 0 0 2px #000; }
.inspCard .iev > div { padding: 2px 0; border-top: 1px solid var(--line); cursor: pointer; }
.inspCard .iev > div:hover { background: rgba(255,255,255,.05); }
.inspCard .iev .t { color: var(--muted); margin-right: 4px; }
.inspCard .ibtns { margin-top: 6px; display: flex; gap: 4px; flex-wrap: wrap; }
/* Find on the timeline (2026-11-30) */
.tlFind { position: absolute; right: 8px; top: -30px; z-index: 8; display: flex; gap: 4px; align-items: center; background: var(--panel); border: 1px solid var(--line);
  border-radius: 4px; padding: 2px 6px; font-size: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.tlFind input { width: 260px; }
.tlFind .x { cursor: pointer; color: var(--muted); padding: 0 3px; }
.tlFind a.all { color: var(--muted); font-size: 11px; }
/* items with the game's ownership lines (2026-11-30): a dot in the slot; the trail panels */
.inspCard .islot .own, .lootWin .lwSlot .own { position: absolute; left: 2px; top: 0; font-size: 8px; color: #ffd54f; font-style: normal; }
.lootWin .lwSlot { position: relative; }
.inspCard .iown { margin: 3px 0; color: #ffe082; }
.lootWin .lwTrail { padding: 0 8px 8px; font-size: 12px; }
.lootWin .lwTrail .isec { margin: 6px 0 2px; color: var(--muted); }
.lootWin .lwTrail .iev > div { padding: 2px 0; border-top: 1px solid var(--line); }
.lootWin .lwTrail .iev .t { color: var(--muted); margin-right: 4px; }
.lootWin .lwTrail .iown { color: #ffe082; }
