/* ==========================================================================
   CIT-RBT prototype — "instrument spine" design system
   Deep chromatic dark-mode. Fonts self-hosted (assets/fonts/), no CDN.
   ========================================================================== */

@font-face {
  font-family: 'Rajdhani';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('assets/fonts/rajdhani-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Rajdhani';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('assets/fonts/rajdhani-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Rajdhani';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('assets/fonts/rajdhani-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  src: url('assets/fonts/archivo-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Mono';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('assets/fonts/spacemono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Mono';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('assets/fonts/spacemono-700.woff2') format('woff2');
}

:root {
  /* surfaces */
  --void: #0A0C10;
  --hull: #14171F;
  --hull-raised: #1B1F29;
  --seam: #262B38;
  --seam-soft: #1E222C;

  /* text */
  --bone: #E9EBF1;
  --ash: #8D96A8;
  --ash-dim: #5C6478;

  /* accents — interaction vs. risk are deliberately different hues */
  --flare: #FF5A36;
  --flare-dim: rgba(255, 90, 54, 0.16);
  --iqv-accent: #4FA3D1;
  --iqv-accent-dim: rgba(79, 163, 209, 0.16);
  --scan: #35D1C4;
  --scan-dim: rgba(53, 209, 196, 0.14);

  /* risk scale */
  --risk-low: #4FA876;
  --risk-mid: #E0A23D;
  --risk-high: #E5543E;
  --risk-low-dim: rgba(79, 168, 118, 0.18);
  --risk-mid-dim: rgba(224, 162, 61, 0.18);
  --risk-high-dim: rgba(229, 84, 62, 0.18);

  /* legacy aliases kept for older markup */
  --bg: var(--void);
  --panel: var(--hull);
  --border: var(--seam);
  --text: var(--bone);
  --text-muted: var(--ash);
  --accent: var(--flare);

  --font-display: 'Rajdhani', 'Arial Narrow', sans-serif;
  --font-body: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', 'SFMono-Regular', Consolas, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.15s;
  --dur-med: 0.35s;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

* { box-sizing: border-box; }

html { background: var(--void); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--void);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  position: relative;
  isolation: isolate;
}


h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 12px;
}

h3 { font-size: 16px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ash); font-weight: 600; }
h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ash); font-weight: 600; }

a { color: var(--flare); }

::selection { background: var(--flare); color: var(--void); }

:focus-visible {
  outline: 2px solid var(--flare);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ==========================================================================
   Shell — horizontal top bar
   ========================================================================== */

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 56px;
  flex-shrink: 0;
  padding: 0 24px;
  background: var(--hull);
  border-bottom: 1px solid var(--seam);
  position: sticky;
  top: 0;
  z-index: 20;
  animation: topbarIn var(--dur-med) var(--ease-out) both;
}

.topbar__brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.topbar__mark {
  width: 26px; height: 26px;
  border-radius: 4px;
  background: var(--flare);
  color: #180C08;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}

.topbar__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--bone);
}
.topbar__word span { color: var(--flare); }

.topbar__nav { display: flex; align-items: center; gap: 4px; flex: 1; }

.topbar__nav a {
  position: relative;
  padding: 8px 14px;
  color: var(--ash);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.topbar__nav a:hover { color: var(--bone); }
.topbar__nav a.active { color: var(--bone); border-color: var(--flare); }

.tabgroup--expanded {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tabgroup__label,
.topbar__nav a.tabgroup__chip {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--bone);
  white-space: nowrap;
}

.tabgroup__dot { color: var(--flare); }

.tabgroup__label {
  background: var(--flare);
  padding: 4px 10px;
  border-radius: 4px;
}
.tabgroup__label .tabgroup__dot { color: #180C08; }

.topbar__nav a.tabgroup__chip {
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 4px;
  border-bottom: none;
  transition: background var(--dur-fast) var(--ease-out);
}
.topbar__nav a.tabgroup__chip:hover { background: var(--flare-dim); }

.topbar__meta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.topbar__build {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ash);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.topbar__status {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--risk-low);
  border: 1px solid var(--risk-low);
  border-radius: 3px;
  padding: 3px 8px;
  white-space: nowrap;
}
.topbar__status i { width: 6px; height: 6px; border-radius: 50%; background: var(--risk-low); display: block; }

.topbar__theme {
  background: transparent;
  border: 1px solid var(--seam);
  color: var(--ash);
  width: 30px; height: 30px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.topbar__theme:hover { color: var(--bone); border-color: var(--ash); }

main {
  padding: 32px 44px 56px;
  overflow-x: hidden;
  animation: contentIn var(--dur-med) var(--ease-out) both;
  animation-delay: 0.06s;
}

@media (max-width: 1100px) {
  .topbar { gap: 14px; padding: 0 14px; }
  .topbar__build { display: none; }
  .tabgroup__label { padding: 3px 7px; }
  .topbar__nav a.tabgroup__chip { padding: 3px 7px; }
  .topbar__nav a { padding: 8px 8px; }
}

/* ==========================================================================
   Panels & primitives
   ========================================================================== */

.panel {
  background: var(--hull);
  border: 1px solid var(--seam);
  border-radius: 4px;
  padding: 22px 24px;
  margin-bottom: 22px;
  position: relative;
}

.stat-band {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 4px;
}

.stat-band__pct {
  color: var(--flare);
  font-family: var(--font-mono);
}

.badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 3px;
  border: 1px solid var(--seam);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.badge--deterministic { color: var(--risk-low); border-color: var(--risk-low); background: var(--risk-low-dim); }
.badge--semantic { color: var(--bone); border-color: var(--ash-dim); background: var(--hull-raised); }
.badge--content-signal { color: var(--risk-mid); border-color: var(--risk-mid); background: var(--risk-mid-dim); }

/* signature element: the signal trace, with a one-shot sweep draw-in */
.signal-trace {
  display: flex;
  width: 120px;
  height: 7px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--seam-soft);
  position: relative;
}

.signal-trace__segment {
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  animation: traceSweep 0.6s var(--ease-out) both;
}

/* Settings preview: base-score waterfall. Base zone width = base score
   (each segment sized by its share of it); a delta bracket shows which way
   modifiers moved the final score; dashed = cut-off, dot = final score. */
.score-waterfall {
  width: 100%;
}

.score-waterfall__track {
  position: relative;
  width: 100%;
  height: 30px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--seam-soft);
}

.score-waterfall__base {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  transition: width var(--dur-fast) var(--ease-out);
}

.score-waterfall__base--mount .score-waterfall__seg {
  transform: scaleX(0);
  transform-origin: left;
  animation: traceSweep 0.6s var(--ease-out) both;
}

.score-waterfall__seg {
  height: 100%;
  transition: width var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.score-waterfall__delta {
  position: absolute;
  top: 0;
  height: 100%;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0 4px, transparent 4px 8px);
  transition: left var(--dur-fast) var(--ease-out), width var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.score-waterfall__cutoff {
  position: absolute;
  top: -3px;
  bottom: -3px;
  border-left: 2px dashed var(--ash);
  transition: left var(--dur-fast) var(--ease-out);
}

.score-waterfall__final {
  position: absolute;
  top: -4px;
  bottom: -4px;
  border-left: 2px solid var(--flare);
  transition: left var(--dur-fast) var(--ease-out);
}

.score-waterfall__final::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--flare);
}

.waterfall-legend {
  font-size: 10.5px;
  color: var(--ash);
  margin: 6px 0 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th, .table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--seam);
  font-size: 13px;
}

.table th {
  color: var(--ash);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  user-select: none;
}

.table th[data-sort] { cursor: pointer; }
.table th[data-sort]:hover { color: var(--bone); }

.table tbody tr { transition: background var(--dur-fast) var(--ease-out); position: relative; }
.table tbody tr:hover { background: var(--hull-raised); }
.table tr.dimmed td { color: var(--ash-dim); opacity: 0.7; }

.mono { font-family: var(--font-mono); }

.btn {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 12.5px;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 4px;
  border: 1px solid var(--seam);
  background: transparent;
  color: var(--bone);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

.btn:hover { border-color: var(--ash); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--flare);
  color: #180C08;
  border-color: var(--flare);
}

.btn--primary:hover { background: #ff6f4f; border-color: #ff6f4f; }

.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--hull-raised);
  border: 1px solid var(--flare);
  color: var(--bone);
  padding: 13px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-family: var(--font-body);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.toast.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Hero — oversized figure with an overlapping ledger card (asymmetric)
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 8px 0 54px;
  margin-bottom: -18px;
}

.hero__number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(84px, 13vw, 168px);
  line-height: 0.82;
  color: var(--bone);
  letter-spacing: -0.02em;
  transform: rotate(-1.2deg);
  animation: heroIn 0.55s var(--ease-out) both;
}

.hero__number .hero__pct-sign {
  font-size: 0.4em;
  color: var(--flare);
  vertical-align: top;
  margin-left: 2px;
}

.hero__caption {
  position: absolute;
  left: 4px;
  bottom: 30px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
}

.hero__ledger {
  position: relative;
  align-self: flex-end;
  margin-left: -32px;
  margin-bottom: 6px;
  background: var(--hull);
  border: 1px solid var(--seam);
  border-left: 3px solid var(--flare);
  border-radius: 4px;
  padding: 16px 20px;
  min-width: 260px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  z-index: 2;
  animation: heroIn 0.55s var(--ease-out) 0.1s both;
}

.hero__ledger .stat-band__pct { display: none; }

@media (max-width: 760px) {
  .hero { flex-direction: column; padding-bottom: 24px; }
  .hero__ledger { margin-left: 0; align-self: flex-start; }
}

/* ==========================================================================
   Keyframes
   ========================================================================== */

@keyframes topbarIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes contentIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes traceSweep { to { transform: scaleX(1); } }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

.table tbody tr { animation: rowIn 0.4s var(--ease-out) both; }

/* ==========================================================================
   Detail overlay
   ========================================================================== */

#detail-overlay {
  backdrop-filter: blur(3px);
  animation: overlayIn 0.2s var(--ease-out) both;
}

#detail-overlay .panel {
  animation: modalIn 0.25s var(--ease-out) both;
  border-left: 3px solid var(--flare);
}
.table tbody tr:nth-child(1) { animation-delay: 0.02s; }
.table tbody tr:nth-child(2) { animation-delay: 0.05s; }
.table tbody tr:nth-child(3) { animation-delay: 0.08s; }
.table tbody tr:nth-child(4) { animation-delay: 0.11s; }
.table tbody tr:nth-child(5) { animation-delay: 0.14s; }
.table tbody tr:nth-child(6) { animation-delay: 0.17s; }
.table tbody tr:nth-child(7) { animation-delay: 0.20s; }
.table tbody tr:nth-child(8) { animation-delay: 0.23s; }
.table tbody tr:nth-child(9) { animation-delay: 0.26s; }
.table tbody tr:nth-child(10) { animation-delay: 0.29s; }
.table tbody tr:nth-child(n+11) { animation-delay: 0.32s; }

/* ==========================================================================
   Shared components — filter rail, chevron section, summary callout,
   stat tiles, view toggle, side menu, status badges, tree-table
   ========================================================================== */

.screen-layout { display: flex; gap: 24px; align-items: flex-start; }
.screen-content { flex: 1; min-width: 0; }

.filter-rail {
  width: 220px;
  flex-shrink: 0;
  background: var(--hull);
  border: 1px solid var(--seam);
  border-radius: 4px;
  padding: 18px 16px;
  transition: width var(--dur-med) var(--ease-out), padding var(--dur-med) var(--ease-out);
}
.filter-rail.collapsed { width: 40px; padding: 18px 8px; overflow: hidden; }
.filter-rail.collapsed .filter-rail__body,
.filter-rail.collapsed .filter-rail__title { display: none; }
.filter-rail__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.filter-rail__title { font-family: var(--font-display); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ash); font-weight: 600; }
.filter-rail__toggle { background: transparent; border: none; color: var(--ash); cursor: pointer; font-size: 13px; padding: 4px; line-height: 1; }
.filter-rail__toggle:hover { color: var(--bone); }
.filter-rail__group { margin-bottom: 16px; }
.filter-rail__group:last-child { margin-bottom: 0; }
.filter-rail__group label { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--ash); margin-bottom: 6px; }
.filter-rail__group select { width: 100%; background: var(--void); color: var(--bone); border: 1px solid var(--seam); border-radius: 3px; padding: 6px 8px; font-family: var(--font-mono); font-size: 12px; }
.filter-rail__check { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--ash); }

.section { background: var(--hull); border: 1px solid var(--seam); border-radius: 4px; margin-bottom: 16px; overflow: hidden; }
.section__head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; user-select: none; }
.section__chevron { color: var(--ash); font-size: 11px; transition: transform var(--dur-fast) var(--ease-out); display: inline-block; transform: rotate(90deg); }
.section.collapsed .section__chevron { transform: rotate(0deg); }
.section__title { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--bone); flex: 1; }
.section__actions { display: flex; gap: 8px; align-items: center; }
.section__body { border-top: 1px solid var(--seam); }
.section.collapsed .section__body { display: none; }

.summary-callout { background: var(--hull); border: 1px solid var(--seam); border-left: 3px solid var(--flare); border-radius: 4px; padding: 16px 20px; margin-bottom: 20px; }
.summary-callout h4 { margin: 0 0 8px; }
.summary-callout p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--bone); }

.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-tile { background: var(--hull-raised); border: 1px solid var(--seam); border-radius: 4px; padding: 14px 16px; }
.stat-tile__label { font-family: var(--font-mono); font-size: 10.5px; color: var(--ash); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.stat-tile__value { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--bone); }

.view-toggle { display: inline-flex; border: 1px solid var(--seam); border-radius: 4px; overflow: hidden; }
.view-toggle button { background: transparent; border: none; color: var(--ash); font-family: var(--font-display); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; padding: 6px 14px; cursor: pointer; }
.view-toggle button.active { background: var(--hull-raised); color: var(--bone); }

.side-menu { width: 200px; flex-shrink: 0; background: var(--hull); border: 1px solid var(--seam); border-radius: 4px; padding: 10px; }
.side-menu button { display: block; width: 100%; text-align: left; background: transparent; border: none; color: var(--ash); font-family: var(--font-display); font-weight: 600; font-size: 13px; padding: 10px 12px; border-radius: 3px; cursor: pointer; margin-bottom: 2px; }
.side-menu button:hover { color: var(--bone); background: var(--seam-soft); }
.side-menu button.active { color: var(--bone); background: var(--flare-dim); }

.badge--status-proposed { color: var(--ash); border-color: var(--ash-dim); background: var(--seam-soft); }
.badge--status-accepted { color: var(--risk-low); border-color: var(--risk-low); background: var(--risk-low-dim); }
.badge--status-rejected { color: var(--risk-high); border-color: var(--risk-high); background: var(--risk-high-dim); }

.tree-table { width: 100%; border-collapse: collapse; }
.tree-table th { text-align: left; padding: 10px 16px; color: var(--ash); font-family: var(--font-display); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; border-bottom: 1px solid var(--seam); }
.tree-table td { padding: 10px 16px; border-bottom: 1px solid var(--seam-soft); font-size: 13px; }
.risk-cell { font-family: var(--font-mono); font-weight: 700; padding: 4px 10px; border-radius: 3px; display: inline-block; min-width: 34px; text-align: center; }

/* ==========================================================================
   Info icons + tooltip popover
   ========================================================================== */

.topbar__nav-item { display: inline-flex; align-items: center; gap: 2px; }

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--ash-dim);
  background: transparent;
  color: var(--ash);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-style: italic;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.info-icon:hover, .info-icon:focus-visible { color: var(--scan); border-color: var(--scan); }

h2 .info-icon, h3 .info-icon, h4 .info-icon { margin-left: 8px; vertical-align: middle; }

.info-tooltip {
  position: absolute;
  z-index: 100;
  width: 280px;
  background: var(--hull-raised);
  border: 1px solid var(--seam);
  border-left: 3px solid var(--scan);
  border-radius: 4px;
  padding: 12px 14px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
  animation: modalIn 0.15s var(--ease-out) both;
}
.info-tooltip p { margin: 0 0 8px; font-size: 12.5px; line-height: 1.5; color: var(--bone); }
.info-tooltip__source {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--scan);
  text-decoration: none;
  word-break: break-word;
}
.info-tooltip__source:hover { text-decoration: underline; }

.override-popover {
  position: absolute;
  z-index: 100;
  width: 230px;
  background: var(--hull-raised);
  border: 1px solid var(--seam);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 12px 14px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
  animation: modalIn 0.15s var(--ease-out) both;
}
.override-popover p { margin: 0 0 8px; font-size: 11.5px; line-height: 1.4; color: var(--ash); }
.override-popover input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  background: var(--hull);
  border: 1px solid var(--seam);
  border-radius: 3px;
  padding: 6px 8px;
  margin-bottom: 10px;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 12px;
}
.override-popover input[type="text"]:focus { outline: none; border-color: var(--scan); }
.override-popover__actions { display: flex; gap: 8px; }
