:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-alt: #273449;
  --surface-deep: #0b1120;
  --border: #334155;
  --primary: #3b82f6;
  --primary-pressed: #2563eb;
  --primary-soft: rgba(59, 130, 246, 0.16);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --green: #4ade80;
  --green-bg: rgba(34, 197, 94, 0.15);
  --red: #f87171;
  --red-bg: rgba(239, 68, 68, 0.15);
  --amber: #fbbf24;
  --amber-bg: rgba(251, 191, 36, 0.15);
  --purple: #c084fc;
  --purple-bg: rgba(192, 132, 252, 0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  min-height: 100%;
  overscroll-behavior-y: contain;
}

button,
input,
textarea {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.hidden {
  display: none !important;
}

#app-shell {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 12px);
}

/* --- Sticky Topbar & Option C Segmented Tabs --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  flex-shrink: 0;
}

.topbar-title {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.policy-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: #93c5fd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 165px;
}

.ghost-pill {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  min-height: 32px;
}

.segmented-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--surface-deep);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.seg-tab {
  min-height: 38px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: background 0.16s ease, color 0.16s ease;
}

.seg-tab.active {
  background: var(--primary);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

/* --- Views & Cards --- */
.view-container {
  padding: 12px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.deck-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.section-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.section-header-row.compact {
  align-items: center;
}

.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-title {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 700;
}

.micro-caption {
  font-size: 11px;
  color: var(--text-dim);
}

/* --- Setup Citizen Card --- */
.citizen-name {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 800;
}

.citizen-tagline {
  margin: 0;
  font-size: 13px;
  color: #cbd5e1;
}

.citizen-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.pill-btn {
  padding: 6px 11px;
  min-height: 34px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(59, 130, 246, 0.32);
}

.pill-btn.subtle {
  background: var(--surface-alt);
  color: var(--text-muted);
  border-color: var(--border);
}

.citizen-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--surface-deep);
  border-radius: var(--radius-md);
  padding: 10px;
  border: 1px solid rgba(51, 65, 85, 0.7);
}

.mini-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mini-stat-label {
  font-size: 11px;
  color: var(--text-dim);
}

.mini-stat-val {
  font-size: 14px;
  font-weight: 700;
}

.mini-stat-val.accent {
  color: var(--green);
}

.customize-drawer {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.text-input,
.prompt-textarea {
  width: 100%;
  background: var(--surface-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
}

.prompt-textarea {
  resize: vertical;
  min-height: 76px;
}

.choice-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.choice-pill {
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-deep);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.choice-pill.active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--text);
  font-weight: 600;
}

/* --- Policy Picker --- */
.policy-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.policy-option {
  text-align: left;
  background: var(--surface-deep);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.policy-option.active {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
}

.policy-option.custom-highlight.active {
  border-color: var(--purple);
  background: rgba(192, 132, 252, 0.1);
}

.policy-opt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.policy-opt-name {
  font-size: 14px;
  font-weight: 700;
}

.policy-opt-desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.38;
}

.policy-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.policy-tag.neutral {
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
}
.policy-tag.blue {
  background: var(--primary-soft);
  color: #93c5fd;
}
.policy-tag.green {
  background: var(--green-bg);
  color: var(--green);
}
.policy-tag.red {
  background: var(--red-bg);
  color: var(--red);
}
.policy-tag.purple {
  background: var(--purple-bg);
  color: var(--purple);
}

.custom-composer {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#custom-prompt-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.suggestion-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.suggestion-scroll::-webkit-scrollbar {
  display: none;
}

.chip-suggestion {
  flex-shrink: 0;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: 12px;
  color: #cbd5e1;
}

.custom-ready-box {
  padding: 11px;
  border-radius: var(--radius-md);
  background: var(--surface-deep);
  border: 1px solid rgba(74, 222, 128, 0.45);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.custom-ready-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-ready-title {
  font-weight: 700;
  font-size: 14px;
}

.custom-ready-summary {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.text-link-btn {
  font-size: 12px;
  font-weight: 600;
  color: #93c5fd;
}

.status-note {
  padding: 9px 11px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  background: var(--primary-soft);
  color: #bfdbfe;
}

.status-note.error {
  background: var(--red-bg);
  color: var(--red);
}

.setup-bottom-bar {
  display: flex;
  gap: 8px;
  position: sticky;
  bottom: 8px;
  z-index: 20;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  padding: 8px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.primary-btn,
.secondary-btn {
  min-height: 46px;
  padding: 0 15px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

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

.primary-btn:active {
  background: var(--primary-pressed);
}

.primary-btn:disabled {
  opacity: 0.55;
}

.secondary-btn {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: #cbd5e1;
}

.full-width {
  width: 100%;
}

.flex-grow {
  flex: 1;
}

/* --- TAB 1: LIVE RUN --- */
.run-progress-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.run-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.year-pill {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.progress-track {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-deep);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #38bdf8);
  transition: width 0.2s ease;
}

.hero-metric-card {
  text-align: left;
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: transform 0.12s ease, border-color 0.15s ease;
}

.hero-metric-card:active {
  transform: scale(0.99);
}

.personal-hero {
  border-color: rgba(59, 130, 246, 0.55);
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.96));
}

.global-hero {
  border-color: rgba(148, 163, 184, 0.32);
}

.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.hero-number-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-big-number {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.bracket-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.bracket-pill.lower {
  background: var(--red-bg);
  color: var(--red);
}
.bracket-pill.middle {
  background: var(--primary-soft);
  color: #93c5fd;
}
.bracket-pill.upper {
  background: var(--green-bg);
  color: var(--green);
}

.delta-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
}
.delta-pill.positive {
  background: var(--green-bg);
  color: var(--green);
}
.delta-pill.negative {
  background: var(--red-bg);
  color: var(--red);
}
.delta-pill.neutral {
  background: var(--surface-alt);
  color: var(--text-muted);
}

.gini-pill {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
  color: #cbd5e1;
}

.global-sub-kpis {
  display: flex;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.sub-kpi strong {
  color: var(--text);
}

.hero-tap-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(51, 65, 85, 0.65);
  font-size: 12px;
  font-weight: 600;
  color: #93c5fd;
}

.chevron {
  font-size: 17px;
  font-weight: 700;
}

/* --- Life Events --- */
.event-spotlight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px;
  border-radius: var(--radius-md);
  background: var(--surface-deep);
  border: 1px solid var(--border);
}

.event-spotlight.good {
  border-color: rgba(74, 222, 128, 0.55);
  background: rgba(20, 83, 45, 0.22);
}

.event-spotlight.bad {
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(127, 29, 29, 0.22);
}

.event-icon-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  font-size: 14px;
  flex-shrink: 0;
}

.event-spotlight.good .event-icon-badge {
  background: var(--green-bg);
  color: var(--green);
}

.event-spotlight.bad .event-icon-badge {
  background: var(--red-bg);
  color: var(--red);
}

.event-title {
  font-size: 13.5px;
  font-weight: 700;
}

.event-body {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: #cbd5e1;
}

.event-log-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.event-log-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  background: rgba(11, 17, 32, 0.65);
  color: var(--text-muted);
}

.event-log-tag {
  font-weight: 700;
  flex-shrink: 0;
}
.event-log-tag.good {
  color: var(--green);
}
.event-log-tag.bad {
  color: var(--red);
}

.complete-banner {
  border-color: var(--primary);
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.16), rgba(30, 41, 59, 0.96));
}

.complete-title {
  font-size: 16px;
  font-weight: 800;
}

.complete-body {
  margin: 0;
  font-size: 13px;
  color: #e2e8f0;
}

.complete-actions {
  display: flex;
  gap: 8px;
}

.complete-actions > button {
  flex: 1;
}

.thumb-controls {
  position: sticky;
  bottom: 8px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 7px;
  padding: 8px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.ctrl-btn {
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.ctrl-btn.subtle {
  background: var(--surface);
  color: var(--text-muted);
}

.ctrl-btn.primary-ctrl {
  background: var(--primary);
  border-color: var(--primary);
}

/* --- TAB 2: TRENDS --- */
.scale-toggle-group {
  display: flex;
  background: var(--surface-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 2px;
}

.tiny-pill {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.tiny-pill.active {
  background: var(--primary);
  color: var(--text);
}

.scrub-readout {
  font-size: 12px;
  color: #cbd5e1;
  background: var(--surface-deep);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(51, 65, 85, 0.7);
}

.svg-chart-wrap {
  width: 100%;
  height: 210px;
  background: var(--surface-deep);
  border-radius: var(--radius-md);
  border: 1px solid rgba(51, 65, 85, 0.75);
  overflow: hidden;
  touch-action: pan-y;
}

.svg-chart-wrap svg,
.svg-gini-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cohort-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.peer-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: var(--surface-deep);
  border: 1.5px solid var(--border);
  text-align: left;
}

.peer-chip.muted {
  opacity: 0.4;
}

.peer-chip.you-chip {
  border-color: rgba(59, 130, 246, 0.7);
}

.peer-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.peer-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.peer-name {
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.peer-role {
  display: block;
  font-size: 10.5px;
  color: var(--text-dim);
}

.peer-val {
  font-size: 12.5px;
  font-weight: 700;
  flex-shrink: 0;
}

.tercile-block {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tercile-bar-track {
  height: 14px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  display: flex;
  background: var(--surface-deep);
}

.tercile-seg {
  height: 100%;
  transition: width 0.25s ease;
}
.tercile-seg.lower {
  background: #fb7185;
}
.tercile-seg.middle {
  background: #38bdf8;
}
.tercile-seg.upper {
  background: #c084fc;
}

.tercile-labels {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}
.dot.lower {
  background: #fb7185;
}
.dot.middle {
  background: #38bdf8;
}
.dot.upper {
  background: #c084fc;
}

.svg-gini-wrap {
  width: 100%;
  height: 125px;
  background: var(--surface-deep);
  border-radius: var(--radius-md);
  border: 1px solid rgba(51, 65, 85, 0.75);
  overflow: hidden;
}

/* --- TAB 3: MODEL LOGIC EXPLORER (TucsonPD Style) --- */
.onboarding-banner {
  background: linear-gradient(155deg, rgba(192, 132, 252, 0.2), rgba(59, 130, 246, 0.16));
  border: 1.5px solid var(--purple);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.onboarding-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--purple);
}

.onboarding-text {
  margin: 0;
  font-size: 13px;
  color: var(--text);
}

.lens-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.lens-scroll::-webkit-scrollbar {
  display: none;
}

.lens-pill {
  flex-shrink: 0;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-deep);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.lens-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text);
}

.lens-pill.custom-lens.active {
  background: #7c3aed;
  border-color: var(--purple);
}

.logic-stepper-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--surface-deep);
  padding: 7px 9px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.step-nav-btn {
  min-height: 34px;
  padding: 0 11px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.step-nav-btn:disabled {
  opacity: 0.35;
}

.step-center-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.chapter-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #cbd5e1;
}

.step-dots {
  display: flex;
  gap: 6px;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  padding: 0;
}

.step-dot.active {
  width: 20px;
  border-radius: 99px;
  background: var(--primary);
}

.logic-svg-stage {
  background: var(--surface-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  min-height: 195px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logic-svg-stage svg {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes pulseFlow {
  from {
    stroke-dashoffset: 24;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.flow-wire-anim {
  stroke-dasharray: 6 6;
  animation: pulseFlow 0.9s linear infinite;
}

.svg-node-group {
  cursor: pointer;
}

.logic-detail-box {
  background: var(--surface-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.logic-detail-top {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.logic-detail-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.formula-pill {
  align-self: flex-start;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.14);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.logic-detail-plain {
  margin: 0;
  font-size: 13px;
  color: #cbd5e1;
}

.logic-bullet-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.citizen-impact-box {
  border-top: 1px solid var(--border);
  padding-top: 9px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.citizen-impact-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.impact-row {
  font-size: 12px;
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  background: rgba(30, 41, 59, 0.7);
  color: #e2e8f0;
  border-left: 3px solid var(--primary);
}
.impact-row.maria {
  border-left-color: #fb7185;
}
.impact-row.jordan {
  border-left-color: #c084fc;
}

.code-toggle-btn {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  color: #93c5fd;
  padding: 4px 0;
}

.code-preview {
  margin: 0;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: #070b14;
  border: 1px solid var(--border);
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.45;
  overflow-x: auto;
  white-space: pre;
}

.logic-bottom-cta {
  position: sticky;
  bottom: 8px;
  z-index: 20;
  background: rgba(15, 23, 42, 0.92);
  padding: 8px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
