:root {
  --ink: #0b3036;
  --ink-2: #174850;
  --paper: #f7f4ec;
  --paper-2: #eee8dc;
  --white: #fffdf8;
  --sea: #2bb6a3;
  --sea-soft: #d8f1eb;
  --coral: #e96455;
  --coral-soft: #f9ddd6;
  --sun: #f2b75e;
  --muted: #6d7d7a;
  --line: rgba(11, 48, 54, .14);
  --shadow: 0 18px 50px rgba(11, 48, 54, .12);
  --radius: 8px;
  --sidebar: 232px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(rgba(11,48,54,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,48,54,.025) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; letter-spacing: 0; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 3px solid rgba(43, 182, 163, .35);
  outline-offset: 2px;
}

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--sidebar);
  padding: 24px 16px;
  color: var(--white);
  background: var(--ink);
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,.08);
}

.brand {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  cursor: pointer;
  padding: 2px 0;
}
.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.35);
  background: var(--sea);
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  border-radius: 50%;
}
.brand b { display: block; font-family: Georgia, "Songti SC", serif; font-size: 20px; }
.brand small { display: block; margin-top: 2px; color: rgba(255,255,255,.58); font-size: 10px; text-transform: uppercase; }

.side-nav { display: grid; gap: 6px; margin-top: 46px; }
.nav-btn {
  position: relative;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}
.side-nav .nav-btn {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 6px;
  color: rgba(255,255,255,.66);
  font-size: 14px;
  font-weight: 600;
}
.side-nav .nav-btn:hover { background: rgba(255,255,255,.07); color: var(--white); }
.side-nav .nav-btn.active { color: var(--ink); background: var(--sea); }
.nav-btn svg { width: 19px; height: 19px; stroke-width: 2; }
.nav-btn em {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--coral);
  color: var(--white);
  font-size: 10px;
  font-style: normal;
}
.sidebar-foot { margin-top: auto; padding: 16px 8px 0; color: rgba(255,255,255,.45); }
.sidebar-foot small { display: block; margin-top: 9px; font-size: 10px; }
.offline-dot { font-size: 11px; color: rgba(255,255,255,.68); }
.offline-dot span { width: 7px; height: 7px; display: inline-block; margin-right: 7px; border-radius: 50%; background: var(--sea); box-shadow: 0 0 0 3px rgba(43,182,163,.16); }

.mobile-header, .bottom-nav { display: none; }
.main-content { margin-left: var(--sidebar); min-height: 100vh; }
.view { display: none; width: min(1180px, 100%); margin: 0 auto; padding: 42px 44px 70px; }
.view.active { display: block; animation: rise .3s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--coral); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, "Songti SC", serif; font-weight: 700; }
h1 { margin-bottom: 12px; font-size: 42px; line-height: 1.12; }
h2 { font-size: 26px; line-height: 1.2; }
h3 { font-size: 18px; line-height: 1.35; }
.muted { color: var(--muted); }

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .72fr);
  min-height: 340px;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-copy { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.hero-copy .eyebrow { color: var(--sun); }
.hero-copy h1 { max-width: 580px; margin: 16px 0 13px; font-size: 39px; }
.hero-copy > p { max-width: 560px; color: rgba(255,255,255,.67); line-height: 1.7; font-size: 14px; }
.hero-trip-line { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px; margin-top:17px; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.14); }
.hero-trip-line span { min-width:0; padding:10px 11px; background:rgba(11,48,54,.9); color:rgba(255,255,255,.58); font-size:9px; line-height:1.45; overflow-wrap:anywhere; }
.hero-trip-line b { display:block; margin-bottom:3px; color:var(--white); font-size:11px; }
.hero-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.hero-visual { position: relative; min-height: 340px; overflow: hidden; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-visual::after { content:""; position:absolute; inset:0; background: linear-gradient(90deg, var(--ink) 0, transparent 32%); }
.hero-stamp { position: absolute; z-index: 2; right: 20px; bottom: 19px; padding: 8px 10px; background: rgba(247,244,236,.9); color: var(--ink); font-size: 10px; font-weight: 800; text-transform: uppercase; }

.reserve-strip { display:flex; align-items:center; gap:9px; min-height:66px; padding:11px 0; border-bottom:1px solid var(--line); }
.reserve-strip-title { display:flex; align-items:center; gap:10px; margin-right:auto; }
.reserve-strip-title > svg { width:21px; color:var(--coral); }
.reserve-strip-title span, .reserve-strip-title b, .reserve-strip-title small { display:block; }
.reserve-strip-title b { font-size:12px; }
.reserve-strip-title small { margin-top:2px; color:var(--muted); font-size:9px; }
.reserve-pill { padding:7px 9px; background:var(--coral-soft); color:#8f3028; font-size:9px; font-weight:800; white-space:nowrap; }
.reserve-strip .icon-btn { flex:0 0 36px; width:36px; height:36px; }

.primary-btn, .secondary-btn, .ghost-btn, .icon-btn, .choice-btn, .rating-btn, .chip {
  border: 0;
  cursor: pointer;
  border-radius: 6px;
  transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}
.primary-btn, .secondary-btn, .ghost-btn {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 750;
}
.primary-btn { color: var(--ink); background: var(--sea); }
.primary-btn:hover, .secondary-btn:hover, .ghost-btn:hover { transform: translateY(-1px); }
.secondary-btn { color: var(--white); background: var(--coral); }
.ghost-btn { color: inherit; background: transparent; border: 1px solid currentColor; }
.hero-copy .ghost-btn { border-color: rgba(255,255,255,.32); }
.primary-btn svg, .secondary-btn svg, .ghost-btn svg { width: 17px; height: 17px; }
.icon-btn {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  background: var(--paper-2);
}
.icon-btn:hover { background: var(--sea-soft); }
.icon-btn svg { width: 19px; height: 19px; }

.progress-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin: 22px 0 36px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.progress-ring {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--coral) var(--progress), var(--paper-2) 0);
  position: relative;
  font-size: 12px;
  font-weight: 800;
}
.progress-ring::before { content:""; position:absolute; inset: 6px; background: var(--paper); border-radius:50%; }
.progress-ring span { position:relative; }
.progress-copy b, .progress-copy small { display:block; }
.progress-copy b { font-size: 14px; }
.progress-copy small { color: var(--muted); margin-top:4px; font-size: 11px; }
.streak { display:flex; gap:7px; align-items:center; font-size:12px; font-weight:700; }
.streak svg { color: var(--coral); width:17px; }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 16px; }
.section-head h2 { margin-bottom: 4px; }
.section-head p { margin-bottom: 0; font-size: 12px; color: var(--muted); }
.scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.scene-card {
  min-height: 142px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,253,248,.72);
  cursor: pointer;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.scene-card:hover { border-color: var(--sea); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(11,48,54,.08); }
.scene-card .scene-icon { width: 34px; height: 34px; display:grid; place-items:center; background:var(--sea-soft); border-radius:50%; }
.scene-card:nth-child(3n+2) .scene-icon { background: var(--coral-soft); }
.scene-card:nth-child(3n) .scene-icon { background: #f8e9c8; }
.scene-icon svg { width:17px; height:17px; }
.scene-card h3 { margin: 16px 0 5px; }
.scene-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.scene-card .count { position:absolute; top:18px; right:17px; color:var(--muted); font-size:10px; }

.page-head { display:flex; justify-content:space-between; align-items:flex-start; gap:24px; margin-bottom: 26px; }
.page-head h1 { font-size: 34px; margin: 8px 0; }
.page-head p { color:var(--muted); font-size:13px; max-width:680px; line-height:1.6; }
.page-tools { display:flex; gap:8px; flex-shrink:0; }
.scene-chips { display:flex; gap:8px; overflow-x:auto; padding:2px 2px 12px; scrollbar-width:none; }
.scene-chips::-webkit-scrollbar { display:none; }
.chip { min-height:34px; padding:0 13px; flex:0 0 auto; border:1px solid var(--line); background:transparent; font-size:11px; font-weight:700; }
.chip.active { background:var(--ink); color:var(--white); border-color:var(--ink); }

.learn-mode-tabs { width:min(620px,100%); display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:0 0 18px; }
.learn-mode-tabs button { min-width:0; min-height:58px; padding:10px 14px; display:flex; align-items:center; gap:11px; text-align:left; border:1px solid var(--line); border-radius:6px; color:var(--ink); background:var(--white); cursor:pointer; }
.learn-mode-tabs button.active { color:var(--white); background:var(--ink); border-color:var(--ink); }
.learn-mode-tabs svg { width:19px; flex:0 0 19px; color:var(--coral); }
.learn-mode-tabs button.active svg { color:var(--sea); }
.learn-mode-tabs span, .learn-mode-tabs b, .learn-mode-tabs small { display:block; min-width:0; }
.learn-mode-tabs b { font-size:12px; }
.learn-mode-tabs small { margin-top:3px; color:var(--muted); font-size:9px; }
.learn-mode-tabs button.active small { color:rgba(255,255,255,.55); }

.audio-speed-pair { display:flex; gap:6px; align-items:center; }
.audio-speed-pair button { min-height:40px; padding:0 12px; display:inline-flex; align-items:center; justify-content:center; gap:6px; border:1px solid var(--line); border-radius:6px; color:var(--muted); background:var(--paper-2); font-size:10px; font-weight:800; }
.audio-speed-pair button.active { color:var(--ink); background:var(--sea-soft); border-color:rgba(43,182,163,.4); cursor:pointer; }
.audio-speed-pair button:disabled { opacity:.58; cursor:not-allowed; }
.audio-speed-pair svg { width:15px; }

.word-page-head { align-items:center; }
.word-scene-progress { min-width:100px; text-align:right; }
.word-scene-progress b { display:block; font-family:Georgia,"Songti SC",serif; color:var(--coral); font-size:26px; }
.word-scene-progress span { color:var(--muted); font-size:9px; }
.word-layout { display:grid; grid-template-columns:minmax(0,1fr) 248px; gap:18px; margin-top:12px; }
.word-card { overflow:hidden; border:1px solid var(--line); border-radius:var(--radius); background:var(--white); box-shadow:var(--shadow); }
.word-focus { min-height:225px; padding:36px 30px 28px; display:flex; flex-direction:column; justify-content:center; border-bottom:1px solid var(--line); }
.word-term { max-width:760px; font-family:Georgia,"Songti SC",serif; font-size:42px; line-height:1.16; overflow-wrap:anywhere; }
.word-sound { display:flex; align-items:center; gap:7px; margin-top:13px; color:var(--coral); font-size:12px; font-weight:800; }
.word-sound svg { width:16px; }
.word-meaning { margin-top:14px; color:var(--ink-2); font-size:17px; font-weight:700; line-height:1.5; }
.word-hook { padding:17px 30px; display:grid; grid-template-columns:76px minmax(0,1fr); gap:14px; align-items:start; border-bottom:1px solid var(--line); background:#fff8ed; }
.word-hook span { color:var(--coral); font-size:9px; font-weight:900; }
.word-hook p { margin:0; color:var(--ink-2); font-size:11px; line-height:1.6; }
.word-context { margin:22px 30px; padding:20px; background:var(--ink); color:var(--white); }
.word-context .block-label { color:var(--sun); }
.word-context .block-label small { color:rgba(255,255,255,.48); font-size:9px; }
.word-example-en { margin:0; font-family:Georgia,"Songti SC",serif; font-size:21px; line-height:1.45; overflow-wrap:anywhere; }
.word-example-zh { margin:8px 0 16px; color:rgba(255,255,255,.58); font-size:11px; line-height:1.55; }
.word-context .audio-speed-pair button { border-color:rgba(255,255,255,.18); background:rgba(255,255,255,.07); color:rgba(255,255,255,.42); }
.word-context .audio-speed-pair button.active { color:var(--ink); background:var(--sea); border-color:var(--sea); }
.word-practice { padding-top:2px; }
.word-aside .ghost-btn { width:100%; margin-top:15px; }

.lesson-layout { display:grid; grid-template-columns:minmax(0, 1fr) 248px; gap:18px; margin-top:12px; }
.lesson-card { background:var(--white); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
.lesson-top { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:17px 22px; border-bottom:1px solid var(--line); }
.lesson-number { font-size:10px; font-weight:800; color:var(--coral); }
.level-dots { display:flex; gap:5px; }
.level-dots span { width:7px; height:7px; border-radius:50%; background:var(--paper-2); }
.level-dots span.on { background:var(--sea); }
.phrase-block { padding:28px 28px 22px; }
.block-label { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; color:var(--muted); font-size:10px; font-weight:800; text-transform:uppercase; }
.speak-mini { border:0; background:transparent; color:var(--coral); cursor:pointer; display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:800; }
.speak-mini svg { width:16px; height:16px; }
.english-main { font-family:Georgia, "Songti SC", serif; font-size:29px; line-height:1.34; margin-bottom:12px; overflow-wrap:anywhere; }
.chinese-main { color:var(--muted); font-size:14px; line-height:1.6; }
.reply-block { margin:0 28px 24px; padding:20px; background:var(--ink); color:var(--white); border-radius:6px; }
.reply-block .block-label { color:var(--sun); }
.english-reply { font-family:Georgia, "Songti SC", serif; font-size:21px; line-height:1.45; margin-bottom:9px; overflow-wrap:anywhere; }
.chinese-reply { color:rgba(255,255,255,.62); font-size:12px; line-height:1.55; }
.memory-tip { margin:0 28px 22px; padding:13px 0 0; border-top:1px dashed var(--line); color:var(--muted); font-size:12px; line-height:1.6; }
.memory-tip b { color:var(--ink); }
.practice-panel { margin:0 28px 24px; min-height:54px; display:flex; align-items:center; gap:10px; }
.practice-panel .primary-btn { flex-shrink:0; }
.practice-result { font-size:12px; color:var(--muted); line-height:1.45; }
.practice-result b { display:block; color:var(--ink); }
.rating-row { display:grid; grid-template-columns:1fr 1fr; gap:1px; background:var(--line); border-top:1px solid var(--line); }
.rating-btn { min-height:54px; background:var(--white); font-size:12px; font-weight:800; }
.rating-btn:hover { background:var(--sea-soft); }
.rating-btn.hard:hover { background:var(--coral-soft); }

.lesson-aside { display:flex; flex-direction:column; gap:12px; }
.aside-panel { padding:18px; border:1px solid var(--line); border-radius:var(--radius); background:rgba(255,253,248,.65); }
.aside-panel h3 { margin-bottom:8px; font-size:15px; }
.aside-panel p { margin-bottom:0; font-size:11px; color:var(--muted); line-height:1.6; }
.key-list { display:flex; flex-wrap:wrap; gap:6px; margin-top:14px; }
.key-list span { padding:6px 8px; background:var(--sea-soft); border-radius:4px; font-size:10px; font-weight:700; }
.stepper { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:auto; }
.stepper .icon-btn { background:var(--white); border:1px solid var(--line); }
.stepper span { font-size:11px; color:var(--muted); }

.listen-stage { max-width:820px; margin:12px auto 0; text-align:center; }
.sound-orbit { width:118px; height:118px; margin:28px auto 20px; border-radius:50%; background:var(--ink); color:var(--white); display:grid; place-items:center; position:relative; cursor:pointer; border:0; }
.sound-orbit::before, .sound-orbit::after { content:""; position:absolute; border:1px solid rgba(43,182,163,.45); border-radius:50%; inset:-12px; }
.sound-orbit::after { inset:-24px; border-color:rgba(43,182,163,.2); }
.sound-orbit.playing { animation:pulse 1.1s ease infinite; }
@keyframes pulse { 50% { box-shadow:0 0 0 13px rgba(43,182,163,.12); } }
.sound-orbit svg { width:32px; height:32px; }
.listen-stage h2 { margin-bottom:5px; }
.listen-stage > p { color:var(--muted); font-size:12px; }
.speed-control { display:inline-flex; padding:3px; background:var(--paper-2); border-radius:6px; margin:8px 0 22px; }
.speed-control button { width:62px; height:30px; border:0; background:transparent; border-radius:4px; cursor:pointer; font-size:10px; font-weight:800; }
.speed-control button.active { background:var(--white); box-shadow:0 2px 8px rgba(11,48,54,.1); }
.speed-control button:disabled { color:#9aa4a2; cursor:not-allowed; }
.speed-control.two-speed button { width:94px; }
.choice-list { display:grid; gap:9px; text-align:left; }
.choice-btn { min-height:58px; padding:12px 16px; border:1px solid var(--line); background:var(--white); display:flex; align-items:center; gap:13px; text-align:left; font-size:13px; line-height:1.5; }
.choice-btn .letter { width:28px; height:28px; border-radius:50%; display:grid; place-items:center; background:var(--paper-2); font-size:10px; font-weight:800; flex:0 0 auto; }
.choice-btn:hover { border-color:var(--sea); }
.choice-btn.correct { border-color:var(--sea); background:var(--sea-soft); }
.choice-btn.wrong { border-color:var(--coral); background:var(--coral-soft); }
.choice-btn:disabled { cursor:default; color:inherit; }
.listen-reveal { margin-top:16px; padding:20px; background:var(--ink); color:var(--white); text-align:left; border-radius:var(--radius); }
.listen-reveal b { display:block; font-family:Georgia,"Songti SC",serif; font-size:19px; line-height:1.5; }
.listen-reveal p { margin:7px 0 15px; color:rgba(255,255,255,.63); font-size:12px; }

.rescue-bar { display:grid; grid-template-columns:1fr auto; gap:10px; margin:12px 0 16px; }
.search-box { min-height:50px; display:flex; align-items:center; gap:10px; padding:0 15px; background:var(--white); border:1px solid var(--line); border-radius:var(--radius); }
.search-box svg { width:18px; color:var(--muted); flex-shrink:0; }
.search-box input { width:100%; min-width:0; border:0; outline:0; background:transparent; color:var(--ink); font-size:14px; }
.search-box input::placeholder { color:#93a09e; }
.urgent-strip { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:18px 0 28px; }
.urgent-strip button { min-height:62px; padding:10px; border:0; border-radius:6px; cursor:pointer; background:var(--coral); color:var(--white); font-weight:800; font-size:12px; }
.urgent-strip button:nth-child(2) { background:var(--ink); }
.urgent-strip button:nth-child(3) { background:var(--sun); color:var(--ink); }
.rescue-list { display:grid; gap:8px; }
.rescue-item { display:grid; grid-template-columns:1fr auto; gap:16px; align-items:center; padding:16px 17px; border:1px solid var(--line); border-radius:var(--radius); background:rgba(255,253,248,.75); }
.rescue-item h3 { margin:0 0 6px; font-size:16px; overflow-wrap:anywhere; }
.rescue-item p { margin:0; color:var(--muted); font-size:11px; }
.rescue-actions { display:flex; gap:6px; }
.rescue-actions .icon-btn { width:38px; height:38px; background:var(--paper-2); }
.rescue-actions .show-btn { width:auto; padding:0 11px; color:var(--white); background:var(--ink); display:flex; gap:6px; }
.rescue-actions .show-btn span { font-size:10px; font-weight:800; }
.empty-state { padding:60px 20px; text-align:center; color:var(--muted); }
.empty-state svg { width:30px; margin-bottom:12px; }

.prep-layout { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr); gap:26px; }
.day-list { border-top:1px solid var(--line); }
.day-row { display:grid; grid-template-columns:58px 1fr auto; gap:16px; align-items:center; padding:16px 0; border-bottom:1px solid var(--line); }
.day-number { width:44px; height:44px; display:grid; place-items:center; border-radius:50%; background:var(--ink); color:var(--white); font-family:Georgia,serif; font-weight:700; font-size:15px; }
.day-row.current .day-number { background:var(--coral); }
.day-row h3 { margin:0 0 3px; font-size:15px; }
.day-row p { margin:0; color:var(--muted); font-size:11px; }
.day-time { font-size:10px; color:var(--muted); }
.prep-aside { display:flex; flex-direction:column; gap:12px; }
.prep-panel { padding:20px; background:var(--white); border:1px solid var(--line); border-radius:var(--radius); }
.prep-panel.official { background:var(--ink); color:var(--white); }
.prep-panel h3 { margin-bottom:8px; }
.prep-panel p { color:var(--muted); font-size:11px; line-height:1.6; }
.prep-panel.official p { color:rgba(255,255,255,.62); }
.prep-panel .primary-btn, .prep-panel .ghost-btn { width:100%; margin-top:8px; }
.source-list { display:grid; gap:0; }
.source-link { display:block; padding:12px 0; border-bottom:1px solid var(--line); text-decoration:none; }
.source-link:last-child { border-bottom:0; }
.source-link b { display:block; font-size:11px; }
.source-link span { display:block; margin-top:4px; color:var(--muted); font-size:10px; line-height:1.45; }

.trip-page-head { margin-bottom:20px; }
.trip-page-head p { max-width:780px; }
.trip-overview { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border:1px solid var(--line); background:var(--white); }
.trip-fact { min-width:0; min-height:104px; padding:17px; border-right:1px solid var(--line); display:flex; flex-direction:column; justify-content:center; }
.trip-fact:last-child { border-right:0; }
.trip-fact.accent { background:var(--coral-soft); }
.trip-fact span { color:var(--coral); font-size:9px; font-weight:900; text-transform:uppercase; }
.trip-fact b { margin:8px 0 5px; font-size:12px; line-height:1.45; overflow-wrap:anywhere; }
.trip-fact small { color:var(--muted); font-size:9px; line-height:1.45; }

.reservation-desk { margin:22px 0 42px; padding:24px; background:var(--ink); color:var(--white); border-left:5px solid var(--sea); }
.reservation-head { display:flex; justify-content:space-between; align-items:flex-start; gap:28px; }
.section-kicker { display:block; margin-bottom:6px; color:var(--sun); font-size:9px; font-weight:900; }
.reservation-head h2 { margin-bottom:7px; font-size:23px; }
.reservation-head p { margin:0; color:rgba(255,255,255,.58); font-size:11px; line-height:1.6; }
.reservation-score { min-width:72px; text-align:right; }
.reservation-score b { display:block; font-family:Georgia,serif; color:var(--sun); font-size:27px; }
.reservation-score span { color:rgba(255,255,255,.55); font-size:9px; }
.reservation-checks { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:19px 0 15px; }
.reservation-check { min-width:0; min-height:62px; padding:10px 11px; display:flex; align-items:center; gap:9px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12); cursor:pointer; }
.reservation-check input { width:17px; height:17px; margin:0; accent-color:var(--sea); flex:0 0 auto; }
.reservation-check > span { min-width:0; }
.reservation-check b, .reservation-check small { display:block; overflow-wrap:anywhere; }
.reservation-check b { font-size:11px; }
.reservation-check small { margin-top:3px; color:rgba(255,255,255,.48); font-size:8px; line-height:1.4; }
.reservation-check > svg { width:17px; margin-left:auto; color:transparent; flex:0 0 auto; }
.reservation-check.done { background:rgba(43,182,163,.18); border-color:rgba(43,182,163,.45); }
.reservation-check.done > svg { color:var(--sea); }
.reservation-desk > .primary-btn { min-height:40px; }

.journey-section, .benefit-section, .dining-section, .paid-section, .warning-section { margin-top:44px; }
.journey-layout { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr); gap:30px; align-items:start; }
.trip-timeline { position:relative; }
.trip-timeline::before { content:""; position:absolute; left:19px; top:20px; bottom:22px; width:1px; background:var(--line); }
.timeline-item { position:relative; display:grid; grid-template-columns:40px minmax(0,1fr); gap:15px; padding:0 0 22px; }
.timeline-marker { position:relative; z-index:1; width:40px; height:40px; display:grid; place-items:center; background:var(--paper); }
.timeline-marker span { width:28px; height:28px; display:grid; place-items:center; border-radius:50%; background:var(--ink); color:var(--white); font-family:Georgia,serif; font-size:11px; }
.timeline-body { min-width:0; padding-bottom:2px; border-bottom:1px solid var(--line); }
.timeline-meta { min-height:23px; display:flex; align-items:center; gap:8px; color:var(--muted); font-size:9px; }
.timeline-meta b { color:var(--coral); font-size:10px; }
.timeline-meta span { padding:3px 6px; background:var(--sea-soft); color:var(--ink); font-weight:800; }
.timeline-meta time { margin-left:auto; text-align:right; }
.timeline-body h3 { margin:6px 0 5px; font-size:15px; }
.timeline-body p { margin:0; color:var(--muted); font-size:10px; line-height:1.6; }
.timeline-action { display:flex; gap:6px; align-items:flex-start; margin-top:8px; color:var(--ink-2); font-size:9px; line-height:1.5; font-weight:700; }
.timeline-action svg { width:13px; flex:0 0 13px; color:var(--coral); }
.resort-visuals { display:grid; gap:12px; }
.resort-figure { margin:0; overflow:hidden; border:1px solid var(--line); background:var(--white); }
.resort-figure img { width:100%; display:block; object-fit:cover; }
.resort-figure.primary img { aspect-ratio:4/3; }
.resort-figure.map img { aspect-ratio:16/10; object-position:center; }
.resort-figure figcaption { padding:13px 14px; }
.resort-figure figcaption b, .resort-figure figcaption span { display:block; }
.resort-figure figcaption b { font-size:11px; }
.resort-figure figcaption span { margin-top:4px; color:var(--muted); font-size:9px; line-height:1.45; }

.benefit-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }
.benefit-card { position:relative; min-width:0; min-height:205px; padding:17px; border:1px solid var(--line); background:rgba(255,253,248,.78); }
.benefit-icon { width:34px; height:34px; display:grid; place-items:center; border-radius:50%; background:var(--sea-soft); }
.benefit-icon svg { width:17px; }
.benefit-status { position:absolute; top:17px; right:14px; color:var(--coral); font-size:8px; font-weight:900; }
.benefit-card h3 { margin:15px 0 5px; font-size:15px; }
.benefit-card > b { display:block; color:var(--ink-2); font-size:9px; line-height:1.4; }
.benefit-card p { margin:12px 0 0; color:var(--muted); font-size:9px; line-height:1.6; }

.dining-table { border-top:1px solid var(--ink); }
.dining-row { min-height:58px; display:grid; grid-template-columns:70px minmax(190px,.8fr) 120px minmax(210px,1.2fr); gap:15px; align-items:center; border-bottom:1px solid var(--line); }
.meal-name { color:var(--coral); font-size:9px; font-weight:900; }
.dining-row b { font-size:11px; overflow-wrap:anywhere; }
.dining-row time { color:var(--ink-2); font-family:Georgia,serif; font-size:11px; }
.dining-row p { margin:0; color:var(--muted); font-size:9px; line-height:1.5; }

.paid-list { border-top:1px solid var(--ink); }
.paid-row { min-height:76px; display:grid; grid-template-columns:38px minmax(0,1fr) minmax(220px,.7fr); gap:16px; align-items:center; border-bottom:1px solid var(--line); }
.paid-row > span { width:34px; height:34px; display:grid; place-items:center; background:var(--coral-soft); }
.paid-row svg { width:17px; }
.paid-row h3 { margin:0 0 4px; font-size:14px; }
.paid-row p { margin:0; color:var(--muted); font-size:9px; line-height:1.5; }
.paid-row small { color:var(--ink-2); font-size:9px; line-height:1.55; }

.warning-list { display:grid; grid-template-columns:1fr 1fr; gap:1px; background:var(--line); border:1px solid var(--line); }
.warning-list article { min-width:0; padding:18px; display:grid; grid-template-columns:30px minmax(0,1fr); gap:11px; background:#fff8ed; }
.warning-list article > span { color:var(--coral); font-family:Georgia,serif; font-size:13px; }
.warning-list h3 { margin:0 0 6px; font-size:13px; }
.warning-list p { margin:0; color:var(--muted); font-size:9px; line-height:1.6; }

.prep-tools { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:46px; padding-top:28px; border-top:1px solid var(--line); }
.prep-tools .prep-panel { min-width:0; }
.prep-tools .sources { grid-column:1/-1; }
.prep-tools .source-list { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0 18px; }

.modal { position:fixed; inset:0; z-index:100; display:none; place-items:center; padding:18px; background:rgba(4,24,27,.86); }
.modal.open { display:grid; animation:fade .2s ease both; }
@keyframes fade { from { opacity:0; } to { opacity:1; } }
.show-card { position:relative; width:min(880px,100%); min-height:min(520px,85vh); padding:70px 54px 48px; background:var(--white); display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; border-radius:var(--radius); }
.modal-close { position:absolute; right:16px; top:16px; }
.show-label { color:var(--coral); font-size:11px; font-weight:900; }
.show-card p { max-width:780px; margin:24px 0 18px; font-family:Georgia,serif; font-size:48px; line-height:1.25; overflow-wrap:anywhere; }
.show-card > div { color:var(--muted); font-size:15px; margin-bottom:28px; }
.toast { position:fixed; z-index:150; left:50%; bottom:28px; transform:translate(-50%,18px); padding:10px 14px; border-radius:6px; background:var(--ink); color:var(--white); opacity:0; pointer-events:none; transition:.2s ease; font-size:12px; box-shadow:var(--shadow); }
.toast.show { opacity:1; transform:translate(-50%,0); }

@media (max-width: 980px) {
  :root { --sidebar: 202px; }
  .view { padding:34px 28px 60px; }
  .home-hero { grid-template-columns:1fr 280px; }
  .hero-copy { padding:30px; }
  .hero-copy h1 { font-size:33px; }
  .scene-grid { grid-template-columns:repeat(2,1fr); }
  .lesson-layout { grid-template-columns:1fr; }
  .lesson-aside { display:grid; grid-template-columns:1fr auto; }
  .word-layout { grid-template-columns:1fr; }
  .word-aside { display:grid; grid-template-columns:1fr auto; }
  .stepper { min-width:220px; margin-top:0; }
  .prep-layout { grid-template-columns:1fr; }
  .prep-aside { display:grid; grid-template-columns:1fr 1fr; }
  .trip-overview { grid-template-columns:1fr 1fr; }
  .trip-fact:nth-child(2) { border-right:0; }
  .trip-fact:nth-child(-n+2) { border-bottom:1px solid var(--line); }
  .reservation-checks { grid-template-columns:1fr 1fr; }
  .journey-layout { grid-template-columns:1fr; }
  .resort-visuals { grid-template-columns:1fr 1fr; }
  .benefit-grid { grid-template-columns:1fr 1fr; }
  .prep-tools .source-list { grid-template-columns:1fr 1fr; }
}

@media (max-width: 720px) {
  body { background-size:22px 22px; }
  .sidebar { display:none; }
  .main-content { margin-left:0; }
  .mobile-header {
    position:fixed;
    inset:0 0 auto;
    z-index:30;
    height:62px;
    padding:0 15px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:rgba(247,244,236,.94);
    border-bottom:1px solid var(--line);
    backdrop-filter:blur(14px);
  }
  .brand.compact { width:auto; color:var(--ink); }
  .brand.compact .brand-mark { width:34px; height:34px; flex-basis:34px; font-size:13px; color:var(--white); background:var(--ink); }
  .brand.compact b { font-size:18px; }
  .mobile-header .icon-btn { width:38px; height:38px; color:var(--white); background:var(--coral); }
  .bottom-nav {
    position:fixed;
    z-index:35;
    inset:auto 0 0;
    height:calc(62px + env(safe-area-inset-bottom));
    padding:6px 7px env(safe-area-inset-bottom);
    display:grid;
    grid-template-columns:repeat(5,1fr);
    background:rgba(255,253,248,.97);
    border-top:1px solid var(--line);
    backdrop-filter:blur(14px);
  }
  .bottom-nav .nav-btn { min-width:0; flex-direction:column; justify-content:center; gap:3px; color:var(--muted); font-size:9px; font-weight:700; }
  .bottom-nav .nav-btn svg { width:18px; height:18px; }
  .bottom-nav .nav-btn.active { color:var(--ink); }
  .bottom-nav .rescue-nav { width:44px; height:44px; justify-self:center; align-self:center; border-radius:50%; background:var(--coral); color:var(--white); box-shadow:0 6px 18px rgba(233,100,85,.26); }
  .bottom-nav .rescue-nav span { display:none; }
  .view { padding:82px 15px 96px; }
  h1 { font-size:32px; }
  .home-hero { display:block; min-height:0; }
  .hero-copy { min-height:310px; padding:28px 23px; position:relative; z-index:2; }
  .hero-copy h1 { font-size:31px; }
  .hero-copy > p { font-size:13px; }
  .hero-trip-line { margin-top:14px; }
  .hero-trip-line span { padding:8px; font-size:8px; }
  .hero-trip-line b { font-size:9px; }
  .hero-visual { height:170px; min-height:0; }
  .hero-visual img { object-position:center 45%; }
  .hero-visual::after { background:linear-gradient(180deg,var(--ink),transparent 38%); }
  .progress-strip { gap:12px; margin-bottom:28px; }
  .reserve-strip { overflow-x:auto; scrollbar-width:none; }
  .reserve-strip::-webkit-scrollbar { display:none; }
  .reserve-strip-title { min-width:154px; }
  .reserve-strip .icon-btn { display:none; }
  .progress-ring { width:52px; height:52px; }
  .scene-grid { grid-template-columns:1fr 1fr; gap:8px; }
  .scene-card { min-height:134px; padding:14px; }
  .scene-card h3 { font-size:15px; margin-top:14px; }
  .scene-card p { font-size:10px; }
  .scene-card .count { top:14px; right:13px; }
  .section-head { align-items:start; }
  .section-head h2 { font-size:23px; }
  .page-head { display:block; margin-bottom:18px; }
  .page-head h1 { font-size:29px; }
  .page-tools { margin-top:14px; }
  .word-scene-progress { margin-top:12px; text-align:left; }
  .learn-mode-tabs { width:100%; }
  .learn-mode-tabs button { min-height:54px; padding:9px 11px; gap:8px; }
  .lesson-layout { margin-top:5px; }
  .word-layout { margin-top:5px; }
  .word-focus { min-height:190px; padding:28px 20px 24px; }
  .word-term { font-size:34px; }
  .word-meaning { font-size:15px; }
  .word-hook { padding:15px 20px; grid-template-columns:68px minmax(0,1fr); gap:9px; }
  .word-context { margin:18px 19px; padding:17px; }
  .word-example-en { font-size:18px; }
  .word-practice { padding-top:0; }
  .lesson-top { padding:14px 17px; }
  .phrase-block { padding:22px 19px 18px; }
  .english-main { font-size:24px; }
  .reply-block { margin:0 19px 18px; padding:17px; }
  .english-reply { font-size:18px; }
  .memory-tip { margin:0 19px 18px; }
  .practice-panel { margin:0 19px 20px; display:block; }
  .practice-panel .primary-btn { width:100%; }
  .practice-result { margin-top:10px; }
  .lesson-aside { display:flex; }
  .word-aside { display:flex; }
  .stepper { min-width:0; }
  .listen-stage { margin-top:0; }
  .sound-orbit { width:94px; height:94px; margin-top:20px; }
  .choice-btn { min-height:62px; }
  .rescue-bar { grid-template-columns:1fr; }
  .rescue-bar .secondary-btn { display:none; }
  .urgent-strip { grid-template-columns:1fr; gap:7px; }
  .urgent-strip button { min-height:48px; }
  .rescue-item { grid-template-columns:1fr; gap:12px; }
  .rescue-actions .icon-btn { flex:1; }
  .rescue-actions .show-btn { flex:1.4; justify-content:center; }
  .prep-aside { display:flex; }
  .day-row { grid-template-columns:50px 1fr; gap:10px; }
  .day-time { display:none; }
  .trip-overview { grid-template-columns:1fr 1fr; }
  .trip-fact { min-height:96px; padding:13px; }
  .trip-fact b { font-size:10px; }
  .reservation-desk { margin:17px -15px 36px; padding:21px 15px; border-left:0; border-top:4px solid var(--sea); }
  .reservation-head h2 { font-size:21px; }
  .reservation-checks { grid-template-columns:1fr 1fr; }
  .reservation-check { padding:9px; }
  .journey-section, .benefit-section, .dining-section, .paid-section, .warning-section { margin-top:38px; }
  .journey-layout { gap:22px; }
  .timeline-meta { flex-wrap:wrap; }
  .timeline-meta time { width:100%; margin-left:0; text-align:left; }
  .resort-visuals { grid-template-columns:1fr; }
  .benefit-grid { grid-template-columns:1fr 1fr; gap:7px; }
  .benefit-card { min-height:218px; padding:14px; }
  .benefit-status { top:15px; right:11px; }
  .dining-row { grid-template-columns:66px minmax(0,1fr); gap:5px 11px; padding:11px 0; }
  .dining-row b, .dining-row time, .dining-row p { grid-column:2; }
  .dining-row p { margin-top:2px; }
  .paid-row { grid-template-columns:34px minmax(0,1fr); gap:12px; padding:13px 0; }
  .paid-row small { grid-column:2; }
  .warning-list { grid-template-columns:1fr; }
  .prep-tools { grid-template-columns:1fr; }
  .prep-tools .sources { grid-column:auto; }
  .prep-tools .source-list { grid-template-columns:1fr; }
  .show-card { min-height:76vh; padding:64px 20px 36px; }
  .show-card p { font-size:34px; }
  .show-card > div { font-size:13px; }
  .toast { bottom:82px; max-width:calc(100% - 30px); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
}

@media (max-width: 380px) {
  .view { padding-left:11px; padding-right:11px; }
  .hero-copy { min-height:0; padding:22px 18px; }
  .hero-copy h1 { font-size:28px; }
  .hero-copy > p { display:none; }
  .hero-actions .primary-btn { width:100%; }
  .hero-actions .ghost-btn { display:none; }
  .hero-trip-line { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .hero-trip-line span { padding:6px; }
  .hero-trip-line b { font-size:8px; }
  .hero-visual { height:122px; }
  .scene-grid { grid-template-columns:1fr; }
  .scene-card { min-height:116px; }
  .english-main { font-size:22px; }
  .learn-mode-tabs small { display:none; }
  .learn-mode-tabs button { min-height:46px; }
  .word-term { font-size:30px; }
  .word-hook { grid-template-columns:1fr; }
  .reservation-desk { margin-left:-11px; margin-right:-11px; padding-left:11px; padding-right:11px; }
  .reservation-checks { grid-template-columns:1fr; }
  .benefit-grid { grid-template-columns:1fr; }
  .benefit-card { min-height:0; }
  .trip-fact { min-height:102px; padding:11px; }
  .show-card p { font-size:29px; }
}

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