:root {
  --bg-page: #f3f4f2;
  --bg-card: #ffffff;
  --bg-subtle: #f8f8f6;
  --bg-warm: #f6f2e9;
  --border: #e2e4de;
  --border-strong: #cdd1c8;

  --ink: #1b1d1a;
  --ink-secondary: #4e544c;
  --ink-muted: #596157;

  --green: #184231;
  --green-hover: #123326;
  --green-soft: #eaf2ee;
  --burgundy: #7c2d36;
  --burgundy-soft: #fdf2f3;
  --gold: #9a7434;
  --gold-soft: #fbf6eb;

  /* 4-stat bar colors (matching 1in8b.life clarity) */
  --stat-health: #2e8555;
  --stat-happiness: #c28a2e;
  --stat-knowledge: #257a7e;
  --stat-relationships: #8f3544;

  --radius-card: 10px;
  --radius-sm: 6px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(20, 26, 22, 0.04), 0 4px 12px rgba(20, 26, 22, 0.03);
  --shadow-modal: 0 20px 48px rgba(15, 22, 18, 0.22);

  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Segoe UI", Roboto, sans-serif;
  --font-serif: Georgia, "Songti SC", "Noto Serif SC", "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

button,
a {
  font-family: inherit;
}

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

/* =========================================================
   Top Time-Control Bar (1in8b.life style)
   ========================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 58px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

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

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  color: var(--green);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--burgundy);
  display: inline-block;
}

.age-hero {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.topbar-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
}

.year-meta {
  font-size: 12.5px;
  line-height: 1.15;
  color: var(--ink-muted);
  white-space: nowrap;
}

.year-progress-track {
  width: 100%;
  height: 3px;
  background: #e3e5df;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.year-progress-fill {
  height: 100%;
  background: var(--burgundy);
  border-radius: var(--radius-pill);
  transition: width 0.25s linear;
}

.topbar-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
  padding: 0 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ctrl-btn:hover:not(:disabled) {
  background: var(--bg-subtle);
  border-color: var(--ink-muted);
}

.ctrl-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

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

.ctrl-btn.primary:hover:not(:disabled) {
  background: var(--green-hover);
  border-color: var(--green-hover);
}

.ctrl-btn.accent-ff {
  background: var(--burgundy-soft);
  border-color: #dfb4b9;
  color: var(--burgundy);
}

.ctrl-btn.accent-ff:hover:not(:disabled) {
  background: #f9e3e6;
}

.ctrl-btn.toggle-on {
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--green);
}

.speed-group {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card);
}

.speed-btn {
  height: 30px;
  padding: 0 8px;
  border: none;
  border-right: 1px solid var(--border);
  background: transparent;
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.speed-btn:last-child {
  border-right: none;
}

.speed-btn.active {
  background: var(--ink);
  color: #ffffff;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card);
  white-space: nowrap;
  flex-shrink: 0;
}

.lang-btn {
  height: 30px;
  padding: 0 9px;
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.lang-btn.active {
  background: var(--green);
  color: #ffffff;
}

/* =========================================================
   Main 3-Column Passport Dashboard
   ========================================================= */
.app-main {
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px;
  min-height: 100vh;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr) 296px;
  gap: 16px;
  align-items: start;
}

.dash-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.card-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.card-sub {
  font-size: 11.5px;
  color: var(--ink-muted);
}

.card-body {
  padding: 13px 14px;
}

/* =========================================================
   LEFT COLUMN: Passport Card & Status Panel
   ========================================================= */
.passport-card .passport-banner {
  background: linear-gradient(90deg, var(--burgundy) 0%, #5e2028 100%);
  color: #f9f3eb;
  padding: 8px 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Large 1:1 Period Buffett Portrait inside Passport Card */
.passport-portrait-wrap,
.passport-hero-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.passport-portrait-wrap img,
.passport-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.passport-portrait-wrap.img-fallback img,
.passport-hero-photo.img-fallback img {
  display: none;
}

.passport-photo-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 36px;
  color: var(--green);
}

.passport-portrait-wrap.img-fallback .passport-photo-fallback,
.passport-hero-photo.img-fallback .passport-photo-fallback {
  display: flex;
}

.passport-era-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(20, 24, 21, 0.68);
  backdrop-filter: blur(4px);
  color: #f6f3eb;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  max-width: calc(100% - 20px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.passport-fields-compact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px 9px;
  min-width: 0;
}

/* Prominent Standalone Net Worth Hero Card */
.wealth-hero-card {
  padding: 13px 15px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f6ef 100%);
  border: 1px solid #dcd7c9;
}

.wealth-hero-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 3px;
}

.wealth-hero-value {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--green);
  letter-spacing: -0.02em;
  word-break: break-word;
}

.wealth-hero-sub {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--ink-secondary);
}

.p-field {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  line-height: 1.35;
  border-bottom: 1px dashed #eceee8;
  padding-bottom: 3px;
}

.p-field:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.p-label {
  color: var(--ink-muted);
  flex-shrink: 0;
}

.p-val {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.family-dots {
  color: var(--burgundy);
  letter-spacing: 1px;
}

.passport-mrz {
  background: #f5f5f2;
  border-top: 1px solid var(--border);
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.35;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Status Bars */
.stat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
  font-size: 12.5px;
}

.stat-item-name {
  font-weight: 600;
  color: var(--ink-secondary);
}

.stat-item-val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  color: var(--ink);
}

.stat-track {
  height: 8px;
  background: #ebede8;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.25s ease;
}

.stat-fill.health { background: var(--stat-health); }
.stat-fill.happiness { background: var(--stat-happiness); }
.stat-fill.knowledge { background: var(--stat-knowledge); }
.stat-fill.relationships { background: var(--stat-relationships); }

.stat-help {
  margin-top: 11px;
  font-size: 12px;
  color: var(--ink-muted);
}

.stat-help summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-secondary);
  user-select: none;
}

.stat-help p {
  margin: 6px 0 0;
  line-height: 1.5;
  color: var(--ink-muted);
}

.status-footer-grid {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mini-metric {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 9px;
}

.mini-metric-lbl {
  font-size: 11px;
  color: var(--ink-muted);
  margin-bottom: 2px;
}

.mini-metric-val {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--green);
  word-break: break-word;
}

.mini-metric-val.stage-val {
  font-size: 12px;
  color: var(--ink);
  font-weight: 700;
}

/* =========================================================
   MIDDLE COLUMN: Scene Card -> Life Log -> This Year's Focus
   ========================================================= */
.scene-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7.2;
  background: #e9ece6;
  overflow: hidden;
}

.scene-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scene-mood-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(24, 28, 25, 0.78);
  color: #f9f6ef;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
}

.scene-mood-pill.crisis {
  background: rgba(124, 45, 54, 0.92);
}

.scene-toggle-float {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
}

/* Lightweight [重仓走势 / 时代场景] Toggle Capsule */
.hero-view-toggle {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: var(--radius-pill);
  background: rgba(244, 245, 241, 0.94);
  border: 1px solid var(--border-strong);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.hero-toggle-btn {
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.hero-toggle-btn.active {
  background: var(--ink);
  color: #ffffff;
}

/* Live Heavy-Position Stock Card (Vintage Editorial Line Chart) */
.holding-card {
  background: #ffffff;
}

.holding-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f4f3ee;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.holding-tabs::-webkit-scrollbar {
  height: 4px;
}

.holding-tabs::-webkit-scrollbar-thumb {
  background: #d2d6ce;
  border-radius: var(--radius-pill);
}

.holding-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.holding-tab:hover:not(.active) {
  background: var(--bg-subtle);
  border-color: var(--ink-muted);
  color: var(--ink);
}

.holding-tab.active {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
  font-weight: 600;
}

.holding-tab-pct {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.holding-tab-pct.up {
  color: var(--green);
}

.holding-tab-pct.down {
  color: var(--burgundy);
}

.holding-tab-pct.flat {
  color: var(--ink-muted);
}

.holding-tab.active .holding-tab-pct.up {
  color: #a9e6c3;
}

.holding-tab.active .holding-tab-pct.down {
  color: #f4b7be;
}

.holding-tab.active .holding-tab-pct.flat {
  color: #d6dfd9;
}

.holding-head {
  padding: 13px 16px 10px;
  border-bottom: 1px solid var(--border);
  background: #fbfaf6;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.holding-title-group {
  min-width: 0;
}

.holding-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-muted);
  margin-bottom: 3px;
}

.holding-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--stat-health);
  display: inline-block;
}

.holding-name-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.holding-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.holding-ticker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  background: #eeefe9;
  padding: 1px 6px;
  border-radius: 4px;
}

.holding-head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.holding-pnl-hero {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.holding-pnl-hero.up {
  color: var(--green);
}

.holding-pnl-hero.down {
  color: var(--burgundy);
}

.holding-pnl-hero.flat {
  color: var(--ink-secondary);
}

.holding-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-sell-holding {
  height: 26px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-sell-holding:hover {
  background: var(--burgundy-soft);
  border-color: #d49ba1;
  color: var(--burgundy);
}

.holding-chart-body {
  padding: 10px 14px 4px;
  background: #ffffff;
}

.holding-chart-svg {
  display: block;
}

.holding-footer {
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  background: #faf9f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-secondary);
}

.holding-footer strong {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink);
}

/* Vintage Newspaper Stock Ticker Overlay on Scene Banner */
.scene-market-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 12px;
  background: linear-gradient(180deg, rgba(18, 22, 19, 0.58) 0%, rgba(16, 20, 17, 0.88) 100%);
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(246, 242, 233, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #f4f1e8;
}

.scene-market-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.scene-market-idx {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: rgba(244, 241, 232, 0.84);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.scene-market-idx strong {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  margin-left: 3px;
}

.scene-market-yoy {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.scene-market-yoy.up {
  background: rgba(46, 133, 85, 0.28);
  color: #9de0b9;
  border: 1px solid rgba(157, 224, 185, 0.28);
}

.scene-market-yoy.down {
  background: rgba(155, 44, 53, 0.34);
  color: #f0a8ae;
  border: 1px solid rgba(240, 168, 174, 0.28);
}

.scene-market-yoy.flat {
  background: rgba(244, 241, 232, 0.14);
  color: #d7dad2;
  border: 1px solid rgba(244, 241, 232, 0.2);
}

.scene-market-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.scene-market-spark-lbl {
  font-size: 10px;
  color: rgba(244, 241, 232, 0.68);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.scene-sparkline-svg {
  display: block;
  overflow: visible;
}

.scene-caption {
  padding: 9px 14px;
  font-size: 12.5px;
  color: var(--ink-secondary);
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

/* Pending Decision Alert Strip */
.pending-decision-bar {
  margin: 12px 14px 4px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #c95865;
  background: var(--burgundy-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.pending-decision-text {
  min-width: 0;
  flex: 1;
}

.pending-decision-kicker {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--burgundy);
}

.pending-decision-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 2px;
}

.btn-expand-decision {
  background: var(--burgundy);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-expand-decision:hover {
  background: #612028;
}

/* Completed Banner */
.completed-banner {
  margin: 12px 14px 4px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--green);
  background: var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.completed-banner-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--green);
}

.completed-banner-sub {
  font-size: 12.5px;
  color: var(--ink-secondary);
  margin-top: 2px;
}

/* Life Chronicle List (Newest First, Monthly Granularity) */
.records-scroll {
  max-height: 390px;
  overflow-y: auto;
  padding: 6px 8px 10px;
}

.record-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 22px;
  gap: 8px;
  align-items: start;
  padding: 8px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.12s ease;
  border-bottom: 1px solid #f0f2ed;
}

.record-row:last-child {
  border-bottom: none;
}

.record-row:hover {
  background: var(--bg-subtle);
}

.record-row.is-decision {
  background: #fbf9f3;
  border-left: 3px solid var(--gold);
  padding-left: 7px;
}

.record-row.is-trade {
  background: #f4f9f6;
  border-left: 3px solid var(--green);
  padding-left: 7px;
}

.record-row.is-starred {
  background: #fffcf0;
}

.record-year {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
  padding-top: 2px;
}

/* Vintage Newspaper Front-Page Clipping for Global-Sensation Events */
.newspaper-clipping {
  margin: 8px 4px;
  padding: 11px 14px 12px;
  background: #faf5e8;
  border: 1px solid #d9cfb8;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 1px 3px rgba(34, 28, 18, 0.05);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.newspaper-clipping:hover {
  border-color: #bfb08f;
  background: #f8f1e0;
}

.newspaper-clipping.is-starred {
  border-color: #c99a3c;
  background: #fdf8e8;
}

.clipping-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 5px;
  margin-bottom: 7px;
  border-bottom: 2px double #bfb49c;
  flex-wrap: wrap;
}

.clipping-paper {
  font-family: var(--font-serif);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5b4d37;
}

.clipping-meta-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.clipping-date {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #6e6452;
}

.clipping-extra-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(124, 45, 54, 0.1);
  color: var(--burgundy);
  border: 1px solid rgba(124, 45, 54, 0.24);
}

.clipping-title {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #1c1914;
}

.clipping-deck {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #4f483d;
}

.record-text {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
  word-break: break-word;
}

/* Vintage Micro-Badges for Tagged Chronicle Years */
.record-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  padding: 1.5px 6px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: 1px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.record-tag.tag-lunch {
  background: #fbf3e1;
  color: #8a5c14;
  border-color: #e6cfa0;
}

.record-tag.tag-speech {
  background: #e9f3f3;
  color: #1f6064;
  border-color: #bed9da;
}

.record-tag.tag-quote {
  background: var(--burgundy-soft);
  color: var(--burgundy);
  border-color: #e4bcc1;
}

.record-tag.tag-story {
  background: var(--green-soft);
  color: var(--green);
  border-color: #c2d9cc;
}

.record-tag.tag-milestone {
  background: #f1f0eb;
  color: #4d4c45;
  border-color: #d6d4ca;
}

/* Right Column: U.S. Stock Market Century Card */
.market-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 10px;
}

.market-metric {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
}

.market-metric-lbl {
  font-size: 10.5px;
  color: var(--ink-muted);
  margin-bottom: 1px;
}

.market-metric-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.market-metric-val.up {
  color: #1e6b45;
}

.market-metric-val.down {
  color: #9b2c35;
}

.market-metric-val.flat {
  color: var(--ink-secondary);
}

.market-metric-val.accent {
  color: var(--green);
}

.market-chart-wrap {
  background: #fafaf7;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 8px 3px;
  margin-bottom: 8px;
}

.market-chart-caption {
  font-size: 10.5px;
  color: var(--ink-muted);
  margin-bottom: 2px;
}

.market-century-svg {
  display: block;
}

.market-note {
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-secondary);
  background: var(--bg-warm);
  border-left: 2.5px solid var(--gold);
  padding: 5px 8px;
  border-radius: 0 4px 4px 0;
}

.record-star {
  text-align: right;
  font-size: 14px;
  color: #c7cac2;
  user-select: none;
}

.record-row.is-starred .record-star {
  color: #d4941e;
}

/* This Year's Focus */
.focus-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.focus-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.focus-pill:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

.focus-pill.active {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
}

.focus-pill-hint {
  font-size: 11px;
  opacity: 0.78;
  font-weight: 500;
}

/* =========================================================
   RIGHT COLUMN: Family, Contemporaries, Life Map
   ========================================================= */
.person-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.person-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 12.5px;
  padding-bottom: 6px;
  border-bottom: 1px dashed #eceee8;
}

.person-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.person-row.deceased {
  opacity: 0.62;
}

.person-main {
  min-width: 0;
}

.person-rel {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-soft);
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 5px;
}

.person-name {
  font-weight: 700;
  color: var(--ink);
}

.person-status {
  font-size: 11.5px;
  color: var(--ink-muted);
  text-align: right;
  flex-shrink: 0;
}

.interests-wrap {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.interests-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 7px;
}

.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.interest-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.contemp-item {
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px dashed #eceee8;
}

.contemp-item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.contemp-head {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

.contemp-age {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
}

.contemp-desc {
  font-size: 12px;
  color: var(--ink-secondary);
  margin-top: 2px;
  line-height: 1.4;
}

/* Life Map (Clean 0->95 Milestone Track, NO 12s Curve) */
.lifemap-progress-bar {
  height: 6px;
  background: #ebede8;
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 11px;
}

.lifemap-progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: var(--radius-pill);
  transition: width 0.25s ease;
}

.lifemap-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.lifemap-node {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  padding: 5px 7px;
  border-radius: 5px;
  background: var(--bg-subtle);
  border: 1px solid transparent;
  color: var(--ink-muted);
}

.lifemap-node.reached {
  color: var(--ink);
  background: var(--green-soft);
  border-color: #cbe0d5;
  font-weight: 600;
}

.lifemap-node.current {
  border-color: var(--burgundy);
  background: var(--burgundy-soft);
  color: var(--burgundy);
  font-weight: 700;
}

.lifemap-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c5c9c0;
  flex-shrink: 0;
}

.lifemap-node.reached .lifemap-dot {
  background: var(--green);
}

.lifemap-node.current .lifemap-dot {
  background: var(--burgundy);
}

/* =========================================================
   Decision Modal (Restrained Editorial Style, 1in8b.life / New Yorker)
   ========================================================= */
.modal-root {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(18, 22, 19, 0.48);
  backdrop-filter: blur(3px);
  padding: 16px;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.modal-root.open {
  display: flex;
}

.decision-modal {
  width: 100%;
  max-width: 600px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-modal);
}

.modal-header {
  padding: 13px 22px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-badge {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--burgundy);
  white-space: nowrap;
}

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

.modal-age-year {
  font-size: 12.5px;
  font-weight: 500;
  color: #8c4a46;
  white-space: nowrap;
}

.modal-minimize-btn {
  background: #f3f4f2;
  border: 1px solid #e0e3dd;
  color: var(--ink-secondary);
  border-radius: var(--radius-pill);
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.modal-minimize-btn:hover {
  background: #e9ece7;
  border-color: var(--border-strong);
  color: var(--ink);
}

.modal-body {
  padding: 22px 24px 24px;
}

.modal-title {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.modal-oneliner {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-secondary);
  line-height: 1.75;
  margin: 0 0 16px;
}

.modal-context-strip {
  background: #e8f3ee;
  border-left: 3px solid #184231;
  border-radius: 0 6px 6px 0;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #24382e;
}

.context-strip-k {
  font-weight: 600;
  color: #184231;
}

.context-strip-v {
  font-weight: 400;
  color: #2f453a;
}

.context-strip-sep {
  color: #7ea391;
  margin: 0 2px;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.option-card {
  width: 100%;
  text-align: left;
  background: #f7f8f7;
  border: 1px solid #e1e4df;
  border-radius: 8px;
  padding: 13px 15px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.option-card:hover:not(:disabled) {
  border-color: #b7c8bf;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(24, 66, 49, 0.06);
}

.option-card.selected {
  border-color: var(--green);
  background: var(--green-soft);
}

.option-card:disabled {
  cursor: default;
}

.option-key {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #d5d9d2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-secondary);
}

.option-card.selected .option-key {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
}

.option-label {
  font-size: 14.5px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.5;
  margin: 0;
}

.modal-footer-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.modal-auto-btn {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  color: var(--ink-secondary);
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.modal-auto-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--ink-muted);
  color: var(--ink);
}

.consequence-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #f9f8f4;
  border: 1px solid var(--border);
}

.consequence-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 5px;
}

.consequence-text {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.68;
  margin: 0 0 13px;
}

.modal-continue-btn {
  min-width: 112px;
}

/* =========================================================
   Final Report View (Preserving full Final Edition features)
   ========================================================= */
.report-wrap {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shared-replay-banner {
  background: var(--green);
  color: #f9f6ef;
  border-radius: var(--radius-card);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.shared-banner-title {
  font-size: 16px;
  font-weight: 700;
}

.shared-banner-sub {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 2px;
}

.report-hero,
.share-panel,
.radar-card,
.trade-review-card,
.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 22px;
}

.chronicle-kicker {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.report-score-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}

.score-medallion {
  background: var(--green);
  color: #f6f2e9;
  border: 2px solid var(--gold);
  border-radius: 10px;
  padding: 20px 14px;
  text-align: center;
}

.score-number {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
}

.score-percent {
  font-size: 24px;
}

.score-caption {
  font-size: 12px;
  color: #e4cfa3;
  margin-top: 8px;
}

.archetype-tag {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--burgundy);
  margin-bottom: 4px;
}

.archetype-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--ink);
}

.archetype-desc {
  margin: 0;
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.stat-cell {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  text-align: center;
}

.stat-val {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--green);
}

.stat-lbl {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 3px;
}

.wealth-note {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin: 0 0 14px;
}

.divergence-card {
  background: var(--bg-warm);
  border: 1px solid #e1d8c5;
  border-radius: var(--radius-sm);
  padding: 13px 15px;
}

.divergence-kicker {
  font-size: 12px;
  font-weight: 800;
  color: var(--burgundy);
  margin-bottom: 4px;
}

.divergence-body {
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.section-heading {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--ink);
}

.section-sub {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--ink-muted);
}

.share-toast {
  min-height: 18px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 10px;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.share-btn:hover {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.share-btn.primary-share {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
}

.report-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--green);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--green-hover);
}

.btn-secondary {
  background: var(--bg-card);
  border-color: var(--border-strong);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
}

.btn-gold {
  background: var(--gold);
  color: #ffffff;
}

/* Radar */
.radar-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.radar-svg-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.radar-legend {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

.legend-swatch.you {
  background: rgba(24, 66, 49, 0.35);
  border: 2px solid var(--green);
}

.legend-swatch.buffett {
  background: rgba(154, 116, 52, 0.12);
  border: 2px dashed var(--gold);
}

.trait-bars {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.trait-row-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 5px;
}

.trait-name {
  font-weight: 700;
}

.trait-scores {
  font-size: 12px;
  color: var(--ink-muted);
}

.trait-track {
  position: relative;
  height: 10px;
  background: #ebede8;
  border-radius: var(--radius-pill);
}

.trait-bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: var(--radius-pill);
}

.trait-benchmark-pin {
  position: absolute;
  top: -3px;
  width: 4px;
  height: 16px;
  background: var(--gold);
  border-radius: 2px;
  transform: translateX(-50%);
}

/* Trade Timing Review (Sold Early / Great Exit / Diamond Hands) */
.trade-review-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trade-review-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  flex-wrap: wrap;
}

.trade-review-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.trade-review-stock {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.trade-stock-name {
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}

.trade-review-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.trade-ret.up {
  color: var(--green);
}

.trade-ret.down {
  color: var(--burgundy);
}

.trade-review-verdict {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  text-align: right;
  flex-shrink: 0;
}

.trade-verdict-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.trade-verdict-badge.sold-early {
  background: var(--gold-soft);
  border: 1px solid #e2cfa1;
  color: #8c5a18;
}

.trade-verdict-badge.great-exit {
  background: var(--green-soft);
  border: 1px solid #b8d5c5;
  color: var(--green);
}

.trade-verdict-desc {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.trade-verdict-ref {
  font-size: 11.5px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

.diamond-hands-card {
  background: linear-gradient(135deg, #fbfaf6 0%, #f1f6f3 100%);
  border-color: #cbdcd2;
}

.diamond-hands-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.diamond-hands-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: var(--green);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.diamond-hands-title {
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--green);
}

.diamond-hands-desc {
  font-size: 13px;
  color: var(--ink-secondary);
  margin-top: 2px;
}

/* 20-Chapter Debrief */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.filter-btn {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--ink-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: var(--bg-subtle);
}

.review-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.review-item-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.review-year-tag {
  display: inline-block;
  background: var(--green);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 2px 7px;
  border-radius: 4px;
  margin-right: 6px;
}

.match-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.match-badge.exact {
  background: var(--green-soft);
  color: var(--green);
}

.match-badge.close {
  background: var(--gold-soft);
  color: var(--gold);
}

.match-badge.different {
  background: var(--burgundy-soft);
  color: var(--burgundy);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.compare-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
}

.compare-col.buffett-col {
  border-color: #d7c7a2;
  background: var(--bg-warm);
}

.compare-lbl {
  font-size: 11px;
  color: var(--ink-muted);
  margin-bottom: 3px;
}

.compare-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.history-note {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.55;
}

.lesson-memo {
  font-size: 12.5px;
  color: var(--green);
  background: var(--green-soft);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

/* =========================================================
   Responsive Breakpoints (< 960px single-column flow, NO scale)
   ========================================================= */
@media (max-width: 960px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .app-main {
    padding: 12px;
  }

  .topbar-inner {
    padding: 9px 12px;
    gap: 8px;
  }

  .age-hero {
    font-size: 20px;
  }

  .records-scroll {
    max-height: 300px;
  }

  .report-score-grid,
  .radar-layout,
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .stats-strip,
  .share-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .topbar-controls {
    width: 100%;
    order: 3;
  }

  .ctrl-btn {
    padding: 0 9px;
    font-size: 12px;
  }

  .lifemap-list {
    grid-template-columns: 1fr;
  }

  .record-row {
    grid-template-columns: 96px minmax(0, 1fr) 20px;
    gap: 6px;
  }

  .holding-head-right {
    align-items: flex-start;
  }

  .trade-review-verdict {
    align-items: flex-start;
    text-align: left;
  }
}

/* =========================================================
   Static Editorial Archive & FAQ (Vintage Newspaper Edition)
   ========================================================= */
.editorial-archive {
  width: 100%;
  max-width: 1200px;
  margin: 28px auto 12px;
  padding: 28px 32px;
  background: var(--bg-warm);
  border: 1px solid #d9d1c0;
  border-top: 3px double var(--green);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  color: var(--ink);
}

.archive-masthead {
  text-align: center;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid #d9d1c0;
}

.archive-kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: 8px;
}

.archive-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.archive-lead {
  margin: 0 auto;
  max-width: 720px;
  font-size: 14.5px;
  color: var(--ink-secondary);
  line-height: 1.65;
}

.archive-section {
  margin-bottom: 26px;
}

.archive-section:last-of-type {
  margin-bottom: 20px;
}

.archive-section h2 {
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #ded7c7;
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.35;
  color: var(--green);
}

.archive-section > p {
  margin: 0 0 11px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-secondary);
}

.archive-era-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.archive-era-card {
  background: var(--bg-card);
  border: 1px solid #dfd8c8;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.archive-era-years {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 4px;
}

.archive-era-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 15.5px;
  color: var(--ink);
}

.archive-era-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.archive-details-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.archive-details {
  background: var(--bg-card);
  border: 1px solid #dfd8c8;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.archive-details summary {
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.archive-details summary::-webkit-details-marker {
  display: none;
}

.archive-details summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
}

.archive-details[open] summary::after {
  content: "−";
}

.archive-crossroads-list {
  margin: 12px 0 2px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.archive-crossroads-list strong {
  color: var(--ink);
}

.archive-faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.archive-faq-item {
  background: var(--bg-card);
  border: 1px solid #dfd8c8;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.archive-faq-item h3 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
}

.archive-faq-item p {
  margin: 0;
  font-size: 13.2px;
  line-height: 1.62;
  color: var(--ink-secondary);
}

.archive-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid #d9d1c0;
  font-size: 13px;
}

.archive-sources {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--ink-secondary);
}

.archive-sources-label {
  font-weight: 700;
  color: var(--ink);
}

.archive-sources a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.archive-sources a:hover {
  color: var(--green-hover);
}

.archive-back-top {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: var(--green);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.archive-back-top:hover {
  background: var(--green-hover);
}

.site-footer {
  text-align: center;
  padding: 16px 16px 28px;
  font-size: 12.5px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-sep {
  color: var(--border-strong);
}

.footer-feedback-link {
  background: none;
  border: none;
  padding: 2px 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.footer-feedback-link:hover {
  color: var(--green-hover);
}

/* =========================================================
   Feedback Top Button & Paper-White Editorial Modal
   ========================================================= */
.feedback-top-btn {
  color: var(--ink-secondary);
}

.feedback-top-btn:hover:not(:disabled) {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-soft);
}

#feedbackModalRoot {
  z-index: 110;
}

.feedback-modal {
  max-width: 520px;
}

.feedback-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--ink-secondary);
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.feedback-close-btn:hover:not(:disabled) {
  background: #eaece7;
  border-color: var(--border-strong);
  color: var(--ink);
}

.feedback-modal-body {
  padding: 20px 24px 24px;
}

.feedback-modal-title {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.feedback-modal-subtitle {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feedback-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.feedback-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.feedback-tag-req {
  font-size: 11px;
  font-weight: 600;
  color: var(--burgundy);
  background: var(--burgundy-soft);
  border: 1px solid #ecc6cb;
  border-radius: 4px;
  padding: 0 5px;
  line-height: 1.5;
}

.feedback-tag-opt {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 5px;
  line-height: 1.5;
}

.feedback-char-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.feedback-cat-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-cat-pill {
  height: 32px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--ink-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.feedback-cat-pill:hover:not(:disabled) {
  background: var(--bg-subtle);
  border-color: var(--ink-muted);
  color: var(--ink);
}

.feedback-cat-pill.active {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
}

.feedback-textarea,
.feedback-input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  background: #fbfbfa;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 10px 12px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.feedback-textarea {
  resize: vertical;
  min-height: 104px;
}

.feedback-textarea:focus,
.feedback-input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(24, 66, 49, 0.1);
}

.feedback-textarea::placeholder,
.feedback-input::placeholder {
  color: #889085;
}

.feedback-error-alert {
  padding: 9px 12px;
  border-radius: 6px;
  background: var(--burgundy-soft);
  border: 1px solid #e3b3b9;
  color: var(--burgundy);
  font-size: 13px;
  line-height: 1.5;
}

.feedback-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.feedback-context-chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-submit-btn {
  min-width: 120px;
  padding: 9px 18px;
  font-size: 13.5px;
}

.feedback-success-box {
  text-align: center;
  padding: 20px 12px 12px;
}

.feedback-success-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--green-soft);
  border: 1.5px solid var(--green);
  color: var(--green);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feedback-success-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.feedback-success-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

@media (max-width: 520px) {
  .topbar-right {
    gap: 6px;
  }

  .feedback-modal-body {
    padding: 16px 16px 20px;
  }

  .feedback-cat-pill {
    height: 36px;
    padding: 0 12px;
  }

  .feedback-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .feedback-context-chip {
    text-align: center;
  }

  .feedback-submit-btn {
    width: 100%;
  }
}

@media (max-width: 960px) {
  .editorial-archive {
    width: calc(100% - 24px);
    margin: 20px 12px 10px;
    padding: 20px 18px;
  }

  .archive-era-grid,
  .archive-faq-list {
    grid-template-columns: 1fr;
  }

  .archive-title {
    font-size: 23px;
  }
}
