/* ============ foundations ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  background:
    radial-gradient(1100px 700px at 8% -10%, #fffaf1 0%, transparent 55%),
    radial-gradient(900px 700px at 100% 0%, #e7f1eb 0%, transparent 50%),
    linear-gradient(180deg, #f7f3eb 0%, #f1ece2 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:root {
  --bg: #f4f0e8;
  --bg-deep: #ece5d8;
  --card: #fffdf8;
  --ink: #1d2b2f;
  --ink-2: #314247;
  --muted: #718083;
  --line: #e3dbcc;
  --line-strong: #d2c8b7;
  --primary: #0e6b5b;
  --primary-deep: #084b40;
  --primary-soft: #e1efe8;
  --vowel: #cf5b43;
  --vowel-soft: #fbe8e1;
  --consonant: #356b9d;
  --consonant-soft: #e6eef7;
  --amber: #a66b18;
  --amber-soft: #fbf0d7;
  --green: #2c7a55;
  --green-soft: #e2f1e7;
  --shadow-sm: 0 2px 8px rgba(29, 43, 47, .05);
  --shadow: 0 18px 50px rgba(29, 43, 47, .08);
  --radius-lg: 26px;
  --radius: 18px;
  --radius-sm: 12px;
  --sidebar: 250px;
  --font-serif: Georgia, "Times New Roman", "Songti SC", serif;
  --font-ipa: "Segoe UI", "Arial Unicode MS", "Charis SIL", "Doulos SIL", sans-serif;
}
/* 换肤后门：只改这里的颜色变量，就能整体换风格；布局和功能不受影响。 */
[data-theme="ocean"] {
  --bg: #edf5f6;
  --bg-deep: #dce9ea;
  --card: #fbfefe;
  --ink: #172c32;
  --ink-2: #2b464d;
  --muted: #647c81;
  --line: #d5e4e5;
  --line-strong: #bcd2d4;
  --primary: #0b6075;
  --primary-deep: #064654;
  --primary-soft: #dceff2;
  --vowel: #c15b45;
  --vowel-soft: #fae8e2;
  --consonant: #2f6f8f;
  --consonant-soft: #e0eff5;
  --amber: #9a6a1c;
  --amber-soft: #f8efd9;
  --green: #2d7a63;
  --green-soft: #e0f1e9;
}
[data-theme="ocean"] body {
  background:
    radial-gradient(1100px 700px at 8% -10%, #f7fdfe 0%, transparent 55%),
    radial-gradient(900px 700px at 100% 0%, #dceef0 0%, transparent 50%),
    linear-gradient(180deg, #eef6f7 0%, #e4eff0 100%);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
::selection { background: #f6d99b; color: var(--ink); }
:focus-visible { outline: 3px solid rgba(14, 107, 91, .35); outline-offset: 3px; border-radius: 6px; }
svg { display: block; }
[data-icon] svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ============ layout ============ */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  padding: 26px 16px 18px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 248, .74);
  backdrop-filter: blur(18px);
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 24px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(145deg, #117a68, #0a5347);
  box-shadow: 0 8px 18px rgba(10, 83, 71, .25);
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding-bottom: 10px;
  flex: none;
}
.brand-mark i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: #f7efe0;
  height: 10px;
}
.brand-mark i:nth-child(2) { height: 16px; }
.brand-mark i:nth-child(3) { height: 7px; }
.brand-mark.small { width: 30px; height: 30px; border-radius: 10px; padding-bottom: 7px; }
.brand-mark.small i { width: 2.5px; height: 8px; }
.brand-mark.small i:nth-child(2) { height: 13px; }
.brand-mark.small i:nth-child(3) { height: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-serif); font-size: 22px; letter-spacing: .02em; }
.brand-text small { font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.side-nav { display: flex; flex-direction: column; gap: 5px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 14px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nav-item:hover { background: rgba(14, 107, 91, .07); }
.nav-item.is-active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(14, 107, 91, .24);
}
.nav-item kbd {
  margin-left: auto;
  font-family: inherit;
  font-size: 9px;
  line-height: 1;
  padding: 3px 5px;
  border: 1px solid currentColor;
  border-radius: 5px;
  opacity: .45;
}
.nav-icon { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.daily-mini {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, .8);
  border-radius: 16px;
  padding: 14px;
}
.daily-mini-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; color: var(--muted); }
.daily-mini-top strong { color: var(--ink); font-size: 13px; font-variant-numeric: tabular-nums; }
.mini-track { height: 5px; border-radius: 999px; background: var(--bg-deep); overflow: hidden; margin: 10px 0 9px; }
.mini-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #66b79c); transition: width .4s ease; }
.daily-mini p { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.55; }
.sample-badge {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .08em;
  padding: 8px;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
}
.main-shell { min-height: 100vh; margin-left: var(--sidebar); }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 32px;
  background: rgba(247, 243, 235, .78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(227, 219, 204, .7);
}
.mobile-brand { display: none; border: 0; background: transparent; align-items: center; gap: 9px; font-family: var(--font-serif); font-size: 18px; cursor: pointer; padding: 0; }
.search-trigger {
  width: min(460px, 46vw);
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, .82);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.search-trigger:hover { border-color: var(--line-strong); background: var(--card); }
.search-trigger [data-icon] svg { width: 17px; height: 17px; }
.search-trigger kbd {
  margin-left: auto;
  font-family: inherit;
  font-size: 10px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f7f3eb;
}
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.accent-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, .8);
}
.accent-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
}
.accent-switch button.is-active { background: var(--ink); color: #fff; }
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-2);
  flex: none;
}
.icon-btn:hover { background: #f7f3eb; }
.icon-btn.ghost { border-color: transparent; background: transparent; font-size: 18px; }
.view { width: 100%; max-width: 1260px; margin: 0 auto; padding: 32px; }
.bottom-nav { display: none; }

/* ============ common ============ */
.eyebrow {
  display: inline-block;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 800;
}
.muted { color: var(--muted); }
.tiny { font-size: 11px; line-height: 1.6; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn [data-icon] svg { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(14, 107, 91, .2); }
.btn-primary:hover { background: var(--primary-deep); }
.btn-soft { background: var(--primary-soft); color: var(--primary-deep); }
.btn-ghost { background: var(--card); border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { background: #f7f3eb; }
.btn-sm { padding: 7px 11px; font-size: 11px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.page-title { margin: 0; font-family: var(--font-serif); font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -.025em; font-weight: 600; }
.page-sub { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; max-width: 620px; }
.section-title { display: flex; align-items: baseline; gap: 10px; margin: 30px 0 14px; }
.section-title h2 { margin: 0; font-family: var(--font-serif); font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.section-title span { color: var(--muted); font-size: 12px; }
.divider { height: 1px; background: var(--line); margin: 22px 0; border: 0; }
.empty {
  padding: 40px 22px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.empty strong { display: block; color: var(--ink); font-family: var(--font-serif); font-size: 20px; margin-bottom: 6px; }

/* ============ study ============ */
.study-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; align-items: start; }
.study-card { position: relative; overflow: hidden; padding: 28px; }
.study-card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -120px;
  top: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 107, 91, .1), transparent 68%);
  pointer-events: none;
}
.study-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.counter { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.counter strong { color: var(--ink); font-family: var(--font-serif); font-size: 19px; margin-right: 2px; }
.progress-line { height: 6px; border-radius: 999px; background: var(--bg-deep); overflow: hidden; margin: 16px 0 12px; }
.progress-line i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #62b79b); transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.study-step-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 14px; }
.step-btn { border: 1px solid var(--line); background: var(--card); color: var(--ink-2); border-radius: 999px; padding: 6px 10px; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.step-btn:hover:not(:disabled) { border-color: var(--line-strong); background: #f8f5ed; }
.step-btn:disabled { opacity: .35; cursor: not-allowed; }
.step-btn [data-icon] svg { width: 12px; height: 12px; }
.word-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.word {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(62px, 8vw, 104px);
  line-height: .92;
  letter-spacing: -.045em;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.word-actions { display: flex; gap: 8px; padding-bottom: 10px; }
.word-actions .icon-btn { width: 44px; height: 44px; background: var(--primary-soft); border-color: transparent; color: var(--primary-deep); }
.letter-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0 18px; }
.letter-tile {
  min-width: 52px;
  height: 62px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}
.letter-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.letter-tile .glyph { font-family: var(--font-serif); font-size: 25px; line-height: 1; font-weight: 700; text-transform: uppercase; }
.letter-tile .tag { font-size: 8px; letter-spacing: .04em; margin-top: 6px; opacity: .7; white-space: nowrap; }
.letter-tile.vowel { color: var(--vowel); background: var(--vowel-soft); border-color: #f0c9bd; }
.letter-tile.consonant { color: var(--consonant); background: var(--consonant-soft); border-color: #c6d9ea; }
.letter-tile.silent { color: var(--muted); background: #f2efe8; border-style: dashed; }
.letter-tile.silent .glyph { text-decoration: line-through; text-decoration-thickness: 1px; opacity: .5; }
.ipa-block { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.ipa {
  font-family: var(--font-ipa);
  font-size: clamp(25px, 3vw, 33px);
  letter-spacing: .015em;
  line-height: 1.2;
}
.accent-pill {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-deep);
}
.phoneme-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 13px 0 17px; }
.phoneme-chip {
  border: 1px solid;
  border-radius: 999px;
  padding: 7px 12px;
  font-family: var(--font-ipa);
  font-size: 18px;
  line-height: 1.2;
  cursor: pointer;
  background: #fff;
  transition: transform .16s ease, box-shadow .16s ease;
}
.phoneme-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.phoneme-chip.vowel { color: var(--vowel); border-color: #efc8bd; background: var(--vowel-soft); }
.phoneme-chip.consonant { color: var(--consonant); border-color: #c9dbeb; background: var(--consonant-soft); }
.phoneme-chip.is-active { transform: translateY(-2px) scale(1.07); box-shadow: 0 8px 18px rgba(29, 43, 47, .16); }
.phoneme-chip.is-dim { opacity: .35; }
.play-row { display: flex; flex-wrap: wrap; gap: 9px; }
.play-row .btn { padding: 9px 14px; }
.meaning-block { margin-top: 23px; padding-top: 20px; border-top: 1px dashed var(--line); }
.pos-line { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.pos-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--amber);
  background: var(--amber-soft);
  border-radius: 6px;
  padding: 4px 7px;
}
.pos-name { font-size: 11px; color: var(--muted); }
.pos-hint { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.meaning-zh { margin: 8px 0 0; font-size: 23px; font-weight: 700; letter-spacing: .01em; }
.example {
  margin-top: 17px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f8f5ed;
}
.example-en { font-family: var(--font-serif); font-size: 17px; line-height: 1.55; margin: 0; }
.example-en mark { background: #ffedb5; color: inherit; border-radius: 3px; padding: 0 2px; }
.example-zh { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.note {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 12px;
  line-height: 1.75;
}
.note b { flex: none; font-weight: 800; }
.silent-note { margin-top: 8px; font-size: 11px; color: var(--vowel); }
.study-actions { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 10px; margin-top: 14px; }
.action-btn {
  border: 1px solid;
  border-radius: 16px;
  padding: 13px 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}
.action-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.action-btn small { font-weight: 500; font-size: 9px; opacity: .68; letter-spacing: .02em; }
.action-unknown { color: var(--vowel); border-color: #efc8bd; background: var(--vowel-soft); }
.action-fuzzy { color: var(--amber); border-color: #eed7a8; background: var(--amber-soft); }
.action-known { color: var(--green); border-color: #bfdcc9; background: var(--green-soft); }
.study-side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 15px; }
.side-card { padding: 19px; }
.side-title { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.side-big { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.side-big strong { font-family: var(--font-serif); font-size: 34px; line-height: 1; }
.side-big span { color: var(--muted); font-size: 11px; }
.side-track { height: 6px; border-radius: 999px; background: var(--bg-deep); overflow: hidden; margin: 12px 0 10px; }
.side-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #69b99f); border-radius: inherit; transition: width .4s ease; }
.side-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.side-list li { display: flex; gap: 9px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.side-list b { color: var(--primary); font-weight: 800; flex: none; }
.mini-legend { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.legend-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; color: var(--muted); }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.legend-dot.vowel { background: var(--vowel); }
.legend-dot.consonant { background: var(--consonant); }

/* ============ word detail ============ */
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; margin-bottom: 16px; }
.back-link:hover { color: var(--primary); }
.word-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.word-main { display: flex; flex-direction: column; gap: 16px; }
.word-hero { padding: 27px; }
.word-hero .word { font-size: clamp(58px, 7vw, 92px); }
.word-hero .letter-row { margin-top: 20px; }
.word-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 15px; }
.phoneme-list { display: flex; flex-direction: column; gap: 7px; }
.phoneme-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  background: #f8f5ed;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.phoneme-list-item:hover { border-color: var(--line); background: #fff; }
.phoneme-list-item b { font-family: var(--font-ipa); font-size: 20px; line-height: 1; min-width: 42px; color: var(--ink); }
.phoneme-list-item span { font-size: 10px; color: var(--muted); line-height: 1.4; }
.phoneme-list-item .type-dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.type-dot.vowel { background: var(--vowel); }
.type-dot.consonant { background: var(--consonant); }
.info-card { padding: 20px; }
.info-card h3 { margin: 0 0 12px; font-size: 13px; }
.extras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.extra-block { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #f8f5ed; }
.extra-block h4 { margin: 0 0 8px; font-size: 11px; color: var(--primary); letter-spacing: .04em; }
.extra-block p { margin: 0; font-size: 12px; line-height: 1.75; color: var(--ink-2); }
.extra-block ul { margin: 0; padding-left: 16px; color: var(--ink-2); font-size: 12px; line-height: 1.8; }
.word-tabs { display: flex; gap: 7px; flex-wrap: wrap; }
.tab-btn { border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 999px; padding: 7px 11px; font-size: 11px; font-weight: 700; cursor: pointer; }
.tab-btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.word-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; }

/* ============ dictionary ============ */
.dict-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 16px 0 18px; }
.search-box {
  flex: 1;
  min-width: 230px;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.search-box [data-icon] svg { width: 17px; height: 17px; color: var(--muted); }
.search-box input { border: 0; outline: 0; background: transparent; width: 100%; font: inherit; font-size: 13px; color: var(--ink); }
.search-box input::placeholder { color: #9aa6a7; }
.filter-chip { border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 999px; padding: 8px 12px; font-size: 11px; font-weight: 700; cursor: pointer; }
.filter-chip.is-active { background: var(--primary-soft); color: var(--primary-deep); border-color: #bfdccd; }
.dict-count { font-size: 11px; color: var(--muted); margin: 0 0 10px; }
.dict-list { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--card); box-shadow: var(--shadow-sm); }
.dict-head, .dict-row { display: grid; grid-template-columns: 54px 1.05fr 1.15fr 66px 1.25fr 74px; gap: 12px; align-items: center; }
.dict-head { padding: 12px 18px; background: #f8f5ed; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.dict-row { padding: 13px 18px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s ease; }
.dict-row:last-child { border-bottom: 0; }
.dict-row:hover { background: #faf7f0; }
.dict-index { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.dict-word { font-family: var(--font-serif); font-size: 21px; font-weight: 700; line-height: 1.15; }
.dict-ipa { font-family: var(--font-ipa); color: var(--muted); font-size: 13px; line-height: 1.4; }
.dict-pos { font-size: 10px; color: var(--amber); font-weight: 700; }
.dict-zh { font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.status-pill { justify-self: end; font-size: 9px; font-weight: 700; padding: 4px 7px; border-radius: 999px; background: #f1ede4; color: var(--muted); white-space: nowrap; }
.status-pill.known { background: var(--green-soft); color: var(--green); }
.status-pill.fuzzy { background: var(--amber-soft); color: var(--amber); }
.status-pill.unknown { background: var(--vowel-soft); color: var(--vowel); }
.dict-pager { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; padding: 16px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.dict-pager .btn { padding: 5px 9px; font-size: 11px; }
.dict-meta { margin: -6px 0 14px; color: var(--muted); font-size: 11px; }
.dict-meta b { color: var(--primary-deep); }

/* ============ phoneme chart ============ */
.drill-card { padding: 22px 24px; margin-bottom: 18px; background: linear-gradient(135deg, #fffdf8, #f5f0e6); }
.drill-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.drill-head h2 { margin: 4px 0 0; font-family: var(--font-serif); font-size: 23px; font-weight: 600; }
.drill-score { font-size: 11px; color: var(--muted); white-space: nowrap; }
.drill-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.drill-mode { text-align: left; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; transition: .18s; }
.drill-mode:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--shadow-sm); }
.drill-mode b { display: block; font-size: 13px; margin-bottom: 4px; }
.drill-mode span { display: block; color: var(--muted); font-size: 11px; line-height: 1.55; }
.drill-play-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.drill-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.drill-option { min-height: 64px; padding: 10px; border: 1px solid var(--line-strong); border-radius: 13px; background: var(--card); font-family: var(--font-ipa); font-size: 24px; cursor: pointer; transition: .18s; }
.drill-option:hover { border-color: var(--primary); background: var(--primary-soft); }
.drill-option.is-correct { border-color: var(--primary); background: var(--primary-soft); }
.drill-option.is-muted { opacity: .45; }
.drill-word-option { font-family: "Segoe UI", "Microsoft YaHei", sans-serif; font-size: 14px; }
.drill-symbol-big { margin: 14px 0 4px; font-family: var(--font-ipa); font-size: 46px; color: var(--primary); }
.drill-feedback { display: flex; flex-direction: column; gap: 3px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: 12px; line-height: 1.6; }
.drill-feedback.is-good { background: var(--primary-soft); color: var(--primary-deep); }
.drill-feedback.is-bad { background: var(--vowel-soft); color: var(--vowel); }
.drill-feedback b { font-size: 13px; }
.drill-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.drill-reveal { display: flex; flex-direction: column; gap: 5px; margin-top: 14px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 12px; font-size: 12px; line-height: 1.65; }
.drill-reveal b { color: var(--primary-deep); font-size: 13px; }
@media (max-width: 760px) {
  .drill-card { padding: 18px; }
  .drill-modes { grid-template-columns: 1fr; }
  .drill-options { grid-template-columns: repeat(2, 1fr); }
  .drill-head h2 { font-size: 20px; }
}
.phoneme-hero { padding: 25px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: center; }
.concept-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.concept-box { border-radius: 15px; padding: 15px; border: 1px solid var(--line); background: #f8f5ed; }
.concept-box.vowel-box { background: var(--vowel-soft); border-color: #f0c9bd; }
.concept-box.consonant-box { background: var(--consonant-soft); border-color: #c6d9ea; }
.concept-box h3 { margin: 0 0 6px; font-family: var(--font-serif); font-size: 18px; }
.concept-box p { margin: 0; font-size: 11px; line-height: 1.7; color: var(--ink-2); }
.vowel-map-card { padding: 14px 16px; border-radius: 16px; background: #f8f5ed; border: 1px solid var(--line); }
.vowel-map-card h3 { margin: 0 0 4px; font-size: 12px; }
.vowel-map-card p { margin: 0; color: var(--muted); font-size: 10px; }
.vowel-svg { width: 100%; height: auto; display: block; margin-top: 6px; }
.vowel-dot { cursor: pointer; }
.vowel-dot circle { transition: r .15s ease, fill .15s ease; }
.vowel-dot:hover circle { r: 7; }
.vowel-dot text { font-family: var(--font-ipa); font-size: 10px; fill: var(--ink); pointer-events: none; }
.phoneme-section { margin-top: 26px; }
.phoneme-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.phoneme-section-head h2 { margin: 0; font-family: var(--font-serif); font-size: 24px; font-weight: 600; }
.phoneme-section-head span { color: var(--muted); font-size: 11px; }
.phoneme-group { margin-bottom: 16px; }
.phoneme-group-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.phoneme-group-head strong { font-size: 12px; }
.phoneme-group-head span { font-size: 10px; color: var(--muted); }
.phoneme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; }
.phoneme-tile {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.phoneme-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.phoneme-tile .sym { display: block; font-family: var(--font-ipa); font-size: 23px; line-height: 1.15; }
.phoneme-tile .ex { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.phoneme-tile.vowel .sym { color: var(--vowel); }
.phoneme-tile.consonant .sym { color: var(--consonant); }
.pair-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 9px; }
.pair-card { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); }
.pair-card button { border: 0; background: transparent; padding: 11px 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pair-card button:hover { background: #f8f5ed; }
.pair-card .sym { font-family: var(--font-ipa); font-size: 22px; line-height: 1.1; color: var(--consonant); }
.pair-card .vo { font-size: 8px; color: var(--muted); letter-spacing: .04em; }
.pair-card .pair-divider { width: 1px; background: var(--line); }
.blend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.blend-card { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #f8f5ed; }
.blend-card strong { font-family: var(--font-ipa); font-size: 22px; color: var(--primary-deep); }
.blend-card p { margin: 5px 0 0; font-size: 10px; color: var(--muted); line-height: 1.6; }
.blend-card .ex { margin-top: 5px; font-size: 11px; color: var(--ink-2); }

/* ============ progress ============ */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.stat-card { padding: 18px; }
.stat-label { font-size: 10px; color: var(--muted); letter-spacing: .06em; }
.stat-value { margin-top: 6px; font-family: var(--font-serif); font-size: 34px; line-height: 1; }
.stat-value small { font-family: inherit; font-size: 12px; color: var(--muted); }
.progress-columns { display: grid; grid-template-columns: 1.05fr .95fr; gap: 16px; margin-top: 16px; align-items: start; }
.calendar-card { padding: 20px; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.calendar-head h3 { margin: 0; font-family: var(--font-serif); font-size: 20px; }
.calendar-week, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.calendar-week { margin-bottom: 6px; }
.calendar-week span { text-align: center; color: var(--muted); font-size: 9px; }
.cal-day {
  aspect-ratio: 1;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f7f4ec;
  color: var(--muted);
  font-size: 10px;
  position: relative;
}
.cal-day.is-empty { background: transparent; }
.cal-day.has-words { background: var(--primary-soft); color: var(--primary-deep); font-weight: 800; }
.cal-day.today { outline: 2px solid var(--primary); outline-offset: -2px; }
.cal-day .n { font-size: 8px; opacity: .75; margin-top: 1px; }
.calendar-legend { display: flex; align-items: center; gap: 12px; margin-top: 12px; color: var(--muted); font-size: 9px; }
.calendar-legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--primary-soft); display: inline-block; margin-right: 4px; }
.log-card { padding: 20px; }
.log-list { display: flex; flex-direction: column; gap: 10px; }
.log-item { border: 1px solid var(--line); border-radius: 13px; padding: 12px 13px; background: #f8f5ed; }
.log-item-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.log-item-top strong { font-size: 12px; }
.log-item-top span { font-size: 10px; color: var(--muted); }
.log-words { margin: 6px 0 0; color: var(--ink-2); font-size: 11px; line-height: 1.7; }
.settings-card { padding: 20px; margin-top: 16px; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.settings-row:last-child { border-bottom: 0; }
.settings-row strong { font-size: 12px; }
.settings-row p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.target-group { display: flex; gap: 5px; flex-wrap: wrap; }
.target-btn { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 10px; font-size: 10px; font-weight: 700; cursor: pointer; }
.target-btn.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.manual-form { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.manual-form input { border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--ink); padding: 7px 8px; font-size: 11px; max-width: 130px; }
.manual-form input[type="number"] { width: 72px; }

/* ============ knowledge ============ */
.knowledge-intro { padding: 24px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: center; }
.knowledge-intro h2 { margin: 0 0 8px; font-family: var(--font-serif); font-size: 25px; font-weight: 600; }
.knowledge-intro p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.mini-map { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-map span { font-size: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 9px; background: #f8f5ed; color: var(--ink-2); }
.knowledge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.knowledge-card { padding: 0; overflow: hidden; }
.knowledge-card summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 18px 20px; cursor: pointer; }
.knowledge-card summary::-webkit-details-marker { display: none; }
.knowledge-card summary::after { content: "+"; margin-left: auto; font-family: var(--font-serif); font-size: 22px; color: var(--muted); line-height: 1; }
.knowledge-card[open] summary::after { content: "+"; }
.k-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-deep); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 16px; flex: none; }
.knowledge-card summary strong { display: block; font-size: 13px; }
.knowledge-card summary small { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }
.knowledge-body { padding: 0 20px 20px; border-top: 1px solid var(--line); margin-top: 0; padding-top: 15px; font-size: 12px; line-height: 1.8; color: var(--ink-2); }
.knowledge-body p { margin: 0 0 10px; }
.knowledge-body p:last-child { margin-bottom: 0; }
.knowledge-body ul { margin: 0; padding-left: 18px; }
.knowledge-body li { margin: 4px 0; }
.example-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: #f8f5ed; margin: 7px 0; }
.example-line b { font-family: var(--font-serif); font-size: 15px; }
.example-line code { font-family: var(--font-ipa); color: var(--vowel); font-size: 13px; }
.pos-table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 11px; }
.pos-table th, .pos-table td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pos-table th { color: var(--muted); font-weight: 700; font-size: 9px; letter-spacing: .05em; }
.pos-table td:first-child { color: var(--amber); font-weight: 800; white-space: nowrap; }
.roadmap { display: flex; flex-direction: column; gap: 7px; }
.roadmap div { display: flex; gap: 9px; align-items: flex-start; }
.roadmap b { width: 18px; height: 18px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 9px; display: inline-flex; align-items: center; justify-content: center; flex: none; margin-top: 2px; }

/* ============ sheet ============ */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(22, 33, 35, .34);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.backdrop.is-open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  width: min(440px, 100%);
  height: 100%;
  background: var(--card);
  box-shadow: -22px 0 70px rgba(29, 43, 47, .2);
  transform: translateX(105%);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  display: flex;
  flex-direction: column;
}
.sheet.is-open { transform: translateX(0); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.sheet-body { padding: 20px; overflow-y: auto; }
.phoneme-detail-top { display: flex; align-items: flex-start; gap: 16px; }
.phoneme-symbol-big { font-family: var(--font-ipa); font-size: 64px; line-height: .9; color: var(--ink); letter-spacing: -.02em; }
.phoneme-detail-meta { padding-top: 6px; }
.type-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; font-weight: 800; letter-spacing: .06em; border-radius: 999px; padding: 4px 8px; }
.type-badge.vowel { color: var(--vowel); background: var(--vowel-soft); }
.type-badge.consonant { color: var(--consonant); background: var(--consonant-soft); }
.phoneme-detail-meta h2 { margin: 7px 0 0; font-family: var(--font-serif); font-size: 23px; font-weight: 600; }
.phoneme-detail-meta p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.detail-block { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.detail-block h3 { margin: 0 0 9px; font-size: 11px; letter-spacing: .06em; color: var(--primary); }
.detail-row { display: flex; gap: 10px; padding: 6px 0; font-size: 12px; line-height: 1.7; }
.detail-row b { flex: none; width: 48px; color: var(--muted); font-weight: 600; }
.detail-row span { color: var(--ink-2); }
.approx-box { padding: 11px 13px; border-radius: 12px; background: var(--amber-soft); color: #6b4a13; font-size: 11px; line-height: 1.7; }
.tip-box { padding: 11px 13px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-deep); font-size: 11px; line-height: 1.7; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.spelling-chip { font-size: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px; background: #f8f5ed; color: var(--ink-2); }
.example-btns { display: flex; flex-wrap: wrap; gap: 7px; }
.example-btn { border: 1px solid var(--line); background: #f8f5ed; border-radius: 999px; padding: 7px 10px; font-size: 11px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.example-btn:hover { background: #fff; border-color: var(--line-strong); }
.example-btn .play-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 8px; }
.contrast-row { display: flex; flex-wrap: wrap; gap: 7px; }
.contrast-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 10px; font-family: var(--font-ipa); font-size: 16px; cursor: pointer; }
.contrast-btn:hover { border-color: var(--primary); color: var(--primary); }
.mouth-sketch { margin-top: 12px; border-radius: 13px; background: #f8f5ed; border: 1px solid var(--line); padding: 8px; }
.mouth-sketch svg { width: 100%; height: auto; }
.mouth-caption { text-align: center; color: var(--muted); font-size: 9px; margin: 3px 0 0; }
.dictation-box { display: flex; flex-direction: column; gap: 8px; }
.dictation-box > .type-badge { align-self: flex-start; width: auto; }
.dictation-box h2 { margin: 4px 0 0; font-family: var(--font-serif); font-size: 24px; font-weight: 600; }
.dictation-prompt { margin-top: 10px; padding: 18px; border-radius: 16px; background: #f8f5ed; border: 1px solid var(--line); }
.dictation-prompt .meaning-zh { font-size: 28px; }
.dictation-answer { margin-top: 8px; padding-top: 4px; border-top: 1px dashed var(--line); }

/* ============ toast ============ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 90;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  padding: 11px 17px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(29, 43, 47, .25);
  transition: opacity .2s ease, transform .2s ease;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ============ responsive ============ */
@media (max-width: 1180px) {
  :root { --sidebar: 226px; }
  .view { padding: 26px; }
  .study-layout { grid-template-columns: minmax(0, 1fr) 280px; }
  .word-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 1000px) {
  .study-layout, .word-layout { grid-template-columns: 1fr; }
  .study-side, .word-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .progress-columns { grid-template-columns: 1fr; }
  .phoneme-hero, .knowledge-intro { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  :root { --sidebar: 0px; }
  .sidebar { display: none; }
  .main-shell { margin-left: 0; }
  .topbar { height: 64px; padding: 0 16px; gap: 10px; }
  .mobile-brand { display: inline-flex; }
  .search-trigger { width: auto; flex: 1; min-width: 0; height: 40px; padding: 0 12px; }
  .search-trigger span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .search-trigger kbd { display: none; }
  .accent-switch button { padding: 5px 8px; }
  .view { padding: 18px 16px 96px; }
  .bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 253, 248, .93);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
    justify-content: space-around;
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 5px 10px; color: var(--muted); font-size: 9px; border-radius: 10px; min-width: 48px; }
  .bottom-nav a.is-active { color: var(--primary); background: var(--primary-soft); }
  .bottom-nav [data-icon] svg { width: 19px; height: 19px; }
  .study-card, .word-hero { padding: 20px; }
  .study-side, .word-aside { grid-template-columns: 1fr; }
  .study-actions { position: static; margin-top: 14px; padding: 0; border-radius: 16px; }
  .sheet { top: auto; bottom: 0; width: 100%; height: 84vh; border-radius: 24px 24px 0 0; transform: translateY(105%); }
  .sheet.is-open { transform: translateY(0); }
  .toast { top: 72px; bottom: auto; transform: translate(-50%, -12px); }
  .toast.is-show { transform: translate(-50%, 0); }
  .dict-head { display: none; }
  .dict-row { grid-template-columns: 42px 1fr auto; grid-template-areas: "idx word status" "idx ipa status" "idx zh status"; gap: 2px 10px; padding: 12px 14px; }
  .dict-index { grid-area: idx; align-self: start; padding-top: 5px; }
  .dict-word { grid-area: word; }
  .dict-ipa { grid-area: ipa; }
  .dict-pos { display: none; }
  .dict-zh { grid-area: zh; }
  .status-pill { grid-area: status; align-self: center; }
  .dict-list { border-radius: 18px; }
}
@media (max-width: 620px) {
  .top-actions .icon-btn { display: none; }
  .page-head { align-items: flex-start; }
  .page-title { font-size: 32px; }
  .word { font-size: 58px; }
  .word-hero .word { font-size: 58px; }
  .letter-tile { min-width: 44px; height: 54px; padding: 0 9px; }
  .letter-tile .glyph { font-size: 21px; }
  .letter-tile .tag { font-size: 7px; }
  .ipa { font-size: 24px; }
  .phoneme-chip { font-size: 16px; padding: 6px 10px; }
  .study-actions { grid-template-columns: 1fr 1fr; }
  .action-known { grid-column: 1 / -1; }
  .extras-grid, .knowledge-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stat-card { padding: 14px; }
  .stat-value { font-size: 28px; }
  .concept-pair { grid-template-columns: 1fr; }
  .phoneme-grid { grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); }
  .phoneme-tile .sym { font-size: 20px; }
  .pair-grid { grid-template-columns: 1fr 1fr; }
  .pair-card { grid-template-columns: 1fr auto 1fr; }
  .sheet-body { padding: 16px; }
  .phoneme-symbol-big { font-size: 52px; }
}

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

