/* Dispatch panel: a dark, dense console that stays readable at a glance. */
:root {
  --bg: #0b0c0e; --panel: #131519; --panel2: #181b20; --line: #262a31; --text: #e8eaed; --muted: #9298a2;
  --blue: #3a7bd5; --red: #d93a32; --red-bg: #3a1312; --amber: #f2a13a;
  --avail: #2fae4c; --enroute: #3a8fe0; --onscene: #e0a23a; --busy: #a46bdb; --oos: #6b7280;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.4 Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
h1, h2 { margin: 0; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.brand b { color: var(--amber); }
.btn { font: inherit; border: 1px solid var(--line); background: var(--panel2); color: var(--text); border-radius: 8px; padding: 9px 14px; cursor: pointer; }
.btn:hover { border-color: #3a3f48; background: #1d2026; }
.btn:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn.primary { background: var(--blue); border-color: var(--blue); font-weight: 600; }
.btn.primary:hover { background: #4787e0; }
.btn.small { padding: 5px 10px; font-size: 12.5px; }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: .5; cursor: default; }
input, select { font: inherit; color: var(--text); background: #0e1013; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; width: 100%; }

/* sign in */
.signin { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.card { width: 100%; max-width: 400px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 26px; display: grid; gap: 14px; }
.card h1 { font-size: 22px; }
.card p { margin: 0; }
.card label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.msg { min-height: 1.2em; color: #ff7b72; font-size: 13px; }

/* panel */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 18px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: #0f1114; flex-wrap: wrap; }
.top .net { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.top .who { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); display: inline-block; }
.dot.up { background: var(--avail); box-shadow: 0 0 0 3px rgba(47, 174, 76, .18); }
.dot.down { background: var(--red); }
.sig-strip { background: var(--red); color: #fff; font-weight: 800; letter-spacing: .06em; text-align: center; padding: 8px 12px; animation: sigpulse 1.2s ease-in-out infinite; }
@keyframes sigpulse { 50% { background: #a8241e; } }
@media (prefers-reduced-motion: reduce) { .sig-strip, .unit.panic, .unit.talk .tx { animation: none !important; } }

.grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; padding: 16px 20px 24px; }
@media (max-width: 960px) { .grid { grid-template-columns: 1fr; } }
.board, .box { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.board { padding: 14px 16px; align-self: start; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.count { display: inline-block; min-width: 22px; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: var(--panel2); color: var(--text); text-align: center; letter-spacing: 0; }
.legend { display: flex; gap: 5px; }
.empty { color: var(--muted); margin: 18px 0 6px; }

.chan { border-top: 1px solid var(--line); padding: 10px 0 6px; }
.chan:first-child { border-top: 0; }
.chan-h { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 6px; }
.chan-h .num { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.chan-h .tag-sig { background: var(--red); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 5px; letter-spacing: .05em; }
.unit { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; }
.unit:hover { background: var(--panel2); }
.unit .tx { width: 10px; height: 10px; border-radius: 50%; background: #2a2e35; }
.unit.talk .tx { background: #3dff6a; box-shadow: 0 0 8px rgba(61, 255, 106, .8); }
.unit .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unit .nm small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.unit.panic { background: var(--red-bg); animation: panicflash .8s steps(2) 8; }
@keyframes panicflash { 50% { background: #7a1c18; } }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.seg button { font: inherit; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; border: 0; border-left: 1px solid var(--line); background: #0f1114; color: var(--muted); padding: 5px 8px; cursor: pointer; }
.seg button:first-child { border-left: 0; }
.seg button:hover { color: var(--text); background: #1a1d22; }
.seg button.on { color: #fff; }
.pill { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 5px; color: #fff; letter-spacing: .03em; }
.s-avail, .seg button.on.s-avail { background: var(--avail); }
.s-enroute, .seg button.on.s-enroute { background: var(--enroute); }
.s-onscene, .seg button.on.s-onscene { background: var(--onscene); color: #1a1205; }
.s-busy, .seg button.on.s-busy { background: var(--busy); }
.s-oos, .seg button.on.s-oos { background: var(--oos); }

.side { display: grid; gap: 16px; align-content: start; }
.box { padding: 14px 16px; display: grid; gap: 10px; }
.box p { margin: 0; }
.field { display: grid; gap: 5px; font-size: 12.5px; color: var(--muted); }
.btns.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.btn.tone { display: grid; gap: 2px; text-align: center; padding: 10px 6px; }
.btn.tone span { font-size: 11.5px; color: var(--muted); }
.btn.tone.danger { border-color: #5a1f1c; background: #2a1110; }
.btn.tone.danger:hover { background: #3a1513; }
.btn.tone.sent { border-color: var(--avail); }
.sig-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.sig-grid button { font: inherit; font-weight: 700; padding: 8px 0; border-radius: 7px; border: 1px solid var(--line); background: #0f1114; color: var(--text); cursor: pointer; }
.sig-grid button:hover { background: #1a1d22; }
.sig-grid button.on { background: var(--red); border-color: var(--red); color: #fff; }
.sig-grid button small { display: block; font-weight: 400; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 3px; }
.sig-grid button.on small { color: #ffd9d6; }
.msg-form { display: grid; gap: 8px; }
.row { display: flex; gap: 8px; }
.row input { flex: 1; }
.log-box { max-height: 420px; }
.log { list-style: none; margin: 0; padding: 0; overflow: auto; display: grid; gap: 2px; font-size: 12.5px; }
.log li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 4px 2px; border-bottom: 1px solid #1a1d22; }
.log time { color: var(--muted); font-variant-numeric: tabular-nums; }
.log li.red span { color: #ff8a80; font-weight: 600; }

/* status tag (one per unit): colour bar, short code, name; the list has number keys 1-5 */
.s-avail { --sc: #2fae4c; } .s-oos { --sc: #e5484d; } .s-busy { --sc: #f0b429; } .s-enroute { --sc: #3a8fe0; } .s-onscene { --sc: #9b5de5; }
.stat { position: relative; }
.stat-btn { font: inherit; display: flex; align-items: stretch; min-width: 168px; padding: 0; border: 1px solid #2c3038; border-radius: 6px; overflow: hidden; background: #0e1013; color: var(--text); cursor: pointer; text-align: left; }
.stat-btn:hover { border-color: #3a3f48; background: #121418; }
.stat-btn .bar, .stat-list .bar { width: 5px; flex: none; background: var(--sc); }
.stat-btn .code { padding: 5px 8px; min-width: 52px; font: 800 12px/1.6 Consolas, Menlo, monospace; letter-spacing: .06em; color: var(--sc); border-right: 1px solid #22262d; }
.stat-btn .name { padding: 5px 10px; font-size: 13px; flex: 1; white-space: nowrap; }
.stat-btn .caret { font-style: normal; color: var(--muted); padding: 5px 9px 5px 2px; font-size: 11px; }
.stat-list { position: absolute; right: 0; top: calc(100% + 5px); z-index: 20; list-style: none; margin: 0; padding: 4px; width: 220px; background: #101215; border: 1px solid #2c3038; border-radius: 8px; box-shadow: 0 14px 30px rgba(0, 0, 0, .6); }
.stat-list li { display: flex; align-items: center; border-radius: 5px; overflow: hidden; margin: 2px 0; cursor: pointer; background: transparent; color: #d6d9de; }
.stat-list li .bar { width: 4px; align-self: stretch; }
.stat-list li .code { width: 56px; padding: 7px 8px; font: 800 12px Consolas, Menlo, monospace; letter-spacing: .04em; color: var(--sc); }
.stat-list li .name { flex: 1; font-size: 13px; }
.stat-list li kbd { font: 11px Consolas, Menlo, monospace; color: var(--muted); border: 1px solid #2c3038; border-radius: 4px; padding: 1px 5px; margin-right: 7px; }
.stat-list li:hover, .stat-list li:focus, .stat-list li.on { background: #1c2026; color: #fff; outline: none; }
.stat-list li:focus { box-shadow: inset 0 0 0 1px #3a7bd5; }
.legend .pill { background: transparent; color: var(--sc); border: 1px solid #2c3038; border-left: 4px solid var(--sc); border-radius: 4px; font-family: Consolas, Menlo, monospace; }

/* ===================== CAD: tabs, calls, records, BOLOs, codes ===================== */
.tabs { display: flex; gap: 2px; align-items: center; padding: 0 20px; border-bottom: 1px solid var(--line); background: #0f1114; }
.tabs > button { font: inherit; font-weight: 700; font-size: 13.5px; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; padding: 11px 15px; cursor: pointer; display: flex; gap: 7px; align-items: center; }
.tabs > button:hover { color: var(--text); }
.tabs > button.on { color: #fff; border-color: var(--blue); }
.tabs .n { background: #23262c; color: #fff; border-radius: 9px; padding: 0 7px; font-size: 11.5px; }
.tabs .n.red { background: var(--red); }
.tabs-right { margin-left: auto; display: flex; gap: 8px; }
.view[hidden] { display: none !important; }
.pad { padding: 16px 20px 24px; display: grid; gap: 14px; }
.row-end { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.mono { font-family: Consolas, Menlo, monospace !important; letter-spacing: .06em; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f input, .f select, .f textarea { background: transparent; border: 0; padding: 2px 0 0; color: #fff; font-size: 15px; width: 100%; outline: none; }
.f textarea { resize: vertical; font: inherit; font-size: 14.5px; line-height: 1.45; }
.f:focus-within { border-color: #3a7bd5; }
.f select:disabled, .f input:disabled, .f textarea:disabled { opacity: 1; color: #e8eaed; -webkit-text-fill-color: #e8eaed; }
.f select option { background: #15171b; }
.form.plain { background: none; border: 0; padding: 0; }
.call.closed { opacity: .6; }
.chip .cx, .cx { all: unset; cursor: pointer; margin-left: 6px; color: var(--muted); font-weight: 800; padding: 0 3px; border-radius: 4px; }
.cx:hover { color: #fff; background: #23262c; }
.cx:focus-visible { outline: 2px solid var(--blue); }
.ptop { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ptop h2 { color: #fff; font-size: 22px; letter-spacing: 0; text-transform: none; }
.ptop .grow, .ftop .grow { flex: 1; }
.flagpick { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0; font-size: 13px; color: #c9ccd3; }
.flagpick input { width: auto; }
.k { font: 800 10.5px/1 system-ui; letter-spacing: .06em; padding: 4px 7px; border-radius: 5px; background: #23262c; color: #c9ccd3; }
.k-arrest, .k-felony { background: #3a1312; color: #ffb4ad; } .k-warrant { background: #d93a32; color: #fff; } .k-citation, .k-misdemeanor { background: #3a2a10; color: #ffd28a; } .k-warning, .k-infraction { background: #13283f; color: #9cc7ff; }
.tbl tr.hot td { background: rgba(217, 58, 50, .08); }
.tbl select.mini { width: auto; padding: 4px 8px; font-size: 12px; font-weight: 800; }
.tbl select.st-stolen { color: #ff8a80; }
.box2 h3 { margin: 0; font-size: 12px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.box2 .hd { gap: 10px; flex-wrap: wrap; }
.box2 .hd input { width: 240px; }
.bolo .brow { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bolo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.codes-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 16px; align-items: start; }
.vleft { display: grid; gap: 12px; justify-items: center; }
.live.off { color: var(--muted); border-color: #2c3038; background: #15171b; }
.live.off i { display: none; }
.hit.small { grid-template-columns: 90px 1fr; }
.ok { color: #7ee2a0; font-weight: 700; }
a.red { color: #ff8a80; }
.officer-board { padding: 16px 20px 24px; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.officer-board .codes { grid-template-columns: repeat(5, 1fr); }
.op-list { display: grid; gap: 8px; }
.btn.op { display: grid; text-align: left; gap: 2px; }
.btn.op small { font-size: 12px; }
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .65); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal[hidden] { display: none; }
.dlg { width: min(640px, 100%); max-height: 90vh; overflow: auto; background: #131519; border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 14px; }
.dlg h2 { color: #fff; font-size: 18px; letter-spacing: 0; text-transform: none; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 60; padding: 10px 16px; border-radius: 10px; background: #1d3b2a; border: 1px solid #2fae4c; color: #fff; font-weight: 600; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.toast.bad { background: #3a1312; border-color: #d93a32; }
.chip, .pill2 { --sc: #6b7280; }
.chip.s-avail, .pill2.s-avail { --sc: #2fae4c; } .chip.s-oos, .pill2.s-oos { --sc: #e5484d; } .chip.s-busy, .pill2.s-busy { --sc: #f0b429; } .chip.s-enroute, .pill2.s-enroute { --sc: #3a8fe0; } .chip.s-onscene, .pill2.s-onscene { --sc: #9b5de5; }
.pill2 { background: transparent !important; }
@media (max-width: 1200px) { .cad { grid-template-columns: 300px minmax(0, 1fr) !important; } .cad > .col:last-child { grid-column: 1 / -1; } }
@media (max-width: 860px) { .cad, .rec, .codes-grid, .g2, .g3, .g3b, .kv, .kv3 { grid-template-columns: 1fr !important; } .tabs { overflow-x: auto; } .person, .veh { grid-template-columns: 1fr !important; } }
.rbtn{font:inherit;font-weight:800;font-size:13px;border:0;border-radius:10px;padding:8px 14px;color:#fff;cursor:pointer;display:inline-flex;gap:7px;align-items:center;transform:translateY(-2px)}
.rbtn.blue{background:linear-gradient(180deg,#5b95ff,#3b7ef0);box-shadow:0 4px 0 #2353a8}
.rbtn.green{background:linear-gradient(180deg,#3fca62,#2fae4c);box-shadow:0 4px 0 #1d7a33}
.rbtn.red{background:linear-gradient(180deg,#ef5a52,#d93a32);box-shadow:0 4px 0 #8f201b}
.rbtn.amber{background:linear-gradient(180deg,#ffc35a,#f2a13a);color:#1d1405;box-shadow:0 4px 0 #a86a17}
.rbtn.dark{background:linear-gradient(180deg,#33363d,#23262b);box-shadow:0 4px 0 #0e0f12,0 0 0 1px rgba(255,255,255,.08)}
.rbtn.sm{padding:6px 11px;font-size:12px}
.cad{display:grid;grid-template-columns:360px minmax(0,1fr) 300px;gap:16px;padding:16px 20px 24px}
.col{display:grid;gap:12px;align-content:start}
.hd{display:flex;align-items:center;justify-content:space-between}
.call{position:relative;padding:12px 14px 12px 18px;border-radius:12px;background:var(--panel);border:1px solid var(--line);display:grid;gap:5px;cursor:pointer}
.call::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:4px;border-radius:0 4px 4px 0;background:var(--p)}
.call.on{border-color:#3a7bd5;background:#141a24;box-shadow:0 0 0 1px #3a7bd5 inset}
.call .t{display:flex;justify-content:space-between;align-items:center;gap:8px}
.call b{font-size:15px}.call .no{font:700 12px Consolas,monospace;color:var(--muted)}
.call .ad{color:#c9ccd3;font-size:13px}
.pr{font:800 11px/1 Consolas,monospace;padding:3px 7px;border-radius:5px;color:#fff;background:var(--p)}
.chips{display:flex;flex-wrap:wrap;gap:5px}
.chip{font:800 11.5px/1 Consolas,monospace;padding:4px 7px;border-radius:5px;background:#0e1013;border:1px solid #2c3038;border-left:3px solid var(--sc);color:#e8eaed}
.form{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:16px;display:grid;gap:12px}
.ftop{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.ftop h2{color:#fff;font-size:20px;letter-spacing:0;text-transform:none}
.ftop .grow{flex:1}
.g3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}
.g3b{display:grid;grid-template-columns:.6fr 2fr 1fr;gap:10px}
.f{background:#0e1013;border:1px solid #262a31;border-radius:9px;padding:7px 11px 8px;min-height:50px}
.f small{display:block;font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:700}
.f span{font-size:15px;color:#fff}
.f.sel span::after{content:"▾";float:right;color:var(--muted)}
.f.big{min-height:96px}.f.big span{white-space:pre-line;font-size:14.5px;line-height:1.45}
.unitsbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.unitsbar>small{color:var(--muted);font-weight:700;letter-spacing:.08em;font-size:11px}
.notes{display:grid;gap:6px}
.note{display:grid;grid-template-columns:52px 120px 1fr;gap:8px;font-size:13px;padding:6px 8px;border-radius:7px;background:#0e1013}
.note time{color:var(--muted);font-variant-numeric:tabular-nums}.note b{color:#8cb6ff}
.addnote{display:flex;gap:8px}.addnote input{flex:1}
.side h3{margin:0;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.urow{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;padding:7px 8px;border-radius:8px;background:#0e1013;border:1px solid #20242a}
.urow b{font-size:13.5px}.urow small{display:block;color:var(--muted);font-size:11.5px}
.pill2{font:800 11px Consolas,monospace;color:var(--sc);border:1px solid #2c3038;border-left:4px solid var(--sc);border-radius:4px;padding:2px 7px}
.codes{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.codes .rbtn{justify-content:center}
/* records */
.rec{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;padding:16px 20px 24px}
.search{display:flex;gap:8px;align-items:center}
.search .seg2{display:inline-flex;border:1px solid var(--line);border-radius:9px;overflow:hidden}
.search .seg2 button{font:inherit;font-weight:700;font-size:13px;border:0;background:#0f1114;color:var(--muted);padding:9px 14px}
.search .seg2 button.on{background:#1c2638;color:#fff}
.search input{flex:1}
.person{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:16px;display:grid;grid-template-columns:120px 1fr;gap:16px}
.avatar{width:120px;height:120px;border-radius:12px;background:linear-gradient(135deg,#2a2e35,#1a1d22);display:grid;place-items:center;color:#59606b;font-size:44px;font-weight:800}
.flags{display:flex;gap:6px;flex-wrap:wrap}
.flag{font:800 11px/1 system-ui;letter-spacing:.06em;padding:5px 9px;border-radius:6px;color:#fff;background:var(--fc)}
.kv{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}
.tbl{width:100%;border-collapse:collapse;font-size:13.5px}
.tbl th{text-align:left;color:var(--muted);font-size:11px;letter-spacing:.08em;text-transform:uppercase;padding:8px;border-bottom:1px solid var(--line)}
.tbl td{padding:9px 8px;border-bottom:1px solid #1c1f24}
.box2{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:14px 16px;display:grid;gap:10px}
.bolo{padding:10px 12px;border-radius:10px;background:#0e1013;border:1px solid #2c3038;border-left:4px solid #f2a13a;display:grid;gap:3px;font-size:13px}
.bolo b{font-size:14px}
.plate{display:inline-grid;place-items:center;min-width:220px;padding:10px 18px 8px;border-radius:12px;background:linear-gradient(180deg,#fdfdfb,#e6e7e2);color:#13233f;border:3px solid #1d3b7a;box-shadow:0 5px 0 #0f2148,0 14px 30px rgba(0,0,0,.45)}
.plate small{font:800 10px/1 system-ui;letter-spacing:.3em;color:#1d3b7a}
.plate b{font:900 38px/1.05 "Arial Black",Arial,sans-serif;letter-spacing:.08em}
.live{display:inline-flex;gap:7px;align-items:center;font:800 11px/1 system-ui;letter-spacing:.1em;color:#7ee2a0;border:1px solid rgba(47,174,76,.5);background:rgba(47,174,76,.12);border-radius:99px;padding:5px 10px}
.live i{width:8px;height:8px;border-radius:50%;background:#2fae4c;box-shadow:0 0 8px #2fae4c}
.veh{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:18px;display:grid;grid-template-columns:auto 1fr;gap:22px;align-items:center}
.swatch{display:inline-flex;align-items:center;gap:8px}.swatch i{width:18px;height:18px;border-radius:5px;background:var(--col);border:2px solid rgba(255,255,255,.3)}
.kv3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}
.hits{display:grid;gap:8px}
.hit{display:grid;grid-template-columns:110px 1fr auto;gap:12px;align-items:center;padding:10px 12px;border-radius:10px;background:#0e1013;border:1px solid #23272e}
.hit .p{font:900 15px "Arial Black",Arial;letter-spacing:.06em;color:#fff}
.hit small{color:var(--muted)}
.alertbar{display:flex;gap:10px;align-items:center;padding:12px 14px;border-radius:10px;background:#3a1312;border:1px solid #7a1c18;color:#ffd9d6;font-weight:700}
.alertbar b{color:#fff}
.chip { background: #0e1013 !important; }

.addhist { display: grid; grid-template-columns: 150px 1fr auto; gap: 8px; align-items: center; }
.addhist select, .addhist input { width: 100%; }

.officer-board .codes .rbtn { justify-content: center; }

/* ===================== v2 layout: menu on the left, page in the middle, radio console docked at the bottom ===================== */
.app { height: 100vh; min-height: 0; display: flex; flex-direction: column; }
.top .who { gap: 10px; }
.role { font: 800 10px/1 system-ui; letter-spacing: .08em; padding: 4px 7px; border-radius: 5px; background: #13284a; color: #9cc7ff; }
.role.d { background: #3a2a10; color: #ffd28a; }
.shell { flex: 1; min-height: 0; display: grid; grid-template-columns: 84px minmax(0, 1fr); }
.rail { display: flex; flex-direction: column; gap: 4px; padding: 12px 8px; border-right: 1px solid var(--line); background: #0c0e11; overflow-y: auto; }
.rail button { all: unset; box-sizing: border-box; position: relative; cursor: pointer; display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; color: var(--muted); font-size: 11px; font-weight: 700; }
.rail button svg { width: 22px; height: 22px; }
.rail button:hover { color: var(--text); background: #14171c; }
.rail button.on { background: #13284a; color: #fff; box-shadow: inset 0 0 0 1px #3b7ef0; }
.rail button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.rail button[hidden] { display: none; }
.rail em { position: absolute; top: 5px; right: 9px; font: 800 10px/1 system-ui; font-style: normal; background: #d93a32; color: #fff; border-radius: 6px; padding: 2px 5px; }
.rail em.a { background: #f0b429; color: #1d1405; }
.main { min-height: 0; overflow-y: auto; }
.main > .view { padding: 14px 16px; }
.main > .view > .cad, .main > .view > .rec, .main > .view > .pad { padding: 0; }
#v-console { display: grid; gap: 12px; align-content: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.ph { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.ph h3 { margin: 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ph .sp { flex: 1; }
.cols { display: grid; gap: 12px; align-items: start; }
.cols.c2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.cols.c2e { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.col { display: grid; gap: 12px; align-content: start; }
.qlist { display: grid; gap: 8px; padding: 10px; }
.log-panel .log { padding: 6px 14px 10px; max-height: 190px; }
.nc .ncb { padding: 12px; display: grid; gap: 9px; }
.nc.p1 { border-color: #7a1c18; box-shadow: 0 0 0 1px #7a1c18 inset; }
.g4 { display: grid; grid-template-columns: .55fr 1.7fr .65fr .9fr; gap: 10px; }
.pick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pick > small { margin-right: 4px; font-weight: 700; letter-spacing: .06em; }
.uc { font: inherit; font-size: 12.5px; font-weight: 700; padding: 5px 11px 5px 8px; border-radius: 99px; background: #0c0e12; border: 1px solid var(--line); color: #c9ccd3; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.uc:hover { border-color: #3a3f48; }
.uc.on { background: #13284a; border-color: #3b7ef0; color: #fff; }
.uc.dim { opacity: .55; }
.ucd { width: 8px; height: 8px; border-radius: 50%; background: var(--sc, #2fae4c); }
.sts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; padding: 12px; }
.sts .rbtn { justify-content: center; padding: 12px 6px; }
.sts .rbtn.cur { box-shadow: 0 4px 0 #0c0d10, 0 0 0 2px #fff inset; }
.qlk { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; }
/* the dock */
.dock { flex: none; border-top: 1px solid var(--line); background: linear-gradient(180deg, #0f1115, #0a0b0e); padding: 9px 16px 13px; display: grid; gap: 9px; }
.dock-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grptabs { display: flex; gap: 4px; flex-wrap: wrap; }
.gt { font: inherit; font-weight: 800; font-size: 12.5px; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); background: none; border: 0; border-radius: 9px; padding: 7px 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.gt:hover { color: var(--text); background: #14171c; }
.gt.on { background: #13284a; color: #fff; box-shadow: inset 0 0 0 1px #3b7ef0; }
.cnt { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 6px; font: 800 10.5px/1 system-ui; }
.cnt.g { background: #2fae4c; color: #fff; } .cnt.r { background: #d93a32; color: #fff; }
.dock-hint { flex: 1; min-width: 160px; text-align: right; }
.dock-acts { display: flex; gap: 6px; align-items: center; }
.dock-acts[hidden] { display: none; }
.dock-acts .tb { font: inherit; font-weight: 800; font-size: 12px; padding: 7px 12px; border-radius: 9px; background: #0c0e12; border: 1px solid var(--line); color: var(--text); cursor: pointer; }
.dock-acts .tb:hover { background: #15181d; }
.dock-acts .tb.r { background: #2a1110; border-color: #5a1f1c; }
.dock-acts .tb.sent { border-color: #2fae4c; }
.dock-chs { display: flex; gap: 10px; height: 214px; }
.chcols { flex: 1; min-width: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 2px; }
.chcol { background: #111318; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.chcol.tx { border-color: #2fae4c; box-shadow: 0 0 0 1px #2fae4c inset, 0 0 22px rgba(47, 174, 76, .12); }
.chcol.off { opacity: .55; }
.chcol.onair .vu { background: linear-gradient(90deg, #2fae4c, #f0b429 70%, transparent 70%); animation: vu 0.6s steps(3) infinite alternate; }
@keyframes vu { to { background-size: 80% 100%; } }
.chh { display: flex; align-items: center; gap: 6px; padding: 8px 9px; background: linear-gradient(180deg, #191d25, #14171d); border-bottom: 1px solid var(--line); }
.cht { flex: 1; min-width: 0; }
.cht b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cht small { color: var(--muted); font-size: 11px; }
.chcol.tx .cht b { color: #7ee2a0; }
.ico { all: unset; box-sizing: border-box; flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #0c0e12; border: 1px solid var(--line); color: var(--muted); cursor: pointer; }
.ico svg { width: 15px; height: 15px; }
.ico:hover { color: #fff; border-color: #3a3f48; }
.ico:focus-visible { outline: 2px solid var(--blue); }
.ico.on { color: #fff; background: #1e3a24; border-color: #2fae4c; }
.ico.mon { color: #fff; background: #13284a; border-color: #3b7ef0; }
.sigtag { background: #d93a32; color: #fff; font: 800 9.5px/1 system-ui; letter-spacing: .06em; padding: 4px 6px; border-radius: 4px; flex: none; }
.chb { flex: 1; overflow-y: auto; padding: 5px; }
.chb .empty { margin: 10px 6px; font-size: 12px; }
.u { display: flex; align-items: center; gap: 8px; padding: 6px 7px; border-radius: 9px; font-size: 13px; }
.u + .u { margin-top: 2px; }
.u:hover { background: #1a1d24; }
.u .n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.led { width: 13px; height: 13px; border-radius: 50%; border: 2px solid #2fae4c; flex: none; }
.u.talk { background: rgba(47, 174, 76, .13); }
.u.talk .led { background: #2fae4c; box-shadow: 0 0 10px #2fae4c; }
.u.talk .n { color: #9ff0b6; font-weight: 700; }
.u.disp .led { border-color: #f2a13a; background: #f2a13a; box-shadow: 0 0 10px #f2a13a; }
.u.disp .n { color: #ffd28a; }
.u.panic { background: #3a1312; animation: panicflash .8s steps(2) 8; }
.vu { height: 4px; background: #0c0e12; flex: none; }
.u .stat-btn { min-width: 0; }
.u .stat-btn .code { min-width: 46px; padding: 3px 7px; font-size: 11px; border-right: 0; }
.u .stat-btn .caret { padding: 3px 7px 3px 0; }
body > .stat-list { position: fixed; right: auto; top: 0; z-index: 70; }
.pttbig { all: unset; box-sizing: border-box; flex: none; width: 126px; cursor: pointer; user-select: none; touch-action: none; display: grid; place-items: center; align-content: center; gap: 6px; border-radius: 16px; background: linear-gradient(180deg, #262a31, #171a1f); border: 1px solid var(--line); box-shadow: 0 5px 0 #08090b; text-align: center; transition: transform .06s; }
.pttbig[hidden] { display: none; }
.pttbig b { letter-spacing: .14em; font-size: 15px; }
.pttbig small { color: var(--muted); font-size: 11px; }
.pttdot { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: #1e3a24; border: 2px solid #2fae4c; color: #7ee2a0; }
.pttdot svg { width: 22px; height: 22px; }
.pttbig:hover .pttdot { box-shadow: 0 0 14px rgba(47, 174, 76, .4); }
.pttbig.down { transform: translateY(4px); box-shadow: 0 1px 0 #08090b; background: linear-gradient(180deg, #1e3a24, #142a19); border-color: #2fae4c; }
.pttbig.down .pttdot { background: #2fae4c; color: #fff; box-shadow: 0 0 22px #2fae4c; }
.pttbig.down small { color: #9ff0b6; }
.pttbig:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
body.officer .dock-chs { height: 190px; }
@media (prefers-reduced-motion: reduce) { .chcol.onair .vu { animation: none; } }
@media (max-width: 1100px) { .cols.c2, .cols.c2e { grid-template-columns: 1fr; } .sts { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .rail { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 6px; }
  .rail button { padding: 6px 10px; }
  .g4 { grid-template-columns: 1fr 1fr; }
  .dock-chs { height: 180px; }
  .pttbig { width: 92px; }
  .chcols { grid-auto-columns: minmax(190px, 1fr); }
  .app { height: auto; min-height: 100vh; }
}

/* ---- records: avatar, extra fields, Roblox look-ups ---- */
.avcol { display: grid; gap: 8px; justify-items: center; align-content: start; }
.avcol .rbtn { width: 100%; justify-content: center; }
.person .avatar { overflow: hidden; background: radial-gradient(circle at 50% 30%, #2b3646, #161b22); }
.person .avatar img, .rbcard img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rbx { font: 700 13px Consolas, Menlo, monospace; color: #8cb6ff; }
.g6 { display: grid; grid-template-columns: .7fr 1fr 1fr 1fr 1fr .8fr; gap: 8px; }
.rblook { min-height: 22px; margin: -2px 0 2px; }
.rblook .red { color: #ff8a80; }
.rbmini { display: inline-flex; align-items: center; gap: 8px; color: #c9ccd3; }
.rbmini img { width: 28px; height: 28px; border-radius: 8px; background: #1b2230; }
.rbcard { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; }
.rbcard img { width: 112px; height: 112px; border-radius: 14px; background: radial-gradient(circle at 50% 30%, #2b3646, #161b22); }
.rbinfo { display: grid; gap: 4px; }
.rbinfo > b { font-size: 18px; }
.rbinfo .kv3 { margin-top: 6px; }
.red { color: #ff8a80; }
.okbar { padding: 10px 14px; border-radius: 10px; background: #12261a; border: 1px solid #1f5a33; color: #9ff0b6; font-weight: 700; }
.tspv { min-height: 22px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dlg.wide { width: min(860px, 100%); }
.idwrap { display: grid; gap: 12px; }

/* ---- roleplay ID card ---- */
.idcard { position: relative; overflow: hidden; border-radius: 18px; color: #1d2a3c; aspect-ratio: 1.586; width: 100%; max-width: 800px; display: grid; grid-template-rows: auto 1fr auto;
  background:
    repeating-radial-gradient(circle at 78% 120%, rgba(36, 86, 160, .07) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(115deg, rgba(36, 86, 160, .05) 0 1px, transparent 1px 7px),
    linear-gradient(160deg, #fbfaf4, #eef1ec 55%, #e4ebf2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 22px 50px rgba(0, 0, 0, .55); font-family: "Segoe UI", Arial, sans-serif; }
.idcard::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .35) 45%, rgba(170, 210, 255, .18) 50%, transparent 60%); mix-blend-mode: screen; }
.idtop { display: flex; justify-content: space-between; align-items: center; padding: 3.2% 4% 2.4%; background: linear-gradient(90deg, #163a6e, #2456a0 60%, #2f6cc4); color: #fff; }
.idcounty { font: 900 clamp(16px, 3.4vw, 30px)/1.05 Georgia, "Times New Roman", serif; letter-spacing: .02em; }
.idkind { font-size: clamp(9px, 1.25vw, 12px); letter-spacing: .32em; font-weight: 700; opacity: .9; margin-top: 3px; }
.idseal { width: clamp(38px, 6.4vw, 60px); aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8); display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(255, 255, 255, .15); font-size: clamp(16px, 2.6vw, 26px); color: #ffd56a; }
.idbody { display: grid; grid-template-columns: 30% 1fr; gap: 3%; padding: 3% 4% 1.5%; min-height: 0; }
.idleft { display: grid; gap: 6px; align-content: start; }
.idphoto { aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: radial-gradient(circle at 50% 35%, #dfe8f3, #b9c8db); border: 1px solid rgba(29, 42, 60, .25); display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .15) inset; }
.idphoto img { width: 100%; height: 100%; object-fit: cover; }
.idphoto span { font: 900 40px Georgia, serif; color: #5d6f86; }
.idrbx { font: 700 clamp(9px, 1.2vw, 12px) Consolas, monospace; text-align: center; color: #3c5378; }
.idsig { font: italic 400 clamp(14px, 2.2vw, 22px)/1 "Brush Script MT", "Segoe Script", cursive; color: #22324a; text-align: center; border-top: 1px solid rgba(29, 42, 60, .35); padding-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6% 3%; align-content: start; }
.idf small { display: block; font-size: clamp(8px, 1.05vw, 10.5px); letter-spacing: .14em; font-weight: 800; color: #b23a32; }
.idf b { display: block; font-size: clamp(12px, 1.8vw, 18px); font-weight: 800; color: #1d2a3c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idf.big b { font-size: clamp(15px, 2.6vw, 26px); letter-spacing: .02em; }
.idf.big { grid-column: span 3; }
.idf.wide { grid-column: span 3; }
.idgrid .idf:nth-child(1), .idgrid .idf:nth-child(2) { grid-column: span 1; }
.idgrid .idf:nth-child(2) { grid-column: span 2; }
.idfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 1.4% 4% 2.4%; border-top: 1px solid rgba(29, 42, 60, .18); font-size: clamp(8px, 1.05vw, 10.5px); letter-spacing: .18em; font-weight: 800; color: #51627a; }
.idbar { display: flex; gap: 2px; height: clamp(14px, 2.4vw, 22px); align-items: stretch; }
.idbar i { background: #1d2a3c; }

@media (max-width: 1100px) { .g6 { grid-template-columns: repeat(3, 1fr); } }

/* ---- civilians in the server (records home) and Roblox headshots ---- */
.face { width: 46px; height: 46px; border-radius: 10px; flex: none; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, #2a2e35, #1a1d22); color: #8b929c; font: 800 15px/1 Inter, Arial, sans-serif; }
.face.has { background: linear-gradient(180deg, #f4f5f7, #dfe3e8); }
.face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.face.sm { width: 38px; height: 38px; border-radius: 9px; font-size: 13px; }
.hit.withface { grid-template-columns: 38px minmax(110px, auto) 1fr auto; }
.civgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.civ { display: grid; justify-items: center; text-align: center; gap: 3px; padding: 12px 8px 10px; border-radius: 12px; background: #0e1013; border: 1px solid #23272e; cursor: pointer; transition: border-color .15s, transform .15s; min-width: 0; }
.civ:hover, .civ:focus-visible { border-color: #3a7bd5; transform: translateY(-1px); outline: none; }
.civ.flagged { border-color: #7a2621; background: linear-gradient(180deg, #1a0f0f, #0e1013); }
.civ .face { width: 74px; height: 74px; border-radius: 14px; margin-bottom: 4px; }
.civ b { font-size: 13.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.civ small { color: var(--muted); font-size: 11.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.civ .flags { justify-content: center; margin-top: 2px; }
.civ .flag { font-size: 9px; padding: 2px 5px; }
.inserver { display: inline-block; margin-left: 8px; padding: 2px 6px; border-radius: 5px; background: rgba(47, 174, 76, .14); color: #43c463; font: 800 9.5px/1.2 Consolas, monospace; letter-spacing: .08em; vertical-align: 1px; }
.person .avatar.has { background: linear-gradient(180deg, #f4f5f7, #dfe3e8); }

/* ---- Sounds menu ---- */
#sound-btn.muted-snd { color: #e5484d; border-color: #5a2422; }
.sndmenu { position: fixed; z-index: 60; width: 320px; padding: 10px; border-radius: 14px; background: #14171c; border: 1px solid #2a2f37; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); display: grid; gap: 4px; }
.sndrow { display: grid; grid-template-columns: 18px 1fr 30px; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 9px; cursor: pointer; }
.sndrow:hover { background: #1b1f26; }
.sndrow input { width: 16px; height: 16px; accent-color: #3a7bd5; margin: 0; }
.sndrow b { display: block; font-size: 13px; }
.sndrow small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.sndrow.main { grid-template-columns: 18px 1fr; border-bottom: 1px solid #23272e; border-radius: 9px 9px 0 0; padding-bottom: 9px; }
.sndrow.main b { font-size: 14px; }
.sndvol { display: grid; grid-template-columns: 60px 1fr; align-items: center; gap: 10px; padding: 6px 8px 8px; border-bottom: 1px solid #23272e; margin-bottom: 4px; font-size: 12px; color: var(--muted); }
.sndvol input { width: 100%; accent-color: #3a7bd5; }
.sndtest { width: 28px; height: 28px; border-radius: 8px; border: 1px solid #2f353e; background: #1b1f26; color: #c9d1db; font-size: 11px; cursor: pointer; }
.sndtest:hover { background: #24304a; border-color: #3a7bd5; color: #fff; }

/* PTT in the console bar, next to the group tabs and tone buttons (channels get the full width below) */
.pttbig.pttbar { width: auto; display: inline-flex; align-items: center; gap: 9px; padding: 4px 14px 4px 5px; border-radius: 999px; box-shadow: 0 3px 0 #08090b; }
.pttbar .pttdot { width: 28px; height: 28px; border-width: 2px; }
.pttbar .pttdot svg { width: 14px; height: 14px; }
.pttbar b { font-size: 13px; letter-spacing: .12em; }
.pttbar small { font-size: 11px; }
.pttbig.pttbar.down { transform: translateY(2px); box-shadow: 0 1px 0 #08090b; }

/* sign-in: dispatch is a Plus perk */
.plusline { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.pluspill { margin-right: 6px; vertical-align: 1px; }
.signin a { color: #6ea8ff; }
.plusline a { color: #f0c050; }
.pluspill { font: 800 10px/1 Consolas, monospace; letter-spacing: .1em; padding: 4px 7px; border-radius: 6px; background: rgba(240, 192, 80, .14); color: #f0c050; border: 1px solid rgba(240, 192, 80, .4); }

/* =====================================================================================
   Reality CAD look (v3): a flat, squared, dense console like professional CAD software.
   No gradients, glows or raised 3D buttons; slate panels with header strips; small caps labels.
   ===================================================================================== */
:root {
  --bg: #0d0f12; --panel: #161a20; --panel2: #1c2128; --line: #2a3039; --line2: #343b46; --text: #e6e9ee; --muted: #8d96a3;
  --blue: #2f6fde; --blue-2: #3d7ff0; --red: #c8352e; --amber: #e3982f; --strip: #1f252d;
}
html, body { background: var(--bg); font-size: 13.5px; }
.brand b { color: var(--blue-2); }
.brand img { border-radius: 4px; }

/* header */
.top { background: #12161b; border-bottom: 1px solid var(--line); padding: 8px 14px; gap: 14px; }
.top .net { font-size: 14px; }
.top .who { gap: 6px; }
.role { border-radius: 3px !important; }

/* buttons: flat, squared */
.btn, .rbtn { border-radius: 4px !important; transform: none !important; box-shadow: none !important; }
.rbtn { font-weight: 700; font-size: 12.5px; padding: 7px 12px; letter-spacing: .01em; border: 1px solid transparent; }
.rbtn.sm { padding: 5px 10px; font-size: 12px; }
.rbtn.blue { background: var(--blue); border-color: #3b7be6; }
.rbtn.blue:hover { background: #3a7ae8; }
.rbtn.green { background: #22863a; border-color: #2c9a47; }
.rbtn.green:hover { background: #279642; }
.rbtn.red { background: var(--red); border-color: #d9453d; }
.rbtn.amber { background: #c7801f; border-color: #d99230; color: #fff; }
.rbtn.amber:hover { background: #d48b26; }
.rbtn.dark { background: var(--panel2); border-color: var(--line2); color: var(--text); }
.rbtn.dark:hover { background: #242a33; }
.rbtn:active { filter: brightness(.92); }
.btn { background: var(--panel2); border-color: var(--line2); }
.btn.small { padding: 5px 10px; }

/* left menu */
.rail { background: #101318; padding: 8px 6px; gap: 2px; }
.rail button { border-radius: 4px; padding: 9px 4px; font-size: 10.5px; letter-spacing: .03em; text-transform: uppercase; }
.rail button:hover { background: #181c22; }
.rail button.on { background: #1b2635; box-shadow: inset 3px 0 0 var(--blue-2); color: #fff; }
.rail em { border-radius: 3px; }

/* panels with a header strip */
.box2 { border-radius: 4px; padding: 0; gap: 0; background: var(--panel); border-color: var(--line); }
.box2 > .hd, .ph { background: var(--strip); border-bottom: 1px solid var(--line); padding: 7px 12px; min-height: 36px; }
.box2 > :not(.hd) { margin: 10px 12px; }
.box2 > .hd + * { margin-top: 10px; }
.box2 h3, .ph h3 { font-size: 11px; letter-spacing: .12em; color: #b7c0cc; font-weight: 800; }
[class*="panel"], .pane { border-radius: 4px; }

/* form fields */
.f { border-radius: 3px; background: #0f1216; border-color: var(--line); min-height: 44px; padding: 5px 9px 6px; }
.f small { font-size: 10px; letter-spacing: .1em; }
.f input, .f select, .f textarea, .f span { font-size: 14px; }
.f:focus-within { border-color: var(--blue-2); box-shadow: inset 0 0 0 1px var(--blue-2); }
input, select, textarea { border-radius: 3px; }

/* calls list: tight rows with a priority bar */
.call { border-radius: 3px; padding: 9px 12px 9px 15px; gap: 3px; background: var(--panel); }
.call::before { top: 0; bottom: 0; border-radius: 0; width: 3px; }
.call:hover { background: #1a1f26; }
.call.on { background: #17202c; border-color: var(--blue-2); box-shadow: none; }
.call b { font-size: 14px; }
.call .ad { font-size: 12.5px; }

/* chips, tags, tables, hits */
.chip, .flag, .pluspill, .uc { border-radius: 3px !important; }
.hit { border-radius: 3px; background: #11151a; border-color: var(--line); }
.hit:hover { border-color: var(--line2); background: #151a20; }
.tbl th { font-size: 10.5px; letter-spacing: .1em; }
.tbl tr:nth-child(even) td { background: rgba(255, 255, 255, .015); }

/* records */
.person .avatar, .avatar, .face, .civ, .civ .face { border-radius: 4px !important; }
.civ { background: #11151a; }
.civ:hover { transform: none; }

/* dialogs, toasts, menus */
.dlg { border-radius: 6px; background: var(--panel); }
.toast { border-radius: 4px; }
.stat-list, .sndmenu { border-radius: 4px !important; }
.sndrow, .sndtest { border-radius: 3px !important; }

/* radio console */
.dock { background: #0f1216; border-top: 1px solid var(--line2); padding: 7px 12px 10px; gap: 7px; }
.grptabs button, .grptabs .gt { border-radius: 3px !important; }
.chcol { border-radius: 4px; background: #12161b; }
.chcol .cht, .chcol .chan-h { background: var(--strip); }
.u { border-radius: 3px; }
.stat-btn { border-radius: 3px !important; }
.pttbig.pttbar { border-radius: 4px !important; box-shadow: none; padding: 3px 12px 3px 4px; }
.pttbar .pttdot { border-radius: 3px; width: 26px; height: 26px; }
.pttbig.pttbar.down { transform: none; }
.dock-acts .tb { border-radius: 4px; font-weight: 700; padding: 6px 12px; background: var(--panel2); border-color: var(--line2); }
.dock-acts .tb:hover { background: #242a33; }

/* Tones button and tone tab */
.tonesb span { color: var(--muted); margin-left: 2px; }
.tonetab { position: fixed; z-index: 65; width: 360px; background: var(--panel); border: 1px solid var(--line2); border-radius: 4px; box-shadow: 0 16px 40px rgba(0, 0, 0, .55); }
.tt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; background: var(--strip); border-bottom: 1px solid var(--line); }
.tt-head b { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #b7c0cc; }
.tt-seg { display: flex; border: 1px solid var(--line2); border-radius: 3px; overflow: hidden; }
.tt-seg button { all: unset; cursor: pointer; padding: 4px 9px; font-size: 11.5px; font-weight: 700; color: var(--muted); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-seg button.on { background: var(--blue); color: #fff; }
.tt-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 10px; }
.tt-tone { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 7px; padding: 9px 8px; border: 1px solid var(--line2); border-radius: 3px; background: #11151a; font-weight: 700; font-size: 12.5px; min-width: 0; }
.tt-tone span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-tone kbd { font: 700 10px/1 Consolas, monospace; color: var(--muted); border: 1px solid var(--line2); border-radius: 2px; padding: 2px 4px; flex: none; }
.tt-tone:hover, .tt-tone:focus-visible { border-color: var(--blue-2); background: #16202c; outline: none; }
.tt-tone.r { border-color: #5c2420; background: #1d1111; }
.tt-tone.sent { border-color: #2c9a47; background: #12241a; }
.tt-note { margin: 0; padding: 0 10px 10px; font-size: 11.5px; color: var(--muted); }

/* sign-in card */
.card { border-radius: 6px; }
/* lists inside panels: joined rows, not separate cards */
.box2 > .hit { margin: 0 !important; border-radius: 0; border-width: 0 0 1px; background: transparent; padding: 9px 12px; }
.box2 > .hit:hover { background: #1a1f26; }
.box2 > .hit:last-child { border-bottom: 0; }
.box2 > .hd + .hit { margin-top: 0 !important; }
.chcol .cht, .chcol .chan-h { background: transparent; }
.chcol > :first-child { background: var(--strip); border-bottom: 1px solid var(--line); }
.bolo { border-radius: 3px !important; }
.chcol.tx { box-shadow: inset 0 0 0 1px #2c9a47; }
