* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:root {
  --bg: #FFF7E8;
  --card: #FFFFFF;
  --ink: #1D1B3A;
  --ink-2: #5D5A82;
  --ink-3: #5D5A82;
  --line: #1D1B3A;
  --ink-line: #1D1B3A;
  --track: #EFE3CC;
  --link: #137167;
  --info: #4A6A85;
  --brand: #FF6A3D;
  --brand-deep: #D64A1F;
  --brand-soft: #FFE0D3;
  --accent: #1F9E92;
  --accent-soft: #D3EFEB;
  --ok: #0E8A63;
  --ok-soft: #D3EFEB;
  --bad: #D64545;
  --bad-soft: #FFE1DE;
  --warn: #B26A0C;
  --warn-soft: #FFF0D2;
  --radius: 20px;
  --key: 50px;
  --shadow: 4px 4px 0 var(--ink-line);
  --shadow-sm: 2px 2px 0 var(--ink-line);
  --font-round: "SF Pro Rounded", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}
html, body { margin: 0px; height: 100%; background: var(--bg); color: var(--ink); font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button { font-family: inherit; cursor: pointer; border-width: medium; border-style: none; border-color: currentcolor; border-image: none; background: none; color: inherit; }
.screen { display: none; }
.screen.active { display: flex; flex-direction: column; height: 100dvh; }
.scroll { flex: 1 1 0%; overflow-y: auto; padding: 20px 16px calc(28px + env(safe-area-inset-bottom)); }
.hero { padding: 6px 4px 18px; }
.hero h1 { margin: 0px 0px 6px; font-size: 26px; letter-spacing: -0.5px; }
.hero p { margin: 0px; color: var(--ink-2); font-size: 14px; }
.hero.compact { padding-bottom: 14px; }
.hero.brand { text-align: center; padding: 12px 4px 26px; }
.hero.brand .brand-logo { display: block; width: auto; height: 116px; margin: 0px auto 8px; filter: drop-shadow(rgba(200, 120, 40, 0.18) 0px 6px 14px); }
.hero.brand .brand-wordmark { display: block; width: auto; height: 52px; margin: 0px auto 4px; }
.hero.brand h1 { font-size: 24px; margin-bottom: 6px; }
.card { background: var(--card); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: rgba(120, 78, 36, 0.05) 0px 1px 2px, rgba(120, 78, 36, 0.2) 0px 6px 20px -12px; }
.card-title { margin: 0px 0px 12px; font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.06em; }
.btn { display: block; width: 100%; border-radius: 12px; padding: 14px; font-size: 16px; font-weight: 600; transition: transform 0.08s, background 0.15s; }
.btn:active { transform: scale(0.985); }
.btn.primary { background: var(--brand); color: var(--ink); }
.btn.primary:disabled { background: rgb(221, 207, 192); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.ghost { background: rgb(255, 255, 255); color: var(--ink); border: 1px solid var(--line); }
.btn.text { background: none; color: var(--ink-2); font-weight: 500; font-size: 14px; padding: 12px; }
.btn.big { padding: 15px; }
.home-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.badge { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 700; text-align: center; }
.footnote { margin: 22px 4px 0px; font-size: 12px; line-height: 1.7; color: var(--ink-3); }
.voice-test { margin-top: 16px; text-align: center; }
.voice-test .mini { font-size: 13px; }
.voice-status { margin: 8px 6px 0px; font-size: 12px; line-height: 1.7; color: var(--ink-2); text-align: left; }
.voice-status:empty { margin: 0px; }
.q-warn { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: var(--warn-soft); color: rgb(143, 92, 18); font-size: 12px; line-height: 1.6; text-align: left; }
.pack-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pack { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 11px; background: rgb(255, 255, 255); text-align: left; transition: border-color 0.15s, background 0.15s; }
.pack .pack-name { display: flex; align-items: center; gap: 5px; width: 100%; font-size: 13.5px; font-weight: 600; }
.pack .pack-meta { font-size: 10.5px; line-height: 1.45; color: var(--ink-3); }
.pack.sel { border-color: var(--brand); background: var(--brand-soft); }
.mode-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 13px 12px; border: 1.5px solid var(--line); border-radius: 11px; text-align: left; transition: border-color 0.15s, background 0.15s; }
.mode-ico { font-size: 17px; }
.mode-name { font-size: 14px; font-weight: 600; margin-top: 3px; }
.mode-desc { font-size: 11px; color: var(--ink-3); line-height: 1.4; }
.mode.sel { border-color: var(--brand); background: var(--brand-soft); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0px; border-bottom: 1px solid var(--line); font-size: 14px; }
.row:last-child { border-bottom-width: medium; border-bottom-style: none; border-bottom-color: currentcolor; padding-bottom: 0px; }
.row label { color: var(--ink-2); }
.switch-row label:first-child { color: var(--ink); }
select { font-family: inherit; font-size: 14px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: rgb(255, 255, 255); color: var(--ink); }
.switch { position: relative; display: inline-block; width: 46px; height: 27px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0px; height: 0px; }
.switch span { position: absolute; inset: 0px; background: rgb(230, 216, 200); border-radius: 27px; transition: background 0.18s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; background: rgb(255, 255, 255); border-radius: 50%; transition: transform 0.18s; box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 3px; }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(19px); }
.topbar { display: flex; align-items: center; justify-content: space-between; padding-right: 16px; padding-bottom: 10px; padding-left: 16px; padding-top: calc(10px + env(safe-area-inset-top)); background: rgb(255, 255, 255); border-bottom: 1px solid var(--line); }
.topbar.inline { border-width: medium; border-style: none; border-color: currentcolor; border-image: none; background: none; padding: 4px 4px 10px; }
.topbar.inline h1 { font-size: 20px; margin: 0px; flex: 1 1 0%; }
.topbar h1 { font-size: 17px; margin: 0px; }
.menu-card { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; margin-bottom: 10px; border: 1.5px solid var(--line); border-radius: var(--radius); background: rgb(255, 255, 255); box-shadow: rgba(120, 78, 36, 0.05) 0px 1px 2px, rgba(120, 78, 36, 0.22) 0px 8px 20px -14px; text-align: left; transition: transform 0.12s, border-color 0.15s; }
a.menu-card { color: inherit; text-decoration: none; }
.menu-card:active { transform: scale(0.985); border-color: var(--brand); }
.menu-ico { font-size: 26px; line-height: 1; flex: 0 0 auto; width: 32px; text-align: center; }
.menu-body { display: flex; flex-direction: column; gap: 4px; flex: 1 1 0%; min-width: 0px; }
.menu-name { font-size: 17px; font-weight: 700; color: var(--ink); }
.menu-desc { font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }
.menu-arrow { font-size: 22px; color: var(--ink-3); flex: 0 0 auto; }
.menu-extra { margin-top: 4px; }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; font-size: 16px; color: var(--ink-2); display: grid; place-items: center; }
.icon-btn:active { background: var(--track); }
.counter { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.counter b { color: var(--ink); font-size: 16px; }
.timer { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 46px; text-align: right; }
.progressbar { height: 3px; background: var(--track); }
.progressbar > div { height: 100%; width: 0px; background: var(--brand); transition: width 0.3s; }
.stage { flex: 1 1 0%; overflow-y: auto; padding: 12px 14px 6px; display: flex; flex-direction: column; gap: 10px; }
.prompt-card { background: rgb(255, 255, 255); border-radius: var(--radius); padding: 13px 14px 11px; text-align: center; box-shadow: rgba(120, 78, 36, 0.05) 0px 1px 2px; }
.pos { font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; margin-bottom: 6px; min-height: 15px; }
.pos:empty { display: none; }
.zh { font-size: 27px; font-weight: 600; line-height: 1.35; margin-bottom: 16px; word-break: break-word; }
.zh:empty { display: none; }
.play-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 20px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 14.5px; font-weight: 600; transition: transform 0.08s; }
.play-btn:active { transform: scale(0.96); }
.play-btn[disabled] { opacity: 0.4; }
.countdown { margin-top: 7px; font-size: 12px; color: var(--ink-3); display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.countdown span { font-size: 17px; font-weight: 700; color: var(--warn); font-variant-numeric: tabular-nums; }
.answer-wrap { min-height: 82px; }
.answer { min-height: 50px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; padding: 8px; background: rgb(255, 255, 255); border: 1.5px dashed var(--line); border-radius: var(--radius); }
.answer .placeholder { color: var(--ink-3); font-size: 14px; }
.tile { min-width: 24px; height: 38px; padding: 0px 3px; border-radius: 7px; background: var(--brand-soft); color: var(--brand); font-size: 21px; font-weight: 600; font-family: "SF Mono", "Cascadia Mono", Consolas, monospace; display: grid; place-items: center; user-select: none; }
.tile:active { background: rgb(255, 227, 202); }
.tile.space { min-width: 34px; color: var(--ink-3); font-size: 14px; }
.answer-tools { display: flex; align-items: center; justify-content: space-between; padding: 8px 4px 0px; min-height: 30px; }
.mini { font-size: 13px; color: var(--ink-2); padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgb(255, 255, 255); }
.mini:disabled { opacity: 0.4; }
.mini:active:not(:disabled) { background: var(--track); }
.plays-left { font-size: 12px; color: var(--ink-3); }
.feedback { background: rgb(255, 255, 255); border-radius: var(--radius); padding: 16px; border-left: 4px solid var(--ok); animation: 0.22s ease 0s 1 normal none running fadeUp; }
.feedback.bad { border-left-color: var(--bad); }
@keyframes fadeUp { 
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: none; }
}
.fb-head { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.feedback .fb-head { color: var(--ok); }
.feedback.bad .fb-head { color: var(--bad); }
.fb-word { font-size: 22px; font-weight: 700; font-family: "SF Mono", "Cascadia Mono", Consolas, monospace; margin-bottom: 3px; }
.fb-word small { font-family: inherit; font-size: 13px; font-weight: 400; color: var(--ink-3); margin-left: 8px; }
.fb-tip { margin-top: 10px; font-size: 12px; color: var(--ink-3); background: var(--bg); padding: 7px 10px; border-radius: 8px; line-height: 1.5; }
.diff { margin-top: 12px; }
.diff-row { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.diff-label { font-size: 11px; color: var(--ink-3); width: 52px; flex: 0 0 auto; }
.cells { display: flex; flex-wrap: wrap; font-family: "SF Mono", "Cascadia Mono", Consolas, monospace; font-size: 19px; font-weight: 600; line-height: 1.5; }
.cell { display: inline-block; min-width: 0.62em; text-align: center; border-radius: 3px; }
.cell.ok { color: var(--ink); }
.cell.miss { color: var(--bad); background: var(--bad-soft); text-decoration: underline; }
.cell.extra { color: var(--bad); background: var(--bad-soft); text-decoration: line-through; }
.cell.void { color: var(--ink-3); background: var(--bg); }
.fb-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.fb-actions .mini { flex: 1 1 0%; padding: 9px 10px; font-size: 13px; }
.fb-actions .mini.danger { color: var(--bad); border-color: rgb(245, 198, 200); }
.keyboard { flex: 0 0 auto; padding: 8px 5px calc(8px + env(safe-area-inset-bottom)); background: rgb(247, 236, 224); border-top: 1px solid var(--line); user-select: none; }
.kb-row { display: flex; gap: 5px; justify-content: center; margin-bottom: 6px; }
.kb-row:last-child { margin-bottom: 0px; }
.key { flex: 1 1 0px; min-width: 0px; height: var(--key); border-radius: 7px; background: rgb(255, 255, 255); font-size: 19px; font-weight: 500; color: var(--ink); box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 0px; display: grid; place-items: center; touch-action: manipulation; transition: background 0.05s; }
.key:active { background: rgb(240, 224, 205); }
.key.wide { flex: 2.2 1 0px; font-size: 14px; font-weight: 600; }
.key.enter { flex: 2.6 1 0px; background: var(--brand); color: rgb(255, 255, 255); font-size: 15px; font-weight: 700; }
.key.enter:active { background: rgb(217, 106, 19); }
.keyboard.disabled .key { opacity: 0.35; pointer-events: none; }
.keyboard.disabled .key.enter { opacity: 1; pointer-events: auto; }
.stat-card { display: flex; justify-content: space-around; text-align: center; padding: 20px 10px; }
.stat b { display: block; font-size: 24px; letter-spacing: -0.5px; }
.stat span { font-size: 12px; color: var(--ink-3); }
.res-list { display: flex; flex-direction: column; gap: 1px; }
.res-item { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.res-item:last-child { border-bottom-width: medium; border-bottom-style: none; border-bottom-color: currentcolor; }
.res-mark { width: 18px; flex: 0 0 auto; font-size: 14px; }
.res-mark.ok { color: var(--ok); }
.res-mark.bad { color: var(--bad); }
.res-main { flex: 1 1 0%; min-width: 0px; }
.res-en { font-weight: 600; font-family: "SF Mono", "Cascadia Mono", Consolas, monospace; }
.res-meta { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.wb-list { display: flex; flex-direction: column; gap: 9px; }
.wb-item { display: flex; align-items: center; gap: 12px; background: rgb(255, 255, 255); border-radius: 12px; padding: 13px 14px; box-shadow: rgba(120, 78, 36, 0.05) 0px 1px 2px; }
.wb-main { flex: 1 1 0%; min-width: 0px; }
.wb-en { font-size: 18px; font-weight: 700; font-family: "SF Mono", "Cascadia Mono", Consolas, monospace; }
.wb-zh { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.wb-count-tag { font-size: 11px; color: var(--bad); background: var(--bad-soft); padding: 3px 8px; border-radius: 999px; flex: 0 0 auto; }
.wb-remove { flex: 0 0 auto; font-size: 12px; color: var(--ink-3); padding: 6px 4px 6px 10px; }
.empty { text-align: center; padding: 60px 20px; color: var(--ink-3); }
.empty p { margin: 0px 0px 6px; font-size: 15px; }
.empty small { font-size: 12px; }
.card-note { margin: -6px 0px 12px; font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.pg-tip { font-size: 12px; color: var(--ink-3); text-align: center; line-height: 1.6; min-height: 18px; }
.fp-head { padding: 9px 12px 7px; }
.fp-head .pos { font-size: 11.5px; letter-spacing: 0px; line-height: 1.45; margin-bottom: 0px; }
.pg-tip:empty { display: none; }
.fp-head .pg-player { margin: 0px 0px 4px; gap: 8px; }
.fp-head .pg-play { width: 32px; height: 32px; font-size: 12px; }
.fp-head .pg-track { height: 22px; }
.fp-head .pg-knob { width: 12px; height: 12px; margin: -6px 0px 0px -6px; }
.fp-head .pg-time { width: 74px; font-size: 10.5px; }
.fp-top { display: flex; align-items: center; gap: 10px; }
.fp-play-wrap { position: relative; flex: 0 0 auto; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.fp-play-wrap::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; pointer-events: none; }
.fp-play-wrap.used::before { display: none; }
.fp-play-wrap.hint::before { animation: 1.9s ease-out 0s infinite normal none running fpRing; }
.fp-play-wrap.hint #fp-play { animation: 0.85s ease-in-out 0.35s 2 normal none running fpShake; }
@keyframes fpRing { 
  0% { transform: scale(0.9); opacity: 0.55; }
  70% { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
@keyframes fpShake { 
  0%, 100% { transform: translateX(0px); }
  16% { transform: translateX(-3px); }
  33% { transform: translateX(3px); }
  50% { transform: translateX(-2px); }
  67% { transform: translateX(2px); }
  84% { transform: translateX(-1px); }
}
@media (prefers-reduced-motion: reduce) {
  .fp-play-wrap.hint::before, .fp-play-wrap.hint #fp-play { animation: auto ease 0s 1 normal none running none; }
}
.fp-hint { margin: 5px 0px 0px 42px; font-size: 11px; line-height: 1.4; text-align: left; color: var(--brand-deep); }
.fp-hint[hidden] { display: none; }
.fp-top .pos { flex: 1 1 0%; margin: 0px; text-align: left; }
#fp-player { margin: 6px 0px 2px; }
.overlay { position: fixed; inset: 0px; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(46, 36, 29, 0.38); }
.overlay-card { width: 100%; max-width: 300px; padding: 22px 18px 18px; border-radius: 18px; background: rgb(255, 255, 255); text-align: center; box-shadow: rgba(120, 78, 36, 0.45) 0px 24px 48px -20px; }
.score-big { font-size: 46px; font-weight: 800; line-height: 1.05; color: var(--brand); }
.score-sub { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.score-note { margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.overlay-card .btn { width: 100%; margin-top: 18px; }
.overlay-card .btn + .btn { margin-top: 8px; }
.score-hint { margin: 10px 0px 0px; font-size: 11.5px; line-height: 1.5; color: var(--ink-3); }
.diff-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.diff-actions .btn { width: 100%; }
#fp-rate-cancel { margin-top: 10px; padding: 6px; width: 100%; border: 0px; background: none; font-size: 12px; color: var(--ink-3); }
.confirm-text { font-size: 15px; line-height: 1.65; color: var(--ink); }
.overlay-actions { display: flex; gap: 10px; margin-top: 18px; }
.overlay-actions .btn { flex: 1 1 0%; margin-top: 0px; }
#fp-tip { font-size: 11px; line-height: 1.4; min-height: 15px; }
.pg-player { display: flex; align-items: center; gap: 10px; margin: 2px 0px 6px; }
.pg-play { flex: 0 0 auto; width: 38px; height: 38px; padding: 0px 0px 0px 2px; border-width: medium; border-style: none; border-color: currentcolor; border-image: none; border-radius: 50%; background: var(--brand); color: rgb(255, 255, 255); font-size: 14px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.12s; }
.pg-play.playing { padding-left: 0px; letter-spacing: 1px; }
.pg-play:active { transform: scale(0.94); }
.pg-play[disabled] { opacity: 0.4; cursor: default; }
.pg-track { position: relative; flex: 1 1 0%; height: 28px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.pg-track::before { content: ""; position: absolute; left: 0px; right: 0px; height: 6px; border-radius: 3px; background: var(--track); }
.pg-fill { position: relative; height: 6px; width: 0px; border-radius: 3px; background: var(--brand); pointer-events: none; }
.pg-knob { position: absolute; top: 50%; left: 0px; width: 14px; height: 14px; margin: -7px 0px 0px -7px; border: 2px solid var(--brand); border-radius: 50%; background: rgb(255, 255, 255); box-sizing: border-box; pointer-events: none; }
.pg-track:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 4px; }
.pg-time { flex: 0 0 auto; width: 82px; text-align: right; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
@media (min-width: 560px) {
  .scroll { max-width: 520px; margin: 0px auto; width: 100%; }
  .stage, .keyboard, .topbar { max-width: 560px; margin: 0px auto; width: 100%; }
  .keyboard { border-radius: var(--radius) 14px 0px 0px; }
}
#fp-stage { padding: 10px 12px 6px; gap: 8px; }
.fp-card { background: rgb(255, 255, 255); border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 12px 8px; margin-bottom: 7px; box-shadow: rgba(120, 78, 36, 0.05) 0px 1px 2px, rgba(120, 78, 36, 0.2) 0px 6px 20px -16px; }
.fp-no { display: inline-block; min-width: 18px; height: 18px; padding: 0px 3px; margin-right: 5px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-deep); font-size: 11.5px; font-weight: 700; line-height: 18px; text-align: center; vertical-align: 1px; }
.fp-no.ok { background: var(--ok-soft); color: var(--ok); }
.fp-no.bad { background: var(--bad-soft); color: var(--bad); }
.fp-cat { margin-left: 5px; padding: 0px 4px; border: 1px solid var(--line); border-radius: 4px; font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.fp-sent { margin: 0px; font-size: 15px; line-height: 1.55; }
.fp-keep { white-space: nowrap; }
.fp-blank { display: inline-block; padding: 0px 6px; margin: 0px 2px; text-align: center; font-family: "SF Mono", "Cascadia Mono", Consolas, monospace; font-weight: 700; color: var(--ink); background: var(--brand-soft); border-bottom: 2px solid var(--brand); border-radius: 6px 6px 2px 2px; line-height: 1.35; transition: background 0.15s, border-color 0.15s; }
.fp-blank.active { background: rgb(255, 227, 202); border-bottom-color: rgb(217, 106, 19); box-shadow: rgba(245, 130, 42, 0.22) 0px 0px 0px 2px; }
.fp-blank.good { background: var(--ok-soft); border-bottom-color: var(--ok); color: var(--ok); }
.fp-blank.bad { background: var(--bad-soft); border-bottom-color: var(--bad); color: var(--bad); }
.fp-blank.locked { background: var(--ok-soft); border-bottom-color: transparent; color: var(--ok); cursor: default; opacity: 0.85; }
.fp-fb { margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line); font-size: 13px; }
.fp-fb-row { display: flex; gap: 8px; align-items: baseline; margin-bottom: 4px; }
.fp-fb-label { flex: 0 0 auto; width: 56px; color: var(--ink-3); font-size: 12px; }
.fp-fb-val { font-family: "SF Mono", "Cascadia Mono", Consolas, monospace; font-weight: 600; word-break: break-word; }
.fw.ok { color: var(--ok); }
.fw.bad { color: var(--bad); }
.fw.strike { text-decoration: line-through; }
.fw.miss { color: var(--ink-3); }
.dl-x { font-style: normal; color: var(--bad); text-decoration: line-through; background: var(--bad-soft); border-radius: 3px; }
.dl-m { font-style: normal; color: var(--ink-3); background: var(--bg); border-radius: 3px; padding: 0px 1px; }
.fp-reveal-btn { margin-top: 6px; }
.fp-reveal { margin: 8px 0px 0px; padding: 9px 11px; background: var(--warn-soft); border-radius: 9px; font-size: 14px; line-height: 1.9; }
mark { background: rgb(255, 224, 138); color: inherit; padding: 0px 2px; border-radius: 3px; font-weight: 700; }
.fp-sub { margin: 4px 0px 12px; font-size: 13px; color: var(--ink-2); }
.fp-actions { display: flex; gap: 8px; }
.fp-actions .btn { flex: 1 1 0%; white-space: nowrap; padding-left: 6px; padding-right: 6px; font-size: 12.5px; }
.fp-transcript { margin-top: 14px; padding: 12px 13px; background: var(--bg); border-radius: 10px; }
.fp-transcript .fp-sent { font-size: 15px; line-height: 1.95; }
.pg-tip.warn { color: var(--bad); font-weight: 600; }
.pg-tip.ok { color: var(--ok); font-weight: 600; }
.topbar-count { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tch-scroll { padding-bottom: 28px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0px 10px; }
.chip { flex: 0 0 auto; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: rgb(255, 255, 255); font-size: 12.5px; color: var(--ink-2); }
.chip.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); font-weight: 600; }
.tch-filter { padding: 2px 2px 10px; font-size: 13.5px; }
.tch-sample { margin: 0px 2px 12px; font-size: 12px; color: var(--ink-3); }
.tch-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.kpi { background: rgb(255, 255, 255); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 8px 10px; text-align: center; }
.kpi-val { font-size: 21px; font-weight: 700; color: var(--ink); line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi-label { margin-top: 3px; font-size: 11px; color: var(--ink-2); }
.kpi-sub { margin-top: 2px; font-size: 10px; color: var(--ink-3); line-height: 1.3; }
.tch-paper { background: rgb(255, 255, 255); border: 1.5px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.tch-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 13px 12px; background: none; border: 0px; text-align: left; }
.tch-name { flex: 1 1 0%; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.tch-meta { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tch-chev { font-size: 16px; color: var(--ink-3); transition: transform 0.15s; }
.tch-paper.open .tch-chev { transform: rotate(90deg); }
.tch-body { padding: 10px 12px 12px; border-top: 1px dashed var(--line); }
.tch-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; margin-bottom: 12px; }
.tch-stats span { display: block; font-size: 10.5px; color: var(--ink-3); line-height: 1.35; }
.tch-stats b { display: block; font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.rate-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--track); }
.rate-bar .rb { display: block; height: 100%; }
.rb.easy { background: var(--ok); }
.rb.fit { background: var(--brand); }
.rb.hard { background: var(--bad); }
.rate-legend { margin: 6px 0px 12px; font-size: 11px; color: var(--ink-3); }
.tch-wrongs { display: flex; flex-direction: column; gap: 6px; }
.tch-wrong { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.tch-no { color: var(--ink-3); flex: 0 0 auto; width: 52px; }
.tch-rate { flex: 0 0 auto; width: 46px; text-align: right; font-variant-numeric: tabular-nums; color: var(--bad); font-weight: 600; }
.tch-ans { flex: 1 1 0%; font-family: "SF Mono", "Cascadia Mono", Consolas, monospace; font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tch-actions { display: flex; gap: 10px; margin: 18px 0px 8px; }
.tch-actions .btn { flex: 1 1 0%; font-size: 12.5px; }
.btn.danger { color: var(--bad); border-color: rgb(240, 201, 198); }
.tch-empty { text-align: center; padding: 26px 18px; }
.tch-empty .hint { margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.tch-wrongs-label { margin: 0px 0px 6px; font-size: 10.5px; color: var(--ink-3); }
.link-btn { border: 0px; background: none; padding: 2px 4px; font-size: 12px; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.setup-line { text-align: center; margin: 12px 0px 0px; }
.class-line { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0px 0px; font-size: 12px; color: var(--ink-3); }
.setup-card { width: min(340px, 88vw); }
.setup-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.setup-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.setup-close { border: 0px; background: none; font-size: 14px; color: var(--ink-3); padding: 4px 6px; }
.setup-tabs { display: flex; gap: 6px; padding: 3px; margin-bottom: 14px; background: var(--bg); border-radius: 9px; }
.setup-tab { flex: 1 1 0%; padding: 7px 0px; border: 0px; border-radius: 7px; background: none; font-size: 13px; color: var(--ink-2); }
.setup-tab.active { background: rgb(255, 255, 255); color: var(--brand-deep); font-weight: 700; box-shadow: rgba(120, 78, 36, 0.12) 0px 1px 3px; }
.setup-note { margin: 0px 0px 10px; font-size: 12px; line-height: 1.6; color: var(--ink-3); }
.setup-input { width: 100%; margin-bottom: 8px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 9px; background: rgb(255, 255, 255); font-size: 14px; color: var(--ink); }
.setup-input:focus { outline: none; border-color: var(--brand); }
.setup-hint { min-height: 17px; margin: 0px 0px 4px; font-size: 11.5px; color: var(--ink-3); }
.setup-hint.ok { color: var(--ok); }
.setup-hint.bad { color: var(--bad); }
.pack-groups { flex-wrap: wrap; margin: 2px 0px 10px; }
.pack-groups { gap: 6px; }
.pack-groups .chip { min-width: 26px; padding: 3px 7px; font-size: 11.5px; line-height: 1.5; }
.pack-groups .chip[data-group="book"], .pack-groups .chip[data-group="freq"] { padding: 3px 10px; }
.pack-done { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; flex: 0 0 auto; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: 10px; line-height: 1; }
.fb-ex { margin-top: 10px; padding: 9px 11px; border-radius: 9px; background: var(--bg); font-size: 13.5px; line-height: 1.5; }
.fb-ex-en { color: var(--ink); }
.fb-ex-en b { color: var(--brand-deep); font-weight: 700; }
.fb-ex-zh { margin-top: 3px; font-size: 12px; color: var(--ink-3); }
.wb-main .fb-ex { margin-top: 6px; padding: 7px 9px; font-size: 12.5px; }
.wb-main .fb-ex-zh { font-size: 11px; }
.wb-item { flex-wrap: wrap; }
.wb-item > .fb-ex { flex: 0 0 100%; margin-top: 8px; }
.wb-main .wb-en { font-size: 16px; }
.feedback.ok-flash { position: fixed; left: 50%; top: 46%; transform: translate(-50%, -50%); z-index: 50; pointer-events: none; border: 0px; border-radius: 22px; padding: 20px 26px 18px; box-shadow: rgba(90, 60, 20, 0.22) 0px 14px 44px; animation: 0.2s cubic-bezier(0.2, 1.4, 0.4, 1) 0s 1 normal both running flashPop; }
@keyframes flashPop { 
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.86); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.fb-flash { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.flash-tick { width: 62px; height: 62px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: 34px; line-height: 62px; text-align: center; font-weight: 700; animation: 0.45s cubic-bezier(0.2, 1.5, 0.4, 1) 0s 1 normal both running tickPop; }
.flash-label { font-size: 12.5px; font-weight: 600; color: var(--ok); animation: 0.3s ease 0.12s 1 normal both running labelIn; }
@keyframes tickPop { 
  0% { transform: scale(0.35); opacity: 0; }
  55% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes labelIn { 
  0% { opacity: 0; transform: translateY(3px); }
  100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .flash-tick, .flash-label { animation: auto ease 0s 1 normal none running none; }
}
.stage.has-feedback .answer-tools, .stage.has-feedback #countdown { display: none; }
.stage.has-feedback .answer-wrap { display: none; }
.stage.has-feedback { gap: 8px; padding-bottom: 0px; }
body { font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif; }
h1, h2, h3, .hero h1, .hero.brand h1, .menu-name, .pack-name, .mode-name, .card-title, .score-big, .kpi-val { font-family: var(--font-round); letter-spacing: -0.01em; }
.num, .timer, .counter, .countdown span, .kpi-val, .score-big, .res-rate, .res-num, .fp-no, .wb-en, .res-en, .tch-name { font-family: var(--font-round); font-variant-numeric: tabular-nums; }
.card, .prompt-card, .menu-card, .overlay-card, .setup-card, .pg-text { border: 2px solid var(--ink-line); border-radius: var(--radius); box-shadow: var(--shadow); }
.wb-item, .tch-paper, .kpi { border: 1.5px solid var(--ink-line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.card, .prompt-card, .menu-card, .tch-paper { background: var(--card); }
.badge, .tag, .pack-done, .wb-count-tag { border: 1.5px solid var(--ink-line); box-shadow: var(--shadow-sm); font-family: var(--font-round); font-weight: 800; }
.badge { background: var(--brand); color: var(--ink-line); border-radius: 999px; }
.btn { border-radius: 999px; font-family: var(--font-round); font-weight: 800; }
.btn.primary { background: var(--brand); color: var(--ink-line); border: 2px solid var(--ink-line); box-shadow: 3px 3px 0 var(--ink-line); }
.btn.primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink-line); }
.btn.primary:disabled { background: rgb(235, 220, 198); color: var(--ink-3); border-color: var(--ink-3); box-shadow: none; }
.btn.ghost { background: var(--card); color: var(--ink); border: 2px solid var(--ink-line); box-shadow: 3px 3px 0 var(--ink-line); }
.btn.ghost:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink-line); }
.btn.text { font-family: var(--font-round); font-weight: 700; }
.topbar.inline { gap: 10px; padding-left: 8px; }
.icon-btn { width: 32px; height: 32px; flex: 0 0 auto; border: 1.5px solid var(--ink-line); background: var(--card); box-shadow: 2px 2px 0 var(--ink-line); font-size: 15px; }
.icon-btn:active { transform: translate(1px, 1px); box-shadow: none; background: var(--brand-soft); }
.mini { border: 1.5px solid var(--ink-line); border-radius: 999px; background: var(--card); font-weight: 700; box-shadow: var(--shadow-sm); }
.mini:active:not(:disabled) { background: var(--brand-soft); transform: translate(1px, 1px); box-shadow: none; }
.chip { border: 2px solid var(--ink-line); border-radius: 999px; background: var(--card); font-weight: 700; }
.chip.active { background: var(--brand); color: var(--ink-line); font-weight: 800; box-shadow: var(--shadow-sm); }
.pack, .mode { border: 1.5px solid var(--ink-line); border-radius: 16px; background: var(--card); box-shadow: none; }
.pack.sel, .mode.sel { background: var(--brand-soft); border-color: var(--ink-line); box-shadow: var(--shadow-sm); }
.pack:active, .mode:active { transform: translate(1px, 1px); box-shadow: none; }
.topbar { background: var(--bg); border-bottom: 2px solid var(--ink-line); }
.topbar.inline { border-width: medium; border-style: none; border-color: currentcolor; border-image: none; }
.progressbar { height: 6px; background: rgb(243, 228, 204); }
.progressbar > div { background: var(--brand); }
.answer { background: var(--card); border: 2px solid var(--ink-line); border-radius: 18px; }
.tile { border: 1.5px solid var(--ink-line); border-radius: 10px; background: var(--brand-soft); color: var(--ink-line); box-shadow: 0 2px 0 var(--ink-line); }
.tile:active { transform: translateY(2px); box-shadow: none; background: var(--brand); }
.feedback { border-top-color: ; border-top-style: ; border-top-width: ; border-right-color: ; border-right-style: ; border-right-width: ; border-bottom-color: ; border-bottom-style: ; border-bottom-width: ; border-left-style: ; border-image-source: ; border-image-slice: ; border-image-width: ; border-image-outset: ; border-image-repeat: ; border-left-width: 8px; border-left-color: var(--ink-line); box-shadow: var(--shadow); }
.feedback.bad { border-left-color: var(--bad); }
.feedback.ok-flash { box-shadow: rgba(29, 27, 58, 0.45) 0px 10px 30px -12px; border-color: var(--ink-line); }
.keyboard { background: rgb(246, 231, 206); border-top: 2px solid var(--ink-line); }
.key { background: var(--card); border: 1.5px solid var(--ink-line); border-radius: 12px; box-shadow: 0 2px 0 var(--ink-line); font-weight: 700; }
.key:active { background: var(--brand-soft); transform: translateY(2px); box-shadow: none; }
.key.enter { background: var(--brand); color: var(--ink-line); font-weight: 800; }
.key.enter:active { background: var(--brand-deep); }
.keyboard.disabled .key { box-shadow: none; }
.res-item, .tch-wrong { border-color: var(--ink-line); }
.res-mark { font-family: var(--font-round); font-weight: 800; }
.wb-item { background: var(--card); }
.overlay { background: rgba(29, 27, 58, 0.42); }
.overlay-card, .setup-card { background: var(--card); }
.setup-input, .setup-tabs { border-color: var(--ink-line); }
.setup-tab.active { background: var(--brand); color: var(--ink-line); font-weight: 800; }
.fp-card { background: var(--card); border-width: 1.5px; box-shadow: 2px 2px 0 var(--ink-line); }
.fp-blank { border-bottom-width: 3px; border-bottom-color: var(--ink-line); }
.fp-blank.active { background: var(--brand-soft); box-shadow: inset 0 -3px 0 var(--brand); }
.fp-sent { font-size: 15px; }
.kpi-val { font-weight: 800; }
.rate-bar { border: 1.5px solid var(--ink-line); }
@media (prefers-reduced-motion: reduce) {
  .btn.primary:active, .btn.ghost:active, .icon-btn:active, .pack:active, .mode:active, .key:active, .tile:active, .mini:active:not(:disabled) { transform: none; }
}
.menu-desc { font-size: 12px; }
.menu-arrow { font-size: 20px; }
.footnote { font-size: 12px; color: var(--ink-2); }
.link-btn { padding: 12px 10px; min-height: 44px; font-size: 12px; color: var(--ink-2); }
.voice-test .mini { min-height: 44px; padding: 10px 16px; font-size: 13px; }
.menu-card { font-size: 17px; font-family: var(--font-round); }
.menu-ico { font-size: 24px; }
.help-dot { width: 20px; height: 20px; flex: 0 0 auto; border: 1.5px solid var(--ink-line); border-radius: 50%; background: var(--card); color: var(--ink-2); font-size: 12px; font-weight: 700; line-height: 1; box-shadow: 1px 1px 0 var(--ink-line); }
.help-dot:active { transform: translate(1px, 1px); box-shadow: none; }
.paper-row { margin-bottom: 2px; }
.paper-row .grow { flex: 1 1 0%; }
.paper-desc { margin: 0px 0px 14px; font-size: 11.5px; line-height: 1.5; color: var(--ink-3); }
.paper-banner { display: flex; align-items: center; gap: 8px; margin: 0px 0px 12px; padding: 9px 12px; border: 1.5px solid var(--brand); border-radius: var(--radius); background: var(--brand-soft); }
.paper-banner .pb-text { flex: 1 1 0%; font-size: 12px; line-height: 1.4; color: var(--brand-deep); font-weight: 600; }
.pack-score { display: inline-block; margin-left: 6px; padding: 0px 6px; border-radius: 999px; font-size: 10.5px; font-weight: 700; line-height: 17px; vertical-align: 1px; border: 1.5px solid transparent; }
.pack-score.good { background: var(--ok-soft); color: var(--ok); border-color: rgba(31, 158, 146, 0.35); }
.pack-score.mid { background: var(--brand-soft); color: var(--brand-deep); border-color: rgba(214, 74, 31, 0.3); }
.pack-score.bad { background: var(--bad-soft); color: var(--bad); border-color: rgba(214, 74, 31, 0.35); }
.pack-score.paper { border-style: dashed; }
.pp-scroll { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 20px 18px; }
.pp-big { text-align: center; }
.pp-num { font-family: var(--font-round); font-size: 64px; font-weight: 800; line-height: 1.05; color: var(--ink); letter-spacing: -0.02em; }
.pp-sub { margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.pp-play { width: 100%; max-width: 320px; }
.pp-play:disabled { opacity: 0.5; }
.pp-plays { min-height: 18px; font-size: 12px; color: var(--ink-3); }
.pp-bottom { padding: 10px 16px 18px; }
.pp-bottom .btn { width: 100%; min-height: 52px; }
.pc-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0px 14px; }
.pc-row { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1.5px solid var(--ink-line); border-radius: var(--radius); background: var(--card); }
.pc-row.is-wrong { background: var(--bad-soft); border-color: rgba(214, 74, 31, 0.45); }
.pc-no { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px; background: var(--bg); color: var(--ink-2); font-size: 11.5px; font-weight: 700; line-height: 22px; text-align: center; }
.pc-row.is-wrong .pc-no { background: var(--bad); color: rgb(255, 255, 255); }
.pc-main { flex: 1 1 0%; min-width: 0px; }
.pc-en { font-size: 16px; font-weight: 700; color: var(--ink); word-break: break-word; }
.pc-zh { margin-top: 2px; font-size: 11.5px; color: var(--ink-3); }
.pc-mark { flex: 0 0 auto; padding: 7px 12px; min-height: 34px; border: 1.5px solid var(--ink-line); border-radius: 999px; background: var(--card); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.pc-row.is-wrong .pc-mark { background: var(--bad); border-color: var(--bad); color: rgb(255, 255, 255); }
.pc-bottom { display: flex; gap: 10px; padding: 10px 16px 18px; }
.pc-bottom .btn { flex: 1 1 0%; min-height: 48px; }
.pc-empty { padding: 24px 0px; text-align: center; color: var(--ink-3); font-size: 13px; }
.cmp-table { width: 100%; border-collapse: collapse; margin: 4px 0px 16px; font-size: 12px; table-layout: fixed; }
.cmp-table th, .cmp-table td { padding: 8px 4px; text-align: center; border-bottom: 1px solid var(--line); }
.cmp-table th { color: var(--ink-2); font-weight: 700; }
.cmp-table td:first-child { text-align: left; color: var(--ink-3); font-size: 11.5px; }
.cmp-table tbody tr:last-child td { border-bottom: 0px; }
.tch-label { margin: 12px 0px 6px; font-size: 11.5px; color: var(--ink-3); }
.tch-paper-note { margin: 8px 0px 0px; font-size: 11.5px; line-height: 1.5; color: var(--ink-3); }
.fp-paper-bar { display: flex; flex-direction: column; gap: 10px; margin: 6px 0px 10px; }
#screen-form-play.paper #fp-keyboard { display: none !important; }
.fp-mark { display: inline-block; margin-top: 8px; padding: 5px 12px; border: 1.5px solid var(--ink-line); border-radius: 999px; background: var(--card); font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-language-override: inherit; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.fp-mark.is-wrong { background: var(--bad-soft, #FFE1E1); border-color: var(--bad, #E5484D); color: var(--bad, #E5484D); font-weight: 600; }
.fp-mark:active { transform: translate(1px, 1px); }
.fp-paper-actions { display: flex; gap: 10px; margin-top: 10px; }
.fp-paper-actions .btn { flex: 1 1 0%; }
.fp-blank.paper { background: transparent; }
.fp-blank.paper.good mark { background: var(--ok-soft); color: var(--ok); }
.fp-blank.paper.bad mark { background: var(--bad-soft); color: var(--bad); }
.fp-blank mark { background: transparent; color: inherit; }
.mode-tag { display: inline-block; margin-left: 10px; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.55); font-size: 12px; font-weight: 700; letter-spacing: 0px; vertical-align: 2px; }
.mode-tag.paper { background: rgb(29, 27, 58); color: rgb(255, 247, 232); }
.flash-answer { margin-top: 10px; font-family: var(--font-mono, inherit); font-size: 22px; font-weight: 700; letter-spacing: 0.02em; }
.flash-zh { margin-top: 2px; font-size: 13px; color: var(--ink-2); }
.mode-name { font-weight: 700; }
.mode-name + .help-dot { margin-left: 2px; }
.pp-auto { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.keyboard .key.shift { font-size: 15px; line-height: 1; padding-bottom: 2px; }
.keyboard .key.shift.on { background: var(--brand); color: rgb(255, 255, 255); box-shadow: none; transform: translate(1px, 1px); }
.keyboard.kb-shift .key { text-transform: uppercase; }
.books-line { margin: 14px 0px 0px; text-align: center; font-size: 12.5px; color: var(--ink-3); }
.books-line span + span { margin-left: 14px; }
.books-line b { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.book-filter { margin: 4px 0px 12px; }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 80; transform: translate(-50%, 12px); max-width: 330px; padding: 10px 16px; border: 2px solid var(--ink-line); border-radius: var(--radius); background: var(--ink); color: var(--bg); font-size: 13px; line-height: 1.5; text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.18s, transform 0.18s; }
.toast.show { opacity: 1; transform: translate(-50%, 0px); }
#btn-wb-random, #btn-mb-clear { margin-top: 16px; }
#btn-wb-retest { margin-top: 8px; }
#wb-list, #mb-list { display: flex; flex-direction: column; gap: 8px; }
.menu-books { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.book-btn { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; padding: 14px 10px !important; font-size: 14px !important; }
.book-btn .badge { margin: 0px; }
.book-actions { display: flex; gap: 10px; margin: 0px 0px 14px; }
.book-actions .btn { flex: 1 1 0%; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 16px 0px 4px; min-height: 0px; }
.pager:empty { display: none; }
.pager-btn { padding: 9px 16px; border: 2px solid var(--ink-line); border-radius: 999px; background: var(--card); color: var(--ink); font-style: inherit; font-variant: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-language-override: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.pager-btn:disabled { opacity: 0.35; cursor: default; }
.pager-num { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pack-progress { margin: 10px 0px 12px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.pp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.pp-head b { color: var(--ink); font-size: 14px; }
.pp-nums { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.pp-nums .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.pp-nums .dot.ok { background: var(--ok); margin-left: 4px; }
.pp-nums .dot.bad { background: var(--bad); margin-left: 6px; }
.pp-nums .dot.rest { background: var(--track); margin-left: 6px; }
.pp-bar { display: flex; height: 8px; margin-top: 9px; border-radius: 999px; background: var(--track); overflow: hidden; }
.pp-seg.ok { background: var(--ok); }
.pp-seg.bad { background: var(--bad); }
#wb-list .fb-ex, #mb-list .fb-ex { margin-top: 8px; padding: 8px 10px; }
#wb-list .fb-ex-en, #mb-list .fb-ex-en { font-size: 13.5px; line-height: 1.5; }
#wb-list .fb-ex-zh, #mb-list .fb-ex-zh { font-size: 12px; }
#wb-list .wb-item, #mb-list .wb-item { padding: 12px 14px; }
.book-btn::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
#menu-wrongbook.book-btn::before { background: var(--bad); }
.book-btn { padding: 12px 8px !important; }
.pager { margin: 0px 0px 12px; justify-content: space-between; }
.pager:empty { display: none; }
.app-version { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--ink-2); letter-spacing: 0.02em; }
.cat-scroll { padding-bottom: 28px; }
.cat-stage { position: relative; height: 300px; border: 2px solid var(--ink); border-radius: 20px; background: radial-gradient(120% 90% at 50% 100%, rgb(255, 231, 196) 0%, rgb(255, 247, 232) 62%); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; box-shadow: rgba(29, 27, 58, 0.9) 4px 4px 0px; }
.cat-stage .cat { height: 96%; width: auto; max-width: 100%; display: block; overflow: visible; stroke: rgb(29, 27, 58); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cat .shadow { stroke: none; fill: rgba(29, 27, 58, 0.12); }
.cat .fur { fill: var(--fur); }
.cat .bellyf { fill: var(--belly); }
.cat .inner { fill: var(--inner); stroke-width: 2.5; }
.cat .patch { fill: var(--patch); stroke: none; }
.cat .stripe { fill: none; stroke: var(--fur-dark); stroke-width: 5; }
.cat .side { fill: none; stroke: var(--fur-dark); stroke-width: 4.5; opacity: 0.9; }
.cat .whisk { fill: none; stroke: rgb(17, 17, 17); stroke-width: 2.2; opacity: 0.5; }
.cat .paw-line { fill: none; stroke: rgb(17, 17, 17); stroke-width: 2.4; opacity: 0.6; }
.cat .tail-out { fill: none; stroke: rgb(17, 17, 17); stroke-width: 21; }
.cat .tail-in { fill: none; stroke: var(--fur); stroke-width: 15; }
.cat .bg-eye { fill: rgb(255, 255, 255); }
.cat .iris { display: none; fill: rgb(127, 190, 232); stroke: none; }
.cat .pupil { fill: rgb(59, 46, 41); stroke: none; }
.cat .glint { fill: rgb(255, 255, 255); stroke: none; }
.cat .nose { fill: var(--nose); stroke: rgb(17, 17, 17); stroke-width: 2.5; }
.cat .mouth { fill: none; stroke: rgb(17, 17, 17); stroke-width: 2.8; }
.cat .happy-eye { fill: none; stroke: rgb(17, 17, 17); stroke-width: 4.2; }
.cat [data-for] { display: none; }
.cat-stage[data-cat="june"] .cat [data-for="june"], .cat-stage[data-cat="kai"] .cat [data-for="kai"], .cat-stage[data-cat="qiu"] .cat [data-for="qiu"] { display: block; }
.cat-stage[data-cat="june"] { --fur: #FF9F5A; --fur-dark: #E07A34; --belly: #FFF0DC; --patch: #F0803F; --inner: #FFB1A0; --nose: #E8536B; }
.cat-stage[data-cat="kai"] { --fur: #FDF6EA; --fur-dark: #C0A189; --belly: #FFFFFF; --patch: #C9A88F; --inner: #FFC5BE; --nose: #E0788C; }
.cat-stage[data-cat="qiu"] { --fur: #CBB49B; --fur-dark: #8A7461; --belly: #F6EBD9; --patch: #A08A73; --inner: #FFC0B8; --nose: #DE8296; }
.cat-stage[data-cat="kai"] #ear-l, .cat-stage[data-cat="kai"] #ear-r { fill: var(--patch); }
.cat-stage[data-cat="kai"] .tail-in { stroke: var(--patch); }
.cat-stage[data-cat="kai"] .paw { fill: var(--patch); }
.cat .wear { display: none; }
.cat-stage[data-cloth="sweater"] .wear[data-id="sweater"], .cat-stage[data-cloth="scarf"] .wear[data-id="scarf"], .cat-stage[data-cloth="overalls"] .wear[data-id="overalls"], .cat-stage[data-cloth="cape"] .wear[data-id="cape"], .cat-stage[data-cloth="raincoat"] .wear[data-id="raincoat"], .cat-stage[data-cloth="jammies"] .wear[data-id="jammies"], .cat-stage[data-cloth="backpack"] .wear[data-id="backpack"], .cat-stage[data-cloth="vest"] .wear[data-id="vest"], .cat-stage[data-cloth="tuxedo"] .wear[data-id="tuxedo"], .cat-stage[data-head="bow"] .wear[data-id="bow"], .cat-stage[data-head="beanie"] .wear[data-id="beanie"], .cat-stage[data-head="crown"] .wear[data-id="crown"], .cat-stage[data-head="flowers"] .wear[data-id="flowers"], .cat-stage[data-head="straw"] .wear[data-id="straw"], .cat-stage[data-head="phones"] .wear[data-id="phones"], .cat-stage[data-head="chef"] .wear[data-id="chef"], .cat-stage[data-head="star"] .wear[data-id="star"] { display: inline; }
#cat-eyes { transition: opacity 0.08s; }
.cat-stage.blink #cat-eyes { opacity: 0; }
.cat-stage .cat { animation: 3.6s ease-in-out 0s infinite normal none running catBreathe; }
@keyframes catBreathe { 
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-3px); }
}
.cat-bubble { position: static; margin: 8px auto 0px; transform: none; min-height: 40px; max-width: 94%; display: block; padding: 7px 13px; background: rgb(255, 255, 255); border: 2px solid var(--ink); border-radius: var(--radius); font-size: 13px; font-weight: 700; line-height: 1.45; text-align: center; opacity: 0; transition: opacity 0.18s, transform 0.18s; pointer-events: none; }
.cat-bubble.show { opacity: 1; }
.cat-hud { display: flex; align-items: center; justify-content: space-between; margin: 14px 2px 10px; }
.cat-hearts { display: flex; gap: 6px; }
.cat-heart { width: 22px; height: 20px; position: relative; }
.cat-heart::before { content: "♥"; font-size: 20px; line-height: 20px; color: rgb(242, 217, 204); }
.cat-heart.half::after { content: "♥"; position: absolute; left: 0px; top: 0px; font-size: 20px; line-height: 20px; color: rgb(240, 91, 110); width: 50%; overflow: hidden; }
.cat-heart.full::before { color: rgb(240, 91, 110); }
.cat-lv { font-size: 13px; font-weight: 800; color: var(--ink-2); }
.cat-food { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.food-btn { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 13px 10px; border: 2px solid var(--ink); border-radius: var(--radius); background: rgb(255, 255, 255); color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 800; box-shadow: rgba(29, 27, 58, 0.9) 3px 3px 0px; cursor: pointer; }
.food-btn:active { transform: translate(2px, 2px); box-shadow: rgba(29, 27, 58, 0.9) 1px 1px 0px; }
.food-btn.off { opacity: 0.45; box-shadow: none; }
.food-num { background: var(--brand); color: rgb(255, 255, 255); border-radius: 999px; padding: 0px 7px; font-size: 12px; }
.cat-tip { margin: 10px 2px 16px; font-size: 12px; line-height: 1.6; color: var(--ink-2); }
.cat-progress { margin-bottom: 14px; }
.cat-progress-head { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; }
.cat-progress-head b { color: var(--ink); font-size: 14px; }
.cat-progress-bar { height: 10px; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: rgb(255, 255, 255); }
.cat-progress-bar i { display: block; height: 100%; width: 0px; background: var(--ok); transition: width 0.3s; }
.cat-tabs { margin-bottom: 12px; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat-item { position: relative; border: 2px solid var(--ink); border-radius: var(--radius); background: rgb(255, 255, 255); padding: 6px 4px 8px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-family: inherit; cursor: pointer; }
.cat-item.locked { background: rgb(246, 238, 223); border-style: dashed; cursor: default; }
.cat-item.on { background: var(--brand-soft); }
.cat-item .thumb { width: 100%; height: 58px; }
.cat-item .thumb svg { width: 100%; height: 100%; }
.cat-item .nm { font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.cat-item.locked .nm { color: rgb(185, 174, 156); letter-spacing: 0.06em; }
.cat-item .qm { font-size: 26px; font-weight: 800; color: rgb(201, 188, 166); height: 58px; display: flex; align-items: center; }
.cat-item .on-dot { position: absolute; right: 5px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.cat-test { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.cat-stage.happy #cat-eyes-happy { display: block; }
.cat-stage.happy #cat-eyes { display: none; }
.cat-stage.happy #cat-mouth-closed { display: none; }
.cat-stage.happy #cat-mouth-open { display: block; }
#screen-cat { background-color: var(--bg); background-image: radial-gradient(rgba(29, 27, 58, 0.07) 1px, transparent 1px); background-size: 15px 15px; }
#screen-cat .scroll { padding: 12px 12px 30px; }
.cat-scroll { position: relative; margin: 6px 10px 0px; padding: 26px 16px 20px; background: rgb(255, 253, 247); border: 2px solid var(--ink); border-radius: 26px; box-shadow: rgba(29, 27, 58, 0.9) 5px 5px 0px; }
.cat-scroll::before { content: ""; position: absolute; inset: 9px; border: 2px dashed rgba(29, 27, 58, 0.16); border-radius: 19px; pointer-events: none; }
.cat-tape { position: absolute; top: 8px; width: 92px; height: 26px; border-radius: 3px; opacity: 0.95; pointer-events: none; z-index: 5; box-shadow: rgba(29, 27, 58, 0.12) 0px 1px 2px; }
.cat-tape-l { left: 26px; background: rgba(255, 106, 61, 0.5); transform: rotate(-3.5deg); }
.cat-tape-r { right: 26px; background: rgba(156, 196, 168, 0.62); transform: rotate(3deg); }
.cat-stage { box-shadow: rgba(29, 27, 58, 0.85) 3px 3px 0px; border-radius: 18px; }
.cat-hud { margin: 14px 4px 10px; }
.cat-food, .cat-tip, .cat-progress, .cat-tabs, .cat-grid, .cat-test { position: relative; }
.food-btn { border-radius: 16px; }
.cat-item { border-radius: 16px; }
.cat-stage { position: relative; overflow: hidden; }
#cat-tail { transform-box: view-box; transform-origin: 206px 264px; animation: 3.4s ease-in-out 0s infinite normal none running tailSway; }
@keyframes tailSway { 
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(7deg); }
}
#cat-eyes { transform-box: view-box; transform-origin: 150px 118px; transition: transform 0.09s, opacity 0.13s; }
.cat-stage.blink #cat-eyes { transform: scaleY(0.06); }
#cat-eyes-happy { opacity: 0; transition: opacity 0.14s; }
#cat-mouth-open { opacity: 0; transition: opacity 0.1s; }
.cat-stage.petting #cat-eyes-happy { opacity: 1; }
.cat-stage.petting #cat-eyes { opacity: 0; }
.cat-stage.petting #cat-head { animation: 1.1s ease 0s 1 normal none running nuzzle; }
.cat-stage.petting #cat-tail { animation: 0.5s ease-in-out 0s infinite normal none running happyTail; }
@keyframes nuzzle { 
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(5px) rotate(-3.5deg); }
  55% { transform: translateY(4px) rotate(3.5deg); }
  80% { transform: translateY(2px) rotate(-1.5deg); }
}
@keyframes happyTail { 
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(12deg); }
}
.cat-stage.feeding #cat-mouth-open { opacity: 1; }
.cat-stage.feeding #cat-mouth-closed { opacity: 0; }
.cat-stage.feeding #cat-eyes-happy { opacity: 1; }
.cat-stage.feeding #cat-eyes { opacity: 0; }
.cat-stage.chewing #cat-head { animation: 0.26s ease-in-out 0s 4 normal none running chew; }
@keyframes chew { 
  0%, 100% { transform: translateY(0px) scale(1, 1); }
  50% { transform: translateY(2.5px) scale(1.01, 0.99); }
}
.cat-teaser { position: absolute; right: -6px; top: -18px; width: 160px; height: 160px; opacity: 0; pointer-events: none; transform-origin: 100% 0px; }
.cat-stage.playing .cat-teaser { animation: 1.9s ease-in-out 0s 1 normal both running tease; }
@keyframes tease { 
  0% { opacity: 0; transform: rotate(-14deg) scale(0.9); }
  12% { opacity: 1; transform: rotate(6deg) scale(1); }
  32% { transform: rotate(-8deg); }
  52% { transform: rotate(10deg); }
  72% { transform: rotate(-3deg); }
  88% { opacity: 1; transform: rotate(5deg); }
  100% { opacity: 0; transform: rotate(0deg); }
}
.cat-stage.playing .pupils { animation: 1.9s ease-in-out 0s 1 normal none running look; }
@keyframes look { 
  0% { transform: translate(0px, 0px); }
  18% { transform: translate(-5px, 1px); }
  42% { transform: translate(5px, 0px); }
  66% { transform: translate(-4px, 2px); }
  86% { transform: translate(4px, -1px); }
  100% { transform: translate(0px, 0px); }
}
.cat-stage.playing #cat-head { animation: 1.9s ease-in-out 0s 1 normal none running watch; }
@keyframes watch { 
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg); }
  60% { transform: rotate(3deg); }
}
.cat-stage.pounce { animation: 0.6s cubic-bezier(0.2, 0.8, 0.3, 1) 0s 1 normal none running pounce; }
@keyframes pounce { 
  0% { transform: translateY(0px) scale(1, 1); }
  26% { transform: translateY(-16px) scale(0.96, 1.05); }
  52% { transform: translateY(0px) scale(1.05, 0.95); }
  74% { transform: translateY(-5px) scale(0.99, 1.01); }
  100% { transform: translateY(0px) scale(1, 1); }
}
.cat-fx { position: absolute; inset: 0px; pointer-events: none; overflow: hidden; }
.fx-item { position: absolute; font-size: 20px; opacity: 0; animation: 1.3s cubic-bezier(0.2, 0.8, 0.3, 1) 0s 1 normal forwards running fxUp; }
@keyframes fxUp { 
  0% { opacity: 0; transform: translateY(6px) scale(0.7); }
  20% { opacity: 1; transform: translateY(-4px) scale(1.05); }
  100% { opacity: 0; transform: translateY(-58px) scale(0.9) rotate(8deg); }
}
.fx-fish { position: absolute; right: 14px; top: 46%; font-size: 22px; opacity: 0; animation: 0.95s ease-in 0s 1 normal forwards running fishFly; }
@keyframes fishFly { 
  0% { opacity: 0; transform: translate(40px, -10px) rotate(12deg) scale(0.8); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(-96px, 26px) rotate(-8deg) scale(1); }
}
.cat-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0px 2px; }
.cat-act { appearance: none; border: 2px solid var(--ink); background: rgb(255, 253, 247); border-radius: var(--radius); padding: 10px 6px; font-style: inherit; font-variant: inherit; font-stretch: inherit; line-height: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-language-override: inherit; font-size: 13px; font-weight: 700; color: var(--ink); box-shadow: rgba(29, 27, 58, 0.85) 2px 2px 0px; cursor: pointer; font-family: var(--font-round, inherit); }
.cat-act:active { transform: translate(1px, 1px); box-shadow: rgba(29, 27, 58, 0.85) 1px 1px 0px; }
.cat-bubble { font-size: 13px; line-height: 1.45; font-weight: 600; letter-spacing: 0.01em; }
.cat-head-row { display: flex; align-items: center; justify-content: space-between; margin: 16px 2px 10px; }
.cat-title { font-weight: 800; font-size: 17px; color: var(--ink); letter-spacing: 0.02em; }
.cat-title i { font-style: normal; font-weight: 600; font-size: 13px; color: var(--ink-2); margin-left: 4px; }
.cat-icon-btn { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); background: rgb(255, 253, 247); font-size: 15px; line-height: 1; display: grid; place-items: center; box-shadow: rgba(29, 27, 58, 0.85) 2px 2px 0px; cursor: pointer; }
.cat-icon-btn:active { transform: translate(1px, 1px); box-shadow: rgba(29, 27, 58, 0.85) 1px 1px 0px; }
.cat-picks { display: flex; gap: 8px; margin: 0px 0px 12px; }
.cat-picks .cat-pick { flex: 1 1 0px; }
.cat-pick { appearance: none; cursor: pointer; font: inherit; border: 2px solid var(--ink); border-radius: 999px; background: rgb(255, 253, 247); padding: 9px 4px; display: grid; gap: 1px; text-align: center; box-shadow: rgba(29, 27, 58, 0.85) 2px 2px 0px; }
.cat-pick b { font-size: 14px; font-weight: 800; color: var(--ink); }
.cat-pick i { font-style: normal; font-size: 11.5px; color: var(--ink-2); }
.cat-pick.active { background: rgb(251, 217, 221); }
.cat-pick:active { transform: translate(1px, 1px); box-shadow: rgba(29, 27, 58, 0.85) 1px 1px 0px; }
.cat-bubble { position: relative; margin: 0px 0px 12px; min-height: 0px; padding: 10px 14px; background: rgb(255, 253, 247); border: 2px dashed var(--ink); border-radius: 16px; font-size: 13.5px; font-weight: 700; line-height: 1.45; text-align: center; color: var(--ink); opacity: 0; transition: opacity 0.18s; pointer-events: none; }
.cat-bubble::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 12px; height: 12px; margin-left: -6px; border-right: 2px dashed var(--ink); border-bottom: 2px dashed var(--ink); background: rgb(255, 253, 247); transform: rotate(45deg); }
.cat-bubble.show { opacity: 1; }
.cat-mood { display: grid; justify-items: center; gap: 6px; margin: 12px 0px; }
.cat-mood-label { font-size: 12.5px; color: var(--ink-2); letter-spacing: 0.08em; }
.cat-mood .cat-hearts { display: flex; gap: 6px; }
.cat-mood .cat-lv { font-size: 12px; color: var(--ink-2); }
.cat-actions .cat-act { border-radius: 999px; font-size: 13.5px; padding: 11px 4px; }
.cat-act.act-pet { background: rgb(251, 217, 221); }
.cat-act.act-feed { background: rgb(231, 222, 251); }
.cat-act.act-play { background: rgb(251, 227, 214); }
.cat-caption { text-align: center; font-size: 12px; color: var(--ink-2); margin: 10px 0px 0px; }
.cat-wardrobe { margin-top: 14px; border-top: 2px dashed rgba(29, 27, 58, 0.18); padding-top: 14px; }
.cat-wardrobe[hidden] { display: none; }
.cat-scroll .cat-stage { border-width: medium; border-style: none; border-color: currentcolor; border-image: none; box-shadow: none; background: transparent; border-radius: 0px; }
.cat-scroll { padding-bottom: 26px; }
#screen-cat .scroll { overflow-y: auto; }
.cat-scroll { height: auto; max-height: none; overflow: visible; }
.cat-scroll .cat-stage { overflow: visible; }
.cat-wardrobe { margin-top: 16px; }
.cat-wardrobe .cat-tip { margin-bottom: 2px; }
.cat-wardrobe-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cat-wardrobe-head b { font-size: 13px; }
.cat-unlock { position: fixed; inset: 0px; z-index: 90; display: grid; place-items: center; }
.cat-unlock[hidden] { display: none; }
.cat-unlock-mask { position: absolute; inset: 0px; background: rgba(29, 27, 58, 0.45); }
.cat-unlock-card { position: relative; width: min(300px, 78vw); padding: 20px 18px 16px; text-align: center; background: rgb(255, 253, 247); border: 2px solid var(--ink); border-radius: 22px; box-shadow: rgba(29, 27, 58, 0.9) 6px 6px 0px; overflow: hidden; transform: scale(0.86); opacity: 0; transition: transform 0.22s cubic-bezier(0.2, 1.4, 0.4, 1), opacity 0.18s; }
.cat-unlock.show .cat-unlock-card { transform: scale(1); opacity: 1; }
.cat-unlock-kicker { margin: 0px 0px 8px; font-size: 12.5px; font-weight: 800; color: var(--brand); letter-spacing: 0.12em; }
.cat-unlock-thumb { width: 108px; height: 108px; margin: 0px auto 8px; }
.cat-unlock-thumb svg { width: 100%; height: 100%; display: block; }
.cat-unlock-card h3 { margin: 0px 0px 4px; font-size: 17px; font-weight: 800; color: var(--ink); }
.cat-unlock-sub { margin: 0px 0px 14px; font-size: 12.5px; color: var(--ink-2); }
.cat-confetti { position: absolute; inset: 0px; pointer-events: none; overflow: hidden; z-index: 3; }
.cat-confetti i { position: absolute; top: -20px; display: block; border-radius: 2px; opacity: 0.95; animation-name: confettiFall; animation-timing-function: linear; animation-iteration-count: 1; animation-fill-mode: forwards; }
@keyframes confettiFall { 
  0% { transform: translateY(-10px) rotate(0deg); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translateY(82vh) rotate(520deg); opacity: 0; }
}
.pc-bar { display: none; }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  #screen-dictation.active { justify-content: center; align-items: center; padding: 28px 24px 24px; }
  #screen-dictation.active .topbar { width: 100%; max-width: 640px; }
  #screen-dictation.active .stage { flex: 0 0 auto; width: 100%; max-width: 640px; overflow: visible; padding: 10px 0px 4px; }
  #screen-dictation.active .keyboard { display: none; }
  #screen-dictation.active .pc-bar { display: block; width: 100%; max-width: 640px; padding-top: 6px; }
  #screen-dictation.active .pc-bar .btn { width: 100%; font-size: 16px; padding: 13px; }
  .pc-hint { margin: 10px 0px 0px; text-align: center; font-size: 12.5px; color: var(--ink-2); }
  #screen-dictation.active .feedback { max-width: 640px; }
  #screen-form-play.active .keyboard { border-radius: 0px 0px 18px 18px; }
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover:not(:disabled), .menu-card:hover, .pack:hover, .cat-pick:hover, .chip:hover { transform: translate(-1px, -1px); }
  .key:hover { background: rgb(255, 255, 255); }
}
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.pc-bar-row { display: flex; gap: 8px; }
.pc-bar-row .btn { flex: 1 1 0px; font-size: 15px; padding: 12px; }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  #screen-form-play.active:not(.paper) .keyboard { display: none; }
  #screen-form-play.active:not(.paper) .pc-bar { display: block; width: 100%; max-width: 640px; margin: 0px auto; padding: 8px 14px 14px; }
  #screen-form-play.active:not(.paper) #fp-keyboard { display: none; }
  #screen-form-play.active .fp-scroll, #screen-form-play.active #fp-stage { max-width: 720px; margin: 0px auto; }
}
.hist-summary { font-size: 12.5px; color: var(--ink-2); margin: 2px 0px 10px; }
.hist-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.hist-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: rgb(255, 255, 255); border: 2px solid var(--ink); border-radius: 16px; }
.hist-ic { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-size: 16px; background: rgb(251, 217, 221); }
.hist-ic.form { background: rgb(231, 222, 251); }
.hist-main { flex: 1 1 0%; min-width: 0px; }
.hist-name { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-size: 14.5px; font-weight: 800; line-height: 1.35; word-break: break-word; }
.hist-tag { flex: 0 0 auto; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; border: 1.5px solid var(--ink); background: rgb(255, 242, 223); }
.hist-meta { margin-top: 2px; font-size: 11.5px; color: var(--ink-2); }
.hist-score { flex: 0 0 auto; text-align: right; font-size: 19px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--bad); }
.hist-score small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--ink-3); }
.hist-score.s90 { color: var(--ok); }
.hist-score.s60 { color: rgb(224, 138, 46); }
.hist-score.s0 { color: var(--bad); }
.setup-link { margin-top: 14px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: var(--radius); background: rgb(255, 255, 255); font-style: inherit; font-variant: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-language-override: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.setup-link:active { transform: translate(1px, 1px); }
.setup-link-sub { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.hist-group { margin: 14px 2px 6px; font-size: 12px; font-weight: 800; color: var(--ink-3); letter-spacing: 0.04em; }
.hist-group:first-child { margin-top: 2px; }
#hist-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hist-sum-text { flex: 1 1 0%; min-width: 0px; }
.hist-spark { flex: 0 0 auto; width: 132px; height: 36px; }
.hist-spark .sp-area { fill: rgba(255, 106, 61, 0.12); }
.hist-spark .sp-line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.hist-spark circle { fill: var(--brand); }
.hist-item { cursor: pointer; }
.hist-item:active { transform: translate(1px, 1px); }
.hist-tag.wrong { background: rgb(255, 233, 233); border-color: var(--bad); color: var(--bad); }
.hd-card { width: min(430px, 92vw); }
.hd-meta { margin: 0px 0px 10px; font-size: 12px; color: var(--ink-2); }
.hd-list { max-height: 46vh; overflow-y: auto; }
.hd-all { margin: 8px 0px 4px; font-size: 14px; font-weight: 700; color: var(--ok); }
.hd-row { padding: 9px 0px; border-bottom: 1px dashed var(--line); }
.hd-row:last-child { border-bottom-width: medium; border-bottom-style: none; border-bottom-color: currentcolor; }
.hd-k { font-size: 14px; font-weight: 800; margin-bottom: 3px; }
.hd-v { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12.5px; }
.hd-zh { color: var(--ink-3); margin-right: 2px; }
.hd-bad { color: var(--bad); font-family: var(--mono); text-decoration: line-through 1.5px; }
.hd-arrow { color: var(--ink-3); }
.hd-good { color: var(--ok); font-family: var(--mono); font-weight: 700; }
#hist-detail .setup-title { text-align: left; }
.hd-meta, .hd-list { text-align: left; }
.hd-card .setup-head { justify-content: space-between; }
.hd-k small { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.hd-bad { text-decoration: none; }
.hd-lb { flex: 0 0 auto; width: 62px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
#screen-menu .voice-test .mini { font-size: 12px; }
#screen-menu .book-btn { font-size: 14px; }
.btn:not(:disabled):active, .chip:active, .pack:active, .book-btn:active { transition: transform 0.08s, box-shadow 0.08s; transform: translateY(3px) !important; box-shadow: 0 0 0 var(--ink-line) !important; }
.key:not(:disabled):active { transform: translateY(2px); box-shadow: none; }
.switch { transition: background 0.18s, transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1); }
.switch:active { transform: scaleX(1.12); }
#cat-unlock .cat-unlock-card, #cat-unlock .unlock-card, #cat-unlock > div { animation: 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) 0s 1 normal both running ai-pop; }
@keyframes ai-pop { 
  0% { transform: scale(0.9) translateY(10px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
@keyframes ai-shake { 
  0%, 100% { transform: none; }
  20% { transform: translateX(-4px); }
  45% { transform: translateX(4px); }
  70% { transform: translateX(-2px); }
}
.answer.shake { animation: 0.22s ease 0s 1 normal none running ai-shake; }
@media (prefers-reduced-motion: reduce) {
  .btn:active, .chip:active, .pack:active, .book-btn:active { transform: none !important; }
  #cat-unlock > div { animation: auto ease 0s 1 normal none running none; }
  .answer.shake { animation: auto ease 0s 1 normal none running none; }
}
@keyframes ai-tap { 
  0% { transform: none; box-shadow: var(--shadow); }
  35% { transform: translateY(3px); box-shadow: 0 0 0 var(--ink-line); }
  100% { transform: none; box-shadow: var(--shadow); }
}
@keyframes ai-tap-key { 
  0% { transform: none; }
  40% { transform: translateY(2px); }
  100% { transform: none; }
}
@keyframes ai-tap-switch { 
  0% { transform: none; }
  40% { transform: scaleX(1.14); }
  100% { transform: none; }
}
.is-tap { animation: 0.2s cubic-bezier(0.4, 0, 0.6, 1) 0s 1 normal none running ai-tap; }
.key.is-tap { animation: 0.16s ease 0s 1 normal none running ai-tap-key; }
.switch.is-tap { animation: 0.18s cubic-bezier(0.34, 1.56, 0.64, 1) 0s 1 normal none running ai-tap-switch; }
@media (prefers-reduced-motion: reduce) {
  .is-tap, .key.is-tap, .switch.is-tap { animation: auto ease 0s 1 normal none running none; }
}
.key.backspace { font-size: 16px; }
.kb-row .key { padding: 0px 2px; }
.tile.is-edit { background: rgb(255, 255, 255); color: var(--brand); outline: 2.5px solid var(--brand); outline-offset: 1px; animation: 1s steps(2, start) 0s infinite normal none running ai-caret; }
@keyframes ai-caret { 
  50% { outline-color: var(--brand-soft); }
}
@media (prefers-reduced-motion: reduce) {
  .tile.is-edit { animation: auto ease 0s 1 normal none running none; }
}
.kb-row.digit-row { margin-top: 6px; }
.kb-row.digit-row .key.digit { font-size: 16px; font-weight: 700; color: var(--ink); background: rgb(255, 253, 247); }
.kb-row.digit-row .key.digit:active { transform: translateY(2px); box-shadow: none; }
.bk-bank { position: sticky; top: 0px; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px; background: var(--paper, #FFFDF7); border-bottom: 2px solid var(--ink, var(--ink-line)); }
.bk-bank.is-over { background: var(--brand-soft, #FFE8DC); }
.bk-chip { min-height: 40px; padding: 0px 14px; border: 2px solid var(--ink, var(--ink-line)); border-radius: 12px; background: rgb(255, 255, 255); font-style: inherit; font-variant: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-language-override: inherit; font-size: 15px; font-weight: 700; color: var(--ink, var(--ink-line)); box-shadow: 0 3px 0 var(--ink, var(--ink-line)); touch-action: none; user-select: none; cursor: grab; }
.bk-chip.is-used { opacity: 0.28; box-shadow: none; cursor: default; }
.bk-chip.is-held { background: var(--brand-soft, #FFE8DC); border-color: var(--brand, var(--brand)); }
.bk-chip:active { transform: translateY(2px); box-shadow: none; }
.bk-scroll { padding-bottom: 96px; }
.bk-passage { padding: 14px 16px 24px; }
.bk-text { margin: 0px; font-size: 16.5px; line-height: 2.05; color: var(--ink, var(--ink-line)); }
.bk-slot { display: inline-flex; align-items: center; justify-content: center; min-width: 92px; height: 34px; margin: 0px 4px; padding: 0px 8px; vertical-align: middle; border-top-width: medium; border-right-width: medium; border-left-width: medium; border-top-style: none; border-right-style: none; border-left-style: none; border-top-color: currentcolor; border-right-color: currentcolor; border-left-color: currentcolor; border-image: none; border-bottom: 2px solid var(--ink, var(--ink-line)); border-radius: 6px 6px 0px 0px; background: var(--brand-soft, #FFE8DC); font-style: inherit; font-variant: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-language-override: inherit; font-size: 15.5px; font-weight: 700; color: var(--ink, var(--ink-line)); touch-action: none; user-select: none; }
.bk-slot.is-filled { cursor: grab; }
.bk-slot.is-target { box-shadow: inset 0 0 0 2px var(--brand, var(--brand)); }
.bk-slot.is-swap { box-shadow: rgb(185, 179, 216) 0px 0px 0px 2px inset; }
.bk-slot.is-over { box-shadow: inset 0 0 0 3px var(--brand, var(--brand)); background: rgb(255, 217, 198); }
.bk-slot.is-ok { background: rgb(221, 242, 225); border-bottom-color: rgb(46, 125, 79); color: rgb(31, 107, 63); }
.bk-slot.is-bad { background: rgb(251, 224, 224); border-bottom-color: rgb(192, 57, 43); color: rgb(163, 43, 32); }
.bk-ans { display: inline-block; margin: 0px 6px 0px 2px; padding: 0px 6px; font-size: 14px; font-weight: 700; color: rgb(46, 125, 79); vertical-align: middle; }
.bk-explain { margin: 18px 0px 0px; padding: 0px; list-style: none; font-size: 14px; line-height: 1.7; color: var(--ink-2, var(--ink-2)); }
.bk-explain li { padding: 6px 0px; border-top: 1px dashed var(--line, #E8E2D6); }
.bk-explain li.bad { color: rgb(163, 43, 32); }
.bk-bottom { position: fixed; left: 0px; right: 0px; bottom: 0px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg, #FFF4E3); border-top: 2px solid var(--ink, var(--ink-line)); z-index: 6; }
.bk-ghost { pointer-events: none; position: fixed; left: 0px; top: 0px; z-index: 999; padding: 8px 14px; border: 2px solid var(--ink, var(--ink-line)); border-radius: 12px; background: rgb(255, 255, 255); font-size: 15px; font-weight: 700; color: var(--ink, var(--ink-line)); box-shadow: rgba(29, 27, 58, 0.35) 0px 6px 0px; pointer-events: none; transform-origin: center center; }
body.bk-dragging { overflow: hidden; }
body.bk-dragging .bk-scroll { overflow: hidden; }
.bk-mask { position: fixed; inset: 0px; z-index: 900; display: flex; align-items: center; justify-content: center; background: rgba(29, 27, 58, 0.45); padding: 20px; }
.bk-sheet { width: 100%; max-width: 340px; padding: 26px 20px 20px; border: 2px solid var(--ink, var(--ink-line)); border-radius: 22px; background: var(--paper, #FFFDF7); box-shadow: 6px 6px 0 var(--ink, var(--ink-line)); text-align: center; }
.bk-rate { font-size: 46px; font-weight: 800; color: var(--brand, var(--brand)); line-height: 1.1; }
.bk-sum { margin: 10px 0px 18px; font-size: 14px; color: var(--ink-2, var(--ink-2)); }
.bk-card .pack-meta { display: block; margin-top: 2px; }
.bk-bottom { display: flex; gap: 10px; }
.bk-bottom .btn { flex: 1 1 0%; }
.bk-bottom .btn[hidden] { display: none; }

/* ===== 选词填空 · 紧凑版（2026-11-21，压缩左右留白与顶部空白） ===== */
#screen-banked .topbar { padding: 4px 8px; padding-top: calc(4px + env(safe-area-inset-top)); }
#screen-banked .topbar .counter { font-size: 15px; }
#screen-banked .topbar .icon-btn { width: 34px; height: 34px; }
.bk-bank { padding: 6px 8px; gap: 6px; }
.bk-chip { min-height: 36px; padding: 0 11px; font-size: 14.5px; border-radius: 10px; box-shadow: 0 2px 0 var(--ink, var(--ink-line)); }
.bk-scroll { padding: 6px 8px calc(92px + env(safe-area-inset-bottom)); }
.bk-passage { padding: 4px 8px 16px; }
.bk-text { font-size: 16px; line-height: 1.9; }
.bk-slot { min-width: 84px; }
.bk-ans { font-size: 12.5px; }

/* 选词填空 · 解析态：错词划掉 + × ，正确词 + ✔，全部留在空格里不打断正文 */
.bk-slot { white-space: nowrap; gap: 5px; }
.bk-slot.is-bad, .bk-slot.is-ok { padding: 0 8px; }
.bk-you { color: #A32B20; text-decoration: line-through; text-decoration-thickness: 2px; opacity: .85; font-weight: 600; }
.bk-slot.is-bad .bk-corr { margin-left: 8px; }
.bk-x { color: #C0392B; text-decoration: none; font-weight: 800; margin-left: 2px; font-size: .95em; }
.bk-corr { color: #1F6B3F; font-weight: 800; display: inline-flex; align-items: center; }
.bk-ok { color: #2E7D4F; font-weight: 800; margin-left: 3px; font-size: .92em; }

/* icons.js */
.has-ic{display:inline-flex;align-items:center;gap:7px}
.has-ic .ic{flex:none}
.menu-ico.has-ic,.cat-ico.has-ic{justify-content:center}
.ic-tx{line-height:1.2}

/* 底行三列：空格严格居中（1fr 2fr 1fr） */
.kb-row.kb-bottom-3 { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 6px; align-items: stretch; }
.kb-row.kb-bottom-3 .key { width: auto; }
.key.backspace svg { width: 22px; height: 22px; display: block; margin: 0 auto; }
.key.backspace { display: inline-flex; align-items: center; justify-content: center; }

/* 键盘收起/展开 */
.kb-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  margin: 6px auto 4px; padding: 5px 14px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--card); color: var(--ink-2); font: inherit; font-size: 12.5px; font-weight: 700;
  box-shadow: 0 2px 0 var(--ink); cursor: pointer; }
.kb-toggle:active { transform: translateY(2px); box-shadow: 0 0 0 var(--ink); }
.kb-toggle-ic { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid currentColor; transition: transform .18s ease; }
body.kb-collapsed .kb-toggle-ic { transform: rotate(180deg); }
body.kb-collapsed #keyboard { display: none; }
body.kb-collapsed #stage { padding-bottom: 8px; }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) { .kb-toggle { display: none; } }

/* 听力填空键盘收起/展开 */
body.fp-kb-collapsed #fp-keyboard { display: none; }
body.fp-kb-collapsed #fp-stage { padding-bottom: 8px; }

body.fp-kb-collapsed #fp-kb-toggle .kb-toggle-ic,
.kb-toggle[aria-expanded="false"] .kb-toggle-ic { transform: rotate(180deg); }

/* ============ PC 端外壳（≥1024px）：左栏导航 + 右侧上下文面板 ============ */
.pc-nav, .pc-side { display: none; }

@media (min-width: 1024px) {
  body.pc-on { padding-left: 236px; }
  body.pc-on .screen.active { margin-right: 300px; max-width: calc(100% - 300px); }
  body.pc-on .screen.active > .topbar { padding-left: 26px; }

  .pc-nav {
    display: flex; flex-direction: column; gap: 6px;
    position: fixed; left: 0; top: 0; bottom: 0; width: 236px; z-index: 40;
    padding: 18px 14px; background: var(--card);
    border-right: 2px solid var(--ink);
  }
  .pc-nav .pc-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; margin: 2px 4px 18px; }
  .pc-nav .pc-logo .dot { width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft, #FFE3D5); font-size: 17px; }
  .pc-nav-i {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 10px 12px; border-radius: 12px; border: 2px solid transparent;
    background: transparent; color: var(--ink); font: inherit; font-size: 14.5px;
    text-align: left; cursor: pointer;
  }
  .pc-nav-i:hover { background: #F5EEDC; }
  .pc-nav-i:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; }
  .pc-nav-i.on { background: #FFE3D5; border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }

  .pc-side {
    display: flex; flex-direction: column; gap: 10px;
    position: fixed; right: 0; top: 0; bottom: 0; width: 300px; z-index: 35;
    padding: 18px 16px; background: var(--card); border-left: 2px solid var(--ink);
    overflow: auto;
  }
  .pc-side[hidden] { display: none; }
  .pc-side-h { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: var(--ink-2, var(--ink-2)); padding: 4px 2px 8px; }
  .pc-list { display: flex; flex-direction: column; gap: 6px; }
  .pc-row {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px; border-radius: 10px; border: 2px solid #E7DCC6; background: #FFFDF7;
    font-size: 13.5px;
  }
  .pc-row.ok { border-color: #BFDCC7; background: #F1F8F3; }
  .pc-row.bad { border-color: #F3C4B6; background: #FFF2ED; }
  .pc-n { width: 20px; text-align: center; color: var(--ink-2, var(--ink-2)); font-variant-numeric: tabular-nums; }
  .pc-w { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pc-a { color: #B4453F; text-decoration: line-through; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pc-m { width: 16px; text-align: center; font-weight: 700; }
  .pc-row.ok .pc-m { color: #1F6B3F; }
  .pc-row.bad .pc-m { color: #B4453F; }

  /* 主区放大、减少底部留白 */
  body.pc-on #screen-dictation .stage { max-width: 720px; margin: 0 auto; padding-top: 8px; }
  body.pc-on #screen-dictation .prompt-card { padding: 26px 24px 20px; }
  body.pc-on #screen-dictation .answer { min-height: 86px; }
  body.pc-on #screen-dictation .pc-bar { position: static; width: min(720px, 100%); margin: 6px auto 0; padding-bottom: 14px; }
  body.pc-on #screen-form-play #fp-stage { max-width: 760px; margin: 0 auto; font-size: 16.5px; }
  body.pc-on #screen-dictation .stage, body.pc-on #screen-form-play #fp-stage { justify-content: center; }
  body.pc-on #screen-dictation .feedback { margin-bottom: 8px; }
  body.pc-on .pc-row:not(.ok):not(.bad) .pc-a { color: var(--ink-2); text-decoration: none; }
}

/* ---- PC：其余页面（列表/猫窝/老师端）加宽与多列 ---- */
@media (min-width: 1024px) {
  body.pc-on #screen-menu .scroll { max-width: 940px; margin: 0 auto; }
  body.pc-on .screen.active .scroll { padding-left: 0; padding-right: 0; }
  body.pc-on .home-actions { max-width: 560px; }
  body.pc-on #screen-mastered .scroll,
  body.pc-on #screen-wrongbook .scroll,
  body.pc-on #screen-forms .scroll,
  body.pc-on #screen-banked-list .scroll,
  body.pc-on #screen-cat .scroll { max-width: 1000px; margin: 0 auto; }
  body.pc-on #screen-teacher .scroll { max-width: 1140px; margin: 0 auto; }

  body.pc-on .wb-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
  body.pc-on #form-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  body.pc-on #cat-wardrobe { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.pc-on .kpi-row, body.pc-on .tch-kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.pc-on #screen-cat .cat-card { max-width: 720px; margin: 0 auto; }
}

/* ---- PC：右栏补充样式 + 页面内动作条限宽 ---- */
@media (min-width: 1024px) {
  body.pc-on .home-actions { max-width: 560px; }
  body.pc-on .pc-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  body.pc-on .pc-kv > div {
    border: 2px solid #E7DCC6; border-radius: 12px; background: #FFFDF7;
    padding: 10px 8px; text-align: center;
  }
  body.pc-on .pc-kv b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
  body.pc-on .pc-kv span { font-size: 12px; color: var(--ink-2); }
  body.pc-on .pc-tip {
    margin-top: 10px; font-size: 12.5px; line-height: 1.7; color: var(--ink-2);
    border: 2px dashed #E7DCC6; border-radius: 12px; padding: 10px 12px; background: #FFFDF7;
  }
  body.pc-on #cat-wardrobe.in-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  body.pc-on #cat-wardrobe.in-side .ward-tab { font-size: 12px; }
  body.pc-on #cat-wardrobe.in-side .ward-item { padding: 6px; }
  body.pc-on #cat-wardrobe.in-side .ward-item span { font-size: 11.5px; }
}

/* ---- PC 右栏里的猫窝仓库：横条改竖排 ---- */
@media (min-width: 1024px) {
  body.pc-on #cat-wardrobe.in-side { display: block; overflow: visible; padding: 0; border: 0; background: transparent; }
  body.pc-on #cat-wardrobe.in-side .cat-food { margin: 0 0 8px; }
  body.pc-on #cat-wardrobe.in-side .food-btn { width: 100%; }
  body.pc-on #cat-wardrobe.in-side .cat-tip { font-size: 11.5px; line-height: 1.6; margin: 6px 0 10px; }
  body.pc-on #cat-wardrobe.in-side .cat-progress { margin-bottom: 10px; }
  body.pc-on #cat-wardrobe.in-side .cat-tabs { flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
  body.pc-on #cat-wardrobe.in-side .ward-list,
  body.pc-on #cat-wardrobe.in-side .cat-ward-list,
  body.pc-on #cat-wardrobe.in-side .ward-grid {
    display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px; overflow: visible !important; padding: 0;
  }
  body.pc-on #cat-wardrobe.in-side .ward-item { min-width: 0; }
  body.pc-on #cat-wardrobe.in-side > button,
  body.pc-on #cat-wardrobe.in-side .cat-actions { width: 100%; margin-top: 10px; }
}

/* ---- PC：班级数据用表格 ---- */
.tch-table { display: none; }
@media (min-width: 1024px) {
  body.pc-on .tch-table { display: block; }
  body.pc-on .tch-cards { display: none; }
  body.pc-on .tch-tr {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) 92px 116px 104px 104px 200px;
    gap: 10px; align-items: center;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
  }
  body.pc-on .tch-tr:last-child { border-bottom: 0; }
  body.pc-on .tch-th {
    font-size: 12px; letter-spacing: .04em; color: var(--ink-2);
    background: #FFF3E2; border-radius: 10px 10px 0 0;
    border-bottom: 2px solid var(--ink);
  }
  body.pc-on .tch-td-name { font-weight: 700; }
  body.pc-on .tch-td-diff { color: var(--ink-2); font-size: 12.5px; }
  body.pc-on .tch-table { border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: #FFFDF7; box-shadow: 4px 4px 0 rgba(29,27,58,.16); }
}

/* 右栏里的 KPI 卡搬到表格后就不再重复显示，避免空框 */
body.pc-on #pc-side .kpi { display: none; }
body.pc-on #pc-side .pc-tip { margin-top: 6px; }

body.pc-on #pc-side .pc-kv-1 {
  border: 2px solid var(--ink); border-radius: 10px; background: #FFFDF7;
  padding: 10px 12px; margin-bottom: 8px; font-size: 13px; line-height: 1.5;
}

/* PC：表格页不重复显示大 KPI 卡（已搬到右栏概览） */
body.pc-on #screen-teacher .kpi { display: none; }
body.pc-on #screen-teacher .kpi-row,
body.pc-on #screen-teacher .tch-kpis { display: none; }

/* ---- PC 密度与比例：整体放大 + 按钮不拉长 ---- */
@media (min-width: 1024px) {
  body.pc-on { zoom: 1.06; }
  body.pc-on .btn { width: auto; max-width: 380px; }
  body.pc-on .btn.big { min-width: 220px; height: 56px; font-size: 17px; }
  body.pc-on .home-actions { display: flex; justify-content: center; gap: 12px; }
  body.pc-on .home-actions .btn { min-width: 200px; }
  body.pc-on #screen-dictation .stage,
  body.pc-on #screen-form-play .stage { max-width: 760px; }
  body.pc-on .card-title, body.pc-on #screen-menu h1 { letter-spacing: .01em; }
  body.pc-on .menu-card { min-height: 104px; }
  body.pc-on .pc-side { font-size: 13.5px; }
  body.pc-on .pc-row { padding: 9px 11px; font-size: 13.5px; }
}
@media (min-width: 1440px) {
  body.pc-on { zoom: 1.1; }
  body.pc-on #screen-dictation .stage,
  body.pc-on #screen-form-play .stage { max-width: 800px; }
}

/* ---- PC 第三轮：再放大、按钮居中、返回改成桌面样式 ---- */
@media (min-width: 1024px) {
  body.pc-on { zoom: 1.15; }
  body.pc-on .btn { display: block; margin-left: auto; margin-right: auto; }
  body.pc-on .home-actions { justify-content: center; }
  body.pc-on .home-actions .btn { margin: 0; }
  body.pc-on #screen-dictation .bottom .btn,
  body.pc-on .stage > .btn { margin-left: auto; margin-right: auto; }
  /* 返回：圆钮 → 文字片 */
  body.pc-on .topbar .icon-btn,
  body.pc-on .topbar-inline .icon-btn {
    width: auto; height: 38px; min-width: 38px; padding: 0 14px;
    border-radius: 12px; font-size: 15px; font-weight: 700;
  }
  body.pc-on #btn-back::after, body.pc-on #pc-back::after { content: " 返回"; }
  body.pc-on .topbar { padding-left: 0; }
}
@media (min-width: 1440px) { body.pc-on { zoom: 1.2; } }

/* B 方案：桌面端隐藏页内返回/关闭，导航统一走左栏 */
@media (min-width: 1024px) {
  body.pc-on .screen .topbar .icon-btn,
  body.pc-on .screen .topbar .back-btn,
  body.pc-on .screen .pg-quit { display: none !important; }
  body.pc-on .screen .topbar { padding-left: 0; }
  body.pc-on .screen .topbar h1, body.pc-on .screen .topbar .title { margin-left: 0; }
}

/* PC：生词本/熟词本卡片对齐（3 列等宽）与动作条收窄 */
@media (min-width: 1024px) {
  body.pc-on #wb-list, body.pc-on #mb-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 14px;
    align-items: start;
  }
  body.pc-on #wb-list .wb-item, body.pc-on #mb-list .wb-item {
    width: auto;
    min-width: 0;
    height: 100%;
    align-items: flex-start;
  }
  body.pc-on .book-actions { max-width: 680px; margin-left: auto; margin-right: auto; }
  body.pc-on .book-actions .btn { flex: 1 1 0; }
  body.pc-on #screen-wrongbook .pager, body.pc-on #screen-mastered .pager { max-width: 420px; margin-left: auto; margin-right: auto; }
}

/* 选词填空：词库选项居中 */
.bk-bank { justify-content: center; }
@media (min-width: 1024px) {
  body.pc-on .bk-bank { justify-content: center; padding: 12px 0; gap: 10px; }
  body.pc-on #bk-bank { max-width: 860px; margin-left: auto; margin-right: auto; }
  body.pc-on .bk-bottom { display: flex; justify-content: center; gap: 12px; }
  body.pc-on .bk-bottom .btn { flex: 0 1 auto; min-width: 220px; }
}

/* 选词填空右栏：空位导航 */
.pc-row.pc-slot { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; }
.pc-row.pc-slot.is-done { background: var(--ok-soft, #E4F4EA); }
.pc-row.pc-slot.is-done .pc-row-t { color: var(--ok, #1F8A4C); font-weight: 700; }

/* 主页两本子按钮：收敛成低调的一对 */
.menu-extra .btn { padding: 13px 10px; font-size: 16px; font-weight: 700; border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink); background: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; }
.menu-extra .btn .badge { min-width: 22px; height: 22px; line-height: 22px; font-size: 12.5px;
  background: var(--brand); color: #fff; box-shadow: none; padding: 0 6px; }
.menu-extra .btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
@media (min-width: 1024px) {
  body.pc-on .menu-extra { display: flex; justify-content: center; gap: 16px; max-width: 620px; margin: 0 auto; }
  body.pc-on .menu-extra .btn { flex: 0 1 280px; }
}

/* PC：左栏已有熟词本/生词本入口，主页不再重复 */
@media (min-width: 1024px) {
  body.pc-on .menu-extra { display: none !important; }
}

/* PC：设置入口只在左栏，主页底部的文字链收起 */
@media (min-width: 1024px) {
  body.pc-on #btn-setup { display: none !important; }
}

/* PC：设置页两枚主按钮同宽居中（开始默写 / 生词本） */
@media (min-width: 1024px) {
  body.pc-on .home-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
  body.pc-on .home-actions .btn { width: 100%; max-width: 460px; min-width: 0; margin: 0; }
}

/* 猫窝：三套可替换背景（纸娃娃的一部分） */
.cat-stage[data-bg="bg-day"] {
  background:
    radial-gradient(circle at 84% 16%, #FFE9A8 0 9%, rgba(255,233,168,0) 10%),
    radial-gradient(circle at 84% 16%, rgba(255,216,120,.45) 0 15%, rgba(255,216,120,0) 16%),
    linear-gradient(180deg, #E7F3FB 0%, #FDF1DE 72%);
}
.cat-stage[data-bg="bg-night"] {
  background:
    radial-gradient(1.6px 1.6px at 14% 18%, #ffffff 50%, rgba(255,255,255,0) 51%),
    radial-gradient(1.3px 1.3px at 32% 10%, #ffffff 50%, rgba(255,255,255,0) 51%),
    radial-gradient(1.7px 1.7px at 58% 22%, #ffffff 50%, rgba(255,255,255,0) 51%),
    radial-gradient(1.2px 1.2px at 76% 12%, #ffffff 50%, rgba(255,255,255,0) 51%),
    radial-gradient(1.4px 1.4px at 88% 30%, #ffffff 50%, rgba(255,255,255,0) 51%),
    radial-gradient(circle at 18% 26%, #FFF3C4 0 7%, rgba(255,243,196,0) 8%),
    linear-gradient(180deg, #26314F 0%, #4A5678 78%);
}
.cat-stage[data-bg="bg-garden"] {
  background:
    radial-gradient(circle at 22% 88%, #A7CDB0 0 22%, rgba(167,205,176,0) 23%),
    radial-gradient(circle at 78% 92%, #B9D8BE 0 18%, rgba(185,216,190,0) 19%),
    radial-gradient(circle at 84% 16%, #FFF0B8 0 10%, rgba(255,240,184,0) 11%),
    linear-gradient(180deg, #EAF6E7 0%, #FFF6E2 74%);
}

/* 背景缩略图 */
.bg-sw { width: 100%; height: 100%; border-radius: 10px; border: 2px solid var(--ink); }
.bg-sw.bg-day { background: radial-gradient(circle at 80% 20%, #FFE9A8 0 16%, #E7F3FB 40%, #FDF1DE 100%); }
.bg-sw.bg-night { background: radial-gradient(1.5px 1.5px at 24% 30%, #fff 50%, rgba(255,255,255,0) 51%), radial-gradient(1.5px 1.5px at 62% 18%, #fff 50%, rgba(255,255,255,0) 51%), linear-gradient(180deg, #26314F, #4A5678); }
.bg-sw.bg-garden { background: radial-gradient(circle at 70% 78%, #A7CDB0 0 26%, rgba(167,205,176,0) 27%), linear-gradient(180deg, #EAF6E7, #FFF6E2); }

/* 背景舞台：保持圆角与内框 */
.cat-stage[data-bg] { border-radius: 16px; overflow: hidden; }

/* 变体拼法提示（practise / practice 这类） */
.flash-note{margin-top:8px;font-size:12.5px;color:#8B87A8;text-align:center}
.flash-note b{color:var(--ink-line)}


/* m15882: 列表一行一篇 */
#form-list, #bk-list { grid-template-columns: 1fr; gap: 7px; }
#form-list .pack, #bk-list .pack {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
}
#form-list .pack-name, #bk-list .pack-name {
  display: block;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  font-size: 14px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pack-state {
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}
.pack-state.todo { color: var(--ink-3); background: var(--track); }
.pack-state.good { color: #1f7a5a; background: rgba(58, 160, 122, 0.14); }
.pack-state.mid { color: #8f5c12; background: var(--warn-soft); }
.pack-state.bad { color: #b1412f; background: rgba(233, 90, 63, 0.14); }

/* 练习态只能听一遍：听过之后按钮显示「已听」 */
.pg-play.used { background: var(--track); color: var(--ink-2); font-size: 10.5px; letter-spacing: 0.5px; padding-left: 0; width: auto; min-width: 46px; padding: 0px 9px; border-radius: 999px; }

body.pc-on #form-list, body.pc-on #bk-list { grid-template-columns: 1fr; gap: 8px; }

/* 菜单大图标（44px，来自 img/icons 的 SVG sprite） */
.ico-lg { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: 0 0 auto; }
.ico-lg > svg.ic { width: 44px; height: 44px; display: block; }

/* 底部工具行：语音测试 + 设置 收进一行，压掉一行高度 */
.voice-test { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px 10px; padding-top:2px }
.voice-test .mini { padding:6px 12px; font-size:12.5px }
.voice-test .link-btn { font-size:12.5px; padding:6px 4px }
.voice-test .voice-status { flex-basis:100%; margin:0; text-align:center }
.setup-line { display:block; text-align:center; margin:14px 0 0 }

/* 首屏压缩：6 个 44px 图标接入后，把整屏压回 844 */
:root { --hero-logo-h: 88px; --hero-word-h: 42px }
.hero.brand .brand-logo { height: var(--hero-logo-h); margin-bottom: 6px }
.hero.brand .brand-wordmark { height: var(--hero-word-h); margin-bottom: 2px }
.hero.brand { padding-top: 10px; padding-bottom: 16px }
.menu-card { padding: 11px 16px; margin-bottom: 8px }
.book-btn { padding-top: 9px; padding-bottom: 9px }
.footnote { line-height: 1.45; font-size: 11.5px; margin-top: 8px }
.voice-test .mini { padding: 4px 10px; font-size: 12px }

/* 首屏再压 46px */
:root { --hero-logo-h: 76px; --hero-word-h: 38px }
.hero.brand { padding-top: 6px; padding-bottom: 10px }
.menu-card { padding: 9px 16px; margin-bottom: 7px }
.footnote { line-height: 1.4; font-size: 11px; margin-top: 6px }

/* PC 菜单卡：取消 104px 的 min-height，与移动端节奏一致 */
body.pc-on .menu-card { min-height: 0; padding: 12px 18px; margin-bottom: 10px }
body.pc-on #screen-menu .menu-card { border-radius: 16px }

/* 行内小图标（设置按钮等） */
.ico-inline { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; vertical-align: -3px; margin-right: 2px; }
.ico-inline > svg.ic { width: 18px; height: 18px; display: block; }
/* 设置弹层里的「测试声音」 */
.setup-voice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 10px 0 4px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); }
.setup-voice .sv-hint { font-size: 11.5px; color: var(--ink-2); }
.setup-voice .voice-status { flex: 1 0 100%; margin-top: 0; }
.setup-voice .voice-status { margin-top: 6px; font-size: 11.5px; }


/* ---- 首页功能卡：状态贴 + 细进度 + 首卡胶带（js/07-menu-status.js 注入） ---- */
.menu-card { position: relative; padding: 11px 16px 14px; margin-bottom: 8px; }
.menu-card.has-chip .menu-name { padding-right: 72px; }
.menu-card .menu-name,
.menu-card .menu-desc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-state[hidden] { display: none; }

.mc-state {
  position: absolute; top: -9px; right: 12px; transform: rotate(-3deg);
  padding: 2px 9px; border: 2px solid var(--ink-line); border-radius: 8px;
  background: var(--card); box-shadow: 2px 2px 0 var(--ink-line);
  font: 800 11px/1.55 var(--font-round); white-space: nowrap; pointer-events: none;
}
.mc-state.tone-ok { color: var(--accent); }
.mc-state.tone-info { color: var(--info); }
.mc-state.tone-brand { color: var(--brand-deep); }

.mc-bar {
  position: absolute; left: 16px; right: 16px; bottom: 6px; height: 3px;
  border-radius: 3px; background: var(--track); overflow: hidden; pointer-events: none;
}
.mc-bar > i { display: block; height: 100%; width: 0; border-radius: 3px; transition: width .3s ease; }
.mc-bar > i.fill-ok { background: var(--accent); }
.mc-bar > i.fill-brand { background: var(--brand); }
.mc-bar[hidden] { display: none; }

.menu-card.has-tape::before {
  content: ''; position: absolute; top: -7px; left: 16px; width: 46px; height: 13px;
  background: var(--brand); border: 2px solid var(--ink-line); border-radius: 3px;
  transform: rotate(-5deg); pointer-events: none;
}

/* 腾出 +23px：主图/标题/页脚各收一点，仍是一屏 */
.hero.brand .brand-logo { height: 70px; margin-bottom: 6px; }
.hero.brand .brand-wordmark { height: 36px; }
.hero.brand { padding-bottom: 8px; }
.footnote { font-size: 10.5px; line-height: 1.35; }
