/* ══════════════════════════════════════════════════════════════
   成长见证 · 听桥 Auditory Bridge — 设计语言沿用主页面
   深松绿 + 暖米纸 + 金 / 桃 / 薄荷；编辑感排版；圆润软面板
   ══════════════════════════════════════════════════════════════ */

:root {
  /* —— 主色板（与听桥主页一致）—— */
  --ink: #173d39;
  --ink-2: #245b53;
  --ink-3: #377066;
  --paper: #f7f3ea;
  --paper-2: #fffdf8;
  --mint: #dcece5;
  --mint-2: #eef6f1;
  --peach: #d98b68;
  --peach-2: #f2d2be;
  --gold: #f7dfa9;
  --blush: #f4cbd3;
  --lilac: #d9d0ef;
  --powder: #cfe6e2;
  --muted: #6f7d78;
  --line: rgba(23, 61, 57, 0.12);
  --shadow: 0 24px 65px rgba(30, 56, 50, 0.1);
  --shadow-soft: 0 12px 35px rgba(30, 56, 50, 0.07);
  --radius: 26px;
  --radius-sm: 16px;
  --sidebar: 238px;

  /* —— 21 类别 · 低饱和、与听桥暖色系协调 —— */
  --cat-people: #5b8a7e;
  --cat-social: #d98b68;
  --cat-actions: #6aa68c;
  --cat-food: #e0a86b;
  --cat-body: #c98e6e;
  --cat-animals: #b08d6a;
  --cat-objects: #8a9bb0;
  --cat-travel: #7fa8b0;
  --cat-colors: #c98aa0;
  --cat-numbers: #b0a0c8;
  --cat-clothing: #9ab0a0;
  --cat-places: #8fb0c4;
  --cat-nature: #7fae8a;
  --cat-descriptors: #d6b06a;
  --cat-sounds: #c4a06f;
  --cat-characters: #c89ab8;
  --cat-feelings: #d99a9a;
  --cat-routines: #a0b59a;
  --cat-utility: #9aa6a0;
  --cat-other: #b0a89a;
  --cat-uncategorized: #c4bcae;

  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.serif, h1, h2 {
  font-family: Georgia, "Noto Serif SC", serif;
}

.hidden { display: none !important; }

/* —— 通用文字部件（沿用主页）—— */
.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--peach);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lead {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.legal-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  opacity: 0.85;
}

/* —— 按钮（沿用主页令牌）—— */
.primary-button,
.secondary-button,
.quiet-button {
  min-height: 45px;
  padding: 0 19px;
  border: 0;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: 180ms ease;
}
.primary-button {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(23, 61, 57, 0.18);
}
.primary-button:hover { transform: translateY(-2px); }
.primary-button.wide { width: 100%; }
.quiet-button {
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.55);
}
.quiet-button:hover { border-color: var(--ink-3); }
.quiet-button.compact { min-height: 36px; padding: 0 12px; }

/* ═══════════ App Shell ═══════════ */
.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  padding: 28px 20px 24px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.1), transparent 13rem),
    var(--ink);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 8px 42px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: #fff;
  cursor: pointer;
}
.brand strong, .consent-brand strong {
  display: block;
  font-size: 20px;
  line-height: 1;
}
.brand small, .consent-brand small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand-symbol {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border-radius: 15px;
  background:
    linear-gradient(145deg, var(--peach), #f0bb8d);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.brand-symbol i { display: none; }
.brand-symbol.mini { width: 35px; height: 35px; border-radius: 12px; }

.side-nav { display: grid; gap: 7px; }
.nav-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.68);
  text-align: left;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 180ms ease;
}
.nav-item:hover,
.nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.nav-item .nav-glyph {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 15px;
  background: var(--gold);
  box-shadow: 0 4px 12px rgba(8, 32, 29, 0.2);
}
.nav-item[data-view="timeline"] .nav-glyph { background: #f7dfb7; }
.nav-item[data-view="constellation"] .nav-glyph { background: var(--powder); }
.nav-item[data-view="progress"] .nav-glyph { background: var(--blush); }
.nav-item[data-view="badges"] .nav-glyph { background: var(--lilac); }

.sidebar-foot { margin-top: auto; padding: 20px 8px 0; }
.ready-pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
  background: var(--mint);
}
.ready-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4e9d79;
  box-shadow: 0 0 0 4px rgba(78, 157, 121, 0.12);
}

/* —— Main —— */
.main {
  min-height: 100vh;
  margin-left: var(--sidebar);
  padding: 0 42px 70px;
}
.topbar {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: flex-end;
  border-bottom: 1px solid var(--line);
}
.top-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }

/* ═══════════ View / Page heading ═══════════ */
.view { display: none; max-width: 1180px; margin: 0 auto; padding-top: 48px; animation: view-in 300ms ease; }
.view.active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(7px); } }

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 32px;
}
.page-heading h1 {
  margin: 0 0 12px;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.05;
  color: var(--ink);
}

/* —— Panel —— */
.panel {
  border: 1px solid rgba(23, 61, 57, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: var(--shadow-soft);
  padding: 30px;
  margin-bottom: 22px;
}
.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 18px;
}
.panel-heading h2, .growth-summary-card h2 { margin: 0; font-size: 1.35rem; font-weight: 500; }
.consent-badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
  background: var(--mint);
}

/* ═══════════ Voice Panel ═══════════ */
.voice-intro { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.voice-input-row { display: flex; align-items: center; gap: 18px; }
.mic-btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 96px;
  height: 96px;
  flex: none;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.22), transparent 60%),
    var(--ink);
  box-shadow: 0 16px 36px rgba(23, 61, 57, 0.28);
  cursor: pointer;
  transition: 180ms ease;
}
.mic-btn:hover { transform: translateY(-2px); }
.mic-btn:active { transform: scale(0.97); }
.mic-icon { font-size: 30px; line-height: 1; color: var(--gold); }
.mic-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.85); }
.voice-result {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--mint-2);
  color: var(--ink-2);
  font-size: 14px;
  font-style: italic;
}

/* ═══════════ Timeline ═══════════ */
.timeline-list { display: flex; flex-direction: column; gap: 14px; }
.timeline-item {
  position: relative;
  padding: 18px 20px 18px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  border-left: 4px solid var(--cat-uncategorized);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: var(--shadow-soft);
  animation: fade-up 360ms ease both;
}
.timeline-item.has-badge {
  border-left-color: var(--gold);
  background: linear-gradient(180deg, rgba(247, 223, 169, 0.16), rgba(255, 253, 248, 0.86));
}
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }
.timeline-item .time { font-size: 11px; color: var(--muted); margin-bottom: 6px; letter-spacing: 0.02em; }
.timeline-item .text { font-size: 16px; line-height: 1.6; color: var(--ink); }
.timeline-item .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}
.badge-earned {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #7a5e12;
  background: rgba(247, 223, 169, 0.4);
  border: 1px solid rgba(247, 223, 169, 0.7);
}

/* ═══════════ Constellation ═══════════ */
.constellation-wrap {
  position: relative;
  min-height: 420px;
  margin: 4px 0 8px;
}
#constellation-svg { width: 100%; height: auto; display: block; }
.badge-star text { fill: var(--gold) !important; }
.badge-star circle { fill: var(--gold) !important; }
.legend-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 600;
}
.legend-dot { width: 11px; height: 11px; border-radius: 50%; }
.legend-count { color: var(--muted); font-weight: 700; }

/* ═══════════ Word Progress ═══════════ */
.progress-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.summary-card {
  padding: 22px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper-2);
  text-align: center;
}
.summary-value { font-size: 38px; font-weight: 500; color: var(--ink); font-family: Georgia, "Noto Serif SC", serif; line-height: 1; }
.summary-label { margin-top: 8px; font-size: 12px; color: var(--muted); font-weight: 600; }

.progress-section-title {
  margin: 26px 0 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--peach);
}

/* Growth summary card */
.growth-summary-card {
  padding: 26px 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(23, 61, 57, 0.1);
  background:
    radial-gradient(circle at 96% 0%, rgba(247, 223, 169, 0.28), transparent 16rem),
    linear-gradient(145deg, #173d39, #245d54 80%);
  color: #fff;
  box-shadow: var(--shadow-soft);
  margin-bottom: 22px;
}
.growth-summary-card .gs-header {
  display: block;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.growth-summary-card .gs-body p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}
.growth-summary-card .gs-body p:last-child { margin-bottom: 0; }

/* Category rings */
.category-rings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
}
.ring-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper-2);
  opacity: 0.6;
  transition: 160ms ease;
}
.ring-card.unlocked { opacity: 1; }
.ring-svg { width: 76px; height: 76px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(23, 61, 57, 0.1); stroke-width: 8; }
.ring-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 700ms ease;
}
.ring-label { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.ring-count { font-size: 18px; font-weight: 800; font-family: Georgia, serif; }
.ring-pct { font-size: 11px; color: var(--muted); }

/* Milestones */
.milestone-list { display: flex; flex-direction: column; gap: 12px; }
.milestone-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper-2);
  box-shadow: var(--shadow-soft);
  animation: fade-up 360ms ease both;
}
.milestone-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: none;
  place-items: center;
  border-radius: 14px;
  font-size: 22px;
  color: #fff;
  box-shadow: 0 8px 18px rgba(23, 61, 57, 0.18);
}
.milestone-info { flex: 1; min-width: 0; }
.milestone-title { font-size: 15px; font-weight: 800; color: var(--ink); }
.milestone-desc {
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.milestone-time { font-size: 11px; color: var(--muted); flex: none; }

/* ═══════════ Badge Wall ═══════════ */
.badge-stats-bar {
  display: flex;
  gap: 26px;
  align-items: center;
  padding: 16px 22px;
  margin-bottom: 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--mint-2);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}
.badge-stat { display: inline-flex; align-items: center; gap: 8px; }
.badge-stat-dot { width: 12px; height: 12px; border-radius: 50%; }
.badge-stat-dot.gold { background: linear-gradient(135deg, #f0d49a, #d9b46a); }
.badge-stat-dot.silver { background: linear-gradient(135deg, #d9e2dd, #b9c7c1); }
.badge-stat-dot.bronze { background: linear-gradient(135deg, #e0b78f, #c08a5e); }

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}
.badge-card {
  position: relative;
  padding: 24px 20px 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.9);
  text-align: center;
  transition: 200ms ease;
}
.badge-card.tier-gold { box-shadow: inset 0 3px 0 #e3c178; }
.badge-card.tier-silver { box-shadow: inset 0 3px 0 #c2cdc7; }
.badge-card.tier-bronze { box-shadow: inset 0 3px 0 #d2a074; }
.badge-card.locked { opacity: 0.5; }
.badge-card.locked .badge-icon { filter: grayscale(1); opacity: 0.55; }
.badge-icon { font-size: 36px; line-height: 1; display: block; }
.badge-name { margin-top: 12px; font-size: 15px; font-weight: 800; color: var(--ink); }
.badge-desc { margin-top: 8px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.badge-date { margin-top: 12px; font-size: 11px; font-weight: 700; color: #7a5e12; }

.locked-hint {
  margin-top: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
}

/* ═══════════ Empty / Notice ═══════════ */
.empty-state {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.6);
}
.no-mic-notice {
  margin-top: 14px;
  padding: 12px 14px;
  text-align: center;
  border-radius: var(--radius-sm);
  background: #f8e5df;
  color: #9b3e38;
  font-size: 13px;
}

/* ═══════════ Detail Modal ═══════════ */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(23, 61, 57, 0.4); backdrop-filter: blur(2px); }
.modal-content {
  position: relative;
  width: min(520px, 100%);
  max-height: 86vh;
  overflow: auto;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--shadow);
}
.modal-close {
  position: absolute;
  top: 16px; right: 18px;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
}
.detail-transcript {
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 18px;
}
.detail-meta { display: flex; flex-direction: column; gap: 8px; }
.detail-meta-row {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--mint-2);
}

/* ═══════════ Achievement Toast ═══════════ */
.achievement-toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 340px;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 18px 44px rgba(23, 61, 57, 0.35);
  animation: toast-in 320ms ease both;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } }
.toast-badge { font-size: 30px; line-height: 1; }
.toast-text strong { display: block; font-size: 14px; color: var(--gold); margin-bottom: 3px; }
.toast-text span { font-size: 12px; color: rgba(255,255,255,0.82); line-height: 1.5; }

/* ═══════════ Consent Gate ═══════════ */
.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 80% 10%, rgba(217, 139, 104, 0.18), transparent 30rem),
    var(--paper);
}
.gate-card {
  width: min(460px, 100%);
  padding: 38px 34px 34px;
  border-radius: var(--radius);
  border: 1px solid rgba(23, 61, 57, 0.1);
  background: var(--paper-2);
  box-shadow: var(--shadow);
  text-align: center;
}
.consent-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  margin-bottom: 18px;
}
.gate-title { margin: 0 0 14px; font-size: 36px; font-weight: 500; color: var(--ink); }
.gate-lead { margin: 0 auto 22px; }
.gate-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}
.gate-feature {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--mint-2);
  border: 1px solid var(--line);
}
.gate-card .primary-button { margin-top: 6px; }

/* ═══════════ Responsive ═══════════ */
@media (max-width: 880px) {
  .sidebar {
    position: static;
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
  }
  .brand { margin: 0; }
  .brand small { display: none; }
  .side-nav {
    grid-auto-flow: column;
    overflow-x: auto;
    flex: 1;
  }
  .nav-item { min-height: 40px; padding: 0 12px; font-size: 13px; }
  .sidebar-foot { display: none; }
  .main { margin-left: 0; padding: 0 20px 50px; }
  .page-heading { flex-direction: column; align-items: flex-start; gap: 14px; }
  .progress-summary { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .topbar { min-height: 64px; }
  .panel { padding: 22px 18px; }
  .progress-summary { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════ Back-to-parent nav ═══════════ */
.nav-back {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  opacity: 0.92;
}

/* ═══════════ AI / Privacy modals ═══════════ */
.ai-modal { max-width: 460px; }
.ai-toggle {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0 6px; font-weight: 600; color: var(--ink);
  cursor: pointer;
}
.ai-toggle input { width: 18px; height: 18px; accent-color: var(--ink); }
.ai-fields { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.ai-fields label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.ai-fields input {
  font: inherit; font-weight: 400; color: var(--ink);
  padding: 9px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--paper);
}
.ai-fields input:focus { outline: 2px solid var(--mint); border-color: var(--mint); }
.ai-note { min-height: 18px; margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
.modal-actions { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.privacy-body { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.privacy-body p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.privacy-body b { color: var(--ink); }
.ai-modal .legal-note { margin-top: 14px; font-size: 12px; line-height: 1.5; }

/* Detail narrative (LLM insight) */
.detail-narrative {
  margin-top: 14px; padding: 12px 14px;
  background: linear-gradient(180deg, rgba(247, 223, 169, 0.30), rgba(247, 223, 169, 0.16));
  border-left: 3px solid var(--mint);
  border-radius: 10px; font-size: 14px; line-height: 1.6; color: var(--ink-2);
}
.detail-narrative::first-letter { font-weight: 700; }

@media (max-width: 880px) {
  .nav-back { border-top: none; border-left: 1px solid rgba(255,255,255,0.14); margin: 0 0 0 6px; padding: 0 0 0 12px; }
}
