:root {
  --bg: #0f1720;
  --panel: #16212c;
  --panel-2: #1d2a37;
  --line: #2a3a4a;
  --text: #e8eef4;
  --muted: #8ea1b3;
  --accent: #3aa0ff;
  --green: #2fbf71;
  --amber: #f0b429;
  --tx: var(--amber); /* transmitting, v1.5 (was blue --accent) */
  --red: #e5484d;
  --grey: #6b7c8c;
  --radius: 12px;
  --brand: #c41130; /* company red (logo x) */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body { display: flex; flex-direction: column; overflow: hidden; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
h2, h3 { margin: 0; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 0.8rem; }

/* top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: #0b1219; border-bottom: 1px solid var(--line); flex: none;
}
.brand { font-size: 1.05rem; display: flex; gap: 8px; align-items: center; }
.brand-logo { height: 15px; width: auto; display: block; }
.brand-sep { color: var(--muted); }
.top-right { position: relative; }
.link-btn {
  display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line); cursor: pointer; min-height: 36px;
}
.link-btn .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--grey); box-shadow: 0 0 0 3px rgba(255,255,255,0.06); }
.link-btn[data-color="green"] .dot { background: var(--green); }
.link-btn[data-color="amber"] .dot { background: var(--amber); }
.link-btn[data-color="red"] .dot { background: var(--red); }
.link-pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: min(300px, calc(100vw - 32px));
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.link-pop p { margin: 0 0 6px; }
.text-btn { background: none; border: none; color: var(--accent); padding: 6px 0; cursor: pointer; }

/* layout: map left, radio right; stacked on phones */
.layout { flex: 1; display: grid; grid-template-columns: 1fr minmax(320px, 420px); min-height: 0; }
.map-pane { position: relative; min-height: 0; }
#map { position: absolute; inset: 0; }
/* Two places (owner, 9-10 Oct): the vehicle is outdoors (sky, sun), headquarters is indoors (warm room light), with a
   thick company-red bar between them and HEADQUARTERS on a red sign plate. The warm tones are scoped through the
   custom properties, so every card, meter and button inside the pane follows. */
.radio-pane {
  --panel: #262431; --panel-2: #302e3d; --line: #474460; --muted: #a9a6c2;
  background: linear-gradient(180deg, #2a2837 0%, #201f2b 60%, #1a1923 100%); border-left: 8px solid var(--brand);
  padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
}
.radio-pane .ptt { background: radial-gradient(circle at 50% 40%, #46435c, #27253a); }
.hq { margin: auto 0; padding: 18px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.hq-word {
  font-size: 1.55rem; font-weight: 800; letter-spacing: 0.22em; color: #fff; background: var(--brand);
  padding: 8px 16px 8px calc(16px + 0.22em); border-radius: 6px; box-shadow: 0 6px 18px rgba(196,17,48,0.35);
}
#ptt-hint.why { color: var(--text); max-width: 300px; text-align: center; font-size: 0.88rem; line-height: 1.35; }
@media (max-width: 760px) {
  body { overflow: auto; }
  .layout { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .map-pane { height: 46vh; } /* the system view sets its own height to fit the diagram */
  .radio-pane { border-left: none; border-top: 8px solid var(--brand); overflow: visible; }
  .hq { padding: 8px 0; }
}

.stale {
  position: absolute; left: 12px; bottom: 28px; z-index: 5; padding: 4px 10px; border-radius: 999px;
  background: rgba(11,18,25,0.8); color: var(--muted); font-size: 0.8rem;
}

/* marker */
.marker { display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.marker .pin {
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.45);
}
.marker .tag {
  margin-top: 4px; padding: 2px 8px; border-radius: 6px; background: #0b1219; color: #fff; font-size: 0.78rem;
  font-weight: 600; white-space: nowrap;
}
.marker[data-source="static"] .pin { background: #7c5cff; }
.marker[data-source="last_known"] .pin { background: var(--grey); border-style: dashed; }
.marker[data-source="last_known"] .tag::after { content: " · last known"; font-weight: 400; color: var(--muted); }
.marker[data-source="static"] .tag::after { content: " · fixed position"; font-weight: 400; color: var(--muted); }

.marker[data-emergency="1"] .pin { background: var(--red); border-style: solid; animation: em-pulse 1s ease-out infinite; }
.marker[data-emergency="1"] .tag { background: var(--red); }
/* Field radios (A5, 11 Oct): handheld-radio markers, dashed line with a distance/bearing label, duress in red */
.fr-marker { display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.fr-marker svg { filter: drop-shadow(0 2px 3px rgba(0,0,0,0.45)); }
.fr-marker .fr-body { fill: #1f2937; stroke: #f8fafc; stroke-width: 1.5; }
.fr-marker .fr-screen { fill: #86efac; }
.fr-marker .fr-key, .fr-marker .fr-ant { fill: #cbd5e1; }
.fr-tag { display: flex; flex-direction: column; align-items: center; margin-top: 2px; padding: 2px 7px; border-radius: 6px;
  background: rgba(15,23,42,0.88); color: #fff; font-size: 0.78rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.fr-age { font-weight: 400; font-size: 0.7rem; color: #cbd5e1; }
.fr-marker[data-duress="1"] .fr-body { fill: var(--red); stroke: #fff; animation: fr-pulse 1s ease-in-out infinite; }
.fr-marker[data-duress="1"] .fr-screen { fill: #fff; }
.fr-marker[data-duress="1"] .fr-tag { background: var(--red); }
.fr-marker[data-stale="1"] { opacity: 0.55; filter: grayscale(1); }
@keyframes fr-pulse { 50% { opacity: 0.35; } }
.fr-label { padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,0.92); color: #111827; font-size: 0.74rem;
  font-weight: 700; white-space: nowrap; border: 1px solid #9ca3af; pointer-events: none; }
.fr-label[data-duress="1"] { border-color: var(--red); color: var(--red); }
.radio-list { list-style: none; margin: 0; padding: 0; }
.radio-list li { display: grid; grid-template-columns: auto auto 1fr; gap: 2px 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.radio-list li[data-stale="1"] { opacity: 0.6; }
.radio-list .fr-row-name { font-weight: 700; }
.radio-list .fr-chip { background: var(--red); color: #fff; font-size: 0.7rem; font-weight: 800; padding: 1px 6px; border-radius: 999px; letter-spacing: 0.06em; }
.radio-list .fr-row-where, .radio-list .fr-row-age { grid-column: 1 / -1; font-size: 0.85rem; color: var(--muted); }
.radio-list li[data-duress="1"] .fr-row-where { color: var(--red); font-weight: 600; }
.radio-list li[data-nofix="1"] .fr-row-where { color: var(--amber); font-weight: 600; }
.radio-list li[data-duress="1"][data-nofix="1"] .fr-row-where { color: var(--red); }  /* duress red wins */

/* Phone call card (A5, 11 Oct): display only; amber frame while a call holds our channel */
.phone-card { margin: 10px 0 6px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); }
.phone-card[hidden] { display: none; }
.phone-card[data-state="connected"] { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber) inset; }
.phone-title { margin: 0; font-weight: 800; font-size: 1.02rem; letter-spacing: 0.01em; }
.phone-sub { margin: 4px 0 0; font-size: 0.82rem; color: var(--muted); }
.phone-sub[hidden] { display: none; }
.phone-meta { margin: 6px 0 0; font-size: 0.95rem; font-weight: 600; }
#call.join { pointer-events: none; background: rgba(5, 10, 18, 0.35); }  /* the page stays usable under the call pop-up */
#call .join-card { pointer-events: auto; }
.call-card { border: 2px solid var(--amber); box-shadow: 0 0 40px rgba(240,180,41,0.3); }
.call-card h1 { color: var(--amber); font-size: 1.5rem; letter-spacing: 0.08em; }
.call-card .call-party { color: var(--text); font-size: 1.15rem; font-weight: 700; margin: 0 0 4px; }
.call-card .call-sub { margin: 10px 0 0; font-size: 0.9rem; color: var(--muted); }
.call-card .call-sub[hidden] { display: none; }
.vx-caller rect.vx-screen { transition: fill 0.3s; }
.vx-caller.on .vx-screen { fill: #4a3a12; } .vx-caller.on .vx-screen-lines { stroke: var(--amber); }
.vx-caller.on .vx-caller-glow { filter: drop-shadow(0 0 8px rgba(240,180,41,0.85)); }
.vx-caller.ring .vx-caller-glow { animation: vx-blink 0.8s ease-in-out infinite; }
.vx-ov.ring { opacity: 1; stroke: var(--amber); stroke-width: 3; stroke-dasharray: 4 8; animation: vx-blink 0.8s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(240,180,41,0.7)); }
#phone-reg { color: var(--amber); }
#phone-reg[hidden] { display: none; }
.ptt[data-state="phone"] { background: #3a3a44; color: #cfd3dc; cursor: default; }

@keyframes em-pulse {
  0% { box-shadow: 0 0 0 0 rgba(229,72,77,0.9); }
  100% { box-shadow: 0 0 0 22px rgba(229,72,77,0); }
}

/* radio emergency (B5, owner 4 Oct) */
.map-flash { position: absolute; inset: 0; z-index: 8; background: rgba(229,72,77,0.55); pointer-events: none; }
.gps-toast { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 9; padding: 6px 14px; border-radius: 999px; background: var(--amber); color: #1b1300; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em; box-shadow: 0 2px 10px rgba(0,0,0,0.35); max-width: calc(100vw - 32px); }
.em-nogps { margin: 2px 0 0; color: var(--amber); font-weight: 700; letter-spacing: 0.02em; }
.map-flash[hidden] { display: none; }
.em-banner {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 9; padding: 8px 16px;
  border: none; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; cursor: pointer;
}
.em-banner[hidden] { display: none; }
.em-note {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 9; margin: 0; padding: 6px 14px;
  border-radius: 999px; background: rgba(11,18,25,0.9); border: 1px solid var(--line); font-size: 0.85rem;
  white-space: nowrap;
}
/* Light backdrop, and kept off the middle of the map (the map centres on the vehicle), so the red marker shows. */
.join.emergency { z-index: 60; background: rgba(8, 12, 17, 0.45); align-items: flex-start; padding-top: 10vh; }
@media (max-width: 760px) { .join.emergency { align-items: flex-end; padding-top: 16px; } } /* map is the top half */
.em-card { border: 2px solid var(--red); box-shadow: 0 0 40px rgba(229,72,77,0.35); }
.em-card h1 { color: var(--red); font-size: 1.6rem; letter-spacing: 0.08em; }
.em-card .em-text { color: var(--text); font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.em-card .em-still { margin: 0 0 12px; font-size: 0.9rem; }
.join-btn.em-ack { background: var(--red); color: #fff; letter-spacing: 0.04em; margin-top: 8px; }
.join-btn.em-ack:disabled { opacity: 0.6; cursor: default; }
.em-card .em-status { margin: 8px 0 0; color: var(--amber); font-weight: 600; }
.em-card .em-status:empty { display: none; }

/* sheets over the map */
.sheet {
  position: absolute; z-index: 10; top: 12px; left: 12px; width: min(380px, calc(100% - 24px));
  max-height: calc(100% - 24px); overflow-y: auto; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.sheet-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sheet-head h2 { flex: 1; font-size: 1.05rem; }
.close, .back {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2);
  cursor: pointer; font-size: 1.2rem; line-height: 1;
}
.device-list { list-style: none; margin: 0; padding: 0; }
.device-list li button {
  width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; text-align: left;
  padding: 10px 12px; margin-bottom: 6px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel-2); cursor: pointer;
}
.device-list .name { font-weight: 600; }
.device-list .addr { color: var(--muted); font-size: 0.82rem; grid-column: 1; }
.device-list .state { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.pill {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; margin: 0;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
}
.pill[data-s="online"], .pill[data-s="ok"], .pill[data-s="green"] { color: var(--green); border-color: rgba(47,191,113,0.4); }
.pill[data-s="starting"], .pill[data-s="degraded"], .pill[data-s="amber"] { color: var(--amber); border-color: rgba(240,180,41,0.4); }
.pill[data-s="offline"], .pill[data-s="down"], .pill[data-s="red"] { color: var(--red); border-color: rgba(229,72,77,0.4); }
.statusline { font-family: ui-monospace, monospace; font-size: 0.82rem; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 12px 0; }
.tile { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.tile .t { font-size: 0.75rem; color: var(--muted); }
.tile .v { font-size: 1.4rem; font-weight: 600; margin: 4px 0 2px; }
.tile .v small { font-size: 0.8rem; color: var(--muted); font-weight: 400; margin-left: 3px; }
.tile .a { font-size: 0.72rem; color: var(--muted); }
.tile .light { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: var(--grey); }
.tile .light[data-l="green"] { background: var(--green); }
.tile .light[data-l="amber"] { background: var(--amber); }
.tile .light[data-l="red"] { background: var(--red); }
.identity { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 10px; font-size: 0.9rem; }
.identity dt { color: var(--muted); }
.identity dd { margin: 0; word-break: break-word; }
.dim { opacity: 0.55; }

/* radio panel */
.radio-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.radio-head h2 { font-size: 1.1rem; }
.radio-meta { display: flex; align-items: center; gap: 10px; }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 18px; }
.bars i { width: 4px; background: var(--line); border-radius: 1px; }
.bars i:nth-child(1) { height: 20%; } .bars i:nth-child(2) { height: 40%; } .bars i:nth-child(3) { height: 60%; }
.bars i:nth-child(4) { height: 80%; } .bars i:nth-child(5) { height: 100%; }
.bars i.on { background: var(--text); }
.bars.low i.on { background: var(--amber); }
.rx { display: flex; align-items: center; gap: 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.rx-label { font-size: 0.85rem; }
.meter { flex: 1; height: 8px; border-radius: 4px; background: #0b1219; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--green); transition: width 80ms linear; }
.group-title { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.group { list-style: none; margin: -6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.group li {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2);
}
.group li .n { font-weight: 600; }
.group li .id { color: var(--muted); font-size: 0.8rem; margin-left: 6px; }
.group li[data-a="rx"] { border-color: var(--green); }
.group li[data-a="tx"] { border-color: var(--tx); }
.group li[data-a="down"] { opacity: 0.6; }
.group .act { font-size: 0.8rem; color: var(--muted); }
.group li[data-a="rx"] .act { color: var(--green); }
.group li[data-a="tx"] .act { color: var(--tx); }

.ptt-wrap { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 8px; }
.ptt {
  width: min(100%, 260px); aspect-ratio: 1 / 1; border-radius: 50%; border: 4px solid var(--line);
  background: radial-gradient(circle at 50% 40%, #23384c, #172533); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; cursor: pointer; user-select: none; -webkit-user-select: none;
  touch-action: none; -webkit-touch-callout: none; /* iOS: no long-press menu while held */ transition: background 120ms, border-color 120ms, transform 80ms;
}
.ptt #ptt-label { font-size: 1.35rem; font-weight: 700; }
.ptt-sub { font-size: 0.9rem; color: var(--muted); min-height: 1.2em; }
.ptt:disabled { cursor: not-allowed; opacity: 0.55; }
.ptt[data-state="pending"] { border-color: var(--amber); }
.ptt[data-state="talking"] { background: radial-gradient(circle at 50% 40%, #c98f14, #8a5f08); border-color: #ffd36b; transform: scale(0.98); }
.ptt[data-state="talking"] .ptt-sub { color: #fff3d6; }
.ptt[data-state="busy"] { border-color: var(--green); }
.ptt[data-state="busy"] #ptt-label { color: var(--green); }
.ptt[data-state="denied"] { border-color: var(--red); }
.ptt[data-state="lost"] { border-color: var(--red); }
.ptt[data-state="lost"] #ptt-label { color: var(--red); }

/* P25 calling unit: live while a patch-group radio receives, dimmed "Last heard" for 10 s after. */
.unit {
  width: min(100%, 300px); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 12px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); text-align: center;
}
.unit-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.unit-id { font-size: 1.9rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; color: var(--muted); }
.unit-from { font-size: 0.85rem; color: var(--muted); min-height: 1.2em; }
.unit[data-s="live"] { border-color: var(--green); }
.unit[data-s="live"] .unit-id { color: var(--text); }
.unit[data-s="live"] .unit-from { color: var(--green); }
.unit[data-s="last"] { opacity: 0.6; }
.unit[data-s="last"] .unit-id { color: var(--text); }

/* TX (mic) meter: green to -18 dBFS, amber to -6, red above. Moves only while talking. */
.tx { display: flex; align-items: center; gap: 10px; width: min(100%, 300px); }
.tx-label { font-size: 0.85rem; color: var(--muted); }
.tx-meter {
  position: relative; flex: 1; height: 10px; border-radius: 5px; overflow: hidden;
  background: linear-gradient(90deg, rgba(47, 191, 113, 0.18) 0 70%, rgba(240, 180, 41, 0.18) 70% 90%, rgba(229, 72, 77, 0.18) 90%);
}
.tx-meter #tx-level {
  position: absolute; inset: 0; clip-path: inset(0 100% 0 0); transition: clip-path 60ms linear;
  background: linear-gradient(90deg, var(--green) 0 70%, var(--amber) 70% 90%, var(--red) 90%);
}
.tx-meter #tx-peak { position: absolute; top: 0; bottom: 0; width: 2px; left: 0; background: var(--text); opacity: 0; }
.tx[data-zone="off"] .tx-meter { opacity: 0.5; }
.tx-text { font-size: 0.8rem; min-width: 5.5em; text-align: right; color: var(--muted); }
.tx[data-zone="ok"] .tx-text { color: var(--green); }
.tx[data-zone="low"] .tx-text { color: var(--amber); font-weight: 600; }
.tx[data-zone="loud"] .tx-text { color: var(--red); font-weight: 600; }

/* join overlay */
.join {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(8, 12, 17, 0.88);  /* no backdrop-filter: on iOS Safari it left black patches on the map's WebGL canvas */
}
.join[hidden] { display: none; }
.join-card {
  max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  text-align: center;
}
.join-card h1 { font-size: 1.3rem; margin: 0 0 8px; }
.join-card p { color: var(--muted); margin: 0 0 20px; }
.join-btn {
  width: 100%; padding: 14px; border-radius: 12px; border: none; background: var(--accent); color: #05121f;
  font-weight: 700; font-size: 1.05rem; cursor: pointer; margin-bottom: 8px;
}

/* roles: PIN button, visitor countdown, owner panel */
.top-right { display: flex; align-items: center; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text); text-decoration: none;
  font-size: 0.9rem; cursor: pointer; white-space: nowrap;
}
.chip[hidden] { display: none; }
.chip-accent { background: var(--accent); border-color: var(--accent); color: #05121f; font-weight: 700; }
#talk-chip { cursor: default; font-variant-numeric: tabular-nums; }
#talk-chip.low { border-color: var(--amber); color: var(--amber); }
.link-pop .text-btn { display: inline-block; text-decoration: none; }
.owner-sheet { width: min(420px, calc(100% - 24px)); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--muted); margin-bottom: 10px; }
.field input {
  font: inherit; color: var(--text); background: #0b1219; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px;
}
.primary-btn, .danger-btn {
  width: 100%; padding: 12px; border-radius: 10px; border: none; font-weight: 700; cursor: pointer; font-size: 1rem;
}
.primary-btn { background: var(--accent); color: #05121f; }
.primary-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.danger-btn { background: transparent; border: 1px solid var(--red); color: var(--red); margin-top: 12px; }
.pending { text-align: center; margin: 12px 0; padding: 12px; border: 1px solid var(--accent); border-radius: 12px; }
.pending[hidden] { display: none; }
.pending-pin { font-size: 2.6rem; font-weight: 700; letter-spacing: 0.25em; font-variant-numeric: tabular-nums; margin: 4px 0 10px; }
.pending-qr { display: flex; justify-content: center; }
.pending-qr svg { display: block; width: min(240px, 70vw); height: auto; border-radius: 8px; shape-rendering: crispEdges; }  /* scales via viewBox */
.owner-msg { color: var(--amber); font-size: 0.9rem; }
.visitor-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.visitor-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); font-size: 0.9rem;
}
.visitor-list .left { font-variant-numeric: tabular-nums; color: var(--muted); margin-left: 6px; }
.visitor-list button { background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--red); padding: 4px 10px; cursor: pointer; }
.ptt-signin { display: block; text-align: center; text-decoration: none; }
@media (max-width: 760px) { .brand { font-size: 0.95rem; } .chip { padding: 6px 10px; } #link-text { display: none; } }

/* phones: keep the top bar on one line, never wider than the screen */
.topbar { min-width: 0; }
.brand { min-width: 0; flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-right { flex: 0 0 auto; }
@media (max-width: 480px) {
  .topbar { padding-left: 12px; padding-right: 12px; gap: 8px; }
  .brand { font-size: 0.85rem; flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.15; }
  .brand-sep { display: none; }
  .top-right { gap: 6px; }
  .chip { padding: 5px 9px; font-size: 0.82rem; min-height: 32px; }
  .link-btn { padding: 7px 9px; min-height: 32px; }
}

/* system view (A7.1, owner 6 Oct: design A "the vehicle", B's front panel on tap); Map/System switch top left */
.view-switch {
  position: absolute; top: 12px; left: 12px; z-index: 6; display: flex; padding: 3px; gap: 2px;
  background: rgba(11,18,25,0.88); border: 1px solid var(--line); border-radius: 999px;
}
.view-switch button {
  border: none; background: none; padding: 6px 14px; border-radius: 999px; cursor: pointer; color: var(--muted);
  min-height: 32px;
}
.view-switch button[aria-pressed="true"] { background: var(--panel-2); color: var(--text); font-weight: 600; }
.diagram {
  position: absolute; inset: 0; z-index: 3; overflow: hidden;
  /* outdoors: a blue sky that darkens towards the top, with the sun low on the left */
  background: linear-gradient(180deg, #0f2a4a 0%, #1a4572 48%, #1f507f 78%, #163a5b 100%);
}
.diagram[hidden] { display: none; }
.diagram-body { height: 100%; display: flex; flex-direction: column; padding: 12px 12px 10px; gap: 8px; }
.dg-top { min-height: 40px; padding-left: 176px; }
.vx { flex: 1; min-height: 0; width: 100%; display: block; }
.diagram-updated { margin: 0; text-align: right; }
.dg-list { display: none; }
.dg-top { display: flex; justify-content: flex-end; align-items: center; gap: 10px; min-height: 40px; flex-wrap: wrap; } /* keeps the demo bar below the view switch */
.dg-banner {
  margin: 0 auto 0 0; display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(240,180,41,0.12); border: 1px solid rgba(240,180,41,0.5); color: #ffd98a; font-size: 0.9rem;
}
.dg-banner .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); flex: none; }
.dg-demo-btn, .dg-demo-ctl button {
  font: inherit; font-size: 0.9rem; color: var(--text); background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 14px; min-height: 36px; cursor: pointer;
}
.dg-demo-btn { border-color: var(--accent); color: #cfe6ff; }
a.dg-brochure { text-decoration: none; display: inline-flex; align-items: center; border-color: var(--line); color: var(--text); }
.dg-demo {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; border-radius: 10px; background: rgba(58,160,255,0.1); border: 1px solid rgba(58,160,255,0.45);
}
.dg-demo[hidden], .dg-top [hidden] { display: none; }
.dg-demo-copy { display: grid; gap: 2px; min-width: 0; flex: 1 1 260px; }
.dg-demo-copy strong { color: #cfe6ff; font-weight: 600; }
.dg-demo-copy span { color: var(--muted); font-size: 0.88rem; }
.dg-demo-ctl { display: flex; gap: 6px; }
.diagram.still .vx-ov { opacity: 0 !important; }
.showcase-btns { display: grid; gap: 4px; justify-items: start; margin-bottom: 14px; }
#owner-new { margin-bottom: 16px; }
.diagram.narrow .diagram-body { height: auto; padding: 12px 12px 14px; }
.diagram.narrow .dg-top { padding-left: 0; padding-top: 48px; justify-content: flex-start; }
.diagram.narrow .vx { flex: none; height: auto; }
.diagram.narrow #vx-cards { display: none; }
.diagram.narrow .dg-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dg-item {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 8px; text-align: left;
  padding: 9px 11px; background: #0f171f; border: 1px solid #2b3a49; border-radius: 8px; color: var(--text); min-width: 0;
}
button.dg-item { cursor: pointer; font: inherit; }
.dg-item .light { width: 9px; height: 9px; border-radius: 50%; background: var(--grey); }
.dg-item[data-light="green"] .light { background: var(--green); }
.dg-item[data-light="amber"] .light { background: var(--amber); }
.dg-item[data-light="red"] .light { background: var(--red); }
.dg-name { font-weight: 600; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-sub { grid-column: 1 / -1; font-size: 0.78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-item[data-s="rx"] { border-color: var(--green); } .dg-item[data-s="rx"] .dg-sub { color: var(--green); }
.dg-item[data-s="tx"] { border-color: var(--tx); } .dg-item[data-s="tx"] .dg-sub { color: var(--tx); }
.dg-item[data-s="down"], .dg-item[data-s="em"] { border-color: var(--red); } .dg-item[data-s="em"] { background: #2a1114; }
.dg-item[data-s="em"] .dg-sub, .dg-item[data-s="down"] .dg-sub { color: #ff9a9d; }
.dg-item[data-k="smartpatch"] { border-color: #c41130; }

/* the drawing */
.vx text { font-family: "Barlow", system-ui, sans-serif; fill: var(--text); }
.vx-name { font: 600 15px "Barlow Condensed", "Arial Narrow", system-ui, sans-serif; letter-spacing: 0.02em; }
.vx-sub { font-size: 11.5px; fill: var(--muted) !important; }
.vx-tiny { font-size: 10px; fill: var(--muted) !important; }
.vx-brand { font: 700 13px "Barlow Condensed", "Arial Narrow", sans-serif; letter-spacing: 0.12em; }
.vx-brand-lg { font-size: 26px; letter-spacing: 0.14em; }
.vx-port { font: 600 10px "Barlow Condensed", "Arial Narrow", sans-serif; fill: #a9b8c7 !important; letter-spacing: 0.06em; }
.vx-lcd-text { fill: #9fd8ae !important; }
.vx-body { fill: #24313d; stroke: #50637a; stroke-width: 2; stroke-linejoin: round; }
.vx-glass { fill: #0d151d; stroke: #50637a; stroke-width: 1.5; }
.vx-cut { fill: #0f171f; stroke: #50637a; stroke-width: 1.5; stroke-dasharray: 5 5; }
.vx-tyre { fill: #0a0f14; stroke: #3c4b5a; stroke-width: 3; }
.vx-rim { fill: #26323e; stroke: #5b6e82; stroke-width: 2; }
.vx-whip { stroke: #9aabbd; stroke-width: 2.4; stroke-linecap: round; fill: none; }
.vx-lcd { fill: #9fd8ae; opacity: 0.85; } .vx-blue { fill: #8ccbf0; }
.vx-knob { fill: #121a22; stroke: #61758a; stroke-width: 1.5; }
.vx-ok { fill: var(--green); }
.vx-screen { fill: #1d3a2a; } .vx-screen-lines { stroke: var(--green); }
#vx-you.down .vx-screen { fill: #3a1d1f; } #vx-you.down .vx-screen-lines { stroke: var(--red); }
.vx-cable { fill: none; stroke: #3c5064; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.vx-cable.out { opacity: 0.45; stroke-dasharray: 2 5; }
.vx-cable.absent { display: none; }
.vx-feed, .vx-beam { fill: none; stroke: #2a3846; stroke-width: 1.6; stroke-dasharray: 2 4; }
.vx-ov { fill: none; stroke-linecap: round; opacity: 0; stroke-width: 3.5; transition: opacity 0.3s; }
.vx-ov.rx-in, .vx-ov.rx-out, .vx-ov.tx-in, .vx-ov.tx-out { opacity: 1; stroke-dasharray: 7 11; animation: vx-run 0.85s linear infinite; }
.vx-ov.rx-in, .vx-ov.rx-out { stroke: var(--green); filter: drop-shadow(0 0 4px rgba(47,191,113,0.7)); }
.vx-ov.tx-in, .vx-ov.tx-out { stroke: var(--tx); filter: drop-shadow(0 0 4px rgba(240,180,41,0.7)); }
.vx-ov.rx-in, .vx-ov.tx-in { animation-direction: reverse; }
.vx-ov.on { opacity: 0.9; stroke: var(--green); stroke-width: 2; stroke-dasharray: 2 5; }
.vx-ov.down { opacity: 1; stroke: var(--red); stroke-dasharray: 3 7; }
@keyframes vx-run { to { stroke-dashoffset: -18; } }
.vx-cellx { opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.vx-cellx.on { opacity: 1; animation: vx-blink 1.2s ease-in-out infinite; }
.vx-cellx circle { fill: #3a1d1f; stroke: var(--red); stroke-width: 2; }
.vx-cellx path { stroke: var(--red); stroke-width: 3; stroke-linecap: round; }
.vx-cellx text { fill: var(--red); font-size: 13px; font-weight: 600; }
.vx-dev { transition: filter 0.3s, opacity 0.3s; }
.vx-dev.tap { cursor: pointer; }
.vx-dev.absent { display: none; }
.vx-dev.rx { filter: drop-shadow(0 0 8px rgba(47,191,113,0.85)); }
.vx-dev.tx { filter: drop-shadow(0 0 8px rgba(240,180,41,0.85)); }
.vx-dev.down { opacity: 0.5; }
.vx-dev.em { filter: drop-shadow(0 0 10px rgba(229,72,77,0.95)); }
.vx-leader { stroke: #5d7389; stroke-width: 1.2; fill: none; transition: stroke 0.2s; }
.vx-leader-dot { fill: #8fa2b5; }
.vx-hit.rx .vx-leader { stroke: var(--green); } .vx-hit.tx .vx-leader { stroke: var(--tx); }
.vx-hit.em .vx-leader, .vx-hit.down .vx-leader { stroke: var(--red); }
/* hover or focus: the card, its leader, its device and its cable light up together */
.vx-hit.hl .vx-leader { stroke: #ffffff; stroke-width: 2.2; }
.vx-hit.hl .vx-leader-dot { fill: #ffffff; }
.vx-hit.hl .vx-card { stroke: #ffffff; stroke-width: 1.6; }
.vx-dev.hl { filter: drop-shadow(0 0 7px rgba(255,255,255,0.75)); }
.vx-cable.hl { stroke: #c9d6e3; opacity: 1; }
.vx-card { fill: #0f171f; stroke: #2b3a49; stroke-width: 1; transition: stroke 0.3s; }
.vx-card.hero { stroke: #c41130; stroke-width: 1.6; }
.vx-hit.tap { cursor: pointer; }
.vx-hit:focus { outline: none; }
.vx-hit.tap:hover .vx-card, .vx-hit:focus-visible .vx-card { stroke: var(--text); }
.vx-light { fill: var(--grey); }
.vx-hit[data-light="green"] .vx-light { fill: var(--green); }
.vx-hit[data-light="amber"] .vx-light { fill: var(--amber); }
.vx-hit[data-light="red"] .vx-light { fill: var(--red); }
.vx-hit.rx .vx-card { stroke: var(--green); } .vx-hit.rx .vx-sub { fill: var(--green) !important; }
.vx-hit.tx .vx-card { stroke: var(--tx); } .vx-hit.tx .vx-sub { fill: var(--tx) !important; }
.vx-hit.down .vx-card, .vx-hit.em .vx-card { stroke: var(--red); }
.vx-hit.em .vx-card { fill: #2a1114; }
.vx-hit.em .vx-sub, .vx-hit.down .vx-sub { fill: #ff9a9d !important; }
.vx-hit.out .vx-light { fill: #6d7f91; }
.vx-waves circle { fill: none; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.vx-waves.rx circle, .vx-waves.tx circle, .vx-waves.em circle { animation: vx-wave 1.8s ease-out infinite; }
.vx-waves.rx circle { stroke: var(--green); } .vx-waves.tx circle { stroke: var(--tx); } .vx-waves.em circle { stroke: var(--red); }
.vx-waves circle:nth-child(2) { animation-delay: 0.6s; } .vx-waves circle:nth-child(3) { animation-delay: 1.2s; }
.vx-waves.in circle { animation-name: vx-wave-in; }
@keyframes vx-wave { 0% { transform: scale(0.15); opacity: 0.95; } 100% { transform: scale(1); opacity: 0; } }
@keyframes vx-wave-in { 0% { transform: scale(1); opacity: 0; } 30% { opacity: 0.8; } 100% { transform: scale(0.15); opacity: 0; } }
.vx-chip { opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.vx-chip.on { opacity: 1; }
.vx-chip rect { fill: var(--green); } .vx-chip.em rect { fill: var(--red); }
.vx-chip text { font: 700 13px "Barlow Condensed", "Arial Narrow", sans-serif; fill: #06110a !important; letter-spacing: 0.03em; }
.vx-chip.em text { fill: #fff !important; }
.vx-ripple { pointer-events: none; }
.vx-ripple circle { fill: none; stroke: var(--red); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.vx-ripple.on circle { animation: vx-wave 1.2s ease-out infinite; }
.vx-ripple.on circle:nth-child(2) { animation-delay: 0.4s; } .vx-ripple.on circle:nth-child(3) { animation-delay: 0.8s; }
.vx-led { fill: #1d6b45; stroke: #0a0f14; stroke-width: 1; }
.vx-led.off { fill: #2a3540; } .vx-led.dim { fill: #1d4a35; }
.vx-led.rx { fill: var(--green); animation: vx-blink 0.5s steps(2) infinite; }
.vx-led.tx { fill: var(--tx); animation: vx-blink 0.5s steps(2) infinite; }
.vx-led.down { fill: var(--red); }
.vx-led.em { fill: var(--red); animation: vx-blink 0.35s steps(2) infinite; }
.vx-led.link { fill: var(--amber); } .vx-led.link.act { animation: vx-blink 0.25s steps(2) infinite; }
@keyframes vx-blink { 50% { opacity: 0.25; } }
.vx-port-ring { fill: #0d141b; stroke: #7d90a4; stroke-width: 2; }
.vx-port-ring.off { stroke: #3a4a5a; } .vx-port-ring.dim { stroke: #4d6176; }
.vx-port-ring.rx { stroke: var(--green); stroke-width: 3; } .vx-port-ring.tx { stroke: var(--tx); stroke-width: 3; }
.vx-port-ring.down, .vx-port-ring.em { stroke: var(--red); stroke-width: 3; }
.device-panel { margin: 4px 0 10px; }
.device-panel svg { display: block; width: 100%; height: auto; }
.device-panel svg + svg { margin-top: 2px; }
/* On the product renders: rings round the real connectors, lights over the real LEDs (the render shows them lit) */
.vx-port-ring.photo { fill: none; stroke: rgba(169,184,199,0.35); stroke-width: 2; vector-effect: non-scaling-stroke; }
.vx-port-ring.photo.off { stroke: none; } .vx-port-ring.photo.dim { stroke: rgba(169,184,199,0.2); }
.vx-port-ring.photo.rx, .vx-port-ring.photo.tx, .vx-port-ring.photo.down, .vx-port-ring.photo.em { stroke-width: 3; }
.vx-led.photo { fill: var(--green); filter: drop-shadow(0 0 40px var(--green)); }
.vx-led.photo.off { fill: #1a1f24; filter: none; }
.vx-led.photo.link { fill: var(--amber); filter: drop-shadow(0 0 40px var(--amber)); }
.vx-led.photo.em { fill: var(--red); filter: drop-shadow(0 0 40px var(--red)); }
#vx .vx-led.photo { filter: none; } /* the vehicle view's lights are tiny: no glow */
.panel-ip { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 2px 0; font-size: 12px; color: var(--muted); }
.panel-ip span:first-child { font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.panel-ip span { display: inline-flex; align-items: center; gap: 6px; }
.vx-ip { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.vx-ip.off { background: var(--grey); } .vx-ip.dim { background: #1d4a35; } .vx-ip.down, .vx-ip.em { background: var(--red); }
.vx-ip.rx { animation: vx-blink 0.5s steps(2) infinite; } .vx-ip.tx { background: var(--tx); animation: vx-blink 0.5s steps(2) infinite; }
.panel-line { margin: 6px 2px 0; font-size: 12px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .vx-ov, .vx-cellx, .vx-waves circle, .vx-led, .vx-ip, .vx-ripple circle { animation: none !important; }
  .vx-waves.rx circle, .vx-waves.tx circle, .vx-waves.em circle { opacity: 0.5; transform: scale(0.6); }
}
.device-sub { margin: -4px 0 8px; font-size: 0.88rem; }
.device-public { margin: 10px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); font-size: 0.9rem; }
.device-public a { color: var(--accent); }

/* Register Interest (10 Oct): the owner's list of registrations */
.reg-list .reg-who { display: flex; flex-direction: column; min-width: 0; }
.reg-list .reg-who .left { margin-left: 0; font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reg-list .reg-ok { color: var(--green); font-size: 0.8rem; white-space: nowrap; }
.reg-list .reg-bad { color: var(--red); font-size: 0.8rem; }
.reg-list button { color: var(--accent); }

/* Guest PINs owner-sheet group + guest chip (spec 2026-10-11) */
#guest-chip { background: #1f2937; color: #cbd5e1; }
.guest-list .guest-item { display: block; }
.guest-row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.guest-who { display: flex; align-items: center; gap: 8px; }
.guest-pin-small { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; letter-spacing: 0.08em; color: var(--text); }
.guest-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); }
.guest-item[data-state="revoked"], .guest-item[data-state="expired"] { opacity: 0.6; }
.guest-btns { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.guest-btns button { font-size: 0.8rem; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; }
.guest-btns button.danger { color: var(--red); border-color: var(--red); }
.guest-btns button:disabled { opacity: 0.5; cursor: default; }
.guest-log { list-style: none; margin: 4px 0 2px; padding: 6px 8px; background: rgba(0,0,0,0.18); border-radius: 6px; max-height: 180px; overflow: auto; }
.guest-log li { padding: 1px 0; }
#guest-result .pending-pin { margin: 4px 0; }

/* APX officer (Friday demo, 11 Nov): contact lost red (no alert), weak signal amber ring, Follow Me badge */
.fr-marker[data-lost="1"] .fr-body { fill: var(--red); stroke: #fff; }
.fr-marker[data-lost="1"] .fr-screen { fill: #fecaca; }
.fr-marker[data-lost="1"] .fr-tag { background: var(--red); }
.fr-marker[data-weak="1"] svg { filter: drop-shadow(0 0 0 var(--amber)) drop-shadow(0 0 4px var(--amber)) drop-shadow(0 0 2px var(--amber)); }
.fr-marker[data-weak="1"] .fr-tag { box-shadow: 0 0 0 2px var(--amber); }
.fr-marker[data-follow="1"] .fr-tag { box-shadow: 0 0 0 2px #2563eb; }
.fr-marker[data-follow="1"][data-weak="1"] .fr-tag { box-shadow: 0 0 0 2px var(--amber); }
.radio-list .fr-chips { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.radio-list .fr-chip-weak { background: var(--amber); color: #111827; }
.radio-list .fr-chip-follow { background: #2563eb; }
.radio-list li[data-lost="1"] .fr-row-where { color: var(--red); font-weight: 600; }
.radio-list .fr-acts { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.fr-act { background: transparent; border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; padding: 6px 14px;
  font-size: 0.85rem; font-weight: 600; cursor: pointer; min-height: 36px; }
.fr-act:disabled { opacity: 0.55; cursor: default; }
.fr-act-note { font-size: 0.8rem; color: var(--muted); }
.follow { margin-top: 12px; }
.follow-list { list-style: none; margin: 0; padding: 0; font-size: 0.85rem; }
.follow-list li { display: flex; gap: 8px; padding: 3px 0; border-bottom: 1px solid var(--line); }
.follow-list .fl-time { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.follow-list li[data-event="lost"] .fl-what, .follow-list li[data-event$="_ending"] .fl-what { color: var(--red); }
.follow-list li[data-event="weak"] .fl-what { color: var(--amber); }
/* HQ text dialog */
.hqtext-card { width: min(440px, calc(100vw - 32px)); text-align: left; }
.hqtext-card .hqtext-to { margin: 0 0 10px; color: var(--text, #e5e7eb); font-weight: 600; }
.hqtext-card textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 10px; border-radius: 8px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.06); color: inherit; resize: vertical; }
.hqtext-card .hqtext-meta { display: flex; justify-content: space-between; font-size: 0.8rem; margin: 4px 0 8px; }
.hqtext-card .hqtext-label { margin: 0 0 2px; font-size: 0.8rem; }
.hqtext-card .hqtext-preview { margin: 0 0 14px; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,0.04);
  font-family: ui-monospace, monospace; font-size: 0.9rem; word-break: break-word; color: inherit; }
.hqtext-card .join-btn:disabled { opacity: 0.5; cursor: default; }
.hqtext-card .hqtext-status { margin: 8px 0 0; min-height: 1.2em; }
.hqtext-status[data-status="delivered"] { color: #4ade80; }
.hqtext-status[data-status="failed"], .hqtext-status[data-status="timeout"], .hqtext-status[data-status="no_answer"],
.hqtext-status[data-status="unavailable"], .hqtext-status[data-status="refused"] { color: var(--red); }
.hqtext-status[data-status="busy"] { color: var(--amber); }
