:root {
  --bg: #f2f5f3;
  --surface: #ffffff;
  --text: #18211d;
  --text-soft: #333d38;
  --muted: #58635d;
  --line: #dfe6e2;
  --line-soft: #edf1ef;
  --accent: #0b5c4f;
  --accent-text: #ffffff;
  --accent-soft: #e4f0ec;
  --nav-bg: #0b4a40;
  --nav-text: #d8e9e3;
  --nav-active: #1b6558;
  --control: #eef2f0;
  --warm: #f6e7c9;
  --warm-text: #574d39;
  --danger: #a33a2a;
  --danger-soft: #f8e6e2;
  --arabic: "Noto Naskh Arabic", "Sakkal Majalla", "Traditional Arabic", "Geeza Pro", "Segoe UI", serif;
  --rail: 88px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151916;
    --surface: #1f2420;
    --text: #edf0ec;
    --text-soft: #d7dcd6;
    --muted: #a7afa8;
    --line: #363d37;
    --line-soft: #2c322d;
    --accent: #5dbba8;
    --accent-text: #0a1f1a;
    --accent-soft: #233a33;
    --nav-bg: #0d2c26;
    --nav-text: #b9d3cb;
    --nav-active: #1d4a40;
    --control: #2a302b;
    --warm: #4a3f28;
    --warm-text: #efdcb6;
    --danger: #e58a7a;
    --danger-soft: #3b2622;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
}
h1, h2, h3, p { margin-top: 0; }
button, select, input, textarea { font: inherit; color: inherit; }
/* 手机上点按钮时浏览器默认会闪一下蓝色框，按钮本身已有按下效果，关掉它。 */
html { -webkit-tap-highlight-color: transparent; }
button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible, .button:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
svg .fill { fill: currentColor; stroke: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* 导航 */
.main-nav {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 4;
  width: var(--rail);
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--nav-bg);
}
.brand {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #ffffff;
  color: #0b4a40;
  font-family: var(--arabic);
  font-size: 28px;
}
.nav-item {
  width: 68px;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--nav-text);
  background: none;
  border: 0;
  border-radius: 12px;
  font-size: 13px;
  cursor: pointer;
}
.nav-item:hover { background: rgba(255, 255, 255, .08); }
.nav-item.active { color: #ffffff; background: var(--nav-active); }
.nav-logout { margin-top: auto; }
.app-main { min-height: 100%; margin-left: var(--rail); display: flex; flex-direction: column; }

/* 通用控件 */
select {
  min-height: 40px;
  padding: 0 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
}
.button:hover { border-color: var(--accent); }
.button.primary { color: var(--accent-text); background: var(--accent); border-color: var(--accent); font-weight: 500; }
.button.danger { color: var(--danger); }
.button:disabled { cursor: default; opacity: .5; }
.text-button { min-height: 36px; padding: 0 6px; color: var(--muted); background: none; border: 0; cursor: pointer; white-space: nowrap; }
.text-button:hover { color: var(--text); text-decoration: underline; }
.button-row { display: flex; gap: 8px; }
.inline-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.check { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.segmented { display: inline-flex; padding: 4px; gap: 2px; background: var(--control); border-radius: 12px; }
.segment-tab { min-height: 38px; padding: 0 15px; color: var(--muted); background: none; border: 0; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.segment-tab.active { color: var(--accent); background: var(--surface); font-weight: 700; }
.segmented.compact .segment-tab { min-height: 34px; padding: 0 11px; font-size: 13px; }
.round-button {
  flex: none;
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-text);
  background: var(--accent);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.small-round { width: 46px; height: 46px; color: var(--text); background: var(--control); }
.card {
  margin-bottom: 12px;
  padding: 20px;
  background: var(--surface);
  border-radius: 18px;
  overflow-wrap: anywhere;
}
.card-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.page-head h1 { margin: 0; font-size: 26px; }
.section-title { margin-bottom: 12px; font-size: 17px; }
.panel { width: 100%; max-width: 860px; margin: 0 auto; padding: 26px 24px 40px; flex: 1; }
.panel-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-bottom: 10px; font-size: 14px; }
.progress { height: 6px; margin-bottom: 14px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress span { display: block; width: 0; height: 100%; background: var(--accent); }
.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 24px 0;
  padding: 10px 14px;
  background: var(--surface);
  border-radius: 12px;
}
.notice p { margin: 0; overflow-wrap: anywhere; }
.notice.error p { color: var(--danger); }
.site-footer { margin-top: auto; text-align: center; font-size: 13px; }
.site-footer a { display: block; padding: 12px; color: var(--muted); }
.empty { padding: 40px 12px; text-align: center; }
.empty h2 { font-size: 18px; }
.empty p { color: var(--muted); line-height: 1.7; }

/* 素材库 */
.library-layout { display: flex; flex: 1; min-height: 100vh; }
.library-list-page {
  flex: none;
  width: 372px;
  padding: 20px 16px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.library-list-page .page-head h1 { font-size: 22px; }
.library-layout.no-detail .library-list-page { flex: 1; width: auto; border-right: 0; }
.continue-card {
  width: 100%;
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 14px;
  color: var(--accent-text);
  text-align: start;
  background: var(--accent);
  border: 0;
  border-radius: 14px;
  cursor: pointer;
}
.continue-card .muted { color: inherit; opacity: .85; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.filters select { min-height: 36px; padding: 0 4px; font-size: 13px; border-radius: 18px; }
#filter-search {
  flex: 1 1 100%;
  min-height: 42px;
  padding: 0 12px;
  background: var(--bg);
  border: 0;
  border-radius: 10px;
}
.library-list-page > .muted { margin-bottom: 8px; }
.library-list { display: flex; flex-direction: column; gap: 8px; }
.library-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px;
  text-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}
.library-card:hover { border-color: var(--accent); }
.library-card.selected { background: var(--accent-soft); border: 1.5px solid var(--accent); }
.library-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.library-title { font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.library-bar { height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; }
.library-bar span { display: block; height: 100%; background: var(--accent); }
.library-detail { flex: 1; min-width: 0; padding: 36px 44px; }
.back-link { display: none; margin-bottom: 8px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 4px 10px; color: var(--text-soft); background: var(--accent-soft); border-radius: 12px; font-size: 13px; }
.tag.status-done { color: var(--accent); font-weight: 700; }
.tag.status-failed { color: var(--danger); background: var(--danger-soft); }
.detail-title { margin: 14px 0 6px; font-size: 32px; line-height: 1.3; overflow-wrap: anywhere; }
.detail-original { margin-bottom: 18px; color: var(--muted); font-family: var(--arabic); font-size: 16px; text-align: start; }
.detail-summary { max-width: 680px; margin-bottom: 20px; color: var(--text-soft); font-size: 16px; line-height: 1.8; }
.detail-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.detail-tile { padding: 14px; background: var(--surface); border-radius: 14px; }
.detail-tile span { display: block; color: var(--muted); font-size: 13px; }
.detail-tile strong { display: block; margin-top: 5px; font-size: 21px; }
.detail-heading { margin-bottom: 10px; font-size: 16px; }
.practice-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.practice-card { padding: 20px; text-align: start; background: var(--surface); border: 0; border-radius: 16px; cursor: pointer; }
.practice-card:hover { outline: 1.5px solid var(--accent); }
.practice-card.primary { color: var(--accent-text); background: var(--accent); }
.practice-card strong { display: block; font-size: 18px; }
.practice-card span { display: block; margin-top: 7px; color: var(--muted); font-size: 14px; }
.practice-card.primary span { color: inherit; opacity: .85; }
.detail-manage { display: flex; flex-wrap: wrap; gap: 10px; }
.detail-input { width: 100%; min-height: 44px; margin-bottom: 10px; padding: 0 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.edit-actions { display: flex; gap: 8px; margin-top: 10px; }
.wrong-text { color: var(--danger); }
.right-text { color: var(--accent); }

/* 练习栏 */
.practice-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: 68px;
  padding: 10px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.practice-title-row { flex: 1 1 280px; min-width: 0; display: flex; align-items: center; gap: 10px; }
.current-title { min-width: 0; overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

/* 逐句精听 */
.segments { width: 100%; max-width: 860px; margin: 0 auto; padding: 22px 24px 130px; flex: 1; }
.segment { margin-bottom: 12px; padding: 16px 22px; background: var(--surface); border-radius: 16px; cursor: pointer; overflow-wrap: anywhere; }
.segment.active { padding: 22px 26px; outline: 2px solid var(--accent); outline-offset: -2px; }
.focus-mode .segment { display: none; opacity: .72; }
.focus-mode .segment.near { display: block; }
.focus-mode .segment.active { display: block; opacity: 1; }
.focus-mode .segment.active .ar { font-size: 33px; }
.focus-mode .segment.active .zh { color: var(--text-soft); font-size: 17px; }
.segment-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; }
.ar { margin: 8px 0; font-family: var(--arabic); font-size: 25px; line-height: 1.85; }
.small-ar { font-size: 20px; }
.word { border-radius: 5px; cursor: help; }
.word:hover { background: var(--warm); }
.zh { margin: 4px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.hide-ar .ar, .hide-zh .zh { display: none; }
.segment textarea { width: 100%; margin: 6px 0; padding: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; resize: vertical; }
.segment textarea.ar { font-family: var(--arabic); font-size: 22px; }

/* 播放栏 */
.player {
  position: fixed;
  right: 0;
  bottom: 0;
  left: var(--rail);
  z-index: 3;
  min-height: 92px;
  padding: 12px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px 18px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.player-side { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.player-right { justify-content: flex-end; }
.transport { display: flex; align-items: center; gap: 12px; }
.icon-pause { display: none; }
.playing .icon-play { display: none; }
.playing .icon-pause { display: block; }
.counter { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }

/* 听音选义 */
.quiz-layout { display: flex; flex-direction: column; gap: 14px; }
.quiz-main { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.options-list { display: grid; gap: 10px; }
.option {
  min-height: 58px;
  padding: 12px 16px;
  text-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  line-height: 1.6;
  cursor: pointer;
}
.option:hover:not(:disabled) { border-color: var(--accent); }
.option:disabled { cursor: default; }
.option.right { background: var(--accent-soft); border: 2px solid var(--accent); font-weight: 500; }
.option.wrong { background: var(--danger-soft); border: 2px solid var(--danger); }
.reveal { padding-top: 12px; border-top: 1px solid var(--line); }
.verdict { margin: 0; font-weight: 700; }

/* 跟读 */
.shadow-text-card .ar { font-size: 29px; }
.recorder-card { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mic-label { width: 100%; }
#mic-select { flex: 1; min-width: 0; }
.record-button { width: 88px; height: 88px; padding: 8px; font-size: 14px; font-weight: 700; line-height: 1.3; }
.record-button.recording { color: #ffffff; background: var(--danger); }
.status-text { margin: 0; min-height: 22px; color: var(--text-soft); text-align: center; }
.mic-meter { width: 100%; height: 8px; overflow: hidden; background: var(--line); border-radius: 4px; }
#mic-level { display: block; width: 0; height: 100%; background: var(--accent); }
.shadow-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }

/* 查词 */
.lookup {
  position: fixed;
  top: 84px;
  right: 18px;
  z-index: 5;
  width: 300px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding: 16px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .16);
}
.lookup-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lookup-word { font-family: var(--arabic); font-size: 28px; }
.lookup dl { display: grid; gap: 2px; margin: 10px 0; font-size: 14px; }
.lookup dt { margin-top: 6px; color: var(--muted); }
.lookup dd { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
.lookup-arabic { font-family: var(--arabic); font-size: 19px; text-align: start; }
.lookup-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (min-width: 1240px) {
  .lookup-open .segments { margin-right: 340px; max-width: min(860px, calc(100vw - var(--rail) - 340px)); }
}

/* 单词 */
.vocab-item { padding: 14px 0; border-top: 1px solid var(--line-soft); }
.vocab-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vocab-row > strong { flex: 1; min-width: 0; }
.vocab-word { font-family: var(--arabic); font-size: 27px; overflow-wrap: normal; word-break: keep-all; }
.vocab-field { margin: 4px 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.vocab-actions { display: flex; gap: 8px; margin-top: 8px; }

/* 学习记录 */
.stat-tiles { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.stat-tile { display: grid; gap: 6px; align-content: start; padding: 16px; background: var(--surface); border-radius: 16px; }
.stat-tile.highlight { color: var(--accent-text); background: var(--accent); }
.stat-tile.highlight .muted { color: inherit; opacity: .85; }
.stat-value { font-size: 19px; font-variant-numeric: tabular-nums; }
.word-stats-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.word-stats-head .text-button { text-decoration: none; }
.word-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.word-tile { display: grid; gap: 4px; align-content: start; padding: 12px 14px; background: var(--bg, #f2f5f3); border-radius: 12px; }
.word-tile strong { font-size: 21px; font-variant-numeric: tabular-nums; }
.word-tile.highlight { background: var(--accent-soft); }
.stat-tile.highlight .stat-value { font-size: 34px; line-height: 1.1; }
.check-in { margin-bottom: 12px; }
.chart-wrap { position: relative; }
.bar-chart { display: flex; align-items: stretch; height: 170px; border-bottom: 1px solid var(--line); }
.bar-column { display: flex; flex: 1; align-items: flex-end; min-width: 0; padding: 0 1px; }
.bar-column:hover { background: var(--bg); }
.bar { width: 100%; max-width: 16px; margin: 0 auto; background: var(--accent); border-radius: 4px 4px 0 0; }
.chart-axis { display: flex; justify-content: space-between; margin-top: 6px; }
.chart-tooltip {
  position: absolute;
  top: 0;
  z-index: 1;
  padding: 4px 8px;
  color: var(--bg);
  background: var(--text);
  border-radius: 6px;
  font-size: 13px;
  pointer-events: none;
  transform: translateX(-50%);
  white-space: nowrap;
}
.stats-details summary { cursor: pointer; }
.stats-table { width: 100%; margin-top: 8px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.stats-table th, .stats-table td { padding: 6px 8px; text-align: start; border-bottom: 1px solid var(--line); }
.stats-table th { color: var(--muted); font-weight: 400; }
.today-material { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0; }

/* 即将推出 */
.soon-tag { display: inline-block; padding: 2px 8px; color: var(--warm-text); background: var(--warm); border-radius: 10px; font-size: 12px; font-weight: 500; }
.segment-tab:disabled { cursor: default; opacity: .75; }
.soon-card h2 { margin: 12px 0 6px; font-size: 20px; }
.soon-card p { margin: 0; line-height: 1.7; }
.soon-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.soon-banner strong, .soon-banner span { display: block; }
.soon-banner span { margin-top: 3px; }
.compact-head { margin-bottom: 4px; }
.compact-head .section-title { margin: 0; }
.account-list { padding: 6px 20px; }
.account-row { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: none; border: 0; border-top: 1px solid var(--line-soft); cursor: pointer; }
.account-row:first-child { border-top: 0; }
.account-row:disabled { cursor: default; }
.nav-fullscreen { display: none; margin-top: auto; }
.nav-account { margin-top: 0; }
.lan-address { padding: 10px 12px; color: var(--text-soft); background: var(--bg); border-radius: 10px; font-size: 14px; user-select: all; overflow-wrap: anywhere; }
.nav-logout { margin-top: 0; }
.vocab-speaker { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); background: var(--control); border: 0; border-radius: 50%; }
.vocab-speaker:disabled { cursor: default; opacity: .6; }
.vocab-word-group { display: flex; flex: none; align-items: center; gap: 10px; max-width: 70%; }
.vocab-speaker { flex: none; }

/* MVP 演示 */
.demo-tag { display: inline-block; padding: 2px 8px; color: var(--warm-text); background: var(--warm); border-radius: 10px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 28, 23, .62); }
.modal-box { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px; background: var(--surface); border-radius: 20px; display: flex; flex-direction: column; gap: 12px; }
.modal-box p { margin: 0; line-height: 1.7; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.modal-head h2 { margin: 6px 0 0; font-size: 22px; }
.icon-close { flex: none; width: 44px; height: 44px; background: var(--control); border: 0; border-radius: 12px; font-size: 20px; cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: 110px; z-index: 30; max-width: calc(100vw - 32px); padding: 10px 16px; color: var(--bg); background: var(--text); border-radius: 12px; transform: translateX(-50%); }
.wide { width: 100%; }
.pay-price { font-size: 30px; font-weight: 700; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-grid.one { grid-template-columns: minmax(0, 1fr); }
.choice { min-height: 52px; padding: 10px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.choice.selected { background: var(--accent-soft); border: 2px solid var(--accent); }
.wrong-choice { background: var(--danger-soft); border: 2px solid var(--danger); }
.arabic-choice { font-family: var(--arabic); font-size: 22px; }
.benefits { margin: 0; padding-left: 20px; line-height: 1.9; color: var(--text-soft); }
.setting-row { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line-soft); }
.text-button.accent { color: var(--accent); }
.invite-code { padding: 14px; text-align: center; background: var(--bg); border-radius: 12px; font-size: 22px; font-weight: 700; letter-spacing: 2px; }
.pick-list { display: flex; flex-direction: column; }
.profile-card { display: flex; align-items: center; gap: 15px; }
.profile-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.profile-name-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.profile-name-row strong { min-width: 0; overflow-wrap: anywhere; }
.edit-name { min-height: 32px; padding: 0 8px; color: var(--accent); font-size: 13px; text-decoration: underline; }
.name-input { font-family: inherit; font-size: 18px; }
/* 头像可点：右下角小相机，鼠标移上去显示“更换头像” */
.avatar-wrap { flex: none; }
.avatar-button { position: relative; display: block; padding: 0; background: none; border: 0; border-radius: 50%; cursor: pointer; }
.avatar-button .profile-avatar { display: flex; box-shadow: 0 0 0 3px var(--paper, #fffbf1), 0 0 0 4px var(--line); }
.avatar-button:hover .profile-avatar, .avatar-button:focus-visible .profile-avatar { box-shadow: 0 0 0 3px var(--paper, #fffbf1), 0 0 0 5px var(--accent); }
.avatar-camera { position: absolute; right: -4px; bottom: -4px; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; color: #26291f; background: var(--mustard, #e2a33a); border: 2px solid var(--paper, #fffbf1); border-radius: 50%; }
.avatar-camera svg { width: 14px; height: 14px; stroke-width: 2; }
.profile-text { display: grid; gap: 4px; }
.profile-text strong { font-size: 20px; }
.member-tag { margin-left: 8px; padding: 2px 9px; color: var(--warm-text); background: var(--warm); border-radius: 11px; font-size: 12px; font-weight: 700; }
.account-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.account-card { padding: 16px; display: grid; gap: 5px; text-align: start; background: var(--surface); border: 0; border-radius: 16px; cursor: pointer; }
.account-card strong { font-size: 17px; }
.account-card.primary { color: var(--accent-text); background: var(--accent); }
.onboarding { position: fixed; inset: 0; z-index: 25; display: flex; overflow-y: auto; background: var(--surface); }
.onboarding-intro { flex: 1; padding: 56px; display: flex; flex-direction: column; justify-content: center; gap: 18px; color: #ffffff; background: var(--nav-bg); }
.onboarding-intro h1 { margin: 0; font-size: 36px; line-height: 1.3; }
.onboarding-intro p { margin: 0; line-height: 1.8; }
.onboarding-arabic { font-family: var(--arabic); font-size: 26px; text-align: start; }
.brand.large { width: 58px; height: 58px; margin: 0; font-size: 34px; }
.onboarding-form { width: 520px; flex: none; padding: 40px 48px; display: flex; flex-direction: column; justify-content: center; gap: 13px; }
.onboarding-form h2 { margin: 0; font-size: 26px; }
.onboarding-form label { display: flex; flex-direction: column; gap: 5px; color: var(--text-soft); font-size: 14px; }
.onboarding-form input:not([type="checkbox"]) { min-height: 46px; padding: 0 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; }
.onboarding-form .agree { flex-direction: row; align-items: flex-start; gap: 8px; font-size: 13px; }
.onboarding-name { display: none; }
.onboarding-back { align-self: flex-start; }
.onboarding-switch { align-self: center; }
.onboarding-choice .button { min-height: 50px; font-size: 16px; }
.onboarding-choice .text-button { align-self: center; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; }
.invite-note { margin: 0; padding: 9px 12px; color: var(--text-soft); background: var(--accent-soft); border-radius: 10px; font-size: 14px; }
.friends-layout { flex: 1; display: flex; min-height: 0; }
.friend-list { flex: none; width: 320px; padding: 20px 14px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); }
.friend-list .page-head { margin-bottom: 2px; }
.friend-list .page-head h1 { font-size: 22px; }
.leader-card, .school-card { padding: 11px 12px; display: grid; gap: 3px; text-align: start; border-radius: 12px; cursor: pointer; font-size: 14px; }
.leader-card { color: var(--warm-text); background: var(--warm); border: 0; }
.school-card { background: var(--surface); border: 1px solid var(--line); }
.friend-row { width: 100%; padding: 10px; display: flex; align-items: center; gap: 11px; text-align: start; background: none; border: 0; border-radius: 13px; cursor: pointer; }
.friend-row.selected { background: var(--accent-soft); }
.friend-avatar { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; }
.friend-text { min-width: 0; display: grid; gap: 2px; }
.friend-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-pane { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-head { min-height: 68px; padding: 10px 20px; display: flex; align-items: center; gap: 10px; background: var(--surface); border-bottom: 1px solid var(--line); }
.chat-title { flex: 1; min-width: 0; display: grid; gap: 1px; }
.chat-back { display: none; font-size: 22px; }
.chat-messages { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 24px; display: flex; flex-direction: column; gap: 12px; }
.message { display: flex; }
.message.mine { justify-content: flex-end; }
.bubble { max-width: min(420px, 82%); padding: 10px 14px; background: var(--surface); border-radius: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.mine .bubble { background: var(--accent-soft); }
.material-card { width: 340px; display: grid; gap: 6px; }
.quote-card p { margin: 4px 0 0; font-family: var(--arabic); font-size: 20px; }
.voice-bubble { width: 270px; display: flex; align-items: center; gap: 10px; }
.voice-play { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent-text); background: var(--accent); border: 0; border-radius: 50%; cursor: pointer; }
.voice-play svg { width: 18px; height: 18px; }
.voice-play.playing { opacity: .6; }
.waveform { flex: 1; min-width: 0; height: 26px; display: flex; align-items: center; gap: 3px; overflow: hidden; }
.waveform span { flex: none; width: 3px; border-radius: 2px; background: var(--accent); }
.chat-compose { padding: 12px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--surface); border-top: 1px solid var(--line); }
.chat-input { flex: 1; min-width: 120px; min-height: 42px; padding: 0 12px; background: var(--bg); border: 0; border-radius: 11px; }
.recording-button { color: #ffffff; background: var(--danger); border-color: var(--danger); }
.predict-card { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; border: 1.5px solid #c8922f; }
.predict-head { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.predict-head h2 { margin: 0 0 4px; font-size: 24px; }
.predict-card p { margin: 0; }
.paid-tag, .unlocked-tag { flex: none; padding: 5px 12px; border-radius: 15px; font-size: 14px; font-weight: 700; }
.paid-tag { color: var(--warm-text); background: var(--warm); }
.unlocked-tag { color: var(--accent); background: var(--accent-soft); }
.exam-summary { display: grid; gap: 4px; }
.paper-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.paper-card { padding: 14px; display: grid; gap: 5px; text-align: start; background: var(--surface); border: 0; border-radius: 14px; cursor: pointer; }
.paper-card:hover { outline: 1.5px solid var(--accent); }
.sample-question { display: flex; flex-direction: column; gap: 10px; }
.review-banner { margin-bottom: 12px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--accent-text); background: var(--accent); border-radius: 18px; }
.review-banner strong, .review-banner span { display: block; }
.review-banner strong { font-size: 18px; }
.review-banner span { margin-top: 3px; opacity: .85; }
.review-banner .button { color: var(--text); }
.review-prompt { min-height: 96px; padding: 14px; display: flex; align-items: center; justify-content: center; gap: 12px; background: var(--bg); border-radius: 14px; }
.review-word { font-family: var(--arabic); font-size: 42px; }
.review-meaning { font-size: 22px; text-align: center; }
.writing-input { min-height: 58px; padding: 0 14px; background: var(--surface); border: 2px solid var(--accent); border-radius: 14px; font-family: var(--arabic); font-size: 28px; }
.arabic-keyboard { padding: 6px; display: flex; flex-direction: column; gap: 5px; background: var(--control); border-radius: 12px; }
.key-row { display: flex; justify-content: center; gap: 4px; }
.key { flex: 1; max-width: 44px; min-height: 42px; padding: 0; background: var(--surface); border: 0; border-radius: 7px; font-family: var(--arabic); font-size: 20px; cursor: pointer; }
.wide-key { max-width: none; font-family: inherit; font-size: 14px; }
.books-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 12px; align-items: start; }
.book-list { display: grid; gap: 6px; }
.book-row { padding: 13px; text-align: start; background: var(--surface); border: 1px solid transparent; border-radius: 12px; cursor: pointer; }
.book-row.selected { background: var(--accent-soft); border-color: var(--accent); font-weight: 700; }
.book-row strong, .book-row-info { display: block; }
.book-row-info { margin-top: 4px; font-weight: 400; }
.book-source { margin: 6px 4px 0; line-height: 1.6; }
.book-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.book-title-row { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.book-title-row p { margin: 4px 0 0; }
.scope-row { display: flex; flex-wrap: wrap; gap: 8px; }
.book-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.book-stat { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: var(--surface); border-radius: 12px; }
.book-stat strong { font-size: 20px; }
.group-list { max-height: 460px; overflow-y: auto; }
.group-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; padding: 11px 0; border-bottom: 1px solid var(--line, rgba(127, 127, 127, .2)); }
.group-row:last-child, .book-word:last-child { border-bottom: 0; }
.group-row > div:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.group-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.book-words { padding-block: 4px; }
.book-word { display: grid; grid-template-columns: minmax(180px, 2fr) minmax(0, 2fr) 96px auto; align-items: center; gap: 8px 14px; padding: 10px 0; border-bottom: 1px solid var(--line, rgba(127, 127, 127, .2)); }
.book-word-ar { font-family: "Noto Naskh Arabic", "Amiri", serif; font-size: 24px; overflow-wrap: normal; word-break: keep-all; }
.book-word-zh { font-weight: 500; min-width: 0; }
.book-child { margin: 6px 0 0; }
/* AI 生成内容的统一小字提示：前面一个小“AI”标 */
.ai-note { margin: 8px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.ai-note::before { content: "AI"; display: inline-block; margin-right: 6px; padding: 0 5px; color: #f7efe0; background: #5e5645; border-radius: 3px; font-family: var(--mono), monospace; font-size: 10px; font-weight: 700; line-height: 16px; vertical-align: 1px; }
.segments-ai-note { margin: 0 0 6px; }
.review-ai-note { margin-top: 4px; text-align: center; }
.ai-source-note { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; background: rgba(214, 158, 46, .16); border-radius: 12px; font-size: 14px; line-height: 1.6; }
.translate-direction { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 12px; }
#translate-swap svg { fill: none; stroke: currentColor; stroke-width: 2; }
.translate-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.translate-box { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
#translate-input { width: 100%; box-sizing: border-box; min-height: 150px; padding: 12px; resize: vertical; background: var(--surface); color: inherit; border: 2px solid var(--accent); border-radius: 12px; font: inherit; font-size: 18px; line-height: 1.7; }
.translate-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.translate-actions.end { justify-content: flex-end; }
.translate-result { flex: 1; min-height: 100px; margin: 0; font-size: 18px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.translate-result.arabic { font-family: "Noto Naskh Arabic", "Amiri", serif; font-size: 26px; line-height: 1.9; overflow-wrap: normal; }
.translate-recent { margin-top: 12px; }
.report-word { padding: 12px 14px; background: var(--bg); border-radius: 12px; }
.report-word p { margin: 0; }
.report-word-ar { font-family: "Noto Naskh Arabic", "Amiri", serif; font-size: 24px; }
.report-reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; padding: 0; border: 0; }
.report-reasons legend { margin-bottom: 8px; font-weight: 700; }
.report-reason { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; background: var(--bg); border-radius: 11px; font-size: 14px; }
.report-label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.report-input { min-height: 48px; padding: 0 12px; background: var(--surface); border: 2px solid var(--accent); border-radius: 12px; font-size: 18px; }
.quick-questions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.quick-questions .button { min-width: 0; padding: 0 6px; white-space: nowrap; font-size: 14px; }
.teacher-answer { min-height: 70px; padding: 12px; display: grid; gap: 8px; background: var(--bg); border-radius: 12px; }
.teacher-question { font-weight: 700; }
.teacher-reply { white-space: pre-wrap; }
.teacher-input { display: flex; gap: 8px; }

/* AI 老师（电脑）：精听页右侧固定的深色面板，不遮挡全文 */
.teacher-panel { position: fixed; top: 84px; right: 18px; bottom: 132px; z-index: 5; width: 370px; box-sizing: border-box; padding: 16px; display: flex; flex-direction: column; gap: 12px; color: var(--screen-text); background: var(--deck); border-radius: 12px; box-shadow: 0 6px 0 #15170f; }
.teacher-panel[hidden] { display: none; }
.teacher-head { display: flex; align-items: center; justify-content: space-between; }
.teacher-title { display: flex; align-items: center; gap: 10px; }
.teacher-title strong { font-family: var(--serif); font-size: 18px; }
.teacher-grille { width: 44px; height: 30px; border-radius: 4px; background-color: #1c1f19; background-image: radial-gradient(#5a5f55 1.5px, transparent 2px); background-size: 6px 6px; }
.teacher-led { width: 7px; height: 7px; border-radius: 50%; background: var(--led-green); box-shadow: 0 0 6px var(--led-green); }
.teacher-close { width: 40px; height: 40px; color: var(--screen-text); background: #3b4037; border: 0; border-radius: 6px; font-size: 18px; cursor: pointer; }
.teacher-context { color: var(--screen-muted); font-family: var(--mono), sans-serif; font-size: 12px; }
.teacher-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.teacher-quick button { height: 34px; padding: 0 10px; color: #26291f; background: var(--deck-key); border: 0; border-radius: 3px; box-shadow: 0 2px 0 var(--deck-key-edge); font: inherit; font-size: 13px; cursor: pointer; }
.teacher-quick button:active { transform: translateY(2px); box-shadow: none; }
.teacher-thread { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.teacher-note { align-self: flex-end; max-width: 270px; padding: 10px 12px; color: #26291f; background: #f2d9a4; font-size: 14px; line-height: 1.6; transform: rotate(.6deg); }
.teacher-reply-card { padding: 12px 14px; color: #26291f; background: var(--paper); font-size: 14px; line-height: 1.75; white-space: pre-wrap; box-shadow: inset 0 3px 0 #e2d3b6; }
.teacher-reply-card.muted { color: var(--muted); }
.teacher-warn { margin: 0; color: var(--screen-muted); font-size: 12px; }
.teacher-compose { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; background: #161812; border-radius: 6px; }
.teacher-compose input { flex: 1; min-width: 0; color: var(--screen-text); background: transparent; border: 0; outline: none; font: inherit; font-size: 14px; }
.teacher-compose button { height: 40px; padding: 0 14px; color: #26291f; background: var(--mustard); border: 0; border-radius: 4px; box-shadow: 0 3px 0 var(--mustard-edge); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
@media (min-width: 900px) {
  .teacher-open .segments { margin-right: 390px; max-width: min(860px, calc(100vw - var(--rail) - 410px)); }
  /* 当前句上的“问 AI 老师”做成琥珀色小按钮 */
  .segments .segment.active .text-button.teacher-button, .segments .segment.active .text-button.teacher-button:hover { min-height: 34px; padding: 0 12px; color: #26291f; background: var(--mustard); border-radius: 4px; box-shadow: 0 3px 0 var(--mustard-edge); font-weight: 700; }
}

/* 整页复习 */
.reviewing .main-nav { display: none; }
.reviewing .app-main { margin-left: 0; padding-bottom: 0; }
.review-page { flex: 1; display: flex; flex-direction: column; }
.review-head { min-height: 64px; padding: 8px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.round-chips { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.round-chip { padding: 6px 12px; color: var(--muted); background: var(--control); border-radius: 15px; font-size: 13px; white-space: nowrap; }
.round-chip.current { color: var(--accent-text); background: var(--accent); }
.round-chip.done { color: var(--accent); background: var(--accent-soft); }
.review-size { font-size: 14px; white-space: nowrap; }
.review-body { width: 100%; max-width: 760px; margin: 0 auto; padding: 20px 24px 30px; display: flex; flex-direction: column; gap: 12px; }
.review-body .panel-bar, .review-body .progress { margin-bottom: 0; }
.review-prompt { min-height: 96px; padding: 16px; background: var(--surface); }
.review-prompt.small-prompt { min-height: 70px; }
.option.arabic-choice { text-align: center; }
.wrong-note { padding: 12px 15px; color: var(--warm-text); background: var(--warm); border-radius: 14px; }
.wrong-note p { margin: 4px 0 0; font-size: 14px; }
.next-row { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
@media (pointer: coarse) { .next-hint { display: none; } }
.next-row .button { min-height: 46px; padding: 0 26px; }
.spelling-answer { margin: 0; padding: 12px 15px; background: var(--accent-soft); border-radius: 14px; }
.answer-word { font-family: var(--arabic); font-size: 24px; }
.review-done { width: 100%; max-width: 860px; margin: 0 auto; padding: 24px; }
.done-banner { margin-bottom: 12px; padding: 22px 26px; color: var(--accent-text); background: var(--accent); border-radius: 20px; }
.done-banner h1 { margin: 0; font-size: 26px; }
.done-banner p { margin: 6px 0 0; opacity: .85; }
.interval-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; text-align: center; font-size: 14px; }
.interval-row span { padding: 9px 0; background: var(--accent-soft); border-radius: 10px; }
.done-list { padding: 6px 20px; }
.done-row { padding: 10px 0; display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 12px; border-top: 1px solid var(--line-soft); }
.done-row:first-child { border-top: 0; }
.done-word { font-family: var(--arabic); font-size: 24px; }
.done-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* 词典 */
.dictionary-form { display: flex; gap: 8px; margin-bottom: 12px; }
#dictionary-input { flex: 1; min-width: 0; min-height: 50px; padding: 0 16px; background: var(--surface); border: 2px solid var(--accent); border-radius: 14px; font-size: 18px; }
.dictionary-form .button { min-height: 50px; padding: 0 22px; }
.dictionary-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 12px; align-items: start; }
.dictionary-entry { display: flex; flex-direction: column; gap: 10px; }
.dictionary-entry p { margin-bottom: 0; }
.dictionary-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.dictionary-meaning { font-size: 20px; }
.dictionary-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.inline-arabic { font-family: var(--arabic); font-size: 18px; }
.dictionary-example { padding: 12px 14px; background: var(--bg); border-radius: 12px; }
.dictionary-related { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.related-word { max-width: 100%; color: var(--text-soft); text-decoration: underline; white-space: normal; text-align: start; }
.recent-word { width: 100%; padding: 8px 0; display: grid; gap: 2px; text-align: start; background: none; border: 0; border-top: 1px solid var(--line-soft); cursor: pointer; font-family: var(--arabic); }
.recent-word .small { overflow: hidden; font-family: "Microsoft YaHei", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.vocab-speaker svg { width: 20px; height: 20px; }

/* 登录 */
.login { max-width: 360px; margin: 12vh auto 0; padding: 0 16px; }
.login h1 { text-align: center; }
.login form { display: grid; gap: 10px; }
.login input { min-height: 44px; padding: 0 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.login p { margin: 0; }

/* 电脑：窗口本身不滚动，内容在各自区域内滚动，像桌面客户端一样 */
@media (min-width: 900px) {
  html, body { overflow: hidden; }
  .app-main { height: 100vh; min-height: 0; overflow-y: auto; }
  .library-layout { min-height: 0; overflow: hidden; }
  .library-list-page, .library-detail { overflow-y: auto; }
  .nav-fullscreen { display: flex; }
  .friends-layout { overflow: hidden; }
}

/* 手机和竖屏平板：底部导航，一次只显示一层 */
@media (max-width: 899px) {
  :root { --rail: 0px; }
  .main-nav {
    inset: auto 0 0 0;
    width: auto;
    height: 72px;
    padding: 6px 10px 8px;
    flex-direction: row;
    justify-content: space-around;
    background: var(--surface);
    border-top: 1px solid var(--line);
  }
  .brand { display: none; }
  .nav-item { width: auto; flex: 1; padding: 6px 0; color: var(--muted); font-size: 12px; }
  .nav-item.active { color: var(--accent); background: none; font-weight: 700; }
  .nav-account { margin-top: 0; }
  .nav-stats, .nav-logout { display: none; }
  .nav-item { font-size: 11px; }
  .practicing .main-nav { display: none; }
  .app-main { padding-bottom: 72px; }
  .practicing .app-main { padding-bottom: 0; }
  .library-layout { min-height: auto; }
  .library-list-page { width: 100%; border-right: 0; background: none; }
  .library-layout.detail-open .library-list-page { display: none; }
  .library-layout.no-detail .library-list-page { width: 100%; }
  .library-card { background: var(--surface); }
  .library-detail { padding: 18px 16px; }
  .back-link { display: inline-flex; }
  .detail-title { font-size: 25px; }
  .detail-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .practice-cards { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 18px 16px 30px; }
  .practice-bar { padding: 6px 12px 8px; }
  .practice-title-row { flex-basis: 100%; }
  .practice-bar .segmented { display: grid; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .segments { padding: 14px 14px 160px; }
  .segment, .segment.active { padding: 14px 16px; }
  .ar { font-size: 23px; }
  .focus-mode .segment.active .ar { font-size: 29px; }
  .player { grid-template-columns: auto auto; justify-content: space-between; padding: 8px 12px 12px; gap: 6px 8px; }
  .player-side { flex-wrap: nowrap; gap: 6px; }
  .player select { min-height: 36px; font-size: 13px; }
  .player .inline-label { font-size: 0; }
  .transport { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .player .round-button { width: 52px; height: 52px; }
  .player .small-round { width: 44px; height: 44px; }
  .player .check { display: none; }
  .lookup { top: auto; right: 12px; bottom: 84px; left: 12px; width: auto; max-height: 50vh; }
  .has-player .lookup { bottom: 140px; max-height: 42vh; }
  #filter-search { background: var(--surface); }
  .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-tile.highlight { grid-column: 1 / -1; }
  .word-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .word-tile:last-child { grid-column: 1 / -1; }
  .notice { margin: 10px 12px 0; }
  .card { padding: 16px; }
  .shadow-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shadow-actions .primary { grid-column: 1 / -1; }
  .card-actions .segmented { order: -1; }
  .review-head { padding: 6px 10px; gap: 6px; flex-wrap: wrap; }
  .round-chips { order: 3; width: 100%; }
  .round-chip { padding: 5px 8px; font-size: 12px; }
  .round-arrow { display: none; }
  .review-body { padding: 14px; }
  .dictionary-layout { grid-template-columns: minmax(0, 1fr); }
  #vocab-view .page-head { flex-wrap: wrap; }
  .friends-layout { min-height: calc(100vh - 72px); }
  .friend-list { width: 100%; border-right: 0; background: none; }
  .friends-layout .chat-pane { display: none; }
  .friends-layout.chat-open .friend-list { display: none; }
  .friends-layout.chat-open .chat-pane { display: flex; }
  .friend-chat-open .main-nav { display: none; }
  .friend-chat-open .app-main { padding-bottom: 0; }
  .friends-layout.chat-open { height: 100vh; }
  .chat-back { display: inline-flex; }
  .chat-head { padding: 8px 10px; }
  .chat-head .demo-tag { display: none; }
  .chat-messages { padding: 14px; }
  .chat-compose { padding: 8px 10px 14px; }
  .chat-input { flex-basis: 100%; order: -1; }
  .chat-compose .button { flex: 1; padding: 0 8px; }
  .paper-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .books-layout { grid-template-columns: minmax(0, 1fr); }
  .book-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-source { grid-column: 1 / -1; }
  .book-word { grid-template-columns: minmax(0, 1fr) auto; }
  .book-word-ar { grid-column: 1 / -1; }
  .book-word-tags { grid-column: 1; }
  .report-reasons { grid-template-columns: minmax(0, 1fr); }
  .translate-layout { grid-template-columns: minmax(0, 1fr); }
  .translate-recent { display: none; }
  .onboarding { flex-direction: column; }
  .onboarding-intro { display: none; }
  .onboarding.welcome { background: var(--nav-bg); }
  .welcome .onboarding-intro { flex: 1 0 auto; padding: 56px 24px 24px; display: flex; justify-content: flex-start; gap: 12px; }
  .onboarding-name { display: block; font-size: 20px; }
  .onboarding-intro h1 { margin-top: 18px; font-size: 27px; line-height: 1.4; }
  .onboarding-arabic { font-size: 23px; }
  .onboarding-form { width: 100%; padding: 20px; justify-content: flex-start; }
  .onboarding-back { padding: 10px 0 2px; }
  .onboarding-choice { flex: none; padding: 0 24px 30px; }
  .onboarding-choice .page-head { display: none; }
  .onboarding-choice .button.primary { color: var(--nav-bg); background: #ffffff; border-color: #ffffff; }
  .onboarding-choice .button:not(.primary) { color: #ffffff; background: transparent; border: 1px solid #a9cfc5; }
  .onboarding-choice .text-button { color: #dcefe9; }
  .account-cards { gap: 10px; }
  .toast { bottom: 90px; }
}

/* =====================================================================
   复古风：老式听力设备。磁带 = 材料，卡座 = 播放栏，CRT = 当前句，
   索引卡 = 单词，电平表 / 翻牌数字 = 学习记录，标签机贴条 = 标签。
   对应原型图"复古风"分页。
   ===================================================================== */
:root {
  --bg: #efe4cf;
  --surface: #f7efe0;
  --paper: #fffbf1;
  --text: #26291f;
  --text-soft: #3e3a31;
  --muted: #5e5645;
  --line: #d6c29e;
  --line-soft: #e6d8bd;
  --accent: #36573f;
  --accent-text: #f7efe0;
  --accent-soft: #dce3d2;
  --accent-edge: #213828;
  --nav-bg: #f7efe0;
  --nav-text: #26291f;
  --nav-active: #23271f;
  --control: #e6d8bd;
  --control-edge: #d2be9a;
  --tray: #e2d3b6;
  --tray-edge: #c9b48d;
  --warm: #f6df95;
  --warm-text: #3a2e1a;
  --danger: #b23f24;
  --danger-soft: #f7dcd2;
  --danger-edge: #7a2a17;
  --edge: #d6c29e;
  --screen: #23271f;
  --screen-text: #f1e6cb;
  --screen-soft: #ded3b6;
  --screen-muted: #b7ae96;
  --deck: #2b2f29;
  --deck-edge: #15170f;
  --deck-key: #f1e6cb;
  --deck-key-edge: #a99c7c;
  --lcd: #161812;
  --amber: #f2b84b;
  --mustard: #e2a33a;
  --mustard-edge: #a97518;
  --led-green: #9bd36a;
  --led-red: #e2593a;
  --dymo: #1e1f1b;
  --kraft: #c9a877;
  --kraft-edge: #9c7f52;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "Microsoft YaHei", serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --arabic: "Noto Naskh Arabic", "Sakkal Majalla", "Traditional Arabic", "Geeza Pro", "Segoe UI", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1e19;
    --surface: #262a23;
    --paper: #2e322a;
    --text: #efe6cf;
    --text-soft: #ddd3bb;
    --muted: #b3a88f;
    --line: #3e4238;
    --line-soft: #33372f;
    --accent: #e2a33a;
    --accent-text: #23271f;
    --accent-soft: #3a3624;
    --accent-edge: #8f6716;
    --nav-bg: #262a23;
    --nav-text: #efe6cf;
    --nav-active: #121410;
    --control: #33372f;
    --control-edge: #23261f;
    --tray: #33372f;
    --tray-edge: #1a1c17;
    --warm: #4f4123;
    --warm-text: #f2d9a4;
    --danger: #e7907a;
    --danger-soft: #40281f;
    --danger-edge: #6e2b1b;
    --edge: #10110e;
    --screen: #121410;
    --deck: #121410;
    --deck-edge: #050604;
  }
}
/* 实体物件（磁带标签、档案袋、红色按键）在深色模式下也保持原色 */
:root { --danger-key: #b23f24; }
@media (min-width: 900px) {
  :root { --rail: 104px; }
  /* 和原型一样：内容紧挨左侧栏，留固定边距，不再居中留出大块空白。 */
  .panel { max-width: 1240px; margin: 0; padding: 24px 40px 40px; }
}

/* 文字 */
.page-head h1, .detail-title, .section-title, .current-title, .done-banner h1, .modal-head h2,
.onboarding-intro h1, .onboarding-form h2, .predict-head h2, .detail-heading, .soon-card h2 {
  font-family: var(--serif);
  font-weight: 700;
}
.page-head h1 { color: var(--accent); font-size: 30px; }
.library-list-page .page-head h1 { font-size: 28px; }
.counter, .stat-value, .word-tile strong, .detail-tile strong, .book-stat strong, .review-size,
.interval-row, .invite-code, .pay-price, .chart-axis { font-family: var(--mono); }
.detail-heading { font-family: inherit; font-size: 13px; letter-spacing: .24em; color: var(--muted); }

/* 导航：一排实体按键，按下的亮绿灯 */
.main-nav { padding: 20px 14px; gap: 10px; background: var(--nav-bg); box-shadow: 1px 0 0 var(--line), 6px 0 16px rgba(110, 80, 40, .1); }
.brand { position: relative; width: 56px; height: 56px; margin-bottom: 14px; color: var(--screen-text); background: var(--screen); border-radius: 10px; box-shadow: 0 4px 0 var(--deck-edge); }
.brand { padding: 0; overflow: hidden; }
.brand img { display: block; width: 100%; height: 100%; object-fit: cover; }
.onboarding-intro .brand.large { width: 72px; height: 72px; border-radius: 16px; }
.nav-item { position: relative; width: 76px; min-height: 64px; padding: 8px 0; justify-content: center; gap: 4px; color: var(--nav-text); background: var(--bg); border-radius: 8px; box-shadow: 0 3px 0 var(--edge); font-size: 12px; transition: transform .08s ease, box-shadow .08s ease; }
.nav-item:hover { background: var(--bg); transform: translateY(-1px); box-shadow: 0 4px 0 var(--edge); }
.nav-item.active { color: var(--screen-text); background: var(--nav-active); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .6); transform: translateY(2px); font-weight: 700; }
.nav-item.active::after { content: ""; position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--led-green); box-shadow: 0 0 5px var(--led-green); }

/* 自定义下拉：贴条按钮 + 小卡片，不铺满屏幕 */
.pick-button {
  min-height: 36px; padding: 0 10px 0 12px; display: inline-flex; align-items: center; gap: 8px;
  color: var(--text); background: transparent; border: 0; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--tray-edge);
  font: inherit; font-size: 13px; letter-spacing: .06em; cursor: pointer; white-space: nowrap;
}
.pick-button::after { content: ""; width: 7px; height: 7px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .7; }
.pick-button[aria-expanded="true"]::after { margin-top: 3px; transform: rotate(-135deg); }
.pick-button:hover { box-shadow: inset 0 0 0 1px var(--text); }
.pick-button.is-set { color: #f7efe0; background: var(--dymo); box-shadow: 0 2px 0 #000; }
.pick-menu {
  position: fixed; z-index: 40; overflow-y: auto; padding: 6px; display: flex; flex-direction: column; gap: 2px;
  background: var(--paper); border-radius: 6px; border-top: 4px solid var(--accent);
  box-shadow: 0 3px 0 var(--edge), 0 14px 30px rgba(60, 45, 20, .28);
}
.pick-option {
  min-height: 44px; padding: 0 12px 0 32px; position: relative; text-align: start; color: var(--text);
  background: none; border: 0; border-radius: 4px; font: inherit; font-size: 15px; cursor: pointer;
}
.pick-option + .pick-option { box-shadow: 0 -1px 0 var(--line-soft); }
.pick-option:hover, .pick-option:focus-visible { background: var(--surface); outline: none; }
.pick-option[aria-selected="true"] { color: var(--accent); font-weight: 700; }
.pick-option[aria-selected="true"]::before { content: ""; position: absolute; left: 12px; top: 50%; width: 5px; height: 10px; margin-top: -7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.player .pick-button { min-height: 36px; color: var(--screen-text); background: var(--lcd); box-shadow: none; font-size: 13px; }
.player .pick-button:hover { box-shadow: inset 0 0 0 1px var(--screen-muted); }
.inline-label .pick-button { margin-left: 2px; }

/* 有厚度的按键 */
.button, .segment-tab, .practice-card, .option, .choice, .key, .round-button, .library-card, .account-card, .paper-card, .book-row, .vocab-speaker, .icon-close {
  transition: transform .08s ease, box-shadow .08s ease;
}
.button { min-height: 44px; padding: 0 16px; color: var(--text); background: var(--surface); border: 0; border-radius: 6px; box-shadow: 0 3px 0 var(--edge); }
.button:hover { border-color: transparent; transform: translateY(-1px); box-shadow: 0 4px 0 var(--edge); }
.button:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 0 0 var(--edge); }
.button.primary { color: var(--accent-text); background: var(--accent); box-shadow: 0 4px 0 var(--accent-edge); font-weight: 700; }
.button.primary:hover { box-shadow: 0 5px 0 var(--accent-edge); }
.button.danger { color: var(--danger); }
.button:disabled { transform: none; }
.library-list-page .page-head .button.primary { color: #26291f; background: var(--mustard); box-shadow: 0 4px 0 var(--mustard-edge); }
select { min-height: 40px; color: var(--text); background: var(--control); border: 0; border-radius: 6px; box-shadow: inset 0 2px 0 var(--control-edge); }
.vocab-speaker, .icon-close { color: var(--text); background: var(--bg); box-shadow: 0 3px 0 var(--edge); }
.text-button.accent { color: var(--accent); }

/* 输入框：压进机身里 */
#filter-search, .chat-input, .detail-input, .login input, .onboarding-form input:not([type="checkbox"]), #dictionary-input, .report-input, #translate-input {
  color: var(--text);
  background: var(--control);
  border: 0;
  border-radius: 6px;
  box-shadow: inset 0 2px 0 var(--control-edge);
}
#dictionary-input { background: var(--paper); box-shadow: inset 0 3px 0 var(--line-soft), 0 0 0 2px var(--text); font-family: var(--arabic), sans-serif; font-size: 20px; }
/* 查词框左边放放大镜，和原型一样；阿语靠右时左边也不会空着 */
.dictionary-box { flex: 1; min-width: 0; min-height: 50px; padding: 0 14px; display: flex; align-items: center; gap: 10px; background: var(--paper); border-radius: 6px; box-shadow: inset 0 3px 0 var(--line-soft), 0 0 0 2px var(--text); cursor: text; }
.dictionary-box svg { flex: none; width: 20px; height: 20px; color: var(--muted); stroke-width: 2; }
.dictionary-box #dictionary-input { flex: 1; min-height: 46px; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; outline: none; }
.dictionary-box:focus-within { box-shadow: inset 0 3px 0 var(--line-soft), 0 0 0 2px var(--accent); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }

/* 分段按键：练习方式切换 */
.segmented { padding: 5px; gap: 6px; background: var(--tray); border-radius: 10px; }
.segment-tab { min-height: 42px; padding: 0 16px; color: var(--text); background: var(--surface); border-radius: 6px; box-shadow: 0 3px 0 var(--tray-edge); }
.segment-tab.active { color: var(--screen-text); background: var(--screen); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .6); font-weight: 700; }

/* 单词页的分区：文件夹标签 */
#vocab-view > .page-head { align-items: flex-end; }
#vocab-view > .page-head .segmented { padding: 0; gap: 4px; align-items: flex-end; background: none; border-radius: 0; box-shadow: inset 0 -2px 0 var(--paper); }
#vocab-view > .page-head .segment-tab { min-height: 38px; padding: 0 18px; background: var(--tray); border-radius: 8px 8px 0 0; box-shadow: none; }
#vocab-view > .page-head .segment-tab.active { min-height: 44px; color: var(--text); background: var(--paper); box-shadow: inset 0 3px 0 var(--danger); }

/* 卡片与标签 */
.card { background: var(--surface); border-radius: 8px; box-shadow: 0 4px 0 var(--edge); }
.tag, .demo-tag, .soon-tag { padding: 3px 9px; color: #f7efe0; background: var(--dymo); border-radius: 3px; font-size: 12px; letter-spacing: .14em; }
.tag.status-done { color: #f7efe0; background: var(--accent); }
.tag.status-failed { color: #ffffff; background: var(--danger); }
.notice { background: var(--warm); color: var(--warm-text); border-radius: 4px; }
.progress { height: 10px; background: var(--tray); border-radius: 2px; }
.progress span { background: var(--accent); }

/* 素材库：磁带架 */
.library-list-page { background: var(--bg); border-right: 1px solid var(--line); }
.filters select { min-height: 36px; border-radius: 3px; background: transparent; box-shadow: inset 0 0 0 1px var(--tray-edge); }
.library-list { gap: 14px; }
.library-card {
  --cas-body: var(--surface); --cas-edge: var(--edge); --cas-stripe: var(--accent); --cas-ink: var(--muted);
  gap: 9px; padding: 10px 12px 12px; color: var(--text); background: var(--cas-body); border: 0; border-radius: 8px; box-shadow: 0 4px 0 var(--cas-edge);
}
.library-card.tone-1 { --cas-body: var(--accent); --cas-edge: var(--accent-edge); --cas-stripe: var(--mustard); --cas-ink: var(--accent-text); }
.library-card.tone-2 { --cas-body: var(--mustard); --cas-edge: var(--mustard-edge); --cas-stripe: var(--danger); --cas-ink: #26291f; }
.library-card:hover { border-color: transparent; transform: translateY(-1px); box-shadow: 0 5px 0 var(--cas-edge); }
.library-card.selected { background: var(--cas-body); border: 0; box-shadow: 0 4px 0 var(--cas-edge), 0 0 0 3px var(--mustard); }
.cassette-label { display: flex; flex-direction: column; gap: 2px; padding: 7px 10px 8px; color: #26291f; background: #fffbf1; border-radius: 3px; border-top: 5px solid var(--cas-stripe); }
.library-card .library-meta { color: #5e5645; font-family: var(--mono), sans-serif; font-size: 11px; letter-spacing: .08em; }
.library-title { font-family: var(--serif); font-size: 16px; font-weight: 700; }
.cassette-window { display: flex; align-items: center; gap: 10px; color: var(--cas-ink); font-family: var(--mono); font-size: 12px; }
.cassette-window .library-bar { flex: 1; height: 26px; padding: 0 7px; display: flex; align-items: center; gap: 6px; background: #23271f; border-radius: 13px; overflow: visible; }
.cassette-window .library-bar::before, .cassette-window .library-bar::after { content: ""; flex: none; width: 16px; height: 16px; box-sizing: border-box; border: 4px solid #f1e6cb; border-radius: 50%; }
.cassette-window .library-bar span { flex: 1; height: 10px; margin: 0; border-radius: 5px; background: linear-gradient(90deg, #6b4a2e var(--tape, 0%), #3a3e35 var(--tape, 0%)); }
.continue-card { gap: 8px; padding: 12px; color: var(--screen-text); background: var(--deck); border: 0; border-radius: 12px; box-shadow: 0 5px 0 var(--deck-edge); }
.continue-card .muted { color: var(--screen-muted); opacity: 1; }
.continue-card > span:first-child { display: flex; align-items: center; gap: 6px; }
.continue-card > span:first-child::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--led-red); box-shadow: 0 0 5px var(--led-red); }
.continue-card strong { display: block; padding: 8px 12px 10px; color: #26291f; background: #fffbf1; border-radius: 4px; border-top: 5px solid var(--mustard); font-family: var(--serif); font-size: 17px; }
.continue-card > span:last-child { color: var(--amber); font-family: var(--mono), sans-serif; }

/* 材料详情：铭牌和按键 */
.detail-title { font-size: 34px; }
.detail-tiles { position: relative; gap: 0; padding: 16px 26px; color: var(--screen-text); background: var(--deck); border-radius: 6px; box-shadow: 0 4px 0 var(--deck-edge); }
.detail-tiles::before, .detail-tiles::after { content: ""; position: absolute; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: #6b6e62; }
.detail-tiles::before { left: 9px; }
.detail-tiles::after { right: 9px; }
.detail-tile { padding: 0 18px; background: none; border-radius: 0; border-left: 1px solid #454a40; }
.detail-tile:first-child { padding-left: 0; border-left: 0; }
.detail-tile span { color: var(--screen-muted); font-size: 12px; letter-spacing: .16em; }
.detail-tile strong { color: var(--amber); font-size: 24px; }
.practice-cards { gap: 16px; }
.practice-card { padding: 18px 20px; color: var(--text); background: var(--surface); border-radius: 8px; box-shadow: 0 6px 0 var(--edge); }
.practice-card:hover { outline: 0; transform: translateY(-1px); box-shadow: 0 7px 0 var(--edge); }
.practice-card:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--edge); }
.practice-card strong { margin-top: 8px; font-family: var(--serif); font-size: 20px; }
.practice-card .practice-icon { display: block; margin: 0; color: inherit; opacity: 1; line-height: 0; }
.practice-card .practice-icon svg { width: 26px; height: 26px; }
.practice-card.primary .practice-note { color: #dce3d2; opacity: 1; }
/* 听力页筛选：搜索框单独一行，下面一行紧凑小标签（深色“全部” + 细边框的题材、时长……） */
.filters { gap: 6px; align-items: center; }
.filters #filter-search { flex: 1 1 160px; order: 0; }
.filters::before { content: ""; order: 2; flex-basis: 100%; height: 0; }
.filters > :not(#filter-search) { order: 3; }
.filters > #filter-sort + .pick-button { order: 1; height: 42px; min-height: 42px; }
.filters .pick-button { min-height: 30px; height: 30px; padding: 0 9px; gap: 6px; font-size: 12px; letter-spacing: .1em; box-shadow: inset 0 0 0 1px #c9b48d; }
.filters .pick-button::after { width: 5px; height: 5px; border-width: 0 1.5px 1.5px 0; }
.filter-all { height: 30px; padding: 0 10px; color: var(--text); background: transparent; border: 0; border-radius: 3px; box-shadow: inset 0 0 0 1px #c9b48d; font: 600 12px var(--mono), sans-serif; letter-spacing: .14em; cursor: pointer; }
.filter-all.active { color: #f7efe0; background: #1e1f1b; box-shadow: none; }
.practice-card.primary { color: var(--accent-text); background: var(--accent); box-shadow: 0 6px 0 var(--accent-edge); }

/* 逐句精听：当前句在 CRT 屏幕里 */
.practice-bar { background: var(--bg); border-bottom: 1px solid var(--line); }
.current-title { font-size: 19px; }
.segment { background: transparent; border-radius: 6px; box-shadow: none; }
.segment:hover { background: rgba(110, 80, 40, .06); }
.segment-head { font-family: var(--mono), sans-serif; }
.segment.active {
  margin: 20px 8px 26px;
  color: var(--screen-text);
  background-color: var(--screen);
  background-image: repeating-linear-gradient(rgba(241, 230, 203, .035) 0, rgba(241, 230, 203, .035) 1px, transparent 1px, transparent 3px);
  border-radius: 22px / 18px;
  outline: 0;
  box-shadow: inset 0 0 26px rgba(0, 0, 0, .75), 0 0 0 10px var(--surface), 0 6px 0 10px var(--edge), 0 16px 28px 10px rgba(110, 80, 40, .16);
}
.segment.active:hover { background-color: var(--screen); }
.segment.active .segment-head { color: var(--amber); }
.segment.active .zh, .focus-mode .segment.active .zh { color: var(--screen-soft); }
.segment.active .muted, .segment.active .text-button { color: var(--screen-muted); }
.segment.active .text-button:hover { color: var(--screen-text); }
.segment.active .word:hover { color: #23271f; background: var(--amber); }
.segment.active textarea { color: var(--screen-text); background: #161812; border-color: #555b51; }
.word:hover { background: var(--warm); }

/* 播放栏：卡座 */
.player { min-height: 104px; color: var(--screen-text); background: var(--deck); border-top: 0; box-shadow: inset 0 3px 0 #3b4037; }
.player .inline-label, .player .check { color: var(--screen-muted); }
.player select { color: var(--screen-text); background: var(--lcd); box-shadow: none; }
.player .counter { padding: 6px 12px; color: var(--amber); background: var(--lcd); border-radius: 4px; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .8); font-size: 17px; font-weight: 600; letter-spacing: .04em; }
.player .transport { gap: 4px; padding: 6px; background: #1c1f19; border-radius: 6px; }
.player .round-button { position: relative; width: 62px; height: 52px; color: #26291f; background: var(--deck-key); border-radius: 3px; box-shadow: 0 5px 0 var(--deck-key-edge); }
.player #play-button { width: 78px; color: var(--danger); }
.player .round-button:active, #play-button.playing { transform: translateY(4px); box-shadow: 0 1px 0 var(--deck-key-edge), inset 0 2px 4px rgba(0, 0, 0, .25); }
#play-button.playing { background: #d8c9a6; }
#play-button.playing::after { content: ""; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--led-red); box-shadow: 0 0 5px var(--led-red); }
.player .segmented { background: #1c1f19; }
.player .segment-tab { color: var(--screen-text); background: #3b4037; box-shadow: 0 2px 0 #0f110d; }
.player .segment-tab.active { color: #23271f; background: var(--amber); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .3); }
.player input[type="checkbox"] { accent-color: var(--amber); }
/* 手机上只显示“第几句 / 共几句”；电脑上是两行液晶屏 */
.counter-time, .counter-total { display: none; }
.counter { white-space: nowrap; }
@media (min-width: 900px) {
  .counter-time, .counter-sub { display: block; }
  .counter-total { display: inline; }
  .counter-sub { font-size: 11px; font-weight: 400; color: var(--screen-muted); letter-spacing: 0; }
}

/* 电脑版卡座按原型排：液晶屏 | 走带键 | 模式 | 速度 …… 聚焦/全文 | 原文 | 译文 */
@media (min-width: 900px) {
  .player { min-height: 116px; padding: 0 30px; display: flex; align-items: center; gap: 24px; }
  .player-side { display: contents; }
  .player .counter { order: 1; padding: 8px 14px; font-size: 26px; line-height: 1.15; letter-spacing: .06em; }
  .player .transport { order: 2; }
  .player .inline-label { order: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 12px; }
  .player .inline-label:nth-of-type(2) { order: 4; }
  .player .segmented { order: 5; margin-left: auto; }
  .player .check { order: 6; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; }
  .player select { min-height: 34px; font-family: var(--mono); font-size: 15px; }
  /* 原文、译文做成竖向拨动开关 */
  .player .check input { appearance: none; position: relative; width: 18px; height: 34px; margin: 0; background: var(--lcd); border-radius: 4px; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .8); cursor: pointer; }
  .player .check input::before { content: ""; position: absolute; left: 3px; bottom: 3px; width: 12px; height: 14px; border-radius: 2px; background: #6b6a5c; transition: bottom .12s ease; }
  .player .check input:checked::before { bottom: 17px; background: var(--screen-text); }
  .player .check input:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
}

/* 听音选义、复习：打字机按键式选项 */
.option, .choice { display: flex; align-items: center; gap: 14px; min-height: 64px; color: var(--text); background: var(--surface); border: 0; border-radius: 8px; box-shadow: 0 4px 0 var(--edge); }
.option:hover:not(:disabled), .choice:hover { box-shadow: 0 4px 0 var(--edge), inset 0 0 0 2px var(--accent); }
.option.right, .choice.selected { background: var(--paper); border: 0; box-shadow: 0 4px 0 var(--edge), inset 0 0 0 2px var(--accent); }
.option.wrong, .wrong-choice { background: var(--danger-soft); border: 0; box-shadow: 0 4px 0 var(--edge), inset 0 0 0 2px var(--danger); }
.option-key { flex: none; width: 38px; height: 38px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; color: var(--text); background: var(--bg); border: 2px solid var(--text); border-radius: 50%; box-shadow: 0 3px 0 var(--tray-edge); font-family: var(--mono); font-weight: 600; }
.option.right .option-key { color: var(--accent-text); background: var(--accent); border-color: var(--accent); box-shadow: 0 3px 0 var(--accent-edge); }
.option.wrong .option-key { color: #ffffff; background: var(--danger-key); border-color: var(--danger-key); box-shadow: 0 3px 0 var(--danger-edge); }
.option.arabic-choice { justify-content: center; }
/* 听音选义：左边绿色听题面板（喇叭网罩 + 大播放键 + 计分），右边进度格和选项 */
.quiz-side { padding: 16px 18px; color: var(--accent-text); background: var(--accent); border-radius: 14px; box-shadow: 0 6px 0 var(--accent-edge); display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; }
.quiz-side-head { grid-column: 1 / -1; display: flex; justify-content: space-between; margin-bottom: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: #cbd5c0; }
.quiz-grille { grid-row: span 2; width: 96px; height: 96px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background-color: #2b4533; background-image: radial-gradient(#1c3024 2px, transparent 2.5px); background-size: 12px 12px; box-shadow: inset 0 3px 10px rgba(0, 0, 0, .45); }
#quiz-listen { width: 60px; height: 60px; color: #26291f; background: var(--mustard); border-radius: 50%; box-shadow: 0 5px 0 var(--mustard-edge); }
#quiz-listen svg { width: 26px; height: 26px; }
.quiz-question { font-family: var(--serif); font-size: 18px; }
.quiz-hint { margin: 2px 0 0; font-size: 13px; line-height: 1.6; color: #dce3d2; }
.quiz-ai-note { grid-column: 1 / -1; margin: 6px 0 0; font-size: 12px; color: #aebda6; }
.quiz-score { grid-column: 1 / -1; margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }
.quiz-score div { padding: 6px 0; background: var(--deck); border-radius: 4px; }
.quiz-score b { display: block; font-family: var(--mono); font-size: 18px; color: var(--amber); }
.quiz-score b.score-right { color: var(--led-green); }
.quiz-score b.score-wrong { color: #f08e6e; }
.quiz-score span { font-size: 11px; color: var(--screen-muted); }
.quiz-ticks { display: flex; gap: 3px; }
.quiz-ticks span { flex: 1; height: 12px; border-radius: 2px; background: #dccdaf; }
.quiz-ticks span.right { background: var(--accent); }
.quiz-ticks span.wrong { background: var(--danger); }
.quiz-ticks span.current { background: var(--mustard); }
#quiz-view .option { min-height: 72px; padding: 12px 20px; gap: 16px; font-size: 16px; }
#quiz-view .option-key { width: 44px; height: 44px; font-size: 18px; }
@media (min-width: 900px) {
  .quiz-layout { flex-direction: row; align-items: flex-start; gap: 30px; }
  .quiz-side { width: 330px; flex: none; box-sizing: border-box; padding: 20px; display: block; text-align: start; }
  .quiz-side-head { margin-bottom: 0; }
  .quiz-grille { margin: 18px auto; width: 210px; height: 210px; }
  #quiz-listen { width: 96px; height: 96px; box-shadow: 0 6px 0 var(--mustard-edge); }
  #quiz-listen svg { width: 36px; height: 36px; }
  .quiz-question { display: block; font-size: 20px; }
  .quiz-hint { margin-top: 6px; font-size: 14px; }
  .quiz-score { margin-top: 16px; }
  .quiz-score b { font-size: 20px; }
  .quiz-main { flex: 1; gap: 14px; }
  .quiz-ticks span { height: 14px; }
  #quiz-view .option { min-height: 76px; font-size: 17px; }
  .quiz-actions { margin-left: 360px; }
}
.record-button { color: #ffffff; background: var(--danger-key); box-shadow: 0 5px 0 var(--danger-edge), 0 0 0 5px var(--tray); }
.record-button.recording { background: var(--danger-key); }
.mic-meter { height: 12px; background: var(--deck); border-radius: 2px; }
#mic-level { background: repeating-linear-gradient(90deg, var(--led-green) 0 10px, transparent 10px 13px); }
.reveal { border-top: 2px dashed var(--line); }

/* 查词：索引卡 */
.lookup { padding: 16px 18px 32px; color: var(--text); background: var(--paper); border-radius: 3px; box-shadow: 0 2px 0 var(--line-soft), 0 12px 26px rgba(80, 60, 30, .24); }
.lookup::after { content: ""; position: absolute; left: 50%; bottom: 10px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3); }
.lookup-head { padding-bottom: 6px; border-bottom: 2px solid var(--danger); }
.lookup dt { font-family: var(--mono), sans-serif; font-size: 11px; letter-spacing: .14em; }

/* 单词：抽屉和索引卡 */
.review-banner { padding: 22px 28px; justify-content: flex-start; gap: 28px; color: var(--accent-text); background: var(--accent); border-radius: 6px; box-shadow: 0 6px 0 var(--accent-edge), inset 0 0 0 6px rgba(0, 0, 0, .1); }
.review-drawer { flex: none; min-width: 260px; padding: 10px 18px; color: #26291f; background: #fffbf1; border-radius: 2px; box-shadow: 0 0 0 6px #c9963a, 0 2px 0 6px #7d5a1c; margin: 6px; }
.review-banner .drawer-label { display: block; margin: 0; color: #5e5645; font-family: var(--mono), monospace; font-size: 11px; letter-spacing: .18em; opacity: 1; }
.review-banner strong { font-family: var(--serif); font-size: 22px; }
.review-sources { margin: 0; color: #dce3d2; font-size: 14px; line-height: 1.7; }
.review-sources span { display: block; margin: 0; opacity: 1; }
.review-sources #review-sources:empty { display: none; }
.review-banner .button { flex: none; margin-left: auto; height: 50px; padding: 0 26px; color: var(--amber); background: var(--screen); border-radius: 25px; box-shadow: 0 4px 0 var(--deck-edge); font-weight: 700; }
#vocab-words-panel { padding: 0; background: none; box-shadow: none; }
#vocab-words-panel .section-title { letter-spacing: .08em; }
.vocab-count { color: var(--muted); font-family: var(--mono), monospace; font-weight: 500; letter-spacing: 0; }
#vocab-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.vocab-item { position: relative; display: flex; flex-direction: column; padding: 14px 18px 30px; background: var(--paper); border-top: 0; border-radius: 3px; box-shadow: 0 2px 0 var(--line-soft), 0 10px 20px rgba(110, 80, 40, .14); }
.vocab-item:nth-child(3n + 2) { transform: rotate(-.5deg); }
.vocab-item:nth-child(3n) { transform: rotate(.4deg); }
.vocab-item::after { content: ""; position: absolute; left: 50%; bottom: 9px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3); }
.vocab-row { padding-bottom: 6px; border-bottom: 2px solid var(--danger); }
.vocab-root { color: var(--muted); font-family: var(--mono), monospace; font-size: 12px; letter-spacing: .14em; }
.vocab-root:lang(ar) { font-family: var(--arabic); font-size: 14px; letter-spacing: .3em; }
.vocab-stamp { flex: none; padding: 1px 7px; color: var(--muted); border: 2px solid currentColor; border-radius: 3px; font-size: 12px; font-weight: 700; letter-spacing: .1em; transform: rotate(-5deg); }
.vocab-stamp.due { color: var(--danger); }
.vocab-item .vocab-word-group { max-width: none; margin-top: 6px; justify-content: space-between; }
.vocab-item .vocab-word { min-width: 0; font-size: 32px; line-height: 1.6; overflow-wrap: anywhere; }
.vocab-meaning { font-size: 16px; }
.vocab-source { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.vocab-source .text-button { min-height: 32px; padding: 0; font-size: 13px; }
.vocab-back { color: var(--accent); text-decoration: underline; }
.vocab-detail-link { color: var(--accent); font-weight: 700; }
.vocab-item .vocab-word.head-word-link { font-family: var(--arabic); text-align: start; }
.vocab-detail { display: flex; flex-direction: column; gap: 12px; }
.vocab-detail > .wd-back { align-self: flex-start; }
.vocab-remove { margin-left: auto; }
.vocab-more { margin-top: 6px; color: var(--muted); font-size: 13px; }
.vocab-more summary { min-height: 32px; display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; }
.vocab-more summary::-webkit-details-marker { display: none; }
.vocab-more summary::before { content: "▸"; transition: transform .15s; }
.vocab-more[open] summary::before { transform: rotate(90deg); }
.vocab-more .vocab-field { margin: 2px 0; }
.book-row { color: var(--accent-text); background: var(--accent); border: 0; border-radius: 4px 8px 8px 4px; box-shadow: 0 4px 0 var(--accent-edge), inset 14px 0 0 var(--accent-edge); padding-left: 26px; }
.book-row .muted { color: var(--accent-soft); }
.book-row strong { color: #f2d9a4; font-family: var(--serif); }
.book-row.selected { color: var(--accent-text); background: var(--accent); border: 0; box-shadow: 0 4px 0 var(--accent-edge), inset 14px 0 0 var(--accent-edge), 0 0 0 3px var(--mustard); }
.book-stat { color: var(--screen-text); background: var(--deck); border-radius: 6px; box-shadow: 0 4px 0 var(--deck-edge); }
.book-stat .muted { color: var(--screen-muted); }
.book-stat strong { color: var(--amber); }
.group-row { border-bottom: 1px dashed var(--line); }
.group-row.learning > div:first-child > .muted { color: var(--accent); font-weight: 700; }
/* 书脊颜色：专四绿（默认）、专八砖红、课本蓝 */
.book-row.tone-brick, .book-row.tone-brick.selected { background: #7a3a26; box-shadow: 0 4px 0 #4e2316, inset 14px 0 0 #4e2316; }
.book-row.tone-blue, .book-row.tone-blue.selected { background: #2f4a6b; box-shadow: 0 4px 0 #1c2f46, inset 14px 0 0 #1c2f46; }
.book-row.tone-brick .muted { color: #ead6cb; }
.book-row.tone-blue .muted { color: #d5dde8; }
.book-row.tone-brick.selected { box-shadow: 0 4px 0 #4e2316, inset 14px 0 0 #4e2316, 0 0 0 3px var(--mustard); }
.book-row.tone-blue.selected { box-shadow: 0 4px 0 #1c2f46, inset 14px 0 0 #1c2f46, 0 0 0 3px var(--mustard); }
.book-back, .book-current { display: none; }
.book-back-topics { align-self: flex-start; padding-left: 0; }
/* 课本目录页 */
.toc { position: relative; padding: 12px 22px 8px 30px; background: var(--paper); box-shadow: 0 2px 0 var(--line-soft), 0 8px 16px rgba(110, 80, 40, .12); }
.toc-title { margin: 0 0 4px; text-align: center; font-family: var(--serif); font-size: 16px; letter-spacing: .6em; }
.toc-row { position: relative; width: 100%; min-height: 50px; display: flex; align-items: baseline; gap: 8px; padding: 14px 0 6px; color: var(--text); background: none; border: 0; border-bottom: 1px dashed var(--line); font: inherit; text-align: start; cursor: pointer; }
.toc-row:last-of-type { border-bottom: 0; }
.toc-row strong { flex: none; font-family: var(--serif); font-size: 16px; }
.toc-info { flex: none; color: var(--muted); font-size: 12px; }
.toc-leader { flex: 1; min-width: 12px; border-bottom: 2px dotted var(--tray-edge, #c9b48d); transform: translateY(-4px); }
.toc-state { flex: none; color: var(--muted); font-family: var(--mono), monospace; font-size: 13px; }
.toc-row.done .toc-state { color: var(--accent); }
.toc-row.current .toc-state { color: var(--danger); font-weight: 700; }
.toc-row.current::before { content: ""; position: absolute; left: -30px; top: 0; width: 14px; height: 44px; background: var(--danger); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); }
.toc-hint { margin: 8px 0 4px; }

/* 备考词书按原型压紧：矮统计卡、题材目录两列，一屏看完 */
.exam-books-layout .book-main { gap: 12px; }
.exam-books-layout .book-title-row h2 { font-size: 22px; }
.exam-books-layout .book-title-row p { font-size: 13px; }
.exam-books-layout .scope-row .button { min-height: 36px; }
.exam-books-layout .book-stat { gap: 0; padding: 8px 14px; }
.exam-books-layout .book-stat .muted { font-size: 12px; }
.exam-books-layout .book-stat strong { font-size: 22px; line-height: 1.3; }
.exam-books-layout .review-elsewhere { margin: 0; font-size: 13px; }
@media (min-width: 900px) {
  .exam-books-layout .toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 34px; padding: 10px 22px; }
  .exam-books-layout .toc > :not(.toc-row) { grid-column: 1 / -1; }
  .exam-books-layout .toc-title { font-size: 15px; letter-spacing: .4em; }
  .exam-books-layout .toc-row { min-height: 36px; height: 36px; padding: 0; align-items: center; border-bottom: 1px dashed var(--line); }
  .exam-books-layout .toc-row:last-of-type { border-bottom: 1px dashed var(--line); }
  .exam-books-layout .toc-row strong { font-size: 15px; }
  .exam-books-layout .toc-leader { transform: none; }
  .exam-books-layout .toc-row.current::before { display: none; }
}
.dictionary-example, .report-word, .teacher-answer { background: var(--surface); border-radius: 3px; }
.ai-source-note { position: relative; padding: 14px 16px 14px 64px; background: var(--warm); border-radius: 0; transform: rotate(-.6deg); }
.ai-source-note::before { content: "AI"; position: absolute; left: 12px; top: 14px; width: 38px; height: 38px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; color: var(--danger); border: 3px solid var(--danger); border-radius: 50%; font: 700 13px var(--mono); transform: rotate(-12deg); }
#translate-input { background: var(--paper); box-shadow: 0 2px 0 var(--line-soft), 0 8px 18px rgba(110, 80, 40, .12); font-family: var(--serif); }

/* 复习页 */
.review-head { background: var(--surface); border-bottom: 0; box-shadow: 0 1px 0 var(--line); }
.round-chip { padding: 5px 12px; color: var(--muted); background: transparent; border: 1px dashed var(--tray-edge); border-radius: 3px; letter-spacing: .1em; }
.round-chip.current { color: #f7efe0; background: var(--dymo); border-color: var(--dymo); box-shadow: 0 2px 0 #000; }
.round-chip.done { color: var(--accent-edge); background: var(--accent-soft); border-color: transparent; }
.review-prompt { position: relative; padding: 18px 26px 34px; background: var(--paper); border-radius: 3px; box-shadow: 0 2px 0 var(--line-soft), 0 14px 28px rgba(110, 80, 40, .16); }
.review-prompt::after { content: ""; position: absolute; left: 50%; bottom: 10px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3); }
.review-meaning { font-family: var(--serif); font-size: 26px; }
.wrong-note { color: var(--warm-text); background: var(--warm); border-radius: 0; transform: rotate(-.4deg); box-shadow: 0 6px 12px rgba(110, 80, 40, .14); }
.spelling-answer { background: var(--paper); border-radius: 3px; }
.writing-input { color: var(--text); background: transparent; border: 0; border-bottom: 2px solid var(--text); border-radius: 0; }
.arabic-keyboard { padding: 12px; gap: 8px; background: #36573f; border-radius: 16px 16px 6px 6px; box-shadow: inset 0 3px 0 #4c7058; }
.keyboard-switch { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.keyboard-hint { margin: 0; }
.key { max-width: 46px; min-height: 46px; color: #f7efe0; background: var(--dymo); border: 2px solid #b8ae96; border-radius: 50%; box-shadow: 0 3px 0 #0f110d; }
.key:active { transform: translateY(2px); box-shadow: 0 1px 0 #0f110d; }
.wide-key { max-width: none; border-radius: 23px; }
/* 拼写答完盖章 */
.review-prompt .spelling-stamp { position: absolute; right: 22px; top: 50%; width: 76px; height: 76px; margin-top: -38px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 4px double currentColor; border-radius: 50%; font: 900 18px var(--serif); letter-spacing: .1em; transform: rotate(-14deg); opacity: .9; pointer-events: none; }
.spelling-stamp.right { color: var(--accent); }
.spelling-stamp.wrong { color: var(--danger); }
.writing-input.right { color: var(--accent); border-bottom-color: var(--accent); }
.writing-input.wrong { color: var(--danger); border-bottom-color: var(--danger); text-decoration: line-through; text-decoration-thickness: 2px; }
.spelling-answer.wrong { box-shadow: inset 3px 0 0 var(--danger); }

/* 本组完成：左边翻牌和复习间隔，右边复习小票 */
.review-done { max-width: 1000px; display: flex; justify-content: center; align-items: flex-start; gap: 40px; padding: 32px 24px; }
.done-side { width: 480px; flex: none; display: flex; flex-direction: column; gap: 18px; }
.done-banner { margin: 0; padding: 22px 26px; color: var(--screen-text); background: var(--deck); border-radius: 8px; box-shadow: 0 6px 0 var(--deck-edge); }
.done-label { font-size: 13px; letter-spacing: .2em; color: var(--screen-muted); }
.done-count { display: flex; align-items: flex-end; gap: 6px; margin-top: 10px; }
.done-count > strong { margin-left: 8px; font: 700 24px var(--serif); }
.flip-digits { display: flex; gap: 6px; }
.flip-digit { position: relative; width: 56px; height: 76px; display: flex; align-items: center; justify-content: center; border-radius: 5px; background: var(--lcd); color: var(--amber); font: 600 54px var(--mono); }
.flip-digit::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--deck); }
.done-banner p { margin: 12px 0 0; font-size: 15px; color: var(--screen-soft); opacity: 1; }
.done-intervals { padding: 18px 22px; background: var(--surface); border-radius: 8px; box-shadow: 0 4px 0 var(--edge); }
.done-intervals h2 { margin: 0 0 14px; font: 700 18px var(--serif); }
.interval-track { position: relative; display: flex; justify-content: space-between; }
.interval-track::before { content: ""; position: absolute; left: 14px; right: 14px; top: 13px; height: 3px; background: var(--tray-edge); }
.interval-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font: 13px var(--mono); }
.interval-dot { width: 28px; height: 28px; box-sizing: border-box; border: 3px solid var(--text); border-radius: 50%; background: var(--paper); }
.interval-step.on .interval-dot { background: var(--mustard); }
.done-actions { display: flex; gap: 12px; }
.done-actions .button { min-height: 50px; }
.done-actions .button.primary { flex: 1; }
.done-receipt { position: relative; width: 420px; flex: none; box-sizing: border-box; padding: 26px 28px 34px; background: #fffdf6; box-shadow: 0 12px 26px rgba(110, 80, 40, .2); font-family: var(--mono), sans-serif; }
.done-receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background-image: linear-gradient(135deg, #fffdf6 5px, transparent 5px), linear-gradient(225deg, #fffdf6 5px, transparent 5px); background-size: 14px 10px; }
.receipt-title { text-align: center; font-size: 13px; letter-spacing: .3em; }
.receipt-sub { margin-top: 4px; text-align: center; font-size: 12px; color: var(--muted); }
.receipt-rule { margin: 14px 0; border-top: 2px dashed var(--text); }
.receipt-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 8px 0; border-bottom: 1px dotted var(--tray-edge); color: var(--accent); }
.receipt-row.wrong { color: var(--danger); }
.receipt-word { text-align: left; color: var(--text); font-family: var(--arabic); font-size: 22px; overflow-wrap: anywhere; }
.receipt-next { align-self: center; font-size: 14px; }
.receipt-meaning { color: var(--muted); font: 13px "Noto Sans SC", sans-serif; }
.receipt-note { font-size: 12px; text-align: right; }
.receipt-total { margin-top: 14px; display: flex; justify-content: space-between; font-size: 14px; }

/* 两栏放不下（小于约 1100 宽）就按手机原型排成一列 */
@media (max-width: 1099px) {
  .review-done { max-width: 560px; flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 16px; }
  .done-side, .done-receipt { width: auto; }
  .done-side { display: contents; }
  .done-banner { order: 1; padding: 16px 18px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px; }
  .done-label { display: none; }
  .done-count { display: contents; }
  .flip-digits { grid-row: 1 / span 2; gap: 4px; }
  .flip-digit { width: 40px; height: 56px; font-size: 38px; }
  .done-count > strong { margin: 0; align-self: end; font-size: 19px; }
  .done-banner p { margin: 0; align-self: start; font-size: 13px; }
  .done-intervals { order: 2; padding: 12px 14px; }
  .done-intervals h2 { margin-bottom: 10px; font-size: 15px; }
  .interval-track::before { left: 10px; right: 10px; top: 9px; height: 2px; }
  .interval-step { gap: 4px; font-size: 11px; }
  .interval-dot { width: 20px; height: 20px; border-width: 2px; }
  .done-receipt { order: 3; padding: 14px 18px 18px; }
  .done-receipt::after { display: none; }
  .receipt-word { font-size: 21px; }
  .done-actions { order: 4; flex-direction: column-reverse; }
}
@media (max-width: 899px) {
  .review-prompt .spelling-stamp { right: 10px; width: 60px; height: 60px; margin-top: -30px; font-size: 15px; }
}

/* 学习记录：仪表和数码管 */
.stat-tile { background: var(--surface); border-radius: 8px; box-shadow: 0 4px 0 var(--edge); }
.stat-tile.highlight { color: var(--screen-text); background: var(--deck); box-shadow: 0 5px 0 var(--deck-edge); }
.stat-tile.highlight .stat-value { display: inline-block; justify-self: start; padding: 4px 10px; color: var(--amber); background: var(--lcd); border-radius: 5px; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .8); }
.word-tile { color: var(--screen-muted); background: var(--deck); border-radius: 4px; }
.word-tile strong { color: var(--screen-text); }
.word-tile .muted, .stat-tile.highlight .muted, .leader-card .muted, .voice-bubble .muted, .voice-bubble .small { color: var(--screen-muted); }
.word-tile.highlight { background: var(--deck); }
.word-tile.highlight strong { color: var(--amber); }
.bar-chart { height: 170px; padding: 10px 10px 0; background: var(--deck); border-bottom: 0; border-radius: 6px 6px 0 0; }
.bar-column:hover { background: rgba(255, 255, 255, .06); }
.bar { max-width: 14px; border-radius: 1px; background: repeating-linear-gradient(to top, var(--led-green) 0 6px, transparent 6px 9px); }
.chart-axis { padding: 6px 10px; color: var(--screen-muted); background: var(--deck); border-radius: 0 0 6px 6px; margin-top: 0; }
.stats-table th, .stats-table td { border-bottom: 1px dashed var(--line); }

/* 备考：档案袋和信封 */
.paper-card { position: relative; padding: 30px 14px 14px; color: #26291f; background: var(--kraft); border-radius: 3px; box-shadow: 0 3px 0 var(--kraft-edge); overflow: hidden; }
.paper-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px; background: rgba(0, 0, 0, .1); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.paper-card:hover { outline: 0; transform: translateY(-1px); }
.paper-card .muted { color: #3a2e1a; }
.predict-card { background: #d9be8a; border: 0; box-shadow: 0 6px 0 #a78656; color: #26291f; }
.predict-card .muted { color: #3a2e1a; }
.paid-tag { color: #f7dcd2; background: var(--danger); }
.unlocked-tag { color: var(--accent-text); background: var(--accent); }

/* 好友：磁带分享、便签、对讲 */
.leader-card { color: var(--screen-text); background: var(--deck); border-radius: 6px; }
.school-card { background: none; border: 1px dashed var(--tray-edge); border-radius: 4px; }
.friend-list { background: var(--bg); border-right: 1px solid var(--line); }
.friend-row.selected { background: var(--paper); box-shadow: 0 3px 0 var(--edge), inset 3px 0 0 var(--danger); }
.system-row { background: var(--paper); box-shadow: 0 2px 0 var(--edge); }
.system-row .friend-avatar { font-family: var(--serif); }
.pin-tag { margin-inline-start: 8px; padding: 1px 6px; color: var(--deck); background: var(--mustard); border-radius: 4px; font-size: 11px; font-weight: 700; vertical-align: 2px; }
.system-notice { max-width: 560px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 3px 0 var(--edge); }
.system-notice-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.system-notice p { margin: 0; line-height: 1.6; }
.chat-head, .chat-compose { background: var(--surface); border-color: var(--line); }
.bubble { background: var(--paper); border-radius: 2px; box-shadow: 0 2px 0 var(--line-soft); }
.mine .bubble { background: var(--warm); color: var(--warm-text); }
.material-card .muted, .material-card .small { color: #5e5645; }
.mine .bubble .muted, .mine .bubble .small { color: var(--warm-text); }
.paid-tag, .recording-button { background: var(--danger-key); }
.material-card { color: #26291f; background: #fffbf1; border-top: 5px solid var(--mustard); box-shadow: 0 0 0 10px var(--accent), 0 14px 0 10px var(--accent-edge); margin: 10px; }
.voice-bubble { color: var(--screen-text); background: var(--deck); border-radius: 6px; }
.mine .voice-bubble { color: var(--screen-text); background: var(--deck); }
.voice-play { color: #26291f; background: var(--mustard); }
.waveform span { background: var(--amber); }
.recording-button { background: var(--danger); box-shadow: 0 3px 0 var(--danger-edge); }

/* 我的：借书证 */
.profile-card { background: var(--paper); border-top: 7px solid var(--accent); border-radius: 6px; }
.member-tag { color: var(--danger); background: transparent; border: 3px double var(--danger); border-radius: 3px; font-family: var(--serif); letter-spacing: .14em; transform: rotate(-8deg); display: inline-block; }
.account-card { background: var(--surface); border-radius: 8px; box-shadow: 0 4px 0 var(--edge); }
.account-card.primary { color: var(--accent-text); background: var(--accent); box-shadow: 0 4px 0 var(--accent-edge); }
.invite-code { color: #26291f; background: var(--mustard); border-radius: 4px; box-shadow: 0 3px 0 var(--mustard-edge); }
.setting-row, .account-row { border-top: 1px dashed var(--line); }
.lan-address { background: var(--control); border-radius: 4px; font-family: var(--mono), sans-serif; }

/* 欢迎页、弹窗、提示 */
.onboarding-intro { color: #f7efe0; background: #36573f; }
.onboarding-intro .brand { color: #f1e6cb; background: #23271f; }
.onboarding-form { background: var(--surface); }
.modal-backdrop { background: rgba(40, 38, 30, .7); }
.modal-box { background: var(--surface); border-radius: 10px; box-shadow: 0 8px 0 var(--tray-edge), 0 24px 50px rgba(0, 0, 0, .35); }
.toast { color: var(--screen-text); background: var(--deck); border-radius: 6px; }

/* ---------- 按原型补齐的部件 ---------- */
:root { --slip: #f3ead6; }
@media (prefers-color-scheme: dark) { :root { --slip: #33372f; } }

/* 欢迎页：磁带插图 */
.onboarding-intro { position: relative; overflow: hidden; }
.onboarding-intro > * { position: relative; }
.onboarding-intro > .hero-cassette { position: absolute; right: -60px; top: 70px; width: 360px; height: 230px; box-sizing: border-box; padding: 18px; border-radius: 18px; background: #e2a33a; box-shadow: 0 10px 0 #a97518; transform: rotate(-8deg); pointer-events: none; }
.hero-cassette-label { height: 92px; display: flex; align-items: center; justify-content: center; color: #26291f; background: #fffbf1; border-radius: 6px; border-top: 12px solid #b23f24; font-family: var(--arabic); font-size: 40px; }
.hero-cassette-window { width: 230px; height: 60px; margin: 18px auto 0; padding: 0 14px; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; background: #23271f; border-radius: 30px; }
.hero-cassette-window span { width: 38px; height: 38px; box-sizing: border-box; border: 9px solid #f1e6cb; border-radius: 50%; }
/* 电脑上文字靠下排，顶部留出磁带的位置，免得白字压在磁带上看不清 */
@media (min-width: 900px) {
  .onboarding-intro { justify-content: flex-start; min-height: min-content; }
  .onboarding-intro > .brand { margin-bottom: 190px; }
  .onboarding-intro > h1 { margin-top: auto; }
}

/* 跟读：录音机面板和卡座按键 */
.shadow-text-card { background: var(--paper); border-radius: 3px; box-shadow: 0 2px 0 var(--line-soft), 0 8px 16px rgba(110, 80, 40, .12); }
.recorder-card { color: var(--screen-text); background: var(--deck); border-radius: 12px; box-shadow: 0 5px 0 var(--deck-edge); }
.recorder-card .inline-label { color: var(--screen-muted); }
#mic-select { color: var(--screen-text); background: var(--lcd); box-shadow: none; }
.recorder-card .status-text { color: var(--screen-soft); }
.recorder-card .mic-meter { background: var(--lcd); }
.shadow-actions { gap: 4px; padding: 5px; background: #1c1f19; border-radius: 6px; }
.shadow-actions .button { color: #26291f; background: var(--deck-key); border-radius: 3px; box-shadow: 0 4px 0 var(--deck-key-edge); }
.shadow-actions .button.primary { background: var(--mustard); box-shadow: 0 4px 0 var(--mustard-edge); }

/* 词书：贴条筛选、书脊、铜色组标签 */
.scope-row .button { min-height: 36px; padding: 0 12px; color: var(--text); background: transparent; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--tray-edge); font-size: 13px; font-weight: 400; }
.scope-row .button.primary { color: #f7efe0; background: var(--dymo); box-shadow: 0 2px 0 #000; }
.book-title-row h2, .book-title-row h1 { font-family: var(--serif); color: var(--accent); }
.group-row > div:first-child > strong { padding: 2px 10px; color: #26291f; background: #fffbf1; border-radius: 2px; box-shadow: 0 0 0 3px #c9963a, 0 3px 0 3px #7d5a1c; font-family: var(--serif); }
.group-list { padding: 4px 4px 0; }

/* 词典：索引卡 */
.dictionary-entry { position: relative; padding-bottom: 36px; background: var(--paper); border-radius: 3px; box-shadow: 0 2px 0 var(--line-soft), 0 12px 24px rgba(110, 80, 40, .14); }
.dictionary-entry::after { content: ""; position: absolute; left: 50%; bottom: 10px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3); }
.dictionary-head { padding-bottom: 10px; border-bottom: 2px solid var(--danger); }
.dictionary-meaning { font-family: var(--serif); font-size: 22px; }
.dictionary-facts { gap: 6px; }
.dictionary-facts > span { padding: 2px 8px; color: #f7efe0; background: var(--dymo); border-radius: 3px; font-size: 12px; letter-spacing: .08em; }
.dictionary-facts .inline-arabic { color: #f7efe0; }
.dictionary-facts > span.core-tag { color: #ffffff; background: var(--danger); }
.dictionary-example { background: var(--slip); border-radius: 0; }
#dictionary-recent { color: #26291f; background: var(--kraft); box-shadow: 0 4px 0 var(--kraft-edge), inset 0 0 0 4px rgba(0, 0, 0, .08); }
#dictionary-recent .section-title, #dictionary-recent h2 { color: #3a2e1a; font-family: inherit; font-size: 13px; letter-spacing: .2em; }
.recent-word { margin: 6px 0 0; padding: 8px 12px; color: #26291f; background: #fffbf1; border-top: 3px solid var(--accent); border-radius: 3px; }
.recent-word .muted { color: #5e5645; }

/* 单词页：今日复习在标签上面；不在生词本时缩成一行 */
.vocab-tabs { align-self: flex-start; margin: 4px 0 12px; }
/* 单词分区做成文件夹标签，下面一条通栏底线，和原型一致 */
.segmented.vocab-tabs { display: flex; width: 100%; margin: 18px 0 16px; padding: 0; gap: 4px; align-items: flex-end; background: none; border-radius: 0; box-shadow: inset 0 -2px 0 var(--paper); }
.vocab-tabs .segment-tab { min-height: 38px; padding: 0 22px; color: var(--text); background: var(--tray); border-radius: 8px 8px 0 0; box-shadow: none; font-size: 15px; }
.vocab-tabs .segment-tab.active { min-height: 44px; padding: 0 24px; color: var(--text); background: var(--paper); box-shadow: inset 0 3px 0 var(--danger); }
.review-sources .source-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.source-chips span { display: inline-block; margin: 0; padding: 3px 10px; color: var(--screen-text); background: var(--screen); border-radius: 3px; font-size: 13px; }
.review-banner.compact { padding: 10px 16px; gap: 14px; box-shadow: 0 4px 0 var(--accent-edge); }
.review-banner.compact .review-drawer { min-width: 0; margin: 3px; padding: 4px 12px; box-shadow: 0 0 0 3px #c9963a; }
.review-banner.compact .drawer-label, .review-banner.compact .review-rounds { display: none; }
.review-banner.compact strong { font-size: 16px; }
.review-banner.compact .review-sources { font-size: 13px; }
.review-banner.compact .button { height: 40px; padding: 0 18px; font-size: 14px; }
.vocab-filter { margin: 0; }
.vocab-filter .button { min-height: 36px; }
.book-shelf-note { margin: 0 0 4px; }

/* 题材、课的进度：一行字加进度条 */
.section-progress { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; padding: 10px 14px; color: var(--screen-text); background: var(--deck); border-radius: 6px; box-shadow: 0 3px 0 var(--deck-edge); font-size: 14px; }
.section-progress strong { color: var(--amber); font-family: var(--mono), monospace; font-size: 18px; }
.section-progress-bar { flex: 1 1 120px; height: 8px; overflow: hidden; background: rgba(255, 255, 255, .15); border-radius: 4px; }
.section-progress-bar > span { display: block; height: 100%; background: var(--amber); }

/* 备考：左边考纲词书，右边预测试卷 */
.predict-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; align-items: start; }
.exam-books-layout { display: block; }
.review-elsewhere { margin: 0; }
@media (max-width: 899px) {
  .predict-list { grid-template-columns: minmax(0, 1fr); }
  /* 手机上词书的三个统计格子做小一点 */
  .book-stats { gap: 8px; }
  .book-stat { padding: 8px 10px; gap: 2px; }
  .book-stat strong { font-size: 17px; }
  /* 每一组占一行：左边组名和状态，右边按钮 */
  .group-row { flex-wrap: nowrap; padding: 10px 0; }
  .group-row > div:first-child { flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
  .group-row .group-actions { flex-wrap: nowrap; gap: 6px; }
  .group-row .group-actions .button { min-height: 40px; padding: 0 12px; font-size: 14px; }
  /* 手机上今日复习做成一张小卡：左边词数和来源，右边按钮。 */
  #review-banner { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 14px; }
  #review-banner .review-drawer { flex: 1 1 0; min-width: 0; margin: 3px; padding: 4px 12px; box-shadow: 0 0 0 3px #c9963a; }
  #review-banner .drawer-label { display: none; }
  #review-banner strong { font-size: 17px; }
  #review-banner .button { flex: none; width: auto; height: 42px; margin: 0; padding: 0 18px; font-size: 14px; }
  #review-banner .review-sources { order: 3; flex-basis: 100%; margin: 0; font-size: 12px; line-height: 1.5; }
  #review-banner.compact .review-sources { display: none; }
  .vocab-filter { flex: 1; min-width: 0; }
  .review-banner.compact { flex-direction: row; align-items: center; padding: 8px 12px; }
  .review-banner.compact .review-sources { display: none; }
  .review-banner.compact .button { width: auto; height: 38px; margin-left: auto; padding: 0 16px; }
  .vocab-tabs { align-self: stretch; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 词典两种状态：没查词时只显示最近查过，查词后只显示结果 */
.dictionary-layout { grid-template-columns: minmax(0, 1fr); }
.dictionary-layout.searching #dictionary-recent { display: none; }
.dictionary-layout:not(.searching) #dictionary-result { display: none; }
.dictionary-layout:not(.searching) #dictionary-recent { width: 100%; max-width: 640px; }
#dictionary-result { display: flex; flex-direction: column; gap: 12px; }
#dictionary-result > .wd-back { align-self: flex-start; margin-bottom: -4px; }

/* 词典词头：比背单词时小，长词按长度缩小，不折行 */
.dict-head-word { min-width: 0; font-size: 34px; line-height: 1.4; overflow-wrap: normal; word-break: keep-all; }
.dict-head-word.head-long { font-size: 28px; }
.dict-head-word.head-xlong { font-size: 22px; }
.dictionary-entry .vocab-word-group, .word-detail .vocab-word-group { min-width: 0; }
.ai-loading { animation: ai-pulse 1.6s ease-in-out infinite; }
@keyframes ai-pulse { 50% { opacity: .65; } }
@media (max-width: 899px) {
  .dict-head-word { font-size: 28px; }
  .dict-head-word.head-long { font-size: 22px; }
  .dict-head-word.head-xlong { font-size: 18px; }
}

/* 单词详情：变位、复数、阴阳性、词根 */
.head-word-link { padding: 0; color: inherit; background: none; border: 0; border-bottom: 2px dotted var(--mustard, var(--accent)); cursor: pointer; line-height: 1.3; }
.head-word-link:hover { color: var(--accent); }
.wd-back { margin-bottom: 8px; padding-left: 0; font-size: 15px; }
.word-detail { display: flex; flex-direction: column; gap: 10px; background: var(--paper, var(--surface)); border-radius: 3px; box-shadow: 0 2px 0 var(--line-soft), 0 12px 24px rgba(110, 80, 40, .14); }
.wd-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--danger); }
.wd-pos { padding: 3px 10px; color: #f7efe0; background: var(--dymo, var(--text)); border-radius: 3px; font-size: 13px; letter-spacing: .06em; }
.word-detail .dictionary-meaning { font-family: var(--serif, inherit); font-size: 22px; }
.wd-section { padding-top: 12px; border-top: 1px dashed var(--line); }
.wd-title { margin: 0 0 10px; color: var(--accent); font-family: var(--serif, inherit); font-size: 15px; letter-spacing: .12em; }
.wd-root { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 8px; }
.root-letters { padding: 2px 12px; color: #26291f; background: var(--amber, var(--control)); border-radius: 3px; font-size: 26px; word-spacing: .3em; }
.wd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wd-chip { min-height: 44px; padding: 4px 12px; display: inline-flex; align-items: center; gap: 8px; color: var(--text); background: var(--slip, var(--bg)); border: 1px solid var(--line); border-radius: 3px; cursor: pointer; }
.wd-chip:hover { border-color: var(--accent); }
.wd-chip .inline-arabic { font-size: 19px; }
.wd-forms { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 10px; }
.wd-form { padding: 8px 12px; background: var(--slip, var(--bg)); border-radius: 3px; }
.wd-label { display: block; color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.wd-form-word { display: block; font-size: 20px; }
.wd-form-word.inline-arabic { font-size: 22px; }
.conjugation-scroll { max-width: 100%; overflow-x: auto; }
.conjugation-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.conjugation-table th { padding: 6px 10px; color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: .08em; text-align: center; border-bottom: 2px solid var(--text); }
.conjugation-table td { padding: 5px 10px; font-family: var(--arabic); font-size: 21px; text-align: center; white-space: nowrap; border-bottom: 1px solid var(--line-soft); }
.conjugation-table td.person { color: var(--muted); font-size: 17px; }
.conjugation-table tbody tr:nth-child(6), .conjugation-table tbody tr:nth-child(11) { border-bottom: 2px solid var(--line); }
/* 电脑：查到词时右边保留“最近查过”栏（手机上仍然只显示结果） */
@media (min-width: 900px) {
  .dictionary-layout.searching { grid-template-columns: minmax(0, 1fr) 260px; }
  .dictionary-layout.searching #dictionary-recent { display: block; }
  .dictionary-layout.searching.detail-open { grid-template-columns: minmax(0, 1fr); }
  .dictionary-layout.searching.detail-open #dictionary-recent { display: none; }
}

/* 单词详情两栏：左边释义卡（词头、释义、词根块），右边深色卡（变位 / 性与数 / 阴阳性） */
/* 手机上只有一列：必须写明 minmax(0, 1fr)，不然变位表会把整列撑得比屏幕还宽 */
.wd-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.wd-layout > * { min-width: 0; }
.word-detail { position: relative; padding: 20px 24px 32px; gap: 12px; }
.card-hole { position: absolute; left: 50%; bottom: 9px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3); }
.wd-root-box { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: #f3ead6; border-radius: 3px; }
.wd-root-box p { margin: 0; }
.wd-root-title { margin: 0; color: #5e5645; font-family: var(--mono), sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .2em; }
.wd-root-box .root-letters { padding: 0; color: var(--danger); background: none; font-size: 30px; letter-spacing: .2em; }
.wd-root-box .wd-chip { min-height: 36px; background: var(--paper); border: 0; border-radius: 4px; box-shadow: 0 2px 0 var(--line); }
.wd-panel { padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 16px; color: var(--screen-text); background: var(--deck); border-radius: 6px; box-shadow: 0 6px 0 #15170f; }
.wd-panel .wd-section { padding-top: 0; border-top: 0; }
.wd-panel .wd-section + .wd-section { padding-top: 14px; border-top: 1px dashed #454a40; }
.wd-panel .wd-title { margin-bottom: 12px; color: var(--screen-text); font-size: 18px; letter-spacing: 0; }
.wd-panel .wd-forms { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; }
.wd-panel .wd-form { padding: 6px 8px; text-align: center; background: #161812; border-radius: 4px; }
.wd-panel .wd-label { color: #b7ae96; font-size: 11px; }
.wd-panel .wd-form-word, .wd-panel .wd-form-word.inline-arabic { color: var(--amber); font-size: 20px; }
.wd-panel .muted { color: var(--screen-muted); }
.wd-variants { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.wd-variants-label { color: var(--muted); font-size: 12px; }
.wd-variant { min-height: 36px; padding: 0 12px; color: var(--text); background: transparent; border: 0; border-radius: 3px; box-shadow: inset 0 0 0 1px #b8a27a; cursor: pointer; }
.wd-variant .inline-arabic { font-size: 18px; }
.wd-variant.active { color: #f7efe0; background: #1e1f1b; box-shadow: none; cursor: default; }
.wd-variant:not(.active):hover { box-shadow: inset 0 0 0 1px var(--accent); }
.wd-phrase-note { margin: 0; padding: 8px 12px; color: var(--text-soft, #3b3a30); background: #f3ead6; border-left: 3px solid var(--mustard); border-radius: 3px; font-size: 13px; line-height: 1.8; }
.wd-phrase-note .inline-arabic { font-size: 17px; }
.wd-panel-note { margin: 0; color: var(--screen-muted); font-size: 12px; line-height: 1.6; }
.wd-panel .conjugation-table { color: var(--text); background: var(--paper); border-radius: 3px; overflow: hidden; }
.wd-panel .conjugation-table th { color: var(--text); background: #e2d3b6; font-size: 13px; font-weight: 700; border-bottom: 0; }
.wd-panel .conjugation-table td { padding: 3px 10px; font-size: 19px; border-bottom: 1px dashed #d6c29e; }
.wd-panel .conjugation-table td:last-child { color: var(--danger); }
.wd-panel .wd-chip { color: var(--text); background: var(--paper); border: 0; }
.wd-panel .wd-chip .muted { color: var(--muted); }
@media (min-width: 900px) {
  .wd-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .wd-panel .wd-forms { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  .wd-forms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .conjugation-table th, .conjugation-table td { padding: 5px 4px; }
  .conjugation-table td { font-size: 18px; }
  .conjugation-table td.person { font-size: 14px; }
  .root-letters { font-size: 22px; }
  .wd-panel { padding: 14px 12px 16px; }
  .wd-panel .conjugation-table td { padding: 3px 6px; }
  .word-detail { padding: 16px 16px 30px; }
}

/* 报错单：撕下来的工单 */
/* 导入音频窗口：深色拖放区（两个磁带轮）、处理队列、来源链接、确认勾选 */
.modal-box.import-modal { width: min(740px, 100%); padding: 24px 28px; gap: 16px; border-radius: 14px; }
.import-modal .modal-head h2 { color: var(--accent); font-family: var(--serif); font-size: 26px; }
.import-drop { padding: 20px; display: flex; align-items: center; gap: 22px; color: var(--screen-text); background: var(--deck); border-radius: 10px; box-shadow: inset 0 3px 8px rgba(0, 0, 0, .5); cursor: pointer; }
.import-drop.dragging, .import-drop:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.import-reels { flex: none; width: 170px; height: 104px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 28px; border: 3px dashed #8d876f; border-radius: 10px; }
.import-reels span { width: 30px; height: 30px; box-sizing: border-box; border: 6px solid #8d876f; border-radius: 50%; }
.import-drop.dragging .import-reels, .import-drop.dragging .import-reels span { border-color: var(--amber); }
.import-drop-text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.import-drop-text strong { font-family: var(--serif); font-size: 19px; }
.import-drop-text > span { color: #ded3b6; font-size: 14px; line-height: 1.6; }
.import-drop-text .import-pick { margin-top: 4px; min-height: 36px; color: #26291f; background: var(--deck-key); box-shadow: 0 3px 0 var(--deck-key-edge); }
.import-queue { display: flex; flex-direction: column; gap: 8px; }
.import-queue-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
.import-list { display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; }
.import-row { padding: 10px 14px; background: var(--paper); border-radius: 6px; box-shadow: 0 2px 0 var(--line-soft); }
.import-row-main { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.import-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-state { flex: none; max-width: 50%; color: var(--muted); font-size: 13px; text-align: end; }
.import-state.done { color: var(--accent); font-weight: 700; }
.import-state.busy { color: #a97518; }
.import-state.failed { color: var(--danger); }
.import-led { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #c9b48d; }
.import-led.done { background: var(--led-green); box-shadow: 0 0 5px var(--led-green); }
.import-led.busy { background: var(--amber); box-shadow: 0 0 5px var(--amber); }
.import-led.failed { background: var(--danger); }
.import-bar { display: flex; gap: 3px; margin: 8px 0 0 21px; }
.import-bar span { flex: 1; height: 8px; border-radius: 1px; background: #e2d3b6; }
.import-bar span.lit { background: var(--amber); }
/* 看不出进度时：亮格从左往右一波一波地走 */
.import-bar.running span { animation: import-run 1.92s linear infinite; }
@keyframes import-run { 0%, 30% { background: var(--amber); } 31%, 100% { background: #e2d3b6; } }
@media (prefers-reduced-motion: reduce) { .import-bar.running span { animation: none; background: var(--amber); opacity: .6; } }
.import-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.import-source { height: 44px; box-sizing: border-box; padding: 0 12px; color: var(--text); background: #e6d8bd; border: 0; border-radius: 6px; box-shadow: inset 0 2px 0 #d2be9a; font: inherit; font-size: 15px; }
.import-consent { display: flex; align-items: flex-start; gap: 8px; color: #3e3a31; font-size: 13px; line-height: 1.6; }
.import-consent input { margin-top: 4px; accent-color: var(--accent); }
.import-actions { display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 899px) {
  .modal-box.import-modal { padding: 18px 16px; gap: 12px; }
  .import-drop { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
  .import-reels { width: 100%; height: 72px; }
  .import-queue-head { flex-direction: column; gap: 2px; }
  .import-actions .button, .import-actions .button-row { flex: 1; }
}

.modal-box:has(.report-reasons) { position: relative; padding-top: 34px; background: var(--paper); border-radius: 0; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.modal-box:has(.report-reasons)::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background-image: radial-gradient(circle at 8px 0, rgba(40, 38, 30, .75) 5px, transparent 5.5px); background-size: 16px 12px; }
.modal-box:has(.report-reasons) .modal-head { padding-bottom: 8px; border-bottom: 2px solid var(--danger); }
.modal-box:has(.report-reasons) .button.primary { color: #ffffff; background: var(--danger-key); box-shadow: 0 4px 0 var(--danger-edge); }
.report-word { background: var(--slip); border-radius: 0; }
.report-reasons legend, .report-label { font-family: var(--mono), sans-serif; font-size: 12px; font-weight: 400; letter-spacing: .16em; color: var(--muted); }
.report-reason { min-height: 44px; padding: 0 2px; background: none; border-radius: 0; }
.report-input { color: var(--text); background: transparent; border: 0; border-bottom: 2px solid var(--text); border-radius: 0; box-shadow: none; font-family: var(--arabic), sans-serif; letter-spacing: 0; }

/* 备考：文件夹标签、深色说明栏 */
#exam-view > .page-head { align-items: flex-end; }
#exam-view > .page-head .segmented { padding: 0; gap: 4px; align-items: flex-end; background: none; border-radius: 0; box-shadow: inset 0 -2px 0 var(--paper); }
#exam-view > .page-head .segment-tab { min-height: 38px; padding: 0 20px; background: var(--tray); border-radius: 8px 8px 0 0; box-shadow: none; }
#exam-view > .page-head .segment-tab.active { min-height: 44px; color: var(--text); background: var(--paper); box-shadow: inset 0 3px 0 var(--danger); }
.exam-summary { color: var(--screen-text); background: var(--deck); box-shadow: 0 4px 0 var(--deck-edge); }
.exam-summary .muted { color: var(--screen-muted); }
.exam-summary strong { font-family: var(--serif); }
.paper-card strong { font-family: var(--mono), var(--serif); }

/* 手机 */
@media (max-width: 899px) {
  .onboarding-intro > .hero-cassette { right: -54px; top: 150px; width: 250px; height: 160px; padding: 12px; border-radius: 14px; box-shadow: 0 8px 0 #a97518; transform: rotate(-9deg); }
  .hero-cassette-label { height: 62px; border-top-width: 9px; font-size: 28px; }
  .hero-cassette-window { width: 160px; height: 42px; margin-top: 12px; padding: 0 10px; border-radius: 21px; }
  .hero-cassette-window span { width: 26px; height: 26px; border-width: 6px; }
  .onboarding-intro .brand.large { display: flex; width: 60px; height: 60px; }
  .welcome .onboarding-intro h1 { margin-top: 140px; }
  .onboarding.welcome .onboarding-choice { background: #36573f; }
  .round-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .round-chip { padding: 5px 2px; font-size: 12px; letter-spacing: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .book-row { padding: 10px 10px 10px 22px; font-size: 13px; box-shadow: 0 4px 0 var(--accent-edge), inset 10px 0 0 var(--accent-edge); }
  .book-row strong { font-family: var(--serif); font-size: 15px; }
  .book-row.selected { box-shadow: 0 4px 0 var(--accent-edge), inset 10px 0 0 var(--accent-edge), 0 0 0 3px var(--mustard); }
  /* 手机：书架和书分两页 */
  .books-layout:not(.book-open) .book-main { display: none; }
  .books-layout.book-open .book-list { display: none; }
  .book-list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .book-list .book-row, .book-list .book-row.selected { min-height: 72px; padding: 14px 16px 14px 30px; box-shadow: 0 4px 0 var(--accent-edge), inset 12px 0 0 var(--accent-edge); }
  .book-list .book-row.tone-brick { box-shadow: 0 4px 0 #4e2316, inset 12px 0 0 #4e2316; }
  .book-list .book-row.tone-blue { box-shadow: 0 4px 0 #1c2f46, inset 12px 0 0 #1c2f46; }
  .book-list .book-row strong { font-size: 18px; }
  .book-list .book-row-info { font-size: 13px; }
  .book-back { display: inline-flex; align-self: flex-start; min-height: 36px; padding: 0; font-size: 15px; }
  .book-current { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px 12px 28px; cursor: default; box-shadow: 0 4px 0 var(--accent-edge), inset 12px 0 0 var(--accent-edge), 0 0 0 3px var(--mustard); }
  .book-current.tone-brick { box-shadow: 0 4px 0 #4e2316, inset 12px 0 0 #4e2316, 0 0 0 3px var(--mustard); }
  .book-current.tone-blue { box-shadow: 0 4px 0 #1c2f46, inset 12px 0 0 #1c2f46, 0 0 0 3px var(--mustard); }
  .book-current strong { font-size: 17px; }
  .book-current-count { flex: none; color: inherit; font-family: var(--mono), monospace; font-size: 12px; opacity: .85; }
  /* 备考页上面已经有专四/专八标签，这块不能点的书名条多余，和电脑版一样去掉 */
  .exam-books-layout .book-current { display: none; }
  /* 课本书架：书名用白字；进到某一册后去掉多余的蓝色书名条和说明，只留“← 书架”、学习按钮、统计和目录 */
  .book-list .book-row strong { color: #f7efe0; }
  #vocab-books-panel .book-current, #vocab-books-panel .book-title-text { display: none; }
  /* 查词结果卡：详情 / 报错 / 加入单词挪到卡片底部（AI 提示上面），按钮小一号 */
  .dictionary-entry > * { order: 3; }
  .dictionary-entry > .ai-source-note { order: 0; }
  .dictionary-entry > .dictionary-head { display: contents; }
  .dictionary-head > .vocab-word-group { order: 1; width: 100%; max-width: none; padding-bottom: 10px; border-bottom: 2px solid var(--danger); }
  .dictionary-head > .group-actions { order: 5; display: flex; flex-wrap: nowrap; gap: 8px; }
  .dictionary-entry > p.muted.small:last-child { order: 6; }
  .dictionary-head > .group-actions .button { flex: 1 1 0; min-width: 0; height: 38px; min-height: 38px; padding: 0 6px; color: #26291f; background: #efe4cf; border: 0; border-radius: 6px; box-shadow: 0 3px 0 #d6c29e; font-size: 14px; }
  .dictionary-head > .group-actions .button.primary { flex: 2 1 0; color: #f7efe0; background: #36573f; box-shadow: 0 3px 0 #213828; font-weight: 700; }
  /* 生词本来源筛选：按原型做成靠左的小标签，听写按钮推到最右 */
  #vocab-words-panel .page-head { align-items: center; gap: 6px; }
  #vocab-filter { flex: 0 1 auto; gap: 6px; }
  #vocab-filter .button { flex: none; height: 36px; min-height: 36px; padding: 0 10px; color: #26291f; background: transparent; border: 0; border-radius: 3px; box-shadow: inset 0 0 0 1px #b8a27a; font-size: 12px; font-weight: 400; }
  #vocab-filter .button.primary { color: #f7efe0; background: #1e1f1b; box-shadow: none; font-weight: 700; }
  #start-dictation { flex: none; margin-left: auto; height: 36px; min-height: 36px; padding: 0 14px; color: #f7efe0; background: #36573f; border-radius: 6px; box-shadow: 0 3px 0 #213828; font-size: 13px; }
  .book-title-text h2 { display: none; }
  .book-title-text p { margin: 0; }
  .book-title-row { flex-direction: column; align-items: stretch; }
  .book-next { width: 100%; height: 50px; font-size: 15px; }
  .scope-row { flex-wrap: nowrap; }
  .scope-row .button { flex: 1 1 0; min-width: 0; padding: 0 4px; white-space: nowrap; }
  .toc { padding: 12px 18px 8px 26px; }
  .toc-row.current::before { left: -26px; }
  .scope-row { gap: 6px; }
  .report-reasons { grid-template-columns: 1fr 1fr; }
  #vocab-view > .page-head, #exam-view > .page-head { flex-wrap: wrap; }
  #exam-view > .page-head .segmented { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #exam-view > .page-head .segment-tab { padding: 0; }
  .paper-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .paper-card { padding: 24px 8px 10px; }
  .paper-card strong { font-size: 15px; }
  .main-nav { height: 80px; padding: 8px 10px 14px; gap: 6px; background: var(--nav-bg); box-shadow: 0 -1px 0 var(--line); }
  .nav-item, .nav-item:hover { width: auto; flex: 1; min-height: 0; padding: 6px 0; gap: 2px; color: var(--nav-text); background: var(--bg); box-shadow: 0 3px 0 var(--edge); font-size: 11px; transform: none; }
  .nav-item.active { color: var(--screen-text); background: var(--nav-active); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .6); font-weight: 700; }
  .nav-account, .nav-account:hover { width: auto; padding: 6px 0; background: var(--bg); box-shadow: 0 3px 0 var(--edge); }
  .nav-account.active { color: var(--screen-text); background: var(--nav-active); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .6); }
  .nav-account.active::after { display: block; }
  /* 底部导航：单词、备考 | 听力（居中凸起） | 消息、我的 */
  .nav-item[data-view="vocab"] { order: 1; }
  .nav-item[data-view="exam"] { order: 2; }
  .nav-library { order: 3; }
  .nav-messages { order: 4; }
  .nav-account { order: 5; }
  .nav-library, .nav-library:hover {
    flex: 1.15; align-self: flex-end; height: 70px; margin-top: -22px; gap: 3px;
    color: var(--deck); background: var(--amber); border: 3px solid var(--nav-bg); border-radius: 18px 18px 10px 10px;
    box-shadow: 0 4px 0 var(--deck-edge), 0 -2px 10px rgba(0, 0, 0, .18); font-weight: 700;
  }
  .nav-library svg { width: 26px; height: 26px; }
  .nav-library.active { color: var(--amber); background: var(--deck); box-shadow: inset 0 3px 6px rgba(0, 0, 0, .55), 0 -2px 10px rgba(0, 0, 0, .18); transform: none; }
  .nav-library.active::after { display: none; }
  .app-main { padding-bottom: 80px; }
  .page-head h1 { font-size: 28px; }
  .library-list-page { border-right: 0; }
  .detail-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 0; padding: 14px 18px; }
  .detail-tile:nth-child(3) { padding-left: 0; border-left: 0; }
  .segment.active { margin: 16px 10px 24px; }
  .player { min-height: 0; }
  .player .round-button { width: auto; flex: 1; height: 52px; }
  .player #play-button { flex: 1.3; }
  .player .transport { width: 100%; }
  #vocab-view > .page-head .segmented { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #vocab-view > .page-head .segment-tab { padding: 0; }
  #vocab-list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .review-banner { padding: 16px; flex-direction: column; align-items: stretch; gap: 10px; }
  .review-drawer { min-width: 0; margin: 5px; padding: 8px 14px; box-shadow: 0 0 0 5px #c9963a, 0 2px 0 5px #7d5a1c; }
  .review-banner .drawer-label { font-size: 10px; }
  .review-banner strong { font-size: 20px; }
  .review-sources { margin-top: 4px; font-size: 13px; line-height: 1.6; }
  .review-rounds { display: none !important; }
  .review-banner .button { width: 100%; height: 48px; margin: 0; font-size: 15px; }
  #vocab-words-panel .page-head { flex-wrap: nowrap; align-items: center; }
  #vocab-words-panel .section-title { font-size: 15px; letter-spacing: 0; }
  #start-dictation { height: 36px; min-height: 0; padding: 0 14px; font-size: 13px; }
  .vocab-item { padding: 12px 16px 28px; }
  .vocab-item .vocab-word { font-size: 30px; }
  .vocab-meaning { font-size: 15px; }
  .vocab-source { font-size: 12px; }
  .onboarding.welcome { background: #36573f; }
  .onboarding-choice .button.primary { color: #26291f; background: var(--mustard); box-shadow: 0 4px 0 var(--mustard-edge); }
  .onboarding-choice .button:not(.primary) { color: #f1e6cb; background: #23271f; border: 0; box-shadow: 0 4px 0 #0f110d; }
  .onboarding-choice .text-button { color: #dce3d2; }
  /* 保险：哪怕以后有内容没换行，手机上页面也不会被拖得左右滑动。 */
  html, body { overflow-x: clip; }
}

/* 账号模式：真实的“我的”页面和登录页 */
.profile-initial { display: flex; align-items: center; justify-content: center; flex: none; color: var(--screen-text, #f1e6cb); background: var(--accent); font: 700 28px var(--serif); }
a.account-row { padding: 1px 6px; color: var(--text); text-decoration: none; }
.danger-row > span:first-child { color: var(--danger); font-weight: 700; }
.button.primary.danger-key { color: #ffffff; background: var(--danger-key); border-color: var(--danger-key); box-shadow: 0 4px 0 var(--danger-edge, #7a2a17); }
.feedback-input { min-height: 140px; padding: 10px 12px; resize: vertical; font: inherit; line-height: 1.7; border: 2px solid var(--line); border-radius: 6px; background: var(--surface); }
.report-label .report-input[type="password"] { font-family: inherit; }
.onboarding-form .agree a { color: var(--accent); }

/* 只在手机或只在电脑上显示的文字 */
.phone-only { display: none; }
@media (max-width: 899px) {
  .phone-only { display: inline; }
  .desk-only { display: none; }

  /* 复习页顶部：一行“← 退出复习 / 本组 10 词”，下面三格紧凑步骤条 */
  .review-head { padding: 10px 14px 12px; gap: 10px 8px; background: #f7efe0; box-shadow: 0 1px 0 var(--line); }
  .review-head .review-exit, .review-head .review-size { min-height: 0; padding: 0; color: #5e5645; font-family: var(--mono); font-size: 13px; }
  .round-chips { order: 3; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .round-chip { padding: 4px 0; color: #5e5645; background: transparent; border: 1px dashed #9a8c6e; border-radius: 3px; box-shadow: none; font-size: 12px; letter-spacing: 0; text-align: center; }
  .round-chip.current { padding: 5px 0; color: #f7efe0; background: #1e1f1b; border: 0; box-shadow: none; letter-spacing: .06em; }
  .round-chip.done { color: var(--accent-edge); background: var(--accent-soft); border-color: transparent; }

  /* 单词页的四个分区：文件夹标签 */
  .segmented.vocab-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; margin: 14px 0 12px; box-shadow: none; border-bottom: 2px solid #fffbf1; }
  .vocab-tabs .segment-tab { min-height: 40px; padding: 0; font-size: 15px; }
  .vocab-tabs .segment-tab.active { min-height: 44px; padding: 0; font-weight: 700; }

  /* 精听底部卡座：第一行液晶屏、模式、速度，第二行三个走带键 */
  .player { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 8px; min-height: 0; padding: 12px 14px 18px; background: var(--deck); box-shadow: inset 0 3px 0 #3b4037; }
  .player-side { display: contents; }
  .player .counter { order: 1; padding: 4px 10px; color: var(--amber); background: #161812; border-radius: 3px; font-size: 18px; font-weight: 600; letter-spacing: .02em; }
  .player .counter-time { display: inline; }
  .player .counter-sub { margin-left: 6px; color: #8d876f; font-size: 11px; font-weight: 400; }
  .player .inline-label { order: 2; }
  .player .inline-label:nth-of-type(2) { order: 3; }
  .player select, .player .pick-button { height: 32px; min-height: 32px; padding: 0 12px; gap: 8px; color: var(--screen-text); background: transparent; border: 1px solid #555b51; border-radius: 16px; box-shadow: none; font-family: var(--mono); font-size: 13px; }
  .player .transport { order: 4; flex-basis: 100%; gap: 4px; padding: 5px; background: #1c1f19; border-radius: 6px; }
  .player .round-button, .player .small-round { flex: 1; width: auto; height: 54px; color: #26291f; background: #f1e6cb; border-radius: 3px; box-shadow: 0 5px 0 #a99c7c; }
  .player #play-button { flex: 1.3; color: var(--danger); }
  .player .round-button:active, .player #play-button.playing { background: #d8c9a6; transform: translateY(4px); box-shadow: 0 1px 0 #a99c7c, inset 0 2px 4px rgba(0, 0, 0, .25); }
  .player .segmented, .player .check { display: none; }
  /* 聚焦/全文挪到标题行右边 */
  .practice-bar .practice-title-row .segmented.compact { display: inline-flex; width: auto; margin-left: auto; flex: none; padding: 3px; gap: 3px; }
  .practice-title-row .segmented.compact .segment-tab { min-height: 30px; padding: 0 10px; font-size: 13px; }
  .practice-title-row .current-title { flex: 1; font-size: 15px; }
}
