@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/montserrat-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/bricolage-grotesque-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/bricolage-grotesque-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/bricolage-grotesque-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
:root {
  color-scheme: light;
  --ink: #262320;
  --muted: #655c53;
  --accent: #d66e20;
  --action: #b65313;
  --action-hover: #9c450e;
  --hero: #fef9f4;
  --paper: #fdfaf7;
  --border: #eadecf;
  --white: #fff;
  --success: #306b4a;
  --radius: 23px;
  --shadow: 0 12px 35px #5330160b;
  --u: min(1px, .052083333vw);
  font-family: Montserrat, system-ui, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
[data-tone="mint"] {
  --pastel-surface: #d6f1e0;
  --pastel-border: #badbc9;
  --pastel-inset: #bce4ca;
  --pastel-ink: #315e47;
}
[data-tone="sky"] {
  --pastel-surface: #d2e9f7;
  --pastel-border: #b8d5e7;
  --pastel-inset: #b7ddf4;
  --pastel-ink: #345872;
}
[data-tone="lilac"] {
  --pastel-surface: #e7d4f4;
  --pastel-border: #d8c2e9;
  --pastel-inset: #dbc0ed;
  --pastel-ink: #60467b;
}
[data-tone="blush"] {
  --pastel-surface: #fbe1e4;
  --pastel-border: #eac8cd;
  --pastel-inset: #f3cbcb;
  --pastel-ink: #803c40;
}
[data-tone="rose"] {
  --pastel-surface: #f7cfcf;
  --pastel-border: #e4b8ba;
  --pastel-inset: #f2b6b6;
  --pastel-ink: #7d3a3f;
}
[data-tone="butter"] {
  --pastel-surface: #f9f0af;
  --pastel-border: #e8d994;
  --pastel-inset: #f4e48c;
  --pastel-ink: #6d521c;
}
[data-tone="peach"] {
  --pastel-surface: #fedab8;
  --pastel-border: #ebc49f;
  --pastel-inset: #fccba2;
  --pastel-ink: #784824;
}
[data-tone="coral"] {
  --pastel-surface: #ffc4a8;
  --pastel-border: #edab8d;
  --pastel-inset: #f8aa84;
  --pastel-ink: #773820;
}
[data-tone="sand"] {
  --pastel-surface: #eee2d0;
  --pastel-border: #d9c7ab;
  --pastel-inset: #ddc7a8;
  --pastel-ink: #684a2c;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  min-width: 300px;
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(ellipse at top left, #f6effb80, transparent 42rem), var(--paper);
}
main { min-height: calc(100vh - 80px); }
main:focus { outline: none; }
a { color: inherit; text-decoration: none; }
input, button, select { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .52; }
:focus-visible { outline: 3px solid #a84c0d; outline-offset: 4px; }
[lang="zh-Hans"] { font-family: "KaiTi", "楷体", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif; }
h1, h2, h3, p { margin: 0; }
p { line-height: 1.58; }
h1, h2, h3 { letter-spacing: -.037em; line-height: 1.17; }
:where(h1, h2, h3, h4, h5, h6, .phone-title, .resource-notice-heading strong, .resource-letter-label) {
  font-family: 'Bricolage Grotesque', Montserrat, system-ui, "Segoe UI", Arial, sans-serif;
}
svg { flex-shrink: 0; vertical-align: middle; }
.muted { color: var(--muted); }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 20; background: white; padding: 12px; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 45px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-weight: 720;
  line-height: 1.25;
  text-align: center;
  transition: background-color .18s, border-color .18s, box-shadow .18s;
}
.primary { color: #fff; background: var(--action); }
.primary:hover:not(:disabled) { background: var(--action-hover); }
.secondary { color: #793507; background: #fffaf4; border-color: #ebcfb5; }
.secondary:hover:not(:disabled) { background: #fff0df; border-color: #d5a375; }
.full { width: 100%; }
.icon-button {
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  padding: 0;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: none;
}
.icon-button:hover { background: #faebdb; color: #9f450d; }
.art { display: block; flex: none; background-repeat: no-repeat; }
.art-logo { width: calc(58 * var(--u)); aspect-ratio: 58 / 54; background: url('/assets/wordmark-badge.webp') center / contain no-repeat; }
.art-panda {
  aspect-ratio: 454 / 358;
  background: url('/assets/reading-panda.webp') center bottom / contain no-repeat;
}
.art-words, .art-writing, .art-speaking, .art-grammar { aspect-ratio: 160 / 150; width: 100%; background-image: url('/assets/learning-icons.webp'); background-size: 400% auto; }
.art-words { background-position: 0 0; }
.art-writing { background-position: 33.3333% 0; }
.art-speaking { background-position: 66.6667% 0; }
.art-grammar { background-position: 100% 0; }
.site-header {
  position: relative;
  z-index: 3;
  background: #fff;
}
body:not(:has(.guest-hero)) .site-header { box-shadow: 0 1px 0 #ede3d9; }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  max-width: 1920px;
  min-height: max(68px, calc(108 * var(--u)));
  padding: 0 max(24px, calc(60 * var(--u)));
  margin: auto;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: calc(7 * var(--u));
  justify-self: start;
  font-size: max(28px, calc(46 * var(--u)));
  font-weight: 860;
  letter-spacing: -.084em;
  line-height: 1;
}
.top-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(3px, calc(5 * var(--u)));
  gap: max(3px, calc(9 * var(--u)));
  border-radius: 100px;
  border: 1px solid #eae5e0;
  background: #f8f6f4;
  box-shadow: inset 0 1px 4px #38271b0d;
}
.top-nav a {
  border-radius: 100px;
  padding: max(8px, calc(12 * var(--u))) max(13px, calc(25 * var(--u)));
  font-size: max(13px, calc(18 * var(--u)));
  font-weight: 660;
  white-space: nowrap;
  letter-spacing: -.035em;
}
.top-nav a:hover { background: #eee7de; }
.top-nav a[aria-current="page"] { color: white; background: var(--ink); }
.header-actions { display: flex; align-items: center; justify-content: end; gap: max(10px, calc(22 * var(--u))); min-width: 0; }
.login-link {
  min-height: max(39px, calc(60 * var(--u)));
  padding: 0 max(12px, calc(22 * var(--u)));
  background: var(--accent);
  font-size: max(12px, calc(19 * var(--u)));
  font-weight: 750;
  letter-spacing: -.035em;
  text-transform: uppercase;
  white-space: nowrap;
}
.search-link svg { width: max(22px, calc(36 * var(--u))); height: max(22px, calc(36 * var(--u))); }
.menu-toggle { display: none; }
.account { position: relative; }
.account summary {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #efcaa7;
  border-radius: 50%;
  cursor: pointer;
  color: #8d3c08;
  font-weight: 800;
  background: #fff0dd;
  list-style: none;
}
.account summary::-webkit-details-marker { display: none; }
.account-menu {
  display: grid;
  gap: 4px;
  position: absolute;
  top: 49px;
  right: 0;
  min-width: 218px;
  max-width: min(325px, 86vw);
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 17px;
  box-shadow: 0 13px 33px #41240f20;
  overflow-wrap: anywhere;
}
.account-menu > strong, .account-menu > span { padding: 3px 7px; }
.account-menu > span { font-size: .78rem; margin-bottom: 5px; }
.account-menu a, .account-menu button {
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  font-weight: 650;
  font-size: .88rem;
}
.account-menu a:hover, .account-menu button:hover { background: #fff0df; }
.guest-hero { background: linear-gradient(118deg, #ffeedf, #fff6ec 40%, #f1ebfa 73%, #e6f3fa); }
.guest-stage { max-width: 1920px; height: calc(554 * var(--u)); position: relative; margin: auto; overflow: hidden; }
.guest-stage h1 {
  position: absolute;
  top: calc(71 * var(--u));
  left: 0;
  right: 0;
  text-align: center;
  font-size: calc(102 * var(--u));
  font-weight: 860;
  line-height: 1.05;
  letter-spacing: -.052em;
  text-shadow: 0 2px 2px #32261c26;
  z-index: 1;
}
.guest-stage h1 span {
  display: block;
  position: relative;
  left: -4.5%;
  margin-top: calc(34 * var(--u));
  color: var(--accent);
}
.guest-stage .art-panda {
  position: absolute;
  left: 57.29%;
  bottom: 0;
  width: calc(454 * var(--u));
}
.guest-start {
  position: absolute;
  left: 32.03%;
  top: calc(386 * var(--u));
  min-height: calc(67 * var(--u));
  width: calc(422 * var(--u));
  gap: calc(14 * var(--u));
  padding: 0;
  color: #fff;
  background: var(--accent);
  font-size: calc(24 * var(--u));
  font-weight: 750;
  letter-spacing: -.04em;
  text-transform: uppercase;
}
.play { width: 0; height: 0; border-top: calc(16 * var(--u)) solid transparent; border-bottom: calc(16 * var(--u)) solid transparent; border-left: calc(28 * var(--u)) solid #fff; }
.guest-features {
  max-width: 1920px;
  margin: 0 auto;
  padding: calc(45 * var(--u)) calc(49 * var(--u)) calc(72 * var(--u));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: calc(43 * var(--u));
}
.guest-card {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1fr);
  align-items: center;
  min-height: calc(190 * var(--u));
  border: 1px solid var(--pastel-border);
  border-radius: calc(31 * var(--u));
  box-shadow: var(--shadow);
  isolation: isolate;
  padding: calc(11 * var(--u)) calc(13 * var(--u));
  gap: calc(10 * var(--u));
  transition: transform .18s, box-shadow .18s;
}
.guest-card:hover { transform: translateY(-4px); box-shadow: 0 15px 32px #53301617; }
.guest-card .art { max-width: calc(160 * var(--u)); margin-inline: auto; mix-blend-mode: multiply; }
.guest-card h2 { font-size: max(17px, calc(27 * var(--u))); font-weight: 810; color: #14110e; }
.guest-card p { margin-top: calc(7 * var(--u)); font-size: max(12px, calc(17.5 * var(--u))); font-weight: 640; color: #5e5c59; letter-spacing: -.06em; line-height: 1.35; }
.guest-card:last-child { grid-template-columns: minmax(0, .66fr) minmax(0, 1fr); gap: calc(5 * var(--u)); }
.resource-disclosure { margin-bottom: 20px; padding: 13px 15px; border: 1px solid var(--pastel-border); border-radius: 15px; color: var(--ink); line-height: 1.6; }
.resource-disclosure p + p { margin-top: 8px; }
.resource-notice-copy em { font-style: normal; }
.resource-notice-heading, .resource-notice-toggle, .resource-letter-label, .resource-letter-clip, .resource-letter-heart { display: none; }
@media (width > 760px) and (not ((max-height: 540px) and (pointer: coarse))) {
  .resource-notice .resource-disclosure {
    position: relative;
    display: grid;
    grid-template-columns: clamp(116px, 16.2vw, 220px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(16px, 1.65vw, 24px);
    margin: 28px 0 11px;
    padding: 18px clamp(16px, 2vw, 28px) 12px;
    border: 2px dashed #bd956d;
    border-radius: 22px;
    background: linear-gradient(115deg, #fbebd5, #fff6e7 56%, #fbedda);
  }
  .resource-notice .resource-disclosure::before {
    content: "";
    width: min(100%, 200px);
    aspect-ratio: 1.64;
    justify-self: center;
    background: url('/assets/resource-letter-bird.webp') center / contain no-repeat;
  }
  .resource-letter-label {
    position: absolute;
    top: 0;
    left: 50%;
    display: block;
    transform: translate(-50%, -50%);
    padding: 5px 17px;
    border-radius: 999px;
    background: #ad5d45;
    color: #fffaf4;
    font-size: 1rem;
    font-weight: 750;
    white-space: nowrap;
    text-transform: uppercase;
  }
  .resource-letter-clip {
    position: absolute;
    top: -24px;
    right: 28px;
    display: block;
    width: 15px;
    height: 48px;
    transform: rotate(22deg);
    border: 2px solid #8f5e35;
    border-radius: 12px;
    background: #fff3df;
  }
  .resource-letter-clip::after {
    content: "";
    position: absolute;
    inset: 5px 2px 8px;
    border: 1px solid #8f5e35;
    border-radius: 9px;
  }
  .resource-notice-copy p { font-size: clamp(.94rem, 1.13vw, 1.08rem); line-height: 1.5; }
  .resource-notice-copy em, .resource-notice-copy p:last-child { color: #82491f; font-style: italic; }
  .resource-notice-copy em { font-weight: 680; }
  .resource-letter-heart { display: inline; font-style: normal; }
}
.resource-filters { margin-bottom: 16px; scroll-margin-top: 16px; }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.resource-card { min-width: 0; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.resource-card:hover { border-color: var(--pastel-ink); }
.resource-card:hover h2 { text-decoration: underline; text-underline-offset: .14em; }
.resource-photo { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fffaf5; border-bottom: 1px solid var(--pastel-border); }
.resource-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(14px, 2.3vw, 22px); }
.resource-copy .tag { color: var(--pastel-ink); background: var(--pastel-inset); }
.resource-copy h2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; font-size: clamp(1.1rem, 2vw, 1.38rem); line-height: 1.27; }
.resource-copy h2 svg { color: var(--pastel-ink); }
.resource-copy p { color: var(--muted); font-size: .9rem; }
.video-level { margin-top: 25px; }
.video-level > h2 { margin-bottom: 12px; font-size: clamp(1.4rem, 2.35vw, 2rem); }
.video-catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.video-card { min-width: 0; overflow: hidden; }
.video-card:hover { border-color: var(--pastel-ink); }
.video-card:hover h3 { text-decoration: underline; text-underline-offset: .13em; }
.video-card-art { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; }
.video-card-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-card-play { position: absolute; top: 66%; display: grid; place-items: center; width: clamp(36px, 4.2vw, 48px); aspect-ratio: 1; border-radius: 50%; background: var(--action); }
.video-duration { position: absolute; right: 10px; bottom: 10px; padding: 3px 7px; border-radius: 7px; color: #fff; background: #28201cef; font-size: .75rem; font-variant-numeric: tabular-nums; font-weight: 670; }
.video-card-art .play { margin-left: 3px; border-top-width: 8px; border-bottom-width: 8px; border-left-width: 13px; }
.video-card-copy { padding: clamp(14px, 2.2vw, 23px); }
.video-card-copy h3 { margin-bottom: 5px; font-size: clamp(1.2rem, 2vw, 1.55rem); }
.video-card-copy p { color: var(--muted); }
.video-mode-below { display: none; }
.video-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; gap: clamp(12px, 2vw, 22px); }
.video-lesson[data-video-mode="overlay"] .video-layout { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.video-player { min-width: 0; }
.video-media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink); }
.video-media video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.video-player[data-inline-controls] video { cursor: pointer; }
.video-controls {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 8px);
  margin-top: 8px;
  padding: 5px 7px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff9f1;
}
.video-controls .video-play { flex: none; min-width: 90px; min-height: 44px; padding: 6px 8px; font-size: .82rem; }
.video-controls .icon-button { width: 44px; height: 44px; color: #793507; }
.video-progress { flex: 1; min-width: 0; display: grid; justify-items: center; gap: 2px; }
.video-progress input { display: block; width: 100%; height: 25px; margin: 0; accent-color: var(--action); }
.video-progress span { color: var(--muted); font: .75rem Arial, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.video-playback-error:not(:empty) { margin-top: 8px; color: #9a3528; font-size: .875rem; }
.video-overlay {
  position: absolute;
  inset-inline: 0;
  bottom: clamp(62px, 13%, 74px);
  width: max-content;
  max-width: min(calc(100% - 12px), 740px);
  margin-inline: auto;
  display: grid;
  justify-items: center;
  gap: 1px;
  color: #fffaf2;
  text-align: center;
  pointer-events: none;
}
.video-player[data-inline-controls] .video-overlay { bottom: clamp(12px, 6%, 28px); }
.video-overlay .video-caption-line {
  max-width: 100%;
  padding: 1px 6px;
  border-radius: 5px;
  background: #231914df;
  line-height: 1.2;
}
.video-overlay[hidden], .video-transcript[hidden] { display: none; }
.video-caption-line { line-height: 1.36; overflow-wrap: anywhere; }
.video-caption-line[data-video-line="han"] { font-size: clamp(1.1rem, 2vw, 1.55rem); font-weight: 720; user-select: text; -webkit-user-select: text; }
.video-overlay .video-caption-line[data-video-line="han"] { font-size: clamp(1.02rem, 2.05vw, 1.45rem); pointer-events: auto; }
.video-caption-line[data-video-line="pinyin"] { color: #834416; }
.video-overlay .video-caption-line[data-video-line="pinyin"] { color: #ffdabb; }
.video-overlay .video-caption-line:not([lang="zh-Hans"]) {
  font-family: Arial, sans-serif;
  font-size: clamp(.75rem, 1.45vw, 1rem);
}
@media (max-width: 535px) {
  .video-overlay .video-caption-line { padding-inline: 4px; }
}
.video-transcript { min-width: 0; overflow: hidden; }
.video-transcript h2 { padding: 14px 15px; font-size: 1.17rem; background: #fff2e4; border-bottom: 1px solid var(--border); }
.video-cues { max-height: min(51vh, 410px); overflow-y: auto; }
.video-cue { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 9px; padding: 10px; border-bottom: 1px solid var(--border); }
.video-cue:last-child { border-bottom: 0; }
.video-cue[aria-current] { background: #fff2e3; }
.video-cue-text { display: grid; gap: 2px; font-size: .88rem; padding-block: 2px; }
.video-cue:has(.video-replay) { grid-template-columns: auto minmax(0, 1fr) auto; }
.video-cue .video-replay { align-self: center; width: 42px; height: 42px; color: #793507; background: #fff6ec; }
.video-cue .video-replay:hover { background: #fbe7d1; }
.video-speaker { font-weight: 700; color: #834416; }
.video-speed { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 10px; color: var(--muted); font-size: .86rem; white-space: nowrap; }
.video-speed select { width: auto; min-width: 78px; min-height: 42px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 9px; color: var(--ink); background: #fffaf4; }
.video-practice { max-width: 980px; margin-top: 22px; padding: clamp(16px,3vw,24px); background: #fff9f1; }
.video-practice h2 { margin-bottom: 7px; font-size: 1.35rem; }
.video-practice-prompt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 12px 0; }
.video-practice-prompt [lang="zh-Hans"] { color: #704327; font-size: 1.32rem; font-weight: 700; user-select: text; }
.video-practice-prompt .button { min-height: 42px; padding: 6px 11px; }
.video-practice-options { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,200px),1fr)); gap: 8px; }
.video-practice-options .choice { display: grid; gap: 3px; justify-items: start; padding: 10px 12px; text-align: left; }
.video-practice-options [lang="zh-Hans"] { font-size: 1.18rem; }
.video-practice-options small { color: var(--muted); line-height: 1.32; }
.video-practice-options [data-feedback="correct"] { border-color: #77a28b; background: #e2f2e8; }
.video-practice-feedback:not(:empty) { margin-top: 10px; color: #68412b; font-size: .88rem; font-weight: 680; }
.video-time { border: 1px solid #e9d5c1; border-radius: 8px; background: #fffaf5; color: #79380d; padding: 5px 6px; font-size: .75rem; font-variant-numeric: tabular-nums; }
.video-time:hover { border-color: var(--action); }
.video-languages { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 16px; margin-top: 20px; }
.video-languages legend { margin-bottom: 3px; }
.video-languages label { display: flex; align-items: center; gap: 5px; padding-block: 5px; }
.video-languages input { accent-color: var(--action); }
.video-lesson[data-hide-han] [data-video-line="han"],
.video-lesson[data-hide-pinyin] [data-video-line="pinyin"],
.video-lesson[data-hide-translation] [data-video-line="translation"] { display: none; }
.video-hint, .video-credits { margin-top: 10px; font-size: .88rem; }
.video-credits { color: var(--muted); }
.video-credits summary { cursor: pointer; font-weight: 690; }
.video-credits p { margin-top: 5px; }
.video-credits a { color: #843f14; text-decoration: underline; }
@media (max-width: 760px) {
  .video-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-layout { grid-template-columns: minmax(0, 1fr); }
  .video-mode-side { display: none; }
  .video-mode-below { display: inline; }
  .video-cues { max-height: 310px; }
  .video-media { border-radius: 15px; }
}
@media (max-width: 535px) {
  .video-catalog { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) { .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px), (max-height: 540px) and (pointer: coarse) {
  .shell.resources-shell {
    --notice-button-width: 44px;
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
  .resource-notice {
    position: fixed;
    z-index: 8;
    inset-inline-end: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(14px, env(safe-area-inset-bottom, 0px));
    width: min(420px, calc(100% - 32px));
    display: grid;
    justify-items: end;
    gap: 9px;
    pointer-events: none;
  }
  .resource-notice > * { pointer-events: auto; }
  .resource-notice .resource-disclosure {
    width: 100%;
    max-height: min(65vh, 425px);
    max-height: min(65dvh, 425px);
    margin: 0;
    padding: 12px 16px 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 21px;
    background:
      linear-gradient(#af796f16 1px, transparent 1px) 0 0 / 18px 18px,
      linear-gradient(90deg, #af796f16 1px, transparent 1px) 0 0 / 18px 18px,
      linear-gradient(140deg, #fffaf7f3, #f9e6edeb);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 35px #633a2238, inset 0 1px 0 #ffffffcf;
    font-size: .94rem;
  }
  .resource-notice:not(.is-open) .resource-disclosure { display: none; }
  .resource-notice-heading { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 6px; }
  .resource-notice-toggle {
    display: inline-flex;
    width: var(--notice-button-width);
    min-height: var(--notice-button-width);
    padding: 0;
    box-shadow: 0 4px 18px #633a2226;
  }
}
@media (max-width: 515px) { .resource-grid { grid-template-columns: minmax(0, 1fr); } }

.shell { width: min(100% - 64px, 1180px); margin-inline: auto; padding: clamp(28px, 4vw, 58px) 0 65px; }
.page-heading { margin-bottom: 25px; }
.page-heading h1, .auth-panel h1 { font-size: clamp(30px, 4vw, 48px); font-weight: 840; overflow-wrap: anywhere; }
.page-heading p, .auth-panel > p { margin-top: 9px; color: var(--muted); }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
[data-tone] { background-color: var(--pastel-surface, #fff); border-color: var(--pastel-border, var(--border)); }
.panel-pad { padding: clamp(18px, 3vw, 31px); }
.back-link { display: inline-flex; gap: 8px; align-items: center; color: #88420f; font-size: .88rem; font-weight: 720; margin-bottom: 19px; }
.back-link:hover { text-decoration: underline; }
.tag { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 5px 10px; border-radius: 99px; font-size: .75rem; font-weight: 790; letter-spacing: -.02em; line-height: 1.2; }
.tag-orange { color: #8a3b0a; background: #ffe8cf; }
.tag-green { color: #24583a; background: #e2f2e6; }
.tag-purple { color: #613e81; background: #efe7f9; }
.tag-neutral { color: #5e5550; background: #efece9; }
.tool-icon, .result-icon {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: #a64c10;
  background: #ffecd9;
}
.section-heading { margin: 33px 0 15px; }
.section-heading h2 { font-size: clamp(22px, 2vw, 28px); }
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 6vw, 95px); align-items: center; width: min(100% - 64px, 1060px); margin-top: 20px; }
.auth-illustration { display: grid; place-items: center; padding: 26px 6px 31px; border: 1px solid #f3e4d4; border-radius: 34px; background: var(--hero); }
.auth-illustration .art-panda { width: min(86%, 390px); }
.auth-phrase { color: #ab5016; font-size: clamp(52px, 8vw, 92px); font-weight: 750; line-height: 1; margin-top: 9px; }
.auth-illustration p { font-weight: 840; text-align: center; font-size: clamp(19px, 2.35vw, 31px); letter-spacing: -.045em; }
.auth-illustration p em { display: block; color: var(--accent); font-style: normal; }
.auth-panel { padding: clamp(22px, 4vw, 42px); }
.auth-panel form { display: grid; gap: 14px; margin-top: 24px; }
.auth-panel label { display: grid; gap: 7px; font-size: .88rem; font-weight: 720; }
input:not([type="radio"]):not([type="checkbox"]), select {
  min-width: 0;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #d8c8b9;
  background: #fff;
  border-radius: 11px;
  min-height: 45px;
}
input::placeholder { color: #756c64; opacity: 1; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--action); width: 17px; height: 17px; margin: 0; flex: none; }
.password-field { position: relative; }
.password-field input { padding-right: 50px !important; }
.password-field button { position: absolute; right: 3px; top: 2px; }
.form-error { color: #a4362c; font-size: .87rem; font-weight: 650; }
.form-error:empty { display: none; }
.auth-switch { font-size: .88rem; margin-top: 20px !important; }
.auth-switch a { font-weight: 800; color: #934208; text-decoration: underline; text-underline-offset: 3px; }
.plan-shell { max-width: 980px; }
.plan-form { display: grid; gap: 24px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { margin-bottom: 11px; font-size: 1.02rem; font-weight: 795; }
.level-options, .progress-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.current-level-picker { width: min(100%, 320px); }
.course-preview { margin-top: 8px; }
.level-choice:has(:disabled) { opacity: .5; cursor: default; }
.choice {
  background: #fff;
  border: 1px solid #e6d7ca;
  border-radius: 14px;
  font-weight: 685;
  cursor: pointer;
  transition: border .18s, background .18s;
}
.choice:hover { border-color: #c4773b; }
.choice:has(:checked), .choice[aria-pressed="true"], .choice[aria-current="page"] { border-color: #b85c21; background: #fff2e3; color: #703411; }
.level-choice { position: relative; display: grid; align-content: start; justify-items: start; padding: 16px; gap: 8px; min-height: 125px; }
.level-choice input { position: absolute; right: 14px; top: 16px; }
.level-choice > span:last-child { color: var(--muted); font-size: .84rem; font-weight: 550; line-height: 1.45; }
.choice-row, .level-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pill-choice, .duration, .level-tabs .choice { display: inline-flex; align-items: center; gap: 8px; min-height: 41px; padding: 9px 13px; font-size: .88rem; }
.plan-times { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.deadline-picker { display: grid; justify-items: start; gap: 9px; }
.deadline-date { display: grid; width: min(100%, 280px); gap: 6px; font-size: .9rem; font-weight: 700; }
.deadline-date input { width: 100%; min-width: 0; }
.deadline-date input::-webkit-calendar-picker-indicator { cursor: pointer; }
.inline-check { display: inline-flex; align-items: center; gap: 8px; font-weight: 640; font-size: .9rem; }
.plan-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; border-top: 1px solid var(--border); padding-top: 17px; }
.date-preview { display: flex; align-items: center; gap: 7px; color: #743507; font-weight: 685; font-size: .9rem; }

.goal-banner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(18px, 5vw, 75px);
  border: 1px solid #f0d0ae;
  border-radius: 28px;
  background: linear-gradient(110deg, #fff1e2, #ffebdc 53%, #fae6ef);
  padding: clamp(20px, 4.2vw, 51px);
}
.goal-copy h2 { font-size: clamp(23px, 3.1vw, 39px); margin: 11px 0; color: #532c14; }
.goal-copy p { display: flex; align-items: center; gap: 8px; margin: 4px 0; color: #624832; font-size: .94rem; font-weight: 620; }
.goal-copy .button { margin-top: 12px; font-size: .84rem; }
.goal-timing {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  width: clamp(278px, 31vw, 388px);
  max-width: 100%;
  min-height: clamp(110px, 15vw, 170px);
  padding: 12px clamp(8px, 1.5vw, 18px);
  border-radius: 24px;
  color: #823409;
  background: #fff9efc9;
  border: 1px solid #edc49f;
  text-align: center;
}
.countdown, .goal-date { display: grid; justify-items: center; align-content: center; gap: 5px; }
.countdown strong { font-size: clamp(42px, 5.8vw, 78px); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.06em; }
.countdown span, .goal-date span { font-size: clamp(.78rem, 1.35vw, .95rem); font-weight: 750; }
.goal-date { min-width: 0; border-inline-start: 1px solid #edc49f; min-height: 66px; padding-inline-start: 6px; }
.goal-date span { display: flex; align-items: center; justify-content: center; gap: 5px; }
.goal-date time { font-size: clamp(.94rem, 1.9vw, 1.5rem); font-weight: 810; font-variant-numeric: tabular-nums; }
.home-summary { display: grid; grid-template-columns: 1.6fr 1fr; gap: 15px; margin-top: 15px; }
.next-panel { display: flex; align-items: center; gap: 13px; padding: 16px; }
.next-panel h2 { font-size: 1.1rem; }
.next-panel .button { margin-left: auto; font-size: .82rem; flex: none; }
.overline { font-size: .77rem; color: var(--muted); font-weight: 730; margin-bottom: 3px; }
.progress-panel { display: grid; align-content: center; padding: 14px 16px; gap: 8px; }
.progress-panel, .quick-home { background-color: color-mix(in srgb, var(--pastel-surface) 76%, #fff); }
.dashboard :is(.next-panel, .progress-panel, .tool-card), .resource-card {
  background-image: linear-gradient(120deg, #ffffff26, transparent 68%);
}
.dashboard :is(.quick-home p, .progress-panel .muted, .tool-card p) { color: #4b4239; }
.progress-panel > div { display: flex; justify-content: space-between; align-items: center; gap: 9px; font-size: .86rem; }
.progress-panel b { color: #99470f; }
.progress-panel:hover { border-color: #cb9469; }
progress { appearance: none; display: block; width: 100%; height: 9px; border: 0; overflow: hidden; border-radius: 20px; background: #f0e6dc; color: #c96018; }
progress::-webkit-progress-bar { border-radius: 20px; background: #f0e6dc; }
progress::-webkit-progress-value { border-radius: 20px; background: #c96018; }
progress::-moz-progress-bar { border-radius: 20px; background: #c96018; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.tool-card { display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center; padding: 15px; min-height: 94px; }
.tool-card h3 { font-size: 1rem; font-weight: 790; }
.tool-card p { font-size: .81rem; margin-top: 5px; color: var(--muted); }
.tool-card > svg, .unit-link > svg { color: var(--pastel-ink, #9d5727); }
[data-tone] .tool-icon { background: var(--pastel-inset); color: var(--pastel-ink); }
.tool-card:hover { background-color: var(--pastel-inset); border-color: var(--pastel-ink); }
.unit-link:hover { background: #fffaf4; border-color: #d09b72; }

.level-tabs { margin: 7px 0 16px; }
.track-summary { padding: 20px; display: grid; grid-template-columns: 1fr minmax(170px, 30%); align-items: center; gap: 14px; }
.track-summary h2 { margin: 7px 0 4px; }
.track-summary p, .unit p { color: var(--muted); font-size: .87rem; }
.track-summary > div:last-child { display: grid; grid-template-columns: 1fr auto; justify-items: start; gap: 8px; align-items: center; }
.track-summary progress { grid-column: 1 / -1; }
.unit-list { display: grid; gap: 12px; margin-top: 15px; }
.unit { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 15px; }
.unit-num { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: #fff0de; color: #92430d; font-size: .91rem; font-weight: 820; }
.unit h2, .unit h3 { margin-bottom: 4px; font-size: 1.1rem; }
.unit-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.unit-actions .button { font-size: .79rem; min-height: 37px; padding: 8px 11px; }
.progress-card header { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; justify-content: space-between; }
.progress-card h2 { margin: 15px 0 8px; font-size: 2.25rem; }
.progress-card p { margin: 7px 0 15px; font-size: .87rem; }
.progress-card .button { font-size: .83rem; }
.exam-stats { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.exam-stats h2 { font-size: 1.16rem; margin-bottom: 4px; }
.exam-stats .button { margin-left: auto; }

.lesson-shell { max-width: 744px; }
.lesson-step { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 0 1px; margin-bottom: 12px; color: var(--muted); font-size: .89rem; font-weight: 690; }
.lesson-step progress { grid-column: 1 / -1; }
.lesson-footer { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: 14px; }
.flashcard {
  position: relative;
  background-color: color-mix(in srgb, var(--pastel-surface, #fff) 56%, #fff);
  background-image: radial-gradient(var(--pastel-border, #e8dacd80) 1px, transparent 1px);
  background-size: 18px 18px;
}
.flash-han { font-size: clamp(78px, 13vw, 128px); line-height: 1.12; }
.pinyin { font-size: 1.18rem; color: #94470f; font-weight: 710; }
.pinyin-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; margin: 4px 0 10px; padding: 5px 12px; border: 1px solid var(--border); border-radius: 12px; background: #fffaf3; color: #713b15; font-size: .9rem; font-weight: 650; cursor: pointer; }
.pinyin-toggle input { width: 17px; height: 17px; min-height: 0; margin: 0; accent-color: var(--action); cursor: pointer; }
.annotated-han ruby { ruby-position: under; ruby-align: center; }
.annotated-han rt { display: none; }
.pinyin-when-on, [data-show-pinyin] .pinyin-line-when-off { display: none; }
[data-show-pinyin] .pinyin-when-on { display: block; }
[data-show-pinyin] .annotated-han rt {
  display: ruby-text;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: clamp(.7rem, .52em, 1.05rem);
  font-weight: 650;
  line-height: 1.4;
  color: #8a491e;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}
[data-show-pinyin] .character-set .choice, [data-show-pinyin] .stroke-choices .choice { height: auto; min-height: 46px; padding: 4px 7px; }
@supports not (ruby-position: under) {
  [data-show-pinyin] .annotated-han ruby { display: inline-grid; justify-items: center; vertical-align: top; }
  [data-show-pinyin] .annotated-han rt { display: block; }
}
.card-tools { position: absolute; top: 12px; right: 15px; display: flex; gap: 7px; }
.sound, .bookmark { color: #94470f; background: #fff1e3; }
.bookmark[aria-pressed="true"] { background: #ffd9b5; }
.bookmark[aria-pressed="true"] svg { fill: #d79a65; }
.grammar-note { margin-bottom: 17px; }
.grammar-note h2 { margin-bottom: 7px; }
.grammar-note p { color: var(--muted); }
.formula { color: #713b15; background: #fff1df; border: 1px solid #f0dec9; border-radius: 12px; padding: 12px; margin: 11px 0; text-align: center; font-weight: 720; }
.grammar-example strong { font-size: 1.3rem; margin-right: 9px; }
.grammar-example p { font-size: .92rem; }
.question h2 { font-size: clamp(19px, 3.4vw, 26px); }
.question-han { margin: 13px 0 0; font-size: clamp(27px, 7vw, 64px); line-height: 1.14; }
.question .pinyin { margin-top: 5px; }
.options { display: grid; gap: 8px; margin-top: 15px; }
.option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px solid #e5d8cb;
  border-radius: 12px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 620;
}
.option > span:first-child { display: grid; place-items: center; background: #f4eee8; color: #675143; width: 29px; height: 29px; border-radius: 7px; flex: none; font-size: .82rem; }
.option:hover, .option[aria-pressed="true"] { background: #fff1df; border-color: #c66927; }
.option:disabled { opacity: 1; cursor: default; }
.option.correct { background: #e8f4eb; border-color: #7bb08a; }
.option.wrong { background: #fff0ed; border-color: #c67468; }
.question-footer { margin-top: 17px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.question-footer .button { margin-left: auto; flex-shrink: 0; }
.feedback { color: var(--success); font-size: .88rem; font-weight: 700; }
.feedback.incorrect { color: #9a3f35; }
.timer { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; color: #89390d; background: #ffead4; font-variant-numeric: tabular-nums; }
.result-card { text-align: center; padding: clamp(20px, 5vw, 40px); display: grid; justify-items: center; gap: 10px; }
.result-card h2 { font-size: clamp(23px, 3vw, 31px); }
.result-score { color: #9f450d; font-size: clamp(43px, 8vw, 68px); line-height: 1; font-weight: 850; letter-spacing: -.08em; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.answer-review { text-align: left; width: 100%; margin-top: 10px; border-top: 1px solid var(--border); padding-top: 11px; font-size: .91rem; }
.answer-review summary { cursor: pointer; font-weight: 750; }
.answer-review li { padding: 6px 0; line-height: 1.5; }
.exam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.exam-tile { display: grid; justify-items: start; align-content: start; gap: 11px; scroll-margin-top: 20px; }
.exam-tile p, .exam-intro p { color: var(--muted); }
.exam-tile .button, .exam-intro .button { margin-top: 5px; }
.exam-references { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; }
.exam-intro { text-align: center; display: grid; justify-items: center; gap: 9px; }

.library-controls { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; align-items: center; gap: 11px; }
.search-field { position: relative; }
.search-field svg { position: absolute; top: 12px; left: 13px; color: #8d5026; }
.search-field input { padding-left: 44px !important; }
.results-label { margin: 16px 0 9px; font-size: .86rem; font-weight: 650; }
.word-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.library-word { padding: 13px; }
.library-word > div { display: flex; align-items: center; justify-content: space-between; }
.library-word .icon-button { width: 33px; height: 33px; }
.library-word .icon-button svg { width: 16px; height: 16px; }
.library-word h2 { margin-top: 8px; font-size: 2.14rem; font-weight: 700; }
.library-word p { margin-top: 2px; font-size: .9rem; }
.library-word > a { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 670; color: #88420f; margin-top: 10px; }
.library-word > a:hover { text-decoration: underline; }
.empty { grid-column: 1 / -1; color: var(--muted); }

.writing-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); grid-template-areas: "board picker"; gap: 16px; align-items: start; }
.writing-board { grid-area: board; padding: clamp(14px, 2.5vw, 29px); display: grid; justify-items: center; gap: 11px; text-align: center; }
.writing-grid {
  position: relative;
  width: min(100%, 330px);
  aspect-ratio: 1;
  border: 1px solid #cf8b79;
  border-radius: 5px;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), #e4b3a8 calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px)),
    linear-gradient(transparent calc(50% - .5px), #e4b3a8 calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px)),
    linear-gradient(45deg, transparent 49.85%, #eaccc4 50%, transparent 50.15%),
    linear-gradient(-45deg, transparent 49.85%, #eaccc4 50%, transparent 50.15%),
    #fffaf5;
}
#stroke-target { width: 100%; height: 100%; touch-action: none; }
.writing-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.writing-picker { grid-area: picker; display: grid; gap: 13px; }
.writing-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(95px, auto); gap: 8px; }
.writing-filters input, .writing-filters select { width: 100%; min-width: 0; }
.writing-tabs, .writing-pagination { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.writing-pagination { justify-content: space-between; }
.writing-pagination span { color: var(--muted); font-size: .9rem; }
.writing-results { display: grid; align-content: start; gap: 6px; list-style: none; margin: 0; padding: 3px; max-height: 420px; overflow: auto; }
.writing-result {
  width: 100%; display: grid; gap: 2px; text-align: start; padding: 8px 12px; border: 1px solid var(--border); border-radius: 12px;
  color: inherit; background: #fff; cursor: pointer; overflow-wrap: anywhere;
}
.writing-result:hover, .writing-result[aria-pressed="true"], .writing-tabs [aria-pressed="true"], .character-set [aria-pressed="true"] {
  border-color: #b96126; background: #fbf1e6;
}
.writing-result-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 9px; }
.writing-result-title b { font-size: 1.32rem; }
.writing-result small { color: var(--muted); }
.writing-empty { padding: 8px 3px; }
.writing-term h2 { font-size: clamp(1.65rem, 3.2vw, 2.55rem); }
.writing-board .character-set { justify-content: center; }
@media (max-width: 920px) {
  .writing-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "picker" "board"; }
  .writing-results { max-height: 290px; }
}
.character-set { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.character-set .choice { display: inline-grid; place-items: center; position: relative; width: 48px; height: 46px; font-size: 1.45rem; }
.character-set svg { position: absolute; top: 1px; right: 1px; color: var(--success); }
.speaking-card { text-align: center; }
.speaking-card h2 { font-size: clamp(26px, 5.5vw, 55px); margin: 12px 0 6px; }
.speaking-controls { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; margin: 14px 0 7px; }
.speaking-card audio { display: block; width: min(100%, 320px); margin: 14px auto 0; }
.speech-result {
  max-width: 760px; margin: 18px auto 0; padding: clamp(14px, 3vw, 24px);
  background: #fcf7ef; border: 1px solid #ebdbca; border-radius: 20px;
}
.speech-result h3 { color: #8a451d; font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1; margin: 0; }
.speech-result h3 small { font-size: .5em; margin-left: 2px; }
.speech-result p:last-child { margin-bottom: 0; }
.speech-transcript { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 10px; }
.speech-transcript span { font-size: 1.3rem; overflow-wrap: anywhere; min-width: 0; }
.speech-words { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; padding: 0; }
.speech-word { display: grid; gap: 2px; padding: 6px 12px; border-radius: 12px; background: #f1e9dc; color: #634d36; }
.speech-word b { font-size: 1.2rem; }
.speech-word span { font-size: .77rem; }
.speech-word-match { background: #e1f1e7; color: #24583a; }
.speech-word-different { background: #fae4da; color: #8a391e; }
.toast {
  position: fixed;
  z-index: 9;
  right: 18px;
  bottom: 18px;
  width: max-content;
  max-width: calc(100vw - 36px);
  border-radius: 14px;
  background: #29231e;
  color: #fff;
  box-shadow: 0 8px 26px #38221832;
  padding: 12px 15px;
  font-size: .88rem;
  font-weight: 660;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .15s, transform .15s;
}
.toast.is-visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .top-nav a { padding-inline: 10px; }
  .guest-start, .login-link { background: var(--action); }
  .guest-features { padding-inline: 26px; gap: 14px; }
  .guest-card { min-height: 110px; padding: 7px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-summary { grid-template-columns: 1.25fr 1fr; }
  .word-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto; padding-inline: 16px; min-height: 64px; }
  .art-logo { width: 36px; }
  .menu-toggle { display: inline-grid; }
  .top-nav { display: none; grid-column: 1 / -1; position: absolute; top: 63px; left: 12px; right: 12px; border-radius: 16px; padding: 8px; box-shadow: 0 10px 25px #42220821; }
  .menu-open .top-nav { display: grid; grid-template-columns: repeat(2, 1fr); text-align: center; }
  .top-nav a { white-space: normal; }
  .header-actions { gap: 6px; }
  .header-actions .icon-button { width: 36px; height: 36px; }
}
@media (max-width: 760px) {
  .guest-stage { height: auto; min-height: 430px; display: grid; justify-items: center; align-content: end; padding-top: 30px; }
  .guest-stage h1 { position: static; z-index: auto; font-size: clamp(40px, 8.8vw, 66px); }
  .guest-stage h1 span { margin-top: 7px; left: 0; }
  .guest-stage .art-panda { position: static; width: min(65%, 300px); min-width: 218px; order: 3; margin-top: 5px; }
  .guest-start { position: static; min-height: 47px; width: min(78%, 255px); margin-top: 21px; font-size: 15px; gap: 9px; }
  .play { border-top-width: 9px; border-bottom-width: 9px; border-left-width: 16px; }
  .guest-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 20px 15px 37px; }
  .guest-card, .guest-card:last-child { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); min-height: 91px; border-radius: 16px; gap: 5px; }
  .guest-card .art { max-width: 86px; }
  .guest-card h2 { font-size: 15px; }
  .guest-card p { font-size: 11px; margin-top: 5px; letter-spacing: -.035em; }
  .shell, .auth-layout { width: calc(100% - 32px); padding-bottom: 44px; }
  .auth-layout { grid-template-columns: 1fr; max-width: 470px; margin-top: 0; }
  .auth-illustration { display: none; }
  .plan-times, .home-summary, .exam-grid { grid-template-columns: 1fr; }
  .progress-grid { grid-template-columns: 1fr; }
  .unit { grid-template-columns: auto 1fr; }
  .unit-actions { grid-column: 2; }
  .unit-link { grid-template-columns: auto 1fr auto; }
}
@media (max-width: 470px) {
  .header-inner { gap: 6px; padding-inline: 12px; }
  .guest-stage { min-height: 388px; padding-top: 26px; }
  .guest-features { padding-inline: 12px; }
  .guest-card, .guest-card:last-child { padding: 5px; gap: 4px; }
  .guest-card h2 { font-size: 13.5px; }
  .guest-card p { font-size: 10px; }
  .level-options { grid-template-columns: 1fr; gap: 6px; }
  .level-choice { min-height: 0; padding: 11px 14px; gap: 5px; }
  .plan-footer { align-items: start; flex-direction: column; }
  .plan-footer .button { width: 100%; }
  .goal-banner { gap: 8px; padding: 15px; border-radius: 19px; }
  .goal-copy p { font-size: .77rem; }
  .goal-copy .button { min-height: 36px; }
  .countdown strong { font-size: 44px; }
  .next-panel { flex-wrap: wrap; }
  .next-panel .button { margin-left: auto; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 70px; padding: 9px 12px; }
  .track-summary { grid-template-columns: 1fr; }
  .word-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-controls { grid-template-columns: 1fr 1fr; }
  .library-controls > :first-child { grid-column: 1 / -1; }
  .exam-stats { flex-wrap: wrap; }
  .exam-stats .button { margin-left: 0; }
  .question-footer { flex-wrap: wrap; }
}
@media (max-width: 660px) {
  .goal-banner { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .goal-timing { width: 100%; min-height: 94px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

[hidden] { display: none !important; }
.guest-intros { width: min(100% - 80px, 1480px); margin: 0 auto; padding: 0 0 66px; display: grid; gap: 22px; }
.guest-intro {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(300px, .92fr);
  align-items: center;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid var(--pastel-border);
  border-radius: 32px;
}
.intro-copy { padding: clamp(24px, 5.2vw, 82px); }
.intro-copy h2, .guest-try h2 { font-size: clamp(27px, 4vw, 54px); font-weight: 825; }
.intro-copy h2 { max-width: 15ch; margin-top: 9px; }
.intro-copy p, .guest-try p { color: var(--muted); font-size: clamp(.95rem, 1.28vw, 1.18rem); }
.intro-copy p { max-width: 49ch; margin: 14px 0 22px; }
.intro-reverse { grid-template-columns: minmax(300px, .92fr) 1fr; }
.intro-reverse .intro-copy { grid-column: 2; grid-row: 1; }
.intro-reverse .phone-scene { grid-column: 1; grid-row: 1; }
.phone-scene {
  display: grid;
  place-items: end center;
  min-height: 460px;
  height: 100%;
  padding: 38px 12px 0;
  background: radial-gradient(ellipse at 50% 83%, var(--pastel-inset), transparent 74%);
}
.phone {
  position: relative;
  width: min(100%, 268px);
  min-height: 385px;
  border: 6px solid #302722;
  border-radius: 32px 32px 0 0;
  border-bottom: 0;
  background: var(--paper);
  box-shadow: 4px 11px 30px #83481539, 0 0 0 2px #a3512a65;
  padding: 24px 12px 14px;
  transform: translateY(2px);
}
.phone-camera { position: absolute; top: 5px; left: 50%; transform: translateX(-50%); width: 63px; height: 13px; border-radius: 12px; background: #302722; }
.phone-brand { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.phone-brand b { font-size: 22px; letter-spacing: -.08em; }
.phone-title { font-weight: 810; margin: 13px 0 9px; }
.phone-meter { display: grid; gap: 4px; }
.phone-meter progress { height: 6px; }
.phone-flash { display: grid; justify-items: center; gap: 3px; margin-top: 12px; padding: 8px; border: 1px solid #ebd6c3; border-radius: 18px; background: white; }
.phone-flash strong { font-size: 77px; line-height: 1.1; color: #32231a; }
.phone-flash b { color: #88420f; }
.phone-flash p { color: #306b4a; font-size: 12px; }
.phone-button { display: block; text-align: center; border-radius: 100px; background: var(--action); color: #fff; font-weight: 750; padding: 8px 5px; font-size: 11px; margin: 12px auto 0; }
.phone-button.outline { background: white; color: #88420f; border: 1px solid var(--border); }
.phone-sheet { width: 100%; border-collapse: collapse; background: white; text-align: left; }
.phone-sheet td, .phone-sheet th { border: 1px solid #ebd6c3; padding: 6px 4px; font-size: 10px; }
.phone-sheet thead { background: #ffe8cf; color: #713b15; }
.phone-sheet tbody th { font-size: 16px; text-align: center; }
.guest-try { display: flex; gap: 15px; align-items: center; justify-content: space-between; padding: clamp(22px, 4vw, 46px); border: 1px solid var(--pastel-border); border-radius: 25px; }
.guest-try h2 { font-size: clamp(22px, 3vw, 40px); }
.guest-try p { margin-top: 7px; }
.guest-try .button { flex: none; }
.roadmap-extra { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.course-note { padding: 9px 13px; border-radius: 12px; background: #ffeedc; color: #773a12; font-weight: 650; }
.flash-shell { max-width: 960px; }
.flash-layout.with-strokes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .78fr); gap: 14px; }
.flashcard { min-width: 0; }
.flash-han { max-width: 100%; overflow-wrap: anywhere; font-size: clamp(48px, 9vw, 126px); }
.flash-layout.with-strokes .flash-han { font-size: clamp(48px, 6.6vw, 94px); }
.card-stroke { display: grid; align-content: start; justify-items: center; gap: 10px; text-align: center; min-width: 0; }
.card-stroke p { font-size: .88rem; }
.card-stroke .writing-grid { width: min(100%, 250px); }
.card-stroke-target { width: 100%; height: 100%; touch-action: none; }
.stroke-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.stroke-choices button { min-width: 42px; min-height: 41px; font-size: 1.55rem; }
.status-choice { margin-top: 12px; padding: 8px 13px; font-size: .86rem; }
.exercise-links { margin-top: 14px; }
.exercise-prompt { font-size: clamp(21px, 4vw, 37px); margin: 12px 0; }
.exercise-format { margin: 0 0 16px; }
.exercise-format select[name="exercise-group"] { display: block; max-width: 100%; margin-top: 6px; }
.exercise-audio { display: flex; align-items: center; gap: 11px; margin: 12px 0; font-weight: 690; color: #733809; }
.exercise-response { display: grid; justify-items: start; gap: 12px; margin-top: 10px; }
.exercise-response .options, .exercise-response > label { width: 100%; }
.exercise-response > label { display: grid; gap: 7px; font-weight: 690; }
.exercise-response .option b { font-weight: 650; }
.exercise-response .option b[lang="zh-Hans"] { font-size: 1.25em; }
.exercise-feedback { color: var(--success); font-weight: 680; }
.exercise-feedback.incorrect { color: #953e31; }
.exercise-feedback:empty { display: none; }
.match-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 7px; }
.match-header span { color: var(--muted); font-size: .85rem; }
.match-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 15px 0; }
.match-card {
  display: grid;
  place-items: center;
  min-height: 104px;
  padding: 7px;
  border: 1px solid #ebcaac;
  background: #fff4e7;
  border-radius: 13px;
  color: #72421f;
  font-size: clamp(.79rem, 1.25vw, .97rem);
  font-weight: 720;
  overflow-wrap: anywhere;
}
.match-card:hover, .match-card[aria-pressed="true"] { background: #fff; border-color: #b85c21; }
.match-card[disabled] { background: #e8f4e8; border-color: #98bba2; color: #29543a; opacity: 1; }
.match-card span[lang="zh-Hans"] { font-size: 1.5rem; }
.match-panel .button { margin-top: 9px; }
.mastery-list { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 11px; }
.mastery-list .choice { padding: 6px 9px; font-size: .83rem; }
.mastery-list .choice span { font-size: 1.1rem; }
.sheet-shell { max-width: 1480px; }
.sheet-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 13px; }
.sheet-tools .search-field { min-width: min(100%, 270px); flex: 1; }
.sheet-tools .button { flex-shrink: 0; }
.sheet-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.add-word { margin-bottom: 13px; display: grid; gap: 13px; }
.add-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; }
.add-grid label { display: grid; gap: 5px; font-weight: 660; }
#sheet-count { margin-bottom: 6px; }
.sheet-mobile-tip { display: none; font-size: .82rem; margin-bottom: 6px; }
.sheet-scroll { max-width: 100%; max-height: min(68vh, 780px); overflow: auto; border: 1px solid #e9c7aa; border-radius: 12px; background: white; }
.vocab-sheet { min-width: 785px; width: 100%; border-spacing: 0; font-size: .91rem; }
.vocab-sheet th, .vocab-sheet td { text-align: left; vertical-align: middle; padding: 8px 10px; border-right: 1px solid #eddfd4; border-bottom: 1px solid #eddfd4; }
.vocab-sheet th:last-child, .vocab-sheet td:last-child { border-right: 0; }
.vocab-sheet thead { position: sticky; top: 0; z-index: 1; background: #f9ddbd; color: #6b3411; }
.vocab-sheet thead th { padding-block: 12px; white-space: nowrap; }
.vocab-sheet tbody tr:nth-child(even) { background: #fffaf4; }
.vocab-sheet tbody tr:hover { background: #fff2e3; }
.vocab-sheet tbody th { font-size: 1.28rem; min-width: 92px; color: #472611; }
.vocab-sheet td:first-child { width: 54px; text-align: center; color: var(--muted); }
.vocab-sheet td:nth-child(4) { min-width: 105px; color: #87420f; font-weight: 650; }
.vocab-sheet td:nth-child(6) { width: 23%; min-width: 146px; }
.vocab-sheet td:last-child { width: 143px; }
.vocab-sheet td input, .vocab-sheet td select { min-height: 36px !important; padding: 6px 7px !important; border-radius: 6px !important; font-size: .85rem; }
.vocab-sheet td select:has(option[value="1"]:checked) { background: #e5f3e8; color: #24583a; border-color: #a8c6ad; }
.sheet-empty { text-align: center !important; padding: 16px !important; }
.lookup-popup { position: fixed; z-index: 12; width: min(330px, calc(100vw - 16px)); max-height: min(50vh, 425px); display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-color: #d9a780; box-shadow: 0 10px 35px #66371f29; }
.lookup-header { padding: 2px 8px 2px 13px; background: #ffeedb; display: flex; align-items: center; justify-content: space-between; }
.lookup-header .icon-button { width: 34px; height: 34px; }
.lookup-results { overflow: auto; overscroll-behavior: contain; padding: 0 13px; }
.lookup-entry { padding: 8px 0; border-bottom: 1px solid var(--border); }
.lookup-entry:last-child { border-bottom: 0; }
.lookup-entry b { font-size: 1.5rem; }
.lookup-entry small { color: var(--muted); font-weight: 650; }
.lookup-entry p { font-size: .94rem; }
.lookup-entry .pinyin { font-size: .96rem; }
.lookup-title, .question-listen { display: flex; align-items: center; gap: 10px; }
.lookup-title { justify-content: space-between; }
.lookup-title .sound { flex: 0 0 auto; }
.question-listen { justify-content: center; margin: 12px 0; }
.lookup-entry .button { min-height: 36px; margin-top: 5px; font-size: .8rem; padding: 5px 10px; }
.lookup-results .back-link { margin: 8px 0; text-decoration: underline; }
.lookup-tip { color: var(--muted); font-size: .84rem; margin-top: 12px; }
[data-lookup] .option b, [data-lookup] .option, [data-lookup] .match-card span {
  -webkit-user-select: text;
  user-select: text;
}
@media (min-width: 1300px) {
  .shell:not(.auth-layout):not(.plan-shell):not(.lesson-shell):not(.flash-shell) { width: min(100% - 94px, 1480px); }
  .lesson-shell { max-width: 870px; }
  .flash-shell { max-width: 1240px; }
  .tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .exercise-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tool-card h3 { font-size: 1.12rem; }
  .tool-card p { font-size: .89rem; }
  .page-heading p { font-size: 1.06rem; }
  .word-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .guest-intros { width: calc(100% - 26px); padding-bottom: 40px; gap: 12px; }
  .guest-intro, .intro-reverse { grid-template-columns: minmax(0, 1fr); border-radius: 23px; }
  .intro-reverse .intro-copy, .intro-reverse .phone-scene { grid-column: auto; grid-row: auto; }
  .intro-copy { padding: 23px 22px 10px; }
  .intro-copy h2 { max-width: 100%; }
  .intro-copy p { margin: 8px 0 14px; }
  .phone-scene { min-height: 314px; padding-top: 10px; }
  .phone { min-height: 303px; width: 225px; padding-top: 18px; }
  .phone-flash strong { font-size: 53px; }
  .guest-try { flex-wrap: wrap; }
  .flash-layout.with-strokes { grid-template-columns: minmax(0, 1fr); }
  .add-grid { grid-template-columns: 1fr 1fr; }
  .sheet-mobile-tip { display: block; }
}
@media (max-width: 470px) {
  .match-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .match-card { min-height: 80px; }
  .sheet-tools { gap: 6px; }
  .sheet-tools .search-field { flex-basis: 100%; }
  .sheet-download { width: 45px; padding-inline: 0; }
  .sheet-download .download-label { display: none; }
  .add-grid { grid-template-columns: 1fr; }
  .flash-han { font-size: clamp(38px, 15vw, 64px); }
}

/* Flashcard faces share the footprint, while tools stay outside the flip layer. */
.flashcard {
  display: block;
  min-height: 0;
  padding: 0;
  perspective: 1600px;
  cursor: pointer;
  text-align: left;
}
.flashcard .card-tools { z-index: 2; }
.flash-flip-button {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 8px;
  border: 0;
  color: #814010;
  background: transparent;
  font-weight: 750;
  font-size: .84rem;
}
.flash-flip-button [aria-hidden] { font-size: 1.3rem; line-height: 1; }
.flash-flip-button:hover { background: #ffeedc; }
.flash-flip-layer {
  position: relative;
  display: grid;
  grid-template-areas: "face";
  transform-style: preserve-3d;
  transition: transform .4s cubic-bezier(.2,.67,.25,1);
}
.flashcard.is-flipped .flash-flip-layer { transform: rotateY(180deg); }
.flash-face {
  grid-area: face;
  min-width: 0;
  padding: clamp(64px, 8vw, 86px) clamp(14px, 4vw, 48px) 16px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.flash-face[inert] { pointer-events: none; }
.flash-front { display: grid; place-content: center; justify-items: center; text-align: center; min-height: 275px; gap: 10px; }
.flash-word { display: grid; justify-items: center; gap: 8px; min-width: 0; }
.flash-front-illustrated {
  width: min(100%, 880px);
  justify-self: center;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(16px, 4vw, 52px);
}
.flash-art-slot {
  display: grid;
  place-items: center;
  width: min(100%, 240px);
  aspect-ratio: 1;
}
.flash-illustration { background-repeat: no-repeat; }
.flash-layout.with-strokes .flash-front-illustrated { gap: 14px; }
.flash-layout.with-strokes .flash-art-slot { max-width: 194px; }
.flash-strokes-content { display: grid; justify-items: center; gap: 9px; width: 100%; }
#flash-strokes-back h2 { font-size: clamp(1rem, 4vw, 1.35rem); }
#flash-strokes-back .writing-grid { width: min(100%, 216px); }
#flash-strokes-back .writing-controls .button { min-height: 42px; padding-inline: 11px; }
@media (max-width: 760px) {
  .flash-front-illustrated { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .flash-art-slot { width: clamp(100px, 35vw, 150px); }
  .flashcard:not(.is-flipped) .flash-back { position: absolute; inset: 0; }
}
.flash-back { transform: rotateY(180deg); }
.flash-definition { max-width: 690px; margin-inline: auto; }
.flash-definition > h2 { color: #2f694b; margin-bottom: 5px; font-size: clamp(1.25rem, 3vw, 1.95rem); overflow-wrap: anywhere; }
.flash-reading { display: flex; flex-wrap: wrap; gap: 5px 9px; align-items: center; }
.flash-reading b, .flash-reading [lang="zh-Hans"] { color: #814010; }
.flash-reading span:last-child { color: var(--muted); font-size: .85rem; }
.flash-usage { margin-top: 9px; }
.flash-example { margin: 12px 0; padding: 8px 12px; border: 1px solid #efdfd1; border-radius: 11px; background: #fffaf4; }
.flash-example strong { font-size: 1.15rem; font-weight: 650; }
.flash-example .icon-button { width: 31px; height: 31px; }
.flash-example p { color: var(--muted); }
.flash-dictionary { margin: 12px 0 0; border-top: 1px solid var(--border); }
.flash-dictionary summary { padding: 10px 0 4px; color: #814010; cursor: pointer; font-size: .89rem; font-weight: 750; }
.flash-dict-content { display: grid; gap: 13px; margin-top: 8px; font-size: .9rem; }
.flash-dict-content h3 { margin-bottom: 5px; font-size: .96rem; }
.flash-dict-content ul { margin: 5px 0; padding-left: 20px; }
.flash-char { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 9px; padding: 7px 0; border-bottom: 1px solid #efdfd1; }
.flash-char > strong { color: #743a14; font-size: 1.6rem; text-align: center; }
.flash-char div { line-height: 1.5; }
.flash-sources { overflow-wrap: anywhere; }
.flash-sources a { color: #814010; text-decoration: underline; text-underline-offset: 2px; }
.flash-stroke-action { position: relative; display: flex; justify-content: center; padding: 4px 9px 24px; }
.quick-home { margin-top: 14px; }
.quick-home p { margin-top: 3px; font-size: .88rem; }
.quick-shell { max-width: 940px; }
.quick-empty { display: grid; justify-items: start; gap: 13px; }
.quick-prompt { font-size: clamp(1.2rem, 3vw, 1.55rem); margin: 12px 0; }
.quick-prompt [lang="zh-Hans"] { font-size: 1.7em; color: #814010; }
.quick-prompt small, .quick-pairs small, .quick-result-list small, .quick-proposal-list small { color: var(--muted); }
.quick-question .quick-next, .quick-recall { margin-top: 13px; }
.quick-question [data-quick="reveal"] { margin-top: 12px; }
.quick-pairs { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 10px; margin-top: 12px; }
.quick-pairs > div { display: grid; align-content: start; gap: 6px; min-width: 0; }
.quick-pairs .option { min-height: 54px; overflow-wrap: anywhere; font-size: .88rem; }
.quick-question .option .quick-han { display: inline; width: auto; height: auto; flex: 0 1 auto; background: transparent; color: inherit; font-size: 1.17rem; overflow-wrap: anywhere; }
.quick-pairs .option b { margin-left: auto; color: #814010; flex: none; }
.quick-pairs [lang="zh-Hans"] { font-size: 1.17rem; }
.quick-score { color: #984713; font-size: clamp(2rem, 5vw, 3.3rem); }
.quick-result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 13px 0; }
.quick-result-list h3 { color: #306647; font-size: 1.13rem; }
.quick-result-list:last-child h3 { color: #8d3f20; }
.quick-result-list h3 > span { margin-left: 5px; }
.quick-result-list ul { list-style: none; padding: 0; margin: 5px 0 0; }
.quick-result-list li { padding: 7px 0; border-bottom: 1px solid var(--border); }
.quick-result-list li:last-child { border-bottom: 0; }
.quick-result-list li [lang="zh-Hans"] { font-size: 1.23rem; }
.quick-result-list > p { margin-top: 6px; }
.quick-result-list .quick-correction { color: #6d400e; font-size: .9rem; font-weight: 670; }
.quick-proposals { margin-bottom: 13px; }
.quick-proposals h3 { margin-bottom: 7px; }
.quick-proposal-all, .quick-proposal-list label { display: flex; align-items: center; gap: 8px; padding-block: 8px; cursor: pointer; }
.quick-proposal-all { margin-top: 7px; font-weight: 730; }
.quick-proposal-list { border-top: 1px solid var(--border); margin-bottom: 9px; }
.quick-proposal-list label { flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.quick-proposal-list label > span { margin-left: auto; font-size: .84rem; color: var(--muted); }
.quick-result-actions { margin-top: 12px; }
@media (max-width: 530px) {
  .flash-front { min-height: 230px; }
  .flash-face { padding-inline: 13px; }
  .quick-result-grid { grid-template-columns: 1fr; }
  .quick-pairs .option { gap: 4px; padding-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .flash-flip-layer { transition: none; }
}



