:root {
  --bg: #f6f8f8;
  --surface: #ffffff;
  --surface-soft: #f1f4f4;
  --line: #e1e6e7;
  --line-dark: #d4dcde;
  --ink: #162126;
  --muted: #6d777c;
  --muted-2: #9aa4a8;
  --blue: #164f7b;
  --blue-dark: #103e62;
  --blue-soft: #eaf2f8;
  --teal: #257b72;
  --teal-soft: #e8f4f1;
  --yellow: #fff0a8;
  --yellow-soft: #fff8d8;
  --red: #bb574d;
  --shadow: 0 18px 55px rgba(27, 43, 49, .12);
  --shadow-soft: 0 8px 28px rgba(35, 55, 63, .07);
  --radius: 14px;
  --sidebar: 220px;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.hidden { display: none !important; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  width: var(--sidebar);
  padding: 22px 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow-y: auto;
  background: rgba(255, 255, 255, .96);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand {
  border: 0;
  padding: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}
.brand > span:last-child { display: grid; gap: 3px; text-align: left; }
.brand strong { font-size: 14px; letter-spacing: .02em; }
.brand small { color: var(--muted); font-size: 9px; font-weight: 500; letter-spacing: .04em; }
.brand-glyph {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--blue);
  border-radius: 11px;
  font: 700 19px/1 Georgia, serif;
  box-shadow: 0 7px 18px rgba(22, 79, 123, .22);
}
.primary-nav { display: grid; gap: 5px; margin-top: 38px; }
.nav-section-label { padding: 0 11px 7px; color: #a0aaae; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.nav-section-label.secondary-label { margin-top: 17px; }
.nav-button {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: transparent;
  color: #7b878c;
  cursor: pointer;
  position: relative;
  transition: .18s ease;
}
.nav-button > span { font-size: 12px; font-weight: 550; }
.nav-button::after {
  display: none;
}
.nav-button:hover { color: var(--blue); background: #f1f5f7; }
.nav-button.active { color: var(--blue); background: var(--blue-soft); }
.nav-button.active::before { content: ""; position: absolute; left: -14px; width: 3px; height: 22px; background: var(--blue); border-radius: 0 4px 4px 0; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 10px; }
.profile { padding: 12px 8px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 9px; }
.profile > span { display: grid; gap: 2px; }
.profile strong { font-size: 10px; }
.profile small { color: var(--muted); font-size: 9px; }
.avatar { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #dce9ed; color: #33545f; font-size: 11px; font-weight: 700; cursor: pointer; }
.app-main { margin-left: var(--sidebar); min-height: 100vh; }
.mobile-menu { display: none; }

.page { width: min(1280px, calc(100% - 56px)); margin: 0 auto; padding: 42px 0 70px; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.page-title-group h1 { margin: 0; font-size: 30px; line-height: 1.2; letter-spacing: -.035em; }
.page-title-group p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.eyebrow { margin: 0 0 8px; color: var(--blue); font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-dark);
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: white;
  font-weight: 650;
  font-size: 13px;
  cursor: pointer;
  transition: .18s ease;
}
.button svg { width: 17px; height: 17px; }
.button:hover { border-color: #b8c6cb; transform: translateY(-1px); box-shadow: 0 5px 14px rgba(35, 50, 56, .08); }
.button.primary { color: white; background: var(--blue); border-color: var(--blue); }
.button.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.button.ghost { background: transparent; }
.button.small { min-height: 34px; padding: 0 12px; font-size: 12px; }
.button.danger { color: var(--red); border-color: #e9c7c3; }
.button.full { width: 100%; }
.icon-button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: white;
  color: #566267;
  cursor: pointer;
}
.icon-button:hover { color: var(--blue); border-color: #c2d2dc; }
.text-button { padding: 0; border: 0; background: none; color: var(--blue); font-size: 12px; font-weight: 650; cursor: pointer; }
.badge { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 0 8px; border-radius: 999px; background: var(--surface-soft); color: #5f6a6f; font-size: 11px; }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.badge.green { background: var(--teal-soft); color: var(--teal); }
.badge.yellow { background: var(--yellow-soft); color: #81661e; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 0 rgba(30, 50, 55, .02); }

/* Library */
.reading-howto { margin: -10px 0 22px; padding: 13px 16px; display: flex; align-items: center; gap: 22px; box-shadow: none; }
.reading-howto > span { display: flex; align-items: center; gap: 8px; color: var(--blue); font-size: 12px; white-space: nowrap; }
.reading-howto > span svg { width: 16px; }
.reading-howto ol { margin: 0; padding: 0; display: flex; align-items: center; gap: 28px; list-style-position: inside; color: var(--muted); font-size: 11px; }
.library-layout { display: grid; grid-template-columns: 190px minmax(440px, 1fr); gap: 28px; align-items: start; }
.filter-rail { padding-right: 6px; position: sticky; top: 24px; }
.search-field, .url-field { position: relative; }
.search-field svg, .url-field svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: #8b969a; }
.search-field input, .url-field input { width: 100%; height: 40px; padding: 0 12px 0 40px; border: 1px solid var(--line); border-radius: 9px; outline: none; background: white; }
.search-field input:focus, .url-field input:focus { border-color: #96b4c7; box-shadow: 0 0 0 3px rgba(22, 79, 123, .08); }
.filter-group { margin-top: 26px; }
.filter-group h3 { margin: 0 0 9px; color: #9aa3a7; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.filter-button { width: 100%; min-height: 36px; padding: 0 10px; border: 0; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; color: #5f6a6f; background: transparent; cursor: pointer; font-size: 13px; }
.filter-button:hover, .filter-button.active { color: var(--ink); background: #edf1f2; }
.filter-button span:last-child { color: #98a2a6; font-size: 11px; }
.reading-goal { margin-top: 28px; padding: 16px; background: #edf4f6; border-radius: 12px; }
.goal-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; }
.goal-head span { color: var(--blue); }
.goal-track { height: 5px; margin: 12px 0 8px; overflow: hidden; background: #dce5e8; border-radius: 99px; }
.goal-track span { display: block; width: 68%; height: 100%; border-radius: inherit; background: var(--blue); }
.reading-goal p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.list-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.list-heading h2 { margin: 0; font-size: 17px; }
.sort-select { border: 0; background: transparent; color: var(--muted); font-size: 12px; outline: none; }
.article-list { display: grid; gap: 10px; }
.article-row { padding: 19px 20px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: start; cursor: pointer; transition: .2s ease; }
.article-row:hover { border-color: #c8d6da; transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.article-icon { width: 38px; height: 42px; border-radius: 8px; display: grid; place-items: center; background: #f0f4f5; color: #63737a; }
.article-icon svg { width: 19px; }
.article-copy { min-width: 0; }
.article-copy h3 { margin: 0; overflow: hidden; color: #1b252a; font-size: 15px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.article-copy > p { margin: 6px 0 11px; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: #8a9498; font-size: 11px; }
.article-meta span { display: inline-flex; align-items: center; gap: 4px; }
.article-meta svg { width: 14px; height: 14px; }
.article-progress { width: 54px; display: grid; justify-items: end; gap: 9px; }
.article-progress strong { color: var(--blue); font-size: 11px; }
.mini-track { width: 54px; height: 4px; border-radius: 99px; background: #e7ebec; overflow: hidden; }
.mini-track i { display: block; height: 100%; background: var(--blue); border-radius: inherit; }
.article-more { border: 0; background: none; color: #9aa4a7; cursor: pointer; }
.side-stack { display: grid; gap: 14px; position: sticky; top: 24px; }
.today-card { padding: 21px; }
.card-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.card-title h3 { margin: 0; font-size: 14px; }
.card-title svg { width: 18px; color: var(--blue); }
.suggestion { padding: 15px; background: #f7f9f9; border: 1px solid #edf0f0; border-radius: 10px; }
.suggestion + .suggestion { margin-top: 10px; }
.suggestion-label { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; font-size: 11px; font-weight: 700; }
.suggestion-label svg { width: 15px; color: var(--blue); }
.suggestion p { margin: 0; color: #687479; font-size: 12px; line-height: 1.65; }
.current-word { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.current-word span { color: var(--muted); font-size: 10px; }
.current-word strong { display: block; margin: 4px 0 2px; font: 700 18px Georgia, serif; }
.current-word small { color: var(--muted); font-size: 10px; }
.review-cta { padding: 19px; background: var(--blue); color: white; border: 0; }
.review-cta p { margin: 0 0 3px; color: rgba(255,255,255,.7); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.review-cta h3 { margin: 0 0 15px; font-size: 18px; }
.review-cta button { width: 100%; height: 36px; color: var(--blue); background: white; border: 0; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; }

/* Reader */
.reader-page { min-height: 100vh; background: white; }
.reader-topbar { height: 68px; padding: 0 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(18px); }
.reader-heading { min-width: 0; display: flex; align-items: center; gap: 13px; }
.reader-heading div { min-width: 0; }
.reader-heading strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.reader-heading span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.reader-actions { display: flex; align-items: center; gap: 12px; }
.read-percent { color: var(--muted); font-size: 11px; }
.round-progress { width: 34px; height: 34px; border: 3px solid #e6ebed; border-top-color: var(--blue); border-radius: 50%; display: grid; place-items: center; color: var(--blue); }
.round-progress svg { width: 14px; height: 14px; }
.reader-grid { display: grid; grid-template-columns: 190px minmax(520px, 780px) 380px; justify-content: center; min-height: calc(100vh - 68px); }
.reader-grid.simple-reader { grid-template-columns: minmax(560px, 820px) 390px; }
.reader-toc { padding: 34px 24px; border-right: 1px solid var(--line); background: #fbfcfc; }
.reader-toc h3 { margin: 0 0 16px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #899398; }
.toc-item { width: 100%; padding: 8px 9px; border: 0; border-radius: 7px; text-align: left; background: transparent; color: var(--muted); font-size: 11px; line-height: 1.4; cursor: pointer; }
.toc-item.active { background: #eaf1f4; color: var(--blue); font-weight: 650; }
.reading-stats { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 13px; }
.reading-stats div { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; }
.reading-stats strong { color: var(--ink); }
.article-document { padding: 48px clamp(42px, 5vw, 76px) 100px; overflow: hidden; }
.selection-guide { margin: -22px 0 30px; padding: 11px 13px; border: 1px solid #d8e4e9; border-radius: 9px; display: flex; align-items: center; gap: 9px; color: #53656d; background: #f5f9fa; font-size: 11px; line-height: 1.55; }
.selection-guide svg { width: 16px; min-width: 16px; color: var(--blue); }
.selection-guide strong { color: var(--ink); }
.article-header { padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.article-header h1 { max-width: 620px; margin: 0 0 16px; font-size: clamp(30px, 3vw, 46px); line-height: 1.08; letter-spacing: -.04em; }
.article-dek { max-width: 640px; margin: 0; color: #667176; font-size: 14px; line-height: 1.75; }
.article-byline { margin-top: 20px; display: flex; align-items: center; gap: 10px; color: #899398; font-size: 10px; }
.source-dot { width: 26px; height: 26px; display: grid; place-items: center; color: white; background: #263a43; border-radius: 50%; font: 700 11px Georgia, serif; }
.article-body { padding-top: 36px; color: #263035; font: 18px/1.85 Georgia, "Times New Roman", serif; }
.article-body p { margin: 0 0 25px; }
.article-body h2 { margin: 42px 0 18px; font: 700 20px/1.3 ui-sans-serif, sans-serif; letter-spacing: -.01em; }
.interactive-sentence { border-radius: 4px; transition: background .16s ease; cursor: pointer; }
.interactive-sentence:hover { background: #f6f8f8; box-shadow: 0 0 0 5px #f6f8f8; }
.interactive-sentence.selected { background: #eef6f8; box-shadow: 0 0 0 5px #eef6f8; }
.word-mark { padding: 0 2px; border-radius: 3px; background: linear-gradient(transparent 55%, var(--yellow) 55%); cursor: pointer; }
.word-mark:hover, .word-mark.selected { background: var(--yellow); }
.phrase-mark { padding: 0 2px; border-radius: 3px; background: linear-gradient(transparent 58%, #cfe9ef 58%); cursor: pointer; }
.article-end { margin-top: 42px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: ui-sans-serif, sans-serif; }
.article-end strong { display: block; font-size: 13px; }
.article-end span { color: var(--muted); font-size: 11px; }
.ai-panel { border-left: 1px solid var(--line); background: #fbfcfc; min-width: 0; }
.ai-sticky { position: sticky; top: 68px; height: calc(100vh - 68px); overflow: auto; }
.ai-header { padding: 24px 24px 0; }
.ai-title { display: flex; align-items: center; justify-content: space-between; }
.ai-title > div { display: flex; gap: 10px; align-items: center; }
.ai-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); }
.ai-mark svg { width: 17px; }
.ai-title h2 { margin: 0; font-size: 14px; }
.ai-title p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.ai-tag { font-size: 10px; color: var(--blue); }
.ai-tabs { margin-top: 20px; display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.ai-tab { height: 38px; border: 0; border-bottom: 2px solid transparent; background: none; color: #778287; font-size: 11px; cursor: pointer; }
.ai-tab.active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 700; }
.ai-content { padding: 22px 25px 60px; }
.word-focus h3 { margin: 0 0 4px; font-size: 21px; }
.selection-result-label { margin-bottom: 7px; color: var(--blue); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.phonetic { color: var(--muted); font-size: 12px; }
.word-actions { display: flex; gap: 8px; margin-top: 13px; }
.added-button { color: var(--teal) !important; background: var(--teal-soft) !important; border-color: #c7e2dc !important; }
.ai-section { margin-top: 28px; }
.ai-section h4 { margin: 0 0 10px; font-size: 11px; }
.ai-section p { margin: 0; color: #4f5a5f; font-size: 12px; line-height: 1.75; }
.exam-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.exam-tags span { padding: 5px 7px; border-radius: 6px; background: #f0f3f4; font-size: 10px; }
.related-list { display: grid; }
.related-word { padding: 11px 0; border-bottom: 1px solid #e8ecee; display: grid; grid-template-columns: minmax(0, 1fr) 30px; gap: 8px; }
.related-word strong { font-size: 12px; }
.related-word strong em { margin-left: 5px; padding: 3px 5px; border-radius: 5px; background: #eef1f2; color: var(--muted); font-style: normal; font-weight: 500; font-size: 9px; }
.related-word span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.related-word p { margin-top: 3px; color: #39464b; }
.related-word button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; background: white; cursor: pointer; }
.related-word button svg { width: 13px; }
.add-all { width: 100%; margin-top: 13px; }
.sentence-box { padding: 14px; border-left: 2px solid var(--blue); background: #f0f5f7; color: #35444b; font: 13px/1.65 Georgia, serif; }
.structure-line { margin-top: 10px; padding-left: 12px; border-left: 1px solid #ccd6d9; color: #536066; font-size: 11px; line-height: 1.8; }
.sentence-keywords { display: grid; gap: 7px; }
.sentence-keywords button { padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: white; cursor: pointer; text-align: left; }
.sentence-keywords button:hover { border-color: #a7bfcc; }
.sentence-keywords strong { font-size: 11px; }
.sentence-keywords span { color: var(--muted); font-size: 10px; }
.summary-card { padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.summary-card + .summary-card { margin-top: 10px; }
.summary-card strong { font-size: 12px; }
.summary-card p { margin-top: 8px; }
.note-area { width: 100%; min-height: 190px; padding: 13px; resize: vertical; border: 1px solid var(--line); border-radius: 9px; outline: none; line-height: 1.7; }
.note-area:focus { border-color: #9ab7c8; }
.mobile-ai-toggle { display: none; }

/* IELTS study home */
.goal-band { padding: 9px 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: white; font-size: 11px; }
.goal-band strong { margin-left: 5px; color: var(--blue); font-size: 15px; }
.study-overview { padding: 25px 28px; display: flex; align-items: center; justify-content: space-between; gap: 28px; background: #f1f6f7; border-color: #dce7e9; box-shadow: none; }
.study-overview > div > span { color: var(--blue); font-size: 10px; font-weight: 700; }
.study-overview h2 { margin: 6px 0 7px; font-size: 20px; }
.study-overview p { margin: 0; color: var(--muted); font-size: 12px; }
.study-progress { min-width: 86px; text-align: right; }
.study-progress strong { display: block; font-size: 24px; }
.study-progress span { color: var(--muted); font-size: 10px; }
.module-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.module-card { min-height: 242px; padding: 20px; display: flex; flex-direction: column; }
.module-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; }
.module-icon { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); }
.module-icon svg { width: 17px; }
.module-icon.green { color: var(--teal); background: var(--teal-soft); }
.module-icon.yellow { color: #8b6d1e; background: var(--yellow-soft); }
.module-icon.purple { color: #69588c; background: #f0edf7; }
.module-card > p { margin: 18px 0 5px; color: var(--muted); font-size: 10px; }
.module-card h3 { margin: 0 0 8px; font-size: 15px; }
.module-card > span { color: var(--muted); font-size: 11px; line-height: 1.6; }
.module-card .button { margin-top: auto; justify-content: space-between; }
.module-card .button svg { width: 14px; }
.study-bottom-grid { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .6fr); gap: 16px; }
.today-plan, .study-method { padding: 23px; }
.section-simple-head { display: flex; justify-content: space-between; gap: 20px; }
.section-simple-head h2, .study-method h2 { margin: 0; font-size: 15px; }
.section-simple-head p { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.section-simple-head > span { color: var(--blue); font-size: 11px; font-weight: 700; }
.plan-list { margin-top: 16px; display: grid; }
.plan-list button { padding: 13px 0; border: 0; border-bottom: 1px solid #edf0f1; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 11px; background: transparent; text-align: left; cursor: pointer; }
.plan-list button:last-child { border-bottom: 0; }
.plan-check { width: 24px; height: 24px; border: 1px solid #ced8dc; border-radius: 50%; display: grid; place-items: center; color: var(--muted); font-size: 9px; font-style: normal; }
.plan-check.done { color: var(--teal); border-color: #c1ddd7; background: var(--teal-soft); }
.plan-check svg { width: 12px; }
.plan-list strong, .plan-list small { display: block; }
.plan-list strong { font-size: 11px; }
.plan-list small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.plan-list em { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 9px; font-style: normal; }
.plan-list em svg { width: 12px; }
.method-focus { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.method-focus span { padding: 3px 6px; border-radius: 5px; color: var(--blue); background: var(--blue-soft); font-size: 9px; }
.method-focus strong { display: block; margin: 9px 0 5px; font-size: 11px; }
.method-focus p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.study-method .text-button { margin-top: 19px; display: flex; align-items: center; gap: 4px; }
.study-method .text-button svg { width: 13px; }

/* Listening, speaking and writing */
.mode-switch { width: max-content; margin-bottom: 13px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; display: flex; background: white; }
.mode-switch button { min-width: 110px; height: 34px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 650; cursor: pointer; }
.mode-switch button.active { color: white; background: var(--blue); }
.section-selector { margin-bottom: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.section-selector button { min-height: 62px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 4px; background: white; text-align: left; cursor: pointer; }
.section-selector button:hover { border-color: #a9bfca; }
.section-selector button.active { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(22,79,123,.08); background: #f6f9fb; }
.section-selector strong { font-size: 11px; }
.section-selector span { color: var(--muted); font-size: 9px; }
.material-library { margin: -6px 0 18px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafb; }
.material-library-head { margin-bottom: 11px; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.material-library-head > div { display: flex; align-items: center; gap: 9px; }
.material-library-head span { color: var(--muted); font-size: 9px; }
.material-library-head strong { color: var(--blue); font-size: 10px; }
.material-library-head small { color: var(--muted); font-size: 9px; }
.material-selector { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.material-selector button { min-width: 0; padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px; display: grid; gap: 5px; color: var(--ink); background: white; text-align: left; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.material-selector button:hover { border-color: #a9bfca; transform: translateY(-1px); }
.material-selector button.active { border-color: var(--blue); background: #edf5f8; box-shadow: inset 3px 0 0 var(--blue); }
.material-selector span { color: var(--blue); font-size: 8px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.material-selector strong { overflow: hidden; font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.material-selector small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.practice-layout, .writing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.practice-main, .writing-editor { padding: 28px; }
.practice-kicker { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; }
.practice-main > h2, .writing-editor > h2 { max-width: 760px; margin: 24px 0 9px; font-size: 22px; line-height: 1.4; }
.practice-instruction, .writing-tip { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.audio-player { width: 100%; margin: 25px 0; padding: 16px; border: 1px solid #cfdde3; border-radius: 11px; display: flex; align-items: center; gap: 13px; color: var(--blue); background: #f4f8fa; cursor: pointer; text-align: left; }
.audio-player > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--blue); }
.audio-player strong, .audio-player small { display: block; }
.audio-player strong { font-size: 12px; }
.audio-player small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.listening-player { margin: 22px 0; padding: 14px; border: 1px solid #d5e1e5; border-radius: 11px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #f5f9fa; }
.player-copy { min-width: 210px; display: flex; align-items: center; gap: 11px; }
.player-copy > span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--blue); }
.player-copy > span svg { width: 16px; }
.player-copy strong, .player-copy small { display: block; }
.player-copy strong { font-size: 11px; }
.player-copy small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.player-buttons { display: flex; gap: 6px; }
.player-buttons .button { min-height: 34px; padding: 0 11px; font-size: 10px; }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.question-list { display: grid; gap: 12px; margin-bottom: 18px; }
.question-list fieldset { padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.question-list legend { padding: 0 5px; font-size: 12px; font-weight: 700; }
.question-list label { display: block; margin-top: 10px; color: #536067; font-size: 11px; cursor: pointer; }
.question-list input { margin-right: 8px; accent-color: var(--blue); }
.question-list .listening-answer { width: min(380px, 100%); height: 38px; margin: 9px 0 0; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; outline: none; }
.question-list .listening-answer:focus { border-color: #91afbf; box-shadow: 0 0 0 3px rgba(22,79,123,.06); }
.practice-aside { display: grid; gap: 12px; }
.tip-card, .transcript-card { padding: 20px; }
.tip-card h3, .transcript-card h3 { margin: 0 0 13px; font-size: 13px; }
.tip-card ul, .tip-card ol { margin: 0; padding-left: 19px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.tip-card p, .transcript-card p { color: var(--muted); font-size: 10px; line-height: 1.8; }
.transcript-card .text-button { margin-top: 5px; }
.transcript-lines { display: grid; gap: 10px; }
.transcript-lines p { margin: 0; }
.transcript-lines b { display: block; margin-bottom: 2px; color: var(--ink); font-size: 9px; }
.practice-feedback { margin: 0 0 15px; padding: 12px 14px; border-radius: 9px; color: #89534b; background: #fbeeed; font-size: 11px; }
.practice-feedback.success { color: #27685f; background: var(--teal-soft); }
.practice-feedback p { margin: 5px 0 0; line-height: 1.6; }
.cue-card { margin: 22px 0; padding: 19px 22px; border-left: 3px solid var(--blue); background: #f5f8f9; }
.cue-card p { margin: 0 0 9px; font-size: 11px; font-weight: 700; }
.cue-card ul { margin: 0; padding-left: 19px; color: #4f5d62; font: 15px/1.9 Georgia, serif; }
.speaking-question-nav { margin-top: 20px; display: flex; gap: 6px; }
.speaking-question-nav button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: white; font-size: 10px; cursor: pointer; }
.speaking-question-nav button.active { color: white; border-color: var(--blue); background: var(--blue); }
.prompt-audio-controls { margin-top: 18px; display: flex; gap: 7px; }
.speaking-controls { display: flex; align-items: center; gap: 9px; margin: 22px 0; }
.speaking-timer { min-width: 80px; font: 700 25px/1 ui-monospace, monospace; }
.response-label { display: grid; gap: 8px; font-size: 11px; font-weight: 700; }
.response-label textarea, .writing-editor textarea { width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 10px; resize: vertical; outline: none; font: 13px/1.7 ui-sans-serif, sans-serif; }
.response-label textarea { min-height: 130px; }
.response-label textarea:focus, .writing-editor textarea:focus { border-color: #94b1c1; box-shadow: 0 0 0 3px rgba(22,79,123,.06); }
.writing-switch { width: max-content; margin-bottom: 15px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; display: flex; background: white; }
.writing-switch button { min-width: 90px; height: 34px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 11px; cursor: pointer; }
.writing-switch button.active { color: white; background: var(--blue); }
.writing-editor textarea { min-height: 410px; margin-top: 22px; font-family: Georgia, serif; }
.writing-editor footer { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; }
.check-item { margin-top: 11px; display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.check-item input { margin: 1px 0 0; accent-color: var(--blue); }
.intensive-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.intensive-main { padding: 27px; }
.intensive-method { padding-bottom: 22px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.intensive-method span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.intensive-method b { width: 22px; height: 22px; border: 1px solid var(--line-dark); border-radius: 50%; display: grid; place-items: center; background: white; font-size: 9px; }
.intensive-method span.active { color: var(--ink); font-weight: 650; }
.intensive-method span.active b { color: white; border-color: var(--blue); background: var(--blue); }
.blind-listen { padding: 24px 0; border-bottom: 1px solid var(--line); }
.blind-listen h2 { margin: 0 0 6px; font-size: 16px; }
.blind-listen > div > p { margin: 0; color: var(--muted); font-size: 10px; }
.dictation-stage { padding-top: 24px; }
.dictation-head { display: flex; align-items: center; justify-content: space-between; }
.dictation-head > div:first-child { display: grid; gap: 4px; }
.dictation-head span { color: var(--blue); font-size: 9px; font-weight: 700; }
.dictation-head strong { font-size: 13px; }
.dictation-head > div:last-child { display: flex; gap: 5px; }
.speaker-chip { width: max-content; margin-top: 16px; padding: 4px 8px; border-radius: 6px; color: var(--teal); background: var(--teal-soft); font-size: 9px; font-weight: 700; }
.dictation-input { display: grid; gap: 8px; color: var(--ink); font-size: 10px; font-weight: 700; }
.dictation-input textarea { min-height: 130px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; resize: vertical; outline: none; font: 13px/1.7 Georgia, serif; }
.dictation-input textarea:focus { border-color: #91afbf; box-shadow: 0 0 0 3px rgba(22,79,123,.06); }
.dictation-actions { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dictation-actions label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.dictation-actions select { height: 34px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.dictation-result { margin-top: 16px; padding: 16px; border: 1px solid #c8dfda; border-radius: 10px; background: #f5faf9; }
.dictation-result > div:first-child { display: flex; justify-content: space-between; gap: 16px; }
.dictation-result strong { font-size: 11px; }
.dictation-result span { color: var(--muted); font-size: 9px; }
.dictation-result > p { margin: 14px 0; padding-top: 13px; border-top: 1px solid #d8e7e3; font: 15px/1.7 Georgia, serif; }
.error-causes { margin-bottom: 13px; display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 9px; }
.error-causes input { accent-color: var(--teal); }

/* Vocabulary */
.vocab-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.vocab-toolbar .search-field { width: min(420px, 100%); }
.toolbar-actions { display: flex; gap: 8px; }
.vocab-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; overflow: hidden; }
.summary-stat { padding: 18px 20px; border-right: 1px solid var(--line); }
.summary-stat:last-child { border-right: 0; }
.summary-stat span { color: var(--muted); font-size: 10px; }
.summary-stat strong { display: block; margin-top: 6px; font-size: 22px; }
.word-table-wrap { overflow: auto; }
.word-table { width: 100%; border-collapse: collapse; }
.word-table th { padding: 13px 18px; border-bottom: 1px solid var(--line); color: #909a9e; font-size: 10px; font-weight: 650; text-align: left; text-transform: uppercase; letter-spacing: .06em; }
.word-table td { padding: 16px 18px; border-bottom: 1px solid #edf0f1; font-size: 12px; vertical-align: middle; }
.word-table tbody tr:hover { background: #fafbfb; }
.word-cell strong { display: block; font-size: 14px; }
.word-cell span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 5px; }
.table-action { width: 30px; height: 30px; border: 0; border-radius: 7px; display: grid; place-items: center; background: transparent; color: #98a2a6; cursor: pointer; }
.table-action:hover { color: var(--red); background: #fbefed; }
.empty-state { padding: 70px 20px; text-align: center; color: var(--muted); }
.empty-state svg { width: 34px; height: 34px; }

/* Analytics */
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.metric-card { min-height: 120px; padding: 20px; position: relative; overflow: hidden; }
.metric-card .metric-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--blue); background: var(--blue-soft); }
.metric-card .metric-icon svg { width: 16px; }
.metric-card strong { display: block; margin-top: 16px; font-size: 24px; }
.metric-card span { color: var(--muted); font-size: 11px; }
.metric-card small { position: absolute; top: 21px; right: 18px; color: var(--teal); font-size: 10px; }
.analytics-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr); gap: 16px; }
.chart-card { padding: 23px; }
.chart-card h2 { margin: 0; font-size: 15px; }
.chart-card > p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.bar-chart { height: 250px; margin-top: 28px; padding: 0 10px 25px; display: flex; align-items: end; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); }
.bar-day { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; position: relative; }
.bar-pair { width: 100%; height: calc(var(--value) * 1%); min-height: 2px; display: flex; align-items: end; justify-content: center; gap: 4px; }
.bar-pair i { width: 10px; height: 100%; border-radius: 4px 4px 0 0; background: #9bb5c3; }
.bar-pair i:last-child { height: calc(var(--correct) * 1%); background: var(--blue); }
.bar-day span { position: absolute; bottom: -21px; color: var(--muted); font-size: 10px; }
.chart-legend { display: flex; justify-content: center; gap: 18px; margin-top: 30px; color: var(--muted); font-size: 10px; }
.chart-legend i { width: 7px; height: 7px; display: inline-block; margin-right: 5px; border-radius: 50%; background: #9bb5c3; }
.chart-legend span:last-child i { background: var(--blue); }
.level-ring { width: 150px; height: 150px; margin: 26px auto 18px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--blue) 0 72%, #e8edef 72% 100%); position: relative; }
.level-ring::after { content: ""; position: absolute; inset: 15px; border-radius: 50%; background: white; }
.level-ring div { z-index: 1; text-align: center; }
.level-ring strong { display: block; font-size: 30px; }
.level-ring span { color: var(--muted); font-size: 10px; }
.skill-list { display: grid; gap: 15px; margin-top: 24px; }
.skill-line > div { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 11px; }
.skill-line > div span:last-child { color: var(--muted); }
.skill-line > i { height: 5px; display: block; overflow: hidden; background: #e7ecee; border-radius: 99px; }
.skill-line > i::after { content: ""; display: block; width: var(--width); height: 100%; background: var(--blue); border-radius: inherit; }
.topic-card { grid-column: 1 / -1; }
.topic-bars { display: grid; gap: 15px; margin-top: 22px; }
.topic-row { display: grid; grid-template-columns: 80px 1fr 42px; gap: 12px; align-items: center; font-size: 11px; }
.topic-row i { height: 6px; overflow: hidden; background: #edf0f1; border-radius: 99px; }
.topic-row i::after { content: ""; display: block; width: var(--width); height: 100%; background: linear-gradient(90deg, var(--blue), #5b92aa); border-radius: inherit; }
.topic-row strong { text-align: right; font-size: 11px; }

/* Review */
.review-page { min-height: 100vh; padding: 32px; display: grid; grid-template-rows: auto 1fr; }
.review-toolbar { max-width: 920px; width: 100%; margin: 0 auto; display: grid; grid-template-columns: 42px 1fr 42px; gap: 16px; align-items: center; }
.session-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.session-track { height: 5px; margin-top: 7px; overflow: hidden; border-radius: 99px; background: #e2e8e9; }
.session-track span { display: block; height: 100%; background: var(--blue); border-radius: inherit; transition: width .3s ease; }
.review-stage { display: grid; place-items: center; padding: 50px 20px; }
.review-card { width: min(680px, 100%); min-height: 480px; padding: 34px 42px; box-shadow: var(--shadow); }
.review-card-head { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }
.review-card-head .badge { color: var(--blue); background: var(--blue-soft); font-weight: 700; }
.flashcard { min-height: 265px; padding: 66px 0 36px; text-align: center; }
.flashcard .counterword { margin: 0 0 10px; color: var(--muted); font-size: 11px; }
.flashcard h2 { margin: 0; font: 700 36px/1.2 Georgia, serif; }
.flashcard .pronounce { margin: 13px auto; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 12px; }
.flashcard .pronounce button { border: 0; background: none; color: var(--blue); cursor: pointer; }
.flashcard .meaning { margin: 22px auto 0; max-width: 460px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }
.reveal-button { width: 100%; }
.rating-prompt { margin: 0 0 10px; color: var(--muted); text-align: center; font-size: 10px; }
.rating-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rating-grid button { height: 58px; border: 1px solid var(--line); border-radius: 9px; background: white; cursor: pointer; }
.rating-grid button:hover { border-color: #99b5c5; background: #f7fafb; }
.rating-grid strong, .rating-grid span { display: block; }
.rating-grid strong { font-size: 12px; }
.rating-grid span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.review-complete { text-align: center; }
.review-complete .complete-icon { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; color: var(--teal); background: var(--teal-soft); }
.review-complete h2 { margin: 0; }
.review-complete p { margin: 8px 0 22px; color: var(--muted); }

/* Import dialog */
dialog { color: var(--ink); }
.import-dialog { width: min(740px, calc(100% - 32px)); max-height: calc(100vh - 36px); padding: 0; border: 0; border-radius: 16px; overflow: auto; box-shadow: 0 25px 80px rgba(14, 31, 38, .24); }
.import-dialog::backdrop { background: rgba(18, 29, 34, .48); backdrop-filter: blur(3px); }
.dialog-header { padding: 24px 26px 18px; display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin: 0; font-size: 19px; }
.dialog-header p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.import-tabs { padding: 14px 26px 0; display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.import-tabs button { height: 42px; border: 0; border-bottom: 2px solid transparent; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); background: none; font-size: 12px; cursor: pointer; }
.import-tabs button svg { width: 15px; }
.import-tabs button.active { color: var(--ink); border-bottom-color: var(--blue); font-weight: 700; }
.import-form { padding: 23px 26px 0; }
.import-panel { display: none; position: relative; }
.import-panel.active { display: block; }
.import-form label { display: grid; gap: 8px; font-size: 11px; font-weight: 650; }
.import-form label span { color: var(--muted); font-weight: 400; }
.import-form textarea, .import-form input { width: 100%; border: 1px solid var(--line); border-radius: 9px; outline: none; background: white; }
.import-form textarea:focus, .import-form input:focus { border-color: #91afc1; box-shadow: 0 0 0 3px rgba(22, 79, 123, .07); }
.import-form textarea { min-height: 210px; padding: 13px; resize: vertical; font: 13px/1.65 Georgia, serif; }
.import-form input { height: 40px; padding: 0 12px; }
.counter { position: absolute; right: 10px; bottom: 10px; color: var(--muted); font-size: 9px; }
.drop-zone { min-height: 210px; border: 1px dashed #bfcbd0; border-radius: 12px; display: grid !important; place-content: center; justify-items: center; text-align: center; background: #fafcfc; cursor: pointer; }
.drop-zone:hover { border-color: var(--blue); background: #f7fafc; }
.drop-zone svg { width: 30px; height: 30px; color: var(--blue); margin-bottom: 7px; }
.drop-zone strong { font-size: 13px; }
.drop-zone input { position: absolute; opacity: 0; pointer-events: none; }
.form-tip { color: var(--muted); font-size: 10px; }
.field-row { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dialog-actions { margin: 22px -26px 0; padding: 16px 26px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.transfer-body { padding: 22px 26px 26px; display: grid; gap: 12px; }
.transfer-option { min-height: 94px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 13px; align-items: center; background: #fafcfc; }
.transfer-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); }
.transfer-icon svg { width: 19px; height: 19px; }
.transfer-option h3 { margin: 0; font-size: 13px; }
.transfer-option p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.transfer-option label.button { cursor: pointer; white-space: nowrap; }
.transfer-note { padding: 12px 14px; border-radius: 10px; display: grid; gap: 4px; color: #725b21; background: #fff8e7; }
.transfer-note strong { font-size: 10px; }
.transfer-note span { font-size: 9px; line-height: 1.55; }

.toast { position: fixed; z-index: 100; left: 50%; bottom: 26px; min-height: 42px; padding: 0 16px; border-radius: 9px; display: flex; align-items: center; gap: 8px; color: white; background: #183f38; box-shadow: var(--shadow); font-size: 12px; opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: .22s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 16px; }
.mobile-scrim { display: none; }

/* Cambridge library and owned local assets */
.copyright-banner { margin-bottom: 18px; padding: 15px 18px; border: 1px solid #ecdba8; border-radius: 12px; display: flex; align-items: flex-start; gap: 12px; color: #624e1a; background: #fffaf0; }
.copyright-banner > span { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px; display: grid; place-items: center; color: #8b6a15; background: #fff0c6; }
.copyright-banner svg { width: 17px; }
.copyright-banner strong { font-size: 11px; }
.copyright-banner p { margin: 4px 0 0; color: #776a48; font-size: 10px; line-height: 1.6; }
.exam-filters { margin-bottom: 18px; padding: 20px; display: grid; gap: 19px; }
.exam-filters label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.volume-selector { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 7px; }
.volume-selector button { min-height: 53px; border: 1px solid var(--line); border-radius: 9px; display: grid; place-content: center; gap: 3px; color: var(--ink); background: white; cursor: pointer; }
.volume-selector strong { font-size: 11px; }
.volume-selector span { color: var(--muted); font-size: 8px; }
.volume-selector button.active, .test-selector button.active { color: white; border-color: var(--blue); background: var(--blue); }
.volume-selector button.active span { color: rgba(255,255,255,.75); }
.test-skill-row { display: grid; grid-template-columns: 260px 1fr; gap: 22px; }
.test-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.test-selector button { height: 38px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; font-size: 10px; cursor: pointer; }
.skill-selector { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.skill-selector button { min-width: 0; min-height: 38px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 2px; color: var(--ink); background: white; text-align: left; cursor: pointer; }
.skill-selector strong { font-size: 9px; }
.skill-selector span { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.skill-selector button.active { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 3px 0 0 var(--blue); }
.exam-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.exam-detail { min-height: 410px; padding: 27px; }
.exam-detail > h2 { margin: 23px 0 6px; font-size: 23px; }
.exam-detail > p { margin: 0; color: var(--muted); font-size: 10px; }
.copyright-lock { min-height: 220px; margin-top: 24px; padding: 25px; border: 1px dashed #c8d2d6; border-radius: 12px; display: grid; place-items: center; align-content: center; text-align: center; background: #fafbfb; }
.copyright-lock > span { width: 43px; height: 43px; border-radius: 50%; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); }
.copyright-lock svg { width: 20px; }
.copyright-lock h3 { margin: 14px 0 6px; font-size: 14px; }
.copyright-lock p { max-width: 480px; margin: 0 auto 16px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.asset-status-grid { margin-top: 23px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.asset-status-grid > div { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 9px; display: flex; align-items: center; gap: 9px; }
.asset-status-grid > div > span { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 8px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); }
.asset-status-grid svg { width: 15px; }
.asset-status-grid p { min-width: 0; margin: 0; display: grid; gap: 3px; }
.asset-status-grid strong { font-size: 9px; }
.asset-status-grid small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.local-assets { margin-top: 14px; display: grid; gap: 9px; }
.asset-host:empty { display: none; }
.asset-host audio, .asset-host video, .original-audio audio, .original-audio video { width: 100%; max-height: 260px; }
.owned-transcript { padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; }
.owned-transcript summary { font-size: 10px; font-weight: 700; cursor: pointer; }
.owned-transcript p { max-height: 220px; overflow-y: auto; white-space: pre-wrap; }
.exam-primary-actions { margin-top: 15px; display: flex; gap: 8px; }
.exam-matrix { margin-top: 18px; padding: 23px; }
.exam-matrix > div:first-child { margin-bottom: 15px; }
.exam-matrix h2 { margin: 0 0 4px; font-size: 15px; }
.exam-matrix p { margin: 0; color: var(--muted); font-size: 9px; }
.exam-matrix-row { display: grid; grid-template-columns: 78px repeat(4, 1fr); gap: 7px; align-items: center; margin-top: 7px; }
.exam-matrix-row > strong { font-size: 10px; }
.exam-matrix-row button { height: 38px; border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--muted); background: white; font-size: 9px; cursor: pointer; }
.exam-matrix-row button span { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #f0f3f4; }
.exam-matrix-row button svg { width: 10px; }
.exam-matrix-row button.ready { color: #267263; border-color: #c7e2dc; background: #f2faf8; }
.exam-matrix-row button.selected { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(22,79,123,.08); }
.exam-import-notice { padding: 12px; border: 1px solid #dbe6e9; border-radius: 9px; display: flex; gap: 10px; background: #f6f9fa; }
.exam-import-notice > svg { width: 18px; color: var(--blue); }
.exam-import-notice p { margin: 0; display: grid; gap: 4px; }
.exam-import-notice strong { font-size: 10px; }
.exam-import-notice span { color: var(--muted); font-size: 9px; line-height: 1.5; }

/* Dedicated intensive listening */
.source-switch { width: max-content; margin-bottom: 14px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; display: flex; background: white; }
.source-switch button { min-width: 145px; height: 36px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 10px; cursor: pointer; }
.source-switch button.active { color: white; background: var(--blue); }
.source-switch span { margin-left: 5px; padding: 1px 5px; border-radius: 8px; color: inherit; background: rgba(255,255,255,.18); }
.imported-listening-selector { margin-bottom: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.imported-listening-selector button { padding: 13px; border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 5px; color: var(--ink); background: white; text-align: left; cursor: pointer; }
.imported-listening-selector button span { color: var(--blue); font-size: 8px; }
.imported-listening-selector button strong { font-size: 10px; }
.imported-listening-selector button.active { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 3px 0 0 var(--blue); }
.empty-import { margin-bottom: 18px; padding: 20px; display: flex; align-items: center; gap: 14px; }
.empty-import > span { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); }
.empty-import svg { width: 20px; }
.empty-import div { flex: 1; }
.empty-import h3 { margin: 0 0 5px; font-size: 12px; }
.empty-import p { margin: 0; color: var(--muted); font-size: 9px; }
.intensive-method.six-steps { grid-template-columns: repeat(6, 1fr); }
.gist-note { margin-top: 13px; display: grid; gap: 7px; color: var(--ink); font-size: 10px; font-weight: 700; }
.gist-note textarea, .retell-stage textarea { width: 100%; min-height: 78px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; resize: vertical; outline: none; font: 12px/1.65 Georgia, serif; }
.gist-note textarea:focus, .retell-stage textarea:focus { border-color: #91afbf; box-shadow: 0 0 0 3px rgba(22,79,123,.06); }
.original-audio { margin-top: 16px; padding: 13px; border: 1px solid #cfdde3; border-radius: 10px; display: grid; gap: 10px; background: #f4f8fa; }
.original-audio > div:first-child { display: grid; gap: 3px; }
.original-audio strong { font-size: 10px; }
.original-audio span, .asset-loading { color: var(--muted); font-size: 9px; }
.dictation-result-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.retell-stage { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.retell-stage h3 { margin: 0 0 5px; font-size: 14px; }
.retell-stage p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.retell-stage .button { width: max-content; }
.science-card { padding: 20px; border-color: #c8dfda; background: #f3faf8; }
.science-card > span { color: var(--teal); font-size: 8px; font-weight: 750; letter-spacing: .1em; }
.science-card h3 { margin: 9px 0 7px; font-size: 13px; }
.science-card p { margin: 0; color: #58706a; font-size: 10px; line-height: 1.7; }
.science-card > div { margin-top: 12px; display: grid; gap: 6px; }
.science-card a { color: var(--blue); font-size: 9px; }
.speech-lab { margin-top: 24px; padding: 22px; border: 1px solid #cbdde4; border-radius: 12px; background: linear-gradient(145deg, #f7fbfc, #f2f7fa); }
.speech-lab-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.speech-lab-head > div:first-child > span { display: flex; align-items: center; gap: 6px; color: var(--blue); font-size: 9px; font-weight: 750; letter-spacing: .06em; }
.speech-lab-head svg { width: 14px; }
.speech-lab-head h3 { margin: 8px 0 5px; font-size: 15px; }
.speech-lab-head p { max-width: 620px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.7; }
.recording-status { flex: 0 0 auto; padding: 7px 10px; border: 1px solid var(--line); border-radius: 18px; display: flex; align-items: center; gap: 6px; color: var(--muted); background: white; font-size: 8px; }
.recording-status i { width: 7px; height: 7px; border-radius: 50%; background: #a7b0b4; }
.recording-status.recording { color: #a73d3d; border-color: #efcaca; background: #fff7f7; }
.recording-status.recording i { background: #d14a4a; box-shadow: 0 0 0 4px rgba(209,74,74,.12); animation: recordPulse 1.1s infinite; }
@keyframes recordPulse { 50% { transform: scale(.7); opacity: .55; } }
.speech-reference { margin-top: 15px; padding: 13px 15px; border-left: 3px solid var(--blue); border-radius: 0 8px 8px 0; background: white; }
.speech-reference span { color: var(--muted); font-size: 8px; }
.speech-reference p { margin: 5px 0 0; font: 14px/1.65 Georgia, serif; }
.speech-record-controls { margin-top: 12px; display: flex; gap: 7px; flex-wrap: wrap; }
.speech-playback { margin-top: 10px; }
.speech-playback audio { width: 100%; height: 38px; }
.speech-attempt { margin-top: 14px; display: grid; grid-template-columns: auto 1fr; gap: 5px 10px; color: var(--ink); font-size: 10px; font-weight: 700; }
.speech-attempt > span { color: var(--muted); font-size: 8px; font-weight: 400; text-align: right; }
.speech-attempt textarea { grid-column: 1 / -1; width: 100%; min-height: 86px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; resize: vertical; outline: none; font: 12px/1.65 Georgia, serif; }
.speech-attempt textarea:focus { border-color: #91afbf; box-shadow: 0 0 0 3px rgba(22,79,123,.06); }
.speech-assessment { margin-top: 14px; padding-top: 14px; border-top: 1px solid #d6e2e6; }
.speech-empty { min-height: 78px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); }
.speech-empty svg { width: 15px; }
.speech-empty p { margin: 0; font-size: 9px; }
.speech-score-head { display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
.overall-score { min-height: 84px; border-radius: 10px; display: grid; place-content: center; text-align: center; color: white; background: var(--blue); }
.overall-score strong { font-size: 28px; line-height: 1; }
.overall-score span { margin-top: 5px; font-size: 8px; }
.speech-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.speech-metrics > div { border: 1px solid var(--line); border-radius: 9px; display: grid; place-content: center; gap: 4px; text-align: center; background: white; }
.speech-metrics strong { font-size: 13px; }
.speech-metrics span { color: var(--muted); font-size: 8px; }
.word-alignment, .speech-insights { margin-top: 14px; }
.word-alignment h4, .speech-insights h4 { margin: 0 0 8px; font-size: 10px; }
.word-alignment p { margin: 0; display: flex; flex-wrap: wrap; gap: 5px; font: 12px/1.7 ui-monospace, monospace; }
.word-alignment span { padding: 2px 5px; border-radius: 5px; }
.word-alignment .match { color: #23675a; background: #eaf7f3; }
.word-alignment .missing { color: #ae4242; background: #fff0f0; text-decoration: line-through; }
.word-alignment .extra { color: #91610e; background: #fff6df; }
.word-alignment .replace { color: #944a20; background: #fff0e7; }
.word-alignment small { font-size: 8px; }
.speech-insights ul { margin: 0; padding-left: 18px; color: #4f6067; font-size: 9px; line-height: 1.8; }
.score-disclaimer { margin: 12px 0 0; color: var(--muted); font-size: 8px; }

/* Four-skill vocabulary library */
.vocab-skill-tabs { margin-bottom: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: white; }
.vocab-skill-tabs button { min-width: 0; min-height: 78px; padding: 13px 15px; border: 0; border-right: 1px solid var(--line); display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; color: var(--ink); background: white; text-align: left; cursor: pointer; }
.vocab-skill-tabs button:last-child { border-right: 0; }
.vocab-skill-tabs button > span { width: 34px; height: 34px; border-radius: 7px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); }
.vocab-skill-tabs button svg { width: 16px; height: 16px; }
.vocab-skill-tabs button div { min-width: 0; display: grid; gap: 4px; }
.vocab-skill-tabs button strong { font-size: 12px; }
.vocab-skill-tabs button small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.vocab-skill-tabs button b { color: var(--muted); font-size: 9px; font-weight: 650; }
.vocab-skill-tabs button.active { color: white; background: var(--blue); }
.vocab-skill-tabs button.active > span { color: white; background: rgba(255,255,255,.14); }
.vocab-skill-tabs button.active small, .vocab-skill-tabs button.active b { color: rgba(255,255,255,.72); }
.day-filter { height: 40px; padding: 0 9px 0 11px; border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; gap: 7px; color: var(--muted); background: white; font-size: 9px; white-space: nowrap; }
.day-filter select { max-width: 190px; border: 0; outline: 0; color: var(--ink); background: white; font-size: 10px; }
.vocab-source-note { margin: -3px 0 14px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.word-cell > div { display: flex; align-items: center; gap: 7px; }
.inline-speak { width: 27px; height: 27px; flex: 0 0 auto; border: 0; border-radius: 6px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); cursor: pointer; }
.inline-speak svg { width: 13px; height: 13px; }
.review-count, .next-review { display: block; }
.review-count { font-size: 10px; }
.next-review { margin-top: 4px; color: var(--muted); font-size: 9px; }
.word-actions { display: flex; align-items: center; gap: 4px; }
.mastery-button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 7px; display: grid; place-items: center; color: #98a2a6; background: white; cursor: pointer; }
.mastery-button svg { width: 14px; }
.mastery-button.active { color: white; border-color: var(--teal); background: var(--teal); }
.meaning-question { max-width: 560px; margin-left: auto !important; margin-right: auto !important; font: 650 22px/1.55 system-ui, sans-serif !important; }
.review-answer { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.audio-recall { min-width: 150px; min-height: 92px; margin-top: 20px; padding: 15px 22px; border: 1px solid #cbdce4; border-radius: 8px; display: inline-grid; place-items: center; gap: 7px; color: var(--blue); background: #f7fafb; cursor: pointer; }
.audio-recall svg { width: 26px; height: 26px; }
.audio-recall span { font-size: 10px; font-weight: 700; }
.vocab-import-dialog .import-form textarea { min-height: 155px; }
.vocab-import-dialog select { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; outline: none; background: white; }
.vocab-format-note { margin-top: 13px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 5px; color: var(--muted); background: #f8faf9; font-size: 9px; line-height: 1.55; }
.vocab-format-note strong { color: var(--ink); font-size: 10px; }
.vocab-format-note code { color: var(--blue); }

.focus-exit { position: fixed; z-index: 80; right: 18px; top: 18px; height: 40px; padding: 0 14px; border: 1px solid #cbd7dc; border-radius: 10px; display: none; align-items: center; gap: 7px; color: var(--ink); background: rgba(255,255,255,.96); box-shadow: 0 8px 24px rgba(20,38,44,.12); cursor: pointer; }
.focus-exit svg { width: 15px; }
.focus-mode .sidebar { transform: translateX(-100%); }
.focus-mode .app-main { margin-left: 0; }
.focus-mode .focus-exit { display: flex; }

@media (max-width: 1240px) {
  .page { width: min(1100px, calc(100% - 48px)); }
  .library-layout { grid-template-columns: 180px minmax(420px, 1fr); }
  .side-stack { grid-column: 2; grid-template-columns: 1fr 1fr; position: static; }
  .reader-grid { grid-template-columns: minmax(500px, 760px) 360px; }
  .reader-grid.simple-reader { grid-template-columns: minmax(500px, 760px) 360px; }
  .reader-toc { display: none; }
  .module-grid { grid-template-columns: 1fr 1fr; }
  .volume-selector { grid-template-columns: repeat(4, 1fr); }
  .exam-workspace { grid-template-columns: minmax(0, 1fr) 270px; }
}

@media (max-width: 930px) {
  :root { --sidebar: 0px; }
  .sidebar { width: 230px; transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .app-main { margin-left: 0; }
  .mobile-menu { position: fixed; z-index: 45; left: 14px; top: 14px; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.94); box-shadow: 0 6px 18px rgba(20,38,44,.08); }
  .mobile-scrim.show { position: fixed; z-index: 49; inset: 0; display: block; background: rgba(12,25,31,.3); }
  .page { width: calc(100% - 32px); padding-top: 76px; }
  .library-layout { grid-template-columns: 1fr; }
  .filter-rail { position: static; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
  .filter-rail .search-field { min-width: 250px; }
  .filter-group { margin: 0; display: flex; gap: 6px; }
  .filter-group h3, .reading-goal { display: none; }
  .filter-button { width: auto; white-space: nowrap; gap: 10px; background: white; border: 1px solid var(--line); }
  .side-stack { grid-column: auto; }
  .reader-topbar { padding-left: 66px; }
  .reader-grid { grid-template-columns: 1fr; }
  .reader-grid.simple-reader { grid-template-columns: 1fr; }
  .article-document { width: min(760px, 100%); margin: 0 auto; padding-left: 34px; padding-right: 34px; }
  .ai-panel { position: fixed; z-index: 40; inset: 68px 0 0 auto; width: min(390px, 92vw); border-left: 1px solid var(--line); box-shadow: -15px 0 40px rgba(22, 38, 44, .12); transform: translateX(101%); transition: transform .25s ease; }
  .ai-panel.open { transform: translateX(0); }
  .mobile-ai-toggle { display: grid; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .study-bottom-grid, .practice-layout, .writing-layout, .intensive-layout { grid-template-columns: 1fr; }
  .exam-workspace { grid-template-columns: 1fr; }
  .test-skill-row { grid-template-columns: 1fr; }
  .intensive-method.six-steps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 620px) {
  .page { padding-bottom: 40px; }
  .page-header { align-items: flex-end; }
  .page-title-group h1 { font-size: 26px; }
  .page-header .button span { display: none; }
  .module-grid { grid-template-columns: 1fr; }
  .study-overview { align-items: flex-start; }
  .study-overview p { max-width: 230px; }
  .reading-howto { align-items: flex-start; }
  .reading-howto ol { display: grid; gap: 6px; }
  .filter-rail { margin-right: -16px; }
  .article-row { padding: 16px; grid-template-columns: auto minmax(0, 1fr); }
  .article-progress { display: none; }
  .side-stack { grid-template-columns: 1fr; }
  .vocab-toolbar { align-items: stretch; flex-direction: column; }
  .vocab-toolbar .search-field { width: 100%; }
  .vocab-summary { grid-template-columns: 1fr 1fr; }
  .summary-stat:nth-child(2) { border-right: 0; }
  .summary-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .word-table th:nth-child(3), .word-table td:nth-child(3), .word-table th:nth-child(4), .word-table td:nth-child(4), .word-table th:nth-child(5), .word-table td:nth-child(5) { display: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .analytics-grid { grid-template-columns: 1fr; }
  .topic-card { grid-column: auto; }
  .reader-topbar { height: 64px; padding-right: 12px; }
  .reader-heading strong { max-width: 160px; }
  .read-percent { display: none; }
  .article-document { padding: 32px 22px 80px; }
  .article-header h1 { font-size: 32px; }
  .article-body { font-size: 17px; }
  .ai-panel { top: 64px; }
  .ai-sticky { top: 64px; height: calc(100vh - 64px); }
  .review-page { padding: 76px 16px 20px; }
  .review-card { min-height: 450px; padding: 25px 20px; }
  .speaking-controls { align-items: stretch; flex-direction: column; }
  .speaking-timer { margin-bottom: 4px; text-align: center; }
  .section-selector { grid-template-columns: 1fr 1fr; }
  .volume-selector { grid-template-columns: repeat(2, 1fr); }
  .skill-selector { grid-template-columns: 1fr 1fr; }
  .exam-matrix { overflow: visible; }
  .exam-matrix-row { min-width: 0; grid-template-columns: 68px 1fr 1fr; }
  .exam-matrix-row > strong { grid-row: 1 / span 2; }
  .asset-status-grid { grid-template-columns: 1fr; }
  .exam-primary-actions, .empty-import { align-items: stretch; flex-direction: column; }
  .source-switch { width: 100%; }
  .source-switch button { min-width: 0; flex: 1; }
  .imported-listening-selector { grid-template-columns: 1fr; }
  .intensive-method.six-steps { grid-template-columns: 1fr 1fr; }
  .speech-lab { padding: 17px; }
  .speech-lab-head { flex-direction: column; }
  .speech-record-controls { display: grid; }
  .speech-score-head { grid-template-columns: 1fr; }
  .speech-metrics { grid-template-columns: 1fr 1fr; }
  .speech-attempt { grid-template-columns: 1fr; }
  .speech-attempt > span { text-align: left; }
  .material-library-head { align-items: flex-start; flex-direction: column; gap: 5px; }
  .material-selector { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .material-selector button { min-width: 230px; scroll-snap-align: start; }
  .listening-player { align-items: stretch; flex-direction: column; }
  .player-buttons { display: grid; grid-template-columns: 1fr 1fr 1fr; }
  .player-buttons .button { padding: 0 7px; }
  .intensive-method { grid-template-columns: 1fr 1fr; }
  .dictation-result > div:first-child { display: grid; gap: 5px; }
  .rating-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .import-tabs { padding-left: 14px; padding-right: 14px; }
  .import-form { padding-left: 18px; padding-right: 18px; }
  .dialog-actions { margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; }
  .transfer-body { padding-left: 18px; padding-right: 18px; }
  .transfer-option { grid-template-columns: 42px minmax(0, 1fr); }
  .transfer-option .button { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 930px) {
  .vocab-skill-tabs { grid-template-columns: 1fr 1fr; }
  .vocab-skill-tabs button:nth-child(2) { border-right: 0; }
  .vocab-skill-tabs button:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .toolbar-actions { flex-wrap: wrap; }
}

@media (max-width: 620px) {
  .vocab-skill-tabs button { min-height: 68px; padding: 10px; grid-template-columns: 30px minmax(0, 1fr); }
  .vocab-skill-tabs button > span { width: 30px; height: 30px; }
  .vocab-skill-tabs button b { display: block; }
  .vocab-skill-tabs button small { display: none; }
  .toolbar-actions .button { flex: 1; }
  .day-filter { width: 100%; }
  .day-filter select { max-width: none; min-width: 0; flex: 1; }
  .word-table th:nth-child(5), .word-table td:nth-child(5) { display: table-cell; }
  .word-table th:nth-child(5), .word-table td:nth-child(5) { width: 54px; padding-left: 8px; padding-right: 8px; }
  .review-stage { padding-left: 0; padding-right: 0; }
  .meaning-question { font-size: 18px !important; }
}
