/* =====================================================================
   OniDB "operations terminal" concept (staging only).
   Charcoal surfaces, off-white text, crimson only for state and accents,
   condensed headings, monospace metadata, file tabs and record dividers.
   ===================================================================== */
:root {
  --font-head: "Barlow Condensed", "Inter", system-ui, sans-serif;
  --nav-w: 232px;
  --hdr-h: 64px;
  --surface: #161415;
  --surface-2: #1d1a1b;
  --rule: #2e2a2b;
  --rule-soft: #262223;
  --worn: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='60'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 -1.5 1.3'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Compact identity header ---------- */
body.has-sys-nav .site-header { padding: 0 20px; height: var(--hdr-h); display: flex; align-items: center; position: sticky; top: 0; z-index: 60; background: #0f0d0e; }
body.has-sys-nav .header-inner { max-width: none; width: 100%; flex-wrap: nowrap; gap: 14px; }
body.has-sys-nav .brand { gap: 12px; min-width: 0; }
body.has-sys-nav .brand-logo { width: 46px; height: 46px; }
body.has-sys-nav .brand-name { font-size: 1.3rem; letter-spacing: 0.06em; white-space: nowrap; }
.brand-motto { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.06em; color: var(--blood-ink); white-space: nowrap; }
body.has-sys-nav .hud { margin-left: auto; }
.sys-menu-btn { display: none; }

/* ---------- Directory sidebar ---------- */
.sys-nav { display: none; }
body.has-sys-nav .sys-nav {
  display: block;
  position: fixed;
  top: var(--hdr-h);
  bottom: 0;
  left: 0;
  width: var(--nav-w);
  overflow-y: auto;
  padding: 14px 10px 24px;
  background: #110f10;
  border-right: 1px solid var(--rule);
  z-index: 40;
}
body.has-sys-nav nav.primary-tabs, body.has-sys-nav .sub-tabs { display: none !important; }
body.has-sys-nav main { max-width: none; margin-left: var(--nav-w); padding: 18px 26px 40px; }
body.has-sys-nav .site-footer { margin-left: var(--nav-w); }
.sys-root { margin: 0 0 10px 8px; font-family: var(--font-mono); font-size: 0.84rem; color: var(--text-dim); }
.sys-dir { margin: 16px 0 4px 8px; font-family: var(--font-mono); font-size: 0.84rem; color: var(--text-dim); display: flex; gap: 8px; align-items: baseline; }
.sys-folder { font-weight: 700; color: var(--blood-ink); }
.sys-dir-ooc .sys-folder { color: var(--ooc); }
.sys-dir-sys .sys-folder { color: var(--gold-bright); }
.sys-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px 7px 20px;
  background: none;
  border: 0;
  border-left: 2px solid transparent;
  color: var(--text-soft, #d8d0c6);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
}
.sys-item::before { content: "▸"; color: #5d5556; font-size: 0.8rem; width: 0.8em; }
.sys-item:hover { background: var(--surface-2); color: #fff; }
.sys-item.is-active { color: #fff; background: rgba(210, 42, 47, 0.12); border-left-color: var(--blood-bright); }
.sys-item.is-active::before { color: var(--blood-bright); }
.sys-item-ooc.is-active { background: rgba(143, 169, 196, 0.12); border-left-color: var(--ooc); }
.sys-item-ooc.is-active::before { color: var(--ooc); }
.sys-glyph { display: none; }
.sys-item:focus-visible, .sys-menu-btn:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: -2px; }

/* ---------- Condensed headings, mono metadata ---------- */
.section-head h2, .roster-section-label, .allies-tier-label, .loa-section-title, .cc-title, .watch-list-title, .comms-title {
  font-family: var(--font-head) !important;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}

/* ---------- Home: ledger + operations toolbar ---------- */
.ops-ledger {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  padding: 8px 14px;
  background: #131112;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--blood-bright);
  font-family: var(--font-mono);
  font-size: 0.84rem;
}
.ledger-counts { display: contents; }
.ledger-seg { display: inline-flex; align-items: baseline; gap: 6px; background: none; border: 0; padding: 2px 0; color: var(--text); font: inherit; cursor: default; }
button.ledger-seg { cursor: pointer; }
button.ledger-seg:hover .ledger-v { text-decoration: underline; }
.ledger-k { color: var(--text-dim); }
.ledger-v { color: var(--text); font-weight: 500; }
.ledger-user .ledger-v { font-family: var(--font-ui); font-weight: 700; }
.ledger-user .rank-pill { font-size: 0.8rem; }
.rel-count { font-weight: 500; }
.rel-war { color: #ff7b72; } .rel-beef { color: #f0a160; } .rel-upset { color: #e8c15a; } .rel-neutral { color: var(--text-dim); } .rel-good { color: #86dbac; }
.ops-ledger .cmd-deck-strikes { margin: 0; font-size: 0.84rem; }
.ops-ledger .cmd-deck-threat { margin-left: auto; }
.ops-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 0; }
.toolbar-label { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); font-size: 1rem; }
.ops-toolbar .home-actions-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.ops-toolbar .home-action { min-height: 0; padding: 6px 11px; font-size: 0.86rem; background: var(--surface-2); border: 1px solid #3a3435; gap: 7px; }
.ops-toolbar .home-action-icon { width: auto; height: auto; font-size: 0.9rem; }

/* ---------- File panels ---------- */
.ops-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 18px; align-items: start; margin-top: 22px; }
.ops-side { display: grid; gap: 22px; }
.file-panel { position: relative; background: var(--surface); border: 1px solid var(--rule); border-top: 0; }
.file-tabs { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; border-bottom: 1px solid #3a3435; margin-top: -1px; padding-right: 12px; }
.file-tab {
  position: relative;
  top: 1px;
  display: inline-block;
  padding: 7px 26px 6px 12px;
  background: var(--surface-2);
  border: 1px solid #3a3435;
  border-bottom-color: var(--surface-2);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f2ece3;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 100%, 0 100%);
  margin-top: -14px;
}
.file-tab.is-ic { box-shadow: inset 0 2px 0 var(--blood-bright); }
.file-tab.is-ooc { box-shadow: inset 0 2px 0 var(--ooc); }
.file-tab-meta { font-family: var(--font-mono); font-size: 0.84rem; color: var(--text-dim); padding-bottom: 6px; }
.file-tab-link { background: none; border: 0; padding: 0 0 6px; font-family: var(--font-mono); font-size: 0.84rem; color: var(--text-soft, #d8d0c6); cursor: pointer; }
.file-tab-link:hover { color: #fff; text-decoration: underline; }
.panel-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 7px 12px; border-bottom: 1px dashed var(--rule); font-family: var(--font-mono); font-size: 0.84rem; color: var(--text-dim); }
.toolbar-btn { background: var(--surface-2); border: 1px solid #3a3435; color: var(--text); font-family: var(--font-mono); font-size: 0.84rem; padding: 4px 10px; cursor: pointer; }
.toolbar-btn:hover { border-color: var(--blood-bright); color: #fff; }
.worn-stamp {
  position: absolute;
  top: -16px;
  right: 18px;
  z-index: 3;
  transform: rotate(-4deg);
  padding: 3px 10px;
  border: 2px solid rgba(220, 70, 70, 0.7);
  color: rgba(240, 120, 114, 0.9);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(16, 13, 14, 0.85);
  -webkit-mask-image: var(--worn);
  mask-image: var(--worn);
  -webkit-mask-size: 160px 60px;
  mask-size: 160px 60px;
  pointer-events: none;
}

/* ---------- Map workspace ---------- */
/* Charcoal base map: the image itself is toned (assets/gtav-map-charcoal*.jpg, made from the
   existing map with a tone curve on its red channel): sea darkest, land charcoal with its hill
   shading, roads pale. No overlay layer and no CSS filter sits on top of it. */
:root { --pin: #e3363c; --pin-hot: #ff5a5f; --pin-ring: #f6efe6; }
.home-map { position: relative; overflow: hidden; height: min(70vh, 660px); margin: 12px; background: #121011; border: 1px solid var(--rule-soft); }
.home-map-img { position: absolute; max-width: none; user-select: none; pointer-events: none; }
.map-pin { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--pin); border: 2px solid var(--pin-ring); box-shadow: 0 0 0 2px rgba(10, 8, 9, 0.7); cursor: pointer; z-index: 2; padding: 0; transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease; }
.map-pin:hover, .map-pin:focus-visible, .map-pin.is-selected { transform: scale(1.3); background: var(--pin-hot); border-color: #fff; box-shadow: 0 0 0 2px #120f10, 0 0 0 6px rgba(255, 90, 95, 0.38); z-index: 4; }
.map-pin:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }
.map-pin.is-sub { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: #f19a9c; border: 1px solid #120f10; box-shadow: none; z-index: 1; cursor: default; pointer-events: none; }
.map-label { position: absolute; z-index: 1; padding: 1px 7px; line-height: 18px; background: rgba(24, 21, 22, 0.86); border: 1px solid rgba(246, 239, 230, 0.12); border-left: 2px solid var(--pin); color: #f6efe6; font: 600 13px/18px var(--font-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.map-label.is-hot, .map-label.is-selected { background: var(--pin); border-color: var(--pin); color: #fff; z-index: 3; }
.map-empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--text-dim); font-family: var(--font-mono); }

/* ---------- Transmissions + record log ---------- */
.tx { padding: 11px 14px; border-bottom: 1px dashed var(--rule); }
.tx:last-child { border-bottom: 0; }
.tx-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-dim); }
.tx-ref { color: var(--blood-ink); }
.tx-ooc .tx-ref { color: var(--ooc); }
.tx-title { margin: 5px 0 3px; font-family: var(--font-ui); font-weight: 700; font-size: 1rem; color: #fff; }
.tx-body { margin: 0; color: var(--text-soft, #d8d0c6); font-size: 0.92rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tx-more { margin-top: 6px; padding: 0; background: none; border: 0; font-family: var(--font-mono); font-size: 0.84rem; color: var(--gold-bright); cursor: pointer; }
.tx-more:hover { text-decoration: underline; }
.log-group { padding: 0 12px; }
.log-zone { margin: 10px 0 4px; }
.log-panel .activity-list { border-top: 0; }
.log-panel .activity-row { padding: 6px 2px; }
.log-empty { margin: 0; padding: 12px 14px; font-family: var(--font-mono); font-size: 0.84rem; color: var(--text-dim); }
.leave-panel .loa-strip { padding: 10px 12px 0; display: grid; gap: 8px; }
.leave-panel .empty { padding: 8px 10px; }

/* ---------- Roster: directory + dossier ---------- */
body.has-sys-nav #membersRoster { display: none !important; }
.dir-layout { display: grid; grid-template-columns: minmax(260px, 350px) minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 16px; }
.dir-list { background: var(--surface); border: 1px solid var(--rule); max-height: calc(100vh - var(--hdr-h) - 120px); overflow-y: auto; position: sticky; top: calc(var(--hdr-h) + 14px); }
.dir-group { margin: 0; padding: 12px 12px 5px; font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); border-bottom: 1px solid var(--rule); background: #131112; position: sticky; top: 0; z-index: 1; }
.dir-group.tier-high { color: var(--blood-ink); } .dir-group.tier-low { color: var(--gold-bright); } .dir-group.tier-training { color: #b58aff; }
.dir-row { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; grid-template-areas: "ref name rank" "ref status status"; gap: 1px 8px; align-items: center; width: 100%; padding: 8px 12px; background: none; border: 0; border-left: 2px solid transparent; border-bottom: 1px solid var(--rule-soft); color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.dir-row:hover { background: var(--surface-2); }
.dir-row.is-selected { background: rgba(210, 42, 47, 0.12); border-left-color: var(--blood-bright); }
.dir-row:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: -2px; }
.dir-ref { grid-area: ref; font-family: var(--font-mono); font-size: 0.84rem; color: var(--text-dim); }
.dir-name { grid-area: name; font-weight: 600; font-size: 0.98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dir-row .rank-pill { grid-area: rank; font-size: 0.8rem; }
.dir-status { grid-area: status; font-family: var(--font-mono); font-size: 0.84rem; color: var(--text-dim); }
.dir-status.st-active { color: #86dbac; }
.dossier { position: relative; background: var(--surface); border: 1px solid var(--rule); border-top: 0; padding-bottom: 16px; min-height: 360px; }
.dossier .worn-stamp { top: 46px; right: 20px; transform: rotate(-6deg); }
.dossier-back { display: none; }
.dossier-head { padding: 18px 18px 8px; }
.dossier-name { margin: 0 0 8px; font-family: var(--font-ui); font-weight: 700; font-size: 1.6rem; color: #fff; }
.dossier-stamp ~ .dossier-head .dossier-name { padding-right: 170px; }
.dossier-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.dossier-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 6px 18px 12px; border-top: 1px solid var(--rule); }
.dossier-field { padding: 10px 0; border-bottom: 1px dashed var(--rule-soft); }
.dossier-field.wide { grid-column: 1 / -1; }
.dossier-field dt { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; }
.dossier-field dd { margin: 3px 0 0; font-size: 1rem; color: var(--text); }
.dossier-field.mono dd { font-family: var(--font-mono); }
.dossier-field.notes dd { white-space: pre-wrap; line-height: 1.55; }
.dossier-field.is-watch dd { color: #ff8a80; }
.dossier-branded { display: inline-flex; align-items: center; gap: 6px; color: var(--text-dim); }
.dossier-branded.is-yes { color: var(--gold-bright); }
.dossier-strikes { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); }
.dossier-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 18px; }

/* ---------- Phones ---------- */
@media (max-width: 860px) {
  :root { --hdr-h: 58px; }
  body.has-sys-nav .site-header { padding: 0 12px; }
  body.has-sys-nav .brand-logo { width: 38px; height: 38px; }
  body.has-sys-nav .brand-name { font-size: 1.05rem; }
  body.has-sys-nav .brand-sys { font-size: 0.8rem; }
  body.has-sys-nav .hud-line { display: none; }
  body.has-sys-nav .hud .btn { padding: 6px 10px; min-height: 34px; }
  body.has-sys-nav .sys-menu-btn {
    display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 7px 11px; min-height: 36px;
    background: var(--surface-2); border: 1px solid #4a4445; color: #fff; font-family: var(--font-mono); font-size: 0.86rem; cursor: pointer;
  }
  body.has-sys-nav .sys-menu-btn::before { content: "≡"; font-size: 1.1rem; line-height: 1; }
  body.has-sys-nav .hud { margin-left: 0; }
  body.has-sys-nav .sys-nav { display: none; top: var(--hdr-h); width: auto; right: 0; bottom: auto; max-height: calc(100vh - var(--hdr-h)); border-right: 0; border-bottom: 1px solid var(--rule); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6); }
  body.has-sys-nav.sys-nav-open .sys-nav { display: block; }
  body.has-sys-nav main { margin-left: 0; padding: 14px 12px 32px; }
  body.has-sys-nav .site-footer { margin-left: 0; }
  .ops-grid { grid-template-columns: 1fr; }
  .home-map { height: 62vh; margin: 10px; }
  .ops-ledger .cmd-deck-threat { margin-left: 0; }
  .dir-layout { grid-template-columns: 1fr; }
  .dir-list { position: static; max-height: none; }
  .dir-layout .dossier { display: none; }
  .dir-layout.is-open .dossier { display: block; }
  .dir-layout.is-open .dir-list { display: none; }
  .dossier-back { display: inline-block; margin: 22px 12px 0; padding: 6px 10px; background: var(--surface-2); border: 1px solid #4a4445; color: #fff; font-family: var(--font-mono); font-size: 0.86rem; cursor: pointer; }
  .dossier .file-tabs { margin-top: 18px; }
  .dossier .worn-stamp { top: 80px; }
  .dossier-name { padding-right: 0; font-size: 1.35rem; margin-top: 18px; }
  .dossier-fields { grid-template-columns: 1fr; }
}

/* ---------- Fixes from the first look ---------- */
.worn-stamp.stamp-inline { position: static; transform: rotate(-3deg); margin-left: auto; font-size: 0.82rem; padding: 2px 8px; }
.rel-count { white-space: nowrap; }
.ledger-seg { white-space: nowrap; }
@media (max-width: 860px) {
  body.has-sys-nav .header-inner { gap: 8px; }
  body.has-sys-nav .brand { gap: 8px; flex: 1 1 auto; }
  body.has-sys-nav .brand-text { min-width: 0; }
  body.has-sys-nav .brand-name { font-size: 1rem; }
  body.has-sys-nav .brand-sys { font-size: 0.84rem; gap: 6px; }
  body.has-sys-nav .brand-sys-name { display: none; }
  body.has-sys-nav .sys-menu-btn { margin-left: 0; padding: 6px 10px; flex: none; }
  .sys-menu-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.has-sys-nav .sys-menu-btn::before { font-size: 1.35rem; }
  body.has-sys-nav .hud { flex: none; }
  .ops-ledger { gap: 4px 14px; }
  .ops-ledger .ledger-clock, .ops-ledger .cmd-deck-threat { display: none; }
  .ops-toolbar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .ops-toolbar .home-actions-grid { flex-wrap: nowrap; }
  .ops-toolbar .home-action { white-space: nowrap; }
  .file-tab { font-size: 0.95rem; }
  .worn-stamp.stamp-inline { display: none; }
  .dossier .worn-stamp { position: static; display: inline-block; margin: 10px 18px 0; transform: rotate(-3deg); }
}
/* Phone header: deterministic grid — [menu] [emblem + name] [logout] */
@media (max-width: 860px) {
  body.has-sys-nav .header-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
  body.has-sys-nav .sys-menu-btn { grid-column: 1; grid-row: 1; position: relative; z-index: 2; }
  body.has-sys-nav .brand { grid-column: 2; grid-row: 1; min-width: 0; }
  body.has-sys-nav .hud { grid-column: 3; grid-row: 1; width: auto; justify-content: flex-end; }
  body.has-sys-nav .brand-name, body.has-sys-nav .brand-sys { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* Phone polish */
.ops-toolbar .home-action-label { white-space: nowrap; }
@media (max-width: 860px) {
  .ops-ledger .ledger-rel { white-space: normal; flex-wrap: wrap; gap: 2px 8px; }
  .tx-panel .tx:nth-child(n+3) { display: none; }
  .log-panel .activity-list li:nth-child(n+5) { display: none; }
  .toolbar-label { display: none; }
}
/* Readability floor for concept labels (12.6px desktop / 13.4px phone) */
.dir-row .rank-pill, .ledger-user .rank-pill, .dossier-tags .rank-pill, .dossier-tags .status-pill { font-size: 0.84rem; }
.tx-head, .dossier-field dt, .worn-stamp.stamp-inline { font-size: 0.84rem; }
.dir-row .rank-pill.rank-shadow-lord, .ledger-user .rank-pill.rank-shadow-lord, .dossier-tags .rank-pill.rank-shadow-lord { color: #ff7470; border-color: #ff7470; }

/* =====================================================================
   Finished design pass
   ===================================================================== */

/* ---------- Restraint: nothing pulses, blinks or scans in the member site ---------- */
body.has-sys-nav .cursor, body.has-sys-nav .comms-status-led, body.has-sys-nav .cmd-deck-led,
body.has-sys-nav .war-alert, body.has-sys-nav .ally-war, body.has-sys-nav .allies-tier-label,
body.has-sys-nav .cmd-deck-strikes-text, body.has-sys-nav .cmd-deck-threat-value,
body.has-sys-nav .watch-list-flag, body.has-sys-nav .intruder-row, body.has-sys-nav .intruder-status { animation: none !important; }
body.has-sys-nav .zone-banner { display: none; }

/* ---------- Page headings: purpose labels ---------- */
body.has-sys-nav .section-head { flex-wrap: wrap; row-gap: 6px; }
body.has-sys-nav .section-head h2 { font-family: var(--font-head) !important; font-size: 1.7rem; letter-spacing: 0.05em; }
.page-purpose { order: 3; flex: 1 0 100%; margin: 0; color: var(--text-soft, #d8d0c6); font-size: 0.95rem; line-height: 1.5; }
.dir-name { white-space: normal; }
.purpose-zone { display: inline-block; margin-right: 6px; padding: 0 6px; border: 1px solid; font-family: var(--font-mono); font-size: 0.84rem; font-weight: 700; letter-spacing: 0.04em; line-height: 1.5; vertical-align: 1px; }
.purpose-ic { color: var(--blood-ink); border-color: rgba(240, 122, 122, 0.55); }
.purpose-ooc { color: var(--ooc); border-color: rgba(143, 169, 196, 0.6); }
.purpose-sys { color: var(--gold-bright); border-color: rgba(214, 187, 132, 0.55); }

/* ---------- Home: identity first, then network status ---------- */
.ops-ledger { gap: 6px 18px; }
.ledger-id { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.net-status { flex: 1 1 auto; min-width: 0; }
.net-status-summary { display: none; }
.net-status-body { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.net-status-body .cmd-deck-threat { margin-left: auto; }
.ops-toolbar .home-action-sub { display: none; }

/* ---------- Home: desktop balance ---------- */
/* The map column stretches to the height of the transmissions column, so no empty band is left under it */
.ops-grid { grid-template-columns: minmax(0, 1.55fr) minmax(330px, 1fr); align-items: stretch; }
.ops-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.ops-main .map-panel { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 540px; }
.ops-main .home-map { flex: 1 1 auto; height: auto; min-height: 440px; }
.ops-side { align-content: start; }
.leave-panel .loa-strip { padding-bottom: 12px; }

/* ---------- Drop map page: same charcoal treatment and selected state ---------- */
body.has-sys-nav .dropmap-pin { background: var(--pin); border-color: var(--pin-ring); box-shadow: 0 0 0 2px rgba(10, 8, 9, 0.7); }
body.has-sys-nav .dropmap-point:hover .dropmap-pin { background: var(--pin-hot); box-shadow: 0 0 0 2px #120f10, 0 0 0 5px rgba(255, 90, 95, 0.35); }
body.has-sys-nav .dropmap-point.is-sub .dropmap-pin { background: #f19a9c; border-color: #120f10; box-shadow: 0 0 0 1px rgba(10, 8, 9, 0.7); }
body.has-sys-nav .dropmap-point-label { background: rgba(24, 21, 22, 0.86); color: #f6efe6; border-color: rgba(246, 239, 230, 0.14); font-family: var(--font-ui); font-weight: 600; }
body.has-sys-nav .dropmap-point.is-selected { z-index: 7; transform: translate(-50%, -100%) scale(1.2); }
body.has-sys-nav .dropmap-point.is-selected .dropmap-pin { background: var(--pin-hot); border-color: #fff; box-shadow: 0 0 0 2px #120f10, 0 0 0 6px rgba(255, 90, 95, 0.4); }
body.has-sys-nav .dropmap-point.is-selected .dropmap-point-label,
body.has-sys-nav .dropmap-point:hover .dropmap-point-label { opacity: 1; background: var(--pin); border-color: var(--pin); color: #fff; }

/* ---------- Directory + file pages (shared) ---------- */
body.has-sys-nav #announceList, body.has-sys-nav #oocAnnounceList, body.has-sys-nav #alliesTiers,
body.has-sys-nav #acctGrid, body.has-sys-nav .drops-table-wrap .data-table, body.has-sys-nav #ooc-loa .loa-section { display: none !important; }
body.has-sys-nav .drops-table-wrap { border: 0; background: none; padding: 0; overflow: visible; }
.dir-layout.is-empty { display: none; }
.dir-layout { margin-top: 18px; }
.dir-group.tier-ooc { color: var(--ooc); }
.dir-group.tier-ic { color: var(--blood-ink); }
.dir-status.is-warn { color: #e8c15a; }
.dossier-head + .dossier-fields, .dossier > .dossier-fields { margin-top: 6px; }
.field-sub { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: 0.84rem; color: var(--text-dim); }
.dossier-field.is-muted dd { color: var(--text-dim); font-style: italic; }
.dossier-field.is-warn dd { color: #e8c15a; }
.dossier-actions { padding: 6px 18px 0; }
.file-section { position: relative; margin: 16px 18px 0; border: 1px solid var(--rule); background: #1a1819; }
.file-section-title { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border-bottom: 1px solid var(--rule); font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; color: #f2ece3; }
.file-section-title .purpose-zone { margin: 0; text-transform: none; }
.file-section-ic { border-left: 3px solid var(--blood-bright); }
.file-section-ooc { border-color: rgba(143, 169, 196, 0.38); border-left: 3px solid var(--ooc); background: #181a1d; }
.file-section-ooc .file-section-title { border-bottom-color: rgba(143, 169, 196, 0.25); }
.file-section-sys { border-left: 3px solid var(--gold-bright); padding-bottom: 10px; }
.file-section-note { margin: 8px 12px 0; font-size: 0.9rem; color: var(--text-dim); }
.file-section .dossier-fields { margin: 2px 12px 8px; border-top: 0; }
.file-section .dossier-actions { padding: 0 12px 12px; }
.file-section-sys .acct-recruit { margin: 10px 12px 0; }
.file-locked { margin: 14px 18px 0; padding: 8px 12px; border: 1px dashed var(--rule); font-size: 0.92rem; color: var(--text-dim); }

/* ---------- Intel / Notices: transmission records ---------- */
.tx-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tx-full { margin: 4px 18px 6px; padding: 14px 16px; background: #1a1819; border-left: 3px solid var(--blood-bright); color: var(--text); font-size: 1.02rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 78ch; }
#oocTxFile .tx-full { border-left-color: var(--ooc); }

/* ---------- Relations: faction files ---------- */
.rel-pill { grid-area: rank; padding: 1px 7px; border: 1px solid currentColor; font-family: var(--font-mono); font-size: 0.84rem; font-weight: 700; letter-spacing: 0.04em; }
.rel-pill.rel-war, .rel-head.rel-war, .rel-standing.rel-war .rel-standing-v { color: #ff7b72; }
.rel-pill.rel-beef, .rel-head.rel-beef, .rel-standing.rel-beef .rel-standing-v { color: #f0a160; }
.rel-pill.rel-upset, .rel-head.rel-upset, .rel-standing.rel-upset .rel-standing-v { color: #e8c15a; }
.rel-pill.rel-neutral, .rel-head.rel-neutral, .rel-standing.rel-neutral .rel-standing-v { color: #c4bcb2; }
.rel-pill.rel-good, .rel-head.rel-good, .rel-standing.rel-good .rel-standing-v { color: #86dbac; }
.rel-standing { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "k k" "v sub"; align-items: baseline; gap: 2px 14px; margin: 4px 18px 0; padding: 10px 14px; background: #1a1819; border: 1px solid var(--rule); border-left: 4px solid currentColor; }
.rel-standing.rel-war { color: #ff7b72; } .rel-standing.rel-beef { color: #f0a160; } .rel-standing.rel-upset { color: #e8c15a; } .rel-standing.rel-neutral { color: #8f8a85; } .rel-standing.rel-good { color: #86dbac; }
.rel-standing-k { grid-area: k; font-family: var(--font-mono); font-size: 0.84rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; }
.rel-standing-v { grid-area: v; font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; line-height: 1.1; letter-spacing: 0.06em; }
.rel-standing-sub { grid-area: sub; font-size: 0.95rem; color: var(--text-soft, #d8d0c6); }

/* ---------- Weapon drops: ledger ---------- */
.dir-layout-ledger { grid-template-columns: minmax(0, 1.25fr) minmax(340px, 1fr); }
.ledger-head, .ledger-row { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr) auto; gap: 2px 12px; }
.ledger-head { padding: 9px 12px 7px; background: #131112; border-bottom: 1px solid var(--rule); font-family: var(--font-mono); font-size: 0.84rem; color: var(--text-dim); position: sticky; top: 0; z-index: 1; }
.ledger-head .lr-r { text-align: right; }
.ledger-row { grid-template-areas: "ref main total" "ref sub prog"; align-items: baseline; width: 100%; padding: 9px 12px; background: none; border: 0; border-left: 2px solid transparent; border-bottom: 1px dashed var(--rule-soft); color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.ledger-row:hover { background: var(--surface-2); }
.ledger-row.is-selected { background: rgba(210, 42, 47, 0.12); border-left-color: var(--blood-bright); }
.ledger-row:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: -2px; }
.lr-ref { grid-area: ref; font-family: var(--font-mono); font-size: 0.84rem; color: var(--text-dim); }
.lr-main { grid-area: main; font-weight: 600; font-size: 0.96rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-total { grid-area: total; font-family: var(--font-mono); font-size: 0.92rem; text-align: right; color: #f2ece3; }
.lr-sub { grid-area: sub; font-size: 0.9rem; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-prog { grid-area: prog; display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; font-family: var(--font-mono); font-size: 0.84rem; color: var(--text-soft, #d8d0c6); white-space: nowrap; }
.drop-state { display: inline-flex; align-items: center; gap: 7px; padding: 2px 9px; border: 1px solid #3a3435; font-family: var(--font-mono); font-size: 0.86rem; }
.drop-file-items { margin: 2px 18px 4px; border: 1px solid var(--rule); background: #1a1819; }
.dfi-row { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: 10px; padding: 7px 12px; border-bottom: 1px dashed var(--rule-soft); }
.dfi-row:last-child { border-bottom: 0; }
.dfi-qty { font-family: var(--font-mono); color: var(--blood-ink); font-weight: 700; }
.dfi-name { font-weight: 600; }
.dfi-sp { font-family: var(--font-mono); font-size: 0.86rem; color: var(--text-dim); }
.drop-steps { padding-top: 10px; }
.dossier-actions .btn.is-step { border-color: var(--blood-bright); color: #fff; background: rgba(210, 42, 47, 0.18); }

/* ---------- Radio: communications panel ---------- */
body.has-sys-nav #radio .comms-console { overflow: visible; padding: 0 0 18px; background: var(--surface); border: 1px solid var(--rule); border-top: 0; clip-path: none; }
body.has-sys-nav #radio .comms-console > .file-tabs { margin-bottom: 6px; }
body.has-sys-nav #radio .comms-head { padding: 12px 18px 4px; }
body.has-sys-nav #radio .comms-tag { display: none; }
body.has-sys-nav #radio .comms-title { font-family: var(--font-head) !important; font-size: 1.35rem; color: #fff; }
body.has-sys-nav #radio .comms-actions { padding: 6px 18px 14px; flex-wrap: wrap; row-gap: 8px; }
body.has-sys-nav #radio .freq-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0 18px; }
body.has-sys-nav #radio .freq-tile { display: grid; gap: 4px; padding: 14px 16px 12px; text-align: left; background: #1d1a1b; border: 1px solid #3a3435; clip-path: none; transform: none; box-shadow: none; }
body.has-sys-nav #radio .freq-tile::before, body.has-sys-nav #radio .freq-tile .signal,
body.has-sys-nav #radio .freq-tile .channel-line, body.has-sys-nav #radio .freq-tile .copy-icon { display: none; }
body.has-sys-nav #radio .freq-tile .idx { position: static; font-family: var(--font-mono); font-size: 0.86rem; color: var(--text-dim); }
body.has-sys-nav #radio .freq-tile .num { font-family: var(--font-mono); font-size: 2.15rem; font-weight: 600; line-height: 1.15; letter-spacing: 0.02em; color: #fff; }
.freq-copy-hint { font-family: var(--font-mono); font-size: 0.86rem; color: var(--gold-bright); }
body.has-sys-nav #radio .freq-tile:hover { border-color: var(--blood-bright); background: #221e1f; }
body.has-sys-nav #radio .freq-tile.just-copied { border-color: #86dbac; background: rgba(134, 219, 172, 0.1); }
.freq-tile.just-copied .freq-copy-hint { color: #86dbac; font-weight: 700; }
.comms-copied { flex-basis: 100%; min-height: 1.6em; margin: 0; font-family: var(--font-mono); font-size: 0.92rem; color: #86dbac; visibility: hidden; }
.comms-copied.is-on { visibility: visible; }

/* ---------- Phones ---------- */
@media (max-width: 860px) {
  .dossier-stamp ~ .dossier-head .dossier-name { padding-right: 0; }
  body.has-sys-nav .section-head h2 { font-size: 1.45rem; }
  .page-purpose { font-size: 0.92rem; }

  /* Home: who you are first */
  .ops-ledger { display: block; padding: 12px 14px; }
  .ledger-id { gap: 8px 12px; }
  .ledger-user { flex-wrap: wrap; white-space: normal; }
  .ledger-user .ledger-k { display: none; }
  .ledger-user .ledger-v { font-size: 1.15rem; }
  .net-status { margin-top: 10px; border-top: 1px solid var(--rule); }
  .net-status-summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 2px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; color: #f2ece3; cursor: pointer; list-style: none; }
  .net-status-summary::-webkit-details-marker { display: none; }
  .net-status-summary::after { content: "Show ▾"; font-family: var(--font-mono); font-size: 0.86rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--gold-bright); }
  .net-status[open] .net-status-summary::after { content: "Hide ▴"; }
  .net-status-body { display: grid; gap: 8px; padding: 2px 2px 6px; }
  .net-status-body .ledger-counts { display: grid; gap: 8px; }
  .net-status-body .ledger-clock, .net-status-body .cmd-deck-threat { display: flex; margin-left: 0; }
  .ops-ledger .ledger-rel { white-space: normal; flex-wrap: wrap; }

  /* Quick actions: a full grid of tappable buttons, nothing cut off */
  .toolbar-label { display: block; margin: 0 0 2px; font-size: 1.05rem; color: #f2ece3; }
  .ops-toolbar { display: block; overflow: visible; padding: 0; margin-top: 14px; }
  .ops-toolbar .home-actions-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
  .ops-toolbar .home-action { min-height: 48px; padding: 8px 12px; justify-content: flex-start; text-align: left; white-space: normal; font-size: 0.95rem; }
  .ops-toolbar .home-action-label { white-space: normal; }

  /* Order on phones: transmissions, map, record log, leave */
  .ops-grid { display: flex; flex-direction: column; gap: 22px; }
  .ops-main, .ops-side { display: contents; }
  .tx-panel { order: 1; } .map-panel { order: 2; } .log-panel { order: 3; } .leave-panel { order: 4; }
  .ops-main .map-panel { min-height: 0; }
  .ops-main .home-map { flex: none; height: min(56vh, 470px); min-height: 300px; }
  .tx-body { -webkit-line-clamp: 2; }

  /* Pages */
  .dir-layout-ledger { grid-template-columns: 1fr; }
  .tx-fields { grid-template-columns: 1fr; }
  .tx-full { margin: 4px 12px 6px; padding: 12px; }
  .file-section { margin: 14px 12px 0; }
  .dossier-actions { padding: 6px 12px 0; }
  .dossier-actions .btn { min-height: 44px; }
  .rel-standing { margin: 4px 12px 0; grid-template-columns: 1fr; grid-template-areas: "k" "v" "sub"; }
  .drop-file-items { margin: 2px 12px 4px; }
  body.has-sys-nav #radio .freq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 12px; gap: 10px; }
  body.has-sys-nav #radio .freq-tile .num { font-size: 1.75rem; }
  body.has-sys-nav #radio .comms-head, body.has-sys-nav #radio .comms-actions { padding-left: 12px; padding-right: 12px; }
  body.has-sys-nav #radio .comms-actions .btn { min-height: 44px; }
}
/* File references never wrap */
.dir-row { grid-template-columns: 4.7rem minmax(0, 1fr) auto; grid-template-areas: "ref name name" "ref status rank"; row-gap: 3px; }
.dir-ref { white-space: nowrap; }
.dir-name { overflow-wrap: break-word; }
#dirList .dir-row { grid-template-columns: 3.4rem minmax(0, 1fr) auto; }
.dir-row .rank-pill, .dir-row .rel-pill, .dir-row .loa-pill { justify-self: end; align-self: center; }
body.has-sys-nav .loa-note { display: none; }
body.has-sys-nav #radio .comms-head { align-items: center; }
body.has-sys-nav #radio .freq-tile .num { text-align: left; }
@media (max-width: 860px) {
  .ledger-head { display: none; }
  .lr-main, .lr-sub { white-space: normal; }
  .ledger-row { grid-template-columns: 4.7rem minmax(0, 1fr) auto; }
}

/* =====================================================================
   Final adjustments (review round 3)
   ===================================================================== */

/* ---------- Drop map labels: only where they fit (concept.js placeMapLabels) ---------- */
body.has-sys-nav .dropmap-point-label { opacity: 1; }
body.has-sys-nav .dropmap-point.label-hidden .dropmap-point-label { visibility: hidden; }
/* Keyboard focus or selection always shows that point's label, above the others; so does hover,
   but only where hover is real (a mouse) — touch screens leave a "sticky" hover after a tap */
body.has-sys-nav .dropmap-point:focus-visible .dropmap-point-label,
body.has-sys-nav .dropmap-point.is-selected .dropmap-point-label { visibility: visible; z-index: 8; }
@media (hover: hover) {
  body.has-sys-nav .dropmap-point:hover .dropmap-point-label { visibility: visible; z-index: 8; }
}
body.has-sys-nav .dropmap-point:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; z-index: 7; }
/* Touch screens keep the stock 28px pin tap area: a larger one overlaps neighbouring pins in dense
   clusters and makes taps select the wrong point (measured: 27/43 correct at 40px vs 35/43 at 28px). */

/* ---------- Member administration (no IC/OOC claim) ---------- */
.file-section-admin { border-left: 3px solid #8a7d6e; background: #1b1918; }
.file-section-admin .file-section-title { border-bottom-color: #3a3435; }

/* ---------- Radio: communications terminal ---------- */
body.has-sys-nav #radio .comms-title { font-size: 1.75rem; letter-spacing: 0.06em; color: #fff; text-transform: uppercase; }
body.has-sys-nav #radio .comms-head { border-bottom: 1px solid var(--rule); padding-bottom: 12px; margin-bottom: 4px; }
body.has-sys-nav #radio .comms-title-block { display: grid; gap: 4px; }
body.has-sys-nav #radio .comms-title-block::after { content: ""; width: 56px; height: 3px; background: var(--blood-bright); }
.comms-channels-head { margin: 6px 18px 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.08em; text-transform: uppercase; color: #f2ece3; display: flex; align-items: center; gap: 10px; }
.comms-channels-head::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
@media (max-width: 860px) {
  .comms-channels-head { margin: 6px 12px 10px; }
  body.has-sys-nav #radio .comms-title { font-size: 1.4rem; }
}

/* ---------- Intrusion alert: no pulsing with reduced motion; a static, unmissable treatment instead ---------- */
@media (prefers-reduced-motion: reduce) {
  .intrusion-banner, .intrusion-banner * { animation: none !important; transition: none !important; }
  .intrusion-banner { border-top: 4px solid var(--blood-bright); border-bottom: 4px solid var(--blood-bright); box-shadow: none; }
  .intrusion-banner .intrusion-icon { width: 34px; height: 34px; background: var(--blood-bright); border-color: #fff; color: #fff; font-weight: 800; font-size: 1.25rem; }
  .intrusion-banner .intrusion-title { font-weight: 800; color: #fff; }
  .intrusion-banner.is-breach { border-width: 6px; }
  .intrusion-banner.is-trace { border-top-color: var(--text-dim); border-bottom-color: var(--text-dim); }
  .intrusion-banner.is-trace .intrusion-icon { background: transparent; border-color: var(--text-dim); color: var(--text); }
}

/* ---------- Selected drop point: clamped popup (desktop) / full-width panel (phones) ---------- */
body.has-sys-nav .dropmap-popup.is-clamped { transform: none !important; max-width: calc(100% - 16px); overflow-y: auto; }
body.has-sys-nav .dropmap-popup.is-panel {
  position: static; transform: none !important; width: auto; max-width: none; max-height: none;
  margin-top: 10px; padding: 14px 14px 12px; border-left: 3px solid var(--pin, #e3363c); box-shadow: none;
}
body.has-sys-nav .dropmap-popup.is-panel::before, body.has-sys-nav .dropmap-popup.is-panel::after { display: none; }
body.has-sys-nav .dropmap-popup.is-panel .dropmap-popup-close { top: 6px; right: 6px; min-width: 44px; min-height: 44px; font-size: 1.5rem; }
body.has-sys-nav .dropmap-popup.is-panel .dropmap-popup-title { margin-right: 48px; font-size: 1.15rem; overflow-wrap: anywhere; }
body.has-sys-nav .dropmap-popup.is-panel .dropmap-popup-notes { font-size: 0.95rem; }
body.has-sys-nav .dropmap-popup.is-panel .dropmap-subs-list li { min-height: 44px; display: flex; align-items: center; gap: 8px; }
body.has-sys-nav .dropmap-popup.is-panel .dropmap-popup-actions .btn,
body.has-sys-nav .dropmap-popup.is-panel .dropmap-subs-add { min-height: 44px; padding: 8px 14px; }
body.has-sys-nav .dropmap-popup-title, body.has-sys-nav .dropmap-popup-notes { overflow-wrap: anywhere; }
/* Short landscape phones: the stock rule sizes the map to the screen height (about 170px wide here) */
@media (max-height: 500px) and (max-width: 1000px) {
  body.has-sys-nav .dropmap-wrap { max-width: min(100%, 420px); }
}
/* A pin near the top of the visible map points upward; its tip stays on the stored coordinate */
body.has-sys-nav .dropmap-point.is-flipped { transform: translate(-50%, 0); }
body.has-sys-nav .dropmap-point.is-flipped:hover { transform: translate(-50%, 0) scale(1.15); }
body.has-sys-nav .dropmap-point.is-flipped.is-selected { transform: translate(-50%, 0) scale(1.2); transform-origin: 50% 0; }
body.has-sys-nav .dropmap-point.is-flipped .dropmap-pin { transform: rotate(135deg); margin-top: 4px; }
body.has-sys-nav .dropmap-point.is-flipped::after { display: none; }
body.has-sys-nav .dropmap-point.is-flipped .dropmap-point-label { bottom: auto; top: 100%; transform: translateX(-50%) translateY(4px); }
@media (pointer: coarse) {
  body.has-sys-nav .dropmap-point.is-flipped .dropmap-pin,
  body.has-sys-nav .dropmap-point.is-flipped.is-sub .dropmap-pin { margin-top: 4px; }
}
/* No sliding: the label layout measures pins where they end up (flip and selection change their position) */
body.has-sys-nav .dropmap-point { transition: none; }
/* A label narrowed to fit the map ends in an ellipsis instead of being cut */
body.has-sys-nav .dropmap-point-label { overflow: hidden; text-overflow: ellipsis; }
/* In the phone panel every sub-spot is listed; the list doesn't scroll inside itself */
body.has-sys-nav .dropmap-popup.is-panel .dropmap-subs-list { max-height: none; overflow: visible; }

/* ---------- Drop map: "Which point?" list for taps between close pins (touch only) ---------- */
.map-chooser { position: absolute; z-index: 25; display: grid; gap: 4px; width: min(260px, calc(100% - 16px)); padding: 8px; background: rgba(18, 15, 16, 0.97); border: 1px solid #4a4445; border-left: 3px solid var(--pin, #e3363c); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); }
.map-chooser[hidden] { display: none; }
.map-chooser-head { margin: 0 0 2px; font-family: var(--font-mono); font-size: 0.84rem; color: var(--text-dim); }
.map-chooser-item, .map-chooser-cancel { min-height: 44px; padding: 8px 10px; background: #1d1a1b; border: 1px solid #3a3435; color: #f2ece3; font: 600 0.95rem var(--font-ui); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.map-chooser-item:hover, .map-chooser-item:focus-visible { border-color: var(--pin, #e3363c); background: #2a1c1d; outline: none; }
.map-chooser-sub { font-weight: 400; color: var(--text-dim); }
.map-chooser-cancel { text-align: center; color: var(--text-dim); font-weight: 500; }
