@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600&family=Noto+Sans+SC:wght@400;500;600&display=swap');

:root {
  color-scheme: light;
  --page: oklch(98.2% 0.003 250);
  --surface: oklch(100% 0 0);
  --surface-muted: oklch(96.4% 0.003 250);
  --ink: oklch(23% 0.004 250);
  --text-2: oklch(49% 0.006 250);
  --text-3: oklch(61% 0.005 250);
  --line: oklch(90.5% 0.004 250);
  --line-strong: oklch(82% 0.005 250);
  --selected: oklch(27% 0.003 250);
  --serif: 'Noto Serif SC', 'Songti SC', STSong, Georgia, serif;
  --sans: 'Noto Sans SC', 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --header-h: 82px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --conversation-bg: #27231f;
  --conversation-panel: rgba(31, 28, 25, .94);
  --conversation-text: #f1ece5;
  --conversation-muted: #b1a79b;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--page); }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--page); color: var(--ink); }
body, button, input, textarea, select { font-family: var(--sans); }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; flex: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: #d5d5d0; color: #191919; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.page { min-height: 100vh; }

.site-header {
  height: var(--header-h);
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(180px, 280px) 52px minmax(220px, 1fr);
  align-items: center;
  gap: clamp(14px, 2.2vw, 34px);
  padding: 0 clamp(24px, 4.4vw, 84px);
  background: var(--page);
  position: relative;
  z-index: 20;
}
.brand { display: inline-flex; width: 110px; align-items: center; }
.brand img { width: 84px; height: 61px; object-fit: contain; object-position: left center; }
.header-search { justify-self: center; width: min(100%, 278px); height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 20px; color: var(--text-2); }
.header-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.header-search input::placeholder { color: var(--text-3); opacity: 1; }
.header-search button { width: 22px; height: 24px; border: 0; padding: 0; background: none; color: var(--text-3); font-size: 12px; }
.view-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 17px; }
.view-switch button { width: 27px; height: 26px; border: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; color: var(--text-2); }
.view-switch button.active { background: var(--selected); color: #fff; }
.site-links { justify-self: end; display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); font-size: 12px; white-space: nowrap; }
.site-links a, .site-links button { color: var(--text-2); }
.site-links .active { color: var(--ink); }
.site-links button { padding: 0; border: 0; background: transparent; font-size: inherit; }
.site-links .nav-unavailable { color: var(--text-3); }
.site-links :is(a, button):hover { color: var(--ink); }
.data-note { margin: 0; display: flex; gap: 8px; align-items: center; color: var(--text-2); font-size: 12px; line-height: 1.5; }
.data-note > span { width: 7px; height: 7px; border-radius: 50%; background: #8e8e87; flex: none; }
.data-note.compact { font-size: 11px; }
.archive-status { grid-column: 1 / -1; min-height: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.record-count { color: var(--text-3); font-size: 11px; font-variant-numeric: tabular-nums; }

/* Spatial archive: a shared perspective camera places independent photo planes on a rising timeline. */
.archive-page { height: 100svh; overflow: hidden; }
.spatial-stage { position: relative; height: calc(100svh - var(--header-h)); min-height: 500px; overflow: hidden; }
.spatial-scene { position: absolute; inset: 0; overflow: hidden; isolation: isolate; perspective: 1680px; perspective-origin: 49% 57%; touch-action: none; user-select: none; }
.spatial-world { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.memory-plane { position: absolute; left: 50%; top: 52%; width: var(--plane-w); height: var(--plane-h); padding: 0; border: 0; border-radius: 0; background: transparent; transform: translate3d(var(--x), var(--y), var(--z)) translate(-50%, -50%) rotateY(var(--yaw)); transform-style: preserve-3d; transform-origin: center; z-index: var(--layer); opacity: var(--opacity); pointer-events: auto; transition: transform 520ms cubic-bezier(.2,.72,.2,1), opacity 300ms ease, filter 300ms ease; filter: saturate(.94); backface-visibility: hidden; }
.memory-plane:hover { opacity: 1; filter: none; }
.memory-plane.selected { z-index: 120; opacity: 1; filter: none; transform: translate3d(var(--x), var(--y), calc(var(--z) + 46px)) translate(-50%, -50%) rotateY(var(--yaw)) scale(1.06); }
.memory-plane:focus-visible { outline: 2px solid #292929; outline-offset: 4px; }
.plane-image { position: absolute; inset: 0; display: block; overflow: hidden; background: transparent; box-shadow: 0 2px 7px rgba(20,20,18,.12); transform: translateZ(.1px); pointer-events: none; }
.plane-image img { width: 100%; height: 100%; object-fit: cover; backface-visibility: hidden; }
.memory-plane--portrait .plane-image img { object-fit: contain; background: #e9e9e5; }
.plane-date { position: absolute; top: calc(100% + 8px); left: 3px; color: #5c5b57; font: 13px Georgia, var(--serif); white-space: nowrap; }
.focus-record { position: absolute; z-index: 140; left: clamp(22px, 4vw, 62px); top: 28px; width: min(310px, 35vw); padding: 2px 30px 4px 0; pointer-events: none; background: linear-gradient(90deg, var(--page) 0 82%, transparent); }
.focus-record > * { pointer-events: auto; }
.focus-close { position: absolute; top: -4px; right: 4px; padding: 0 5px; border: 0; background: transparent; color: var(--text-2); font-size: 23px; line-height: 1; }
.focus-date { color: var(--text-2); font: 500 14px/1.5 var(--serif); }
.focus-record h1 { margin: 8px 0 5px; font: 500 17px/1.45 var(--serif); text-wrap: pretty; }
.focus-record p { margin: 0; color: var(--text-2); font-size: 11px; line-height: 1.6; }
.focus-record small { display: block; margin-top: 8px; color: var(--text-3); font-size: 10px; line-height: 1.6; }
.focus-record a { display: inline-flex; gap: 7px; align-items: center; margin-top: 11px; border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; font-size: 11px; }
.spatial-empty { position: absolute; z-index: 12; left: 50%; top: 48%; transform: translate(-50%, -50%); width: min(340px, 70%); text-align: center; }
.spatial-empty h1 { font: 500 21px var(--serif); }
.spatial-empty p { color: var(--text-2); font-size: 12px; }
.spatial-empty button { margin-top: 9px; padding: 8px 12px; border: 1px solid var(--line-strong); background: var(--page); font-size: 11px; }
.scene-caption { position: absolute; z-index: 10; right: clamp(18px, 3.2vw, 48px); bottom: 17px; color: #888781; font-size: 9px; letter-spacing: .01em; text-align: right; pointer-events: none; }
.scene-caption span { padding-inline: 5px; color: #bbb9b3; }
.topic-explorer { position: absolute; z-index: 20; right: clamp(18px, 4.3vw, 66px); bottom: 75px; width: min(310px, 34vw); display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px 14px; }
.topic-chip { border: 0; border-bottom: 1px solid transparent; padding: 5px 1px 4px; background: transparent; color: #77766f; font-size: 11px; white-space: nowrap; transition: color 160ms ease, border-color 160ms ease; }
.topic-chip:hover, .topic-chip.selected { color: var(--ink); border-color: var(--ink); }
.topic-chip.selected { font-weight: 600; }
.scene-controls { position: absolute; z-index: 20; left: clamp(18px, 3.2vw, 48px); bottom: 16px; display: flex; align-items: center; gap: 13px; color: var(--text-3); font-size: 10px; }
.density-switch { display: inline-flex; border: 1px solid var(--line-strong); }
.density-switch button { min-width: 48px; height: 27px; border: 0; background: transparent; color: var(--text-2); font-size: 10px; }
.density-switch button + button { border-left: 1px solid var(--line); }
.density-switch button.active { color: #fff; background: var(--selected); }
.scene-arrows { display: flex; gap: 4px; }
.scene-arrows button { width: 30px; height: 28px; border: 0; background: transparent; color: var(--text-2); font-size: 16px; }
.scene-arrows button:hover { border-color: var(--ink); color: var(--ink); }

/* Story detail: source metadata stays adjacent to a readable transcript area. */
.story-page { background: var(--page); }
.story-layout { display: grid; grid-template-columns: minmax(310px, 39%) minmax(0, 61%); min-height: calc(100svh - var(--header-h)); border-top: 1px solid var(--line); }
.story-sidebar { padding: 22px clamp(22px, 4vw, 68px) 48px clamp(24px, 4.4vw, 84px); border-right: 1px solid var(--line); }
.back-link { display: inline-flex; gap: 8px; align-items: center; padding: 4px 0; border: 0; background: none; color: var(--text-2); font-size: 11px; }
.story-facts { margin-top: 28px; }
.story-date { margin: 0 0 7px; color: var(--text-2); font: 500 clamp(22px, 2.25vw, 34px)/1.45 var(--serif); }
.story-date span { display: block; margin-top: 3px; color: var(--text-3); font: 10px var(--sans); }
.story-facts h1 { margin: 0; font: 500 clamp(26px, 3vw, 42px)/1.35 var(--serif); text-wrap: balance; }
.story-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.story-tags span { border: 1px solid var(--line-strong); border-radius: 18px; padding: 5px 10px; color: var(--text-2); font-size: 10px; }
.story-audio { margin-top: 27px; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-audio h2, .story-person h2 { margin: 0; font: 500 13px var(--serif); }
.story-audio p { margin: 7px 0 10px; color: var(--text-2); font-size: 11px; line-height: 1.6; }
.story-audio button { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); padding: 7px 10px; background: transparent; color: var(--text-3); font-size: 10px; }
.story-person { padding: 19px 0 18px; border-bottom: 1px solid var(--line); }
.person-heading { display: flex; gap: 10px; align-items: center; }
.person-placeholder { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #e4e4df; color: var(--text-2); font: 16px var(--serif); }
.person-portrait { width: 38px; height: 38px; flex: none; border-radius: 50%; object-fit: cover; }
.story-source-media { display: inline-block; color: var(--text-1); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.person-heading p { margin: 5px 0 0; color: var(--text-3); font-size: 10px; }
.story-person > p { margin: 11px 0; color: var(--text-2); font-size: 11px; line-height: 1.7; }
.story-person > button { display: inline-flex; gap: 8px; align-items: center; border: 0; border-bottom: 1px solid var(--line-strong); padding: 0 0 5px; background: transparent; font-size: 11px; }
.story-image { margin: 20px 0 0; }
.story-image img { width: 100%; max-height: 270px; object-fit: cover; }
.story-image figcaption { margin-top: 7px; color: var(--text-3); font-size: 9px; line-height: 1.6; }
.story-reading { max-width: 920px; width: 100%; padding: 30px clamp(28px, 6vw, 100px) 80px; }
.reading-topline { display: flex; justify-content: space-between; gap: 14px; color: var(--text-3); font-size: 10px; }
.story-reading > h2 { margin: 34px 0 19px; font: 500 clamp(26px, 3vw, 40px)/1.5 var(--serif); }
.reading-mode { display: flex; gap: 22px; border-bottom: 1px solid var(--line); }
.reading-mode button { padding: 10px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--text-2); font-size: 11px; }
.reading-mode button.active { border-color: var(--selected); color: var(--ink); }
.reading-mode button:disabled { color: var(--text-3); }
.transcript-empty { min-height: 240px; padding: 58px 0 42px; }
.transcript-empty p { margin: 0 0 10px; color: var(--text-2); font: 17px/1.9 var(--serif); }
.transcript-empty span { display: block; max-width: 58ch; color: var(--text-3); font-size: 12px; line-height: 1.9; }
.provenance { margin-top: 16px; border-top: 1px solid var(--line); }
.provenance h3 { margin: 17px 0 10px; font: 500 14px var(--serif); }
.provenance dl { margin: 0; }
.provenance dl div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 11px; line-height: 1.6; }
.provenance dt { color: var(--text-2); }
.provenance dd { margin: 0; color: var(--ink); }

/* Conversation room */
.dark-page { color-scheme: dark; background: var(--conversation-bg); color: var(--conversation-text); }
.dark-page .site-header { background: var(--conversation-bg); color: var(--conversation-text); }
.dark-page .site-header .brand img { filter: brightness(0) invert(1); }
.dark-page .header-search { border-color: rgba(255,255,255,.32); color: var(--conversation-muted); }
.dark-page .header-search input { color: var(--conversation-text); }
.dark-page .header-search input::placeholder, .dark-page .header-search button { color: var(--conversation-muted); }
.dark-page .view-switch { border-color: rgba(255,255,255,.2); }
.dark-page .view-switch button { color: var(--conversation-muted); }
.dark-page .view-switch button.active { color: var(--conversation-bg); background: var(--conversation-text); }
.dark-page .site-links a, .dark-page .site-links button { color: var(--conversation-muted); }
.dark-page .site-links :is(a, button):hover { color: var(--conversation-text); }
.conversation-room { position: relative; min-height: calc(100svh - var(--header-h)); overflow: hidden; isolation: isolate; background: #2b2723; }
.narrator-rail { position: absolute; z-index: 4; left: clamp(16px, 2.5vw, 40px); top: 50%; transform: translateY(-50%); width: 88px; min-height: 360px; padding: 16px 9px; border-radius: 40px; background: rgba(43, 39, 35, .74); display: flex; flex-direction: column; align-items: center; gap: 13px; color: var(--conversation-muted); backdrop-filter: blur(6px); }
.narrator-rail > p { margin: 0 0 3px; font-size: 10px; }
.narrator-choice { width: 66px; border: 0; padding: 0; background: transparent; color: var(--conversation-muted); display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 9px; }
.narrator-choice img { width: 45px; height: 45px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; object-fit: cover; object-position: 28% center; filter: saturate(.7); }
.narrator-choice.active img { border: 2px solid var(--conversation-text); filter: none; }
.narrator-rail > small { max-width: 67px; font-size: 8px; line-height: 1.6; text-align: center; }
.interview-visual { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.room-atmosphere { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .58; }
.room-image { position: absolute; left: 3%; bottom: 0; width: min(55vw, 820px); height: 94%; object-fit: contain; object-position: left bottom; mask-image: linear-gradient(to right, #000 0%, #000 64%, transparent 100%), linear-gradient(to top, #000 65%, transparent 100%); mask-composite: intersect; }
.visual-caption { position: absolute; z-index: 2; left: clamp(118px, 10vw, 170px); bottom: 18px; color: rgba(241,236,229,.64); font-size: 9px; }
.room-gradient { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 29%, rgba(31,28,25,.14) 47%, rgba(31,28,25,.74) 78%, rgba(31,28,25,.3)); }
.conversation-panel { position: absolute; z-index: 1; top: clamp(24px, 5vh, 54px); right: clamp(28px, 5.5vw, 90px); bottom: clamp(24px, 5vh, 54px); width: min(43vw, 620px); min-width: 440px; padding: clamp(22px, 3vw, 42px); display: flex; flex-direction: column; background: var(--conversation-panel); border: 1px solid rgba(241,236,229,.16); border-radius: 18px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid rgba(241,236,229,.18); }
.panel-heading p { margin: 0 0 8px; color: var(--conversation-muted); font-size: 10px; }
.panel-heading h1 { margin: 0; color: var(--conversation-text); font: 500 22px/1.4 var(--serif); }
.panel-heading > span { margin-top: 4px; color: var(--conversation-muted); font-size: 9px; }
.narrator-intro { padding: 20px 0 16px; }
.narrator-intro h2 { margin: 0; font: 500 20px/1.5 var(--serif); }
.narrator-intro p { max-width: 48ch; margin: 7px 0 0; color: var(--conversation-muted); font-size: 11px; line-height: 1.8; }
.conversation-history { min-height: 0; flex: 1; overflow: auto; overscroll-behavior: contain; padding: 3px 4px 14px 0; scrollbar-width: thin; scrollbar-color: rgba(241,236,229,.28) transparent; }
.empty-conversation { min-height: 150px; display: flex; flex-direction: column; justify-content: center; color: var(--conversation-muted); }
.empty-conversation p { margin: 0 0 8px; color: var(--conversation-text); font: 15px var(--serif); }
.empty-conversation span { max-width: 48ch; font-size: 11px; line-height: 1.8; }
.dialogue-turn { margin: 4px 0 18px; }
.user-question { width: fit-content; max-width: 86%; margin: 0 0 14px auto; padding: 10px 13px; border: 1px solid rgba(241,236,229,.16); border-radius: 14px 14px 2px 14px; background: rgba(255,255,255,.055); color: var(--conversation-text); font: 13px/1.75 var(--serif); }
.evidence-answer { padding: 13px 15px; border-radius: 2px 12px 12px 12px; background: rgba(255,255,255,.07); }
.evidence-answer > span { color: var(--conversation-muted); font-size: 9px; }
.evidence-answer > p { margin: 8px 0 12px; color: var(--conversation-text); font: 12px/1.8 var(--serif); }
.evidence-links { display: flex; flex-direction: column; gap: 5px; }
.evidence-links button { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 0; border-top: 1px solid rgba(255,255,255,.12); padding: 8px 0 4px; background: transparent; color: var(--conversation-text); text-align: left; font: 11px var(--serif); }
.evidence-links small { color: var(--conversation-muted); font: 9px var(--sans); }
.source-state { display: flex; gap: 7px; align-items: center; margin-top: 11px; color: var(--conversation-muted); font-size: 9px; }
.suggested-prompts { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 0; }
.suggested-prompts button { min-height: 29px; border: 1px solid rgba(241,236,229,.22); border-radius: 15px; padding: 5px 10px; background: transparent; color: var(--conversation-muted); font-size: 9px; }
.suggested-prompts button:hover { border-color: rgba(241,236,229,.55); color: var(--conversation-text); }
.composer { min-height: 48px; display: flex; align-items: flex-end; gap: 9px; padding: 6px 7px 6px 13px; border: 1px solid rgba(241,236,229,.26); border-radius: 12px; }
.composer:focus-within { border-color: rgba(241,236,229,.62); }
.composer textarea { min-height: 33px; max-height: 90px; flex: 1; resize: none; border: 0; outline: 0; padding: 8px 0; background: transparent; color: var(--conversation-text); font-size: 12px; line-height: 1.5; }
.composer textarea::placeholder { color: #c0b8ae; opacity: 1; }
.composer > button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(241,236,229,.1); color: var(--conversation-text); }
.composer > button:hover:not(:disabled) { background: rgba(241,236,229,.2); }
.composer > button:disabled { opacity: .45; }
.panel-note { margin: 10px 0 0; color: var(--conversation-muted); font-size: 9px; line-height: 1.6; }
.about-dialog { width: min(420px, calc(100vw - 32px)); border: 1px solid var(--line); padding: 32px; background: var(--page); color: var(--ink); }
.about-dialog::backdrop { background: rgba(0,0,0,.32); }
.about-dialog form { display: flex; justify-content: flex-end; }
.about-dialog form button { border: 0; background: transparent; }
.about-dialog > img { width: 78px; max-height: 62px; object-fit: contain; object-position: left center; }
.about-dialog h2 { margin: 20px 0 8px; font: 500 22px var(--serif); }
.about-dialog p { color: var(--text-2); font-size: 13px; line-height: 1.8; }
.about-dialog .dialog-note { border-top: 1px solid var(--line); padding-top: 12px; font-size: 11px; }

@media (min-width: 1600px) {
  .topic-explorer { right: 5vw; }
}

@media (max-width: 1100px) {
  :root { --header-h: 76px; }
  .site-header { grid-template-columns: 112px minmax(150px, 1fr) 50px auto; gap: 15px; padding-inline: 24px; }
  .brand img { width: 75px; height: 54px; }
  .site-links { gap: 18px; }
  .spatial-scene { perspective: 1450px; }
  .topic-explorer { width: min(300px, 34vw); }
  .story-layout { grid-template-columns: minmax(295px, 40%) minmax(0, 60%); }
  .story-sidebar { padding-inline: 24px; }
  .conversation-panel { right: 4vw; width: 48vw; }
}

@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .site-header { grid-template-columns: 72px minmax(0, 1fr) 58px; gap: 10px; padding-inline: 15px; }
  .brand { width: 72px; }
  .brand img { width: 66px; height: 49px; }
  .header-search { width: 100%; height: 32px; padding-inline: 8px; }
  .header-search input { font-size: 11px; }
  .view-switch { justify-self: end; }
  .view-switch button { width: 24px; height: 24px; }
  .site-links { display: none; }
  .archive-page { height: 100svh; overflow: hidden; }
  .spatial-stage { height: calc(100svh - var(--header-h)); min-height: 0; }
  .spatial-scene { perspective: 1050px; perspective-origin: 50% 56%; }
  .topic-explorer { right: 14px; bottom: 73px; width: calc(100vw - 28px); flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
  .topic-explorer::-webkit-scrollbar { display: none; }
  .topic-chip { flex: none; font-size: 10px; }
  .focus-record { left: 14px; top: 13px; width: min(280px, calc(100vw - 36px)); padding-left: 4px; }
  .scene-caption { right: 14px; bottom: 8px; max-width: 43vw; font-size: 8px; }
  .scene-controls { left: 14px; bottom: 28px; gap: 7px; font-size: 8px; }
  .density-switch button { min-width: 39px; height: 25px; font-size: 9px; }
  .scene-arrows button { width: 27px; height: 25px; }
  .story-layout { display: flex; flex-direction: column; }
  .story-sidebar { padding: 16px 18px 22px; border-right: 0; border-bottom: 1px solid var(--line); }
  .story-facts { margin-top: 23px; }
  .story-date { font-size: 24px; }
  .story-facts h1 { font-size: 31px; }
  .story-audio { margin-top: 20px; }
  .story-image img { max-height: 240px; }
  .story-reading { padding: 20px 18px 60px; }
  .story-reading > h2 { margin: 22px 0 14px; font-size: 28px; }
  .transcript-empty { min-height: 170px; padding: 38px 0; }
  .provenance dl div { grid-template-columns: 92px 1fr; }
  .conversation-room { min-height: calc(100svh - var(--header-h)); overflow: visible; padding: 0 12px 18px; display: flex; flex-direction: column; }
  .narrator-rail { display: none; }
  .narrator-rail > p { font-size: 8px; }
  .narrator-choice { width: 54px; font-size: 8px; }
  .narrator-choice img { width: 38px; height: 38px; }
  .narrator-rail > small { display: none; }
  .interview-visual { position: relative; z-index: 0; order: 0; height: 240px; margin: 0 -12px -60px; flex: none; }
  .room-atmosphere { opacity: .35; }
  .room-image { left: 6%; width: 70%; height: 110%; object-position: left bottom; -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 45%, transparent 80%); mask-image: linear-gradient(90deg, #000 0%, #000 45%, transparent 80%); }
  .room-gradient { background: linear-gradient(to bottom, transparent 40%, var(--conversation-bg) 100%); }
  .visual-caption { left: auto; right: 12px; bottom: 46px; max-width: 145px; text-align: right; font-size: 8px; }
  .conversation-panel { position: relative; inset: auto; z-index: 1; width: 100%; min-width: 0; min-height: 570px; flex: 1; padding: 18px 15px 14px; border-radius: 12px; }
  .panel-heading { padding-bottom: 13px; }
  .panel-heading h1 { font-size: 19px; }
  .narrator-intro { padding: 14px 0 10px; }
  .narrator-intro h2 { font-size: 18px; }
  .conversation-history { min-height: 190px; }
  .suggested-prompts { gap: 5px; padding: 9px 0; }
  .suggested-prompts button { font-size: 8px; padding-inline: 8px; }
  .composer { min-height: 47px; }
  .panel-note { font-size: 8px; }
}

@media (max-width: 380px) {
  .site-header { grid-template-columns: 62px minmax(0, 1fr) 54px; padding-inline: 10px; gap: 7px; }
  .brand { width: 62px; }
  .brand img { width: 60px; }
  .scene-caption { max-width: 40vw; }
}

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