/* SpeakUp v2 — 页面组件 */
.min0{min-width:0}
.grow{flex:1;min-width:0}
.center{text-align:center;align-items:center}
.good-t{color:var(--good)}
.bad-t{color:var(--bad)}
.warn-t{color:var(--warn)}
.slot{display:inline-block;color:var(--muted);letter-spacing:-.1em;font-weight:400}
.input.narrow{width:110px}
.table-wrap{overflow-x:auto;max-width:100%}
.kbd{font-family:var(--f-mono);font-size:11px;opacity:.7;border:1px solid currentColor;border-radius:4px;padding:0 4px;margin-left:6px}
@media (hover:none){.kbd{display:none}}

/* ---------- 今天 ---------- */
.hero{display:flex;flex-direction:column;gap:6px}
.hero h1{font-size:clamp(34px,6vw,56px);font-weight:800;letter-spacing:-.03em}
.hero h1 small{font-size:.36em;color:var(--muted);font-weight:500;letter-spacing:0;margin-left:10px}
.hero-line{font-size:18px;font-weight:600}
.daynav{display:flex;align-items:center;gap:4px}
.banner{padding:12px 16px;border-radius:var(--r);background:var(--good-soft);color:var(--good);font-weight:600;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.banner svg{flex:none}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.stat{background:var(--surface);padding:14px 16px;min-width:0}
.stat b{display:block;font-family:var(--f-display);font-size:24px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.stat b small{font-size:.6em;color:var(--muted);font-weight:500}
.stat span{font-size:13px;color:var(--muted)}
@media (max-width:560px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

.tasks{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--r);background:var(--surface);overflow:hidden}
.task{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px 16px;border-top:1px solid var(--line);color:inherit;text-decoration:none}
.task:first-child{border-top:0}
a.task:hover{background:var(--sunk)}
.task .chk{width:30px;height:30px;border-radius:50%;border:2px solid var(--line);background:none;cursor:pointer;display:grid;place-items:center;padding:0;color:var(--surface);position:relative}
.task .chk::after{content:"";position:absolute;inset:-8px}
.task .chk svg{width:16px;height:16px;opacity:0}
.task .chk[disabled]{cursor:default}
.task.done .chk{background:var(--good);border-color:var(--good)}
.task.done .chk svg{opacity:1}
.t-title{font-weight:600}
.task.done .t-title{color:var(--muted)}
.t-sub{font-size:13px;color:var(--muted);margin-top:2px}
.t-extra{margin-top:8px}
.t-side{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.t-min{font-size:12px;color:var(--muted)}
.kind{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:8px;vertical-align:1px;background:var(--accent)}
.kind.k-say{background:var(--mark);box-shadow:0 0 0 1px var(--on-mark) inset}
@media (max-width:520px){
  .task{grid-template-columns:auto minmax(0,1fr);gap:10px 12px;padding:14px}
  .t-side{grid-column:2;flex-direction:row;align-items:center;justify-content:space-between}
}

.grid84{display:grid;grid-template-columns:22px repeat(7,minmax(0,1fr));gap:5px;align-items:center;max-width:420px}
.grid84 .wk{font-size:11px;color:var(--muted);font-family:var(--f-mono);text-align:right;padding-right:4px}
.grid84 button{aspect-ratio:1;min-height:30px;border-radius:6px;border:1px solid var(--line);background:var(--surface);cursor:pointer;padding:0;font-size:11px;color:var(--muted);font-family:var(--f-mono)}
.grid84 button.sat,.grid84 button.sun{border-style:dashed}
.grid84 button.part{background:var(--accent-soft);border-color:var(--accent-soft);color:var(--accent)}
.grid84 button.full{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.grid84 button.cur{outline:2.5px solid var(--mark);outline-offset:1px}
.grid84 button.sel{box-shadow:0 0 0 2px var(--ink) inset}

/* ---------- 课程 ---------- */
.weeks{display:flex;flex-direction:column;gap:28px}
.week{display:grid;grid-template-columns:28px minmax(0,1fr);gap:0 14px;scroll-margin-top:16px}
.week .rail{position:relative;display:flex;justify-content:center}
.week .rail::before{content:"";position:absolute;top:0;bottom:-28px;width:3px;background:var(--line);border-radius:3px}
.week:last-child .rail::before{bottom:0}
.week .rail i{position:relative;margin-top:2px;width:26px;height:26px;border-radius:50%;background:var(--surface);border:3px solid var(--accent);display:grid;place-items:center;font-style:normal;font-size:11px;font-weight:700;font-family:var(--f-mono);color:var(--accent)}
.week.complete .rail i{background:var(--accent);color:var(--accent-ink)}
.week.now .rail i{box-shadow:0 0 0 3px var(--mark)}
.week h2{font-size:20px}
.wgoal{color:var(--muted);font-size:14px;margin-top:2px}
.stations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.stations.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.station{display:flex;flex-direction:column;gap:3px;padding:14px;border-radius:12px;border:1px solid var(--line);background:var(--surface);text-decoration:none;color:inherit;min-width:0}
.station:hover{border-color:var(--accent)}
.station .no{font-size:12px;color:var(--accent)}
.station b{font-family:var(--f-display);font-size:17px;font-weight:700}
.station .en-t{font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.station.wip{background:none;border-style:dashed}
.station.wip b{color:var(--muted)}
.station.done{border-color:var(--good)}
.station.done .no{color:var(--good)}
.station.sat{grid-column:1/-1;background:var(--mark-soft);border-color:transparent}
.station.sat .no{color:var(--mark-ink)}
.station.sat.wip{background:none;border:1px dashed var(--line)}
.station.day0{border-style:dashed}
.pips{display:flex;gap:3px;margin-top:6px}
.pips i{flex:1;max-width:16px;height:5px;border-radius:3px;background:var(--line)}
.pips i.on{background:var(--accent)}
@media (max-width:560px){.stations,.stations.three{grid-template-columns:minmax(0,1fr)}}

/* ---------- 课页面 ---------- */
.lesson-head{display:flex;flex-direction:column;gap:8px}
.lesson-title{font-size:clamp(26px,4.4vw,38px);font-weight:800;letter-spacing:-.02em}
.lesson-layout{display:grid;grid-template-columns:200px minmax(0,1fr);gap:28px;align-items:start}
.stepbar{position:sticky;top:20px;display:flex;flex-direction:column;gap:2px}
.stepbar a{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;color:var(--muted);text-decoration:none;font-weight:600;font-size:14px;min-height:40px}
.stepbar a.sep{margin-top:10px}
.stepbar a i{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:11px;background:var(--sunk);flex:none}
.stepbar a.done i{background:var(--good);color:var(--surface)}
.stepbar a:hover{background:var(--sunk);color:var(--ink)}
.stepbar a.on{background:var(--accent-soft);color:var(--accent)}
.stepbar a.on i{background:var(--accent);color:var(--accent-ink)}
.step-body{min-width:0;max-width:760px}
.step-foot{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding-top:8px;border-top:1px solid var(--line)}
.step-foot .btn.primary{white-space:normal;text-align:center;line-height:1.3;padding-block:8px}
@media (max-width:860px){
  .lesson-layout{grid-template-columns:minmax(0,1fr);gap:16px}
  .stepbar{position:sticky;top:0;z-index:5;flex-direction:row;overflow-x:auto;gap:4px;padding:8px 0;margin:0 -16px;padding-inline:16px;background:var(--bg);scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity}
  .stepbar::-webkit-scrollbar{display:none}
  .stepbar a{flex:none;padding:6px 10px;font-size:13px;border:1px solid var(--line);background:var(--surface);min-height:44px;scroll-snap-align:center}
  .stepbar a.sep{margin-top:0;margin-left:8px}
  .stepbar a i{width:20px;height:20px}
  .lesson-head .seg.speed{align-self:flex-start}
}
.goal-panel{background:var(--accent-soft);border-color:transparent}
.goal-big{font-size:19px;font-weight:600;line-height:1.45;margin-top:4px}
.focus-point{font-size:17px;line-height:1.6}
.pit{display:flex;flex-direction:column;gap:10px}
.pit-rows{display:grid;gap:6px}
.pit-rows > div{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:8px;align-items:center;padding:8px 10px;border-radius:10px}
.pit-rows .wrong{background:var(--bad-soft)}
.pit-rows .right{background:var(--good-soft)}
.pit-rows .wrong > span:last-child{grid-column:2/4}
.lbl{font-size:12px;font-weight:700;color:var(--muted)}
.pit-practice{padding:0 4px}

.lines{display:flex;flex-direction:column;gap:6px}
.line{display:grid;grid-template-columns:32px minmax(0,1fr);gap:10px;align-items:start;padding:8px 10px;border-radius:12px;cursor:pointer;transition:background .15s;position:relative}
@media (hover:hover){.line:hover{background:var(--sunk)}}
.line .who{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:12px;background:var(--sunk);color:var(--muted)}
.line.B .who{background:var(--mark);color:var(--on-mark)}
.line .en{font-size:17px;font-weight:500}
.line.B .en span{background:linear-gradient(transparent 60%,var(--hl) 60%);box-decoration-break:clone;-webkit-box-decoration-break:clone}
.line .zh{font-size:14px;color:var(--muted)}
.line .ph{display:none;height:12px;margin:8px 0;border-radius:6px;background:var(--line);width:70%}
.line.cur{background:var(--accent-soft)}
.line.cur.rep{background:var(--mark-soft)}
.line.ctx{opacity:.6}
.lines.notext .en,.lines.notext .zh{display:none}
.lines.notext .ph{display:block}
.lines.notext .line:nth-child(3n) .ph{width:50%}
.lines.notext .line:nth-child(3n+1) .ph{width:85%}
.lines.hidezh .zh{display:none}
.line .gap{grid-column:2;height:5px;border-radius:3px;background:var(--line);overflow:hidden;display:none}
.line.cur.rep .gap{display:block}
.gap i,.timebar i{display:block;height:100%;width:0;background:var(--mark);animation:grow linear forwards}
@keyframes grow{to{width:100%}}

.dict .dict-out:empty{display:none}
.answer{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:10px;background:var(--sunk)}
.diff{font-size:17px;line-height:1.9}
.diff .w{display:inline-block;padding:0 3px;border-radius:4px;font-weight:600}
.diff .ok{color:var(--good)}
.diff .miss{color:var(--bad);background:var(--bad-soft);text-decoration:underline wavy;text-underline-offset:4px}
.diff .wrong{color:var(--bad);background:var(--bad-soft)}
.diff .wrong s{opacity:.7;font-weight:400}
.diff .extra{color:var(--muted);text-decoration:line-through}

.card-big{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:24px;display:flex;flex-direction:column;gap:14px;min-width:0}
.card-big.center{align-items:center;text-align:center}
.en-big{font-family:var(--f-display);font-size:clamp(26px,5vw,38px);font-weight:700;line-height:1.18;letter-spacing:-.015em;overflow-wrap:anywhere}
.zh-big{font-size:21px;font-weight:600;overflow-wrap:anywhere}
.use{font-size:15px;color:var(--muted);padding-left:12px;border-left:3px solid var(--line)}
.example{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 12px;align-items:center;padding:12px 14px;border-radius:12px;background:var(--sunk)}
.example .zh{font-size:14px;color:var(--muted)}
.status{min-height:0;font-size:15px;font-weight:600;display:flex;flex-direction:column;gap:6px}
.status:empty{display:none}
.timebar{height:6px;border-radius:3px;background:var(--line);overflow:hidden}
.say-strip,.listen-strip{font-size:13px;font-weight:600;padding:6px 10px;border-radius:8px;align-self:flex-start;display:inline-flex;gap:6px;align-items:center}
.say-strip{color:var(--mark-ink);background:var(--mark-soft)}
.listen-strip{color:var(--accent);background:var(--accent-soft)}
.chunk-nav{flex-wrap:nowrap}
.dots{display:flex;flex-wrap:wrap;gap:4px;justify-content:center;flex:1;min-width:0}
.dots button{width:10px;height:10px;border-radius:50%;border:0;background:var(--line);padding:0;cursor:pointer;position:relative}
.dots button::after{content:"";position:absolute;inset:-5px}
.dots button.seen{background:var(--accent-soft)}
.dots button.on{background:var(--accent);transform:scale(1.25)}
@media (max-width:520px){.dots{display:none}.chunk-nav .btn{flex:1}}
.list{display:flex;flex-direction:column}
.li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;padding:12px 4px;border:0;border-top:1px solid var(--line);align-items:center;background:none;text-align:left;width:100%;min-height:44px}
.li:first-child{border-top:0}
.li .en{font-weight:600;overflow-wrap:anywhere}
.li .zh{font-size:14px;color:var(--muted);overflow-wrap:anywhere}
.li .acts{grid-row:1/3;grid-column:2;display:flex;gap:6px;align-items:center;color:var(--accent)}
.ex-btn{cursor:pointer;border-radius:10px}
.ex-btn:hover{background:var(--sunk)}
.ex-btn.playing{background:var(--accent-soft)}
.ref{list-style:none;padding:0;display:flex;flex-direction:column;gap:6px;margin-top:6px}
.ref li{display:flex;flex-direction:column;font-size:14px}
.crit{list-style:none;padding:0;display:flex;flex-direction:column;gap:6px;margin-top:6px}
.crit li{display:flex;gap:8px;align-items:flex-start}
.crit li svg{flex:none;margin-top:4px}
.crit.plain li svg{color:var(--muted)}
.crit li.met svg{color:var(--good)}
.crit li.unmet{color:var(--muted)}
.crit li.unmet svg{color:var(--bad)}
.timer{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.timer .t,.talk-rec .t{font-family:var(--f-mono);font-size:40px;font-weight:500;min-width:3ch;line-height:1}
.t.low{color:var(--bad)}
.rounds{display:grid;gap:10px}
.round.cur{border-color:var(--mark);border-width:2px}
.round.done{background:var(--sunk);border-color:transparent}
.talk-rec{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:6px}
.rec-dot{width:12px;height:12px;border-radius:50%;background:var(--bad);display:inline-block;animation:blink 1s infinite;flex:none}
@keyframes blink{50%{opacity:.25}}
.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:8px}
.metrics div{padding:10px 12px;border-radius:10px;background:var(--sunk);display:flex;flex-direction:column}
.metrics b{font-size:20px}
.metrics span{font-size:12px;color:var(--muted)}
table.cmp{border-collapse:collapse;width:100%;font-size:14px}
.cmp th,.cmp td{padding:8px 10px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap}
.cmp th:first-child{text-align:left;font-weight:600}
.cmp thead th{color:var(--muted);font-weight:600;font-size:12px}
.sample{padding:14px;border-radius:12px;background:var(--sunk);font-size:16px;line-height:1.65}

/* ---------- 录音按钮 ---------- */
.mic{display:flex;align-items:center;gap:14px}
.mic-btn{width:56px;height:56px;border-radius:50%;border:0;background:var(--mark);color:var(--on-mark);display:grid;place-items:center;cursor:pointer;flex:none;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;box-shadow:0 0 0 0 var(--mark);transition:transform .1s}
.mic-btn svg{width:26px;height:26px}
.mic.big .mic-btn{width:68px;height:68px}
.mic.big .mic-btn svg{width:30px;height:30px}
.mic.on .mic-btn{background:var(--bad);color:#fff;animation:pulse 1.4s infinite;transform:scale(1.05)}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(191,52,44,.45)}100%{box-shadow:0 0 0 16px rgba(191,52,44,0)}}
.mic-info{display:flex;flex-direction:column;min-width:0}
.mic-label{font-size:15px}
.mic-sub{font-size:13px;color:var(--muted)}
.mic-live{display:flex;align-items:center;gap:10px;font-size:14px}
.meter{display:inline-flex;gap:3px;align-items:center;height:22px}
.meter i{width:4px;height:100%;border-radius:2px;background:var(--bad);transform:scaleY(.15);transition:transform .08s}
.mic-out:empty{display:none}
.mic-out{margin-top:10px;padding:12px 14px;border-radius:12px;background:var(--sunk);font-size:15px;display:flex;flex-direction:column;gap:6px}
.rec-task{display:flex;flex-direction:column;gap:12px}
.big-rec{min-height:64px;font-size:18px;border-radius:16px}
.big-rec svg{width:24px;height:24px}
.rec-live{display:flex;align-items:center;gap:10px}
.rec-live .t{font-size:28px}
.rec-out:empty{display:none}

/* ---------- 角色扮演 ---------- */
.scene .eyebrow{display:block;margin-bottom:2px}
.rp-bar{position:sticky;top:0;z-index:6;background:var(--bg);padding:8px 0;border-bottom:1px solid var(--line);margin-bottom:12px}
.rp-goal{color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:520px}
.chat{display:flex;flex-direction:column;gap:10px;padding-bottom:8px}
.bub{max-width:86%;padding:10px 14px;border-radius:16px;display:flex;flex-direction:column;gap:3px;overflow-wrap:anywhere}
.bub.A{align-self:flex-start;background:var(--surface);border:1px solid var(--line);border-bottom-left-radius:4px}
.bub.B{align-self:flex-end;background:var(--mark-soft);color:var(--mark-ink);border:1px solid var(--mark);border-bottom-right-radius:4px}
.bub .en{font-size:17px}
.bub .who-n{font-size:12px;font-weight:700;color:var(--accent)}
.bub .re{align-self:flex-start;margin-top:2px;font-size:13px;color:var(--accent);background:none;border:0;padding:6px 0 0;cursor:pointer;font-weight:600;display:inline-flex;gap:4px;align-items:center;min-height:32px}
.bub .via{opacity:.7;display:inline-flex;gap:4px;align-items:center;align-self:flex-end}
.blur{filter:blur(6px);user-select:none;cursor:pointer}
.typing .dots{display:inline-flex;gap:4px;padding:6px 2px}
.typing .dots i{width:7px;height:7px;border-radius:50%;background:var(--muted);animation:blink 1s infinite}
.typing .dots i:nth-child(2){animation-delay:.2s}
.typing .dots i:nth-child(3){animation-delay:.4s}
.coach{align-self:flex-end;max-width:86%;padding:10px 14px;border-radius:12px;background:var(--warn-soft);border:1px dashed var(--warn);display:flex;flex-direction:column;gap:6px;font-size:15px}
.better-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--good)}
.rp-done{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.rp-input{position:sticky;bottom:0;background:var(--bg);padding:10px 0 calc(10px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);display:flex;flex-direction:column;gap:8px;z-index:6}
.rp-row{display:flex;gap:8px;align-items:flex-end}
.rp-text{min-height:44px;resize:none;font-size:16px;font-family:var(--f-body)}
.rp-mic:empty{display:none}
.rp-status:empty{display:none}
@media (min-width:861px){.rp-input{bottom:0}}

/* ---------- 报告 ---------- */
.report h3{font-size:16px}
.summary{font-size:16px;line-height:1.65}
.scores{display:grid;gap:8px}
.score{display:grid;grid-template-columns:84px minmax(0,1fr) 40px;gap:10px;align-items:center;font-size:14px}
.score .bar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px}
.score .bar i{height:10px;background:var(--line)}
.score .bar i:first-child{border-radius:5px 0 0 5px}
.score .bar i:last-child{border-radius:0 5px 5px 0}
.score .bar i.on{background:var(--accent)}
.wins{display:flex;flex-direction:column;gap:4px}
.fixes{display:flex;flex-direction:column;gap:8px}
.fix{padding:12px 14px;border-radius:12px;background:var(--surface);border:1px solid var(--line);display:flex;flex-direction:column;gap:4px}
.fix .said{color:var(--bad)}
.fix .better{display:flex;align-items:center;gap:6px;flex-wrap:wrap;color:var(--good)}
.fix .better svg{flex:none}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{padding:6px 12px;border-radius:99px;background:var(--mark-soft);color:var(--mark-ink);font-size:14px;font-weight:500}
.chat.static .bub .en{font-size:15px}
.rep-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:10px;align-items:center;padding:10px 4px;border-top:1px solid var(--line);text-decoration:none;color:inherit;min-height:44px}
.rep-row:hover{background:var(--sunk)}

/* ---------- 复习 ---------- */
.review-hero{display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.big-num{font-family:var(--f-display);font-size:64px;font-weight:800;line-height:1;letter-spacing:-.03em;margin-right:8px}
.boxes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.boxes.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.boxes div{padding:12px 14px;border-radius:12px;background:var(--surface);border:1px solid var(--line);min-width:0}
.boxes b{display:block;font-family:var(--f-display);font-size:22px;font-variant-numeric:tabular-nums}
.boxes span{font-size:12px;color:var(--muted)}
@media (max-width:520px){.boxes,.boxes.four{grid-template-columns:repeat(2,minmax(0,1fr))}}
.s-head{display:flex;align-items:center;gap:10px}
.review-card{min-height:240px;justify-content:center}
.answer-zone{display:flex;flex-direction:column;gap:12px;padding-top:14px;border-top:1px dashed var(--line)}
.said-line{color:var(--bad);font-size:15px}
.rev-actions{position:sticky;bottom:0;background:var(--bg);padding:10px 0 calc(10px + env(safe-area-inset-bottom,0px))}
.rate{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.rate.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.rate .btn{flex-direction:column;height:auto;min-height:64px;gap:0;white-space:normal}
.rate .btn small{font-weight:500;font-size:12px;opacity:.75}
.rate .again{border-color:var(--bad);color:var(--bad)}
.rate .good{border-color:var(--good);color:var(--good)}
.flip{min-height:56px;font-size:17px}
.done-view{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;padding:48px 16px}
.done-badge{width:72px;height:72px;border-radius:50%;background:var(--good);color:var(--surface);display:grid;place-items:center}
.done-badge svg{width:36px;height:36px}
.done-view h2{font-size:28px}

/* ---------- 专项 ---------- */
.big-play{min-height:56px;font-size:17px;align-self:flex-start}
.ab{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ab-btn{min-height:64px;font-size:20px;font-family:var(--f-display);white-space:normal}
.ab-btn .mono{font-size:12px;color:var(--muted)}
.ab-btn.right{background:var(--good-soft);border-color:var(--good);color:var(--good)}
.ab-btn.wrong{background:var(--bad-soft);border-color:var(--bad);color:var(--bad)}
.q-out .row{gap:8px}
.pairs{display:flex;flex-direction:column;gap:8px}
.drills{display:grid;gap:8px}
.drill{padding:12px 14px}
.drill-t{font-size:17px;overflow-wrap:anywhere}
.drill .say-check{margin-top:8px}
.heard-list{display:grid;gap:8px}
.heard{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:4px 14px;align-items:center}
.heard .hw,.heard .hh{display:flex;flex-direction:column;min-width:0;overflow-wrap:anywhere}
.heard .hh .mono{color:var(--accent);font-size:15px}
.heard .hz{grid-column:1/3}
.heard .acts{grid-column:3;grid-row:1/3;display:flex;gap:6px}
@media (max-width:560px){.heard{grid-template-columns:minmax(0,1fr) auto}.heard .hh,.heard .hz{grid-column:1}.heard .acts{grid-column:2;grid-row:1/4;flex-direction:column}}

/* ---------- 进度 ---------- */
.charts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
@media (max-width:900px){.charts{grid-template-columns:minmax(0,1fr)}}
.chart{margin:0;padding:14px;border-radius:var(--r);background:var(--surface);border:1px solid var(--line);display:flex;flex-direction:column;gap:8px;min-width:0}
.chart figcaption{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap}
.chart-box{position:relative}
.chart svg{width:100%;height:auto;display:block;touch-action:pan-y}
.chart .grid{stroke:var(--line);stroke-width:1}
.chart .tick{fill:var(--muted);font-size:10px;font-family:var(--f-mono)}
.chart .ln{fill:none;stroke:var(--chart-1);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.chart .pt{fill:var(--chart-1);stroke:var(--surface);stroke-width:2}
.chart .pt.base{fill:var(--surface);stroke:var(--chart-1)}
.chart .lab{fill:var(--ink);font-size:11px;font-weight:600;font-family:var(--f-mono)}
.chart .cross{stroke:var(--muted);stroke-width:1;stroke-dasharray:3 3}
.chart .tip{position:absolute;top:0;pointer-events:none;background:var(--ink);color:var(--bg);padding:6px 10px;border-radius:8px;font-size:12px;display:flex;flex-direction:column;white-space:nowrap;box-shadow:var(--shadow)}
.chart-empty{padding:28px 10px;text-align:center;font-size:13px;color:var(--muted);border:1px dashed var(--line);border-radius:10px}
.days14{display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:4px;height:84px;align-items:end}
.d14{display:flex;flex-direction:column;align-items:center;gap:4px;height:100%;justify-content:flex-end}
.d14 i{width:100%;max-width:22px;background:var(--accent-soft);border-radius:4px 4px 0 0;display:block}
.d14 i.today{background:var(--accent)}
.d14 span{font-size:10px;color:var(--muted);font-family:var(--f-mono)}
.base-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
@media (max-width:900px){.base-grid{grid-template-columns:minmax(0,1fr)}}
.base-row{display:flex;align-items:center;gap:8px;min-height:44px}
.base-row audio{min-width:0}
.settings-link{display:none}
@media (max-width:860px){.settings-link{display:inline-flex}}
.nav-back{display:none}
@media (max-width:860px){.nav-back{display:inline-flex}}

/* ---------- 登录 ---------- */
.app.logged-out{grid-template-columns:minmax(0,1fr)}
.app.logged-out .nav{display:none}
.login{min-height:70vh;justify-content:center}
.login-card{max-width:400px;width:100%;margin:0 auto;display:flex;flex-direction:column;gap:14px;padding:28px}
.brand.big{font-size:34px;padding:0}

.steps{display:flex;flex-direction:column;gap:6px}
@media (max-width:860px){body.focus-mode .stepbar{position:static}}
.card-big > .tag,.review-card > .tag{align-self:flex-start}
.card-big.center > .tag{align-self:center}
.diff .fill{text-decoration:underline;text-decoration-style:dotted;text-underline-offset:4px}

/* ---------- 连播控制条（先听 / 影子跟读）：像视频进度条，暂停记位置，点哪段跳哪句 ---------- */
.player{display:flex;align-items:center;gap:12px;position:sticky;top:12px;z-index:4;background:var(--surface);padding:8px 0;border-radius:12px}
.shadow-wrap > .player{background:var(--bg)}
.player .pl-toggle{flex:none;min-width:116px;justify-content:center}
.pl-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.pl-track{display:flex;gap:3px;height:22px;align-items:center}
.pl-track button{flex:1;min-width:0;height:22px;padding:0;border:0;background:none;cursor:pointer;display:flex;align-items:center}
.pl-track button i{display:block;width:100%;height:6px;border-radius:3px;background:var(--line);transition:background .15s,height .15s}
.pl-track button:hover i{background:var(--muted)}
.pl-track button.done i{background:var(--accent)}
.pl-track button.cur i{background:var(--accent);height:10px;opacity:.55}
.player.on .pl-track button.cur i{opacity:1}
.shadow-wrap .pl-track button.done i,.shadow-wrap .pl-track button.cur i{background:var(--mark)}
.pl-meta{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted)}
.pl-skip{border:0;background:none;color:var(--muted);padding:4px;border-radius:6px;cursor:pointer;display:grid;place-items:center;min-width:32px;min-height:28px}
.pl-skip:hover{background:var(--sunk);color:var(--ink)}
.line.cur.paused{background:var(--sunk);box-shadow:inset 3px 0 0 var(--accent)}
.line{scroll-margin-top:140px;scroll-margin-bottom:calc(var(--nav-h,60px) + 24px)}
@media (max-width:860px){.player{top:60px}}
@media (max-width:420px){.player .pl-toggle{min-width:0;padding-inline:12px}}
.prep-how{padding-left:20px;display:grid;gap:6px;margin:0}
.rate .btn.suggest{outline:2.5px solid var(--accent);outline-offset:2px}
.rate-hint{color:var(--muted);text-align:center;margin:0 0 8px}
