:root,
[data-theme="light"],
[data-theme="dark"] {
  --rw-primary: var(--accent);
  --rw-primary-hover: var(--accent-light);
  --rw-primary-light: var(--accent-dim);
  --rw-success: var(--green);
  --rw-success-light: var(--green-dim);
  --rw-warning: var(--amber);
  --rw-warning-light: var(--amber-dim);
  --rw-warning-dark: var(--amber);
  --rw-danger: var(--red);
  --rw-danger-light: var(--red-dim);
  --rw-info: var(--blue);
  --rw-info-light: var(--blue-dim);
  --rw-neutral-0: var(--bg-surface);
  --rw-neutral-50: var(--bg-base);
  --rw-neutral-100: var(--bg-elevated);
  --rw-neutral-200: #242838;
  --rw-neutral-300: rgba(255, 255, 255, 0.12);
  --rw-neutral-400: #737582;
  --rw-neutral-500: var(--text-muted);
  --rw-neutral-600: var(--text-secondary);
  --rw-neutral-700: #c9c3bb;
  --rw-neutral-800: #ddd7cf;
  --rw-neutral-900: var(--text-primary);
  --rw-surface: var(--bg-surface);
  --rw-surface-variant: var(--bg-elevated);
  --rw-bg-secondary: var(--bg-base);
  --rw-border: var(--border-default);
  --rw-text-primary: var(--text-primary);
  --rw-text-secondary: var(--text-secondary);
  --rw-text-muted: var(--text-muted);
  --rw-shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.18);
  --rw-shadow-md: 0 14px 34px rgba(0, 0, 0, 0.24);
  --rw-shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.3);
  --rw-font-family: var(--font-body);
  --rw-font-mono: var(--font-mono);
  --rw-font-size-xs: 0.66rem;
  --rw-font-size-sm: 0.74rem;
  --rw-font-size-md: 0.82rem;
  --rw-font-size-base: 0.82rem;
  --rw-font-size-lg: 0.94rem;
  --rw-font-size-xl: 1.05rem;
  --rw-font-size-2xl: 1.24rem;
  --rw-font-size-3xl: 1.75rem;
  --rw-spacing-xs: 4px;
  --rw-spacing-sm: 8px;
  --rw-spacing-md: 16px;
  --rw-spacing-lg: 24px;
  --rw-spacing-xl: 32px;
  --rw-spacing-2xl: 40px;
  --rw-radius-sm: var(--radius-sm);
  --rw-radius-md: var(--radius-md);
  --rw-radius-lg: var(--radius-lg);
  --rw-sidebar-width: var(--sidebar-width);
}

.app-shell .app-content {
  min-width: 0;
}

.app-shell .main-content {
  max-width: none;
}

.app-shell .header-actions {
  margin-left: auto;
}

.page-content,
.loading-container {
  min-height: 320px;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 72px 0;
}

.loading-text {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* Stat cards */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.stat-card {
  position: relative;
}

.stat-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: 10px;
}

.stat-card-label,
.stat-label {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-card-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-dim) !important;
  color: var(--accent-light) !important;
  font-size: 0.64rem !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-card-value,
.stat-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.08;
  color: var(--text-primary);
}

.stat-card-sub {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 0.76rem;
}

/* Story-mode stat cards: drill-through, delta chip, sparkline */
.stat-card--clickable {
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.stat-card--clickable:hover {
  border-color: var(--border-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}
.stat-card--clickable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.stat-card-delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}
.stat-card-delta.is-up {
  color: var(--red);
  background: rgba(239, 68, 68, 0.12);
}
.stat-card-delta.is-down {
  color: var(--green);
  background: rgba(74, 222, 128, 0.12);
}
.stat-card-delta.is-flat {
  color: var(--text-muted);
  background: var(--bg-elevated);
}

.stat-card-spark {
  display: block;
  width: 100%;
  height: 22px;
  margin-top: 10px;
  overflow: visible;
}
.stat-card-spark-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.stat-card-spark-fill {
  fill: var(--accent-dim);
  stroke: none;
}

/* Tables */
.table-container {
  overflow: auto;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  font-size: 0.8rem;
}

.table th {
  padding: 10px var(--space-md);
  background: var(--bg-base);
  border-bottom: 1px solid var(--border-default);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.table td {
  padding: 10px var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: top;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background: var(--bg-hover);
}

.table-actions {
  white-space: nowrap;
}

.empty-state-title {
  margin-bottom: 6px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1rem;
}

.empty-state-subtitle {
  color: var(--text-secondary);
}

/* Modal overrides — display toggling handled by showModal()/closeModal() in common.js */
.modal-title {
  margin: 0;
}

.page-help-body {
  white-space: pre-wrap;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Skeleton loading */
.skeleton {
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  background-size: 200% 100%;
  animation: airspaceSkeleton 1.2s ease-in-out infinite;
}

.skeleton-card {
  min-height: 128px;
  border: 1px solid var(--border-default);
}

@keyframes airspaceSkeleton {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* Severity badges */
.severity-critical { background: var(--red-dim, rgba(239,68,68,0.14)); color: var(--red); }
.severity-warning  { background: var(--amber-dim, rgba(245,158,11,0.14)); color: var(--amber); }
.severity-info     { background: var(--blue-dim, rgba(91,141,239,0.14)); color: var(--blue); }

/* Drone classification badges */
.cls-friendly  { background: var(--green-dim, rgba(74,222,128,0.14)); color: var(--green); }
.cls-hostile   { background: var(--red-dim, rgba(239,68,68,0.14)); color: var(--red); }
.cls-unknown   { background: rgba(255,255,255,0.06); color: var(--text-secondary); }

/* Detail panels */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.kv-table {
  width: 100%;
  font-size: 0.82rem;
}

.kv-table td {
  padding: 6px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.kv-table td:first-child {
  color: var(--text-muted);
  font-size: 0.76rem;
  white-space: nowrap;
  padding-right: var(--space-md);
  width: 140px;
}

.kv-table td:last-child {
  color: var(--text-primary);
  font-weight: 500;
}

/* Search bar */
.search-bar {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.search-bar .form-input {
  flex: 1;
  min-width: 200px;
}

.search-bar .form-select {
  min-width: 140px;
}

/* Map placeholder */
.map-container {
  width: 100%;
  height: 300px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  overflow: hidden;
}

/* Analytics chart area */
.chart-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

/* Horizontal bar charts (Analytics) */
.h-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.h-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 110px) 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
}

.h-bar-label {
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: capitalize;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.h-bar-track {
  position: relative;
  height: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  overflow: hidden;
}

.h-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 999px;
  min-width: 4px;
  transition: width 220ms ease-out;
}

.h-bar-value {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 56px;
  justify-content: flex-end;
}

.h-bar-share {
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Timeline trail toggle */
.trail-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.74rem;
  cursor: pointer;
}

.trail-toggle.active {
  border-color: var(--border-accent);
  background: var(--accent-dim);
  color: var(--accent-light);
}

/* Tabs */
.tab-bar {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border-default);
  margin-bottom: var(--space-md);
}

.tab-btn {
  padding: 8px 16px;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}


@media (max-width: 768px) {
  .stat-cards {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .chart-row {
    grid-template-columns: 1fr;
  }

  .op-detail-layout {
    grid-template-columns: 1fr !important;
  }
}

/* Operator detail modal */
.op-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-md);
  min-height: 360px;
}

.op-detail-sv {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 320px;
  position: relative;
  background: var(--bg-base);
}

.op-detail-sv-status {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.72rem;
  z-index: 10;
  display: none;
}

.op-detail-sv-status.visible {
  display: block;
}

.op-detail-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.op-detail-info .section-label {
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: var(--space-sm);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--accent-dim);
}

.op-detail-info .section-label:first-child {
  margin-top: 0;
}

.op-detail-map {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 320px;
  background: var(--bg-base);
}

/* ───────────────────────────────────────────────────────────────────────
   Mode toggle (sidebar header) — Investigate / Manage
   ─────────────────────────────────────────────────────────────────────── */
.sidebar-header { display: flex; flex-direction: column; gap: var(--space-md); }

.mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 3px;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
}

.mode-toggle-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 7px 10px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 140ms ease, color 140ms ease;
}
.mode-toggle-btn:hover { color: var(--text-primary); }
.mode-toggle-btn[aria-selected="true"] {
  background: var(--accent-dim);
  color: var(--accent-light);
  box-shadow: inset 0 0 0 1px var(--border-accent, var(--accent-dim));
}
.mode-toggle-hint {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* Mode filtering — show only sections matching the current mode */
.app-shell[data-mode="investigate"] .nav-section[data-mode="manage"],
.app-shell[data-mode="manage"]      .nav-section[data-mode="investigate"] {
  display: none;
}

/* ───────────────────────────────────────────────────────────────────────
   Briefing page
   ─────────────────────────────────────────────────────────────────────── */
.briefing { display: flex; flex-direction: column; gap: var(--space-lg); }

/* Hero "since you last signed in" strip */
.briefing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-xl);
  background:
    linear-gradient(135deg, var(--accent-dim) 0%, transparent 55%),
    var(--bg-surface);
  border: 1px solid var(--border-accent, var(--border-default));
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
}
.briefing-hero-head {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.briefing-hero-when {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  text-transform: none;
  font-weight: 500;
}
.briefing-hero-bullets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.86rem;
  color: var(--text-primary);
}
.briefing-hero-bullets li {
  display: flex; align-items: baseline; gap: 8px;
  line-height: 1.45;
}
.briefing-hero-bullets li::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0; transform: translateY(-2px);
}
.briefing-hero-bullets b {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-light);
  margin-right: 4px;
}
.briefing-hero-cta {
  align-self: center;
}

/* Two-column investigate body */
.briefing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: var(--space-lg);
}
.briefing-col { display: flex; flex-direction: column; gap: var(--space-md); }

.briefing-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.briefing-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 12px var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}
.briefing-panel-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.briefing-panel-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.briefing-panel-body { padding: var(--space-md); }
.briefing-panel-body.is-flush { padding: 0; }

/* Needs Attention list */
.attn-list { display: flex; flex-direction: column; }
.attn-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-md);
  padding: 12px var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}
.attn-row:last-child { border-bottom: none; }
.attn-row:hover { background: var(--bg-hover); }
.attn-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--text-muted);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}
.attn-row[data-sev="critical"] .attn-dot { background: var(--red); box-shadow: 0 0 12px rgba(239,68,68,0.55); }
.attn-row[data-sev="warning"]  .attn-dot { background: var(--amber); box-shadow: 0 0 10px rgba(245,158,11,0.45); }
.attn-row[data-sev="info"]     .attn-dot { background: var(--blue); }
.attn-body { min-width: 0; }
.attn-title {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 2px;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.attn-title-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.attn-title-tag.is-critical { background: rgba(239,68,68,0.16); color: var(--red); }
.attn-title-tag.is-warning  { background: rgba(245,158,11,0.16); color: var(--amber); }
.attn-title-tag.is-info     { background: rgba(91,141,239,0.16); color: var(--blue); }
.attn-sub {
  color: var(--text-secondary);
  font-size: 0.78rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.attn-sub .attn-when {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-right: 8px;
}
.attn-cta { white-space: nowrap; }

/* State panel */
.state-list { display: flex; flex-direction: column; gap: 14px; }
.state-row { display: flex; flex-direction: column; gap: 4px; }
.state-row-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space-sm);
}
.state-row-label {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.state-row-value {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--text-primary);
  font-weight: 600;
}
.state-row-value .state-row-total {
  color: var(--text-muted);
  font-weight: 400;
}
.state-bar {
  display: flex;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-elevated);
}
.state-bar-seg { height: 100%; }
.state-bar-seg.is-ok   { background: var(--green); }
.state-bar-seg.is-warn { background: var(--amber); }
.state-bar-seg.is-bad  { background: var(--red); }
.state-row-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
}
.state-row-sub .pill {
  display: inline-flex; align-items: center; gap: 4px;
  margin-right: 6px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}
.state-row-sub .pill::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-muted);
}
.state-row-sub .pill.ok::before   { background: var(--green); }
.state-row-sub .pill.warn::before { background: var(--amber); }
.state-row-sub .pill.bad::before  { background: var(--red); }

/* Activity sparkbars + annotation */
.activity-spark {
  display: flex; align-items: flex-end;
  gap: 2px;
  height: 56px;
  padding: 4px 0 8px;
}
.activity-spark-bar {
  flex: 1;
  min-height: 2px;
  background: var(--accent-dim);
  border-radius: 2px 2px 0 0;
  transition: background 140ms ease;
}
.activity-spark-bar.is-peak { background: var(--accent); }
.activity-axis {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.activity-callout {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.activity-callout .arrow { color: var(--accent); font-weight: 700; margin-right: 4px; }

/* Hot subjects */
.hot-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-sm);
}
.hot-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 140ms ease, transform 140ms ease;
}
.hot-tile:hover {
  border-color: var(--border-accent, var(--accent-dim));
  transform: translateY(-1px);
}
.hot-tile-kind {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hot-tile-id {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hot-tile-meta {
  font-size: 0.72rem;
  color: var(--text-secondary);
}
.hot-tile-spark {
  display: flex; align-items: flex-end;
  gap: 1.5px;
  height: 16px;
  margin-top: 4px;
}
.hot-tile-spark span {
  flex: 1;
  min-height: 1px;
  background: var(--accent);
  opacity: 0.55;
  border-radius: 1px;
}

/* Recent changes log */
.changes-list { display: flex; flex-direction: column; }
.change-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: 10px var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}
.change-row:last-child { border-bottom: none; }
.change-actor {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent-light);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}
.change-text {
  font-size: 0.8rem;
  color: var(--text-primary);
  line-height: 1.45;
}
.change-text .change-detail {
  display: block;
  color: var(--text-secondary);
  font-size: 0.74rem;
  margin-top: 2px;
}
.change-when {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Quick actions */
.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quick-action {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-sm);
  padding: 10px 12px;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-primary);
  font-size: 0.82rem;
  text-align: left;
}
.quick-action:hover {
  border-color: var(--border-accent, var(--accent-dim));
  background: var(--bg-hover);
}
.quick-action-arrow { color: var(--text-muted); font-family: var(--font-mono); }

/* Empty state shared */
.briefing .empty-state-mini {
  padding: 18px var(--space-md);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
}

@media (max-width: 960px) {
  .briefing-grid { grid-template-columns: 1fr; }
  .briefing-hero { grid-template-columns: 1fr; }
  .briefing-hero-cta { justify-self: start; }
}
