:root {
  --ink: #17284f;
  --ink-2: #455778;
  --paper: #fffafd;
  --paper-2: #fff0f7;
  --white: #ffffff;
  --sea: #27c5c8;
  --sea-soft: #e7fafa;
  --coral: #ff5f9f;
  --coral-soft: #ffe8f3;
  --sun: #ffbd45;
  --muted: #7d88a4;
  --line: rgba(55, 72, 111, .13);
  --shadow: 0 18px 48px rgba(72, 82, 120, .09);
  --sidebar: 232px;
}

html,
body {
  background: var(--paper);
}

body {
  background-image:
    linear-gradient(180deg, rgba(255, 232, 243, .34), transparent 210px),
    linear-gradient(90deg, rgba(39, 197, 200, .04) 1px, transparent 1px),
    linear-gradient(rgba(255, 95, 159, .035) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline-color: rgba(255, 95, 159, .36);
}

h1,
h2,
h3 {
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

.sidebar {
  color: var(--ink);
  background: rgba(255, 255, 255, .97);
  border-right: 1px solid var(--line);
  box-shadow: 18px 0 42px rgba(68, 82, 118, .04);
  overflow: hidden;
}

.sidebar::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 62px;
  height: 310px;
  background: url("assets/decor-flamingo.webp") center bottom / contain no-repeat;
  opacity: .88;
  pointer-events: none;
}

.app-splash {
  display: none;
}

.brand-mark {
  border-color: transparent;
  color: var(--white);
  background: var(--coral);
  box-shadow: 0 8px 20px rgba(255, 95, 159, .22);
}

.brand b {
  color: var(--coral);
  font-family: Georgia, "Songti SC", serif;
}

.brand small,
.sidebar-foot,
.sidebar-foot small,
.offline-dot {
  color: var(--muted);
}

.side-nav {
  margin-top: 38px;
}

.side-nav .nav-btn {
  color: var(--ink-2);
}

.side-nav .nav-btn:hover {
  color: var(--coral);
  background: rgba(255, 232, 243, .72);
}

.side-nav .nav-btn.active {
  color: var(--coral);
  background: var(--coral-soft);
  box-shadow: inset 3px 0 0 var(--coral);
}

.nav-btn em {
  color: var(--coral);
  background: var(--white);
  border: 1px solid rgba(255, 95, 159, .18);
}

.offline-dot span {
  background: #58d5a5;
  box-shadow: 0 0 0 4px rgba(88, 213, 165, .14);
}

.main-content {
  background: rgba(255, 255, 255, .42);
}

.view {
  width: min(1280px, 100%);
}

.eyebrow {
  color: var(--coral);
}

.eyebrow::before {
  width: 18px;
  border-radius: 2px;
  background: var(--coral);
}

.home-hero {
  min-height: 362px;
  color: var(--ink);
  background:
    linear-gradient(118deg, rgba(255, 232, 243, .94), rgba(255, 255, 255, .9) 44%, rgba(231, 250, 250, .88));
  border: 1px solid rgba(255, 95, 159, .12);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 42px 40px;
}

.hero-copy .eyebrow {
  color: var(--coral);
}

.hero-copy h1 {
  margin-top: 14px;
  color: var(--coral);
  font-size: 40px;
  line-height: 1.14;
}

.hero-copy > p {
  color: var(--muted);
}

.hero-trip-line {
  gap: 0;
  background: rgba(255, 255, 255, .58);
  border-color: var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.hero-trip-line span {
  color: var(--muted);
  background: rgba(255, 255, 255, .72);
  border-right: 1px solid var(--line);
}

.hero-trip-line span:last-child {
  border-right: 0;
}

.hero-trip-line b {
  color: var(--coral);
}

.hero-actions .primary-btn {
  color: var(--white);
  background: var(--coral);
  box-shadow: 0 10px 22px rgba(255, 95, 159, .22);
}

.hero-copy .ghost-btn {
  color: var(--ink-2);
  background: rgba(255, 255, 255, .72);
  border-color: var(--line);
}

.hero-visual {
  min-height: 362px;
}

.hero-visual::after {
  background: linear-gradient(90deg, rgba(255, 250, 253, .97), transparent 34%);
}

.hero-stamp {
  color: var(--ink);
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 95, 159, .12);
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(23, 40, 79, .11);
}

.reserve-strip,
.progress-strip {
  margin-top: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .84);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(72, 82, 120, .045);
}

.reserve-strip {
  border-bottom: 1px solid var(--line);
}

.reserve-pill {
  color: #d83a7a;
  background: var(--coral-soft);
  border-radius: 6px;
}

.reserve-strip .icon-btn {
  color: var(--coral);
  background: var(--paper-2);
}

.progress-strip {
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.progress-ring {
  background: conic-gradient(var(--coral) var(--progress), #f5eaf1 0);
}

.progress-ring::before {
  background: var(--white);
}

.streak svg {
  color: var(--coral);
}

.primary-btn {
  color: var(--white);
  background: var(--coral);
}

.secondary-btn {
  color: var(--ink);
  background: var(--sea-soft);
}

.ghost-btn {
  border-color: var(--line);
  background: rgba(255, 255, 255, .68);
}

.icon-btn {
  color: var(--ink-2);
  background: var(--paper-2);
}

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

.scene-grid {
  gap: 12px;
}

.scene-card {
  min-height: 146px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 10px 26px rgba(72, 82, 120, .045);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.scene-card:nth-child(3n + 1) {
  background: linear-gradient(145deg, #fffafd, #fff1f7);
}

.scene-card:nth-child(3n + 2) {
  background: linear-gradient(145deg, #fbffff, #eafafa);
}

.scene-card:nth-child(3n) {
  background: linear-gradient(145deg, #fffdf9, #fff6e7);
}

.scene-card:hover {
  border-color: rgba(255, 95, 159, .4);
  box-shadow: 0 16px 32px rgba(255, 95, 159, .08);
}

.scene-card .scene-icon {
  color: var(--coral);
  background: var(--coral-soft);
}

.scene-card:nth-child(3n + 2) .scene-icon {
  color: #139da5;
  background: var(--sea-soft);
}

.scene-card:nth-child(3n) .scene-icon {
  color: #db8b00;
  background: #fff3d8;
}

.chip {
  color: var(--ink-2);
  background: rgba(255, 255, 255, .78);
}

.chip.active {
  color: var(--white);
  background: var(--coral);
  border-color: var(--coral);
}

.learn-mode-tabs button {
  background: rgba(255, 255, 255, .9);
}

.learn-mode-tabs button.active {
  color: var(--coral);
  background: var(--coral-soft);
  border-color: rgba(255, 95, 159, .28);
  box-shadow: inset 3px 0 0 var(--coral);
}

.learn-mode-tabs svg,
.learn-mode-tabs button.active svg {
  color: var(--coral);
}

.learn-mode-tabs button.active small {
  color: #b6577e;
}

.word-scene-progress b,
.lesson-number,
.word-sound,
.speak-mini {
  color: var(--coral);
}

.word-card,
.lesson-card {
  background: rgba(255, 255, 255, .94);
  border-color: rgba(255, 95, 159, .14);
  box-shadow: var(--shadow);
}

.word-focus {
  background:
    linear-gradient(135deg, rgba(255, 232, 243, .72), rgba(255, 255, 255, .88) 62%);
}

.word-hook {
  background: #fff8e9;
}

.word-hook span {
  color: #d98900;
}

.word-context,
.reply-block {
  color: var(--ink);
  background: var(--sea-soft);
  border: 1px solid rgba(39, 197, 200, .16);
}

.word-context .block-label,
.reply-block .block-label {
  color: #158f98;
}

.word-context .block-label small,
.word-example-zh,
.chinese-reply {
  color: var(--muted);
}

.word-context .audio-speed-pair button {
  color: var(--muted);
  background: rgba(255, 255, 255, .72);
  border-color: var(--line);
}

.word-context .audio-speed-pair button.active {
  color: var(--white);
  background: var(--coral);
  border-color: var(--coral);
}

.audio-speed-pair button.active {
  color: #127f87;
  background: var(--sea-soft);
  border-color: rgba(39, 197, 200, .36);
}

.level-dots span.on {
  background: var(--coral);
}

.rating-row {
  background: rgba(255, 95, 159, .12);
}

.rating-btn:hover,
.rating-btn.hard:hover {
  color: var(--coral);
  background: var(--coral-soft);
}

.aside-panel,
.prep-panel,
.source-link,
.rescue-item,
.search-box,
.choice-btn,
.trip-overview,
.timeline-card,
.benefit-card,
.warning-item {
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 10px 28px rgba(72, 82, 120, .04);
}

.key-list span {
  color: #147f87;
  background: var(--sea-soft);
}

.sound-orbit {
  color: var(--white);
  background: var(--coral);
  box-shadow: 0 18px 38px rgba(255, 95, 159, .2);
}

.sound-orbit::before,
.sound-orbit::after {
  border-color: rgba(255, 95, 159, .3);
}

.sound-orbit::after {
  border-color: rgba(39, 197, 200, .22);
}

.choice-btn:hover {
  border-color: rgba(255, 95, 159, .45);
}

.choice-btn.correct {
  border-color: var(--sea);
  background: var(--sea-soft);
}

.choice-btn.wrong {
  border-color: var(--coral);
  background: var(--coral-soft);
}

.listen-reveal {
  color: var(--ink);
  background: var(--sea-soft);
  border: 1px solid rgba(39, 197, 200, .18);
}

.listen-reveal p {
  color: var(--muted);
}

.urgent-strip {
  background: var(--coral-soft);
  border-color: rgba(255, 95, 159, .2);
}

.rescue-item h3 {
  font-family: "Avenir Next", "PingFang SC", sans-serif;
}

.rescue-actions .show-btn {
  color: var(--white);
  background: var(--coral);
}

.reservation-desk {
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(255, 232, 243, .84), rgba(231, 250, 250, .78));
  border-left-color: var(--coral);
}

.reservation-desk .section-kicker,
.reservation-score b {
  color: var(--coral);
}

.reservation-head p,
.reservation-score span {
  color: var(--muted);
}

.reservation-check {
  color: var(--ink);
  background: rgba(255, 255, 255, .84);
  border-color: var(--line);
}

.reservation-check small {
  color: var(--muted);
}

.reservation-check input {
  accent-color: var(--coral);
}

.reservation-check.done {
  background: var(--sea-soft);
  border-color: rgba(39, 197, 200, .42);
}

.reservation-check.done > svg {
  color: var(--sea);
}

.reservation-check:has(input:checked) {
  border-color: rgba(39, 197, 200, .42);
  background: var(--sea-soft);
}

.benefit-card:nth-child(3n + 1) {
  background: #fff7fb;
}

.benefit-card:nth-child(3n + 2) {
  background: #f2ffff;
}

.benefit-card:nth-child(3n) {
  background: #fffaf0;
}

.show-card {
  background:
    linear-gradient(145deg, rgba(255, 232, 243, .96), rgba(255, 255, 255, .98) 55%, rgba(231, 250, 250, .92));
  border: 1px solid rgba(255, 95, 159, .16);
  box-shadow: 0 30px 80px rgba(23, 40, 79, .2);
}

.show-label {
  color: var(--coral);
}

.toast {
  background: var(--ink);
}

@media (max-width: 720px) {
  html.show-splash body {
    overflow: hidden;
  }

  html.show-splash .app-splash,
  .app-splash.leaving {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: max(48px, env(safe-area-inset-top)) 22px max(44px, env(safe-area-inset-bottom));
    background: #c9f1f2 url("assets/splash-seaplane-view.webp") center / cover no-repeat;
    opacity: 1;
    visibility: visible;
    transition: opacity .4s ease, transform .4s ease, visibility .4s ease;
  }

  .app-splash::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(23, 40, 79, .12), transparent 30%, transparent 68%, rgba(255, 250, 253, .78));
    pointer-events: none;
  }

  .app-splash.leaving {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.015);
  }

  .splash-brand,
  .splash-trip {
    position: relative;
    z-index: 1;
    text-align: center;
  }

  .splash-brand {
    display: grid;
    justify-items: center;
    color: var(--white);
    text-shadow: 0 2px 15px rgba(23, 40, 79, .22);
  }

  .splash-brand span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: var(--coral);
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    box-shadow: 0 12px 28px rgba(255, 95, 159, .25);
    font-family: Georgia, serif;
    font-size: 18px;
  }

  .splash-brand b {
    margin-top: 10px;
    font-family: Georgia, "Songti SC", serif;
    font-size: 28px;
  }

  .splash-brand small {
    margin-top: 2px;
    font-size: 10px;
    text-transform: uppercase;
  }

  .splash-trip {
    margin-top: auto;
    color: var(--ink);
    text-shadow: 0 1px 10px rgba(255, 255, 255, .82);
  }

  .splash-trip span,
  .splash-trip b {
    display: block;
  }

  .splash-trip span {
    color: var(--coral);
    font-size: 12px;
    font-weight: 800;
  }

  .splash-trip b {
    margin-top: 5px;
    font-family: Georgia, serif;
    font-size: 23px;
  }

  body {
    background-image: linear-gradient(180deg, rgba(255, 232, 243, .46), transparent 180px);
    background-size: auto;
  }

  .mobile-header {
    height: 60px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 7px 22px rgba(72, 82, 120, .06);
  }

  .brand.compact .brand-mark {
    color: var(--white);
    background: var(--coral);
  }

  .brand.compact b {
    color: var(--coral);
  }

  .mobile-header .icon-btn {
    color: var(--coral);
    background: var(--coral-soft);
  }

  .bottom-nav {
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -10px 30px rgba(72, 82, 120, .07);
  }

  .bottom-nav .nav-btn.active {
    color: var(--coral);
  }

  .bottom-nav .rescue-nav {
    color: var(--white);
    background: var(--coral);
    box-shadow: 0 8px 22px rgba(255, 95, 159, .28);
  }

  .view {
    padding-top: 74px;
  }

  .home-hero {
    display: flex;
    flex-direction: column-reverse;
    min-height: 0;
  }

  .hero-visual {
    height: 206px;
    min-height: 206px;
    order: 1;
  }

  .hero-visual::after {
    background: linear-gradient(180deg, transparent 58%, rgba(255, 250, 253, .9));
  }

  .hero-copy {
    order: 0;
    min-height: 0;
    padding: 21px 19px 22px;
  }

  .hero-copy h1 {
    margin: 11px 0 9px;
    font-size: 29px;
  }

  .hero-copy > p {
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.58;
  }

  .hero-stamp {
    right: 12px;
    bottom: 14px;
  }

  .hero-trip-line {
    margin-top: 10px;
  }

  .hero-actions {
    margin-top: 14px;
  }

  .hero-actions .primary-btn {
    flex: 1 1 156px;
  }

  .reserve-strip,
  .progress-strip {
    padding: 12px;
  }

  .reserve-strip {
    margin-top: 11px;
  }

  .progress-strip {
    margin-top: 10px;
    margin-bottom: 26px;
  }

  .scene-card {
    min-height: 138px;
    padding: 14px;
  }

  .page-head h1 {
    color: var(--ink);
  }

  .word-focus {
    min-height: 182px;
  }

  .word-context,
  .reply-block {
    border-radius: 8px;
  }

  .reservation-desk {
    border-top-color: var(--coral);
  }
}

@media (max-width: 380px) {
  .hero-visual {
    height: 155px;
    min-height: 155px;
  }

  .hero-copy {
    padding: 15px 18px 16px;
  }

  .hero-copy h1 {
    font-size: 27px;
  }

  .hero-copy > p {
    display: none;
  }

  .hero-actions .ghost-btn {
    display: none;
  }

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

  .scene-card {
    min-height: 142px;
    padding: 12px;
  }

  .scene-card h3 {
    font-size: 14px;
  }

  .scene-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .scene-card .count {
    top: 13px;
    right: 10px;
    max-width: 76px;
    text-align: right;
  }
}

/* Learning clarity: IPA, standalone pronunciation, and word-level playback tracking. */
.word-pronunciation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 13px;
}

.word-ipa {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.4;
}

.word-ipa small {
  padding: 3px 5px;
  color: var(--coral);
  background: var(--white);
  border: 1px solid rgba(255, 95, 159, .2);
  border-radius: 4px;
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 8px;
  font-weight: 900;
}

.word-sound {
  margin-top: 0;
  color: #b34a76;
}

.word-audio-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.word-audio-controls .primary-btn,
.word-audio-controls .ghost-btn {
  min-height: 40px;
  padding-inline: 13px;
  font-size: 11px;
}

.word-audio-controls .ghost-btn:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: .58;
}

.sentence-readout {
  min-width: 0;
}

.sentence-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 9px;
  color: var(--muted);
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 9px;
  font-weight: 800;
}

.sentence-meta span:first-child {
  color: var(--coral);
}

.word-track {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .16em .28em;
}

.word-token {
  display: inline-block;
  padding: .03em .08em;
  border-radius: 4px;
  transition: color .12s ease, background .12s ease, box-shadow .12s ease, transform .12s ease;
}

.word-token.is-read {
  color: var(--muted);
}

.word-token.is-current {
  color: var(--ink);
  background: var(--sun);
  box-shadow: 0 4px 12px rgba(255, 189, 69, .28);
  transform: translateY(-1px);
}

.reply-block .sentence-meta,
.word-context .sentence-meta {
  color: #667694;
}

.reply-block .sentence-meta span:first-child,
.word-context .sentence-meta span:first-child {
  color: #14858d;
}

.word-hook span {
  font-size: 10px;
}

.word-aside .aside-panel > .ghost-btn {
  display: flex;
}

/* Travel guide information architecture. */
.guide-tabs {
  position: sticky;
  z-index: 8;
  top: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 18px 0 28px;
  padding: 6px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(72, 82, 120, .06);
  backdrop-filter: blur(12px);
}

.guide-tabs button {
  min-width: 0;
  min-height: 48px;
  padding: 7px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--ink-2);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.guide-tabs button.active {
  color: var(--white);
  background: var(--coral);
  box-shadow: 0 8px 18px rgba(255, 95, 159, .2);
}

.guide-tabs svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.guide-content {
  min-height: 420px;
}

.guide-risk-grid,
.guide-note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.guide-risk-grid article,
.guide-note-grid article {
  min-width: 0;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(72, 82, 120, .04);
}

.guide-risk-grid svg {
  width: 22px;
  color: var(--coral);
}

.guide-risk-grid b,
.guide-note-grid b {
  display: block;
  margin: 12px 0 6px;
  color: var(--ink);
  font-size: 13px;
}

.guide-risk-grid p,
.guide-note-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.guide-section {
  margin-top: 42px;
}

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

.confirm-grid article {
  min-width: 0;
  padding: 14px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
}

.confirm-grid span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--coral);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
}

.confirm-grid p {
  margin: 3px 0 0;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.55;
}

.guide-callout {
  min-height: 150px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--ink);
  background: linear-gradient(125deg, #fff0f7, #f0ffff);
  border: 1px solid rgba(255, 95, 159, .18);
  border-left: 5px solid var(--coral);
}

.guide-callout > div {
  min-width: 0;
}

.guide-callout span {
  color: var(--coral);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.guide-callout h2 {
  margin: 8px 0;
  font-size: 24px;
}

.guide-callout p {
  max-width: 760px;
  margin: 0;
  color: #52617f;
  font-size: 11px;
  line-height: 1.65;
}

.guide-callout strong {
  min-width: 100px;
  text-align: center;
  color: var(--coral);
  font-family: Georgia, serif;
  font-size: 30px;
}

.guide-callout strong small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 9px;
}

.guide-callout > svg {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  color: var(--coral);
}

.guide-callout.hongkong {
  background: linear-gradient(125deg, #fff8e8, #fff0f7);
  border-left-color: var(--sun);
}

.checklist-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.checklist-group {
  min-width: 0;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checklist-group h3 {
  margin-bottom: 12px;
  color: var(--coral);
  font-size: 14px;
}

.prep-check {
  min-height: 48px;
  padding: 9px 0;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 17px;
  gap: 9px;
  align-items: start;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.prep-check input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--coral);
}

.prep-check span {
  color: var(--ink-2);
  font-size: 10px;
  line-height: 1.55;
}

.prep-check > svg {
  width: 16px;
  color: transparent;
}

.prep-check.done span {
  color: var(--muted);
  text-decoration: line-through;
}

.prep-check.done > svg {
  color: var(--sea);
}

.guide-schedule {
  border-top: 1px solid var(--line);
}

.guide-schedule-row {
  min-height: 82px;
  padding: 14px 0;
  display: grid;
  grid-template-columns: 34px 110px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.guide-schedule-row > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--coral);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 900;
}

.guide-schedule-row time {
  padding-top: 7px;
  color: var(--coral);
  font-size: 10px;
  font-weight: 900;
}

.guide-schedule-row h3 {
  margin: 3px 0 5px;
  font-size: 14px;
}

.guide-schedule-row p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.guide-note-grid {
  margin-top: 28px;
}

.guide-tip-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.guide-tip-list p {
  min-width: 0;
  margin: 0;
  padding: 13px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--ink-2);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.55;
}

.guide-tip-list svg {
  width: 16px;
  flex: 0 0 16px;
  color: var(--sea);
}

/* Explicit contrast fix for the user-marked reservation block. */
.reservation-desk,
.reservation-desk h2,
.reservation-check b {
  color: #17284f;
}

.reservation-desk {
  background: #fff7fb;
  border: 1px solid rgba(255, 95, 159, .2);
  border-left: 5px solid var(--coral);
  box-shadow: 0 14px 34px rgba(72, 82, 120, .06);
}

.reservation-head p {
  color: #52617f;
  font-size: 12px;
}

.reservation-score span,
.reservation-check small {
  color: #62708d;
  font-size: 9px;
}

.reservation-check {
  color: #17284f;
  background: #ffffff;
  border-color: rgba(55, 72, 111, .18);
}

.reservation-check b {
  font-size: 12px;
}

.prep-tools .sources {
  grid-column: 1 / -1;
}

.prep-tools details summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.prep-tools details[open] summary {
  margin-bottom: 10px;
}

@media (max-width: 720px) {
  .guide-tabs {
    top: 60px;
    display: flex;
    overflow-x: auto;
    margin-inline: -15px;
    padding-inline: 15px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    scrollbar-width: none;
  }

  .guide-tabs::-webkit-scrollbar {
    display: none;
  }

  .guide-tabs button {
    min-width: 96px;
    flex: 0 0 96px;
  }

  .guide-risk-grid,
  .guide-note-grid,
  .checklist-board,
  .guide-tip-list,
  .confirm-grid {
    grid-template-columns: 1fr;
  }

  .guide-callout {
    min-height: 0;
    padding: 20px 16px;
  }

  .guide-callout h2 {
    font-size: 20px;
  }

  .guide-callout > svg {
    display: none;
  }

  .guide-schedule-row {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
  }

  .guide-schedule-row time {
    grid-column: 2;
    padding-top: 0;
  }

  .guide-schedule-row div {
    grid-column: 2;
  }

  .word-pronunciation {
    display: grid;
  }

  .sentence-meta {
    font-size: 8px;
  }
}

@media (max-width: 380px) {
  .guide-tabs {
    margin-inline: -11px;
    padding-inline: 11px;
  }

  .guide-callout {
    display: block;
  }

  .guide-callout strong {
    display: block;
    margin-top: 16px;
    text-align: left;
  }

  .word-audio-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
