* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #f7f3ea;
  --surface: #fffdf8;
  --surface-soft: #f5efe3;
  --surface-warm: #efe8d9;
  --ink: #1f241c;
  --muted: #6b685f;
  --quiet: #8c877a;
  --line: #dfd5c4;
  --line-strong: #cdbfA8;
  --olive: #334f32;
  --olive-soft: #dfe8d5;
  --gold: #b8843a;
  --gold-soft: #f3e3c6;
  --brick: #9f4c37;
  --brick-soft: #f2d8cf;
  --paper: #fbf7ef;
  --shadow: 0 18px 48px rgba(47, 38, 26, 0.16);
  --radius: 8px;
  --radius-sm: 6px;
  --font-ui: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --font-book: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 10%, rgba(214, 184, 123, 0.22), transparent 34%),
    radial-gradient(circle at 82% 0%, rgba(116, 136, 92, 0.12), transparent 30%),
    linear-gradient(180deg, #faf6ee 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.preview-stage {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 28px 16px;
}

.app {
  position: relative;
  width: min(100%, 390px);
  min-height: 844px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid #1e1e1e;
  border-radius: 38px;
  box-shadow: var(--shadow);
}

.content,
.card,
.soft-card,
.prompt-card,
.voice-recorder,
.story-card-main {
  min-width: 0;
}

.app::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(90deg, rgba(61, 49, 31, 0.018), rgba(61, 49, 31, 0.018) 1px, transparent 1px, transparent 5px);
  z-index: 0;
}

.status-bar,
.top-bar,
.content,
.bottom-nav {
  position: relative;
  z-index: 1;
}

.status-bar {
  display: none !important;
  height: 0;
  padding: 0;
  overflow: hidden;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

html {
  scrollbar-width: none;
}

body::-webkit-scrollbar {
  display: none;
}

html.embedded,
html.embedded body {
  min-height: 0;
  overflow: hidden;
  background: transparent;
}

html.embedded .preview-stage {
  min-height: 0;
  display: block;
  padding: 0;
}

html.embedded .app {
  width: 390px;
  min-height: auto;
  border-radius: 38px;
  border: 1px solid #1e1e1e;
  box-shadow: none;
}

.system-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.signal,
.wifi,
.battery {
  display: inline-block;
}

.signal {
  width: 17px;
  height: 11px;
  background: linear-gradient(to right, #111 20%, transparent 20% 28%, #111 28% 48%, transparent 48% 56%, #111 56% 76%, transparent 76% 84%, #111 84%);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 72%);
}

.wifi {
  width: 15px;
  height: 11px;
  border: 3px solid #111;
  border-bottom: 0;
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 13px 13px 0 0;
}

.battery {
  position: relative;
  width: 22px;
  height: 11px;
  border: 1.6px solid #111;
  border-radius: 3px;
}

.battery::after {
  content: "";
  position: absolute;
  right: -3.5px;
  top: 3px;
  width: 2px;
  height: 4px;
  background: #111;
  border-radius: 0 2px 2px 0;
}

.battery::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 5px;
  background: #111;
  border-radius: 1px;
}

.top-bar {
  min-height: 58px;
  padding: 8px 18px 12px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  border-bottom: 1px solid rgba(205, 191, 168, 0.58);
}

.top-bar.no-line {
  border-bottom-color: transparent;
}

.top-title {
  text-align: center;
  font-size: 17px;
  font-weight: 750;
  color: var(--ink);
}

.top-subtitle {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.icon-btn {
  min-width: 36px;
  width: auto;
  height: 36px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--surface-soft);
}

.icon {
  line-height: 1;
  font-size: 21px;
  font-weight: 700;
}

.content {
  padding: 0 16px 96px;
}

.content.with-top-space {
  padding-top: 12px;
}

.page-kicker {
  margin: 8px 0 6px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.page-title {
  margin: 0;
  font-family: var(--font-book);
  font-size: 28px;
  line-height: 1.18;
  font-weight: 800;
  color: var(--ink);
}

.page-lead {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.section {
  margin-top: 16px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 10px;
}

.section-title {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
  color: var(--ink);
}

.section-link {
  color: var(--muted);
  font-size: 12px;
}

.card {
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(53, 42, 27, 0.05);
}

.soft-card {
  background: rgba(250, 246, 237, 0.92);
  border: 1px solid rgba(205, 191, 168, 0.78);
  border-radius: var(--radius);
}

.profile-strip {
  display: grid;
  grid-template-columns: 56px 1fr 18px;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  filter: grayscale(0.2);
}

.profile-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 780;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.hero-photo {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  border-radius: 18px;
  background: #ddd4c4;
  border: 1px solid var(--line-strong);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 194px;
  object-fit: cover;
  filter: grayscale(0.85) sepia(0.16) contrast(0.95);
}

.hero-photo.tall img {
  height: 280px;
}

.hero-photo.small img {
  height: 112px;
}

.photo-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  font-size: 12px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

.photo-caption span {
  flex: 0 0 auto;
  min-width: 0;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 253, 248, 0.84);
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.badge.olive {
  border-color: #b8c8aa;
  background: var(--olive-soft);
  color: var(--olive);
}

.badge.gold {
  border-color: #d5b77b;
  background: var(--gold-soft);
  color: #73531d;
}

.badge.warn {
  border-color: #d9ad69;
  background: #fff2d9;
  color: #8a5816;
}

.badge.danger {
  border-color: #dda39a;
  background: var(--brick-soft);
  color: #8c3228;
}

.badge.dark {
  background: var(--olive);
  border-color: var(--olive);
  color: white;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.7);
  color: var(--ink);
  font-size: 12px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.stat-card {
  min-height: 74px;
  min-width: 0;
  padding: 9px 6px;
  text-align: center;
  background: rgba(255, 253, 248, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat-number {
  display: block;
  color: var(--olive);
  font-family: var(--font-book);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.memory-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  padding: 10px;
}

.memory-card img {
  width: 112px;
  height: 136px;
  object-fit: cover;
  border-radius: 8px;
  filter: grayscale(0.85) sepia(0.15);
}

.memory-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.btn,
.chip,
.badge {
  min-width: 0;
}

.memory-question {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 700;
}

.btn-stack {
  display: grid;
  gap: 8px;
}

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-row.three {
  grid-template-columns: repeat(3, 1fr);
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.btn.primary {
  border-color: var(--olive);
  background: var(--olive);
  color: white;
  box-shadow: 0 6px 14px rgba(51, 79, 50, 0.16);
}

.btn.gold {
  border-color: #d6aa63;
  background: #fff6e5;
  color: #7d561d;
}

.btn.ghost {
  background: rgba(255, 253, 248, 0.5);
}

.btn.full {
  width: 100%;
}

.btn.large {
  min-height: 54px;
  font-size: 16px;
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 82px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: start;
  padding: 8px 10px 12px;
  background: rgba(255, 253, 248, 0.96);
  border-top: 1px solid rgba(205, 191, 168, 0.72);
  backdrop-filter: blur(18px);
}

.nav-item {
  display: grid;
  justify-items: center;
  gap: 3px;
  color: var(--ink);
  font-size: 11px;
}

.nav-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--ink);
}

.nav-svg {
  width: 21px;
  height: 21px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item.active .nav-icon {
  background: var(--olive-soft);
  color: var(--olive);
}

.context-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
}

.context-card img {
  width: 74px;
  height: 62px;
  object-fit: cover;
  border-radius: 7px;
  filter: grayscale(0.85) sepia(0.14);
}

.context-title {
  margin: 0 0 7px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.guide-question {
  margin: 18px 2px 12px;
  font-family: var(--font-book);
  font-size: 22px;
  line-height: 1.55;
  font-weight: 800;
  text-align: center;
  overflow-wrap: anywhere;
}

.guide-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 10px 12px;
  color: #6e531f;
  background: #fff7e7;
  border: 1px solid #ead0a2;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
}

.guide-note span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.guide-layout {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  margin-top: 12px;
}

.guide-rail {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12px;
}

.guide-rail li {
  position: relative;
  min-height: 32px;
  padding: 0 0 10px 20px;
}

.guide-rail li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}

.guide-rail li::after {
  content: "";
  position: absolute;
  left: 8.5px;
  top: 13px;
  bottom: 0;
  width: 1px;
  background: var(--line-strong);
}

.guide-rail li:last-child::after {
  display: none;
}

.guide-rail li.active {
  color: var(--olive);
  font-weight: 750;
}

.guide-rail li.active::before {
  background: var(--olive);
}

.guide-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0 14px;
}

.guide-progress span {
  min-height: 36px;
  display: grid;
  place-items: center;
  padding: 6px 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.7);
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
}

.guide-progress span.active {
  border-color: #b8c8aa;
  color: var(--olive);
  background: var(--olive-soft);
  font-weight: 750;
}

.prompt-card {
  padding: 14px;
}

.prompt-card .guide-question {
  margin: 4px 0 10px;
}

.memory-lens-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.memory-lens {
  min-height: 56px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 8px 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--ink);
  font-size: 12px;
  text-align: center;
  overflow-wrap: anywhere;
}

.memory-lens strong {
  color: var(--olive);
  font-size: 15px;
}

.voice-recorder {
  padding: 18px 14px;
  text-align: center;
}

.voice-recorder .wave {
  margin: 12px auto 14px;
}

.mic-orb {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border: 6px solid #f4dccb;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 22%, #d18c73, #9f4c37);
  color: white;
  box-shadow: 0 14px 26px rgba(116, 48, 31, 0.26);
  cursor: pointer;
}

.mic-svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.ai-summary {
  padding: 12px;
  border-left: 3px solid var(--gold);
}

.ai-summary h3 {
  margin: 0 0 7px;
  font-size: 14px;
}

.ai-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.guide-mode-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.guide-mode {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.guide-mode-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--olive-soft);
  color: var(--olive);
  font-size: 24px;
}

.guide-mode h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.guide-mode p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.voice-panel {
  padding: 18px 12px 16px;
  text-align: center;
}

.wave {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--gold);
}

.wave i {
  display: block;
  width: 2px;
  height: var(--h);
  min-height: 8px;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.72;
}

.small-wave {
  height: 30px;
  margin: 8px 0 8px;
}

.mic-button {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  border-radius: 50%;
  border: 4px solid #f7dfcf;
  background: radial-gradient(circle at 35% 22%, #cf8b72, #9d4f37);
  color: white;
  box-shadow: 0 10px 22px rgba(116, 48, 31, 0.26);
  cursor: pointer;
}

.timer {
  display: block;
  margin-top: 10px;
  font-size: 20px;
  font-weight: 750;
}

.text-input {
  width: 100%;
  min-height: 48px;
  padding: 13px 12px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
}

.fact-panel {
  padding: 10px;
}

.fact-panel h3 {
  margin: 0 0 8px;
  font-size: 13px;
}

.material-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  color: var(--muted);
  font-size: 12px;
}

.person-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.person-chip {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.74);
  font-size: 12px;
}

.mini-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(0.5);
  background: var(--surface-warm);
}

.question-box {
  display: grid;
  grid-template-columns: 1fr 34px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e1b46d;
  border-radius: 8px;
  background: #fff8eb;
  font-size: 13px;
  line-height: 1.5;
}

.play-dot {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #dec18d;
  border-radius: 50%;
  background: white;
  color: var(--olive);
}

.story-title {
  margin: 12px 0 8px;
  font-family: var(--font-book);
  font-size: 25px;
  line-height: 1.28;
}

.story-body {
  margin: 0;
  color: #333126;
  font-family: var(--font-book);
  font-size: 15px;
  line-height: 1.9;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 16px 0;
}

.field-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.field,
.textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.8);
  color: var(--ink);
}

.textarea {
  min-height: 130px;
  line-height: 1.7;
  resize: vertical;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.upload-zone {
  display: grid;
  place-items: center;
  min-height: 184px;
  padding: 20px;
  border: 1.5px dashed #c7b899;
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.52);
  text-align: center;
}

.upload-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--olive-soft);
  color: var(--olive);
  font-size: 26px;
}

.material-card {
  overflow: hidden;
}

.material-card img,
.material-art {
  width: 100%;
  height: 170px;
  object-fit: cover;
  filter: grayscale(0.65) sepia(0.14);
  background: var(--surface-warm);
}

.material-body {
  padding: 12px;
}

.material-title {
  margin: 0 0 7px;
  font-family: var(--font-book);
  font-size: 21px;
}

.material-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.story-card {
  padding: 12px;
  display: block;
}

.story-card-head {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.story-card img {
  width: 82px;
  height: 92px;
  object-fit: cover;
  border-radius: 8px;
  filter: grayscale(0.7) sepia(0.16);
}

.story-card h3 {
  margin: 6px 0 6px;
  font-family: var(--font-book);
  font-size: 19px;
  line-height: 1.25;
}

.story-card-main {
  min-width: 0;
}

.story-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.story-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(223, 213, 196, 0.8);
}

.story-card-actions span {
  color: var(--muted);
  font-size: 12px;
}

.flow-diagram {
  display: grid;
  gap: 10px;
}

.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 12px;
}

.flow-step::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 52px;
  bottom: -11px;
  width: 1px;
  background: var(--line-strong);
}

.flow-step:last-child::after {
  display: none;
}

.flow-index {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--olive);
  color: white;
  font-weight: 800;
}

.flow-step h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.audit-list {
  display: grid;
  gap: 10px;
}

.audit-item {
  padding: 12px;
}

.audit-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.audit-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.story-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.timeline {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid #d7be85;
}

.timeline li {
  position: relative;
  margin-left: 18px;
  padding: 0 0 22px 14px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 4px;
  width: 12px;
  height: 12px;
  border: 3px solid #c39c4c;
  background: var(--paper);
  border-radius: 50%;
}

.timeline-year {
  color: #8b6422;
  font-family: var(--font-book);
  font-size: 23px;
  font-weight: 800;
}

.timeline h3 {
  margin: 4px 0 5px;
  font-family: var(--font-book);
  font-size: 20px;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.contributors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.contributor {
  text-align: center;
  font-size: 11px;
  font-weight: 650;
}

.contributor img,
.contributor-add {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  object-fit: cover;
  filter: grayscale(0.3);
  background: rgba(255, 253, 248, 0.72);
}

.request-card {
  padding: 12px;
}

.request-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.quote {
  margin: 0;
  color: #433f35;
  font-family: var(--font-book);
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.work-card {
  overflow: hidden;
}

.work-cover {
  height: 132px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(64, 64, 64, 0.18)),
    linear-gradient(90deg, #d9d1c1, #f8f1e2 42%, #bbb0a0 43%, #e8dfce);
}

.audio-art {
  height: 132px;
  display: grid;
  place-items: center;
  background: #e5e0d4;
  color: #8c9279;
  font-size: 38px;
}

.readiness-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(223, 213, 196, 0.8);
  font-size: 13px;
}

.readiness-row:last-child {
  border-bottom: 0;
}

.memoir-preview {
  padding: 16px;
  background: #fffcf5;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.memoir-preview h2 {
  margin: 0 0 8px;
  font-family: var(--font-book);
  font-size: 24px;
}

.memoir-preview p {
  margin: 0;
  font-family: var(--font-book);
  line-height: 1.85;
  font-size: 15px;
}

.home-hero {
  padding: 6px 0 2px;
}

.home-hero .page-title {
  max-width: 340px;
}

.mini-timeline {
  margin-top: 10px;
}

.mini-timeline li {
  padding-bottom: 16px;
}

.mini-timeline .timeline-year {
  font-size: 18px;
}

.mini-timeline h3 {
  font-size: 17px;
}

.reminder-card,
.quick-background {
  padding: 12px;
}

.source-card {
  padding: 12px;
}

.source-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.source-row strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.source-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--olive-soft);
  color: var(--olive);
  font-size: 14px;
  font-weight: 800;
}

.readiness-row a {
  color: var(--olive);
  font-weight: 750;
}

@media (max-width: 520px) {
  .preview-stage {
    padding: 0;
  }

  .app {
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  html.embedded .app {
    width: 390px;
    min-height: auto;
    border-radius: 38px;
    border: 1px solid #1e1e1e;
  }

  .guide-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .memory-lens-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-card-actions {
    grid-template-columns: 1fr;
  }

  .story-card-actions .badge {
    justify-self: start;
  }
}
