/* ═══════════════════════════════════════════════════════════════
   Oracle Security Board (OSP) — single-pane-of-glass wall display.
   Builds on css/oracle.css design tokens (--bg-*, --accent, semantic).
   ═══════════════════════════════════════════════════════════════ */

.osp-body { overflow: hidden; height: 100vh; }

.osp-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  background: var(--bg-deep);
}

/* ─── Top command bar ─────────────────────────────────────────── */
.osp-topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  height: 52px;
  padding: 0 var(--space-md);
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-surface));
  border-bottom: 1px solid var(--border-default);
  z-index: 40;
}
.osp-topbar-left, .osp-topbar-center, .osp-topbar-right { display: flex; align-items: center; gap: var(--space-md); }
.osp-titles { display: flex; flex-direction: column; line-height: 1.1; }
.osp-title { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.14em; font-size: 14px; color: var(--text-primary); }
.osp-subtitle { font-size: 10px; letter-spacing: 0.1em; color: var(--text-muted); text-transform: uppercase; }

.osp-threat {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 12px; border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: 0.1em;
  border: 1px solid var(--border-default);
}
.osp-threat-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-muted); }
.osp-threat[data-level="nominal"]  { color: var(--green); border-color: var(--green-dim); }
.osp-threat[data-level="nominal"] .osp-threat-dot { background: var(--green); }
.osp-threat[data-level="elevated"] { color: var(--amber); border-color: var(--amber-dim); background: var(--amber-dim); }
.osp-threat[data-level="elevated"] .osp-threat-dot { background: var(--amber); }
.osp-threat[data-level="critical"] { color: var(--red); border-color: var(--red); background: var(--red-dim); animation: osp-pulse 1.1s infinite; }
.osp-threat[data-level="critical"] .osp-threat-dot { background: var(--red); }

.osp-feedcount { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); font-family: var(--font-mono); }
.osp-feedcount [data-icon] { color: var(--accent); }

.osp-persona { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.osp-persona select {
  background: var(--bg-input); color: var(--text-primary);
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  padding: 4px 8px; font-size: 12px;
}
.osp-clock { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--font-mono); line-height: 1.15; }
.osp-clock-local { font-size: 14px; color: var(--text-primary); font-weight: 600; }
.osp-clock-utc { font-size: 10px; color: var(--text-muted); }
.osp-user { display: flex; align-items: center; gap: 8px; }

.btn-ghost { background: transparent; border: 1px solid var(--border-default); color: var(--text-secondary); padding: 5px 10px; border-radius: var(--radius-sm); font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }
.btn-ghost.is-active { background: var(--accent-dim); border-color: var(--border-accent); color: var(--accent-light); }

/* ─── Latching critical banner ────────────────────────────────── */
.osp-banner {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: var(--space-md);
  padding: 10px var(--space-md);
  background: var(--red);
  color: #fff;
  font-weight: 700; letter-spacing: 0.04em;
  box-shadow: 0 0 30px rgba(239,68,68,0.5);
  animation: osp-banner-flash 1.1s steps(2, start) infinite;
  z-index: 35;
}
.osp-banner[data-level="warning"] { background: var(--amber); color: #1a1206; box-shadow: 0 0 24px rgba(245,158,11,0.4); animation: none; }
.osp-banner-icon { font-size: 20px; }
.osp-banner-body { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.osp-banner-title { font-size: 15px; }
.osp-banner-sub { font-size: 12px; opacity: 0.9; font-weight: 500; }
.osp-banner-count { font-family: var(--font-mono); background: rgba(0,0,0,0.25); padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.osp-banner button { background: rgba(0,0,0,0.25); color: inherit; border: 1px solid rgba(255,255,255,0.35); padding: 5px 12px; border-radius: var(--radius-sm); cursor: pointer; font-weight: 700; }
.osp-banner button:hover { background: rgba(0,0,0,0.45); }

@keyframes osp-banner-flash { 0% { filter: brightness(1); } 100% { filter: brightness(1.35); } }
@keyframes osp-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }

/* ─── Grid / cards ────────────────────────────────────────────── */
.osp-grid { flex: 1 1 auto; overflow: auto; padding: 6px; background: var(--bg-deep); }

.osp-card {
  display: flex; flex-direction: column;
  height: 100%; width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.osp-card.is-offline { opacity: 0.5; filter: grayscale(0.6); }
.osp-card.is-degraded { border-color: var(--amber-dim); }
.osp-card-head {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}
.osp-card-head [data-icon] { color: var(--accent); }
.osp-card-title { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); }
.osp-card-status { margin-left: auto; display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); }
.osp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); flex: 0 0 auto; }
.osp-dot.online { background: var(--green); box-shadow: 0 0 6px var(--green); }
.osp-dot.degraded { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.osp-dot.offline { background: var(--red); }
.osp-dot.probing { background: var(--blue); animation: osp-pulse 1s infinite; }
.osp-card-body { flex: 1 1 auto; overflow: auto; padding: 8px 10px; position: relative; }
.osp-card-body.no-pad { padding: 0; }

/* Edit mode affordances */
.osp-grid.is-editing .grid-stack-item-content { outline: 1px dashed var(--border-accent); cursor: move; }
.osp-grid:not(.is-editing) .grid-stack .grid-stack-item > .ui-resizable-handle { display: none !important; }

/* ─── KPI strip ───────────────────────────────────────────────── */
.osp-kpis { display: flex; flex-wrap: wrap; gap: 8px; height: 100%; align-content: stretch; }
.osp-kpi {
  flex: 1 1 120px; min-width: 110px;
  display: flex; flex-direction: column; justify-content: center;
  padding: 6px 12px; border-radius: var(--radius-sm);
  background: var(--bg-elevated); border: 1px solid var(--border-subtle);
}
.osp-kpi-val { font-family: var(--font-mono); font-size: 30px; font-weight: 700; color: var(--text-primary); line-height: 1; }
.osp-kpi.alarm .osp-kpi-val { color: var(--red); }
.osp-kpi.warn  .osp-kpi-val { color: var(--amber); }
.osp-kpi.ok    .osp-kpi-val { color: var(--green); }
.osp-kpi-label { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }
.osp-kpi-sub { font-size: 10px; color: var(--text-secondary); font-family: var(--font-mono); }

/* ─── Sensor mesh rail ────────────────────────────────────────── */
.osp-mesh-list { display: flex; flex-direction: column; gap: 4px; }
.osp-mesh-row { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: var(--radius-sm); background: var(--bg-elevated); }
.osp-mesh-row .osp-mesh-name { font-size: 12px; color: var(--text-primary); flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.osp-mesh-row .osp-mesh-meta { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); }
.osp-mesh-group { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin: 8px 0 2px; }

/* ─── Alert / notification queue ──────────────────────────────── */
.osp-alerts { display: flex; flex-direction: column; gap: 6px; }
.osp-alert {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 7px 8px; border-radius: var(--radius-sm);
  background: var(--bg-elevated); border-left: 3px solid var(--text-muted);
  cursor: pointer;
}
.osp-alert:hover { background: var(--bg-hover); }
.osp-alert.sev-critical { border-left-color: var(--red); background: var(--red-dim); }
.osp-alert.sev-warning  { border-left-color: var(--amber); }
.osp-alert.sev-info     { border-left-color: var(--blue); }
.osp-alert.is-ack { opacity: 0.45; }
.osp-alert-main { flex: 1 1 auto; min-width: 0; }
.osp-alert-title { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.osp-alert-sub { font-size: 11px; color: var(--text-secondary); }
.osp-alert-time { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); white-space: nowrap; }
.osp-alert-domain { font-size: 9px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-light); }
.osp-alert-actions { display: flex; gap: 4px; margin-top: 4px; }
.osp-alert-actions button { font-size: 10px; padding: 2px 7px; border-radius: 3px; border: 1px solid var(--border-default); background: var(--bg-surface); color: var(--text-secondary); cursor: pointer; }
.osp-alert-actions button:hover { color: var(--text-primary); border-color: var(--border-strong); }
.osp-empty { color: var(--text-muted); font-size: 12px; text-align: center; padding: 18px 0; }

/* ─── Activity timeline ───────────────────────────────────────── */
.osp-timeline { display: flex; flex-direction: column; gap: 2px; font-family: var(--font-mono); font-size: 11px; }
.osp-tl-row { display: flex; gap: 8px; padding: 2px 0; border-bottom: 1px solid var(--border-subtle); }
.osp-tl-time { color: var(--text-muted); flex: 0 0 64px; }
.osp-tl-domain { flex: 0 0 64px; text-transform: uppercase; letter-spacing: 0.04em; }
.osp-tl-text { flex: 1 1 auto; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.osp-tl-row.sev-critical .osp-tl-text { color: var(--red); }
.osp-tl-row.sev-warning .osp-tl-text { color: var(--amber); }
.dom-rf { color: var(--cyan); } .dom-airspace { color: var(--purple); } .dom-bodycam { color: var(--accent-light); }
.dom-presence { color: var(--green); } .dom-radio { color: var(--blue); } .dom-dji { color: #60A5FA; }
.dom-sky { color: #38BDF8; } .dom-tesla { color: #F97316; } .dom-mdm { color: #FACC15; }
.dom-dispatch { color: var(--red); } .dom-status { color: var(--text-muted); }

/* ─── Readiness / incidents / UAS cards ───────────────────────────── */
.osp-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
}
.osp-summary-row span {
  flex: 1 1 78px;
  min-width: 0;
  padding: 5px 6px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}
.osp-summary-row b { color: var(--text-primary); }
.osp-summary-row.compact {
  gap: 5px;
  margin-bottom: 7px;
  font-size: 9px;
}
.osp-summary-row.compact span {
  flex-basis: 68px;
  padding: 4px 5px;
}

.osp-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 7px;
}
.osp-filter-chip {
  min-height: 24px;
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
}
.osp-filter-chip:hover { border-color: var(--border-default); color: var(--text-primary); }
.osp-filter-chip.active {
  border-color: var(--blue);
  background: rgba(91, 141, 239, 0.16);
  color: var(--text-primary);
}

.osp-focus-list, .osp-prox-list, .osp-fusion-list, .osp-health-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.osp-focus-row, .osp-prox-row, .osp-fusion-row, .osp-health-row {
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid transparent;
}
.osp-focus-row:hover, .osp-prox-row:hover, .osp-fusion-row:hover, .osp-health-row:hover {
  border-color: var(--border-default);
  background: var(--bg-hover);
}
.osp-focus-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 5px 6px;
  cursor: pointer;
}
.osp-focus-row.sev-critical { background: var(--red-dim); }
.osp-focus-row.sev-warning { border-left: 3px solid var(--amber); }
.osp-focus-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.osp-focus-main b, .osp-prox-head b, .osp-fusion-row b, .osp-health-row b {
  color: var(--text-primary);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.osp-focus-main span, .osp-fusion-row span, .osp-health-row span {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.osp-sev-pill {
  flex: 0 0 auto;
  min-width: 34px;
  padding: 2px 4px;
  border-radius: 3px;
  background: var(--bg-surface);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 8px;
  text-align: center;
  text-transform: uppercase;
}
.osp-sev-pill.sev-critical, .osp-focus-row.sev-critical .osp-sev-pill { color: var(--red); background: rgba(239, 68, 68, 0.14); }
.osp-sev-pill.sev-warning, .osp-focus-row.sev-warning .osp-sev-pill { color: var(--amber); background: rgba(245, 158, 11, 0.13); }
.osp-prox-row {
  padding: 6px 7px;
  cursor: pointer;
}
.osp-prox-head, .osp-fusion-row, .osp-health-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.osp-prox-head b { flex: 1 1 auto; min-width: 0; }
.osp-chip-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}
.osp-mini-chip {
  max-width: 100%;
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.osp-fusion-row, .osp-health-row {
  min-height: 30px;
  padding: 5px 6px;
  cursor: pointer;
}
.osp-fusion-row > div {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.osp-health-row b {
  flex: 1 1 auto;
  min-width: 0;
}
.osp-health-row.sev-critical { background: var(--red-dim); }
.osp-health-row.sev-warning { border-left: 3px solid var(--amber); }

.osp-radio-net {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.osp-radio-now {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 7px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border-left: 3px solid var(--border-default);
}
.osp-radio-now.tx { border-left-color: var(--red); background: var(--red-dim); }
.osp-radio-now.rx { border-left-color: var(--green); }
.osp-radio-now.connecting { border-left-color: var(--blue); }
.osp-radio-now > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.osp-radio-now b {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.osp-radio-now span:not(.osp-dot) {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.osp-radio-channel-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.osp-radio-channel-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
}
.osp-radio-channel-row:hover, .osp-radio-channel-row.selected {
  border-color: var(--border-default);
  background: var(--bg-hover);
}
.osp-radio-channel-row.selected { border-color: var(--blue); }
.osp-radio-channel-row b {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text-primary);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.osp-radio-channel-row span:last-child {
  max-width: 96px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.osp-person-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.osp-person-chip {
  max-width: 100%;
  padding: 2px 5px;
  border-radius: 999px;
  background: var(--green-dim);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.osp-person-chip.muted {
  background: var(--bg-elevated);
  color: var(--text-muted);
}
.osp-radio-mini-feed {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.osp-radio-feed-line {
  display: grid;
  grid-template-columns: 42px minmax(42px, 0.7fr) minmax(34px, 0.55fr) minmax(0, 1fr);
  gap: 5px;
  align-items: baseline;
  min-height: 20px;
  padding: 3px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 9px;
}
.osp-radio-feed-line span { color: var(--blue); }
.osp-radio-feed-line b {
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.osp-radio-feed-line em {
  color: var(--text-muted);
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.osp-radio-feed-line p {
  margin: 0;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.osp-radio-feed-line.crit p, .osp-radio-feed-line.crit span { color: var(--red); }

.osp-asset-list, .osp-incident-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.osp-asset-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 7px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid transparent;
  cursor: pointer;
}
.osp-asset-row:hover, .osp-incident:hover { border-color: var(--border-default); background: var(--bg-hover); }
.osp-asset-row.compact { min-height: 30px; padding: 5px 6px; }
.osp-asset-main { flex: 1 1 auto; min-width: 0; }
.osp-asset-name {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.osp-asset-meta {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.osp-asset-domain {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.osp-incident {
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border-left: 3px solid var(--blue);
  cursor: pointer;
}
.osp-incident.sev-critical { border-left-color: var(--red); background: var(--red-dim); }
.osp-incident.sev-warning { border-left-color: var(--amber); }
.osp-incident-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.osp-incident-top b {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text-primary);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.osp-incident-top span {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
}
.osp-incident-sub {
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.osp-incident-units {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}
.osp-incident-units span {
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--bg-surface);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.osp-uas-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}
.osp-mini-head {
  margin: 0 0 5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.osp-mission-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 7px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  margin-bottom: 5px;
}
.osp-mission-row b {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text-primary);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.osp-mission-row span {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
}
.osp-empty.tight { padding: 6px 0; text-align: left; }

/* ─── Map + dock ──────────────────────────────────────────────── */
.osp-map { position: absolute; inset: 0; }
.osp-map-legend { position: absolute; left: 8px; bottom: 8px; display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 8px; background: rgba(8,9,14,0.72); border: 1px solid var(--border-default); border-radius: var(--radius-sm); font-size: 10px; font-family: var(--font-mono); z-index: 5; }
.osp-map-legend span { display: inline-flex; align-items: center; gap: 4px; color: var(--text-secondary); }
.osp-map-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.osp-video-wrap { position: absolute; inset: 0; background: #000; display: flex; align-items: center; justify-content: center; }
.osp-video-wrap video, .osp-video-wrap canvas { width: 100%; height: 100%; object-fit: contain; background: #000; }
.osp-video-empty { color: var(--text-muted); font-size: 12px; }

.osp-spectrum { position: absolute; inset: 0; }
.osp-spectrum canvas { width: 100%; height: 100%; display: block; }

/* Radio comms strip */
.osp-radio { display: flex; flex-direction: column; height: 100%; }
.osp-radio-head { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.osp-radio-state { font-family: var(--font-mono); font-size: 13px; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-sm); background: var(--bg-elevated); color: var(--text-secondary); }
.osp-radio-state.tx { background: var(--red-dim); color: var(--red); }
.osp-radio-state.rx { background: var(--green-dim); color: var(--green); }
.osp-radio-counters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 3px 0 5px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 9px;
}
.osp-radio-counters span {
  flex: 1 1 64px;
  padding: 3px 5px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
}
.osp-radio-counters b { color: var(--text-primary); }
.osp-radio-feed { flex: 1 1 auto; overflow: auto; font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary); margin-top: 6px; }
.osp-radio-feed .crit { color: var(--red); }
.osp-ptt { margin-top: 6px; padding: 8px; border-radius: var(--radius-sm); border: 1px solid var(--border-default); background: var(--bg-elevated); color: var(--text-primary); font-weight: 700; letter-spacing: 0.08em; cursor: pointer; user-select: none; text-align: center; }
.osp-ptt.tx { background: var(--red); color: #fff; }
.osp-radio select { background: var(--bg-input); color: var(--text-primary); border: 1px solid var(--border-default); border-radius: var(--radius-sm); padding: 3px 6px; font-size: 11px; }

/* Gridstack theme bridge */
.grid-stack > .grid-stack-item > .grid-stack-item-content { color: var(--text-primary); }
.grid-stack-item.ui-draggable-dragging .osp-card { box-shadow: 0 12px 40px rgba(0,0,0,0.55); border-color: var(--border-accent); }
.grid-stack .grid-stack-placeholder > .placeholder-content { background: var(--accent-glow); border: 1px dashed var(--border-accent); border-radius: var(--radius-md); }
