:root {
  color-scheme: light;
  --paper: #f3efe4;
  --paper-deep: #e8e0d0;
  --card: #fffdf7;
  --ink: #17221f;
  --muted: #66706b;
  --line: rgba(23, 34, 31, 0.13);
  --coral: #e85d42;
  --coral-dark: #b83d28;
  --jade: #2d7161;
  --amber: #a76d20;
  --shadow: 0 18px 50px rgba(59, 43, 26, 0.1);
  --display: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --body: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--body);
  background:
    radial-gradient(circle at 8% 2%, rgba(232, 93, 66, 0.1), transparent 28rem),
    radial-gradient(circle at 94% 18%, rgba(45, 113, 97, 0.09), transparent 22rem),
    var(--paper);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.24;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

body.dialog-open { overflow: hidden; }

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(232, 93, 66, 0.45); outline-offset: 3px; }

.app-shell { width: min(100%, 1180px); min-height: 100dvh; margin-inline: auto; }
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: max(8px, env(safe-area-inset-top)) 16px 8px;
  background: rgba(243, 239, 228, 0.88);
  border-bottom: 1px solid rgba(23, 34, 31, 0.08);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; gap: 8px; align-items: center; min-height: 36px; color: inherit; text-decoration: none; }
.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--card);
  font-family: var(--display);
  font-size: 15px;
  background: var(--ink);
  border-radius: 50% 50% 48% 42%;
  transform: rotate(-5deg);
}
.brand strong { font-family: var(--display); font-size: 15px; letter-spacing: 0.04em; }
.header-meta { display: flex; gap: 8px; align-items: center; }
.header-meta time { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.data-badge {
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border: 1px solid;
  border-radius: 99px;
}
.data-badge.is-live { color: var(--jade); background: rgba(45, 113, 97, 0.1); border-color: rgba(45, 113, 97, 0.25); }
.data-badge.is-cached { color: #7a531c; background: rgba(167, 109, 32, 0.1); border-color: rgba(167, 109, 32, 0.25); }
.data-badge.is-demo { color: var(--coral-dark); background: rgba(232, 93, 66, 0.1); border-color: rgba(232, 93, 66, 0.25); }
.data-badge.is-loading { color: var(--muted); background: rgba(23, 34, 31, 0.06); border-color: var(--line); }

.app-view { width: 100%; min-height: calc(100dvh - 150px); padding: 14px 16px calc(112px + env(safe-area-inset-bottom)); }
.view-heading { position: relative; display: flex; align-items: baseline; gap: 10px; margin: 2px 0 12px; }
.view-kicker, .view-heading > p { margin: 0 0 8px; color: var(--coral-dark); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; }
.view-heading h1, .section-heading h2, .empty-state h1 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; }
.view-heading h1 { font-size: 21px; line-height: 1.2; }
.view-heading .view-meta { flex: 0 0 auto; margin-left: auto; color: var(--muted); font-size: 10px; }
.demo-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 18px;
  padding: 12px 14px;
  color: #6f542d;
  font-size: 12px;
  line-height: 1.6;
  background: rgba(255, 248, 227, 0.84);
  border: 1px solid rgba(167, 109, 32, 0.2);
  border-radius: 14px;
}
.demo-notice::before { flex: 0 0 auto; content: "DEMO"; margin-top: 1px; padding: 2px 5px; color: #fff9ea; font-size: 8px; font-weight: 900; letter-spacing: 0.08em; background: var(--amber); border-radius: 4px; }

.data-status { margin: 0 0 12px; padding: 8px 12px; background: rgba(255, 253, 247, 0.82); border: 1px solid rgba(45, 113, 97, 0.2); border-radius: 14px; box-shadow: 0 8px 24px rgba(59, 43, 26, 0.05); }
.data-status.is-cached { border-color: rgba(167, 109, 32, 0.25); }
.status-summary { display: flex; align-items: center; gap: 7px; width: 100%; min-height: 34px; padding: 0; color: inherit; font: inherit; text-align: left; background: none; border: 0; cursor: pointer; }
.status-summary .status-dot { flex: 0 0 auto; width: 8px; height: 8px; background: #2f9a74; border-radius: 50%; box-shadow: 0 0 0 4px rgba(47, 154, 116, 0.11); }
.data-status.is-cached .status-summary .status-dot { background: var(--amber); box-shadow: 0 0 0 4px rgba(167, 109, 32, 0.11); }
.status-summary strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.status-summary > small { flex: 1 1 auto; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.status-summary .chevron { flex: 0 0 auto; color: var(--muted); font-size: 10px; transition: transform 0.15s ease; }
.status-summary[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.ai-chip { padding: 1px 5px; color: #20654f; font-size: 8px; font-weight: 900; letter-spacing: 0.06em; background: rgba(45, 113, 97, 0.14); border-radius: 4px; }
.source-health-strip { display: flex; gap: 7px; margin: 6px -2px 6px; padding: 2px 2px 4px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-inline: contain; }
.source-health-strip::-webkit-scrollbar { display: none; }
.source-health { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 6px; min-width: max-content; padding: 7px 9px; background: rgba(23, 34, 31, 0.035); border: 1px solid var(--line); border-radius: 11px; }
.source-health > i { grid-row: 1 / span 2; width: 6px; height: 6px; align-self: center; background: #2f9a74; border-radius: 50%; }
.source-health b { font-size: 9px; line-height: 1.3; }
.source-health small { color: var(--muted); font-size: 8px; line-height: 1.3; }
.source-health.is-error > i { background: var(--coral); }
.source-health.is-not_configured > i { background: #b0aaa0; }
.data-status > p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.ai-polish-status { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.ai-polish-status b { flex: 0 0 auto; padding: 1px 5px; color: #20654f; font-size: 8px; font-weight: 900; letter-spacing: 0.06em; background: rgba(45, 113, 97, 0.14); border-radius: 4px; }

.draft-notice { margin: 0 0 16px; padding: 11px 13px; color: #69522f; font-size: 11px; line-height: 1.65; background: #fff7e7; border-left: 3px solid var(--amber); border-radius: 0 12px 12px 0; }
.loading-state { display: grid; min-height: 58dvh; place-items: center; align-content: center; gap: 8px; color: var(--muted); text-align: center; }
.loading-state > span { width: 34px; height: 34px; border: 3px solid rgba(45, 113, 97, 0.15); border-top-color: var(--jade); border-radius: 50%; animation: loading-spin 800ms linear infinite; }
.loading-state strong { margin-top: 8px; color: var(--ink); font-family: var(--display); font-size: 20px; }
.loading-state small { font-size: 10px; }

.segmented-control { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 14px; padding: 4px; background: rgba(23, 34, 31, 0.07); border-radius: 16px; }
.segment-button, .date-chip, .category-chip, .nav-item, .sheet-close, .choice-button, .primary-button, .secondary-button { min-height: 44px; border: 0; cursor: pointer; }
.segment-button { color: var(--muted); font-size: 14px; font-weight: 700; background: transparent; border-radius: 12px; }
.segment-button.is-active { color: var(--ink); background: var(--card); box-shadow: 0 4px 14px rgba(23, 34, 31, 0.08); }
.date-strip, .category-strip { display: flex; gap: 9px; overflow-x: auto; padding: 2px 1px 8px; scrollbar-width: none; overscroll-behavior-inline: contain; }
.date-strip::-webkit-scrollbar, .category-strip::-webkit-scrollbar { display: none; }
.date-chip, .category-chip { flex: 0 0 auto; padding-inline: 15px; color: var(--muted); font-size: 12px; font-weight: 700; background: transparent; border: 1px solid var(--line); border-radius: 99px; }
.date-chip.is-active { color: var(--card); background: var(--ink); border-color: var(--ink); }
.category-chip.is-active { color: var(--coral-dark); background: rgba(232, 93, 66, 0.09); border-color: rgba(232, 93, 66, 0.28); }
.list-toolbar { display: flex; align-items: end; justify-content: space-between; margin: 18px 2px 11px; }
.list-toolbar h2 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 600; }
.list-toolbar small { color: var(--muted); font-size: 10px; }

.topic-list { display: grid; gap: 12px; }
.topic-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 50px;
  gap: 10px;
  width: 100%;
  min-height: 166px;
  padding: 17px 14px 14px;
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 253, 247, 0.9);
  border: 1px solid rgba(23, 34, 31, 0.1);
  border-radius: 20px 20px 20px 5px;
  box-shadow: 0 7px 24px rgba(59, 43, 26, 0.055);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.topic-card::after { position: absolute; right: -26px; bottom: -36px; width: 88px; height: 88px; content: ""; background: radial-gradient(circle, rgba(45, 113, 97, 0.1), transparent 68%); }
.topic-card:active { transform: scale(0.985); }
.topic-card.is-selected { border-color: rgba(232, 93, 66, 0.52); box-shadow: 0 10px 28px rgba(184, 61, 40, 0.1); }
.topic-rank { padding-top: 2px; color: var(--coral); font-family: var(--display); font-size: 23px; line-height: 1; font-variant-numeric: tabular-nums; }
.topic-main { min-width: 0; }
.topic-eyebrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 700; }
.topic-eyebrow b { color: var(--jade); font-weight: 800; }
.exploration-tag, .selected-tag, .preference-tag { padding: 3px 6px; font-size: 9px; font-weight: 800; border-radius: 99px; }
.exploration-tag { color: #6d4e20; background: #f3e3bd; }
.selected-tag { color: var(--coral-dark); background: rgba(232, 93, 66, 0.1); }
.preference-tag { color: var(--jade); background: rgba(45, 113, 97, 0.1); }
.verification-badge { display: inline-flex; gap: 5px; align-items: center; width: max-content; padding: 3px 7px; color: #56615d; font-size: 9px; font-weight: 800; line-height: 1.2; background: rgba(23, 34, 31, 0.06); border: 1px solid rgba(23, 34, 31, 0.08); border-radius: 99px; }
.verification-badge > i { width: 5px; height: 5px; flex: 0 0 auto; background: currentColor; border-radius: 50%; }
.verification-badge.is-official { color: #216c59; background: rgba(45, 113, 97, 0.11); border-color: rgba(45, 113, 97, 0.18); }
.verification-badge.is-cross_checked { color: #387b6d; background: rgba(87, 151, 135, 0.1); border-color: rgba(87, 151, 135, 0.18); }
.verification-badge.is-trend_only { color: #b43f2b; background: rgba(232, 93, 66, 0.09); border-color: rgba(232, 93, 66, 0.16); }
.verification-badge.is-exchange_data { color: #2f6690; background: rgba(47, 102, 144, 0.1); border-color: rgba(47, 102, 144, 0.18); }
.verification-summary.is-exchange_data { border-color: rgba(47, 102, 144, 0.22); }
.verification-summary { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px; align-items: start; margin: 14px 0; padding: 11px 12px; color: var(--muted); background: rgba(23, 34, 31, 0.035); border-left: 2px solid #8b9691; border-radius: 0 10px 10px 0; }
.verification-summary.is-official, .verification-summary.is-cross_checked { border-left-color: var(--jade); }
.verification-summary.is-trend_only { border-left-color: var(--coral); }
.verification-summary p { margin: 0; font-size: 10px; line-height: 1.6; }
.topic-title { display: block; margin: 0 0 10px; font-family: var(--display); font-size: 19px; font-weight: 650; line-height: 1.36; letter-spacing: -0.02em; }
.topic-reason { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.topic-footer { display: flex; gap: 8px; align-items: center; margin-top: 11px; color: var(--muted); font-size: 10px; }
.topic-footer span + span::before { margin-right: 8px; content: "·"; }
.score-dial { --dial-color: var(--jade); display: grid; align-self: start; width: 48px; height: 48px; place-items: center; padding: 4px; background: conic-gradient(var(--dial-color) calc(var(--score) * 1%), rgba(23, 34, 31, 0.08) 0); border-radius: 50%; }
.score-dial span { display: grid; width: 40px; height: 40px; place-items: center; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; background: var(--card); border-radius: 50%; }
.empty-filter { padding: 38px 24px; color: var(--muted); text-align: center; background: rgba(255, 253, 247, 0.72); border: 1px dashed var(--line); border-radius: 18px; }

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: min(100%, 520px);
  margin-inline: auto;
  padding: 8px 18px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 247, 0.94);
  border-top: 1px solid rgba(23, 34, 31, 0.1);
  box-shadow: 0 -12px 30px rgba(59, 43, 26, 0.08);
  backdrop-filter: blur(18px);
}
.nav-item { display: grid; min-height: 54px; place-items: center; align-content: center; gap: 2px; color: #7b837f; background: transparent; border-radius: 14px; }
.nav-item > span { font-family: var(--display); font-size: 20px; line-height: 1; }
.nav-item small { font-size: 10px; font-weight: 700; }
.nav-item.is-active { color: var(--card); background: var(--ink); }

.topic-dialog { width: min(100%, 680px); max-width: none; max-height: none; margin: auto auto 0; padding: 0; overflow: hidden; color: var(--ink); background: var(--card); border: 0; border-radius: 26px 26px 0 0; box-shadow: 0 -24px 80px rgba(23, 34, 31, 0.24); }
.topic-dialog[open] { animation: sheet-in 240ms cubic-bezier(0.2, 0.75, 0.2, 1); }
.topic-dialog::backdrop { background: rgba(13, 22, 19, 0.52); backdrop-filter: blur(4px); }
.sheet { display: flex; flex-direction: column; max-height: 92dvh; }
.sheet-topbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 8px 16px 7px 20px; background: rgba(255, 253, 247, 0.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.sheet-handle { position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; content: ""; background: rgba(23, 34, 31, 0.18); border-radius: 99px; transform: translateX(-50%); }
.sheet-topbar small { margin-top: 8px; color: var(--coral-dark); font-size: 10px; font-weight: 800; letter-spacing: 0.08em; }
.sheet-close { display: grid; width: 44px; padding: 0; place-items: center; color: var(--ink); font-size: 24px; background: rgba(23, 34, 31, 0.06); border-radius: 50%; }
.sheet-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 24px 20px 30px; }
.sheet-category { margin: 0 0 8px; color: var(--jade); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; }
.sheet h2 { margin: 0 0 16px; font-family: var(--display); font-size: clamp(27px, 8vw, 40px); font-weight: 650; line-height: 1.16; letter-spacing: -0.035em; }
.signal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 24px; }
.signal-card { padding: 12px 10px; background: var(--paper); border-radius: 13px; }
.signal-card small, .signal-card strong { display: block; }
.signal-card small { margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.signal-card strong { font-family: var(--display); font-size: 18px; }
.detail-block { margin: 0 0 24px; }
.detail-block h3 { display: flex; gap: 8px; align-items: center; margin: 0 0 9px; font-size: 13px; }
.detail-block h3::before { width: 16px; height: 2px; content: ""; background: var(--coral); }
.detail-block p, .detail-block li { color: #3e4944; font-size: 14px; line-height: 1.78; }
.detail-block p { margin: 0; }
.angle-list { display: grid; gap: 8px; padding: 0; list-style: none; counter-reset: angle; }
.angle-list li { position: relative; padding: 12px 12px 12px 42px; background: rgba(45, 113, 97, 0.07); border-radius: 12px; counter-increment: angle; }
.angle-list li::before { position: absolute; top: 12px; left: 13px; content: "0" counter(angle); color: var(--jade); font-size: 10px; font-weight: 900; }
.source-list { display: grid; gap: 9px; }
.source-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; min-height: 50px; padding: 10px 12px; color: var(--ink); text-decoration: none; background: rgba(23, 34, 31, 0.035); border: 1px solid var(--line); border-radius: 12px; }
.source-link strong, .source-link small { display: block; }
.source-link strong { margin-bottom: 3px; font-size: 12px; }
.source-link small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.source-link > span:last-child { align-self: center; color: var(--coral); }
.risk-note { padding: 14px; background: #fff3e8; border-left: 3px solid var(--amber); border-radius: 0 12px 12px 0; }
.sheet-action { position: sticky; bottom: 0; z-index: 3; display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 253, 247, 0.96); border-top: 1px solid var(--line); backdrop-filter: blur(14px); }
.primary-button, .secondary-button { padding: 0 16px; font-weight: 800; border-radius: 14px; }
.primary-button { color: white; background: var(--coral); box-shadow: 0 9px 20px rgba(184, 61, 40, 0.2); }
.secondary-button { color: var(--ink); background: var(--paper-deep); }

.workspace-heading { margin: 8px 0 20px; }
.workspace-heading h1 { margin: 0 0 7px; font-family: var(--display); font-size: clamp(34px, 10vw, 50px); font-weight: 600; letter-spacing: -0.04em; }
.workspace-heading > span { color: var(--muted); font-size: 11px; }
.workspace-topic { position: relative; margin-bottom: 14px; padding: 19px; background: var(--ink); border-radius: 22px 22px 6px; box-shadow: var(--shadow); }
.workspace-topic > span { color: #b8c7c0; font-size: 9px; font-weight: 800; letter-spacing: 0.12em; }
.workspace-topic h2 { margin: 8px 0 12px; color: var(--card); font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.38; }
.text-link { min-height: 44px; padding: 0; color: #f0917d; font-size: 11px; font-weight: 800; background: transparent; border: 0; cursor: pointer; }
.content-section { margin-bottom: 14px; padding: 18px; background: rgba(255, 253, 247, 0.9); border: 1px solid rgba(23, 34, 31, 0.1); border-radius: 20px; box-shadow: 0 7px 24px rgba(59, 43, 26, 0.05); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.section-heading small { display: block; margin-bottom: 4px; color: var(--coral-dark); font-size: 8px; font-weight: 900; letter-spacing: 0.13em; }
.section-heading h2 { font-size: 21px; }
.copy-button { min-width: 54px; min-height: 44px; padding: 0 12px; color: var(--jade); font-size: 11px; font-weight: 800; background: rgba(45, 113, 97, 0.08); border: 1px solid rgba(45, 113, 97, 0.15); border-radius: 99px; cursor: pointer; }
.copy-button.is-light { position: absolute; right: 15px; bottom: 14px; color: var(--card); background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.25); }
.mini-segments { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
.mini-segments::-webkit-scrollbar { display: none; }
.title-mode-strip { margin-right: -4px; padding-right: 4px; overscroll-behavior-inline: contain; }
.choice-button { flex: 0 0 auto; padding: 0 13px; color: var(--muted); font-size: 11px; font-weight: 800; background: var(--paper); border: 1px solid transparent; border-radius: 99px; }
.choice-button.is-active { color: var(--card); background: var(--jade); border-color: var(--jade); }
.selected-title { margin: 16px 0 4px; font-family: var(--display); font-size: 23px; font-weight: 600; line-height: 1.48; }
.cover-card { position: relative; min-height: 205px; margin-bottom: 14px; padding: 24px 20px; overflow: hidden; color: white; background: linear-gradient(140deg, #d84c35 0%, #e96e50 52%, #ef9b72 100%); border-radius: 6px 24px 24px; box-shadow: 0 16px 36px rgba(184, 61, 40, 0.22); }
.cover-card::after { position: absolute; top: -45px; right: -35px; width: 145px; height: 145px; content: ""; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 50%; box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.05); }
.cover-card > span { font-size: 9px; font-weight: 900; letter-spacing: 0.16em; }
.cover-card strong { position: relative; z-index: 1; display: block; margin-top: 22px; font-family: var(--display); font-size: clamp(30px, 9vw, 44px); font-weight: 650; line-height: 1.1; letter-spacing: -0.04em; }
.cover-card > small { position: absolute; bottom: 18px; left: 20px; font-size: 8px; font-weight: 800; letter-spacing: 0.12em; opacity: 0.75; }
.content-section blockquote { margin: 0; padding: 2px 0 2px 15px; color: #34413b; font-family: var(--display); font-size: 18px; line-height: 1.75; border-left: 3px solid var(--coral); }
.route-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: route; }
.route-list li { position: relative; min-height: 52px; padding: 13px 12px 12px 49px; color: #36413c; font-size: 13px; line-height: 1.55; background: var(--paper); border-radius: 13px; counter-increment: route; }
.route-list li::before { position: absolute; top: 12px; left: 13px; display: grid; width: 27px; height: 27px; place-items: center; content: counter(route); color: white; font-family: var(--display); background: var(--ink); border-radius: 50%; }
.script-section { padding-top: 12px; }
.script-toolbar { position: sticky; top: 74px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -12px -10px 16px; padding: 10px; background: rgba(255, 253, 247, 0.94); border-bottom: 1px solid var(--line); border-radius: 16px 16px 0 0; backdrop-filter: blur(14px); }
.script-copy { margin: 0; color: #34413b; font-family: var(--display); font-size: 17px; line-height: 2; text-align: justify; }
.closing-line { margin-top: 22px; padding: 15px; color: var(--card); background: var(--ink); border-radius: 14px; }
.closing-line small, .closing-line strong { display: block; }
.closing-line small { margin-bottom: 6px; color: #abbab3; font-size: 9px; font-weight: 800; letter-spacing: 0.1em; }
.closing-line strong { font-family: var(--display); font-size: 17px; line-height: 1.55; }
.hashtag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.hashtag-list span { padding: 5px 8px; color: var(--jade); font-size: 10px; font-weight: 700; background: rgba(45, 113, 97, 0.08); border-radius: 99px; }
.compliance-card { background: #fff5e9; border-color: rgba(167, 109, 32, 0.2); }
.compliance-card p { margin: 0 0 12px; color: #574329; font-size: 13px; line-height: 1.75; }
.compliance-card > span { display: block; padding-top: 10px; color: #8a5e22; font-size: 10px; font-weight: 800; border-top: 1px solid rgba(167, 109, 32, 0.16); }
.feedback-panel { margin-top: 18px; padding: 17px; background: rgba(23, 34, 31, 0.96); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 22px; box-shadow: 0 16px 50px rgba(23, 34, 31, 0.24); }
.feedback-panel > div:first-child { margin-bottom: 12px; }
.feedback-panel > div:first-child small { color: #ef967f; font-size: 9px; font-weight: 900; letter-spacing: 0.11em; }
.feedback-panel h2 { margin: 4px 0 0; color: var(--card); font-family: var(--display); font-size: 20px; }
.adoption-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.feedback-panel .choice-button { min-width: 0; padding: 0 5px; color: #c9d2ce; font-size: 10px; background: rgba(255, 255, 255, 0.08); }
.feedback-panel .choice-button.is-active { color: var(--ink); background: #f5b9a8; border-color: #f5b9a8; }
.publish-toggle { display: grid; grid-template-columns: 38px minmax(0, 1fr); width: 100%; min-height: 58px; margin-top: 9px; padding: 9px 11px; color: var(--card); text-align: left; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; cursor: pointer; }
.publish-toggle > span { display: grid; grid-row: 1 / span 2; width: 31px; height: 31px; place-items: center; align-self: center; color: white; background: rgba(255, 255, 255, 0.12); border-radius: 50%; }
.publish-toggle strong, .publish-toggle small { display: block; }
.publish-toggle strong { align-self: end; font-size: 11px; }
.publish-toggle small { align-self: start; margin-top: 2px; color: #9eaca6; font-size: 9px; }
.publish-toggle.is-published { background: rgba(45, 113, 97, 0.42); border-color: rgba(119, 202, 180, 0.4); }
.publish-toggle.is-published > span { background: var(--jade); }

.review-heading { margin: 8px 0 22px; }
.review-heading h1 { margin: 0 0 12px; font-family: var(--display); font-size: clamp(34px, 10vw, 52px); font-weight: 600; line-height: 1.08; letter-spacing: -0.04em; }
.review-heading > span { display: block; max-width: 320px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.funnel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.funnel-card { min-width: 0; padding: 14px 11px; background: rgba(255, 253, 247, 0.9); border: 1px solid var(--line); border-radius: 16px; }
.funnel-card small, .funnel-card strong, .funnel-card span { display: block; }
.funnel-card small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 0.1em; }
.funnel-card strong { margin: 4px 0 2px; font-family: var(--display); font-size: 31px; font-weight: 600; }
.funnel-card span { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.funnel-card.is-accent { color: white; background: var(--coral); border-color: var(--coral); }
.funnel-card.is-accent small, .funnel-card.is-accent span { color: rgba(255, 255, 255, 0.75); }
.review-section { margin-bottom: 14px; padding: 18px; background: rgba(255, 253, 247, 0.9); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 7px 24px rgba(59, 43, 26, 0.05); }
.preference-list { display: grid; gap: 14px; }
.preference-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding-bottom: 10px; }
.preference-row strong, .preference-row small { display: block; }
.preference-row strong { margin-bottom: 4px; font-family: var(--display); font-size: 16px; }
.preference-row small { color: var(--muted); font-size: 9px; }
.preference-row > span { color: var(--jade); font-size: 13px; font-weight: 900; }
.preference-row i { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; overflow: hidden; background: rgba(23, 34, 31, 0.08); border-radius: 99px; }
.preference-row i::after { display: block; width: var(--preference); height: 100%; content: ""; background: var(--jade); border-radius: inherit; }
.weight-legend { display: flex; gap: 6px; margin-top: 17px; padding-top: 12px; border-top: 1px solid var(--line); }
.weight-legend span { padding: 5px 7px; color: var(--muted); font-size: 9px; font-weight: 800; background: var(--paper); border-radius: 99px; }
.next-week-card { color: var(--card); background: var(--ink); }
.next-week-card .section-heading small { color: #f39c86; }
.next-week-card .section-heading h2 { color: var(--card); }
.next-week-card > p { margin: 0 0 16px; color: #c5d0ca; font-size: 13px; line-height: 1.75; }
.exploration-policy { display: grid; grid-template-columns: auto 1fr; gap: 5px 11px; padding: 14px; background: rgba(255, 255, 255, 0.07); border-radius: 14px; }
.exploration-policy strong { color: #f3a18d; font-family: var(--display); font-size: 24px; }
.exploration-policy span { align-self: center; color: #d5ded9; font-size: 11px; }
.transparency-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.transparency-card strong { font-family: var(--display); font-size: 15px; }
.transparency-card p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.transparency-card .secondary-button { min-width: 88px; padding: 0 10px; font-size: 10px; }

.empty-state { display: grid; min-height: 58dvh; place-items: center; align-content: center; padding: 32px; text-align: center; }
.empty-state > p { margin: 0 0 10px; color: var(--coral-dark); font-size: 11px; font-weight: 800; letter-spacing: 0.13em; }
.empty-state h1 { margin-bottom: 12px; font-size: 30px; line-height: 1.2; }
.empty-state > span { max-width: 280px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.empty-state .primary-button { margin-top: 22px; }
.toast { position: fixed; bottom: calc(94px + env(safe-area-inset-bottom)); left: 50%; z-index: 100; max-width: calc(100vw - 36px); padding: 11px 16px; color: white; font-size: 12px; font-weight: 700; background: var(--ink); border-radius: 99px; box-shadow: var(--shadow); transform: translateX(-50%); }

@keyframes sheet-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes loading-spin { to { transform: rotate(360deg); } }

@media (min-width: 720px) {
  .app-header, .app-view { padding-right: 32px; padding-left: 32px; }
  .topic-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .view-heading h1 { max-width: 620px; }
  .bottom-nav { bottom: 18px; border: 1px solid var(--line); border-radius: 22px; }
  .topic-dialog { margin: auto; border-radius: 26px; }
}

@media (hover: hover) {
  .topic-card:hover { border-color: rgba(45, 113, 97, 0.32); box-shadow: 0 14px 36px rgba(59, 43, 26, 0.09); transform: translateY(-2px); }
  .source-link:hover { border-color: rgba(45, 113, 97, 0.38); }
}

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