/* Territory map prototype — page-level styles. Component styles live inline in JSX.
   Uses the True REST design system tokens via assets/colors_and_type.css. */

:root {
  /* Recalibrated blue palette — pulls from logo navy */
  --brand-indigo:        #0A1E5B;  /* primary deep — already in tokens */
  --brand-indigo-deep:   #061338;  /* deeper than primary, for top-band depth */
  --brand-indigo-mid:    #142A6E;  /* lifted indigo, for hover / segment */
  --brand-indigo-line:   rgba(255,255,255,0.10);  /* divider on indigo */
  --brand-indigo-text-mute: rgba(255,255,255,0.60);
  --brand-indigo-text-soft: rgba(255,255,255,0.85);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100vh; background: #FAFBFD; }
html, body { width: 100%; max-width: 100%; }

/* Page chrome */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100vw;
}
.app-shell > * { min-width: 0; }
/* Clamp horizontal overflow on body, NOT on .app-shell — sticky descendants need a non-clipping ancestor */

/* Top header bar - 64px sticky · indigo with hairline gradient sheen */
.app-header {
  height: 80px;
  background: var(--brand-indigo-deep);
  border-bottom: 1px solid transparent;
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 32px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: none;
  transition: background 220ms ease, box-shadow 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}
/* Pages that opt in (body.header-blend) — header transparent at rest, hero color shows through */
body.header-blend:not([data-scrolled="1"]) .app-header {
  background: transparent;
}
/* When user has scrolled past 24px — header gets a slight translucency + lift */
body[data-scrolled="1"] .app-header {
  background:
    linear-gradient(90deg, rgba(6,19,56,0.92) 0%, rgba(10,30,91,0.92) 50%, rgba(6,19,56,0.92) 100%);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-bottom-color: rgba(0,0,0,0.4);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 6px 22px rgba(6,19,56,0.32);
}
.app-header .logo {
  height: 54px; width: auto;
  /* logo PNG is white-on-transparent — sits naturally on the indigo */
}
.app-header nav {
  display: flex; gap: 28px; margin-left: 24px;
}
.app-header nav a {
  font-size: 13px; font-weight: 500; color: var(--brand-indigo-text-mute);
  text-decoration: none; letter-spacing: 0;
  padding: 6px 0; position: relative;
  transition: color var(--motion-fast) var(--ease-out);
}
.app-header nav a:hover { color: #fff; }
.app-header nav a.active { color: #FFFFFF; font-weight: 600; }
.app-header nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--brand-magenta);
  box-shadow: 0 0 8px rgba(229,3,102,0.5);
}
.app-header .right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.app-header .right .version-tag {
  font-size: 10px; color: var(--brand-indigo-text-mute);
  letter-spacing: 0.08em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

/* ─── Hamburger button (mobile only) ─── */
.hamburger-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  transition: background var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out);
}
.hamburger-btn:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.32); }
.hamburger-icon {
  position: relative;
  width: 18px; height: 14px;
  display: inline-block;
}
.hamburger-icon span {
  position: absolute; left: 0; right: 0;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--motion-fast) var(--ease-out), opacity var(--motion-fast) var(--ease-out), top var(--motion-fast) var(--ease-out);
}
.hamburger-icon span:nth-child(1) { top: 0; }
.hamburger-icon span:nth-child(2) { top: 6px; }
.hamburger-icon span:nth-child(3) { top: 12px; }
.hamburger-icon.open span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.hamburger-icon.open span:nth-child(2) { opacity: 0; }
.hamburger-icon.open span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Mobile nav backdrop + slide-in sheet */
.mobile-nav-backdrop {
  position: fixed; inset: 0;
  background: rgba(6,19,56,0.58);
  backdrop-filter: blur(2px);
  z-index: 998;
  animation: mnFade 180ms var(--ease-out);
}
@keyframes mnFade { from { opacity: 0; } to { opacity: 1; } }

.mobile-nav-sheet {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 86vw);
  background: linear-gradient(180deg, #1a2552 0%, #0c1338 100%);
  border-left: 1px solid rgba(229,3,102,0.22);
  box-shadow: -16px 0 48px rgba(0,0,0,0.5);
  z-index: 999;
  flex-direction: column;
  padding: 18px 18px 24px;
  overflow-y: auto;
  display: none;
}
.mobile-nav-sheet.open {
  display: flex;
  animation: mnSlideIn 240ms var(--ease-out);
}
@keyframes mnSlideIn {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

.mobile-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav-eyebrow {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-magenta);
}
.mobile-nav-close {
  width: 32px; height: 32px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 6px;
  color: rgba(255,255,255,0.85);
  font-size: 22px; line-height: 1;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.mobile-nav-close:hover { background: rgba(255,255,255,0.06); color: #fff; }

.mobile-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 12px;
  color: rgba(255,255,255,0.78);
  font-size: 15px; font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: background var(--motion-fast) var(--ease-out), color var(--motion-fast) var(--ease-out);
}
.mobile-nav-link:hover { background: rgba(255,255,255,0.04); color: #fff; }
.mobile-nav-link.active {
  color: #fff;
  background: rgba(229,3,102,0.14);
  box-shadow: inset 3px 0 0 var(--brand-magenta);
}
.mobile-nav-sep {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 10px 0 6px;
}
.mobile-nav-internal { font-size: 13px; color: rgba(255,255,255,0.65); }
.mobile-nav-internal-tag {
  margin-left: auto;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand-magenta);
  padding: 3px 7px;
  border: 1px solid rgba(229,3,102,0.4);
  border-radius: 4px;
}
.mobile-nav-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; gap: 12px;
}
.mobile-nav-version {
  font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

/* Sub-rail — sits under header on a slightly-darker indigo, terminal status row */
.sub-rail {
  background: var(--brand-indigo-deep);
  border-bottom: 1px solid rgba(0,0,0,0.35);
  padding: 10px 32px;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 12px;
  color: var(--brand-indigo-text-mute);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  position: sticky;
  top: 80px;
  z-index: 49;
}
.sub-rail strong { color: #FFFFFF; font-weight: 600; }
.sub-rail .sep { width:1px; height:14px; background: rgba(255,255,255,0.12); }
.sub-rail .pulse {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--brand-indigo-text-soft);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--stoplight-green);
  position: relative;
  box-shadow: 0 0 8px rgba(43,161,123,0.6);
}
.pulse-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 999px;
  background: var(--stoplight-green); opacity: .35;
  animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(0.6); opacity: .55; }
  100% { transform: scale(2); opacity: 0; }
}
.sub-rail .sep { width:1px; height:14px; background: var(--border-soft); }
.sub-rail strong { color: var(--brand-indigo); font-weight: 600; }

.sub-rail strong { color: #FFFFFF; font-weight: 600; }

/* Hero band — dark indigo, sits seamlessly under sub-rail */
.hero-band {
  background:
    radial-gradient(ellipse 1200px 400px at 30% 0%, rgba(229,3,102,0.10), transparent 60%),
    radial-gradient(ellipse 900px 500px at 90% 100%, rgba(122,47,190,0.18), transparent 65%),
    linear-gradient(180deg, var(--brand-indigo) 0%, var(--brand-indigo-deep) 100%);
  padding: 44px 32px 36px;
  border-bottom: 1px solid rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}
.hero-band::before {
  /* subtle grid texture */
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-inner {
  max-width: 1440px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  position: relative;
}
.hero-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  color: #F67BAB; text-transform: uppercase;
  margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow .bar { width: 24px; height: 1px; background: #F67BAB; }
.hero-h1 {
  font: 600 40px/1.1 var(--font-sans);
  color: #FFFFFF;
  letter-spacing: -0.018em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.hero-h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #FF4789 0%, #C788FF 50%, #6BA8FF 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 15px; color: var(--brand-indigo-text-soft); max-width: 580px; line-height: 1.65;
  margin: 0;
}

/* Headline metrics row — dark on dark, terminal feel */
.headline-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}
.hstat {
  padding: 14px 18px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.hstat:last-child { border-right: 0; }
.hstat-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-indigo-text-mute); margin-bottom: 6px;
}
.hstat-value {
  font: 600 28px/1 var(--font-sans);
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
  display: flex; align-items: baseline; gap: 6px;
}
.hstat-value .unit { font-size: 13px; font-weight: 500; color: var(--brand-indigo-text-mute); }
.hstat-delta { font-size: 11px; color: #5DD4A6; margin-top: 4px; font-weight: 500; }
.hstat-delta.neutral { color: var(--brand-indigo-text-mute); }

/* Main map terminal — 3 columns: filters / map / panel */
.terminal {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 32px 0;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.t-card {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow: var(--shadow-tile);
  overflow: hidden;
}

/* Left rail */
.left-rail {
  display: flex; flex-direction: column; gap: 16px;
}
.rail-section { padding: 16px 18px; }
.rail-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--text-muted); text-transform: uppercase; margin-bottom: 12px;
}
.legend-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0; font-size: 12px; color: var(--text-body);
  cursor: pointer; user-select: none;
  transition: color var(--motion-fast) var(--ease-out);
}
.legend-row:hover { color: var(--brand-indigo); }
.legend-swatch {
  width: 14px; height: 14px; border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid rgba(10,30,91,0.08);
}
.legend-count {
  margin-left: auto; font-variant-numeric: tabular-nums;
  font-weight: 600; color: var(--brand-indigo); font-size: 12px;
}

/* Map column wrapper — map + activity tape stacked */
.map-col {
  display: flex; flex-direction: column; gap: 12px;
  min-width: 0;
}

/* Map shell */
.map-shell {
  position: relative;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 48px 8px 32px;
  min-height: 0;
}
.map-shell .map-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10,30,91,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,30,91,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.map-shell svg.us-map {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.map-shell svg .state-path {
  cursor: pointer;
  stroke: #FFFFFF;
  stroke-width: 1.2;
  transition: filter var(--motion-fast) var(--ease-out), opacity var(--motion-fast) var(--ease-out);
}
.map-shell svg .state-path.dim { opacity: 0.35; }
.map-shell svg .state-path.selected { stroke: var(--brand-indigo); stroke-width: 2.5; }
.map-shell svg .state-label {
  fill: rgba(10,30,91,0.85); font-weight: 700;
  font-family: 'Poppins', sans-serif; pointer-events: none; text-anchor: middle;
  letter-spacing: 0.02em;
}
.map-shell svg .state-label.on-dark { fill: rgba(255,255,255,0.9); }

/* Map status fills */
.s-available    { fill: #B8C4E8; }
.s-available:hover  { fill: #9CABDD; }
.s-priority     { fill: #E50366; }
.s-priority:hover   { fill: #C8025A; }
.s-held         { fill: #D4862E; }
.s-held:hover       { fill: #B86F1F; }
.s-sold         { fill: #0A1E5B; }
.s-sold:hover       { fill: #15296B; }
.s-existing     { fill: #2BA17B; }
.s-existing:hover   { fill: #228866; }
.s-partial      { fill: url(#partialFill); }
.s-registration { fill: #EEF1F7; cursor: not-allowed; }
.s-registration:hover { fill: #E5E9F2; }

.map-tag {
  position: fixed;
  background: rgba(10,30,91,0.96);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms;
  z-index: 1000;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(10,30,91,0.2);
}
.map-tag.on { opacity: 1; }
.map-tag .name { font-weight: 600; font-size: 12px; margin-bottom: 2px; }
.map-tag .meta { color: rgba(255,255,255,0.7); }

/* Map overlay chip — top-left */
.map-overlay {
  position: absolute;
  top: 16px; left: 16px;
  display: flex; gap: 8px; align-items: center;
  z-index: 5;
}
.map-overlay-chip {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand-indigo);
  display: flex; align-items: center; gap: 6px;
  box-shadow: var(--shadow-tile);
}
.map-overlay-chip .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--stoplight-green);
}

/* Map bottom hint */
.map-hint {
  position: absolute;
  bottom: 16px; right: 16px;
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.92);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-soft);
}
.map-hint .map-hint-desktop { display: inline; }
.map-hint .map-hint-mobile { display: none; }

/* Right panel — slide-in drawer */
.drawer-scrim {
  position: fixed; inset: 0;
  background: rgba(10,30,91,0.18);
  backdrop-filter: blur(2px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
}
.drawer-scrim.open {
  opacity: 1;
  pointer-events: auto;
}
.right-panel {
  position: fixed;
  top: 0; bottom: 0;
  right: 0;
  width: min(420px, 92vw);
  display: none;
  flex-direction: column;
  background: #FFFFFF;
  border-left: 1px solid var(--border-soft);
  border-radius: 0;
  box-shadow: -16px 0 48px rgba(10,30,91,0.16);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}
.right-panel.open {
  display: flex;
  right: 0;
  opacity: 1;
  pointer-events: auto;
  animation: rpSlideIn 220ms var(--ease-out);
}
@keyframes rpSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.empty-panel {
  padding: 48px 24px;
  min-height: 480px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  display: flex; flex-direction: column; gap: 12px;
  align-items: center; justify-content: center;
  flex: 1;
}
.empty-panel .icon {
  width: 48px; height: 48px; border-radius: 999px;
  background: var(--brand-indigo-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-indigo);
}

/* Panel content */
.panel-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-soft);
}
.panel-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 6px;
}
.panel-name {
  font: 600 22px/1.15 var(--font-sans);
  color: var(--brand-indigo); margin: 0;
  letter-spacing: -0.01em;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  margin-top: 10px;
}
.sp-available    { background: #E1E6F3; color: #0A1E5B; }
.sp-priority     { background: var(--brand-magenta-soft); color: #8c0340; }
.sp-held         { background: var(--stoplight-amber-soft); color: #8a5418; }
.sp-sold         { background: var(--brand-indigo); color: #fff; }
.sp-existing     { background: var(--stoplight-green-soft); color: #1e6e55; }
.sp-partial      { background: #E1E6F3; color: #0A1E5B; }
.sp-registration { background: #F2F5F5; color: var(--text-muted); }

.panel-scroll {
  flex: 1; overflow-y: auto; padding: 18px 22px;
  display: flex; flex-direction: column; gap: 18px;
  max-height: calc(100vh - 220px);
}
.panel-section h4 {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--text-muted); text-transform: uppercase;
  margin: 0 0 10px;
}
.metric-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.mg-cell {
  background: #F8F9FC;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 10px 12px;
}
.mg-cell .v {
  font: 600 20px/1 var(--font-sans);
  color: var(--brand-indigo);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.mg-cell .v.magenta { color: var(--brand-magenta); }
.mg-cell .v.green   { color: var(--stoplight-green); }
.mg-cell .l {
  font-size: 11px; color: var(--text-muted);
}
.metro-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.metro-chip {
  font-size: 11px; padding: 4px 10px; border-radius: 999px;
  background: #F2F5F5; color: var(--text-body);
  border: 1px solid var(--border-soft);
}

/* ROI calculator */
.roi-card {
  background: linear-gradient(180deg, #FAFBFD 0%, #FFFFFF 100%);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 14px 14px 16px;
}
.roi-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0;
  font-size: 12px;
  color: var(--text-body);
}
.roi-row + .roi-row { border-top: 1px dashed rgba(10,30,91,0.08); }
.roi-row .label { color: var(--text-muted); }
.roi-row .val {
  font-weight: 600; color: var(--brand-indigo);
  font-variant-numeric: tabular-nums;
}
.roi-row .val.big { font-size: 16px; }
.roi-slider {
  appearance: none; -webkit-appearance: none;
  width: 100%; height: 4px; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-magenta) 0%, var(--brand-magenta) var(--pct, 50%), #E1E6F3 var(--pct, 50%), #E1E6F3 100%);
  outline: none; margin: 6px 0;
}
.roi-slider::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px; border-radius: 999px;
  background: #FFFFFF; border: 2px solid var(--brand-magenta);
  cursor: pointer; box-shadow: 0 2px 6px rgba(229,3,102,0.25);
}
.roi-slider::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 999px;
  background: #FFFFFF; border: 2px solid var(--brand-magenta);
  cursor: pointer;
}
.roi-disclaimer {
  font-size: 10px; color: var(--text-muted); line-height: 1.5;
  margin-top: 8px; font-style: italic;
}

/* Vault block - the smart contract differentiator */
.vault-block {
  background: linear-gradient(135deg, #0A1E5B 0%, #1A2D6E 100%);
  border-radius: 12px;
  padding: 14px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.vault-block::before {
  content: ''; position: absolute; top: -40%; right: -20%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(229,3,102,0.4), transparent 70%);
  pointer-events: none;
}
.vault-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); margin-bottom: 8px;
  position: relative;
}
.vault-head .chain-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--brand-magenta);
  box-shadow: 0 0 8px rgba(229,3,102,0.8);
  animation: chainPulse 1.6s ease-in-out infinite;
}
@keyframes chainPulse {
  50% { opacity: 0.4; transform: scale(0.8); }
}
.vault-title {
  font: 600 14px/1.3 var(--font-sans); margin-bottom: 8px;
  position: relative;
}
.vault-hash {
  font-family: 'Menlo', 'Monaco', monospace;
  font-size: 11px; color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 10px; border-radius: 6px;
  position: relative;
  display: flex; align-items: center; gap: 6px;
  letter-spacing: 0.02em;
}
.vault-meta {
  font-size: 11px; color: rgba(255,255,255,0.6);
  margin-top: 8px; position: relative;
}

/* Panel CTA bar */
.panel-cta {
  border-top: 1px solid var(--border-soft);
  padding: 14px 22px;
  display: flex; flex-direction: column; gap: 8px;
  background: #FFFFFF;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 0; cursor: pointer; font-family: inherit;
  transition: background var(--motion-fast) var(--ease-out),
              border-color var(--motion-fast) var(--ease-out),
              color var(--motion-fast) var(--ease-out);
}
.btn-primary { background: var(--brand-indigo); color: #fff; }
.btn-primary:hover { background: #091852; }
.btn-magenta { background: var(--brand-magenta); color: #fff; }
.btn-magenta:hover { background: #cc025b; }
.btn-ghost { background: #FFFFFF; color: var(--brand-indigo); border: 1px solid var(--border-soft); }
.btn-ghost:hover { border-color: var(--brand-indigo); }
.btn-amber { background: var(--stoplight-amber); color: #fff; }
.btn-amber:hover { background: #B86F1F; }

/* Below-the-fold sections */
.section {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 32px;
  box-sizing: border-box;
}
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  margin-bottom: 20px; gap: 16px;
}
.section-head h2 {
  font: 600 22px/1.2 var(--font-sans);
  color: var(--brand-indigo); letter-spacing: -0.01em; margin: 0;
}
.section-head .sub {
  font-size: 13px; color: var(--text-muted); margin-top: 4px;
}

/* Pipeline + activity row */
.pulse-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 16px;
}

/* Pipeline funnel */
.pipeline {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: var(--shadow-tile);
}
.pipe-head {
  display: flex; justify-content: space-between; align-items: end; margin-bottom: 16px;
}
.pipe-head h3 {
  font: 600 16px/1 var(--font-sans);
  color: var(--brand-indigo); margin: 0;
}
.pipe-head .target {
  font-size: 11px; color: var(--text-muted);
}
.pipe-head .target strong { color: var(--brand-indigo); font-weight: 600; }

.pipe-bar {
  height: 14px; border-radius: 999px; background: #F2F5F5;
  display: flex; overflow: hidden; margin-bottom: 12px;
  border: 1px solid var(--border-soft);
}
.pipe-bar .seg {
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600; color: #fff;
  transition: width var(--motion-medium) var(--ease-out);
}
.pipe-bar .seg-awarded   { background: var(--brand-indigo); }
.pipe-bar .seg-fdd       { background: var(--brand-magenta); }
.pipe-bar .seg-discovery { background: var(--stoplight-amber); }
.pipe-bar .seg-remaining { background: transparent; color: var(--text-muted); }

.pipe-stages {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 8px; margin-top: 16px;
}
.pipe-stage {
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 12px;
  background: #FFFFFF;
  position: relative;
}
.pipe-stage .num {
  font: 600 22px/1 var(--font-sans);
  color: var(--brand-indigo);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.pipe-stage .lbl {
  font-size: 11px; color: var(--text-muted);
  letter-spacing: 0.04em;
}
.pipe-stage .conv {
  font-size: 10px; color: var(--stoplight-green);
  margin-top: 4px; font-weight: 600;
}
.pipe-stage .arrow {
  position: absolute; right: -8px; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  background: #FFFFFF; border-top: 1px solid var(--border-soft);
  border-right: 1px solid var(--border-soft);
  transform: translateY(-50%) rotate(45deg);
  z-index: 1;
}
.pipe-stage:last-child .arrow { display: none; }

/* Activity feed */
.feed {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow: var(--shadow-tile);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.feed-head {
  padding: 16px 18px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border-soft);
}
.feed-head h3 {
  font: 600 14px/1 var(--font-sans);
  color: var(--brand-indigo); margin: 0;
}
.feed-head .live-dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--stoplight-green);
  position: relative;
}
.feed-head .live-dot::after {
  content:''; position: absolute; inset: -4px; border-radius: 999px;
  background: var(--stoplight-green); opacity: .35;
  animation: pulseRing 2s ease-out infinite;
}
.feed-list {
  flex: 1; overflow-y: auto; max-height: 380px;
}
.feed-item {
  padding: 12px 18px;
  border-bottom: 1px solid #F2F5F5;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: start;
  transition: background var(--motion-fast);
}
.feed-item:hover { background: #F8F9FC; }
.feed-item:last-child { border-bottom: 0; }
.feed-icon {
  width: 24px; height: 24px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
}
.fi-inquiry   { background: var(--brand-magenta-soft); color: var(--brand-magenta); }
.fi-hold      { background: var(--stoplight-amber-soft); color: var(--stoplight-amber); }
.fi-vault     { background: var(--brand-indigo); color: #fff; }
.fi-fdd       { background: var(--brand-indigo-soft); color: var(--brand-indigo); }
.fi-discovery { background: var(--brand-indigo-soft); color: var(--brand-indigo); }
.fi-ada       { background: var(--stoplight-green-soft); color: var(--stoplight-green); }
.feed-item .body { font-size: 12px; color: var(--text-body); }
.feed-item .body .terr {
  font-weight: 600; color: var(--brand-indigo); display: block; margin-bottom: 2px;
}
.feed-item .body .det { color: var(--text-muted); font-size: 11px; line-height: 1.4; }
.feed-item .ts {
  font-size: 10px; color: var(--text-muted);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* Reservation rail */
.rail-block {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow: var(--shadow-tile);
  padding: 28px 32px;
}
.rail-stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
  position: relative;
}
.rail-stage {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 16px 18px;
  position: relative;
  background: #FFFFFF;
  transition: border-color var(--motion-fast), transform var(--motion-fast);
}
.rail-stage.active {
  border-color: var(--brand-magenta);
  background: linear-gradient(180deg, var(--brand-magenta-soft) 0%, #FFFFFF 60%);
}
.rail-stage .step {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--text-muted); text-transform: uppercase; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.rail-stage .step .num {
  width: 18px; height: 18px; border-radius: 999px;
  background: #F2F5F5; color: var(--brand-indigo);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0;
}
.rail-stage.active .step .num { background: var(--brand-magenta); color: #fff; }
.rail-stage h4 {
  font: 600 15px/1.25 var(--font-sans);
  color: var(--brand-indigo); margin: 0 0 6px;
}
.rail-stage p {
  font-size: 12px; color: var(--text-body); line-height: 1.5; margin: 0;
}
.rail-stage .badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px;
  font-size: 10px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px;
  background: #F2F5F5; color: var(--brand-indigo);
}
.rail-stage .badge.chain { background: var(--brand-indigo); color: #fff; }
.rail-stage .badge.chain::before {
  content: ''; width: 6px; height: 6px; border-radius: 999px;
  background: var(--brand-magenta); box-shadow: 0 0 6px rgba(229,3,102,0.8);
}

/* Territory table */
.t-table-wrap {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow: var(--shadow-tile);
  overflow: hidden;
}
.t-table-toolbar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-soft);
}
.t-filters { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; }
.t-filter {
  padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  background: #F8F9FC; color: var(--text-body);
  border: 1px solid var(--border-soft); cursor: pointer;
  letter-spacing: 0.04em; transition: all var(--motion-fast);
}
.t-filter.active { background: var(--brand-indigo); color: #fff; border-color: var(--brand-indigo); }
.t-filter:hover:not(.active) { border-color: var(--brand-indigo); }

.t-search {
  background: #F8F9FC; border: 1px solid var(--border-soft);
  border-radius: 999px; padding: 6px 14px;
  font-size: 12px; color: var(--text-body); font-family: inherit; width: 180px;
}
.t-search:focus { outline: none; border-color: var(--brand-magenta); background: #FFFFFF; }

table.t-table {
  width: 100%; border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
table.t-table th {
  text-align: left; padding: 10px 16px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--text-muted); text-transform: uppercase;
  border-bottom: 1px solid var(--border-soft);
  background: #FAFBFD; cursor: pointer; user-select: none;
  position: sticky; top: 0; z-index: 5;
}
table.t-table th .arr { opacity: 0.4; font-size: 10px; }
table.t-table td {
  padding: 12px 16px; font-size: 13px;
  color: var(--text-body); border-bottom: 1px solid #F2F5F5;
  vertical-align: middle;
}
table.t-table tbody tr {
  transition: background var(--motion-fast);
  cursor: pointer;
}
table.t-table tbody tr:hover { background: #F8F9FC; }
table.t-table .terr-name {
  font-weight: 600; color: var(--brand-indigo);
}
table.t-table .terr-name .star {
  color: var(--brand-magenta); margin-left: 4px;
}
table.t-table .units-range { font-weight: 600; color: var(--brand-indigo); }
table.t-table .fee-range { color: var(--text-body); }
table.t-table .activity {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--text-muted);
}
table.t-table .activity .heat {
  width: 32px; height: 4px; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-magenta), #f9c2d8);
  position: relative;
}
table.t-table .activity .heat .fill {
  position: absolute; top: 0; left: 0; height: 100%;
  background: var(--brand-magenta); border-radius: 999px;
}
.t-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.04em;
}
.t-status .dot { width: 6px; height: 6px; border-radius: 999px; }
.ts-available  { background: #E1E6F3; color: var(--brand-indigo); }
.ts-priority   { background: var(--brand-magenta-soft); color: #8c0340; }
.ts-held       { background: var(--stoplight-amber-soft); color: #8a5418; }
.ts-sold       { background: var(--brand-indigo); color: #fff; }
.ts-existing   { background: var(--stoplight-green-soft); color: #1e6e55; }
.ts-partial    { background: #E1E6F3; color: var(--brand-indigo); }

.row-action {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600;
  color: var(--brand-magenta); cursor: pointer;
  padding: 4px 8px; border-radius: 6px;
  transition: background var(--motion-fast);
}
.row-action:hover { background: var(--brand-magenta-soft); }



/* Modal */
.modal-scrim {
  position: fixed; inset: 0; background: rgba(10,30,91,0.45);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--motion-medium);
}
.modal-scrim.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #FFFFFF;
  border-radius: 20px;
  width: 560px; max-width: 100%; max-height: 90vh;
  box-shadow: 0 24px 80px rgba(10,30,91,0.3);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform var(--motion-medium) var(--ease-out);
}
.modal-scrim.open .modal { transform: translateY(0); }
.modal-wide { width: 920px; }

.modal-head {
  padding: 22px 28px 20px;
  border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: start; justify-content: space-between;
  gap: 16px;
}
.modal-head h2 {
  font: 600 18px/1.25 var(--font-sans);
  color: var(--brand-indigo); margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.modal-head p {
  font-size: 12px; color: var(--text-muted); margin: 0; line-height: 1.5;
}
.modal-close {
  width: 32px; height: 32px; border-radius: 999px;
  background: #F2F5F5; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--brand-indigo); font-size: 18px;
}
.modal-close:hover { background: #E5E9F2; }

.modal-body { padding: 24px 28px; overflow-y: auto; flex: 1; }

.terr-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-magenta-soft);
  color: #8c0340;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.form-row { margin-bottom: 14px; }
.form-row label {
  display: block;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--text-muted); text-transform: uppercase;
  margin-bottom: 5px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--brand-indigo);
  font-family: inherit;
  background: #FFFFFF;
  transition: border-color var(--motion-fast);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none; border-color: var(--brand-magenta);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.modal-foot {
  border-top: 1px solid var(--border-soft);
  padding: 18px 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.modal-disclaimer {
  font-size: 10px; color: var(--text-muted); line-height: 1.6;
  text-align: center;
}


/* Reserve flow */
.reserve-stage {
  display: flex; flex-direction: column; gap: 16px;
}

/* Units picker (in interest modal) */
.units-picker-row label {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
}
.units-picker-hint {
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 500;
}
.units-picker {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: #F5F7FB;
  border: 1px solid #E1E6F0;
  border-radius: 10px;
}
.units-step {
  width: 32px; height: 32px; flex-shrink: 0;
  background: #fff;
  border: 1px solid #D6DCEA;
  border-radius: 8px;
  font-size: 16px; font-weight: 600; color: var(--brand-indigo);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
  transition: background var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out);
}
.units-step:hover { background: var(--brand-indigo); color: #fff; border-color: var(--brand-indigo); }
.units-slider {
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-magenta) 0%, var(--brand-magenta) var(--fillpct, 50%), #D6DCEA var(--fillpct, 50%), #D6DCEA 100%);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.units-slider::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px;
  background: #fff;
  border: 2px solid var(--brand-magenta);
  border-radius: 999px;
  cursor: grab;
  box-shadow: 0 2px 6px rgba(229,3,102,0.3);
}
.units-slider::-moz-range-thumb {
  width: 18px; height: 18px;
  background: #fff;
  border: 2px solid var(--brand-magenta);
  border-radius: 999px;
  cursor: grab;
  box-shadow: 0 2px 6px rgba(229,3,102,0.3);
}
.units-readout {
  flex-shrink: 0;
  min-width: 130px;
  text-align: right;
}
.units-readout-num {
  font: 700 22px/1 var(--font-sans);
  color: var(--brand-indigo);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.units-readout-fee {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}
.units-readout-disc {
  color: var(--brand-magenta);
  font-weight: 600;
}

.reserve-vault-preview {
  background: linear-gradient(135deg, #0A1E5B 0%, #1A2D6E 60%, #2a3d80 100%);
  color: #fff;
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.reserve-vault-preview::before {
  content: ''; position: absolute; top: -30%; right: -10%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(229,3,102,0.35), transparent 70%);
  pointer-events: none;
}
.reserve-vault-preview h3 {
  position: relative; font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); margin: 0 0 12px;
  display: flex; align-items: center; gap: 10px;
}
.reserve-vault-preview h3 .pulse-blob {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--brand-magenta);
  box-shadow: 0 0 10px rgba(229,3,102,0.9);
  animation: chainPulse 1.6s ease-in-out infinite;
}
.reserve-vault-preview .vault-territory {
  font: 600 22px/1.2 var(--font-sans);
  margin: 0 0 6px; position: relative;
}
.reserve-vault-preview .vault-units {
  font-size: 13px; color: rgba(255,255,255,0.7);
  position: relative;
}
.reserve-vault-preview .vault-fields {
  position: relative; margin-top: 18px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 16px;
}
.reserve-vault-preview .vault-fields .lbl {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 4px;
}
.reserve-vault-preview .vault-fields .val {
  font: 600 14px/1.3 var(--font-sans); color: #fff;
  font-variant-numeric: tabular-nums;
}
.reserve-vault-preview .vault-fields .val.mono {
  font-family: 'Menlo', 'Monaco', monospace; font-size: 12px;
}
.chain-line {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; color: var(--text-muted);
  background: #F8F9FC; border: 1px solid var(--border-soft);
  border-radius: 10px; padding: 10px 12px;
}
.chain-line .ico {
  width: 26px; height: 26px; border-radius: 999px;
  background: var(--brand-indigo); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chain-line .copy strong { color: var(--brand-indigo); display: block; font-size: 12px; }
.compliance-strip {
  font-size: 10px; line-height: 1.6; color: var(--text-muted);
  background: #FAFBFD; border: 1px dashed var(--border-soft);
  border-radius: 10px; padding: 10px 14px;
}

/* Success state */
.success-wrap {
  text-align: center; padding: 36px 28px 28px;
}
.success-icon {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--stoplight-green) 0%, #1e6e55 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.success-wrap h3 {
  font: 600 22px/1.2 var(--font-sans);
  color: var(--brand-indigo); margin: 0 0 10px;
}
.success-wrap p { font-size: 13px; color: var(--text-body); line-height: 1.6; }
.success-vault {
  margin: 18px auto 0; max-width: 380px;
  font-family: monospace; font-size: 11px;
  background: #F8F9FC; border: 1px solid var(--border-soft);
  border-radius: 10px; padding: 10px 14px;
  color: var(--brand-indigo); word-break: break-all;
}

/* Footer */
.app-foot {
  margin-top: 64px;
  border-top: 1px solid var(--border-soft);
  padding: 32px;
  font-size: 11px; color: var(--text-muted);
  background: #FFFFFF;
}
.app-foot .inner {
  max-width: 1440px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
}
.app-foot .col h5 {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-indigo); font-weight: 700;
  margin: 0 0 8px;
}
.app-foot .compliance {
  max-width: 480px; line-height: 1.6;
}

/* Tweaks panel adjustments */
.tweaks-radio { display: flex; flex-direction: column; gap: 6px; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D5DAE6; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-indigo); }

/* Status state visualization variants (for Tweaks) */
body[data-state-viz="patterns"] .us-map:not(.us-hexmap) .s-priority { fill: url(#patternPriority); }
body[data-state-viz="patterns"] .us-map:not(.us-hexmap) .s-held     { fill: url(#patternHeld); }
body[data-state-viz="patterns"] .us-map:not(.us-hexmap) .s-sold     { fill: url(#patternSold); }
body[data-state-viz="patterns"] .us-hexmap .s-priority { fill: url(#hexPatternPriority); }
body[data-state-viz="patterns"] .us-hexmap .s-held     { fill: url(#hexPatternHeld); }
body[data-state-viz="patterns"] .us-hexmap .s-sold     { fill: url(#hexPatternSold); }
body[data-state-viz="glow"] svg.us-map .state-path.s-priority {
  filter: drop-shadow(0 0 8px rgba(229,3,102,0.6));
}
body[data-state-viz="glow"] svg.us-map .state-path.s-held {
  filter: drop-shadow(0 0 6px rgba(212,134,46,0.5));
}
body[data-state-viz="glow"] svg.us-map .state-path.s-sold {
  filter: drop-shadow(0 0 8px rgba(10,30,91,0.5));
}

/* Hex map partial fill override */
.us-hexmap .s-partial { fill: url(#hexPartialFill); }

/* Geo map: ensure status fills + selection visible on irregular polys */
.us-geomap .state-path { stroke:#FFFFFF; stroke-width:1.2; }
.us-geomap .state-path.selected { stroke:#E50366; stroke-width:2.5; }
.us-geomap .s-partial { fill: url(#geoPartialFill); }
body[data-state-viz="patterns"] .us-geomap .s-priority { fill: url(#geoPatternPriority); }
body[data-state-viz="patterns"] .us-geomap .s-held     { fill: url(#geoPatternHeld); }
body[data-state-viz="patterns"] .us-geomap .s-sold     { fill: url(#geoPatternSold); }

/* Tweaks panel specific */
.tweaks-segment {
  display: flex; gap: 4px; padding: 3px;
  background: #F2F5F5; border-radius: 8px;
}
.tweaks-segment button {
  flex: 1; padding: 6px 10px;
  background: transparent; border: 0; cursor: pointer;
  font-size: 11px; font-weight: 600;
  color: var(--text-muted); border-radius: 6px;
  font-family: inherit;
  transition: all var(--motion-fast);
}
.tweaks-segment button.on {
  background: #FFFFFF; color: var(--brand-indigo);
  box-shadow: var(--shadow-tile);
}

@media (max-width: 1280px) {
  .terminal { grid-template-columns: 200px minmax(0, 1fr); padding: 24px 20px 0; gap: 12px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 1100px) {
  .terminal {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "map" "rail";
    gap: 12px; padding: 20px 16px 0;
  }
  .terminal > .left-rail { grid-area: rail; }
  .terminal > .map-col { grid-area: map; }
  .left-rail { flex-direction: row; flex-wrap: wrap; }
  .left-rail > .t-card { flex: 1 1 calc(50% - 8px); min-width: 200px; }
  .rail-stages { grid-template-columns: repeat(2, 1fr); }
}

/* === MOBILE === */
@media (max-width: 960px) {
  /* Header collapses — hide nav, keep logo + CTA + hamburger */
  .app-header { height: 60px; padding: 0 16px; gap: 12px; }
  .app-header .logo { height: 42px; }
  .app-header nav { display: none; }
  .app-header .right .version-tag { display: none; }
  .app-header .right .btn { padding: 8px 12px !important; font-size: 10px !important; }
  .hamburger-btn { display: inline-flex !important; }

  /* Sub-rail becomes scrollable terminal strip */
  .sub-rail {
    padding: 8px 16px;
    gap: 14px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    font-size: 11px;
    top: 60px;
  }
  .sub-rail::-webkit-scrollbar { height: 0; display: none; }
  .sub-rail > div { flex-shrink: 0; white-space: nowrap; }
  .sub-rail > div[style*="margin-left: auto"] { margin-left: 0 !important; }

  /* Hero compresses */
  .hero-band { padding: 28px 16px 24px; }
  .hero-h1 { font-size: 28px; }
  .hero-sub { font-size: 14px; line-height: 1.55; }
  .headline-stats { grid-template-columns: repeat(2, 1fr); }
  .hstat { padding: 12px 14px; }
  .hstat:nth-child(2) { border-right: 0; }
  .hstat:nth-child(1), .hstat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .hstat-value { font-size: 22px; }

  /* Terminal stacks: map → side panel → left rail */
  .terminal {
    grid-template-columns: 1fr;
    grid-template-areas: "map" "rail";
    gap: 12px; padding: 16px;
  }
  .left-rail { flex-direction: column; }
  .left-rail > .t-card { flex: 1 1 100%; }
  .map-shell { padding: 44px 6px 28px; min-height: 320px; }
  .map-overlay { top: 10px; left: 10px; gap: 6px; }
  .map-overlay-chip { font-size: 10px; padding: 4px 9px; }
  .map-hint { font-size: 10px; bottom: 10px; right: 10px; }
  .map-hint .map-hint-desktop { display: none; }
  .map-hint .map-hint-mobile { display: inline; }
  .right-panel .panel-head { padding: 14px 14px 12px; }
  .right-panel .panel-eyebrow { font-size: 12px; }
  .right-panel .panel-name { font-size: 26px; }
  .right-panel .panel-scroll { padding: 14px 14px; gap: 14px; max-height: none; font-size: 15px; }
  .right-panel .panel-scroll h3 { font-size: 14px; }
  .right-panel .panel-cta { padding: 12px 14px; }
  .empty-panel { padding: 28px 18px; min-height: 200px; }
  .metric-grid { gap: 8px; }
  .mg-cell { padding: 12px 14px; }
  .mg-cell .v { font-size: 26px; font-weight: 700; line-height: 1.1; }
  .mg-cell .l { font-size: 13px; }

  /* Inline-styled rows — override with !important to beat inline JSX */
  .right-panel .sub-region-row .sr-name { font-size: 16px !important; }
  .right-panel .sub-region-row .sr-meta { font-size: 13px !important; }
  .right-panel .committed-row { font-size: 14px !important; }
  .right-panel .committed-row strong { font-size: 18px !important; }

  /* Unit-economics modeler: bump the entire ROI card */
  .right-panel .roi-card { font-size: 15px !important; }
  .right-panel .roi-card .roi-row { font-size: 15px !important; padding: 8px 0 !important; }
  .right-panel .roi-card .roi-row .label { font-size: 15px !important; }
  .right-panel .roi-card .roi-row .val { font-size: 16px !important; }
  .right-panel .roi-card .roi-row .val.big { font-size: 20px !important; }
  .right-panel .roi-card .roi-row .label[style] { font-size: 16px !important; }
  /* Tier ladder cells (1u/2u/3u/4u/5+u) */
  .right-panel .roi-card .tier-cell-num { font-size: 14px !important; }
  .right-panel .roi-card .tier-cell-disc { font-size: 13px !important; }

  /* Sections */
  .section { padding: 24px 16px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .section-head h2 { font-size: 18px; }
  .pulse-row { grid-template-columns: 1fr; }

  .rail-stages { grid-template-columns: 1fr; gap: 10px; }
  .rail-block { padding: 22px 20px; }
  .rail-stage { padding: 18px 18px; }
  .rail-stage .step { font-size: 12px !important; gap: 10px !important; margin-bottom: 10px !important; }
  .rail-stage .step .num { width: 22px !important; height: 22px !important; font-size: 12px !important; }
  .rail-stage h4 { font-size: 18px !important; line-height: 1.25 !important; margin: 0 0 8px !important; }
  .rail-stage p { font-size: 14px !important; line-height: 1.5 !important; }
  .rail-stage .badge { font-size: 11px !important; padding: 5px 10px !important; }

  .pipe-stages { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .pipeline { padding: 16px 18px; }

  /* Table goes horizontal scroll */
  .t-table-wrap { overflow-x: auto; }
  table.t-table { min-width: 720px; }
  .t-table-toolbar { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
  .t-search { width: 100%; }
  .t-filters { width: 100%; order: 2; }


  /* Modal becomes near-full-screen */
  .modal-scrim { padding: 0; align-items: flex-end; }
  .modal { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; }
  .modal-wide { width: 100%; }
  .modal-head { padding: 18px 18px 14px; }
  .modal-body { padding: 18px; }
  .modal-foot { padding: 14px 18px; }
  .form-grid { grid-template-columns: 1fr; }

  /* Footer */
  .app-foot { padding: 24px 16px; }
  .app-foot .inner { flex-direction: column; gap: 20px; }
}

@media (max-width: 480px) {
  .hero-h1 { font-size: 24px; }
  .headline-stats { grid-template-columns: 1fr 1fr; }
  .hstat-value { font-size: 19px; }
}


/* ──────────────────────────────────────────────────────────
   Multi-page additions: shared header tweaks, Home page,
   Internal Pipeline (login + dashboard chrome)
   ────────────────────────────────────────────────────────── */

/* Shared header: nav has flex spacer; internal link is set apart */
.app-header nav { flex: 1; align-items: center; }
.app-header nav .internal-link {
  color: var(--brand-indigo-text-mute);
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(0,0,0,0.18);
  transition: all var(--motion-fast) var(--ease-out);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.app-header nav .internal-link:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.06);
}
.app-header nav .internal-link.active {
  color: #fff;
  background: var(--brand-magenta);
  border-color: var(--brand-magenta);
  box-shadow: 0 0 12px rgba(229,3,102,0.35);
}
.app-header nav .internal-link.active::after { display: none; }

/* ─── Home page: pillars ─── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 auto;
  max-width: 1440px;
  padding: 0 32px;
}
.pillar {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 24px 22px 22px;
  position: relative;
  overflow: hidden;
}
.pillar::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--brand-magenta);
  opacity: 0.85;
}
.pillar-icon {
  width: 44px; height: 44px;
  background: var(--brand-magenta-soft);
  color: var(--brand-magenta);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.pillar h3 {
  font-size: 16px;
  color: var(--brand-indigo);
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.pillar p {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.55;
  margin: 0;
  text-wrap: pretty;
}

/* ─── Home page: journey rail (Inquiry → Franchisee) ─── */
.journey {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 8px auto 0;
  max-width: 1100px;
  padding: 8px 0 0;
}
.journey-track {
  position: absolute;
  left: 22px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: linear-gradient(to bottom,
    var(--brand-magenta) 0%,
    var(--brand-magenta) 12%,
    var(--brand-indigo) 50%,
    rgba(10,30,91,0.25) 100%);
}
.jstage {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  cursor: pointer;
  position: relative;
}
.jstage:hover .jlabel { color: var(--brand-magenta); }
.jdot {
  width: 46px; height: 46px;
  background: #fff;
  border: 2px solid var(--brand-indigo);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: all var(--motion-fast) var(--ease-out);
}
.jstage.open .jdot,
.jstage:hover .jdot {
  border-color: var(--brand-magenta);
  background: var(--brand-magenta);
  box-shadow: 0 0 0 4px rgba(229,3,102,0.15);
}
.jstage.open .jnum,
.jstage:hover .jnum { color: #fff; }
.jnum {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-indigo);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  transition: color var(--motion-fast);
}
.jbody {
  flex: 1;
  padding-top: 4px;
}
.jhead {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 6px;
}
.jlabel {
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-indigo);
  letter-spacing: -0.01em;
  transition: color var(--motion-fast);
}
.jdur {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.jdesc {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.55;
  text-wrap: pretty;
  max-width: 720px;
}
.jdetail {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--brand-magenta-soft);
  border-left: 3px solid var(--brand-magenta);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: var(--brand-indigo);
  line-height: 1.55;
  max-width: 720px;
  text-wrap: pretty;
}

/* ─── Home page: bottom CTA card ─── */
.home-cta {
  margin: 48px auto 0;
  max-width: 1100px;
  background: linear-gradient(135deg, var(--brand-indigo) 0%, var(--brand-indigo-deep) 100%);
  color: #fff;
  border-radius: 14px;
  padding: 32px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.home-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 600px 200px at 80% 100%, rgba(229,3,102,0.25), transparent 60%);
  pointer-events: none;
}
.home-cta-left { position: relative; z-index: 1; }
.home-cta-right {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.cta-eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-magenta);
  font-weight: 700;
  margin-bottom: 6px;
}
.cta-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
  color: #fff;
}
.cta-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  max-width: 540px;
}
.home-cta .btn-ghost {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.home-cta .btn-ghost:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.35);
}

/* ─── Internal Pipeline: login screen ─── */
.login-screen {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 800px 500px at 50% 30%, rgba(229,3,102,0.10), transparent 60%),
    linear-gradient(180deg, var(--brand-indigo-deep) 0%, #04102E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
}
.login-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 30%, transparent 90%);
  pointer-events: none;
}
.login-card {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 440px;
  padding: 36px 36px 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
  position: relative;
  z-index: 1;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}
.login-brand .logo {
  filter: brightness(0) saturate(100%) invert(11%) sepia(67%) saturate(2917%) hue-rotate(220deg) brightness(50%) contrast(120%);
}
.login-divider {
  width: 1px; height: 22px; background: var(--border-soft);
}
.login-internal-tag {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-magenta);
  font-weight: 700;
  background: var(--brand-magenta-soft);
  padding: 4px 10px;
  border-radius: 4px;
}
.login-card h1 {
  font-size: 22px;
  color: var(--brand-indigo);
  margin: 0 0 6px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.login-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 24px;
}
.login-field {
  display: block;
  margin-bottom: 14px;
}
.login-field span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.login-field input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--brand-indigo);
  background: #FAFBFD;
  transition: all var(--motion-fast);
  box-sizing: border-box;
}
.login-field input:focus {
  outline: none;
  border-color: var(--brand-magenta);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(229,3,102,0.12);
}
.login-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0 18px;
}
.login-row a:hover { text-decoration: underline; }
.login-btn {
  width: 100%;
  padding: 12px !important;
  font-size: 13px !important;
  justify-content: center;
}
.login-sso {
  width: 100%;
  margin-top: 8px;
  padding: 11px !important;
  font-size: 12px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.login-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.login-foot a {
  color: var(--brand-magenta);
  font-weight: 500;
}
.login-foot a:hover { text-decoration: underline; }
.login-watermark {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}
.lw-line {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.35);
  font-weight: 700;
  font-family: var(--font-mono, ui-monospace, monospace);
}
.lw-sub {
  font-size: 9px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.22);
  margin-top: 4px;
}

/* ─── Internal Pipeline: dashboard chrome ─── */
.app-header-internal {
  background:
    linear-gradient(180deg, #1a0d1f 0%, #0a0512 100%);
  border-bottom: 1px solid rgba(229,3,102,0.3);
}
.app-header-internal::before {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-magenta), transparent);
}
.internal-tag-strip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--brand-magenta);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  margin-left: 6px;
}
.sub-rail-internal {
  background: #0a0512;
  border-bottom: 1px solid rgba(229,3,102,0.2);
  font-family: var(--font-mono, ui-monospace, 'SF Mono', monospace);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.sub-rail-internal strong { color: #fff; }

/* Internal KPI band — denser than public hero */
.internal-kpi-band {
  background:
    linear-gradient(180deg, #f7f8fc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-soft);
  padding: 28px 32px 24px;
}
.ikpi-inner {
  max-width: 1440px;
  margin: 0 auto;
}
.ikpi-head {
  margin-bottom: 18px;
}
.ikpi-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.ikpi-eyebrow .bar {
  display: inline-block;
  width: 18px; height: 2px;
  background: var(--brand-magenta);
}
.ikpi-h1 {
  font-size: 28px;
  font-weight: 600;
  color: var(--brand-indigo);
  letter-spacing: -0.02em;
  margin: 0;
}
.ikpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  overflow: hidden;
}
.ikpi-cell {
  padding: 16px 20px;
  border-right: 1px solid var(--border-soft);
}
.ikpi-cell:last-child { border-right: none; }
.ikpi-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.ikpi-value {
  font-size: 28px;
  font-weight: 600;
  color: var(--brand-indigo);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.ikpi-value .unit {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 1px;
}
.ikpi-delta {
  font-size: 11px;
  color: var(--stoplight-green);
  font-weight: 500;
  margin-top: 6px;
}
.ikpi-delta.neutral { color: var(--text-muted); }

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .pillars { grid-template-columns: 1fr; }
  .ikpi-grid { grid-template-columns: repeat(2, 1fr); }
  .ikpi-cell { border-bottom: 1px solid var(--border-soft); }
  .home-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 820px) {
  .app-header nav .internal-link { padding: 4px 8px; font-size: 10px; }
  .login-card { padding: 24px 22px; }
  .ikpi-grid { grid-template-columns: 1fr; }
  .internal-kpi-band { padding: 20px 16px; }
  .home-cta { padding: 24px 22px; margin: 32px 16px 0; }
  .cta-title { font-size: 20px; }
  .journey-track { left: 18px; }
  .jdot { width: 38px; height: 38px; }
  .jlabel { font-size: 16px; }
  .pillars { padding: 0 16px; }
}


/* ──────────────────────────────────────────────────────────
   "Inquiry → Franchisee · End-to-End" pitch band
   ────────────────────────────────────────────────────────── */
.e2e-band {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 32px 32px;
  background:
    radial-gradient(ellipse 700px 240px at 80% 0%, rgba(229,3,102,0.06), transparent 60%),
    linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.e2e-band::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--brand-magenta) 0%, var(--brand-indigo) 100%);
}
.e2e-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 12px;
  background: var(--brand-indigo);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
  font-family: var(--font-mono, ui-monospace, monospace);
}
.e2e-eyebrow svg { color: var(--brand-magenta); }
.e2e-eyebrow .e2e-arrow { color: #fff; }
.e2e-eyebrow .e2e-dot { color: rgba(255,255,255,0.4); }
.e2e-eyebrow .e2e-tag {
  color: var(--brand-magenta);
  font-weight: 700;
}
.e2e-h2 {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 600;
  color: var(--brand-indigo);
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  max-width: 880px;
  text-wrap: balance;
}
.e2e-h2 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--brand-magenta), #ff5396);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.e2e-sub {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.6;
  max-width: 820px;
  margin: 0 0 24px;
  text-wrap: pretty;
}
.e2e-proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-soft);
  padding-top: 20px;
}
.e2e-proof-cell {
  padding: 0 18px;
  border-right: 1px solid var(--border-soft);
}
.e2e-proof-cell:first-child { padding-left: 0; }
.e2e-proof-cell:last-child { border-right: none; padding-right: 0; }
.e2e-proof-num {
  font-size: 32px;
  font-weight: 600;
  color: var(--brand-indigo);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.e2e-proof-num span {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 1px;
}
.e2e-proof-lbl {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 6px;
  line-height: 1.35;
}

/* ──────────────────────────────────────────────────────────
   "Secure the Region" RD CTA — 3 variants
   ────────────────────────────────────────────────────────── */
.rd-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  border: 1px solid;
  position: relative;
  transition: all var(--motion-fast) var(--ease-out);
}
.rd-cta:hover { transform: translateY(-1px); }
.rd-cta .rd-glyph {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 6px;
}
.rd-cta .rd-label-block {
  display: flex; flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
  text-align: left;
}
.rd-cta .rd-sub {
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.85;
}
.rd-cta .rd-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-top: 2px;
}
.rd-cta .rd-counter {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono, ui-monospace, monospace);
}

/* Variant: Vault — premium dark indigo with gold trim */
.rd-cta-vault {
  background: linear-gradient(180deg, #0e2266 0%, #061240 100%);
  border-color: rgba(212,165,90,0.45);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(212,165,90,0.15),
    0 4px 14px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.08);
}
.rd-cta-vault:hover {
  border-color: rgba(212,165,90,0.85);
  box-shadow:
    0 0 0 1px rgba(212,165,90,0.3),
    0 6px 20px rgba(212,165,90,0.2),
    inset 0 1px 0 rgba(255,255,255,0.12);
}
.rd-cta-vault .rd-glyph {
  background: linear-gradient(135deg, #d4a55a 0%, #a87d3b 100%);
  color: #1a0e3d;
  box-shadow: 0 0 8px rgba(212,165,90,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}
.rd-cta-vault .rd-sub { color: #d4a55a; }
.rd-cta-vault .rd-counter {
  background: rgba(212,165,90,0.15);
  color: #f0c781;
  border: 1px solid rgba(212,165,90,0.3);
}

/* Variant: Founder's — warm magenta-to-indigo */
.rd-cta-founders {
  background: linear-gradient(135deg, #2a0c3d 0%, #4a0f4f 100%);
  border-color: rgba(229,3,102,0.5);
  color: #fff;
  box-shadow:
    0 4px 14px rgba(229,3,102,0.2),
    inset 0 1px 0 rgba(255,255,255,0.08);
}
.rd-cta-founders:hover {
  border-color: var(--brand-magenta);
  box-shadow: 0 6px 20px rgba(229,3,102,0.35), inset 0 1px 0 rgba(255,255,255,0.12);
}
.rd-cta-founders .rd-glyph {
  background: var(--brand-magenta);
  color: #fff;
  box-shadow: 0 0 10px rgba(229,3,102,0.5);
}
.rd-cta-founders .rd-sub { color: #ff7eb1; }
.rd-cta-founders .rd-counter {
  background: rgba(229,3,102,0.18);
  color: #ffb3d2;
  border: 1px solid rgba(229,3,102,0.4);
}

/* Variant: Invest — clean magenta with finance feel */
.rd-cta-invest {
  background: var(--brand-magenta);
  border-color: var(--brand-magenta);
  color: #fff;
  box-shadow: 0 4px 14px rgba(229,3,102,0.35);
}
.rd-cta-invest:hover {
  background: #d10257;
  box-shadow: 0 6px 20px rgba(229,3,102,0.45);
}
.rd-cta-invest .rd-glyph {
  background: rgba(255,255,255,0.18);
  color: #fff;
}
.rd-cta-invest .rd-sub { color: rgba(255,255,255,0.85); }
.rd-cta-invest .rd-counter {
  background: rgba(0,0,0,0.25);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

/* Responsive */
@media (max-width: 1100px) {
  .e2e-h2 { font-size: 28px; }
  .e2e-proof { grid-template-columns: repeat(2, 1fr); gap: 16px 0; }
  .e2e-proof-cell:nth-child(2) { border-right: none; }
  .e2e-proof-cell:nth-child(3) { padding-left: 0; }
  .rd-cta .rd-counter { display: none; }
}
@media (max-width: 820px) {
  .e2e-band { padding: 22px 20px 24px; margin: 0 16px; }
  .e2e-h2 { font-size: 22px; }
  .rd-cta .rd-label-block { display: none; }
  .rd-cta { padding: 6px 8px; }
}


/* Required-field marker on form labels */
.form-row label .req {
  color: var(--brand-magenta);
  font-weight: 700;
  margin-left: 2px;
}

/* ─── Release / Manage modal ─────────────────────────────────── */
.rmm-scrim { z-index: 250; }
.rmm-modal {
  width: min(560px, 96vw);
  max-height: 92vh;
  display: flex; flex-direction: column;
}
.rmm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rmm-eyebrow {
  font: 600 10px/1 var(--font-sans);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 6px;
}
.rmm-title {
  font: 600 20px/1.2 var(--font-sans); color: var(--brand-indigo);
  margin: 0 0 6px; letter-spacing: -0.01em;
}
.rmm-sub { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.rmm-mono {
  font-family: var(--font-mono, ui-monospace, SF Mono, Menlo, monospace);
  font-variant-numeric: tabular-nums;
  color: var(--brand-indigo); font-weight: 600;
}
.rmm-holder {
  margin: 14px 28px 0; padding: 12px 14px;
  border-radius: 12px; background: #EEF1F7;
  display: flex; align-items: center; gap: 12px;
}
.rmm-holder-avatar {
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--brand-indigo); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font: 600 12px/1 var(--font-sans); flex-shrink: 0;
}
.rmm-holder-name { font: 600 13px/1.2 var(--font-sans); color: var(--brand-indigo); }
.rmm-holder-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.rmm-tabs {
  display: flex; gap: 0;
  margin: 18px 28px 0;
  border-bottom: 1px solid var(--border-soft);
}
.rmm-tab {
  flex: 1;
  padding: 10px 14px;
  background: transparent; border: 0; border-bottom: 2px solid transparent;
  font: 600 12px/1 var(--font-sans);
  color: var(--text-muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: color 160ms, border-color 160ms;
  margin-bottom: -1px;
}
.rmm-tab:hover { color: var(--brand-indigo); }
.rmm-tab.on { color: var(--brand-indigo); border-bottom-color: var(--brand-magenta); }
.rmm-tab-ic { font-size: 14px; }
.rmm-body {
  padding: 18px 28px 0;
  overflow-y: auto; flex: 1;
}
.rmm-section { margin-bottom: 18px; }
.rmm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .rmm-grid2 { grid-template-columns: 1fr; } }

/* Stage manager */
.sm-list { display: flex; flex-direction: column; gap: 6px; }
.sm-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px; background: var(--surface, #fff);
}
.sm-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.sm-name { font: 600 13px/1.2 var(--font-sans); }
.sm-edit { flex: 1; max-width: 220px; padding: 5px 8px; }
.sm-count { margin-left: auto; font-size: 11px; color: var(--text-muted, #6b7280); white-space: nowrap; }
.sm-actions { display: flex; gap: 4px; }
.sm-del:not(:disabled) { color: #b91c1c; }
.sm-locked { font-size: 11px; color: var(--text-muted, #9ca3af); white-space: nowrap; }
.sm-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sm-add .rmm-select { flex: 1; min-width: 140px; }
.rmm-label {
  font: 600 11px/1.2 var(--font-sans);
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--brand-indigo);
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.rmm-units-now {
  font-weight: 500; color: var(--text-muted);
  text-transform: none; letter-spacing: 0; font-size: 11px;
}
.rmm-help { font-size: 11px; color: var(--text-muted); line-height: 1.5; margin-top: 6px; }
.rmm-select, .rmm-input, .rmm-textarea {
  width: 100%; box-sizing: border-box;
  font: 400 13px/1.4 var(--font-sans);
  color: var(--brand-indigo);
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: #fff;
  outline: none;
}
.rmm-select:focus, .rmm-input:focus, .rmm-textarea:focus {
  border-color: var(--brand-magenta);
  box-shadow: 0 0 0 3px rgba(229,3,102,0.12);
}
.rmm-textarea { resize: vertical; font-family: var(--font-sans); min-height: 64px; }
.rmm-static {
  font-size: 13px; color: var(--brand-indigo);
  padding: 10px 12px; border: 1px dashed var(--border-soft); border-radius: 10px;
  background: #FAFBFD;
}
.rmm-units-row { display: flex; align-items: center; gap: 8px; }
.rmm-step {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--border-soft); background: #fff;
  font: 600 16px/1 var(--font-sans); color: var(--brand-indigo);
  cursor: pointer; transition: background 160ms;
}
.rmm-step:hover:not(:disabled) { background: #EEF1F7; }
.rmm-step:disabled { opacity: 0.4; cursor: not-allowed; }
.rmm-units-input {
  width: 64px; text-align: center;
  font: 600 14px/1.2 var(--font-sans); color: var(--brand-indigo);
  font-variant-numeric: tabular-nums;
  padding: 8px; border: 1px solid var(--border-soft); border-radius: 8px;
  outline: none;
}
.rmm-units-input:focus { border-color: var(--brand-magenta); box-shadow: 0 0 0 3px rgba(229,3,102,0.12); }
.rmm-callout {
  padding: 10px 12px; border-radius: 8px;
  font-size: 12px; line-height: 1.5;
  display: flex; align-items: flex-start; gap: 8px;
}
.rmm-callout-amber { background: #FFF6E5; color: #6E4400; border-left: 3px solid #D4862E; }
.rmm-callout-rose  { background: #FFEDF2; color: #7A0F3A; border-left: 3px solid var(--brand-magenta); }
.rmm-callout-ic { font-size: 14px; flex-shrink: 0; line-height: 1.2; }
.rmm-foot {
  border-top: 1px solid var(--border-soft);
  padding: 14px 28px;
  display: flex; gap: 10px; justify-content: flex-end; align-items: center;
  background: #FAFBFD;
}
.rmm-foot-spacer { flex: 1; }
.rmm-btn {
  padding: 10px 16px; border-radius: 10px;
  font: 600 12px/1 var(--font-sans);
  cursor: pointer; border: 1px solid transparent;
  transition: background 160ms, color 160ms, border-color 160ms;
}
.rmm-btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--border-soft); }
.rmm-btn-ghost:hover { color: var(--brand-indigo); border-color: var(--brand-indigo); }
.rmm-btn-primary { background: var(--brand-indigo); color: #fff; }
.rmm-btn-primary:hover:not(:disabled) { background: #1a266b; }
.rmm-btn-danger { background: var(--brand-magenta); color: #fff; }
.rmm-btn-danger:hover:not(:disabled) { background: #b80251; }
.rmm-btn:disabled { opacity: 0.5; cursor: not-allowed; }
@media (max-width: 600px) {
  .rmm-modal { width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; }
  .rmm-tabs { margin: 14px 16px 0; }
  .rmm-holder { margin: 12px 16px 0; }
  .rmm-body { padding: 14px 16px 0; }
  .rmm-foot { padding: 12px 16px; flex-wrap: wrap; }
  .rmm-foot-spacer { display: none; }
  .rmm-btn { flex: 1; min-width: 100px; }
}


/* ─── Release / Manage modal ─────────────────────────────────── */
.rmm-scrim { z-index: 250; }
.rmm-modal {
  width: min(560px, 96vw);
  max-height: 92vh;
  display: flex; flex-direction: column;
}
.rmm-head {
  padding: 22px 28px 14px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
}
.rmm-eyebrow {
  font: 600 10px/1 var(--font-sans);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 6px;
}
.rmm-title {
  font: 600 20px/1.25 var(--font-sans); color: var(--brand-indigo);
  margin: 0 0 6px; letter-spacing: -0.01em;
}
.rmm-sub { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.rmm-mono {
  font-family: var(--font-mono, ui-monospace, SF Mono, Menlo, monospace);
  font-variant-numeric: tabular-nums;
  color: var(--brand-indigo); font-weight: 600;
}

.rmm-holder {
  margin: 0 28px; padding: 12px 14px;
  border-radius: 12px; background: var(--brand-indigo-soft, #EEF1F7);
  display: flex; align-items: center; gap: 12px;
}
.rmm-holder-avatar {
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--brand-indigo); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font: 600 12px/1 var(--font-sans); flex-shrink: 0;
}
.rmm-holder-name { font: 600 13px/1.2 var(--font-sans); color: var(--brand-indigo); }
.rmm-holder-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.rmm-tabs {
  display: flex; gap: 0;
  margin: 18px 28px 0;
  border-bottom: 1px solid var(--border-soft);
}
.rmm-tab {
  flex: 1; padding: 10px 14px;
  background: transparent; border: 0;
  border-bottom: 2px solid transparent;
  font: 600 12px/1 var(--font-sans);
  color: var(--text-muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: color 160ms, border-color 160ms;
  margin-bottom: -1px;
}
.rmm-tab:hover { color: var(--brand-indigo); }
.rmm-tab.on { color: var(--brand-indigo); border-bottom-color: var(--brand-magenta); }
.rmm-tab-ic { font-size: 14px; }

.rmm-body {
  padding: 18px 28px 4px;
  overflow-y: auto;
  flex: 1;
}
.rmm-section { margin-bottom: 18px; }
.rmm-label {
  font: 600 11px/1.2 var(--font-sans);
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-mid, #4A5168);
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.rmm-units-now {
  font-weight: 500; color: var(--text-muted);
  text-transform: none; letter-spacing: 0; font-size: 11px;
}
.rmm-help { font-size: 11px; color: var(--text-muted); line-height: 1.5; margin-top: 6px; }

.rmm-select, .rmm-input, .rmm-textarea {
  width: 100%; box-sizing: border-box;
  font: 400 13px/1.4 var(--font-sans);
  color: var(--brand-indigo);
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: #fff;
  outline: none;
}
.rmm-select:focus, .rmm-input:focus, .rmm-textarea:focus {
  border-color: var(--brand-magenta);
  box-shadow: 0 0 0 3px rgba(229,3,102,0.12);
}
.rmm-textarea { resize: vertical; font-family: var(--font-sans); min-height: 64px; }
.rmm-static {
  font-size: 13px; color: var(--brand-indigo);
  padding: 10px 12px; border: 1px dashed var(--border-soft); border-radius: 10px;
  background: #FAFBFD;
}

.rmm-units-row { display: flex; align-items: center; gap: 8px; }
.rmm-step {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--border-soft); background: #fff;
  font: 600 16px/1 var(--font-sans); color: var(--brand-indigo);
  cursor: pointer; transition: background 160ms;
}
.rmm-step:hover:not(:disabled) { background: var(--brand-indigo-soft, #EEF1F7); }
.rmm-step:disabled { opacity: 0.4; cursor: not-allowed; }
.rmm-units-input {
  width: 64px; text-align: center;
  font: 600 14px/1.2 var(--font-sans); color: var(--brand-indigo);
  font-variant-numeric: tabular-nums;
  padding: 8px 4px;
  border: 1px solid var(--border-soft); border-radius: 8px;
  outline: none; background: #fff;
}
.rmm-units-input:focus { border-color: var(--brand-magenta); box-shadow: 0 0 0 3px rgba(229,3,102,0.12); }

.rmm-callout {
  padding: 10px 12px; border-radius: 10px;
  font-size: 12px; line-height: 1.55; color: var(--text-body);
  margin-top: 10px;
}
.rmm-callout-amber { background: rgba(212,134,46,0.08); border-left: 3px solid var(--stoplight-amber, #D4862E); }
.rmm-callout-rose  { background: rgba(229,3,102,0.06); border-left: 3px solid var(--brand-magenta); color: var(--brand-indigo); }
.rmm-callout-mute  { background: #F8F9FC; border-left: 3px solid var(--border-soft); color: var(--text-muted); }

.rmm-foot {
  border-top: 1px solid var(--border-soft);
  padding: 14px 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: #fff;
}
.rmm-foot-left { font-size: 11px; color: var(--text-muted); }
.rmm-foot-right { display: flex; gap: 8px; }
.rmm-btn {
  padding: 9px 16px; border-radius: 999px;
  font: 600 12px/1 var(--font-sans); cursor: pointer;
  border: 1px solid transparent; transition: background 160ms, color 160ms, border-color 160ms;
}
.rmm-btn-ghost { background: transparent; color: var(--text-muted); }
.rmm-btn-ghost:hover { color: var(--brand-indigo); background: #F2F4F8; }
.rmm-btn-primary { background: var(--brand-indigo); color: #fff; }
.rmm-btn-primary:hover:not(:disabled) { background: #1A2470; }
.rmm-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.rmm-btn-danger { background: var(--brand-magenta); color: #fff; }
.rmm-btn-danger:hover:not(:disabled) { background: #C20253; }
.rmm-btn-danger:disabled { opacity: 0.5; cursor: not-allowed; }

/* Confirm step */
.rmm-confirm-card {
  border: 1px solid var(--border-soft); border-radius: 12px;
  padding: 14px 16px; background: #FAFBFD;
}
.rmm-confirm-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 0; font-size: 13px;
}
.rmm-confirm-row + .rmm-confirm-row { border-top: 1px dashed var(--border-soft); }
.rmm-confirm-k { color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; align-self: center; }
.rmm-confirm-v { color: var(--brand-indigo); font-weight: 600; text-align: right; }
.rmm-confirm-v.del { color: var(--text-muted); text-decoration: line-through; font-weight: 400; }

/* Audit timeline */
.rmm-audit-list {
  list-style: none; margin: 0; padding: 0;
  border-left: 2px solid var(--border-soft);
  margin-left: 6px;
}
.rmm-audit-item {
  position: relative;
  padding: 8px 0 14px 18px;
}
.rmm-audit-item::before {
  content: '';
  position: absolute; left: -7px; top: 12px;
  width: 12px; height: 12px; border-radius: 999px;
  background: #fff; border: 2px solid var(--brand-indigo);
}
.rmm-audit-item.is-release::before { border-color: var(--brand-magenta); }
.rmm-audit-item.is-edit::before { border-color: var(--stoplight-amber, #D4862E); }
.rmm-audit-item.is-corp::before { background: var(--brand-magenta); border-color: var(--brand-magenta); }
.rmm-audit-row1 { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.rmm-audit-action { font: 600 12px/1.2 var(--font-sans); color: var(--brand-indigo); }
.rmm-audit-when { font-size: 11px; color: var(--text-muted); }
.rmm-audit-actor { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.rmm-audit-note { font-size: 11px; color: var(--text-body); margin-top: 4px; padding: 6px 8px; background: #F8F9FC; border-radius: 6px; border-left: 2px solid var(--border-soft); }
.rmm-audit-empty { font-size: 12px; color: var(--text-muted); padding: 12px 0; text-align: center; }

/* Release/Manage button on side panel + drawer */
.rmm-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  background: transparent; border: 1px solid var(--border-soft);
  font: 600 11px/1 var(--font-sans); color: var(--brand-indigo);
  cursor: pointer; transition: background 160ms, border-color 160ms;
}
.rmm-trigger:hover { background: var(--brand-indigo-soft, #EEF1F7); border-color: var(--brand-indigo); }
.rmm-trigger.danger { color: var(--brand-magenta); border-color: rgba(229,3,102,0.3); }
.rmm-trigger.danger:hover { background: rgba(229,3,102,0.08); border-color: var(--brand-magenta); }
.rmm-trigger-ic { font-size: 12px; opacity: 0.7; }

@media (max-width: 540px) {
  .rmm-head { padding: 18px 18px 12px; }
  .rmm-holder { margin: 0 18px; }
  .rmm-tabs { margin: 14px 18px 0; }
  .rmm-body { padding: 14px 18px 4px; }
  .rmm-foot { padding: 12px 18px; flex-wrap: wrap; }
  .rmm-foot-left { width: 100%; order: 2; text-align: center; margin-top: 4px; }
  .rmm-foot-right { width: 100%; order: 1; justify-content: flex-end; }
  .rmm-tab { font-size: 11px; padding: 10px 8px; }
  .rmm-tab-ic { display: none; }
}


/* Release-mode toggle (full vs partial) */
.rmm-rel-toggle { display: flex; flex-direction: column; gap: 8px; }
.rmm-rel-opt {
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--border-soft); border-radius: 12px;
  background: #fff; text-align: left; cursor: pointer;
  transition: border-color 160ms, background 160ms;
}
.rmm-rel-opt:hover { border-color: var(--brand-indigo); }
.rmm-rel-opt strong { font: 600 13px/1.2 var(--font-sans); color: var(--brand-indigo); }
.rmm-rel-opt span { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.rmm-rel-opt.on {
  border-color: var(--brand-magenta);
  background: rgba(229,3,102,0.04);
  box-shadow: 0 0 0 3px rgba(229,3,102,0.10);
}
.rmm-rel-opt.on strong { color: var(--brand-magenta); }

.rmm-callout-magenta {
  background: rgba(229,3,102,0.06);
  border-left: 3px solid var(--brand-magenta);
  color: var(--brand-indigo);
  padding: 10px 12px; border-radius: 10px;
  font-size: 12px; line-height: 1.55;
}
