/* PremierOne CAD client - the look, taken from the user guide's screenshots (MN008396A01-V):
   a Windows desktop application - bluish-grey chrome (#e5e8ee), white forms, a gunmetal tab bar
   with the clock recessed into it, and the cyan seven-segment clock. Colours sampled from fig
   p.80 (2014) and p.89 (overlay); where the training CAD differs, the manual wins. */

/* DSEG7 Classic Italic (dseg 0.46.0, SIL OFL - fonts/DSEG-LICENSE.txt), served from here: the
   CSP allows fonts from this origin only, so the CDN copy was never loaded on the live site. */
@font-face {
  font-family: "DSEG7";
  src: url("fonts/DSEG7Classic-Italic.woff2") format("woff2");
  font-display: swap;
}

:root {
  --chrome: #e5e8ee;
  --chrome-2: #e3e3e3;
  --edge: #a9a9a9;
  --edge-dark: #707070;
  --text: #000;
  --muted: #555;
  --field: #fff;
  --field-edge: #abadb3;
  --focus: #569de5;
  --yellow: #fcf3a9;
  --blue: #1e6bc0;
  --select: #3b78c8;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font: 12px "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  background: #3a5a78 linear-gradient(160deg, #2d4b68, #4a7194);
  overflow: hidden;
  user-select: none;
}
input, select, textarea, button { font: inherit; color: inherit; }
.hidden { display: none !important; }
u { text-decoration: underline; }

#desktop { position: fixed; inset: 0; overflow: hidden; }

/* --- windows --------------------------------------------------------------------------- */
.win {
  position: absolute; display: flex; flex-direction: column; background: var(--chrome);
  border: 1px solid #6d6d6d; box-shadow: 0 4px 18px rgba(0,0,0,.45); min-width: 200px;
}
.win.minimized .win-body, .win.minimized .win-rs { display: none; }
.win-title {
  display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 0 0 6px; flex: none;
  background: linear-gradient(#ffffff, #e9e9e9); border-bottom: 1px solid #c8c8c8; cursor: default;
}
.win-title-t { font-size: 12px; white-space: nowrap; }
/* The title bars' ATXRP mark (ui.js winLogo), where PremierOne has Motorola's M. */
.win-logo { display: inline-block; width: 18px; height: 18px; flex: none; object-fit: contain; }
.win-grip {
  flex: 1 1 auto; height: 12px; margin: 0 8px;
  background-image: radial-gradient(#b8b8b8 1px, transparent 1.2px); background-size: 4px 4px;
}
.win-btns { display: flex; align-self: stretch; }
.win-b {
  width: 34px; border: 0; background: transparent; position: relative; cursor: default;
}
.win-b:hover { background: #e5e5e5; }
.win-close:hover { background: #e81123; }
.win-min::after { content: ""; position: absolute; left: 12px; right: 12px; top: 15px; border-top: 1px solid #000; }
.win-max::after { content: ""; position: absolute; left: 12px; top: 9px; width: 10px; height: 9px; border: 1px solid #000; }
.win-close::before, .win-close::after {
  content: ""; position: absolute; left: 11px; top: 13px; width: 13px; border-top: 1px solid #000; transform: rotate(45deg);
}
.win-close::after { transform: rotate(-45deg); }
.win-close:hover::before, .win-close:hover::after { border-color: #fff; }
.win-body { flex: 1 1 auto; min-height: 0; overflow: hidden; position: relative; }
.win-rs { position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; cursor: nwse-resize;
  background: linear-gradient(135deg, transparent 50%, #9a9a9a 50%, transparent 60%, #9a9a9a 70%, transparent 80%); }

/* --- buttons and fields ------------------------------------------------------------------ */
/* Win7 two-tone glossy buttons (fig p.80 L/L, Verify, View Incid), the training CAD's four stops. */
.btn {
  min-height: 23px; padding: 1px 10px; background: linear-gradient(#f2f2f2, #ebebeb 50%, #dddddd 51%, #cfcfcf);
  border: 1px solid var(--edge-dark); border-radius: 3px; cursor: default; white-space: nowrap;
}
.btn:hover:not(:disabled) { background: linear-gradient(#eaf6fd, #bee6fd); border-color: #3c7fb1; }
.btn:active:not(:disabled) { background: linear-gradient(#c4e5f6, #98d1ef); }
.btn:disabled { color: #9a9a9a; border-color: #bfbfbf; background: #f4f4f4; }
.btn.primary { border-color: #3c7fb1; box-shadow: inset 0 0 0 1px #9cd0ef; }
.btn.on { background: linear-gradient(#cde6f7, #9ccbee); border-color: #3c7fb1; }
.btn-icon.no { width: 24px; padding: 0; background: #fff; border-color: #bbb; position: relative; }
.btn-icon.no::after { content: "\2298"; color: #d11; font-weight: 700; font-size: 16px; line-height: 20px; }
.fi, .fs, .fa {
  height: 22px; padding: 1px 4px; background: var(--field); border: 1px solid var(--field-edge); border-radius: 0;
  user-select: text;
}
.fa { height: auto; resize: vertical; width: 100%; min-height: 44px; }
.fi:focus, .fs:focus, .fa:focus { outline: none; border-color: var(--focus); }
.fi.req, .fs.req, .fa.yellow, .fi:focus.req { background: var(--yellow); }
.fi[readonly] { background: #f7f7f7; }
.fs { padding: 0 2px; }

/* --- the client -------------------------------------------------------------------------- */
.p1 { display: flex; flex-direction: column; height: 100%; position: relative; }
.tb-b { width: 46px; align-self: stretch; border: 0; background: transparent; position: relative; cursor: default; padding: 0; }
.tb-b:hover:not(:disabled) { background: #e5e5e5; }
.tb-b.tb-close:hover { background: #e81123; }
.tb-min::after { content: ""; position: absolute; left: 18px; right: 18px; top: 13px; border-top: 1px solid #111; }
.tb-max::after { content: ""; position: absolute; left: 18px; top: 8px; width: 9px; height: 9px; border: 1px solid #111; }
.tb-b:disabled::after { border-color: #aaa; }
.tb-close::before, .tb-close::after { content: ""; position: absolute; left: 16px; top: 13px; width: 13px; border-top: 1px solid #111; transform: rotate(45deg); }
.tb-close::after { transform: rotate(-45deg); }
.tb-close:hover::before, .tb-close:hover::after { border-color: #fff; }
.p1-menubar {
  display: flex; align-items: center; gap: 2px; height: 28px; padding: 0 4px; background: var(--chrome);
  border-bottom: 1px solid #c9cdd6; flex: none;
}
/* Menu underlines show once Alt is pressed (guide p.81), as Windows does. */
.p1-menubar .mb u { text-decoration: none; }
.p1.alt-cues .p1-menubar .mb u { text-decoration: underline; }
.mb-grip { width: 4px; height: 18px; margin-right: 4px; background-image: radial-gradient(#9a9a9a 1px, transparent 1.2px); background-size: 3px 3px; }
.mb { border: 1px solid transparent; background: none; padding: 2px 6px; cursor: default; white-space: nowrap; flex: none; }
.mb:hover { background: #e5f1fb; border-color: #cce4f7; }
.p1-cmd, .p1-status {
  display: flex; align-items: center; height: 24px; background: #fff; border: 1px solid #b9b9b9; margin-left: 4px;
}
.p1-cmd { flex: 1 1 auto; min-width: 0; }
.p1-cmd input { flex: 1 1 auto; height: 100%; border: 0; padding: 0 6px; font-size: 14px; outline: none; user-select: text; }
/* The status message area is a fixed width (fig p.80: about 342 px; the training CAD's 340). */
.p1-status { flex: 0 0 342px; min-width: 0; padding-left: 4px; gap: 5px; }
#status-msg { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.combo-arrow { width: 18px; text-align: center; color: #333; cursor: default; flex: none; }
.st-icon { width: 15px; height: 15px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font: 700 10px Arial; }
.st-icon.ok { background: radial-gradient(circle at 40% 35%, #6fd36f, #1e8e1e); }
.st-icon.ok::after { content: "\2714"; }
.st-icon.warn { background: radial-gradient(circle at 40% 35%, #ffd76a, #d49a00); }
.st-icon.warn::after { content: "!"; }
.st-icon.err { background: radial-gradient(circle at 40% 35%, #ff7676, #c01616); }
.st-icon.err::after { content: "\2716"; }

/* Row heights from fig p.80 (1025 px wide): menu bar 28, main tab bar 36, date strip 28. The PWA
   and WAA share their width across a splitter (client.js), the WAA 353 px by default. */
.p1-grid {
  flex: 1 1 auto; min-height: 0; display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 6px var(--waa-w, 353px);
  grid-template-rows: 36px 28px minmax(0, 1fr);
  grid-template-areas:
    "clock tabs  tabs  tabs"
    "date  sub   split waat"
    "left  pwa   split waa";
}
/* The gunmetal gloss of the main tab bar (sampled at x=900 on fig p.80), which runs under the clock too. */
.p1-clock, .p1-maintabs {
  background: linear-gradient(#8c93ad 0, #8c93ad 1px, #60657c 1px, #4c4c56 50%, #1a1a22 50%, #20202f 80%, #42435e 88%, #585b6f calc(100% - 1px), #8c93ad calc(100% - 1px));
}
.p1-clock { grid-area: clock; display: flex; align-items: center; justify-content: center; padding: 3px 8px; }
/* The clock sits in a recessed dark box on the bar. */
.clock-box { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 100%;
  background: #0b0c12; border: 1px solid #000; box-shadow: inset 1px 1px 2px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.18); color: #3fd9f5; }
#clock-t { font: 22px "DSEG7", "Consolas", monospace; letter-spacing: 1px; }
#clock-ap { font: italic 700 13px Arial; align-self: flex-start; margin-top: 7px; }
.p1-maintabs {
  grid-area: tabs; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 8px 0 6px;
}
.mt-list { display: flex; gap: 4px; align-items: flex-end; height: 100%; }
.mt {
  height: 30px; min-width: 104px; padding: 0 18px; border: 1px solid transparent; border-bottom: 0;
  background: none; color: #e8eef4; font-size: 15px; cursor: default; border-radius: 4px 4px 0 0;
}
.mt:hover { color: #fff; background: rgba(255,255,255,.07); }
/* The selected tab (fig p.80 at x=250): #6687f3 at the top, navy in the middle, a cyan band along the bottom. */
.mt.on {
  color: #fff; background: linear-gradient(#6687f3, #2a3a9c 52%, #2a3a9c 76%, #3ca9e3 86%, #3ebfe7); border-color: #8fa3e8;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
/* Window overlay navigation (guide 2.2.4, fig p.89): "Results 1 of 6." at the right end of the tab
   bar between round glossy blue up / down buttons, and a grey X after them. */
.ovnav { display: flex; align-items: center; gap: 6px; align-self: center; color: #fff; font-size: 12px; }
.ovnav .ov-t { white-space: nowrap; padding: 0 2px; }
.ov-arrow { width: 24px; height: 24px; border-radius: 50%; border: 1px solid #9cc9f5; padding: 0; cursor: default;
  background: radial-gradient(circle at 40% 30%, #8cc8ff, #1a5fb4 70%); color: #fff; font-weight: 700; font-size: 13px; line-height: 22px; }
.ov-arrow:disabled { opacity: .45; }
.ov-x { width: 20px; height: 20px; padding: 0; border: 1px solid #8a8a8a; border-radius: 2px; background: linear-gradient(#e8e8e8, #b9b9b9);
  color: #333; font: 700 11px/18px Arial; cursor: default; }
/* The splitter between the PWA and the WAA, with its grip (fig p.80 x=662). */
.p1-split { grid-area: split; background: var(--chrome); border-left: 1px solid #a9adb6; border-right: 1px solid #a9adb6; cursor: col-resize;
  display: grid; place-items: center; touch-action: none; }
.p1-split::after { content: ""; width: 2px; height: 16px; border-left: 1px solid #7d828c; border-right: 1px solid #7d828c; }
body.split-drag, body.split-drag * { cursor: col-resize !important; }
.pq { display: flex; align-items: center; gap: 6px; align-self: center; color: #e8eef4; }
.pq-t { font-size: 12px; line-height: 13px; text-align: center; }
.pq-b {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid #9cc9f5; cursor: default;
  background: radial-gradient(circle at 40% 30%, #8cc8ff, #1a5fb4 70%); color: #fff; font-weight: 700; font-size: 15px;
}
.p1-date {
  grid-area: date; display: grid; place-items: center; background: var(--chrome);
  border: 1px solid #b0b4bd; border-top: 0; font-size: 12px;
}
.p1-subbar { grid-area: sub; background: var(--chrome); border-bottom: 1px solid #c9cdd6; }
/* The WAA tabs start at the WAA's left edge (fig p.80, p.229) - the training CAD right-aligns them. */
.p1-waatabs {
  grid-area: waat; display: flex; justify-content: flex-start; align-items: flex-end; gap: 0; padding: 0;
  background: var(--chrome); border-bottom: 1px solid #aaacb3;
}
/* Equal 50 px tabs, flat (fig p.80, p.89): selected #cbcbd6, inactive #ededee. */
.wt {
  height: 22px; min-width: 50px; padding: 0 6px; font-size: 11px; border: 1px solid #aaacb3; border-bottom: 0; margin-right: -1px;
  background: #ededee; cursor: default;
}
.wt.on { background: #cbcbd6; }
.wt.hot { background: linear-gradient(#ffd27a, #f0a830); }
/* The Haz tab by the most important premise/hazard record (guide 6.11.3): white, orange, red with white text. */
.wt.hot.hot-normal { background: linear-gradient(#ffffff, #f2f2f2); color: #000; font-weight: 700; }
.wt.hot.hot-high { background: linear-gradient(#ffc56a, #f08c00); color: #000; font-weight: 700; }
.wt.hot.hot-critical { background: linear-gradient(#e82020, #b00000); color: #fff; font-weight: 700; }

.p1-left { grid-area: left; display: flex; flex-direction: column; border-right: 1px solid #8a8a8a; background: #fff; min-height: 0; }
.wa-list { flex: 1 1 auto; overflow: auto; }
.wa {
  display: flex; gap: 6px; min-height: 44px; padding: 3px 4px; border-bottom: 1px solid #b8b8b8;
  background: #f3f4f4; cursor: default;
}
.wa.on { background: #fff; }
/* An overlay on the work area (guide 2.2.4): its own lavender column at the tab's right edge, with >> (fig p.89). */
.wa-ov { position: absolute; right: 0; top: 0; bottom: 0; width: 24px; background: #d8dcf4; color: #333; font-weight: 700;
  display: flex; justify-content: center; padding-top: 2px; }
.wa.ovl .wa-t { padding-right: 24px; }
/* The status indicator left of the summary (guide Table 3) - one at a time. */
.wa-ind { position: absolute; left: 4px; bottom: 3px; width: 14px; height: 13px; }
.wa-ind.proc { border: 2px solid #3c7fb1; border-top-color: transparent; border-radius: 50%; width: 12px; height: 12px; animation: waspin 1s linear infinite; }
@keyframes waspin { to { transform: rotate(360deg); } }
.wa-ind.ptimeout { background: #f5c400; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.wa-ind.ptimeout::after { content: "!"; position: absolute; left: 0; right: 0; top: 2px; text-align: center; font: 700 9px Arial; color: #000; }
.wa-ind.upd { border: 1px solid #b00; background: #fff; color: #c00; font: 700 9px/11px Arial; text-align: center; }
.wa-n {
  flex: none; width: 15px; height: 15px; border: 1px solid #7a7a7a; font: 700 10px Arial;
  display: grid; place-items: center; background: #fff;
}
.wa.on .wa-n { border-color: #2d7fd4; box-shadow: 0 0 0 1px #9cc9f5; }
.wa-t { min-width: 0; line-height: 14px; }
.wa-cmd { font-style: italic; color: #333; padding-left: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Summary text is light teal (fig p.89 "IM:DC-00000044"). */
.wa-sum { color: #7bb4c7; padding-left: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.info { flex: none; border-top: 1px solid #8a8a8a; background: #fff; }
/* The Info Panel's title (fig p.80, p.93): its arrow, "Info Panel", a dotted grip; minimize and close when orphaned. */
.info-h { display: flex; gap: 6px; align-items: center; height: 24px; padding: 0 0 0 6px; font-weight: 700; background: var(--chrome); border-bottom: 1px solid #c9cdd6; }
.info-arrow { font-size: 10px; cursor: default; width: 12px; text-align: center; }
.info-grip { flex: 1; height: 8px; background-image: radial-gradient(#9a9ea8 1px, transparent 1.2px); background-size: 4px 4px; }
.info-h .tb-b { width: 30px; }
.info-h .tb-min::after { left: 10px; right: 10px; top: 12px; }
.info-h .tb-close::before, .info-h .tb-close::after { left: 9px; top: 11px; width: 11px; }
.info.collapsed .info-g { display: none; }
/* Orphaned (Utilities > Information Panel (orphaned)): a small window of its own, moved by its title bar. */
.info.orphan { position: absolute; z-index: 70000; width: 210px; border: 1px solid #3a7fb8; box-shadow: 2px 2px 8px rgba(0,0,0,.35); }
.info.orphan .info-h { cursor: move; touch-action: none; }
.info-dock-blank { flex: none; height: 150px; border-top: 1px solid #8a8a8a; background: #fff; }
/* The counters in their own grey column, ruled off from the fields (fig p.80, p.91). */
.info-g { display: grid; grid-template-columns: 34px 1fr; column-gap: 6px; padding: 0; }
.info-l { display: flex; flex-direction: column; gap: 3px; padding: 4px 0 6px 8px; color: #555; font-size: 11px; background: #f0f0f1; border-right: 1px solid #c9cdd6; }
.info-kv { padding: 4px 0 6px; }
.info-l b { margin-left: 5px; color: #000; }
.info-kv { display: grid; grid-template-columns: 58px 1fr; row-gap: 2px; font-size: 11px; }
.info-kv .k { color: #333; }
.info-kv .v { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info-kv .v.bad { color: #c00; font-weight: 700; }
.info-kv .v.toggle { cursor: pointer; text-decoration: underline dotted; }
.info-kv .v.warn { color: #d08000; font-weight: 700; }

.p1-pwa { grid-area: pwa; overflow: auto; background: #fff; border-right: 1px solid #8a8a8a; }
.p1-waa { grid-area: waa; display: flex; flex-direction: column; min-height: 0; background: #fff; }
.waa-body { flex: 1 1 auto; overflow: auto; }
.waa-foot { flex: none; display: flex; justify-content: flex-end; padding: 5px 8px; border-top: 1px solid #d0d0d0; background: #f3f3f3; }
.pwa-empty { margin: 60px auto; text-align: center; color: #777; font-size: 13px; }

/* --- forms ------------------------------------------------------------------------------- */
.form { padding: 8px 12px 14px; display: flex; flex-direction: column; gap: 5px; user-select: text; }
.fg { border: 1px solid #d0d7de; border-radius: 4px; padding: 4px 8px 8px; margin: 2px 0 4px; display: flex; flex-direction: column; gap: 5px; }
.fg legend { padding: 0 3px; color: #222; }
.fr { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 24px; }
.fl { width: 84px; flex: none; color: #111; }
.fr .fl + .fi, .fr .fl + .fs { flex: none; }
.fr > .fa { flex: 1 1 auto; width: auto; }
.fr .fl:not(:first-child) { width: auto; margin-left: 10px; }
.ftext { color: #111; }
.ftext.box { display: inline-block; min-width: 60px; height: 22px; line-height: 20px; padding: 0 4px; border: 1px solid #d5d5d5; background: #f7f7f7; }
.ftext.box.w { min-width: 110px; }
.ftext.strong, .strong { font-weight: 700; }
.type-l { color: #2a6fb0; font-style: italic; }
.fcheck { display: inline-flex; gap: 4px; align-items: center; font-size: 11px; }
.verified.on { color: #1e8e1e; font-weight: 700; }
.units-in { display: inline-flex; gap: 4px; }
.form-hint { color: #777; font-size: 11px; margin-top: 4px; }
.form-title { font-weight: 700; color: #333; margin-bottom: 4px; }
.form-acts { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; row-gap: 4px; }
.form-acts.bottom { justify-content: flex-end; border-top: 1px solid #e0e0e0; padding-top: 8px; }
.recform { display: flex; flex-direction: column; gap: 5px; }
/* 9-1-1 Caller Information on the Persons tab (guide fig. 125). */
.recform .ani-box { position: relative; }
.recform .ani-box > .btn { position: absolute; right: 8px; top: 6px; }
.ani-kv { display: grid; grid-template-columns: 92px minmax(0, 1fr) 92px minmax(0, 1fr); gap: 2px 8px; padding: 2px 0 0 18px; }
.ani-kv .k { color: #333; } .ani-kv .v { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ani-pick { display: inline-flex; align-items: center; gap: 2px; }
.iu-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.iu-num { font-size: 16px; font-weight: 700; }
.iu-time { color: #333; }
.closed-banner { color: #d00; font-weight: 800; font-size: 18px; margin: 20px 0 6px; }
.subtabs { display: flex; gap: 0; margin: -8px -12px 6px; border-bottom: 1px solid #c8c8c8; background: #f3f3f3; }
.st { border: 0; border-right: 1px solid #c8c8c8; background: none; padding: 4px 12px; cursor: default; }
.st.on { background: #fff; font-weight: 600; }
.caps { border: 1px solid #c8c8c8; margin: 4px 0; }
.caps-h { display: grid; grid-template-columns: 70px 1fr auto; padding: 3px 6px; background: #f3f3f3; border-bottom: 1px solid #d0d0d0; font-weight: 600; }
.caps-h .pref { color: #2a6fb0; font-weight: 400; text-decoration: none; cursor: pointer; }
.caps-h .pref:hover { text-decoration: underline; }
.caps-r { display: grid; grid-template-columns: 70px 1fr; align-items: center; padding: 4px 6px; border-bottom: 1px solid #e3e3e3; }
.caps-r:nth-child(odd) { background: #f4f4f4; }
.caps-c { font-weight: 700; }
.caps-u { display: flex; flex-wrap: wrap; gap: 4px; }
.caps-empty { padding: 10px; color: #777; }
.pill {
  display: inline-flex; flex-direction: column; align-items: center; min-width: 58px; padding: 2px 6px;
  border: 1px solid #9cc9f5; border-radius: 5px; background: linear-gradient(#e7f2fd, #c7def5); color: #10406f; cursor: default; line-height: 13px;
}
.pill .pill-u { font-weight: 700; }
.pill .pill-d { font-size: 10px; }
.pill.on { background: linear-gradient(#4f93d8, #1f5ea8); border-color: #164d8c; color: #fff; }
.pill.busy { background: linear-gradient(#fbe3ec, #f3c4d4); border-color: #d78aa3; color: #6b1231; }
.pill.busy.on { background: linear-gradient(#b8456d, #862549); color: #fff; }

/* --- tables (grids) ---------------------------------------------------------------------- */
.grid { width: 100%; border-collapse: collapse; font-size: 12px; }
.grid th { text-align: left; font-weight: 400; padding: 2px 6px; background: linear-gradient(#fff, #f0f0f0); border: 1px solid #d5d5d5; }
.grid td { padding: 2px 6px; border-bottom: 1px solid #ececec; }
.grid tr.sel td { background: var(--select); color: #fff; }
.grid tr:not(.hist-d):not(.prev-d):not(.cm-t):hover td { background: #e5f1fb; }
.grid tr.sel:hover td { background: var(--select); }
.grid .k { font-family: Consolas, monospace; color: #1a4f8a; white-space: nowrap; }
.grid.keys td { padding: 2px 8px; }
.close-row { margin-top: 6px; }
.close-row td { padding: 2px; }
.hist-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.hist-bar .iu-num { margin-right: auto; }
.hist-d td { padding: 2px 6px 6px 18px; border-bottom: 1px solid #d8d8d8; }
.hist-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 1px 14px; color: #222; }
.hist-kv i { color: #2a6fb0; font-style: normal; }
.hist-kv .cm { grid-column: 1 / -1; }
.prev-d td { padding: 2px 6px 6px 22px; color: #333; font-size: 11px; }
.cm-t td { padding: 2px 6px 6px 16px; }
.cm-t.prio td { color: #d00; font-weight: 700; }
.prim { color: #1e8e1e; font-weight: 700; }
.assigned td { vertical-align: middle; }

/* --- the Work Assist Area ---------------------------------------------------------------- */
.waa-sec { border-bottom: 1px solid #c8d2de; }
/* WAA section headers: flat #dee2e9, bold, a black triangle (fig p.80 "Previous Location Check (0)"). */
.waa-sh {
  display: flex; gap: 6px; align-items: center; padding: 3px 8px; font-weight: 700; cursor: default;
  background: #dee2e9; color: #000;
}
.waa-sh .tri { width: 10px; font-size: 10px; color: #000; }
.waa-sb { display: none; }
.waa-sec.open .waa-sb { display: block; }
.waa-empty { padding: 8px 10px; color: #777; }
.waa-empty.pad { padding: 20px; text-align: center; }
.haz { display: flex; gap: 8px; padding: 5px 8px; border-bottom: 1px solid #eee; }
.haz b { flex: none; font-size: 10px; color: #fff; background: #777; padding: 0 4px; height: 15px; }
.haz-hazard b { background: #d00; }
/* The Premise/Hazard Check (Figures 61, 62, 63, 230): critical rows red with white text, the selected one boxed. */
.haz-t .haz-x { width: 18px; text-align: center; cursor: pointer; user-select: none; }
.haz-t tr.haz-r td { vertical-align: top; }
.haz-t tr.p-critical td, .haz-t tr.haz-d.p-critical td { background: #e01818; color: #fff; }
.haz-t tr.haz-r.sel td { background: inherit; color: inherit; border-top: 2px solid #000; border-bottom: 2px solid #000; }
.haz-t tr.haz-r.p-critical.sel td { background: #e01818; color: #fff; }
.haz-t tr.haz-r.sel td:first-child { border-left: 2px solid #000; }
.haz-t tr.haz-r.sel td:last-child { border-right: 2px solid #000; }
.haz-t tr.haz-d td { padding: 3px 8px 6px 26px; line-height: 1.5; }
.haz-acts { display: flex; justify-content: space-between; gap: 6px; padding: 8px 6px; border-top: 1px solid #ddd; margin-top: 6px; }
/* The Premise Hazard Record (Figures 62, 234, 235): a pale yellow overlay in the PWA. */
.ph-rec { background: #ffffd8; border: 1px solid #c9c79a; padding: 8px 14px 10px; display: flex; flex-direction: column; gap: 4px; }
.ph-rec .ph-h { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
/* Four columns, as the figures: label, value, and Status/Priority/Agency/Floor/Zip Code at the right. */
.ph-rec .fr { display: grid; grid-template-columns: 150px minmax(0, 1fr) 76px 130px; align-items: center; column-gap: 6px; min-height: 22px; }
.ph-rec .fr .fl, .ph-rec .fr .fl:not(:first-child) { width: auto; margin-left: 0; }
.ph-rec .fr > .fi, .ph-rec .fr > .fs { justify-self: start; max-width: 100%; }
.ph-rec .fl.ind { padding-left: 22px; }
.ph-rec .ftext { min-width: 0; overflow-wrap: anywhere; }
.ph-rec .p-critical { color: #c00000; font-weight: 700; }
.ph-rec .p-high { color: #b35a00; font-weight: 700; }
.ph-acts { background: #ffffd8; border: 1px solid #c9c79a; border-top: none; margin-top: 0; padding: 6px 10px; }
.ph-reswrap { border: 1px solid #b9b9b9; min-height: 220px; max-height: calc(50 * var(--vh, 1vh)); overflow: auto; }
.ph-res td { white-space: nowrap; }
.ph-new .fcheck { display: block; margin: 6px 0 2px; font-weight: 600; }
/* Comments and Attachments on the record: across the value columns, top-aligned (2026-10-13). */
.ph-rec .fr.ph-cmt-row, .ph-rec .fr.ph-att-row { align-items: start; }
.ph-rec .ph-cmt, .ph-rec .ph-cmt-wrap, .ph-rec .ph-att { grid-column: 2 / -1; min-width: 0; }
.ph-rec .ph-cmt { white-space: pre-wrap; overflow-wrap: anywhere; background: #fffff0; border: 1px solid #d8d6a8; padding: 4px 6px; min-height: 22px; max-height: 240px; overflow: auto; }
.ph-rec .ph-cmt-wrap { display: flex; flex-direction: column; gap: 2px; }
.ph-rec .ph-cmt-in { width: 100%; box-sizing: border-box; resize: vertical; min-height: 96px; font: inherit; }
.ph-rec .ph-count { align-self: flex-end; font-size: 11px; color: #6b6a4a; }
.ph-rec .ph-att-none { color: #6b6a4a; padding: 2px 0 4px; }
.ph-att-t { width: 100%; background: #fff; }
.ph-att-t tr.sel td { background: #c9dcf5; }
.ph-att-t tr.ph-att-d td { background: #fffff0; padding: 4px 8px 6px 26px; }
.ph-att-cmt { white-space: pre-wrap; overflow-wrap: anywhere; }
.ph-att-by { font-size: 11px; color: #6b6a4a; margin-top: 2px; }
.ph-att-img { display: block; max-width: 100%; max-height: 260px; margin-top: 6px; border: 1px solid #c9c79a; cursor: zoom-in; }
.ph-att-acts { display: flex; gap: 6px; justify-content: flex-end; margin-top: 4px; }
.haz-t .haz-cmt { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; font-style: italic; }
.dptch { padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.dptch .kv { display: grid; grid-template-columns: 112px 1fr; }

/* --- status monitors --------------------------------------------------------------------- */
.mon-body { overflow: auto !important; background: #fff; }
.mon { border-collapse: collapse; width: 100%; font: 700 11px "Segoe UI", Arial, sans-serif; }
/* The heading row: flat near-white, thin separators between the headings, bold capitals (figs 238-246). */
.mon th {
  position: sticky; top: 0; z-index: 1; text-align: left; padding: 2px 5px; font-weight: 700; white-space: nowrap; text-transform: uppercase;
  background: #fefefe; border: 0; border-right: 1px solid #d4d4d4; border-bottom: 1px solid #c4c4c4; cursor: default;
}
.mon th.exp, .mon td.exp { width: 16px; text-align: center; color: #555; }
/* Columns move by dragging their heading (a finger too, so the browser must not pan it). */
.mon th[data-key] { touch-action: none; user-select: none; }
.mon th.col-drag { opacity: .45; }
.mon th.col-drop-before { box-shadow: inset 3px 0 0 #1e6ad6; }
.mon th.col-drop-after { box-shadow: inset -3px 0 0 #1e6ad6; }
/* A heading's right edge sizes its column; double-click it to autofit. */
.mon th[data-key] { overflow: hidden; text-overflow: ellipsis; }
.mon th .col-grip { position: absolute; top: 0; right: -1px; bottom: 0; width: 7px; cursor: col-resize; z-index: 2; }
.mon th .col-grip:hover, body.col-resizing .mon th .col-grip:hover { background: rgba(30, 106, 214, .35); }
body.col-resizing, body.col-resizing * { cursor: col-resize !important; }
.mon td.fit { max-width: none; }
.mon td { padding: 1px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; border-bottom: 1px solid #eee; }
.mon tr { cursor: default; }
.mon tr.grp td { background: #fff; color: #000; padding-left: 8px; cursor: default; }
.mon tr.grp.l1 td { padding-left: 22px; }
.mon tr.sel td { outline: 1px dashed #000; outline-offset: -1px; }
.mon tr.drop td { background: #cde6f7 !important; color: #000 !important; }
body.dragging .mon tr:not(.grp) { opacity: .92; }
/* Pending incidents: coloured by priority, red once overdue - sampled from figs 243 and 246 (#FFDE00,
   #368B04, #FF0000, black bold). P0 never shows its own colour: its dispatch time is 0, so a pending
   P0 is red at once. P1 orange: the county's priority colours include orange (Fire manual "Colors"),
   but no source says which priority has it. */
.mon .row-red td { background: #ff0000; color: #000; }
.mon .row-ring td { background: #ffb3ff; color: #000; }
.mon .row-p0 td { background: #ff6a00; color: #000; }
.mon .row-p1 td { background: #ff9d3a; color: #000; }
.mon .row-p2 td { background: #ffde00; color: #000; }
.mon .row-p3 td { background: #368b04; color: #000; }
.mon .row-p4 td { background: #fff; color: #000; }
.mon .row-p5 td, .mon .row-p9 td { background: #fff; color: #555; }
/* Incident monitors: capitals, as every figure shows them (figs 243, 246; the county's). */
.mon.mon-inc td { text-transform: uppercase; }
/* Active incidents: PremierOne's default status colours (Landon, 2026-10-18: "P1's defaults"). The
   guide gives no colour table - they are the administrator's (15.14) - so the defaults are its
   figures': an incident row coloured by its priority as the Pending monitor's are (figs 243, 244:
   P2 #FFDE00, P3 #368B04, black bold - the row-p* rules above), and each unit's cell in its unit
   status colour from the Unit Status Monitor (figs 238, 239): DS dark red #891D1D on grey #BFBFBF,
   EN blue #0000FF, AS (at scene) green #00FF00 on teal #3F7F7F, TS and the rest black. Past its
   status timer a cell is inverted, as a unit row is (urow-over); a fire unit left in Dispatch past
   3 minutes stays bright red (the Fire manual's, kept as an alert). */
.mon .row-act td.uc-ds { background: #bfbfbf; color: #891d1d; }
.mon .row-act td.uc-en { color: #0000ff; }
.mon .row-act td.uc-os { background: #3f7f7f; color: #00ff00; }
.mon .row-act td.uc-tx { color: #000; }
.mon .row-act td.uc-over { filter: invert(1); }
.mon .row-act td.uc-late { background: #ff0000; color: #fff; filter: none; }
/* "===>": updates not yet seen (the county's U column). */
.mon td.exp.arrow { width: auto; padding: 1px 3px; text-align: left; }
/* Utilities > Status Monitors > Large Font (the county's Utilities menu). */
html.mon-large .mon { font-size: 14px; }
html.mon-large .mon-head { font-size: 14px; }
/* A monitor collapsed to its heading: the title row's triangle (Police manual). */
.mon-head .mh-tri { width: 12px; cursor: default; }
.win.mon-shut > .win-body, .win.mon-shut > .mon-tb { display: none !important; }
/* units: DS dark red on grey, EN blue, AS green on teal, CL/TS black (fig 238, sampled); a unit in
   quarters grey on grey, as fig 240 shows IS (In Station) - the guide's only in-station colour. */
.mon .urow-ds td { background: #bfbfbf; color: #891d1d; }
.mon .urow-en td { background: #fff; color: #0000ff; }
.mon .urow-as td { background: #3f7f7f; color: #00ff00; }
.mon .urow-iq td { background: #c0c0c0; color: #707070; }
.mon .urow-av td { background: #fff; color: #000; }
.mon .urow-other td { background: #fff; color: #000; }
.mon .urow-oos td { background: #fff; color: #9a9a9a; font-weight: 400; }
/* Past its status timer: the row's colours inverted (the administrator's choice in PremierOne, guide 15.14; the training CAD's). */
.mon .urow-over td { filter: invert(1); }
@keyframes flash { 50% { background: #fff; } }

/* --- menus, dialogs, notifications -------------------------------------------------------- */
.ctx {
  max-width: calc(calc(100 * var(--vw, 1vw)) - 4px); max-height: calc(calc(100 * var(--vh, 1vh)) - 4px); overflow-y: auto; 
  position: fixed; z-index: 100000; min-width: 220px; padding: 2px; background: #f2f2f2;
  border: 1px solid #979797; box-shadow: 2px 2px 4px rgba(0,0,0,.35);
}
.ctx-i {
  display: flex; justify-content: space-between; gap: 20px; width: 100%; text-align: left; padding: 3px 18px 3px 26px;
  border: 1px solid transparent; background: none; cursor: default; position: relative;
}
.ctx-i:hover:not(:disabled), .ctx-i:focus:not(:disabled) { background: #d8e6f2; border-color: #aecff7; outline: none; }
.ctx-i:disabled { color: #8c8c8c; }
.ctx-i.checked::before { content: "\2714"; position: absolute; left: 8px; }
.ctx-k { color: #555; }
.ctx-sep { height: 1px; margin: 3px 2px 3px 26px; background: #d7d7d7; }
/* A group's name in a menu (Utilities: In the CAD Client / In a New Window). */
.ctx-h { padding: 3px 10px 2px 8px; color: #555; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }

.dlg-back { position: fixed; inset: 0; z-index: 90000; background: rgba(0,0,0,.12); display: grid; place-items: center; }
/* Dialogs are framed as the client is (fig p.203): a white title bar in a blue frame. */
.dlg { min-width: min(380px, calc(calc(100 * var(--vw, 1vw)) - 16px)); max-width: min(640px, calc(calc(100 * var(--vw, 1vw)) - 16px)); background: #fff; border: 1px solid #3a7fb8; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.dlg-title { display: flex; gap: 6px; align-items: center; height: 28px; padding: 0 8px; background: #fff; border-bottom: 1px solid #d9d9d9; }
.dlg-body { padding: 14px 18px; max-height: min(calc(70 * var(--vh, 1vh)), calc(calc(100 * var(--vh, 1vh)) - 110px)); overflow: auto; user-select: text; }
.dlg-body p { margin: 0 0 8px; }
.dlg-acts { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 14px; background: #f0f0f0; border-top: 1px solid #dfdfdf; }
.dlg-acts .btn { min-width: 76px; }

/* The Priority Notification (guide 7.1.3, fig 74) and the Alert dialog (7.3, figs 76-77): the
   client's lower left, the width of the work area tabs, their title bar at the bottom in red. They
   grow up to the top of the work area, then scroll. */
.notify {
  position: fixed; left: 8px; bottom: 8px; z-index: 80000; width: 380px; background: #fff;
  border: 1px solid #6d6d6d; box-shadow: 0 4px 16px rgba(0,0,0,.45);
  max-width: calc(calc(100 * var(--vw, 1vw)) - 16px); max-height: calc(calc(100 * var(--vh, 1vh)) - 16px);
  display: flex; flex-direction: column;
}
.p1 > .notify { position: absolute; left: 0; bottom: 0; width: 200px; max-height: calc(100% - 120px); }
.notify > .notify-b { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.notify.offer, .p1 > .notify.offer { left: 204px; width: 260px; }
/* An Alert dialog behind an unacknowledged Priority Notification: slightly offset so it shows (7.3). */
.p1 > .notify.mon-alert { z-index: 79990; }
.p1 > .notify.mon-alert.behind { left: 8px; bottom: 8px; }
/* A window too narrow for the two side by side (a pop-out client sized small): the offer goes on top. */
html.lt800 .notify.offer { left: 8px; bottom: auto; top: 8px; }
.notify-t { display: flex; gap: 6px; align-items: center; height: 22px; padding: 0 6px; font-weight: 700; flex: none; background: #dc2828; color: #fff; }
#stack-offer .notify-t { background: linear-gradient(#fff, #e9e9e9); color: #000; border-top: 1px solid #c8c8c8; }
.notify-t.flash { animation: titleflash .5s steps(1) 10; }
/* The Priority Notification flashes until it is Ack'd (monitors.js): its red ring on the box,
   which is kept across the poll's redraws, and its title bar. */
.notify.unacked { animation: notifyflash 1s steps(1) infinite; }
.notify.unacked .notify-t { animation: titleflash 1s steps(1) infinite; }
@keyframes notifyflash { 50% { border-color: #ff1010; box-shadow: 0 0 0 3px #ff1010, 2px 2px 8px rgba(0,0,0,.4); } }
@keyframes titleflash { 50% { background: #ffd200; } }
.notify-b { padding: 6px 8px; display: flex; flex-direction: column; gap: 2px; }
/* Priority Notification entries (guide 7.1.3): the time, the transaction at the right, then the
   comment or new value in bold red, the old value after it in parentheses. */
.pn-head { overflow-wrap: anywhere; }
.pn-units { font-size: 11px; color: #333; }
.pn-ent { border-top: 1px solid #ddd; margin-top: 4px; padding-top: 3px; overflow-wrap: anywhere; }
.pn-when { color: #555; font-size: 11px; display: flex; justify-content: space-between; gap: 6px; }
.pn-red { color: #d00000; font-weight: 700; }
html.dark .pn-red { color: #ff5a5a; } html.dark .pn-when { color: #aab; } html.dark .pn-ent { border-color: #3a3d44; }
.notify-b .strong { color: #000; }
.notify-a { display: flex; justify-content: flex-end; gap: 6px; padding: 4px 8px 6px; flex: none; }
.notify-a .btn { padding: 1px 8px; }
/* The Alert dialog: the alerts of one type, newest first; its name and count on the red bar, >> to the next type. */
.mal-row { padding: 2px 0; border-bottom: 1px solid #eee; font-weight: 700; color: #c00; overflow-wrap: anywhere; cursor: default; }
.mal-t .mal-name { flex: 1; }
.mal-next { border: 0; background: none; color: #fff; font: 700 14px Arial; padding: 0 2px; cursor: default; }

/* --- sign in ---------------------------------------------------------------------------- */
.login-back { position: fixed; inset: 0; z-index: 95000; display: grid; place-items: center; background: #fff; }
.login { width: 600px; background: #f0f0f0; border: 1px solid #8a8a8a; box-shadow: 0 6px 24px rgba(0,0,0,.35); user-select: none; }
.login-title { display: flex; justify-content: space-between; align-items: center; height: 30px; padding: 0 0 0 8px; background: #fff; }
.login-x { width: 44px; height: 30px; border: 0; background: none; font-size: 14px; }
.login-x:hover { background: #e81123; color: #fff; }
.login-top { display: grid; grid-template-columns: 150px 1fr 150px; gap: 8px; padding: 12px 12px 6px; }
.login-logo svg { width: 88px; height: 88px; margin: 16px 0 0 26px; }
.login-fields, .login-dev { display: grid; grid-template-columns: 90px 1fr; gap: 6px 6px; align-items: center; align-content: start; }
.login-dev { grid-template-columns: 76px 1fr; }
.login input, .login select { height: 22px; border: 1px solid #abadb3; background: #fff; padding: 0 4px; user-select: text; }
.login input:disabled, .login select:disabled { background: #f4f4f4; color: #666; }
.login select.req { background: var(--yellow); }
.login-mid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr; gap: 6px 12px; padding: 6px 12px; }
.login-cov { grid-column: 1; }
.login-prev { grid-column: 2; grid-row: 1 / 4; min-height: 200px; }
.login fieldset { border: 1px solid #d0d0d0; border-radius: 3px; margin: 0; padding: 4px 8px 8px; }
.login-cov label { margin-right: 6px; }
.login-tree { font-size: 11px; line-height: 17px; color: #333; }
.login-tabs { grid-column: 1; display: flex; gap: 2px; margin-top: 6px; }
.login-tabs span { padding: 3px 18px; border: 1px solid #c8c8c8; border-bottom: 0; background: #eee; }
.login-tabs span.on { background: #fff; border-top: 2px solid #f0a830; font-weight: 600; }
.login-tabbody { grid-column: 1; border: 1px solid #c8c8c8; background: #fff; padding: 8px; min-height: 120px; display: flex; gap: 6px; align-items: flex-start; }
.login-err { min-height: 18px; padding: 0 12px; color: #c00; font-weight: 600; }
.login-exp { display: flex; align-items: center; gap: 6px; padding: 2px 12px 4px; font-size: 12px; }
.login-acts { display: flex; align-items: center; gap: 8px; padding: 6px 12px 12px; }
.login-acts label { margin-left: 0; }
.login-acts select { width: 150px; margin-right: auto; }
.login-acts .btn { min-width: 86px; }

.loading { position: fixed; inset: 0; z-index: 96000; display: grid; place-items: center; background: rgba(255,255,255,.85); }
.loading-box { width: 300px; padding: 16px 20px; background: #f0f0f0; border: 1px solid #8a8a8a; box-shadow: 0 6px 24px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 8px; }
.loading-t { font-weight: 700; }
.loading-bar { height: 14px; border: 1px solid #b0b0b0; background: #fff; overflow: hidden; }
.loading-bar span { display: block; height: 100%; width: 40%; background: linear-gradient(#7fd17f, #2e9e2e); animation: load 1s linear infinite; }
@keyframes load { from { margin-left: -40%; } to { margin-left: 100%; } }
.fatal { position: fixed; inset: 20px; background: #fff; color: #c00; padding: 20px; z-index: 99999; }

/* --- ATXRP logo, coverage, roles -------------------------------------------------- */
.title-icon { width: 18px; height: 18px; vertical-align: -4px; margin-right: 4px; }
.login-top { grid-template-columns: 150px 1fr; }
.login-logo img { width: 120px; height: 120px; margin: 4px 0 0 14px; object-fit: contain; }
.loading-logo { width: 72px; height: 72px; object-fit: contain; align-self: center; }
.login-cov, .cc-left { display: flex; flex-direction: column; gap: 4px; }
.cov-groups { border: 1px solid #d0d0d0; border-radius: 3px; margin: 0; padding: 4px 8px 8px; }
.cov-row { display: flex; align-items: center; gap: 6px; }
.cov-sel { height: 22px; border: 1px solid #abadb3; background: #fff; }
.cov-tabs { display: flex; gap: 2px; margin-top: 6px; }
.cov-tabs span { padding: 3px 18px; border: 1px solid #c8c8c8; border-bottom: 0; background: #eee; cursor: default; }
.cov-tabs span.on { background: #fff; border-top: 2px solid #f0a830; font-weight: 600; }
.cov-body { border: 1px solid #c8c8c8; background: #fff; padding: 6px 8px; min-height: 150px; }
.cov-sub { display: flex; gap: 0; margin-bottom: 6px; border-bottom: 1px solid #d0d0d0; }
.cov-sub span { padding: 2px 12px; cursor: default; border: 1px solid transparent; border-bottom: 0; }
.cov-sub span.on { border-color: #d0d0d0; background: #f4f8fc; font-weight: 600; }
.cov-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.cov-areas label { display: flex; align-items: center; gap: 4px; }
.cov-all { grid-column: 1 / -1; font-weight: 600; border-bottom: 1px dotted #ccc; padding-bottom: 3px; }
.cov-other { color: #888; font-size: 11px; }
.cov-tree { font-size: 12px; line-height: 18px; }
.cov-tree .t1 { padding-left: 12px; font-weight: 600; }
.cov-tree .t2 { padding-left: 30px; color: #555; }
.cov-tree .t2.c { color: #000; font-weight: 600; }
.cov-tree .none { color: #999; font-weight: 400; }
.login-mid { grid-template-columns: 1.2fr 1fr; grid-template-rows: auto; }
.login-prev { grid-column: 2; grid-row: 1; min-height: 230px; }
.login-acts #l-working { margin-right: auto; }
.login-acts #l-working select { width: 230px; }
#l-role { background: var(--yellow); }
.cc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; min-width: 580px; }
.cc-prev { border: 1px solid #d0d0d0; border-radius: 3px; margin: 0; padding: 4px 8px; }
.cc-work { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; }
/* Monitored-only areas show exactly as covered ones (guide 15.1): .mon-only is kept for scripts, drawn as any row. */
.role-note { margin: 10px 0; padding: 8px 10px; border: 1px solid #e0c060; background: #fff8d8; color: #5a4600; }

/* --- Dynamic Help, list forms, map, emergencies ------------------------------------------- */
.p1-cmd { position: relative; }
.dyn-help {
  position: absolute; left: -1px; right: -1px; top: 23px; z-index: 5000; background: #ffffe1; border: 1px solid #767676;
  box-shadow: 2px 2px 4px rgba(0,0,0,.25); padding: 3px 6px; font-size: 12px; max-height: 320px; overflow: auto;
}
.dh-row { display: flex; gap: 6px; padding: 1px 2px; cursor: default; white-space: nowrap; }
.dh-row:hover { background: #d8e6f2; }
.dh-row b { width: 26px; font-family: Consolas, monospace; color: #1a4f8a; }
.dh-row i { color: #777; font-style: normal; font-family: Consolas, monospace; font-size: 11px; }
.dh-row.np { color: #999; }
.dh-err { color: #c00; font-weight: 600; }
.dh-line { margin-bottom: 2px; }
.dh-syn { font-family: Consolas, monospace; font-size: 12px; line-height: 17px; word-break: break-all; }
.dh-id { color: #777; }
.dh-id.set { color: #000; }
.dh-id.cur { background: #1e6bc0; color: #fff; }
.grid.list td { white-space: nowrap; }
.grid tr.hl td { background: #fff27a !important; color: #000 !important; }
.grid.keys tr.np td { color: #999; }
.prev-d { display: none; }
.prev-d.open, .waa-sec .prev-d { display: table-row; }
.qform { display: grid; grid-template-columns: 1fr; gap: 6px; min-width: 380px; }
.qrow { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 8px; }
.qrow .fa { min-height: 60px; }
.map-body { display: flex; }
/*
 * The PremierOne CAD Map window (map.js, guide 16.3, Figures 248, 249 and 252): the map fills the
 * window; a dark navy toolbar on its top left with the pane under it; the right toolbar (Back,
 * Forward, Home, +, -, compass); Select BaseMap at the bottom left; the notification bar along
 * the bottom. The chrome is dark navy in both themes, as the guide's; the pane follows the theme.
 */
.map-wrap { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; background: #0e1a26; font: 12px "Segoe UI", Tahoma, Arial, sans-serif; }
.nm-main { position: relative; flex: 1 1 auto; min-height: 0; display: flex; }
.nm-bar { position: absolute; left: 0; top: 0; z-index: 7; display: flex; background: #0e1a26; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.nm-tb { display: grid; place-items: center; width: 38px; height: 36px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
.nm-tb:hover:not(:disabled) { background: #20364d; }
.nm-tb.on { background: #1584c4; }
.nm-tb:disabled { color: #56606b; cursor: default; }
.nm-tb svg, .nm-nb svg, .nm-compass svg, .nm-base svg, .nm-loc svg, .nm-about svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.nm-tb svg .fill, .nm-nb svg .fill, .nm-compass svg .fill, .nm-base svg .fill, .nm-loc svg .fill, .nm-about svg .fill { fill: currentColor; }
/* The pane: under the toolbar, on the left, over the map (Figure 249). */
.nm-pane { position: absolute; left: 0; top: 36px; bottom: 0; z-index: 6; width: 330px; max-width: 100%; display: flex; flex-direction: column;
  background: #f3f5f7; color: #000; border-right: 1px solid #0e1a26; box-shadow: 2px 0 6px rgba(0,0,0,.3); }
.nm-narrow .nm-pane { width: 100%; }
.nm-ph { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px 0 10px; background: #1c2b3a; color: #fff; font-weight: 700; font-size: 13px; }
.nm-pt { flex: 1; }
.nm-close { padding: 2px 10px; border: 0; border-radius: 2px; background: #1584c4; color: #fff; font: 600 11.5px "Segoe UI", Arial; cursor: pointer; }
.nm-close:hover { background: #2b9be0; }
.nm-pb { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 8px; }
/* The right toolbar (Table 48). */
.nm-nav { position: absolute; right: 8px; bottom: 14px; z-index: 5; display: grid; grid-template-columns: 40px 32px; gap: 2px 6px; align-items: center; }
.nm-nb { grid-column: 2; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 2px; background: #0e1a26; color: #fff; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.nm-nb:hover:not(:disabled) { background: #20364d; }
.nm-nb:disabled { color: #56606b; cursor: default; }
.nm-nav .nm-nb:nth-child(4) { margin-top: 10px; }
.nm-compass { grid-column: 1; grid-row: 4 / span 2; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 2px solid #c8cdd2;
  border-radius: 50%; background: #0e1a26; color: #fff; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.nm-compass:hover { background: #20364d; }
.nm-3d .nm-nb:nth-child(1), .nm-3d .nm-nb:nth-child(2) { visibility: hidden; }
/* Select BaseMap (Table 46): bottom left of the map; beside the pane while it is open. */
.nm-base { position: absolute; left: 10px; bottom: 14px; z-index: 5; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0;
  border-radius: 2px; background: #0e1a26; color: #fff; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.nm-base:hover { background: #20364d; }
.pane-open:not(.nm-narrow) .nm-base { left: 340px; }
/* The notification bar (Table 49). */
.nm-status { flex: none; display: flex; align-items: center; gap: 4px; height: 26px; padding: 0 4px; background: #0e1a26; color: #dfe6ee; }
.nm-msg { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px; height: 22px; padding: 0 6px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.nm-msg:hover, .nm-loc:hover, .nm-about:hover { background: #20364d; }
.nm-msg-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm-loc { flex: none; display: flex; align-items: center; gap: 4px; height: 22px; padding: 0 6px; border: 0; background: none; color: inherit; font: 11.5px Consolas, Menlo, monospace; cursor: pointer; white-space: nowrap; }
.nm-loc svg { width: 14px; height: 14px; }
.nm-about { flex: none; display: grid; place-items: center; width: 24px; height: 22px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.map-scale { flex: none; width: 92px; height: 20px; padding: 0 4px; border: 1px solid #41556a; background: #16283a; color: #fff; font: 11.5px Consolas, Menlo, monospace; }
@media (max-width: 640px) { .nm-loc:nth-of-type(3) { display: none; } }
.map-stage { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.map-canvas { flex: 1 1 auto; width: 100%; min-height: 0; display: block; cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; }
.map-canvas.dragging { cursor: grabbing; }
.map-canvas.m-info { cursor: help; }
.map-canvas.m-measure { cursor: crosshair; }
.map-canvas.m-pan.over { cursor: pointer; }
.map-tip { position: absolute; z-index: 6; display: grid; grid-template-columns: auto auto; gap: 2px 10px; padding: 6px 10px;
  background: #fff; border: 1px solid #7a7a7a; box-shadow: 2px 2px 4px rgba(0,0,0,.3); font-size: 11.5px; pointer-events: none; max-width: 360px; }
.map-tip .k { color: #8a8a8a; white-space: nowrap; }
.map-tip b { color: #000; }
.map-tip.hidden { display: none; }
/* Free Measure */
.map-measure { position: absolute; right: 10px; top: 10px; z-index: 5; min-width: 190px; padding: 0 0 6px; background: #f4f4f4; border: 1px solid #7a7a7a;
  box-shadow: 2px 2px 5px rgba(0,0,0,.3); }
.map-measure.hidden { display: none; }
.map-measure .mw-h { display: flex; align-items: center; padding: 3px 6px; background: linear-gradient(#5b87c4, #2f5f9e); color: #fff; font-weight: 700; }
.map-measure .mw-x { margin-left: auto; border: 0; background: none; color: #fff; font-size: 15px; cursor: pointer; }
.map-measure .mw-t { width: calc(100% - 12px); margin: 6px; border-collapse: collapse; background: #fff; }
.map-measure .mw-t th, .map-measure .mw-t td { padding: 1px 6px; border: 1px solid #ccc; text-align: left; }
.map-measure .mw-t th { background: #e8e8e8; font-weight: 600; }
.map-measure .mw-tot { margin: 0 6px 6px; font-weight: 700; }
.map-measure .btn { margin-left: 6px; }
/* The splitter, with its arrow (Figure 255's expander). */
/* Map Assist */
.ma-tabs { display: flex; gap: 2px; border-bottom: 1px solid #a8a8a8; margin-bottom: 8px; }
.ma-tab { padding: 3px 12px; border: 1px solid #a8a8a8; border-bottom: 0; border-radius: 3px 3px 0 0; background: linear-gradient(#f6f6f6, #dedede); font: inherit; cursor: pointer; }
.ma-tab.on { background: #fff; border-top: 2px solid #f0a020; margin-bottom: -1px; }
.ma-tb.hidden { display: none; }
.ma-f { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 6px; margin: 4px 0; }
.ma-f .fld { width: 100%; min-width: 0; }
.ma-acts { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.ma-acts.end { justify-content: flex-end; }
.ma-out { white-space: pre-wrap; min-height: 18px; margin: 6px 0; font-size: 11.5px; }
.ma-scroll { max-height: 200px; overflow: auto; border: 1px solid #c8c8c8; margin-top: 6px; }
.ma-res { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.ma-res th { position: sticky; top: 0; background: linear-gradient(#fafafa, #e6e6e6); border-bottom: 1px solid #bbb; text-align: left; font-weight: 600; padding: 2px 4px; }
.ma-res td { padding: 1px 4px; border-bottom: 1px solid #eee; white-space: nowrap; cursor: default; }
.ma-res tr.sel td { background: #cde6f7; }
.ma-res .ma-none { color: #888; }
.ma-tree { padding: 4px 6px; border: 1px solid #c8c8c8; max-height: 320px; overflow: auto; }
.ma-tree-h { font-weight: 600; margin: 2px 0 4px; }
.ma-chk { display: flex; align-items: center; gap: 4px; padding: 1px 0 1px 16px; }
/* Radio Coverage's direction (map.js), under its two layers. */
.ma-rfdir { gap: 6px; padding-left: 34px; }
.ma-rfdir select { max-width: 100%; border: 1px solid #a0a6ae; background: #fff; color: #000; }
html.dark .ma-rfdir { color: #e4e6e9; }
html.dark .ma-rfdir select { border-color: #50555d; background: #1b1d20; color: #e4e6e9; }
.ma-key { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 3px; }
.ma-key .ma-tree-h { width: 100%; }
.lk { padding: 0 4px; border: 1px solid #000; color: #000; font: 700 10.5px "Segoe UI", Arial; }
.lk.p0 { background: #ff6a00; } .lk.p1 { background: #ff9d3a; } .lk.p2 { background: #ffde00; } .lk.p3 { background: #368b04; } .lk.p4 { background: #fff; }
.lk.red { background: #ff0000; } .lk.ds { background: #bfbfbf; color: #891d1d; } .lk.en { background: #fff; color: #0000ff; }
.lk.as { background: #3f7f7f; color: #00ff00; } .lk.av { background: #fff; }
.ma-hint { color: #666; font-size: 11.5px; margin-bottom: 6px; }
/* Locate On Map > Prem/Haz (Figure 284). */
.ma-out .ma-prem { width: 100%; white-space: normal; }
.ma-prem tr:not(.ma-prem-d) td { cursor: pointer; }
.ma-prem tr.p-critical td { background: #e01818; color: #fff; }
.ma-prem tr.p-high td { background: #ff9a1f; color: #000; }
.ma-prem tr.ma-prem-d td { padding: 3px 8px 6px 26px; }
.ma-prem-l { display: flex; gap: 6px; }
.ma-prem-l .k { min-width: 74px; font-weight: 600; }
.ma-prem-cmt { white-space: pre-wrap; overflow-wrap: anywhere; margin: 3px 0; font-style: italic; }
.ma-prem-files { display: flex; flex-direction: column; }
.ma-feat { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font-size: 11.5px; }
.ma-feat .k { color: #777; }
/* The 3D Map tab (map3d.js): where the canvas was, the same size. */
.map3d { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; background: #a9c8de; touch-action: none; }
.map3d canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.map3d-note { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); max-width: 80%; padding: 10px 16px;
  background: rgba(255,255,255,.92); border: 1px solid #999; text-align: center; font-weight: 600; }
#desktop > .map-wrap { position: fixed; inset: 0; }
.mon .urow-emg td { background: #ff1010; color: #fff; animation: flashred .6s steps(1) infinite; }
@keyframes flashred { 50% { background: #7a0000; } }
.emg-pop {
  position: fixed; z-index: 85000; width: 360px; background: #fff; border: 2px solid #d00; box-shadow: 0 6px 24px rgba(0,0,0,.55);
  max-width: calc(calc(100 * var(--vw, 1vw)) - 32px); max-height: calc(calc(100 * var(--vh, 1vh)) - 100px); overflow-y: auto;
}
.p1 > .emg-pop { position: absolute; }
/* The Responder Alert (guide 7.6, fig 81): its title and the unit ID at the right; the body centred. */
.emg-t { display: flex; gap: 6px; align-items: center; height: 28px; padding: 0 8px; font-weight: 800; color: #fff; background: #c00; }
.emg-t .emg-tt { flex: 1; }
.emg-t.flash { animation: flashred .6s steps(1) infinite; }
.emg-b { padding: 8px 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; font-size: 13px; }
.emg-b .emg-ico { color: #e0a000; font-size: 26px; line-height: 28px; }
.emg-b .emg-type { color: #d00; font-weight: 800; font-size: 16px; }
.emg-b .emg-unit { font-weight: 700; font-size: 15px; }
.emg-b .emg-at.old { color: #d00; font-weight: 700; }
.emg-b .emg-by { color: #555; font-size: 11px; }
.emg-a { justify-content: center; }

/* Priority comment parts: red, only inside the angle brackets. Comments read in capitals. */
.prio-seg { color: #d00; font-weight: 700; }
.cm-t td, .hist-kv .cm, .hist-kv .hist-cm { text-transform: uppercase; }
.fi, .fa, .p1-cmd input { text-transform: uppercase; }
.fi[type=date] { text-transform: none; }

/* ============================================================================================
   Dark mode (html.dark). The status colours on the monitors and map are left alone - they
   mean something - and only the white "nothing to report" rows and the chrome turn dark.
   ============================================================================================ */
html.dark { color-scheme: dark; --field: #1b1d20; --field-edge: #5b6068; --yellow: #4a4220; --select: #2d5f9a; --focus: #4d9be6; }
html.dark body { color: #e4e6e9; background: #0d1116 linear-gradient(160deg, #0b0f14, #161d26); }
html.dark .win, html.dark .dlg, html.dark .notify, html.dark .login, html.dark .loading-box { background: #23262b; border-color: #0c0c0c; }
html.dark .win-title, html.dark .dlg-title, html.dark .notify-t, html.dark .login-title { background: linear-gradient(#34383f, #2a2d32); border-color: #15171a; color: #e4e6e9; }
html.dark .win-b:hover { background: #3d424a; }
html.dark .win-min::after, html.dark .win-max::after, html.dark .win-close::before, html.dark .win-close::after { border-color: #e4e6e9; }
html.dark .win-grip, html.dark .mb-grip { background-image: radial-gradient(#5a5f67 1px, transparent 1.2px); }
html.dark .win-body, html.dark .p1-pwa, html.dark .p1-waa, html.dark .p1-left, html.dark .info, html.dark .mon-body { background: #1b1d20; }
html.dark .p1-menubar, html.dark .p1-date, html.dark .p1-subbar, html.dark .p1-waatabs, html.dark .waa-foot, html.dark .dlg-acts { background: #26292e; border-color: #3a3e45; color: #e4e6e9; }
html.dark .p1-pwa, html.dark .p1-left { border-color: #3a3e45; }
html.dark .mb:hover { background: #33404f; border-color: #3f5670; }
html.dark .p1-cmd, html.dark .p1-status { background: #16181b; border-color: #4a4f57; }
html.dark .p1-cmd input { background: #16181b; color: #f0f2f4; }
html.dark .combo-arrow { color: #bbb; }
html.dark .wa { background: #24272c; border-color: #3a3e45; }
html.dark .wa.on { background: #30353c; }
html.dark .wa-n { background: #1b1d20; border-color: #6a6f77; color: #e4e6e9; }
html.dark .wa-cmd { color: #c2c6cc; }
html.dark .wa-sum { color: #7fb5ef; }
html.dark .info-h { background: linear-gradient(#2e3237, #26292e); border-color: #3a3e45; }
html.dark .info-l, html.dark .info-kv .k { color: #a9aeb6; }
html.dark .info-l b { color: #fff; }
html.dark .wt { background: linear-gradient(#34383f, #2a2d32); border-color: #50555d; color: #e4e6e9; }
html.dark .wt.on { background: linear-gradient(#1f2226, #26292e); }
html.dark .wt.hot { background: linear-gradient(#a8741d, #8a5c10); color: #fff; }
html.dark .wt.hot.hot-normal { background: linear-gradient(#e9ecef, #c9cdd2); color: #000; }
html.dark .wt.hot.hot-high { background: linear-gradient(#c4790f, #96580a); color: #fff; }
html.dark .wt.hot.hot-critical { background: linear-gradient(#c81414, #8e0000); color: #fff; }
html.dark .haz-t tr.haz-r.sel td { border-color: #fff; }
html.dark .haz-acts { border-color: #33373d; }
html.dark .ph-rec, html.dark .ph-acts { background: #34331f; border-color: #6a6640; }
html.dark .ph-rec .fl, html.dark .ph-rec .ftext { color: #f1efd2; }
html.dark .ph-reswrap { border-color: #50555d; }
html.dark .ph-rec .ph-cmt, html.dark .ph-att-t tr.ph-att-d td { background: #2b2a1a; border-color: #6a6640; color: #f1efd2; }
html.dark .ph-att-t { background: #24272c; }
html.dark .ph-att-t tr.sel td { background: #2f4a6b; }
html.dark .ph-rec .ph-count, html.dark .ph-rec .ph-att-none, html.dark .ph-att-by { color: #bdbb98; }
html.dark .btn { background: linear-gradient(#3a3f46, #2e3238); border-color: #5a5f67; color: #e4e6e9; }
html.dark .btn:hover:not(:disabled) { background: linear-gradient(#3d5670, #2f465e); border-color: #4d8ad0; }
html.dark .btn:disabled { background: #26292e; border-color: #3a3e45; color: #6c7179; }
html.dark .btn.on { background: linear-gradient(#2f5f94, #24507f); border-color: #4d8ad0; }
html.dark .btn-icon.no { background: #1b1d20; border-color: #50555d; }
html.dark .fi, html.dark .fs, html.dark .fa { color: #f0f2f4; }
html.dark .fi[readonly], html.dark .ftext.box { background: #24272c; border-color: #3f434a; color: #e4e6e9; }
html.dark .fi.req, html.dark .fs.req, html.dark .fa.yellow, html.dark #l-role, html.dark .login select.req { background: var(--yellow); color: #fff5c8; }
html.dark .fg, html.dark .cov-groups, html.dark .login fieldset, html.dark .cc-prev { border-color: #3f434a; }
html.dark .fg legend, html.dark .fl, html.dark .ftext, html.dark .iu-time, html.dark .form-title { color: #e4e6e9; }
html.dark .type-l { color: #7fb5ef; }
html.dark .form-hint, html.dark .pwa-empty, html.dark .waa-empty { color: #8d939b; }
html.dark .form-acts.bottom { border-color: #3a3e45; }
html.dark .subtabs { background: #26292e; border-color: #3a3e45; }
html.dark .st { border-color: #3a3e45; color: #e4e6e9; }
html.dark .st.on { background: #1b1d20; }
html.dark .caps, html.dark .caps-r { border-color: #3a3e45; }
html.dark .caps-h { background: #26292e; border-color: #3a3e45; }
html.dark .caps-r:nth-child(odd) { background: #202327; }
html.dark .pill { background: linear-gradient(#2b4a6b, #203a57); border-color: #3f6d9c; color: #d8e8f8; }
html.dark .pill.busy { background: linear-gradient(#5a2638, #461c2b); border-color: #8a4460; color: #f5d3de; }
/* Selected units, as light mode shows them: the dark tile rules above outrank .pill.on, so a
   picked unit looked unpicked in dark mode (2026-10-17). */
html.dark .pill.on { background: linear-gradient(#4f93d8, #1f5ea8); border-color: #9cc8f2; color: #fff; }
html.dark .pill.busy.on { background: linear-gradient(#c4527b, #8a2a4e); border-color: #f0a6c0; color: #fff; }
html.dark .grid th { background: linear-gradient(#2e3237, #272a2f); border-color: #3f434a; color: #e4e6e9; }
html.dark .grid td { border-color: #2e3237; }
html.dark .grid tr:not(.hist-d):not(.prev-d):not(.cm-t):hover td { background: #2a3440; }
html.dark .hist-d td, html.dark .prev-d td { border-color: #33373d; color: #c9cdd2; }
html.dark .hist-kv, html.dark .hist-kv i { color: #c9cdd2; }
html.dark .waa-sec { border-color: #33373d; }
html.dark .waa-sh { background: linear-gradient(#2e3540, #262c35); border-color: #3a404a; color: #e4e6e9; }
html.dark .haz { border-color: #2e3237; }
html.dark .role-note { background: #3a321a; border-color: #6b5a24; color: #f1dc9a; }
html.dark .prio-seg { color: #ff5a5a; }
/* monitors: headers and the plain rows */
html.dark .mon th { background: #2a2d32; border-color: #3f434a; color: #e4e6e9; }
html.dark .mon td { border-color: #2a2d31; }
html.dark .mon th.exp, html.dark .mon td.exp { color: #9aa0a8; }
html.dark .mon tr.grp td { background: #202327; color: #e4e6e9; }
html.dark .mon tr.sel td { outline-color: #fff; }
html.dark .mon .row-p4 td, html.dark .mon .row-p5 td, html.dark .mon .row-p9 td, html.dark .mon .urow-av td, html.dark .mon .urow-other td { background: #1b1d20; color: #e4e6e9; }
html.dark .mon .urow-en td { background: #1b1d20; color: #6f9bff; }
html.dark .mon .urow-oos td { background: #1b1d20; color: #6c7179; }
/* menus, dynamic help, notifications, pop-ups */
html.dark .ctx { background: #2a2d32; border-color: #50555d; box-shadow: 2px 2px 6px rgba(0,0,0,.6); }
html.dark .ctx-i { color: #e4e6e9; }
html.dark .ctx-i:hover:not(:disabled), html.dark .ctx-i:focus:not(:disabled) { background: #33404f; border-color: #3f5670; }
html.dark .ctx-i:disabled { color: #6c7179; }
html.dark .ctx-sep { background: #3f434a; }
html.dark .ctx-h { color: #9aa0a8; }
html.dark .ctx-k { color: #9aa0a8; }
html.dark .dyn-help { background: #2c2a1c; border-color: #6b6440; color: #f0ecd0; }
html.dark .dh-row:hover { background: #3a3726; }
html.dark .dh-row b { color: #8cc0f5; }
html.dark .dh-id { color: #9b9679; }
html.dark .dh-id.set { color: #fff; }
html.dark .dh-id.cur { background: #1e6bc0; color: #fff; }
html.dark .notify-b, html.dark .emg-b { color: #e4e6e9; }
html.dark .emg-pop { background: #23262b; }
html.dark .dlg-back { background: rgba(0,0,0,.35); }
/* map chrome */
html.dark .map3d { background: #10161d; }
html.dark .map3d-note { background: rgba(35,38,43,.95); border-color: #50555d; color: #e4e6e9; }
html.dark .map-wrap, html.dark .nm-bar, html.dark .nm-status, html.dark .nm-nb, html.dark .nm-base, html.dark .nm-compass { background: #0b1118; }
html.dark .nm-tb:hover:not(:disabled), html.dark .nm-nb:hover:not(:disabled), html.dark .nm-base:hover, html.dark .nm-compass:hover,
html.dark .nm-msg:hover, html.dark .nm-loc:hover, html.dark .nm-about:hover { background: #1d2a38; }
html.dark .nm-tb.on { background: #1d6fa5; }
html.dark .nm-tb:disabled, html.dark .nm-nb:disabled { color: #4a525c; }
html.dark .nm-compass { border-color: #5b6068; }
html.dark .nm-pane { background: #1b1d20; color: #e4e6e9; border-color: #000; }
html.dark .nm-ph { background: #23262b; color: #e4e6e9; border-bottom: 1px solid #3a3e45; }
html.dark .nm-close { background: #1d6fa5; }
html.dark .nm-status { color: #c9cdd2; }
html.dark .map-scale { background: #1b1d20; border-color: #50555d; color: #e4e6e9; }
html.dark .map-tip { background: #1b1d20; border-color: #50555d; }
html.dark .map-tip b { color: #f0f2f4; }
html.dark .map-measure { background: #23262b; border-color: #50555d; color: #e4e6e9; }
html.dark .map-measure .mw-t { background: #1b1d20; }
html.dark .map-measure .mw-t th { background: #2a2d32; }
html.dark .map-measure .mw-t th, html.dark .map-measure .mw-t td { border-color: #3f434a; }
html.dark .ma-tab { background: #2a2d32; border-color: #50555d; color: #c9cdd2; }
html.dark .ma-tab.on { background: #1b1d20; color: #fff; }
html.dark .ma-tabs, html.dark .ma-scroll, html.dark .ma-tree { border-color: #3f434a; }
html.dark .ma-res th { background: #2a2d32; border-color: #3f434a; }
html.dark .ma-res td { border-color: #2a2d32; }
html.dark .ma-res tr.sel td { background: #26303b; }
html.dark .ma-hint, html.dark .ma-feat .k { color: #9aa0a8; }
/* sign-on */
html.dark .login-back, html.dark .loading { background: #0d1116; }
html.dark .login input, html.dark .login select, html.dark .cov-sel { background: #1b1d20; border-color: #5b6068; color: #f0f2f4; }
html.dark .login input:disabled, html.dark .login select:disabled { background: #26292e; color: #8d939b; }
html.dark .cov-body, html.dark .login-tabbody { background: #1b1d20; border-color: #3f434a; }
html.dark .cov-tabs span, html.dark .login-tabs span { background: #2a2d32; border-color: #3f434a; color: #e4e6e9; }
html.dark .cov-tabs span.on, html.dark .login-tabs span.on { background: #1b1d20; }
html.dark .cov-sub { border-color: #3f434a; }
html.dark .cov-sub span.on { background: #26303b; border-color: #3f434a; }
html.dark .cov-tree .t2 { color: #9aa0a8; }
html.dark .cov-tree .t2.c { color: #fff; }
html.dark .loading-bar { background: #1b1d20; border-color: #3f434a; }

/* map zones legend */
.map-zonekey { position: absolute; left: 8px; bottom: 34px; z-index: 4; display: flex; flex-direction: column; gap: 2px;
  padding: 5px 8px; background: rgba(255,255,255,.9); border: 1px solid #888; font: 700 11px "Segoe UI", Arial; }
.map-zonekey .zk { display: flex; align-items: center; gap: 6px; }
.map-zonekey i { width: 14px; height: 10px; border: 1px solid rgba(0,0,0,.4); opacity: .75; }
html.dark .map-zonekey { background: rgba(35,38,43,.92); border-color: #50555d; color: #e4e6e9; }

/* --- Ready Reference (RR) --------------------------------------------------------------- */
.rr-kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px; padding: 5px 0; align-items: start; }
.rr-kv b { font-weight: 400; color: #333; }
.rr-att { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.rr-att a { color: #1a5fb4; }
.rr-att img { max-width: 100%; max-height: 460px; border: 1px solid #b8b8b8; background: #fff; cursor: zoom-in; }
.rr-crit { padding: 6px 8px; display: grid; gap: 4px; }
.rr-crit .fr { display: grid; grid-template-columns: 72px 1fr; align-items: center; }
.form-hint.pad { padding: 6px 10px; }
/* The ANI/ALI a phone call filled the form with (Source, Class, ESN, line). */
.form-hint.ani-line { color: #1f5fa8; font-weight: 600; }
html.dark .form-hint.ani-line { color: #7fb2ec; }
html.dark .rr-kv b { color: #c5c9cf; }
html.dark .rr-att a { color: #8cb8ef; }
html.dark .rr-att img { border-color: #4a4f57; }
/* The entry's buttons stay in view below a tall map, as PremierOne's PWA button bar does. */
.rr-acts { position: sticky; bottom: 0; background: #fff; padding-bottom: 6px; z-index: 1; }
html.dark .rr-acts { background: #1b1d20; }

/* --- A closed incident, read only (IH / IU / IR) ------------------------------------------ */
.ro-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid #e0e0e0; }
.ro-bar .closed-banner { margin: 0; }
.ro-note { color: #555; margin-right: auto; }
.ro-grid { display: grid; grid-template-columns: 96px 1fr 96px 1fr; gap: 3px 10px; }
.ro-grid b { font-weight: 400; color: #555; }
.ro-grid span { min-height: 16px; }
.ro-text { white-space: pre-wrap; }
html.dark .ro-bar { border-color: #3a3e45; }
html.dark .ro-note, html.dark .ro-grid b { color: #a9aeb6; }
/* A closed incident that the role may update (forms.js closedWarning, guide 9.5.5.3, issue #147). */
.closed-status { color: #d00; font-weight: 700; letter-spacing: .5px; }
.closed-warn .ro-note { color: #8a1c1c; }
html.dark .closed-status, html.dark .closed-banner { color: #ff6b6b; }
html.dark .closed-warn .ro-note { color: #f0b0b0; }

/* --- Update On Demand (keys.js, guide 8.1.2 figs. 87-89, issue #136) ---------------------- */
.uod .uod-in { background: var(--yellow); min-height: 26px; font-size: 14px; }
.uod-add { justify-self: start; }
.uod-err { min-height: 18px; border-top: 1px solid #d9d9d9; padding-top: 4px; }
.uod-err-t { color: #d00; font-weight: 700; }
html.dark .uod .uod-in { color: #fff5c8; }
html.dark .uod-err { border-color: #3a3e45; color: #e4e6e9; }
html.dark .uod-err-t { color: #ff6b6b; }

/* --- the radio panel: Elite Dispatch framed (radiowin.js) --------------------------------- */
.win-body.radio-body { padding: 0; overflow: hidden; }
.radio-frame { display: block; width: 100%; height: 100%; border: 0; background: #f0f0f0; }

/*
 * Touchscreens. The map and the window frame take touch themselves (map.js, ui.js); these make
 * the browser leave those gestures alone and make the controls big enough for a finger. Only on
 * a coarse pointer, so the mouse layout is unchanged.
 */
.win-title, .win-rs { touch-action: none; }
@media (pointer: coarse) {
  .nm-tb { width: 44px; height: 42px; }
  .nm-pane { top: 42px; }
  .nm-nb, .nm-base { width: 40px; height: 40px; }
  .nm-nav { grid-template-columns: 46px 40px; }
  .nm-compass { width: 44px; height: 44px; }
  .nm-status { height: 34px; }
  .nm-msg, .nm-loc, .nm-about { height: 30px; }
  .map-scale { height: 28px; }
  .ma-chk input, .ma-res input { width: 20px; height: 20px; }
  .map-tip { font-size: 13px; padding: 5px 8px; }
  .win-b { min-width: 34px; min-height: 28px; }
  .win-rs { width: 26px; height: 26px; }
  .ctx-i { min-height: 38px; font-size: 14px; }
}

/*
 * PremierOne's combo box (forms.js combo): the field with its square arrow button, and the list
 * it drops - code, description and (for incident types) the agency, the current one highlighted.
 */
.combo { display: inline-flex; align-items: stretch; flex: none; }
.combo .combo-in { border-right: 0; }
.combo-btn {
  width: 18px; height: 22px; padding: 0; border: 1px solid var(--field-edge); border-radius: 0;
  background: linear-gradient(#fdfdfd, #e3e3e3); cursor: pointer; position: relative;
}
.combo-btn::after {
  content: ""; position: absolute; left: 5px; top: 9px;
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #333;
}
.combo.dis .combo-btn { cursor: default; opacity: .55; }
.combo-list {
  position: fixed; z-index: 3000; overflow-y: auto; background: #fff; border: 1px solid #767676;
  box-shadow: 2px 3px 8px rgba(0, 0, 0, .25); font-size: 12px; user-select: none;
}
.combo-row { display: flex; gap: 10px; padding: 2px 6px; white-space: nowrap; cursor: default; }
.combo-row .cc { flex: none; min-width: 64px; font-weight: 600; }
.combo-row .cl { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; }
.combo-row .ct { flex: none; color: #777; font-size: 11px; }
.combo-row:hover { background: #e5f1fb; }
.combo-row.hi { background: var(--select); color: #fff; }
.combo-row.hi .ct { color: #dfe9f6; }
html.dark .combo-btn { background: linear-gradient(#3a3e45, #2c2f35); border-color: #4a4f57; }
html.dark .combo-btn::after { border-top-color: #d6d9de; }
html.dark .combo-list { background: #23262b; border-color: #4a4f57; color: #e4e6e9; }
html.dark .combo-row:hover { background: #2f3540; }
html.dark .combo-row .ct { color: #9aa0a8; }
@media (pointer: coarse) {
  .combo-btn { width: 30px; }
  .combo-row { padding: 8px 10px; font-size: 14px; }
}

/* Alerting List (TN): the radio channels an alert goes out on. */
.alert-list { display: flex; gap: 10px; flex-wrap: wrap; min-width: 320px; }
.alert-zone { border: 1px solid var(--edge); padding: 4px 10px 6px; min-width: 140px; }
.alert-zone legend { padding: 0 4px; font-weight: 700; }
.alert-ch { display: flex; align-items: center; gap: 6px; padding: 2px 0; cursor: pointer; }
.alert-ch input:disabled + .alert-id { opacity: .7; }
.alert-id { display: inline-block; min-width: 1.4em; text-align: right; opacity: .75; }
.alert-note { opacity: .6; font-size: 90%; }
.alert-say { max-width: 520px; font-style: italic; }
.alert-warn { color: #b06a00; }
.btn.chans { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Queries (QY) and Query Responses (VQ): the response, formatted as PremierOne lays it out (rformat.js) */
.qr-tabs { display: flex; gap: 2px; margin-bottom: 6px; }
.qr-tabs .btn.on { background: #fff; border-bottom-color: #fff; font-weight: 600; }
.qr-out { border: 1px solid #c9c9c9; background: #fff; padding: 6px 8px; min-height: 220px; max-height: calc(calc(100 * var(--vh, 1vh)) - 330px); overflow: auto; }
.qr-err { color: #b00; font-weight: 600; }
.qr-raw { margin: 0; font: 12px Consolas, monospace; white-space: pre-wrap; }
td.qr-hot { color: #d11; font-weight: 700; text-align: center; }
.qr-out .qhead { margin: 0 0 8px; padding: 4px 10px 8px; border: 1px solid #c3c7cf; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 20px; }
.qr-out .qhead legend { padding: 0 4px; }
.qr-out .qh { display: grid; grid-template-columns: 76px 1fr; }
.qr-out .qh b { font-weight: 400; color: #555; }
.qr-out .qh span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr-out .rec { margin: 0 0 10px; }
.qr-out .rec-h { font-weight: 600; margin: 6px 0 4px; color: #1f5fa8; }
.qr-out .krow { display: grid; grid-template-columns: 160px 1fr; padding: 2px 0; border-bottom: 1px dotted #e3e3e3; }
.qr-out .krow span:first-child { color: #555; }
.qr-out .hothit { margin: 2px 0 8px; padding: 5px 10px; background: #fde8e8; border: 1px solid #e38b8b; color: #9b1111; font-weight: 600; }
.qr-out .hothit::before { content: "\25B2  "; color: #d11; }
.qr-out table.rtable { border-collapse: collapse; width: 100%; }
.qr-out .rtable th { text-align: left; font-weight: 400; background: #f1f2f4; border: 1px solid #d4d6db; padding: 2px 8px; }
.qr-out .rtable td { border-bottom: 1px solid #e6e7ea; padding: 2px 8px; }
.qr-out .link { color: #1a3f9a; text-decoration: underline; cursor: pointer; }
.qr-out .chips { display: inline-flex; gap: 3px; }
.qr-out .chip b { display: inline-block; min-width: 26px; padding: 1px 4px; font-size: 11px; text-align: center; color: #fff; }
.qr-out .chip.red b { background: #e41b1b; }
.qr-out .chip.yellow b { background: #ffe800; color: #111; }
.qr-out .chip.orange b { background: #f08a00; }
.qr-out .chip.grey b { background: #787878; }
.qr-out .chip.black b { background: #111; }
html.dark .qr-out { background: #1b1d20; border-color: #3c4148; }
html.dark .qr-tabs .btn.on { background: #1b1d20; border-bottom-color: #1b1d20; }
html.dark .qr-out .qhead { border-color: #4a5058; }
html.dark .qr-out .qh b, html.dark .qr-out .krow span:first-child { color: #aab0b8; }
html.dark .qr-out .rec-h, html.dark .qr-out .link { color: #7fb6e8; }
html.dark .qr-out .krow { border-bottom-color: #30353c; }
html.dark .qr-out .hothit { background: #45201f; border-color: #8b3a3a; color: #ffb4b4; }
html.dark .qr-out .rtable th { background: #262a31; border-color: #3c4148; }
html.dark .qr-out .rtable td { border-bottom-color: #30353c; }
html.dark .qr-err { color: #ff8a8a; }

/* Traffic camera window (camwin.js) */
.cam-wrap { display: flex; flex-direction: column; height: 100%; background: #000; }
.cam-bar { display: flex; align-items: center; gap: 10px; padding: 4px 8px; background: #e8e8e8; border-bottom: 1px solid #b8b8b8; }
.cam-pick { height: 24px; font: inherit; }
.cam-where { color: #444; font-size: 12px; }
.cam-img { flex: 1 1 auto; min-height: 0; width: 100%; object-fit: contain; background: #000; }
.cam-status { padding: 3px 8px; background: #111; color: #bbb; font: 600 12px Consolas, monospace; }
.cam-status.live { color: #4cd07a; }
.cam-status.stale { color: #ff8a65; }
html.dark .cam-bar { background: #26292e; border-color: #3a3e45; }
html.dark .cam-where { color: #a9aeb6; }
/* The camera window, reconstructed (camwin.js): scene on the left, what is in view on the right. */
.cam2 { display: flex; flex-direction: column; height: 100%; background: #101317; }
.cam-tabs { margin-left: auto; display: flex; gap: 2px; }
.cam-tab { padding: 2px 12px; border: 1px solid #a8a8a8; background: linear-gradient(#f6f6f6, #dedede); font: inherit; cursor: pointer; }
.cam-tab.on { background: #fff; border-color: #2f5f9e; font-weight: 700; }
.cam2-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 1fr 290px; }
.cam2-scene { position: relative; min-height: 0; }
.cam2-scene .mm-canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.cam2-still { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #000; }
.cam2-still.hidden, .cam2-note.hidden { display: none; }
.cam2-note { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); max-width: 70%; padding: 12px 16px;
  background: rgba(16,19,23,.92); border: 1px solid #50555d; color: #e4e6e9; text-align: center; line-height: 1.4; }
.cam-bar .cam-tabs + .cam-tabs { margin-left: 8px; }
/* The camera grid (camgrid.js): the map of every camera on the left, a tile per camera on the right. */
.cgrid { display: grid; grid-template-columns: minmax(280px, 38%) 1fr; height: 100%; background: #101317; }
.cgrid-map { position: relative; min-height: 0; border-right: 1px solid #2a2f36; }
.cgrid-map .mm-canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.cgrid-right { display: flex; flex-direction: column; min-height: 0; }
.cgrid-head { display: flex; align-items: center; gap: 12px; padding: 6px 10px; color: #c9cdd2; font: 600 12px Segoe UI, Arial; border-bottom: 1px solid #2a2f36; }
.cgrid-headtext { flex: 1; min-width: 0; }
.cgrid-toggles { display: flex; gap: 14px; font-weight: 400; }
.cgrid-tg { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
@media (pointer: coarse) { .cgrid-tg input { width: 20px; height: 20px; } .cgrid-toggles { gap: 18px; } }
.cgrid-tiles { flex: 1; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; padding: 8px; align-content: start; }
.cgrid-tile { background: #1a1e24; border: 2px solid #2a2f36; cursor: pointer; display: flex; flex-direction: column; }
.cgrid-tile:hover { border-color: #4a6fc6; }
.cgrid-tile.live { border-color: #2e9d4a; }
.cgrid-tile.alarm { border-color: #ff3030; animation: cgridflash 1s steps(1) infinite; }
@keyframes cgridflash { 50% { border-color: #7a0000; } }
.cgrid-pic { width: 100%; aspect-ratio: 16 / 9; display: block; background: #0b0d10; }
.cgrid-cap { display: flex; align-items: center; gap: 8px; padding: 4px 8px 0; color: #e4e6e9; font-size: 12px; }
.cgrid-cap b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cgrid-status { color: #4cd07a; font: 700 11px Consolas, monospace; }
.cgrid-what { padding: 2px 8px 6px; color: #9aa0a8; font-size: 11.5px; }
.cgrid-empty { padding: 20px; color: #9aa0a8; }
/* A 360 or 180 camera's controls over its picture (camwin.js setPtz): the direction shown,
   Left / Right, back to the panorama; Split stacks a 360 strip's two halves. */
.cam2-ptz { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 6px;
  padding: 4px 6px; background: rgba(246, 246, 246, .92); border: 1px solid #a8a8a8; border-radius: 4px; color: #222; font-size: 12px; white-space: nowrap; }
.cam2-ptzb { padding: 2px 10px; border: 1px solid #a8a8a8; background: linear-gradient(#f6f6f6, #dedede); color: #222; font: inherit; cursor: pointer; }
.cam2-ptzb:hover { border-color: #2f5f9e; }
.cam2-ptzb.on { background: #fff; border-color: #2f5f9e; font-weight: 700; }
.cam2-ptzl { padding: 0 4px; font-weight: 600; }
.cam2-still:focus { outline: none; }
html.dark .cam2-ptz { background: rgba(27, 29, 32, .92); border-color: #3a3e45; color: #e4e6e9; }
html.dark .cam2-ptzb { background: linear-gradient(#34383e, #2a2d32); border-color: #4a5058; color: #e4e6e9; }
html.dark .cam2-ptzb:hover { border-color: #7fb6e8; }
html.dark .cam2-ptzb.on { background: #1b1d20; border-color: #7fb6e8; }
html.dark .cam2-still:focus { outline: none; }
/* The same inside the Fusus window (camfusus.js Expand), which has its own look in either theme. */
.cam2.fzp .cam2-ptz, html.dark .cam2.fzp .cam2-ptz { background: rgba(23, 30, 39, .92); border-color: #2b3747; color: #e3e9f0; }
.cam2.fzp .cam2-ptzb, html.dark .cam2.fzp .cam2-ptzb { background: #1f2833; border-color: #2b3747; color: #e3e9f0; border-radius: 4px; }
.cam2.fzp .cam2-ptzb:hover, html.dark .cam2.fzp .cam2-ptzb:hover { border-color: #ffd400; color: #ffd400; }
.cam2.fzp .cam2-ptzb.on, html.dark .cam2.fzp .cam2-ptzb.on { background: #ffd400; border-color: #ffd400; color: #111; }
.cam2-side { min-height: 0; overflow: auto; background: #f4f4f4; border-left: 1px solid #8a8a8a; font-size: 12px; }
.cam2-h { padding: 5px 8px; font-weight: 700; background: #dfe3e8; border-bottom: 1px solid #c9cfd6; position: sticky; top: 0; }
.cam2-row { display: grid; grid-template-columns: 14px auto 1fr; gap: 2px 6px; align-items: center; padding: 5px 8px; border-bottom: 1px solid #e2e2e2; cursor: pointer; }
.cam2-row.rec { grid-template-columns: auto 1fr; }
.cam2-row:hover { background: #e3edf9; }
.cam2-row.on { background: #cde6f7; }
.cam2-row .cam2-mute { grid-column: 2 / -1; color: #666; font-size: 11px; }
.cam2-row.rec .cam2-mute { grid-column: 1 / -1; }
.cam2-sw { width: 12px; height: 12px; border: 1px solid #333; }
.cam2-sw.round { border-radius: 50%; }
.cam2-run { grid-column: 2 / -1; justify-self: start; padding: 1px 8px; font-size: 11px; }
.cam2-empty { padding: 10px 8px; color: #777; }
.cam2-outfit { font-size: 10.5px; }
.cam2-ev { display: grid; grid-template-columns: auto 1fr; gap: 6px; padding: 4px 8px; border-bottom: 1px solid #e2e2e2; font-size: 12px; cursor: pointer; }
.cam2-ev:hover { background: #e3edf9; }
.cam2-ev.ev-hit { color: #b31010; }
.cam2-ev.ev-fatal { color: #fff; background: #b31010; font-weight: 700; }
.cam2-ev.ev-fatal .cam2-mute { color: #ffd0d0; }
.cam2-ev.ev-now { outline: 2px solid #ffd600; outline-offset: -2px; }
html.dark .cam2-ev { border-color: #2a2d32; }
html.dark .cam2-ev.ev-hit { color: #ff8a8a; }
html.dark .cam2-ev:hover { background: #26303b; }
.cam2-recs.hidden, .cam2-timeline.hidden { display: none; }
.cam2-recs { border-bottom: 2px solid #b8b8b8; max-height: 45%; overflow: auto; }
.cam2-timeline { display: flex; align-items: center; gap: 8px; padding: 4px 8px; background: #1c2026; color: #ddd; }
.cam2-slider { flex: 1; }
.cam2-clock { font: 600 12px Consolas, monospace; min-width: 90px; text-align: right; }
.cam-status.wait { color: #c9cdd2; }
html.dark .cam2-side { background: #1b1d20; border-color: #3a3e45; color: #e4e6e9; }
html.dark .cam2-h { background: #2a2d32; border-color: #3a3e45; }
html.dark .cam2-row { border-color: #2a2d32; }
html.dark .cam2-row:hover { background: #26303b; }
html.dark .cam2-row.on { background: #2f4a6e; }
html.dark .cam2-row .cam2-mute, html.dark .cam2-empty { color: #9aa0a8; }
html.dark .cam-tab { background: #2a2d32; border-color: #50555d; color: #c9cdd2; }
html.dark .cam-tab.on { background: #1b1d20; border-color: #6f9bff; color: #fff; }
@media (pointer: coarse) {
  .cam2-row { padding: 9px 10px; }
  .cam-tab { padding: 8px 14px; }
  .cam2-timeline .btn { min-width: 44px; min-height: 36px; }
}

/* --- the experimental pop-out UI (popout.js) --------------------------------------------- */
/* A window that is the whole page: its browser window is the frame. */
.win.fill { position: fixed; inset: 0; width: auto !important; height: auto !important; border: 0; box-shadow: none; }
/* The client's pop-out window keeps one shape (popout.js STAGE): laid out at --stage-w x --stage-h,
   zoomed to fit the browser window, centred on a dark desk - as the training CAD's locked client. */
html.stage, html.stage body { background: #1b1f26; }
html.stage .win.fill { inset: auto; left: 50%; top: 50%; width: var(--stage-w) !important; height: var(--stage-h) !important;
  margin: calc(var(--stage-h) / -2) 0 0 calc(var(--stage-w) / -2); box-shadow: 0 0 0 1px #000; overflow: hidden; }

/* The window status page (hub.js): the tab signed in on. */
body.hub-page { overflow: auto; }
body.hub-page #desktop { position: static; overflow: visible; }
.hub { max-width: 900px; margin: 24px auto; padding: 0 16px; }
.hub-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--chrome); border: 1px solid #b9b9b9; }
.hub-brand { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.hub-brand img { grid-row: span 2; height: 44px; }
.hub-t { font-size: 18px; font-weight: 700; }
.hub-s { color: #555; }
.hub-who { color: #333; }
.hub-note { margin: 12px 0; padding: 8px 14px; background: #fff; border: 1px solid #c9c9c9; }
.hub-note p { margin: 6px 0; }
.hub-warn { margin: 0 0 12px; padding: 8px 14px; background: #fff3cd; border: 1px solid #d9b44a; }
.hub-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.hub-gap { flex: 1; }
.hub-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #c9c9c9; }
.hub-table th { text-align: left; padding: 6px 10px; background: #e8e8e8; border-bottom: 1px solid #c9c9c9; }
.hub-table td { padding: 6px 10px; border-bottom: 1px solid #e3e3e3; }
.hub-table tr.on .hub-name { font-weight: 600; }
.hub-opt { margin-left: 8px; font-size: 11px; color: #777; font-weight: 400; }
.hub-acts { text-align: right; white-space: nowrap; }
.hub-acts .btn { min-width: 80px; margin-left: 6px; }
.hub-size { color: #555; font-variant-numeric: tabular-nums; }
.hub-scale { white-space: nowrap; }
.hub-sv { min-width: 150px; height: 24px; font: inherit; font-variant-numeric: tabular-nums; }
.hub-dot { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: #aaa; vertical-align: -1px; }
.hub-dot.on { background: #1f9d3a; }
.hub-dot.lost { background: #d9822b; }
html.dark .hub-head { background: #23262b; border-color: #0c0c0c; }
html.dark .hub-note, html.dark .hub-table { background: #1b1d20; border-color: #3a3e45; }
html.dark .hub-table th { background: #2a2d32; border-color: #3a3e45; }
html.dark .hub-table td { border-color: #30343a; }
html.dark .hub-s, html.dark .hub-who, html.dark .hub-size, html.dark .hub-opt { color: #aab0b8; }
html.dark .hub-warn { background: #45391a; border-color: #8a6f2a; color: #f0d58a; }
html.dark .ani-kv .k { color: #b9bdc3; }
/* A label too long for the label column (State/Fed Entry #) runs on rather than wrapping. */
.fr .fl.fl-wide { width: auto; white-space: nowrap; }
/* Incident Management Summary (guide fig. 107): the Comments label with its two check boxes under
   it, the clear button on the close row, and the jurisdiction table at the foot. */
.cm-label { width: 84px; flex: none; display: flex; flex-direction: column; gap: 3px; align-self: flex-start; }
.cm-label .fl { width: auto; }
.cm-label .fcheck { font-size: 10.5px; line-height: 1.15; }
.ftext.box.city { min-width: 180px; }
.close-row td:last-child { width: 24px; }
.grid.jur { margin-top: 6px; width: 100%; }
/* Dispatch tab (guide fig. 206/210/120): "Press Request", the unit + capability boxes under the
   recommendation, the primary's arrow, and the WAA Dispatch Summary's groups and Map It. */
.caps-empty.req { font-style: italic; font-weight: 700; color: #222; text-align: center; padding: 14px; }
.caps-man { display: flex; gap: 14px; flex-wrap: wrap; padding: 6px; border-top: 1px solid #e3e3e3; }
.man-pair { display: inline-flex; gap: 2px; }
.prim-arrow { color: #1e8e1e; font-size: 11px; }
.assigned td > div + div { color: #555; }
.dptch { position: relative; }
.dptch .dptch-map { position: absolute; right: 10px; top: 8px; }
.dptch-g { display: flex; flex-direction: column; gap: 3px; padding: 4px 0; border-bottom: 1px solid #ddd; }
.dptch-g:last-child { border-bottom: 0; }
html.dark .dptch-g { border-color: #3a3e45; }
html.dark .caps-empty.req { color: #e4e6e9; }
.fr .fl.dp-l { min-width: 112px; }
/* History tab (guide fig. 156-159): what happened on a line of its own, labelled pairs in blue
   two to a row, priority comments in red, the picked transaction highlighted; Print shows only the
   history; the Orphan window's list and Transaction Display. */
.hist-kv .hist-what, .hist-kv .hist-cm { grid-column: 1 / -1; }
.hist tr.hist-h td { font-weight: 600; }
.hist tr.hist-h.sel td { background: #3d7fd6; color: #fff; }
.hist tr.prio td, .hist tr.prio .hist-kv { color: #d00000; }
.hist-filter { display: inline-flex; align-items: center; gap: 6px; }
.hist-filter .fl { width: auto; }
.hist-acts { align-items: center; }
.hist-gap { flex: 1; }
.hist-print { display: none; }
@media print {
  body.printing-hist > *:not(.hist-print) { display: none !important; }
  body.printing-hist .hist-print { display: block; font: 11px "Segoe UI", Arial, sans-serif; color: #000; }
  body.printing-hist .hist-print table { width: 100%; border-collapse: collapse; }
}
.win-body.orphan { display: flex; flex-direction: column; padding: 8px; gap: 6px; background: #fff; }
.orph-top { display: flex; align-items: center; gap: 8px; }
.orph-top .orph-where { margin-right: auto; font-weight: 600; }
.orph-top .fl { width: auto; }
.orph-split { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid #c8c8c8; }
.orph-list { overflow: auto; border-right: 1px solid #c8c8c8; }
.orph-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 80px; gap: 6px; padding: 3px 8px; cursor: default; }
.orph-row:hover { background: #e5f1fb; }
.orph-row.sel { background: #3d7fd6; color: #fff; }
.orph-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orph-show { overflow: auto; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.orph-show .orph-h { font-weight: 700; font-size: 13px; text-align: center; }
html.dark .win-body.orphan { background: #1b1d20; }
html.dark .orph-split, html.dark .orph-list { border-color: #3a3e45; }
html.dark .hist-kv i { color: #7fb3ec; }
/* Associated incidents (guide fig. 101/116): the Recommended dialog's heading and grid, the
   Assoc tab's own row, its buttons, and the group's history. */
.ra-box { min-width: 0; }
.dlg:has(.ra-box), .dlg:has(.ah-box) { max-width: min(980px, calc(calc(100 * var(--vw, 1vw)) - 16px)); width: auto; }
.dlg:has(.ra-box) .dlg-body { overflow-x: visible; }
.ra-head { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr; gap: 4px 8px; margin-bottom: 10px; }
.ra-head b { font-weight: 600; }
.ra-sub { font-weight: 700; margin: 4px 0; }
.grid.ra { width: 100%; }
.grid.assoc tr.self td { font-weight: 700; }
.grid.assoc td.ex { width: 18px; text-align: center; cursor: pointer; color: #555; }
.assoc-acts { display: flex; gap: 6px; justify-content: flex-end; padding: 6px; border-top: 1px solid #ddd; }
.ah-box { width: min(860px, calc(86 * var(--vw, 1vw))); }
.ah-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.ah-bar .fl { width: auto; }
.ah-list { max-height: calc(55 * var(--vh, 1vh)); overflow: auto; }
html.dark .assoc-acts { border-color: #3a3e45; }

/* Unit Management Status form (forms.js umStatus; guide fig. 169, training CAD cad.css). */
.warnbox { background: #fff4d6; border: 1px solid #e0b64a; padding: 5px 8px; margin: 4px 0 8px; }
.errbox { background: #ffe3e0; border: 1px solid #d86b60; padding: 5px 8px; margin: 4px 0 8px; }
.lnk { color: #0b2fd0; text-decoration: underline; cursor: pointer; }
.lnk:hover { color: #c21b0d; }
.us-uid { font-size: 15px; margin: 0 10px; }
.dstrip { margin: 8px 0 10px; border: 1px solid #c0c0c0; width: 100%; table-layout: fixed; }
.dstrip th:first-child { width: 46%; }
.dstrip.dis, .dstrip.dis th { background: #dcdcdc; color: #8a8a8a; }
html.dark .warnbox { background: #3d3418; border-color: #8a6d1f; }
html.dark .errbox { background: #3d1c1a; border-color: #8a3a33; }
html.dark .lnk { color: #7fa6ff; }
html.dark .dstrip.dis, html.dark .dstrip.dis th { background: #2a2d32; color: #777; }

/* Incident Initiation, General tab (forms.js iiGeneral): the PremierOne client's II layout at the
   client's fixed 1024 x 860 stage - narrow labels, one line per row, fields that fill the rest. */
.iif .fr { flex-wrap: nowrap; gap: 5px; min-height: 24px; margin: 1px 0; }
.iif .fr.top { align-items: flex-start; }
.iif .fl { width: 62px; font-size: 12px; white-space: nowrap; }
.iif .fr .fl:not(:first-child) { width: auto; margin-left: 4px; }
.iif .fl.w24 { width: 24px !important; } .iif .fl.w30 { width: 30px !important; } .iif .fl.w36 { width: 36px !important; }
.iif .fl.w40 { width: 40px !important; } .iif .fl.w44 { width: 44px !important; } .iif .fl.w70 { width: 70px !important; }
.iif .fl.w80 { width: 80px !important; } .iif .fl.auto { width: auto !important; } .iif .fl.r { text-align: right; }
.iif .fl.b { font-weight: 700; } .iif .fl.ml { margin-left: 14px; }
.iif .w70sp { width: 70px; flex: none; }
.iif .grow { flex: 1; }
.iif .fi.fill { flex: 1 1 auto; width: auto; min-width: 0; }
.iif .fr > .fa { flex: 1 1 auto; }
.iif .cmlbl { display: flex; flex-direction: column; gap: 4px; width: 70px; flex: none; }
.iif .cmlbl .fl { width: 70px; }
.iif .fcheck.pc { font-size: 11px; line-height: 1.1; display: block; }
.iif .ftext.box.s { min-width: 58px; }
.iif .cross { color: #333; }
.iif .lvl { margin-left: 8px; color: #333; font-size: 11px; }
.iif .fg { padding: 2px 8px 6px; gap: 2px; }
.locmark { display: inline-flex; width: 22px; height: 22px; flex: none; }
.locmark.no { cursor: pointer; }
html.dark .iif .cross, html.dark .iif .lvl { color: #c8ccd2; }
.iif .fl.wrap { white-space: normal; line-height: 1.05; }

/* Submenus (ui.js menu: Console > Session, Work Area > Work Objects, Utilities > Command Line). */
.ctx-i.has-sub { padding-right: 22px; }
.ctx-arrow { position: absolute; right: 8px; color: #444; font-size: 10px; }
html.dark .ctx-arrow { color: #bbb; }

/* Lock Session (client.js lockSession): the client hidden behind the lock until the password. */
.lock-back { position: fixed; inset: 0; z-index: 2147483000; background: rgba(27, 31, 38, .55); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; }
body.locked-session .win.fill > *:not(.lock-back) { filter: blur(6px); }
.lock-dlg { position: static; width: 420px; }

/* Messaging work object (msgform.js; guide ch. 18, the training CAD's forms_msg). */
.msg-h .fr { flex-wrap: nowrap; }
.msg-h .fl.ml48 { width: 52px; }
.msg-h .fl.ml60, .fr .fl.ml60 { width: 92px; }
.msg-h .fl.auto { width: auto; margin-left: 8px; }
.msg-h .fi.fill { flex: 1 1 auto; width: auto; min-width: 0; }
.fi.w80, .fs.w80 { width: 80px; } .fi.w120 { width: 120px; } .fi.w150 { width: 150px; } .fi.w200 { width: 200px; }
.msg-h .grow { flex: 1; }
.msg-att { border: 1px solid #c8c8c8; margin-top: 6px; }
.msg-atth { padding: 3px 6px; background: #f0f0f0; border-bottom: 1px solid #d8d8d8; font-size: 11px; color: #333; }
/* Scheduled Incidents (siform.js): the held list scrolls inside the form. */
.si-list { border: 1px solid #c8c8c8; margin-top: 6px; max-height: 360px; overflow: auto; background: #fff; }
/* Status Backdating (sbform.js): the trips, a trip's fields opened under it. */
.sb-list { border: 1px solid #c8c8c8; margin: 6px 0; max-height: 380px; overflow: auto; background: #fff; }
.sb-grid td { white-space: nowrap; }
.sb-grid tr.sb-add td { color: #1a4f9c; font-style: italic; cursor: pointer; }
.sb-grid tr.sb-edit td { background: #f4f7fb; padding: 4px 8px; }
.sb-grid tr.sb-edit .fl { min-width: 96px; }
/* Contractor Requests (contractor.js): the rotation's contact line, the timeout icon. */
.cr-rot td:nth-child(3) { white-space: nowrap; }
.cr-rot td.cr-plus { width: 14px; text-align: center; cursor: pointer; font-weight: 700; color: #1a4f9c; }
.cr-rot tr.cr-contact td { background: #f4f7fb; padding: 4px 10px; font-size: 11px; }
.cr-timeout { display: inline-block; width: 14px; height: 14px; line-height: 14px; text-align: center; border-radius: 7px;
              background: #d9262c; color: #fff; font-weight: 700; font-size: 10px; }
tr.dim td { color: #888; }
.fa.mbody { border: 0; width: 100%; min-height: 220px; text-transform: none; }
.grid.cfl tr.unread td { font-weight: 700; }
.grid.cfl tr { cursor: default; }
.ab-wrap { width: 480px; max-width: 100%; }
.ab-pick { height: 260px; overflow: auto; border: 1px solid #aaa; margin-top: 6px; background: #fff; }
.waa-foot .waa-x { margin-left: 4px; }
html.dark .msg-atth { background: #2a2d32; border-color: #3f434a; color: #c8ccd2; }
html.dark .msg-att { border-color: #3f434a; }
html.dark .ab-pick { background: #1e2125; border-color: #3f434a; }

/* A status monitor's title row in its own window (monitors.js monHead; guide 15.15, figs 237, 243):
   #E2E6EF, "\25BC 3 Pending Incidents(6)", the dotted grip, the white Alerts(n) box, Show/Hide Toolbar. */
.mon-head { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 0 0 6px; flex: none;
  background: #e2e6ef; border-bottom: 1px solid #b9bfcc; font-weight: 700; font-size: 12px; }
.mon-head .mh-grip { flex: 1; height: 10px; background-image: radial-gradient(#9a9ea8 1px, transparent 1.2px); background-size: 4px 4px; }
.mon-head .mh-warn { color: #c98a00; font-size: 14px; cursor: default; }
.mon-head .mh-al { display: inline-flex; align-items: stretch; height: 18px; min-width: 96px; padding: 0; border: 1px solid #7a7f8a; background: #fff;
  font: 400 11px "Segoe UI", Arial, sans-serif; cursor: default; }
.mon-head .mh-al-t { flex: 1; padding: 0 4px; line-height: 16px; text-align: left; }
.mon-head .mh-al-a { width: 15px; border-left: 1px solid #c4c4c4; line-height: 16px; text-align: center; }
.mon-head .mh-al.on .mh-al-t { font-weight: 700; color: #c00; }
.mon-head .mh-tb { width: 18px; height: 22px; padding: 0; border: 0; border-left: 1px solid #b9bfcc; background: transparent; font: 700 10px/10px Arial; color: #333; cursor: default; }
.mon-head .mh-tb.on, .mon-head .mh-tb:hover { background: #cfd6e4; }
html.dark .mon-head { background: #2a2f38; border-color: #15171a; color: #e4e6e9; }
html.dark .mon-head .mh-al { background: #1b1d20; color: #e4e6e9; }
/* The toolbar (guide 15.15, figs 243-245) and the monitor's own command line under it. */
.mon-tb { flex: none; background: #f0f2f6; border-bottom: 1px solid #c4c8d0; }
.mon-tb-row { display: flex; align-items: center; gap: 4px; padding: 2px 4px; }
.mtb { min-height: 20px; padding: 0 8px; font-size: 11px; }
.mtb-split { display: inline-flex; }
.mtb-split .mtb:first-child { border-radius: 3px 0 0 3px; }
.mtb-split .mtb-a { border-left: 0; border-radius: 0 3px 3px 0; padding: 0 3px; }
.mon-cl { padding: 0 4px 3px; }
.mon-cl .fi { width: 100%; height: 22px; }
html.dark .mon-tb { background: #23262b; border-color: #3a3e45; }

/* Unit Status Monitor, station grid (monitors.js gridOf; guide 15.11, fig 240): equal fixed-size
   windows filling top to bottom, then left to right, each with its headings, label and scroll bar. */
.ugrid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(auto-fill, 180px); grid-auto-columns: 160px; gap: 2px;
  height: 100%; overflow: auto; background: #fff; padding: 2px; }
.ug-col { display: flex; flex-direction: column; border: 1px solid #b9bfcc; min-height: 0; }
.ug-h { flex: none; padding: 2px 4px; font-weight: 700; font-size: 11px; background: #fff; border-bottom: 1px solid #d0d0d0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ug-box { flex: 1 1 auto; min-height: 0; overflow: auto; }
.mon.ug-t { width: 100%; table-layout: fixed; border-collapse: collapse; }
.mon.ug-t td { padding: 1px 5px; border-bottom: 1px solid #e4e4e4; font-weight: 700; }
.mon.ug-t .ug-s { width: 60px; text-align: left; }
html.dark .ugrid { background: #1b1d20; } html.dark .ug-h { background: #2a2d32; border-color: #3f434a; } html.dark .ug-col { border-color: #3f434a; }
.wa { position: relative; }

/* Dynamic Help on the command line itself (commands.js ghostHelp): what is typed, invisible, then
   the hint in grey - drawn behind the input, which is transparent over it. */
.p1-cmd { background: #fff; }
.p1-cmd input#cmd { background: transparent; position: relative; z-index: 1; }
.cmd-ghost { position: absolute; left: 6px; top: 0; bottom: 0; right: 22px; display: flex; align-items: center; font-size: 14px; color: transparent;
  white-space: pre; pointer-events: none; overflow: hidden; }
.cmd-ghost .hint { color: #9a9a9a; text-transform: none; }
.cmd-ghost .gt { color: transparent; text-transform: uppercase; }
.cmd-ghost .bad { color: #d04040; text-transform: none; }
html.dark .p1-cmd { background: #1e2125; } html.dark .cmd-ghost .hint { color: #6c7179; }

/* Interface monitor (ifacemon.js): Down red, Late yellow, Up as any row. */
.iface { height: 100%; overflow: auto; }
.mon tr.if-down td { background: #ff1010; color: #fff; }
.mon tr.if-late td { background: #ffe400; color: #000; }
.mon tr.if-up td.if-s { color: #1f8a1f; font-weight: 700; }
.mon tr.if-idle td.if-s { color: #6d6d6d; }
.ss-multi { width: 230px; min-height: 90px; }
/* Roll Calls (rcform.js). */
.rc-units td { white-space: nowrap; }
.rc-days .fcheck { margin-right: 8px; }
.grid tr.err td { color: #b00000; }
.ct-grid tr.ct-on td { background: #fff7b0; }

/* ---------------------------------------------------------------------------------------------
   Traffic Cameras as Axon Fusus - FususONE (camfusus.js): navbar, top toolbar, map with side
   toolbar and dock, grids, dashboard. Dark by default; "light" follows Change Style > Light.
   --------------------------------------------------------------------------------------------- */
.fz { --fz-bg: #0f141b; --fz-p: #171e27; --fz-p2: #1f2833; --fz-p3: #273241; --fz-line: #2b3747; --fz-t: #e3e9f0; --fz-dim: #8e9bab;
      --fz-acc: #ffd400; --fz-red: #ff3b30; --fz-green: #30c85a; --fz-grey: #8e8e93; --fz-orange: #ff7a00; --fz-blue: #3d8bff;
      position: absolute; inset: 0; display: flex; background: var(--fz-bg); color: var(--fz-t);
      font: 13px/1.35 "Segoe UI", Roboto, Arial, sans-serif; overflow: hidden; }
.fz.light { --fz-bg: #f3f5f8; --fz-p: #ffffff; --fz-p2: #eef1f5; --fz-p3: #e2e7ee; --fz-line: #d3d9e1; --fz-t: #1d2633; --fz-dim: #5f6b7a; }
.fz .hidden { display: none !important; }
.fz button { font: inherit; }
.fz-i { display: inline-flex; width: 18px; height: 18px; flex: none; }
.fz-i svg { width: 100%; height: 100%; }
.fz-grow { flex: 1; }
.fz-mx { color: var(--fz-dim); font-size: 12px; }
.fz-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; background: var(--fz-grey); }
.fz-dot.live { background: var(--fz-red); animation: fz-pulse 1.2s ease-in-out infinite; }
.fz-dot.online { background: var(--fz-green); }
.fz-dot.inactive { background: var(--fz-grey); }
@keyframes fz-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, .7); } 50% { box-shadow: 0 0 0 5px rgba(255, 59, 48, 0); } }
/* navbar */
.fz-nav { width: 78px; flex: none; background: #0a0e13; border-right: 1px solid var(--fz-line); display: flex; flex-direction: column; align-items: stretch; }
.fz.light .fz-nav { background: #1d2633; }
.fz-logo { height: 48px; display: grid; place-items: center; font-weight: 800; letter-spacing: .5px; color: var(--fz-acc); font-size: 17px; border-bottom: 1px solid #222c38; }
.fz-nv { background: none; border: 0; color: #9aa7b6; padding: 10px 2px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; font-size: 11px; }
.fz-nv .fz-i { width: 21px; height: 21px; }
.fz-nv:hover { color: #fff; background: #141b24; }
.fz-nv.on { color: var(--fz-acc); box-shadow: inset 3px 0 0 var(--fz-acc); background: #141b24; }
.fz-main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
/* top toolbar */
.fz-top { height: 48px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 10px; background: var(--fz-p); border-bottom: 1px solid var(--fz-line); }
.fz-cs { background: var(--fz-acc); color: #111; font-weight: 800; border-radius: 3px; padding: 2px 8px; min-width: 20px; text-align: center; }
.fz-cs:empty { display: none; }
.fz-sbox { position: relative; display: flex; align-items: center; margin-left: 6px; }
.fz-sbox .fz-si { position: absolute; left: 8px; color: var(--fz-dim); width: 16px; height: 16px; pointer-events: none; }
.fz-search { padding: 6px 9px; background: var(--fz-bg); border: 1px solid var(--fz-line); border-radius: 4px; color: var(--fz-t); }
.fz-sbox .fz-search { width: 300px; padding-left: 30px; }
.fz-narrow { width: 150px; }
.fz-sel { padding: 5px 8px; background: var(--fz-bg); border: 1px solid var(--fz-line); border-radius: 4px; color: var(--fz-t); }
.fz-tb { background: none; border: 0; color: var(--fz-dim); display: flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 4px; cursor: pointer; position: relative; }
.fz-tb:hover { background: var(--fz-p2); color: var(--fz-t); }
.fz-tb .fz-tl { font-size: 12px; font-weight: 600; }
.fz-tb .fz-n { background: var(--fz-blue); color: #fff; border-radius: 8px; font-size: 11px; padding: 0 5px; font-weight: 700; }
.fz-tb .fz-n:empty { display: none; }
.fz-tb.hot .fz-n { background: var(--fz-orange); }
.fz-tb.hot { color: var(--fz-orange); }
.fz-drop { position: absolute; z-index: 50; min-width: 260px; max-height: 420px; overflow: auto; background: var(--fz-p); border: 1px solid var(--fz-line); border-radius: 6px; box-shadow: 0 10px 26px rgba(0, 0, 0, .45); padding: 4px 0; }
.fz-sbox .fz-drop { top: 36px; left: 0; width: 340px; }
.fz-smh { padding: 7px 12px 4px; font-weight: 700; font-size: 12px; color: var(--fz-dim); text-transform: uppercase; letter-spacing: .4px; }
.fz-mi { display: flex; align-items: center; gap: 6px; width: 100%; background: none; border: 0; color: var(--fz-t); padding: 6px 12px; text-align: left; cursor: pointer; }
.fz-mi:hover:not(:disabled) { background: var(--fz-p2); }
.fz-mi:disabled { opacity: .45; cursor: default; }
.fz-mi.on { color: var(--fz-acc); }
.fz-mi.hi { box-shadow: inset 3px 0 0 var(--fz-orange); }
.fz-mi.dim { opacity: .55; }
.fz-drop > .fz-mx { padding: 3px 12px; }
.fz-lay { display: flex; align-items: center; gap: 6px; padding: 4px 12px; cursor: pointer; }
/* The camera view's two outlines, under Camera views (no colours of their own: dark mode follows). */
.fz-lay-sub { padding-left: 30px; font-size: 12px; }
.fz-pri { font-size: 11px; font-weight: 800; padding: 0 5px; border-radius: 3px; color: #fff; background: #556; }
.fz-pri.p0 { background: #d00; } .fz-pri.p1 { background: #ff7a00; } .fz-pri.p2 { background: #c8a400; }
/* views */
.fz-views { flex: 1; position: relative; min-height: 0; }
.fz-view { position: absolute; inset: 0; }
.fz-pad { padding: 14px 18px; overflow: auto; }
.fz-h2 { margin: 0 0 12px; font-size: 18px; font-weight: 700; }
.fz-mapview { display: flex; }
.fz-maparea { flex: 1; position: relative; min-width: 0; }
.fz-map { position: absolute; inset: 0; }
.fz-map .mm-canvas { width: 100%; height: 100%; display: block; }
.fz-ovl { position: absolute; inset: 0; pointer-events: none; }
.fz-ovl > * { pointer-events: auto; }
.fz-ovl > .fz-shapes, .fz-ovl > .fz-markers { pointer-events: none; }
.fz-shapes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fz-shapes circle, .fz-shapes polygon, .fz-shapes polyline:not(.tele) { fill: rgba(255, 212, 0, .12); stroke: var(--fz-acc); stroke-width: 2; }
.fz-shapes polyline.tele { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fz-shapes .drawing { stroke-dasharray: 6 4; }
.fz-shapes polyline { fill: none; }
.fz-drawlayer { position: absolute; inset: 0; cursor: crosshair; z-index: 20; }
.fz-markers { position: absolute; inset: 0; }
.fz-mk, .fz-cluster, .fz-inc { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; cursor: pointer; }
.fz-mk { width: 28px; height: 28px; border-radius: 50%; background: #0d1520; border: 2px solid #c9d6e6; display: grid; place-items: center; color: #dce6f2; }
.fz-mk .fz-i { width: 15px; height: 15px; }
.fz-mk > .fz-dot { position: absolute; right: -3px; bottom: -3px; width: 11px; height: 11px; border: 2px solid #0d1520; }
.fz-mk.on { border-color: var(--fz-acc); }
.fz-mk.docked { background: #3a3000; }
.fz-mk.alert, .fz-cluster.alert { box-shadow: 0 0 0 4px rgba(255, 122, 0, .75); }
.fz-ml { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); background: rgba(10, 14, 19, .85); color: #e3e9f0; padding: 1px 6px; border-radius: 3px; font-size: 11px; white-space: nowrap; }
/* A 360 camera's marker: a dashed ring all round; a Wide 180's: a half ring facing its heading
   (camfusus.js turns it). Standard cameras have none. The Fusus window has its own theme
   (Change Style), so the dark-mode rules are the same. */
.fz-mk .fz-kr, html.dark .fz-mk .fz-kr { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; box-sizing: border-box; border-radius: 50%;
  border: 3px solid transparent; transform: translate(-50%, -50%); pointer-events: none; }
.fz-mk:not(.k360):not(.k180) .fz-kr, html.dark .fz-mk:not(.k360):not(.k180) .fz-kr { display: none; }
.fz-mk.k360 .fz-kr, html.dark .fz-mk.k360 .fz-kr { border: 2px dashed currentColor; }
.fz-mk.k180 .fz-kr, html.dark .fz-mk.k180 .fz-kr { border-top-color: currentColor; border-right-color: currentColor; }
.fz-mk.live .fz-kr, html.dark .fz-mk.live .fz-kr { color: var(--fz-red); }
.fz-mk.on .fz-kr, html.dark .fz-mk.on .fz-kr { color: var(--fz-acc); }
.fz.light .fz-mk:not(.live):not(.on) .fz-kr, html.dark .fz.light .fz-mk:not(.live):not(.on) .fz-kr { color: #0d1520; }
.fz-cluster { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; border: 3px solid rgba(0, 0, 0, .25); font-weight: 800; }
.fz-cluster > .fz-dot { position: absolute; right: -2px; bottom: -2px; border: 2px solid #fff; }
.fz-inc { width: 26px; height: 26px; transform: translate(-50%, -50%) rotate(45deg); background: #556; border: 2px solid #fff; display: grid; place-items: center; }
.fz-inc b { transform: rotate(-45deg); font-size: 10px; color: #fff; }
.fz-inc.p0 { background: #d00; } .fz-inc.p1 { background: var(--fz-orange); } .fz-inc.p2 { background: #c8a400; }
/* side toolbar */
.fz-side { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 4px; background: var(--fz-p); border: 1px solid var(--fz-line); border-radius: 6px; padding: 4px; z-index: 15; }
.fz-ib { background: none; border: 0; color: var(--fz-dim); padding: 5px; border-radius: 4px; cursor: pointer; display: grid; place-items: center; }
.fz-ib:hover { color: var(--fz-t); background: var(--fz-p2); }
.fz-ib.on { color: var(--fz-acc); background: var(--fz-p2); }
.fz-menu { position: absolute; z-index: 40; background: var(--fz-p); border: 1px solid var(--fz-line); border-radius: 6px; padding: 4px 0; min-width: 200px; box-shadow: 0 8px 22px rgba(0, 0, 0, .45); }
.fz-shapemenu { position: absolute; z-index: 30; background: var(--fz-p); border: 1px solid var(--fz-acc); border-radius: 6px; padding: 4px 0; min-width: 190px; box-shadow: 0 8px 22px rgba(0, 0, 0, .45); }
/* camera info */
.fz-info { position: absolute; width: 280px; background: var(--fz-p); border: 1px solid var(--fz-line); border-radius: 6px; padding: 10px; box-shadow: 0 8px 22px rgba(0, 0, 0, .45); z-index: 16; }
.fz-ih { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.fz-ih b { flex: 1; }
.fz-irows { display: grid; gap: 3px; margin-bottom: 8px; }
.fz-ir { display: grid; grid-template-columns: 96px 1fr; font-size: 12px; }
.fz-ir span:first-child { color: var(--fz-dim); }
.fz-ial { margin: 6px 0; font-size: 12px; }
.fz-ial div { border-left: 3px solid var(--fz-acc); padding-left: 6px; margin: 2px 0; }
.fz-ial .hi { border-color: var(--fz-orange); }
.fz-iact { display: flex; gap: 6px; margin-top: 6px; }
.fz-iact .fz-btn { flex: 1; }
.fz-btn { background: var(--fz-p2); border: 1px solid var(--fz-line); color: var(--fz-t); border-radius: 4px; padding: 5px 10px; font-weight: 600; cursor: pointer; }
.fz-btn:hover:not(:disabled) { border-color: #4a5c74; }
.fz-btn:disabled { opacity: .45; cursor: default; }
.fz-btn.fz-primary { background: var(--fz-acc); border-color: var(--fz-acc); color: #111; }
/* the dock */
.fz-dock { width: 380px; flex: none; background: var(--fz-p); border-left: 1px solid var(--fz-line); display: flex; flex-direction: column; }
.fz-dh { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--fz-line); }
.fz-dl { flex: 1; overflow: auto; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.fz-empty { padding: 18px 14px; color: var(--fz-dim); }
.fz-dt { background: #000; border: 1px solid var(--fz-line); border-radius: 5px; overflow: hidden; flex: none; }
.fz-dt.flash { border-color: var(--fz-acc); }
.fz-dt.float { position: absolute; width: 400px; z-index: 18; resize: both; min-width: 260px; min-height: 180px; display: flex; flex-direction: column; box-shadow: 0 12px 30px rgba(0, 0, 0, .55); }
.fz-dt.float.top { z-index: 19; }
.fz-dt.float .fz-dtp { flex: 1; height: auto; }
.fz-dt.float .fz-dth { cursor: move; }
.fz-dth { display: flex; align-items: center; gap: 6px; padding: 4px 6px; background: #111821; color: #e3e9f0; user-select: none; }
.fz-dtn { flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz-dtt { display: flex; gap: 1px; }
.fz-dtt .fz-ib { color: #9aa7b6; padding: 3px; }
.fz-dtt .fz-i { width: 16px; height: 16px; }
.fz-dtp { position: relative; height: 205px; }
.fz-dtc { width: 100%; height: 100%; display: block; }
.fz-live { position: absolute; right: 8px; top: 8px; background: var(--fz-red); color: #fff; font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 3px; }
.fz-ended { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 8px; background: rgba(0, 0, 0, .7); color: #c9d2dd; font-size: 11px; }
.fz-dtf { padding: 4px 8px; font-size: 11px; color: #9aa7b6; background: #0b1016; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the alert window */
.fz-alertwin { position: absolute; width: 260px; background: var(--fz-orange); color: #1a0d00; border-radius: 6px; box-shadow: 0 10px 26px rgba(0, 0, 0, .5); z-index: 22; overflow: hidden; }
.fz-awh { display: flex; align-items: center; gap: 6px; padding: 7px 8px; font-weight: 800; }
.fz-awh b { flex: 1; }
.fz-awh .fz-ib { color: #1a0d00; }
.fz-awb { padding: 0 10px 6px; font-weight: 600; }
.fz-awa { display: flex; align-items: center; gap: 6px; padding: 6px 8px; background: rgba(0, 0, 0, .12); }
.fz-awa .fz-ib { color: #1a0d00; background: rgba(255, 255, 255, .35); }
.fz-awa .fz-btn { margin-left: auto; }
/* grids */
.fz-gridsview { display: flex; flex-direction: column; }
.fz-gbar { flex: none; display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--fz-line); background: var(--fz-p); flex-wrap: wrap; }
.fz-gname { margin: 0 8px; }
.fz-ggrid { flex: 1; display: grid; gap: 4px; padding: 4px; min-height: 0; background: #000; }
.fz-ggrid.op { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); }
.fz-ggrid.op .fz-gt.big { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.fz-gt { position: relative; background: #000; border: 1px solid #1d2a39; min-height: 0; overflow: hidden; }
.fz-gcap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; padding: 4px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); color: #e3e9f0; font-size: 12px; font-weight: 600; }
.fz-gcap .fz-live { position: static; }
.fz-card { background: var(--fz-p); border: 1px solid var(--fz-line); border-radius: 6px; padding: 10px 12px; margin-bottom: 12px; }
.fz-ch { font-weight: 700; margin-bottom: 8px; }
.fz-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.fz-cards .fz-card { margin: 0; }
.fz-grow-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--fz-line); }
.fz-grow-row .fz-mx { flex: 1; }
.fz-link { background: none; border: 0; color: var(--fz-blue); font-weight: 600; cursor: pointer; padding: 0; }
.fz-link:hover { text-decoration: underline; }
.fz-stat { display: flex; gap: 8px; }
.fz-statn { flex: 1; background: var(--fz-p2); border: 1px solid var(--fz-line); border-radius: 6px; padding: 10px; color: var(--fz-t); cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.fz-statn b { font-size: 24px; }
.fz-statn.live b { color: var(--fz-red); } .fz-statn.online b { color: var(--fz-green); } .fz-statn.inactive b { color: var(--fz-grey); }
.fz-modal { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); display: grid; place-items: center; z-index: 60; }
.fz-modal .fz-card { width: 420px; max-height: 80%; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.fz-picks { max-height: 260px; overflow: auto; border: 1px solid var(--fz-line); border-radius: 4px; padding: 4px 0; }
/* tables (Cameras, fususALERT, Audit) */
.fz-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.fz-chip { background: transparent; border: 1px solid var(--fz-line); border-radius: 12px; padding: 3px 10px; color: var(--fz-dim); font-size: 12px; cursor: pointer; }
.fz-chip.on { border-color: var(--fz-acc); color: var(--fz-acc); }
.fz-table { width: 100%; border-collapse: collapse; }
.fz-table th { text-align: left; color: var(--fz-dim); font-weight: 600; border-bottom: 1px solid var(--fz-line); padding: 6px 8px; position: sticky; top: 0; background: var(--fz-bg); }
.fz-table td { padding: 6px 8px; border-bottom: 1px solid var(--fz-line); }
.fz-table tr.hi td:first-child { box-shadow: inset 3px 0 0 var(--fz-orange); }
.fz-table tr.dim td { color: var(--fz-dim); }
.fz-acts { display: flex; gap: 5px; justify-content: flex-end; }
.fz-acts .fz-btn { padding: 2px 8px; font-size: 12px; }
/* The camera player inside the Fusus window (camwin.js, opts.fusus): Fusus's look over cam2. */
.fz-expand { background: #000; }
.cam2.fzp { background: #0b0f14; color: #e3e9f0; font: 13px/1.35 "Segoe UI", Roboto, Arial, sans-serif; position: relative; }
.cam2.fzp .cam-bar { background: #171e27; border-bottom: 1px solid #2b3747; padding: 6px 10px; gap: 10px; }
.cam2.fzp .cam-pick { background: #0f141b; color: #e3e9f0; border: 1px solid #2b3747; border-radius: 4px; height: 28px; padding: 0 6px; }
.cam2.fzp .cam-where { color: #8e9bab; }
.cam2.fzp .cam-tab { background: transparent; border: 1px solid #2b3747; color: #8e9bab; border-radius: 4px; padding: 4px 12px; font-weight: 600; }
.cam2.fzp .cam-tabs { gap: 4px; }
.cam2.fzp .cam-tab.on { background: #ffd400; border-color: #ffd400; color: #111; }
.fzp-back { background: #1f2833; border: 1px solid #2b3747; color: #e3e9f0; border-radius: 4px; padding: 4px 10px; font-weight: 700; cursor: pointer; }
.fzp-back:hover { border-color: #ffd400; }
.cam2.fzp .cam2-body { grid-template-columns: 1fr 320px; }
.cam2.fzp .cam2-side { background: #171e27; border-left: 1px solid #2b3747; color: #e3e9f0; }
.cam2.fzp .cam2-h { background: #1f2833; border-bottom: 1px solid #2b3747; color: #8e9bab; text-transform: uppercase; letter-spacing: .4px; font-size: 11px; }
.cam2.fzp .cam2-row, .cam2.fzp .cam2-ev { border-bottom: 1px solid #222c38; }
.cam2.fzp .cam2-row:hover, .cam2.fzp .cam2-ev:hover { background: #1f2833; }
.cam2.fzp .cam2-row.on { background: #2a3442; box-shadow: inset 3px 0 0 #ffd400; }
.cam2.fzp .cam2-row .cam2-mute, .cam2.fzp .cam2-ev .cam2-mute { color: #8e9bab; }
.cam2.fzp .cam2-sw { border-color: #8e9bab; }
.cam2.fzp .cam2-run { background: #1f2833; border: 1px solid #2b3747; color: #e3e9f0; border-radius: 4px; padding: 2px 9px; }
.cam2.fzp .cam2-run:hover { border-color: #ffd400; color: #ffd400; }
.cam2.fzp .cam2-empty { color: #8e9bab; }
.cam2.fzp .cam2-recs { border-bottom: 2px solid #2b3747; }
.cam2.fzp .cam2-ev.ev-hit { color: #ff8a80; }
.cam2.fzp .cam2-ev.ev-fatal { background: #7a1010; color: #fff; }
.cam2.fzp .cam2-note { background: #171e27; color: #e3e9f0; border: 1px solid #2b3747; }
.cam2.fzp .cam2-foot { background: #111821; border-top: 1px solid #2b3747; display: flex; flex-wrap: wrap; align-items: center; }
.cam2.fzp .cam2-timeline { background: transparent; flex: 1 1 100%; padding: 6px 10px; gap: 6px; }
.cam2.fzp .cam2-timeline .btn, .fzp-ib { background: #1f2833; border: 1px solid #2b3747; color: #e3e9f0; border-radius: 4px; padding: 3px 9px; cursor: pointer; font-size: 13px; }
.cam2.fzp .cam2-timeline .btn:hover, .fzp-ib:hover { border-color: #ffd400; color: #ffd400; }
.cam2.fzp .cam2-slider { accent-color: #ffd400; }
.cam2.fzp .cam2-speed { background: #0f141b; color: #e3e9f0; border: 1px solid #2b3747; border-radius: 4px; }
.cam2.fzp .cam2-clock { color: #e3e9f0; }
.cam2.fzp .cam-status { background: transparent; flex: 1; padding: 6px 10px; }
.fzp-tools { display: flex; align-items: center; gap: 6px; padding: 6px 10px; }
.fzp-cal { background: #0f141b; color: #e3e9f0; border: 1px solid #2b3747; border-radius: 4px; padding: 3px 6px; color-scheme: dark; }
.fzp-modal { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); display: grid; place-items: center; z-index: 30; }
.fzp-card { width: 340px; background: #171e27; border: 1px solid #2b3747; border-radius: 6px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.fzp-card label { color: #8e9bab; font-size: 12px; }
.fzp-in { background: #0f141b; color: #e3e9f0; border: 1px solid #2b3747; border-radius: 4px; padding: 5px 8px; color-scheme: dark; }
.fzp-msg { color: #8e9bab; font-size: 12px; }
.fzp-acts { display: flex; gap: 6px; margin-top: 6px; }
.fzp-btn { flex: 1; background: #1f2833; border: 1px solid #2b3747; color: #e3e9f0; border-radius: 4px; padding: 6px 10px; font-weight: 600; cursor: pointer; }
.fzp-btn.primary { background: #ffd400; border-color: #ffd400; color: #111; }
.fzp-btn:disabled { opacity: .5; }
/* Window overlays (client.js openOverlay): the incident over the work area, shaded blue (#d8dcf4, fig p.89, p.229). */
.p1.overlaid #pwa, .p1.overlaid #waa { background: #d8dcf4; }
/* Dark: a dark blue shade - the light one left the dark theme's light text unreadable. */
html.dark .p1.overlaid #pwa, html.dark .p1.overlaid #waa { background: #17263a; }
/* (The overlay's navigation is on the main tab bar: .ovnav.) */
/* The PTT status monitor (pttmon.js): an emergency red and bold, a console transmission dimmer. */
.mon tr.ptt-emg td { color: #e00000; font-weight: 700; }
.mon tr.ptt-disp td { color: #555; }
.mon tr.ptt-play td { background: #fff3b0; }
/* The Incident Update Tool (itform.js). */
.it-bar { display: flex; gap: 4px; padding: 4px 0 6px; }
.it-sheet { border: 1px solid #c8c8c8; background: #fff; max-height: 170px; overflow: auto; margin-bottom: 6px; }
.it-sheet tr.err td { color: #b00000; }
.it-setup .fl { min-width: 80px; }
/* The Supervisor status monitor (supmon.js). */
.sup-h { padding: 6px 8px 3px; font-weight: 700; font-size: 12px; }
.mon tr.sup-over td { color: #c00000; font-weight: 700; }
.mon tr.sup-tot td { border-top: 2px solid #888; font-weight: 700; }
/* Manage Contractors (contractor.js). */
.dlg.cr-manage { width: 760px; max-width: 95vw; }
.cr-manage .cr-mlist { max-height: 220px; overflow: auto; border: 1px solid #c8c8c8; background: #fff; margin: 6px 0; }
.cr-manage .fl { min-width: 90px; }
.mon tr.ptt-live td { background: #e6f6e6; font-weight: 700; }
/* Fusus: tips, chat, telestrate, playback sync (camfusus.js). */
.fz-tip { position: absolute; transform: translate(-50%, -100%); color: #ff9f0a; cursor: pointer; pointer-events: auto; filter: drop-shadow(0 1px 2px #000); }
.fz-tip svg { width: 22px; height: 22px; }
.fz-pad6 { padding: 4px 10px 6px; }
.fz-chat { width: 360px; }
.fz-chatlog { max-height: 260px; overflow: auto; padding: 4px 10px; }
.fz-cm { padding: 4px 0; border-bottom: 1px solid var(--fz-line); font-size: 12px; }
.fz-chatin { display: flex; gap: 6px; padding: 8px 10px; }
.fz-chatin .fz-search { flex: 1; min-width: 0; }
.fz-chatin .fz-narrow { flex: 0 0 110px; }
.fz-telelayer { cursor: crosshair; z-index: 21; }
.fz-telebar { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 22; display: flex; gap: 6px; align-items: center;
  background: var(--fz-p); border: 1px solid var(--fz-line); border-radius: 6px; padding: 6px 10px; }
.fz-sw { width: 20px; height: 20px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.fz-sw.on { border-color: #fff; box-shadow: 0 0 0 1px #000; }
.fz-syncbar { display: flex; gap: 8px; align-items: center; padding: 6px 10px; border-bottom: 1px solid var(--fz-line); flex-wrap: wrap; }
.fz-syncslider { flex: 1; min-width: 160px; accent-color: var(--fz-acc); }
.fz-syncclock { font-variant-numeric: tabular-nums; min-width: 64px; }
.fzp-chk { display: flex; gap: 6px; align-items: center; }

/* Sign in with the ATXRP account (Authentik). */
.sso-btn { display: inline-block; text-decoration: none; text-align: center; }
.sso-btn.hidden, .sso-btn[hidden] { display: none; }

/* Ctrl+F on the Haz, Prev and Query tabs (client.js waaFind; guide 2.2.5.2, figs 28-29). */
.waa-find { display: flex; gap: 4px; padding: 4px 6px; background: var(--chrome); border-bottom: 1px solid #c9cdd6; }
.waa-find .fi { flex: 1 1 auto; min-width: 0; }
html.dark .waa-find { background: #26292e; border-color: #3a3e45; }

/* The BOLO notification (queries.js boloNote; guide 7.4, fig 78): a small window, lower right of the client. */
.bolo-note { position: fixed; right: 8px; bottom: 8px; z-index: 79000; width: 260px; background: #fff; border: 1px solid #3a7fb8; box-shadow: 2px 2px 8px rgba(0,0,0,.35); }
.p1 > .bolo-note { position: absolute; right: 4px; bottom: 4px; }
.bn-t { display: flex; align-items: center; gap: 6px; height: 22px; padding: 0 0 0 6px; background: var(--chrome); border-bottom: 1px solid #c9cdd6; font-weight: 700; }
.bn-t .bn-tt { flex: 1; }
.bn-env { font-size: 14px; color: #2a5ca8; }
.bn-dd, .bn-x { width: 22px; height: 21px; border: 0; border-left: 1px solid #c9cdd6; background: transparent; cursor: default; padding: 0; }
.bn-x:hover { background: #e81123; color: #fff; }
.bn-b { padding: 4px 8px 6px; font-size: 11px; display: flex; flex-direction: column; gap: 1px; }
.bn-txt { color: #333; overflow-wrap: anywhere; margin-top: 2px; }
html.dark .bolo-note { background: #23262b; } html.dark .bn-t { background: #2a2d32; border-color: #3a3e45; }
/* The Query Header (queries.js renderResponse; guide 18.6): Summary, Request, Less / More. */
.qr-head { border: 1px solid #c9cdd6; background: #f4f6fa; padding: 4px 8px; margin-bottom: 6px; display: flex; flex-direction: column; gap: 2px; }
.qr-hrow { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.qr-hrow .qr-hv { flex: 0 1 auto; overflow-wrap: anywhere; }
.qr-hrow .qr-more { margin-left: auto; min-height: 18px; padding: 0 8px; font-size: 11px; }
html.dark .qr-head { background: #23262b; border-color: #3a3e45; }

/* The county's status monitors (C-19 / C-20, 2026-10-17; monitors.js DEFS, pttmon.js), each with its
   dark counterpart. The Sector Monitor's third group level (Area, then Sector), a little indented
   and tinted; an empty monitor's note (what it shows, and why ATXRP has none yet). */
.mon tr.grp.l2 td { padding-left: 36px; background: #f4f6f9; color: #222; }
html.dark .mon tr.grp.l2 td { padding-left: 36px; background: #24272c; color: #d6d9de; }
.mon-wrap { min-height: 100%; }
html.dark .mon-wrap { background: #1b1d20; }
.mon-none { padding: 14px 16px; color: #666; font: 400 12px "Segoe UI", Arial, sans-serif; line-height: 1.45; max-width: 640px; }
html.dark .mon-none { color: #9aa0a8; }
html.mon-large .mon-none { font-size: 14px; }
html.dark.mon-large .mon-none { font-size: 14px; }
/* A status monitor drawn by pttmon.js / supmon.js / ifacemon.js: its title row as the tables have it. */
.win > .mon-head .mh-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.dark .win > .mon-head .mh-t { color: #e4e6e9; }
/* Radio Talk Groups: a keyed talkgroup green and bold (as PTT's live rows), an emergency red. */
.mon-body.tg .mon tr.ptt-live td { background: #e6f6e6; color: #0a5a0a; font-weight: 700; }
html.dark .mon-body.tg .mon tr.ptt-live td { background: #1f3a22; color: #8fe39a; font-weight: 700; }
.mon-body.tg .mon tr.ptt-emg td, .mon-body.tg .mon tr.ptt-live.ptt-emg td { color: #e00000; font-weight: 700; }
html.dark .mon-body.tg .mon tr.ptt-emg td, html.dark .mon-body.tg .mon tr.ptt-live.ptt-emg td { color: #ff6b6b; font-weight: 700; }
/* PTT, Supervisor: the rows that had no dark colour (a light green or yellow band under light text). */
html.dark .mon tr.ptt-live td { background: #1f3a22; color: #8fe39a; font-weight: 700; }
html.dark .mon tr.ptt-emg td { color: #ff6b6b; font-weight: 700; }
html.dark .mon tr.ptt-play td { background: #4a4318; color: #f0f2f4; }
html.dark .mon tr.sup-over td { color: #ff6b6b; font-weight: 700; }
html.dark .mon tr.sup-tot td { border-top: 2px solid #6c7179; font-weight: 700; }
html.dark .sup-h { color: #e4e6e9; }
/* 13 PD Active Incidents: the title row's "Monitored area only" check box (monitors.js monHead),
   in the Alerts(n) box's face, after the title. */
.mon-head .mh-ma { display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 4px; white-space: nowrap;
  font: 400 11px "Segoe UI", Arial, sans-serif; color: #000; cursor: default; }
.mon-head .mh-ma input { width: 13px; height: 13px; margin: 0; accent-color: #1f5fd0; }
html.dark .mon-head .mh-ma { display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 4px; white-space: nowrap;
  font: 400 11px "Segoe UI", Arial, sans-serif; color: #e4e6e9; cursor: default; }
html.dark .mon-head .mh-ma input { width: 13px; height: 13px; margin: 0; accent-color: #7aa7ff; color-scheme: dark; }
html.mon-large .mon-head .mh-ma { font-size: 13px; }
html.dark.mon-large .mon-head .mh-ma { font-size: 13px; }

/* Hotfix 2026-10-17: the CAD has only the real window's title bar - the in-page one drew a second,
   white bar under it. Exit stays on the Console menu. And the status message area and menu bar
   follow dark mode like the rest of the client. */
.p1-titlebar { display: none !important; }
html.dark .p1-status, html.dark .p1-cmd { background: #16181b; border-color: #4a4f57; color: #f0f2f4; }
html.dark #status-msg { color: #f0f2f4; }
html.dark .p1-menubar .mb { color: #e4e6e9; }
html.dark .mb:hover { background: #33404f; border-color: #3f5670; }

/* Hotfix 2026-10-17: text the light theme sets dark that had no dark-mode colour, so it came out
   black on dark grey (the Priority Notification's incident line, the stack offer's title bar, the
   monitor toolbar button...). Coloured rows and status chips keep black text on their colour. */
html.dark .notify-b .strong, html.dark .waa-sh .tri, html.dark .bn-txt { color: #f0f2f4; }
html.dark .pn-units, html.dark .emg-b .emg-by, html.dark .assigned td > div + div, html.dark .grid.assoc td.ex,
html.dark .mon tr.ptt-disp td, html.dark .login-tree { color: #b8bdc6; }
html.dark .grid .k, html.dark .caps-h .pref, html.dark .sb-grid tr.sb-add td, html.dark .cr-rot td.cr-plus, html.dark .bn-env { color: #8cc0f0; }
html.dark #stack-offer .notify-t { background: linear-gradient(#34383f, #2a2d32); color: #e4e6e9; border-top-color: #15171a; }
html.dark .mon-head .mh-tb { color: #e4e6e9; border-left-color: #3a3e45; }
html.dark .mon-head .mh-tb.on, html.dark .mon-head .mh-tb:hover { background: #3a4250; }
html.dark .wa-ov { background: #3a3f63; color: #e4e6e9; }
html.dark .ov-x { background: linear-gradient(#4a4f57, #33373d); border-color: #5a5f68; color: #e4e6e9; }

/* Hotfix 2026-10-17: the PWA / WAA divide is fixed where the real client has it (fig p.80: the WAA
   353 px): no dragging, and a width saved by the old splitter is ignored. The Info Panel's letter
   column follows dark mode. */
.p1-grid { grid-template-columns: 200px minmax(0, 1fr) 6px 353px !important; }
.p1-split { cursor: default !important; pointer-events: none; }
html.dark .info-l { background: #202327; border-right-color: #3a3e45; }
html.dark .info-dock-blank { background: #1b1d20; border-top-color: #3a3e45; }

/* CAD fidelity pass 2026-10-17 (forms, units): the new pieces, each with its dark counterpart. */
/* Info Panel: "ANI/ALI: Available" in red while a call is answered (Call Control p.110). */
.info-kv .ani-on { color: #d00000; font-weight: 700; }
html.dark .info-kv .ani-on { color: #ff6b6b; }
/* The blue mark by the caller's Middle field: caller data from ANI/ALI. */
.ani-mark { color: #1f5fd0; font-size: 12px; margin-left: 6px; flex: none; }
html.dark .ani-mark { color: #7aa7ff; }
/* Details to follow: the red flag on the work area tab (Table 3). */
.wa-ind.dtf { color: #d00000; font: 700 13px/13px Arial; text-align: center; }
html.dark .wa-ind.dtf { color: #ff6b6b; }
/* The verification level box (fig. 107/116). */
.iif .lvl.premise, .iif .lvl.centerline { padding: 1px 6px; border: 1px solid; color: #000; }
.iif .lvl.premise { background: #d5ecc9; border-color: #5f9c45; }
.iif .lvl.centerline { background: #fff1c2; border-color: #c9a227; }
html.dark .iif .lvl.premise { background: #24401b; border-color: #5f9c45; color: #e4e6e9; }
html.dark .iif .lvl.centerline { background: #4a3d12; border-color: #c9a227; color: #e4e6e9; }
.iif .jur-b { margin-right: 4px; }
/* Matching Addresses: yellow (fig. 54). Potential Duplicates: green (fig. 57). */
.grid.match td { background: #fff8c6; }
html.dark .grid.match td { background: #3a3618; color: #e4e6e9; }
.grid.match tr.sel td { background: #3399ff; color: #fff; }
html.dark .grid.match tr.sel td { background: #2d5f9a; color: #fff; }
.waa-sec.green .waa-sh { background: #cfe9c2; border-color: #8cbf75; }
.waa-sec.green .waa-sb td { background: #eef8ea; }
.waa-sec.green .waa-sb tr.sel td { background: #3399ff; color: #fff; }
html.dark .waa-sec.green .waa-sh { background: #2c4a22; border-color: #4f7a3f; color: #e4e6e9; }
html.dark .waa-sec.green .waa-sb td { background: #1c2b17; color: #e4e6e9; }
html.dark .waa-sec.green .waa-sb tr.sel td { background: #2d5f9a; color: #fff; }
/* An unread comment is bold until read (9.4.1.1). */
.grid.cmnt tr.unread td, .grid.cmnt tr.cm-t.unread td { font-weight: 700; }
.grid.cmnt td.ex, .grid.ir-res td.ex, .grid.match td.ex { cursor: pointer; }
/* The unit's Status form over Units Assigned (View Unit): shaded blue, as an overlay. */
.form.ov-shade { background: #d8dcf4; }
html.dark .form.ov-shade { background: #262c45; }
.unit-ov-bar { display: flex; align-items: center; gap: 6px; padding: 2px 4px; background: #c6cbec; border-bottom: 1px solid #9aa2d6; font-weight: 700; }
html.dark .unit-ov-bar { background: #33395c; border-bottom-color: #4a5288; color: #e4e6e9; }
/* Unit Management: the duty clock, the WAA's boxed groups, the capability grid. */
.duty-clock { margin-left: 8px; color: #8a8a8a; font-weight: 700; }
.duty-clock.on { color: #1f8c1f; }
html.dark .duty-clock { color: #9aa0a8; }
html.dark .duty-clock.on { color: #5fd35f; }
.waa-h { font-weight: 700; padding: 4px 6px; }
html.dark .waa-h { color: #e4e6e9; }
.fg.dutyg { margin: 4px 6px; }
.grid.wcap { width: auto; min-width: 220px; margin: 2px 0 4px; }
/* The Preempt Unit dialog's list (fig. 221). */
.preempt .grid { margin-top: 6px; }

/* Incident monitors pass 2026-10-17 (the county's Active Incidents): dark counterparts. The row
   stays a grey band, darker, with each priority's colour lightened to read on it. */
html.dark .mon .row-act td.uc-ds { background: #4a4a4a; color: #ff9a9a; }
html.dark .mon .row-act td.uc-en { color: #8fb0ff; }
html.dark .mon .row-act td.uc-os { background: #2c5a5a; color: #7dff7d; }
html.dark .mon .row-act td.uc-tx { color: inherit; }
html.dark .mon .row-act td.uc-late { background: #c00000; color: #fff; }
html.dark .mon .urow-iq td { background: #2a2c30; color: #8a8f96; }
html.dark .mon tr.row-act.sel td { outline-color: #fff; }
html.dark .mon-head .mh-tri { color: #e4e6e9; }

/* ---------------------------------------------------------------------------------------------
   Community cameras in the Fusus window (camfusus.js; server/camfootage.mjs): business (blue) and
   private (violet) cameras as pins - a Registered one hollow, an Integrated one solid, green and
   pulsing while it may be watched live (an open incident near), a tick while footage is granted.
   The Fusus window has its own theme (Change Style, .fz.light), so each rule is given for
   html.dark as well and reads the window's own colours.
   --------------------------------------------------------------------------------------------- */
.fz-cm, html.dark .fz-cm { position: absolute; width: 26px; height: 30px; transform: translate(-50%, -100%); pointer-events: auto; cursor: pointer; color: #3d8bff;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .85)); }
.fz-cm > .fz-i, html.dark .fz-cm > .fz-i { width: 26px; height: 30px; }
.fz-cm.prv, html.dark .fz-cm.prv { color: #b98cff; }
.fz-cm.reg > .fz-i path, html.dark .fz-cm.reg > .fz-i path { fill: rgba(10, 14, 19, .35); }
.fz.light .fz-cm.reg > .fz-i path, html.dark .fz.light .fz-cm.reg > .fz-i path { fill: rgba(255, 255, 255, .55); }
.fz-cm.livecap, html.dark .fz-cm.livecap { color: var(--fz-green); }
.fz-cm.livecap::after, html.dark .fz-cm.livecap::after { content: ""; position: absolute; left: 50%; top: 10px; width: 28px; height: 28px; border-radius: 50%;
  transform: translate(-50%, -50%); border: 2px solid var(--fz-green); animation: fz-cmpulse 1.4s ease-out infinite; pointer-events: none; }
@keyframes fz-cmpulse { 0% { opacity: .9; transform: translate(-50%, -50%) scale(.6); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); } }
.fz-cm.on, html.dark .fz-cm.on { color: var(--fz-acc); }
.fz-cm.docked > .fz-i, html.dark .fz-cm.docked > .fz-i { opacity: .8; }
.fz-cm > .fz-ml, html.dark .fz-cm > .fz-ml { top: 32px; }
.fz-cm > .fz-cmg, html.dark .fz-cm > .fz-cmg { display: none; }
.fz-cm.granted > .fz-cmg, html.dark .fz-cm.granted > .fz-cmg { display: block; position: absolute; right: -5px; top: -3px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--fz-green); border: 2px solid var(--fz-bg); }
.fz-dot.comm, html.dark .fz-dot.comm { background: #3d8bff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.fz-cmi, html.dark .fz-cmi { color: #3d8bff; }
.fz-cmi.prv, html.dark .fz-cmi.prv { color: #b98cff; }
/* The info panel's access line: why it is (not) live; green while live, blue while footage is granted. */
.fz-access, html.dark .fz-access { font-size: 12px; padding: 5px 7px; border-radius: 4px; background: var(--fz-p2); color: var(--fz-dim); border-left: 3px solid var(--fz-grey); margin: 4px 0; }
.fz-access.live, html.dark .fz-access.live { color: var(--fz-t); border-left-color: var(--fz-green); }
.fz-access.grant, html.dark .fz-access.grant { color: var(--fz-t); border-left-color: var(--fz-blue); }
/* The Requests nav item's count of pending requests. */
.fz-nv, html.dark .fz-nv { position: relative; }
.fz-nb, html.dark .fz-nb { position: absolute; top: 4px; right: 12px; background: var(--fz-orange); color: #111; border-radius: 8px; font-size: 10px; font-weight: 800; padding: 0 5px; }
.fz-nb:empty, html.dark .fz-nb:empty { display: none; }
/* Request footage */
.fz-modal .fz-reqcard, html.dark .fz-modal .fz-reqcard { width: 460px; }
.fz-modal .fz-reqcard > *, html.dark .fz-modal .fz-reqcard > * { flex: none; }
.fz-reqwho, html.dark .fz-reqwho { font-size: 12px; color: var(--fz-dim); margin-bottom: 4px; }
.fz-ta, html.dark .fz-ta { width: 100%; box-sizing: border-box; resize: vertical; font: inherit; }
.fz-reqcard .fz-search, html.dark .fz-reqcard .fz-search { box-sizing: border-box; width: 100%; color-scheme: dark; }
.fz.light .fz-reqcard .fz-search, html.dark .fz.light .fz-reqcard .fz-search { color-scheme: light; }
.fz-row, html.dark .fz-row { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0; }
.fz-err, html.dark .fz-err { color: var(--fz-red); font-size: 12px; min-height: 16px; }
/* Footage requests: each one's status. */
.fz-st, html.dark .fz-st { display: inline-block; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 3px; background: var(--fz-p3); color: var(--fz-t); }
.fz-st.pending, html.dark .fz-st.pending { background: var(--fz-orange); color: #111; }
.fz-st.accepted, html.dark .fz-st.accepted { background: var(--fz-green); color: #08240f; }
.fz-st.declined, html.dark .fz-st.declined { background: var(--fz-red); color: #fff; }
.fz-st.expired, html.dark .fz-st.expired, .fz-st.cancelled, html.dark .fz-st.cancelled { background: var(--fz-grey); color: #111; }
.fz-table td.fz-detail, html.dark .fz-table td.fz-detail { color: var(--fz-dim); font-size: 12px; max-width: 360px; }
/* The camera player's Live tab, when the camera is not shared live (camwin.js). */
.cam-tab:disabled, html.dark .cam-tab:disabled { opacity: .4; cursor: default; }

/* RF simulation, a testing feature (rf.js; OneAdmin Feature Flags > Testing Features): the unit
   monitors' SIGNAL column, and a unit that cannot be heard greyed and struck through. */
.mon td.rf-sig { font-family: Consolas, "Courier New", monospace; letter-spacing: 0; white-space: nowrap; }
.mon td.rf-good { color: #1d6b33; }
.mon td.rf-fringe { color: #9a6400; }
.mon td.rf-out, .mon td.rf-notx { color: #b00020; font-weight: 700; }
.mon tr.urow-rfout td { background: #e6e6e6; color: #8a8a8a; }
.mon tr.urow-rfout td:first-of-type + td { text-decoration: line-through; }
.ug-t tr.urow-rfout td { background: #e6e6e6; color: #8a8a8a; }
html.dark .mon td.rf-good { color: #8fe0a3; }
html.dark .mon td.rf-fringe { color: #f0c46a; }
html.dark .mon td.rf-out, html.dark .mon td.rf-notx { color: #ff8a8a; }
html.dark .mon tr.urow-rfout td { background: #26282c; color: #6c7179; }
html.dark .ug-t tr.urow-rfout td { background: #26282c; color: #6c7179; }

/* Fusus: gunshot detection (camfusus.js showGunshotWin; server/gunshots.mjs). The orange alert window's
   gunshot variant, its pin and error circle, and the coverage areas - which only dispatchers see. */
.fz-alertwin.gs, html.dark .fz-alertwin.gs { width: 310px; }
.fz-alertwin.gs.done, html.dark .fz-alertwin.gs.done { background: #c98a4a; }
.fz-gsrows, html.dark .fz-gsrows { display: grid; gap: 2px; padding: 0 10px 6px; font-size: 12px; }
.fz-gsr, html.dark .fz-gsr { display: grid; grid-template-columns: 76px 1fr; align-items: baseline; }
.fz-gsr > span:first-child, html.dark .fz-gsr > span:first-child { font-weight: 600; opacity: .72; }
.fz-gsr > span:last-child, html.dark .fz-gsr > span:last-child { font-weight: 700; }
.fz-gsr.unc > span:last-child, html.dark .fz-gsr.unc > span:last-child { font-style: italic; }
.fz-gsflags, html.dark .fz-gsflags { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 10px 6px; }
.fz-gsflag, html.dark .fz-gsflag { background: rgba(0, 0, 0, .18); border-radius: 3px; padding: 1px 6px; font-size: 11px; font-weight: 700; }
.fz-gsflag.off, html.dark .fz-gsflag.off { background: #a30000; color: #fff; }
.fz-gsflag.inc, html.dark .fz-gsflag.inc { background: #1a0d00; color: #ffb066; }
.fz-gsau, html.dark .fz-gsau { display: flex; align-items: center; gap: 6px; padding: 2px 8px 6px; }
.fz-gsau .fz-ib, html.dark .fz-gsau .fz-ib { color: #1a0d00; background: rgba(255, 255, 255, .4); }
.fz-gsau .fz-ib:hover, html.dark .fz-gsau .fz-ib:hover { color: #000; background: rgba(255, 255, 255, .6); }
.fz-gstl, html.dark .fz-gstl { flex: 1; min-width: 0; height: 26px; display: block; border-radius: 3px; }
.fz-gstm, html.dark .fz-gstm { font-size: 11px; font-weight: 700; min-width: 56px; text-align: right; white-space: nowrap; }
.fz-gslog, html.dark .fz-gslog { padding: 0 10px 6px; font-size: 11px; }
.fz-gslog > div, html.dark .fz-gslog > div { border-left: 2px solid rgba(0, 0, 0, .35); padding-left: 5px; margin-top: 2px; }
.fz-gsact, html.dark .fz-gsact { flex-wrap: wrap; }
.fz-gsact .fz-btn, html.dark .fz-gsact .fz-btn { margin-left: 0; padding: 4px 9px; background: rgba(255, 255, 255, .5); border-color: rgba(0, 0, 0, .25); color: #1a0d00; }
.fz-gsact .fz-btn.fz-gsci, html.dark .fz-gsact .fz-btn.fz-gsci { background: #1a0d00; border-color: #1a0d00; color: #fff; }
.fz-gsact .fz-btn:hover:not(:disabled), html.dark .fz-gsact .fz-btn:hover:not(:disabled) { border-color: #1a0d00; }
.fz-gs, html.dark .fz-gs { position: absolute; width: 24px; height: 24px; box-sizing: border-box; transform: translate(-50%, -50%); display: grid; place-items: center;
  border-radius: 50%; background: var(--fz-orange); border: 2px solid #fff; color: #fff; pointer-events: auto; cursor: pointer; z-index: 2; }
.fz-gs .fz-i, html.dark .fz-gs .fz-i { width: 15px; height: 15px; }
.fz-gs.on, html.dark .fz-gs.on { animation: fz-gspulse 1.4s ease-out infinite; }
.fz-gs.unc, html.dark .fz-gs.unc { border-style: dashed; }
.fz-gs.done, html.dark .fz-gs.done { background: #6b7280; animation: none; }
.fz-gs.sel, html.dark .fz-gs.sel { border-color: var(--fz-acc); }
@keyframes fz-gspulse { 0% { box-shadow: 0 0 0 0 rgba(255, 122, 0, .8); } 100% { box-shadow: 0 0 0 12px rgba(255, 122, 0, 0); } }
.fz-shapes circle.gserr, html.dark .fz-shapes circle.gserr { fill: rgba(255, 122, 0, .18); stroke: var(--fz-orange); stroke-width: 2; }
.fz-shapes circle.gserr.done, html.dark .fz-shapes circle.gserr.done { fill: rgba(140, 140, 140, .1); stroke: #8e8e93; }
.fz-shapes circle.gsarea, .fz-shapes polygon.gsarea, html.dark .fz-shapes circle.gsarea, html.dark .fz-shapes polygon.gsarea {
  fill: rgba(255, 122, 0, .06); stroke: var(--fz-orange); stroke-width: 1.5; stroke-dasharray: 8 5; }
.fz-shapes .gsarea.off, html.dark .fz-shapes .gsarea.off { fill: none; stroke: #8e8e93; }
.fz-shapes text.gsarea-l, html.dark .fz-shapes text.gsarea-l { fill: #ffb066; font: 700 11px "Segoe UI", Arial, sans-serif; text-anchor: middle;
  paint-order: stroke; stroke: rgba(0, 0, 0, .75); stroke-width: 3px; }
.fz.light .fz-shapes text.gsarea-l, html.dark .fz.light .fz-shapes text.gsarea-l { fill: #8a3d00; stroke: rgba(255, 255, 255, .85); }
.fz-gsmanb, html.dark .fz-gsmanb { margin: 2px 10px 6px 30px; font-size: 12px; }
.fz-modal .fz-gsman, html.dark .fz-modal .fz-gsman { width: 520px; }
.fz-gsal, html.dark .fz-gsal { display: flex; flex-direction: column; max-height: 50vh; overflow: auto; }
.fz-gsal .fz-grow-row .fz-link, html.dark .fz-gsal .fz-grow-row .fz-link { text-align: left; }
/* The drawn shapes stay on the map: a coverage area or error circle partly off it used to show over the dock. */
.fz-ovl > svg.fz-shapes, html.dark .fz-ovl > svg.fz-shapes { overflow: hidden; }

/* The MCC camera window in game (2026-10-18; fusus.html, fususmcc.js): the Fusus window over a
   status line, and the notice when it cannot sign in or its session has ended. Dark either way,
   as the Fusus window is. */
body.fzm .win.fill, html.dark body.fzm .win.fill { bottom: 22px; }
.fzm-status, html.dark .fzm-status { position: fixed; left: 0; right: 0; bottom: 0; height: 22px; display: flex; align-items: center; gap: 6px; padding: 0 8px;
  background: #0f141b; color: #c9d3de; border-top: 1px solid #2b3747; }
.fzm-notice, html.dark .fzm-notice { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgba(5, 8, 12, .78); }
.fzm-card, html.dark .fzm-card { max-width: 440px; margin: 16px; padding: 18px 22px; background: #171e27; color: #e3e9f0; border: 1px solid #2b3747; border-radius: 6px; font-size: 14px; }
.fzm-card b, html.dark .fzm-card b { display: block; font-size: 15px; margin-bottom: 6px; }
.fzm-card p, html.dark .fzm-card p { margin: 0; color: #9fb0c2; }
/* C-9 / R-8: a temporary unit's Temp marker and deferred off duty on the Unit Management form. */
.um-temp { margin-left: 8px; padding: 0 5px; border: 1px solid #b07800; background: #fff3c4; color: #6b4a00; font-size: 11px; font-weight: 700; }
html.dark .um-temp { border-color: #d0a030; background: #3a3010; color: #ffd36b; }
/* R-8: Envir TRAINING in the Info Panel while testing mode is on. */
.info-kv .v.training { color: #fff; background: #c00000; font-weight: 700; padding: 0 3px; }
html.dark .info-kv .v.training { color: #fff; background: #a01818; }
/* R-11: Help > About PremierOne CAD. */
.about { min-width: 360px; }
.about-head { text-align: center; padding: 4px 0 10px; border-bottom: 1px solid #c8c8c8; margin-bottom: 8px; }
.about-logo { display: block; max-height: 72px; max-width: 220px; margin: 0 auto 6px; }
.about-prod { font-size: 18px; font-weight: 700; color: #1a1a1a; }
.about-ver { font-size: 12px; color: #333; margin-top: 2px; }
.about-copy { font-size: 11px; color: #555; margin-top: 6px; }
.about-info { border-collapse: collapse; font-size: 12px; width: 100%; }
.about-info td { padding: 1px 6px; color: #1a1a1a; }
.about-info td.k { color: #555; width: 80px; }
html.dark .about-head { border-bottom-color: #444a52; }
html.dark .about-prod, html.dark .about-info td { color: #e6e8eb; }
html.dark .about-ver { color: #c3c7cd; }
html.dark .about-copy, html.dark .about-info td.k { color: #a9aeb6; }

/* --- TN form (tnform.js; guide ch. 19, figs 317-319) ------------------------------------------ */
.fr .fl.tn-l, .fr .fl.tn-l:not(:first-child) { width: 130px; margin-left: 0; white-space: normal; line-height: 1.15; }
.tn-or { color: #555; font-style: italic; }
.fg.tn-g { margin-bottom: 8px; }
/* The Unit Alerting List: fig 319's pale yellow panel, a unit and its devices indented under it. */
.tn-al { background: #ffffd8; border: 1px solid #c8c8a0; padding: 6px 8px; min-height: 100%; box-sizing: border-box; }
.tn-al-h { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.tn-al-h b { margin-right: auto; }
.tn-al-v { display: inline-flex; align-items: center; gap: 3px; }
.tn-al-g { margin-bottom: 6px; }
.tn-al-gh { font-weight: 700; margin-bottom: 2px; }
.tn-al-i { display: flex; align-items: center; gap: 4px; padding: 1px 0; }
.tn-al-i.sub { padding-left: 22px; }
.tn-al-i.off { color: #8a8a8a; }
html.dark .tn-or { color: #9aa0a8; }
html.dark .tn-al { background: #2b2a1c; border-color: #4a4830; color: #e6e8eb; }
html.dark .tn-al-i.off { color: #6c7179; }

/* CI - the Clone Incident form (guide 10.3.1, fig. 143): the original and Additional Comments side
   by side, then a band per kind of clone - the incident's line, the closing unit's, and its
   Include line; shaded fields follow from the others. Sized to the client's work area. */
.ci-head { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 10px; margin-bottom: 8px; }
.ci-cap { font-weight: 600; margin-bottom: 4px; }
.ci-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 6px; }
.ci-kv b { font-weight: 400; color: #444; white-space: nowrap; }
.ci-kv span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-closed { margin-top: 4px; color: #a00; font-weight: 600; }
.ci-cm .fa { width: 100%; box-sizing: border-box; height: 106px; }
.ci-rows { display: flex; flex-direction: column; gap: 4px; }
.ci-l1 { display: grid; grid-template-columns: 40px minmax(0, 1.3fr) 24px minmax(0, 1fr) 48px minmax(0, 1fr) 42px 22px; gap: 3px; align-items: center; }
.ci-hd span { font-size: 11px; color: #444; white-space: nowrap; overflow: hidden; }
.ci-band { border: 1px solid #d5d5d5; background: #f3f4f6; padding: 3px 4px; display: flex; flex-direction: column; gap: 3px; }
.ci-band.blank { opacity: .8; }
.ci-l1 .combo { display: flex; min-width: 0; }
.ci-l1 .combo-in { width: auto !important; flex: 1; min-width: 0; }
.ci-l1 .fi.ci-qty { width: 100%; box-sizing: border-box; }
.ci-dep { display: block; min-width: 0 !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-sizing: border-box;
  background: #dcdcdc !important; color: #333; padding: 0 3px !important; }
.ci-l2 { display: flex; align-items: center; gap: 4px; }
.ci-l2 .fi.ci-unit { width: 60px; }
.ci-l2 .combo-in { width: 50px !important; }
.ci-l2 > .ci-dep { width: 66px; flex: none; }
.ci-l2 .fi.ci-dcm { flex: 1; min-width: 0; }
.fi.ci-off { background: #dcdcdc; }
.ci-incl { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: 12px; }
.ci-il { color: #444; font-size: 12px; white-space: nowrap; }
.btn.ci-del { min-width: 0; padding: 0; width: 22px; font-size: 11px; line-height: 18px; }
.ci-note { margin-top: 8px; font-size: 11px; color: #555; }
html.dark .ci-kv b, html.dark .ci-il, html.dark .ci-note, html.dark .ci-hd span { color: #a8adb5; }
html.dark .ci-band { background: #24272c; border-color: #3f434a; }
html.dark .ci-dep, html.dark .fi.ci-off { background: #33363c !important; color: #c9ccd1; }
html.dark .ci-closed { color: #ff8a8a; }

/* TR's Share Link dialog (commands.js shareTearAndRun). */
.tns-opt { display: block; margin: 6px 0; }
.tns-opt select { margin-left: 4px; }
.tns-hd { margin: 12px 0 4px; font-weight: bold; }
.tns-row { display: flex; align-items: center; gap: 6px; padding: 3px 0; border-top: 1px solid #d0d4d9; }
.tns-row span { flex: 1; font-size: 12px; }
.tns-url { width: 100%; font: 12px Consolas, monospace; padding: 4px; }
html.dark .tns-row { border-color: #3f434a; }

/* Radio Admin (radmin.js, issues #35, #36): zone columns, channel boxes, radio chips. */
.ra { display: flex; flex-direction: column; height: 100%; font-size: 12px; }
.ra-tabs { display: flex; gap: 2px; padding: 4px 6px 0; background: var(--chrome); border-bottom: 1px solid var(--edge); }
.ra-tab { border: 1px solid var(--edge); border-bottom: none; background: #d3d8e0; padding: 3px 12px; border-radius: 3px 3px 0 0; cursor: pointer; }
.ra-tab.on { background: var(--field); font-weight: 600; }
.ra-body { flex: 1; overflow: auto; padding: 6px; }
.ra-status { padding: 3px 8px; border-top: 1px solid var(--edge); background: var(--chrome); min-height: 18px; }
.ra-status.ra-warn { color: #8a5a00; } .ra-status.ra-err { color: #b00020; }
.ra-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 6px; align-items: start; }
.ra-col { border: 1px solid var(--edge-dark); background: var(--field); }
.ra-zone { color: #fff; font-weight: 600; padding: 3px 6px; }
.ra-law .ra-zone { background: #2f6fd6; } .ra-fire .ra-zone { background: #c63d2b; }
.ra-interop .ra-zone { background: #2e8a50; } .ra-events .ra-zone { background: #6c45c4; }
.ra-ch { margin: 4px; border: 1px dashed var(--field-edge); border-radius: 3px; min-height: 30px; }
.ra-ch.ra-drop { border: 2px solid var(--select); background: rgba(59, 120, 200, .12); }
.ra-ch-h { display: flex; gap: 4px; padding: 2px 4px; font-weight: 600; background: rgba(0, 0, 0, .05); cursor: grab; }
.ra-ch-h .ra-n { margin-left: auto; color: var(--muted); font-weight: 400; }
.ra-ev { color: #6c45c4; font-weight: 400; }
.ra-chips { padding: 2px; }
.ra-chip { display: inline-block; margin: 2px; padding: 0 5px; border: 1px solid #8ea0ba; border-radius: 3px; background: #e9eef6; cursor: grab; user-select: none; }
.ra-chip.ra-rg { background: #fff1c2; border-color: #c9a227; }
.ra-chip.ra-lk { background: #ffd9d2; border-color: #c0533c; }
.ra-chip.ra-sel { outline: 2px solid var(--select); }
.ra-add { margin: 4px; width: calc(100% - 8px); }
.ra-hint { margin-top: 6px; color: var(--muted); }
.ra-form { margin-top: 8px; }
.ra-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0; }
.ra-lab { min-width: 64px; font-weight: 600; }
.ra-ag { display: inline-flex; gap: 10px; }
html.dark .ra-tab { background: #2f333a; border-color: #3a3e45; color: #e4e6e9; }
html.dark .ra-tab.on { background: #1b1d20; }
html.dark .ra-chip { background: #2b3442; border-color: #4f627d; color: #e4e6e9; }
html.dark .ra-chip.ra-rg { background: #4a3e12; border-color: #9c7d1c; }
html.dark .ra-chip.ra-lk { background: #4d231b; border-color: #9a4232; }
html.dark .ra-tabs, html.dark .ra-status { background: #26292e; border-color: #3a3e45; color: #e4e6e9; }

/* Dark mode for the list boxes (.si-list: CT, Radio Group, Radio Admin's tables) and Radio Admin's
   highlighted rows - they kept a white background with light text (Landon, 2026-11-12). */
html.dark .si-list { background: #1b1d20; border-color: #3f434a; }
.ra-table tr.ct-on td { background: #fff7b0; }
html.dark .ct-grid tr.ct-on td, html.dark .ra-table tr.ct-on td { background: #3a3618; color: #f3e7a6; }
html.dark .ra-ch { border-color: #4a4f57; }
html.dark .ra-ch-h { background: rgba(255, 255, 255, .06); }
html.dark .ra-ch.ra-drop { background: rgba(77, 155, 230, .18); }
html.dark .ra-ev { color: #b9a2f0; }
html.dark .ra-status.ra-warn { color: #f0c060; } html.dark .ra-status.ra-err { color: #ff7a7a; }
html.dark .ra-col { border-color: #3f434a; }
html.dark .ra-hint, html.dark .ra-ch-h .ra-n { color: #a3a9b1; }

/* The CAD Map's Bookmarks pane (map.js, guide 16.3 Tables 46-47): a row each, its tools on the right. */
.nm-bm { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.nm-bm-row { display: flex; align-items: stretch; border: 1px solid #c9cfd6; border-radius: 2px; background: #fff; }
.nm-bm-row.fav { border-left: 3px solid #e0a000; }
.nm-bm-r { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 5px 8px; border: 0; background: none; color: #000; font: inherit; text-align: left; cursor: pointer; }
.nm-bm-r span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm-bm-home { margin-left: auto; padding: 0 5px; border-radius: 2px; background: #1584c4; color: #fff; font: 600 10px "Segoe UI", Arial; }
.nm-bm-t { flex: none; width: 26px; padding: 0; border: 0; border-left: 1px solid #e3e7eb; background: none; color: #445; font-size: 13px; cursor: pointer; }
.nm-bm-t.on { color: #c88a00; }
.nm-bm-r:hover, .nm-bm-t:hover { background: #e3edf9; }
html.dark .nm-bm-row { background: #23262b; border-color: #3f434a; }
html.dark .nm-bm-row.fav { border-left-color: #c9a800; }
html.dark .nm-bm-r { color: #e4e6e9; }
html.dark .nm-bm-home { background: #1d6fa5; }
html.dark .nm-bm-t { border-color: #3a3e45; color: #c9cdd2; }
html.dark .nm-bm-t.on { color: #f0c040; }
html.dark .nm-bm-r:hover, html.dark .nm-bm-t:hover { background: #2f3b4c; }
/* The CAD Map's Maps pane (map.js): the quick switches, and the layer list at its full height. */
.nm-pane .ma-tree { max-height: none; }
.nm-quick { margin-top: 0; }
.nm-quick .btn { flex: 1; }
html.dark .nm-quick .btn.on { background: linear-gradient(#2f4a6e, #233a59); border-color: #6f9bff; color: #fff; }
/* The CAD Map's Search pane (map.js, Figures 252-253): one box, a location card, the results. */
.nm-sbox { display: flex; gap: 6px; }
.nm-sbox .fld { flex: 1; min-width: 0; text-transform: none; }
.nm-card { margin-top: 8px; padding: 6px 8px; border: 1px solid #9cb6d6; border-left: 4px solid #1584c4; background: #fff; }
.nm-res { margin-top: 6px; }
.nm-rh { margin: 8px 0 3px; padding-bottom: 2px; border-bottom: 1px solid #c9cfd6; color: #4a5a6a; font-weight: 700; font-size: 11px; text-transform: uppercase; }
.nm-r { display: flex; align-items: stretch; border-bottom: 1px solid #e3e7eb; }
.nm-r-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 3px 6px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.nm-r-main span { color: #555; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.nm-r-main i { color: #b05a00; font-size: 10.5px; }
.nm-r-main:hover, .nm-r-act:hover { background: #e3edf9; }
.nm-r-act { flex: none; width: 26px; border: 0; background: none; color: inherit; cursor: pointer; }
html.dark .nm-card { background: #23262b; border-color: #3f5a78; border-left-color: #1d6fa5; }
html.dark .nm-rh { color: #9aa8b8; border-color: #3a3e45; }
html.dark .nm-r { border-color: #2a2d32; }
html.dark .nm-r-main span { color: #a9aeb6; }
html.dark .nm-r-main i { color: #f0a050; }
html.dark .nm-r-main:hover, html.dark .nm-r-act:hover { background: #2f3b4c; }
/* The CAD Map's right-click menus (map.js, guide Table 47, Figures 252-253; #108): navy, each item
   with its icon on the left - in both themes, as the map's toolbars. */
.ctx.nm-ctx, html.dark .ctx.nm-ctx { background: #0e1a26; border-color: #2c3e52; box-shadow: 2px 2px 6px rgba(0,0,0,.5); }
.nm-ctx .ctx-i, html.dark .nm-ctx .ctx-i { justify-content: flex-start; padding-left: 30px; color: #fff; }
.nm-ctx .ctx-i:hover:not(:disabled), .nm-ctx .ctx-i:focus:not(:disabled),
html.dark .nm-ctx .ctx-i:hover:not(:disabled), html.dark .nm-ctx .ctx-i:focus:not(:disabled) { background: #1584c4; border-color: #1584c4; }
.nm-ctx .ctx-i:disabled, html.dark .nm-ctx .ctx-i:disabled { color: #66717d; }
.nm-ctx .ctx-sep, html.dark .nm-ctx .ctx-sep { background: #2c3e52; margin-left: 30px; }
.ctx-ic { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; }
.ctx-ic svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ctx-ic svg .fill { fill: currentColor; }
html.dark .ctx-ic svg { stroke: currentColor; }
/* Single-Touch Mode (#105): the armed Zoom In or Zoom Out button, and the zoom cursor. */
.nm-nb.on, html.dark .nm-nb.on { background: #1584c4; }
.map-canvas.m-zin { cursor: zoom-in; }
.map-canvas.m-zout { cursor: zoom-out; }
/* The click card (map.js, guide 16.13; #112): the icon's information, kept until closed. */
.map-card { position: absolute; z-index: 6; min-width: 210px; max-width: 320px; background: #fff; border: 1px solid #7a7a7a; box-shadow: 2px 2px 6px rgba(0,0,0,.35); font-size: 11.5px; }
.map-card.hidden { display: none; }
.map-card .mc-h { display: flex; align-items: center; gap: 6px; padding: 3px 4px 3px 8px; background: #0e1a26; color: #fff; font-weight: 700; }
.map-card .mc-x { margin-left: auto; padding: 0 6px; border: 0; background: none; color: #fff; font-size: 15px; line-height: 1; cursor: pointer; }
.map-card .mc-x:hover { background: #20364d; }
.map-card .mc-g { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 6px 8px; }
.map-card .mc-g .k { color: #6a6a6a; white-space: nowrap; }
.map-card .mc-g b { color: #000; overflow-wrap: anywhere; }
.map-card .mc-a { display: flex; gap: 6px; padding: 0 8px 7px; }
html.dark .map-card { background: #1b1d20; border-color: #50555d; color: #e4e6e9; }
html.dark .map-card .mc-h { background: #0b1118; }
html.dark .map-card .mc-x:hover { background: #1d2a38; }
html.dark .map-card .mc-g .k { color: #9aa0a8; }
html.dark .map-card .mc-g b { color: #f0f2f4; }
/* The notification bar's unit status text and map credits (Settings, #105). */
.nm-ust, .nm-credits { flex: none; padding: 0 6px; font-size: 11px; white-space: nowrap; }
.nm-ust { font-weight: 700; color: #ffd75e; }
.nm-credits { color: #9fb0c2; }
.nm-ust.hidden, .nm-credits.hidden { display: none; }
html.dark .nm-ust { color: #f0c84a; }
html.dark .nm-credits { color: #8796a6; }
@media (max-width: 640px) { .nm-credits { display: none; } }
/* The Settings pane (map.js, guide 16.4 Figure 249; #105): folding sections of switches and lists. */
.nm-set { margin-bottom: 6px; border: 1px solid #c9cfd6; border-radius: 2px; background: #fff; }
.nm-set > summary { padding: 5px 8px; background: #e8edf2; font-weight: 700; cursor: pointer; }
.nm-set[open] > summary { border-bottom: 1px solid #c9cfd6; }
.nm-set > .ma-hint { padding: 6px 8px; }
.nm-set-r { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 8px; }
.nm-set-r .fld { width: auto; min-width: 120px; text-transform: none; }
.nm-set-clr { display: block; width: calc(100% - 16px); margin: 6px 8px 8px; }
.nm-set-note { margin-top: 4px; }
.nm-sw { -webkit-appearance: none; appearance: none; flex: none; position: relative; width: 34px; height: 18px; margin: 0; border-radius: 9px; background: #aab4be; cursor: pointer; transition: background .15s; }
.nm-sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s; }
.nm-sw:checked { background: #1584c4; }
.nm-sw:checked::after { left: 18px; }
.nm-sw:focus-visible { outline: 2px solid #1584c4; outline-offset: 2px; }
html.dark .nm-set { background: #23262b; border-color: #3f434a; }
html.dark .nm-set > summary { background: #2a2d32; color: #e4e6e9; }
html.dark .nm-set[open] > summary { border-color: #3f434a; }
html.dark .nm-set-r { color: #e4e6e9; }
html.dark .nm-sw { background: #4a525c; }
html.dark .nm-sw:checked { background: #1d6fa5; }
html.dark .nm-sw::after { background: #e4e6e9; }
/* The route window (map.js, Route To and Directions; #108): over the map's bottom right. */
.map-measure.map-route { top: auto; right: 104px; bottom: 12px; width: 300px; max-height: 45%; overflow: auto; }
.map-route .mw-tot { margin: 6px; }
.map-route .mw-t td:last-child { white-space: nowrap; text-align: right; }
html.dark .map-route .mw-tot { color: #e4e6e9; }
