/* Arkham shell (S1 of the map-home redesign). Everything here applies only
   under <html data-theme="arkham"> (set by nexus-shell-flag.js), so the
   classic shell renders exactly as before.

   The token block re-values names that already exist in dashboard.css, so
   every room picks the theme up without per-room edits. Values follow
   Arkham's palette (navy surfaces, one blue accent), measured against WCAG:
   - text tiers on every surface: text-1 14.2-16.6, text-2 7.9-9.2,
     text-3 5.6-6.5, text-4 4.3-5.0 (still not for text on --bg-3, as before);
   - the accent #2563EB is a FILL with white ink (5.17:1) and never text
     (3.2-3.8:1 on the surfaces); hover #1D4ED8 is 6.70:1;
   - the focus blue #3B82F6 is 4.5-5.3:1; field edges keep #646a77 (3.06+:1),
     because Arkham's #272C3A control edge is ~1.35:1 and fails the 3:1 rule.
   Tab and section labels stay normal case with no tracking (Hallmark gate). */
:root[data-theme="arkham"] {
  --bg-0: #0c0c14;
  --bg-1: #10111a;
  --bg-2: #151620;
  --bg-3: #1c1e26;
  --bg-row-alt: #161722;
  --bg-hovercard: #20232e;
  --border: #20232e;
  --border-strong: #3c414f;
  --border-active: #3b82f6;
  --text-1: #ededed;
  --text-2: #abb2ca;
  --text-3: #8f95a8;
  --text-4: #7d8191;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-ink: #ffffff;
  --accent-soft: rgba(37, 99, 235, 0.14);
  --accent-line: rgba(59, 130, 246, 0.55);
  --accent-wash: rgba(59, 130, 246, 0.08);
  --accent-text: #81b4f0;
  --focus-ring: #3b82f6;
  --blue: #81b4f0;
  --blue-soft: rgba(129, 180, 240, 0.12);
  --link: #81b4f0;
  --page-bg: #0c0c14;
  --page-ink: #ededed;
  --pane-bg: #10111a;
  --pane-border: #20232e;
  --chip-border: #3c414f;
  --topbar-h: 54px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --km-company: #8e9ab8;
  --net-company: #8e9ab8;
  --net-person: #b48ead;
  --net-community: #6fa59a;
  --net-ground: #0c0c14;
  --net-grid: rgba(175, 158, 219, 0.14);
  --net-select: #3b82f6;
  --net-edge-confirmed: #abb2ca;
  --net-glass: rgba(16, 17, 26, 0.94);
  --map-edge-active: #3b82f6;
  --scrim: rgba(0, 0, 0, 0.6);
  --shadow-popover: 0 8px 20px rgba(0, 0, 0, 0.14);
  --shadow-primary: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 6px 18px -8px rgba(37, 99, 235, 0.5);
  --shadow-primary-hover:
    0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 10px 24px -10px rgba(37, 99, 235, 0.62);
  --layer-1: #d95926;
  --layer-2: #dccc82;
  --layer-3: #9085e9;
  /* One status badge per dot (S3), status colours only, never the focus blue. */
  --net-badge-replied: var(--green);
  --net-badge-warm: var(--km-question);
  --net-badge-campaign: var(--text-2);
  --net-pin: var(--text-1);
  /* The ring a dot a finding added wears until it is selected (G11). Static. */
  --net-fresh: var(--text-1);
  /* The halo of a record with Activity past your seen mark (S5). --net-halo
     stays the connector's mark. */
  --net-new: #ededed;
}

/* ── Top bar: the main pages live here; the sidebar steps aside ─────── */
:root[data-theme="arkham"] .topbar {
  height: var(--topbar-h);
  background: var(--bg-0);
  border-bottom-color: var(--border);
}
:root[data-theme="arkham"] .topbar-left {
  flex: 1;
  min-width: 0;
  gap: 16px;
}
:root[data-theme="arkham"] .os-topbar-search {
  flex: 0 1 260px;
  min-width: 120px;
  margin-left: auto;
}
:root[data-theme="arkham"] .os-topbar-search .topbar-action-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Below 1600 px the pages need the width: search keeps its icon and its
   shortcut (Arkham's compact form) and its accessible name stays "Search". */
@media (max-width: 1600px) {
  :root[data-theme="arkham"] .os-topbar-search {
    flex: none;
    min-width: 0;
  }
  :root[data-theme="arkham"] .os-topbar-search .topbar-action-label {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
  }
}
:root[data-theme="arkham"] .os-topnav {
  flex: none;
}
:root[data-theme="arkham"] #topbar-ws-btn {
  max-width: 180px;
}
:root[data-theme="arkham"] #topbar-ws-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* The Browsers pill keeps its icon, count and tooltip; its word gives way to
   the search field, which Arkham keeps in reach on every page. */
:root[data-theme="arkham"] #topbar-browsers-btn .topbar-action-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 1500px) {
  :root[data-theme="arkham"] .os-brand-sub {
    display: none;
  }
}
.os-topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.os-topnav-link {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.os-topnav-link:hover {
  background: var(--bg-2);
  color: var(--text-1);
}
.os-topnav-link:focus-visible,
.os-topnav-menu-item:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 1px;
}
.os-topnav-link[aria-current="page"],
.os-topnav-link-active {
  color: var(--text-1);
  box-shadow: inset 0 -2px 0 var(--focus-ring);
}
/* A count on a top bar item (NexusTopNav.setCount): mono, never uppercase. */
.os-topnav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin-left: 8px;
  padding: 0 4px;
  color: var(--text-1);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}
.os-topnav-count[hidden] {
  display: none;
}
.os-topnav-more {
  position: relative;
}
.os-topnav-more-btn[aria-expanded="true"] {
  background: var(--bg-2);
  color: var(--text-1);
}
.os-topnav-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  padding: 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-hovercard);
  box-shadow: var(--shadow-popover);
}
.os-topnav-menu[hidden] {
  display: none;
}
.os-topnav-menu-item {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 14px;
  text-decoration: none;
}
.os-topnav-menu-item:hover,
.os-topnav-menu-item[aria-current="page"] {
  background: var(--bg-2);
  color: var(--text-1);
}

/* The rooms now sit in the top bar. The sidebar keeps only a room's own
   context pane (for example the Social channel pages) and vanishes when a
   room has none. Phones (760 px and below) keep today's phone navigation
   until phone parity lands, so these rules are desktop-only. */
@media (max-width: 760px) {
  .os-topnav {
    display: none;
  }
}
@media (min-width: 761px) {
  :root[data-theme="arkham"] .sidebar {
    display: none;
  }
  :root[data-theme="arkham"] .sidebar:has(.sidebar-section-context:not([hidden])) {
    display: flex;
    width: 240px;
    background: var(--bg-0);
    border-right-color: var(--border);
  }
  :root[data-theme="arkham"] .sidebar:has(.sidebar-section-context:not([hidden])) > * {
    display: none;
  }
  :root[data-theme="arkham"]
    .sidebar:has(.sidebar-section-context:not([hidden]))
    > :has(.sidebar-section-context:not([hidden])),
  :root[data-theme="arkham"]
    .sidebar:has(.sidebar-section-context:not([hidden]))
    > .sidebar-section-context {
    display: block;
  }
}
:root[data-theme="arkham"] .content {
  background: var(--bg-0);
}

/* ── Map home: a full-bleed canvas with floating panels ─────────────── */
:root[data-theme="arkham"] #content-wrap:has(.os-net-room--arkham) {
  padding: 0;
  overflow: hidden;
}
.os-net-room--arkham {
  position: relative;
  height: calc(100vh - var(--topbar-h));
  min-height: 480px;
  overflow: hidden;
  background: var(--net-ground);
}
.os-net-room--arkham .os-net-grid {
  position: absolute;
  inset: 0;
  display: block;
  height: auto;
}
.os-net-room--arkham .os-net-stage {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 0;
  background-color: var(--net-ground);
  background-image: radial-gradient(var(--net-grid) 1.15px, transparent 1.15px);
  background-size: 24px 24px;
}
.os-net-room--arkham .os-net-top {
  top: auto;
  bottom: 16px;
  right: auto;
  left: 300px;
  align-items: flex-end;
  gap: 12px;
}
.os-net-room--arkham.os-net-panels-hidden .os-net-top {
  left: 16px;
}
.os-net-room--arkham .os-net-legend {
  right: auto;
  bottom: 12px;
  left: 12px;
  z-index: 5;
  width: 272px;
  max-height: calc(100% - 96px);
  overflow-y: auto;
}
.os-net-room--arkham .os-net-legend-list {
  flex-direction: column;
  gap: 6px;
}
.os-net-panels-btn {
  min-height: 32px;
  white-space: nowrap;
}
.os-net-left,
.os-net-panel {
  position: absolute;
  top: 12px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  max-height: calc(100% - 24px);
  border: 1px solid var(--pane-border);
  border-radius: var(--radius-md);
  background: var(--pane-bg);
  box-shadow: var(--shadow-popover);
}
.os-net-left {
  left: 12px;
  width: 272px;
  max-height: calc(100% - 84px);
  gap: 12px;
  padding: 12px;
  overflow-y: auto;
}
.os-net-panel {
  right: 12px;
  width: 360px;
  overflow: hidden;
}
.os-net-panels-hidden .os-net-left,
.os-net-panels-hidden .os-net-panel {
  display: none;
}
.os-net-left-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.os-net-left-title {
  margin: 0;
  color: var(--text-1);
  font-size: 15px;
  font-weight: 500;
}
.os-net-left-label {
  margin: 0;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 12px;
}
.os-net-left .os-net-objective-row {
  flex-wrap: wrap;
  margin: 0;
}
.os-net-left .os-net-overview-back {
  margin: 0;
}
.os-net-panel-tabs {
  display: flex;
  flex: none;
  border-bottom: 1px solid var(--pane-border);
  background: var(--bg-2);
}
.os-net-panel-tab {
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-right: 1px solid var(--pane-border);
  background: none;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
}
.os-net-panel-tab[aria-selected="true"] {
  background: var(--pane-bg);
  color: var(--text-1);
}
.os-net-panel-tab:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: -2px;
}
.os-net-panel-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.os-net-panel-body[hidden] {
  display: none;
}
.os-net-room--arkham .os-net-side {
  position: static;
  max-height: none;
  border: 0;
  border-radius: 0;
  background: none;
}
.os-net-room--arkham .os-net-bar {
  position: absolute;
  top: 12px;
  right: 384px;
  left: 296px;
  z-index: 4;
  flex-wrap: wrap;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--pane-border);
  border-radius: var(--radius-md);
  background: var(--net-glass);
}
.os-net-room--arkham.os-net-panels-hidden .os-net-bar {
  right: 12px;
  left: 12px;
}
.os-net-room--arkham .os-net-drawer {
  position: absolute;
  top: 72px;
  right: 384px;
  left: 296px;
  z-index: 6;
  max-height: calc(100% - 96px);
  overflow-y: auto;
}
.os-net-room--arkham .os-net-plan {
  position: absolute;
  right: 384px;
  bottom: 72px;
  left: 296px;
  z-index: 6;
  max-height: 40%;
  margin: 0;
  overflow-y: auto;
}
.os-net-activity {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.os-net-activity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--pane-border);
}
.os-net-activity-row:nth-child(even) {
  background: var(--bg-row-alt);
}
.os-net-activity-name {
  color: var(--text-1);
  font-size: 13px;
  text-decoration: none;
}
.os-net-activity-name:hover {
  text-decoration: underline;
}
.os-net-activity-kind,
.os-net-activity-time {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 12px;
}
.os-net-activity-time {
  font-variant-numeric: tabular-nums;
}
.os-net-activity-note {
  margin: 0;
  padding: 10px 14px;
  color: var(--text-3);
  font-size: 13px;
}

/* ── Findings that apply on a pause (G11): quiet lines, no motion ───── */
.os-net-findings[hidden],
.os-net-check[hidden],
.os-net-arrived[hidden] {
  display: none;
}
.os-net-findings-btn {
  width: 100%;
  min-height: 32px;
  justify-content: flex-start;
  text-align: left;
  white-space: normal;
}
.os-net-check {
  margin: 0;
}
.os-net-arrived {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-right: 14px;
  border-bottom: 1px solid var(--pane-border);
}
.os-net-arrived .btn {
  min-height: 32px;
}

/* ── Category layers (S2): left-panel rows, rings' legend, Details chips ── */
.os-net-layers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.os-net-layer-list,
.os-net-layer-chips,
.os-net-cat-list,
.os-net-cat-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}
.os-net-layer-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.os-net-layer-row {
  display: grid;
  grid-template-columns: 32px 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 8px;
  border-radius: var(--radius-sm);
}
.os-net-layer-row[aria-current="true"] {
  background: var(--bg-2);
}
.os-net-layer-eye {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text-3);
  opacity: 0.55;
  cursor: pointer;
}
.os-net-layer-eye[aria-pressed="true"] {
  color: var(--text-1);
  opacity: 1;
}
.os-net-layer-eye:focus-visible,
.os-net-layer-name:focus-visible,
.os-net-cat-option:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: -2px;
}
.os-net-layer-swatch {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  border: 2px solid var(--chip-border);
  border-radius: var(--radius-full);
  color: var(--text-1);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1;
}
.os-net-layer-hue-1 {
  border-color: var(--layer-1);
}
.os-net-layer-hue-2 {
  border-color: var(--layer-2);
}
.os-net-layer-hue-3 {
  border-color: var(--layer-3);
}
.os-net-layer-hue-0 {
  width: 16px;
  height: 16px;
  border-color: var(--text-3);
}
.os-net-layer-hue-off {
  border-style: dashed;
}
.os-net-layer-name {
  min-width: 0;
  min-height: 32px;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-1);
  font-size: 13px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.os-net-layer-name:disabled {
  color: var(--text-3);
  cursor: default;
}
.os-net-layer-count,
.os-net-layer-num {
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.os-net-layer-chips {
  display: flex;
  flex-wrap: wrap;
  grid-column: 3 / -1;
  gap: 4px;
}
.os-net-layer-chip {
  display: inline-flex;
  gap: 6px;
  padding: 2px 6px;
  border: 1px solid var(--chip-border);
  border-radius: var(--radius-sm);
  color: var(--text-3);
  font-size: 12px;
}
.os-net-layer-coverage {
  grid-column: 3 / -1;
  margin: 0;
}
.os-net-layer-new {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  min-height: 32px;
}
/* Campaign layers (S3): the group label in Layers, and the Details layer card. */
.os-net-layer-group {
  margin: 4px 0 0;
  color: var(--text-3);
  font-size: 12px;
}
.os-net-layer-card {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pane-border);
}
.os-net-layer-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-1);
}
.os-net-layer-brief {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 32px;
}
/* A Category campaign's first-send Gate or status card on its layer card (S4). */
.os-net-layer-gate {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 8px 0;
}
.os-net-layer-gate:empty {
  display: none;
}
.os-net-legend-layers {
  padding-top: 6px;
  border-top: 1px solid var(--pane-border);
}
.os-net-legend-layers[hidden] {
  display: none;
}
.os-net-key-revealed {
  border: 1.5px dotted var(--net-label);
  border-radius: var(--radius-full);
}
.os-net-badge-revealed {
  border-style: dotted;
}
.os-net-cats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}
.os-net-cats-title {
  margin: 0;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
}
.os-net-cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.os-net-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--chip-border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: 12px;
  text-decoration: none;
}
.os-net-cat-chip:hover {
  border-color: var(--text-3);
}
.os-net-cat-state {
  color: var(--text-3);
}
.os-net-cat-add {
  align-self: flex-start;
  min-height: 32px;
}
.os-net-cat-menu {
  display: flex;
  flex-direction: column;
  padding: 4px;
  border: 1px solid var(--pane-border);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
}
.os-net-cat-menu[hidden] {
  display: none;
}
.os-net-cat-option {
  display: block;
  width: 100%;
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text-1);
  font-size: 13px;
  line-height: 32px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.os-net-cat-option:hover {
  background: var(--pane-bg);
}
.os-net-cat-save {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
/* Branches (S3): People at company, expanded on the map */
.os-net-branches {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.os-net-branches[hidden] {
  display: none;
}
.os-net-branch-list,
.os-net-branch-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.os-net-branch {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--chip-border);
  border-radius: var(--radius-sm);
}
.os-net-branch-words {
  margin: 0;
  color: var(--text-1);
  font-size: 13px;
}
.os-net-branch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.os-net-branch-actions .btn,
.os-net-expand-btn {
  min-height: 32px;
}
.os-net-expand-btn {
  align-self: flex-start;
}
.os-net-expand .os-net-hint {
  margin: 0;
}
.os-net-branch-link {
  color: var(--text-2);
  font-size: 12px;
}

/* ── Map pins, the one status badge and a dot's menu (S3) ──────────── */
.os-net-key-badge {
  width: 8px;
  height: 8px;
  margin: 0 2px;
  border-radius: var(--radius-full);
}
.os-net-key-badge-replied {
  background: var(--net-badge-replied);
}
.os-net-key-badge-warm {
  background: var(--net-badge-warm);
}
.os-net-key-badge-campaign {
  background: var(--net-badge-campaign);
}
.os-net-key-pin {
  position: relative;
  width: 7px;
  height: 7px;
  margin: 0 2.5px 3px;
  border-radius: var(--radius-full);
  background: var(--net-pin);
}
.os-net-key-pin::after {
  position: absolute;
  top: 6px;
  left: 3px;
  width: 1.5px;
  height: 5px;
  background: var(--net-pin);
  content: "";
}
.os-net-badge-pinned {
  border-color: var(--net-pin);
}

/* ── Halos: what is new since you last looked (S5) ─────────────────── */
.os-net-key-new {
  border: 1.5px solid var(--net-new);
  border-radius: var(--radius-full);
}
.os-net-legend-item[hidden] {
  display: none;
}
.os-net-badge-new {
  border-color: var(--net-new);
}
.os-net-new-chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--net-new);
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text-1);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.os-net-new-chip:hover {
  background: var(--pane-bg);
}
.os-net-new-chip:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.os-net-new-chip[hidden] {
  display: none;
}
.os-net-fund-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}
/* The Details name is the record's chip: it keeps the heading's size and
   wraps a long name instead of cutting it. */
.os-net-side-name .nx-chip,
.os-net-dossier .os-map-dossier-name .nx-chip {
  font-size: inherit;
}
.os-net-side-name .nx-chip-name,
.os-net-dossier .os-map-dossier-name .nx-chip-name {
  font-weight: inherit;
  white-space: normal;
  overflow-wrap: anywhere;
}
.os-net-node-menu {
  position: absolute;
  z-index: 7;
  display: flex;
  flex-direction: column;
  min-width: 160px;
  padding: 4px;
  border: 1px solid var(--pane-border);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  box-shadow: var(--shadow-popover);
}
.os-net-node-menu-item {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text-1);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.os-net-node-menu-item:hover,
.os-net-node-menu-item:focus-visible {
  background: var(--pane-bg);
}

@media (max-width: 760px) {
  .os-net-room--arkham .os-net-left {
    display: none;
  }
  .os-net-room--arkham .os-net-bar {
    right: 12px;
    left: 12px;
  }
  .os-net-room--arkham .os-net-panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    max-height: 60%;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }
  .os-net-room--arkham .os-net-top {
    left: 12px;
    right: 12px;
    bottom: 64px;
  }
  .os-net-room--arkham .os-net-legend {
    right: 12px;
    width: auto;
  }
  .os-net-room--arkham .os-net-drawer,
  .os-net-room--arkham .os-net-plan {
    right: 12px;
    left: 12px;
  }
}

/* Back to map over the full-bleed map: it floats, so the canvas keeps its height. */
:root[data-theme="arkham"] #content-wrap:has(.os-net-room--arkham) {
  position: relative;
}
:root[data-theme="arkham"] #content-wrap:has(.os-net-room--arkham) > .os-viewstate-back {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 7;
  margin: 0;
  transform: translateX(-50%);
}

/* The one record a Today card's "Open in" opened (S6-F): an invoice, an
   account, a feed draft, a group verification, an X Chat conversation or a
   job. Rooms mark it with NexusRegistry.focusRecord; the outline is the only
   change, so the room reads as it always does. */
:root[data-theme="arkham"] [data-record-focus="true"] {
  outline: 2px solid var(--accent-line);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
  scroll-margin-block: 96px;
}
:root[data-theme="arkham"] tr[data-record-focus="true"] > td {
  background: var(--accent-wash);
}
