/* 三考通：护眼、安静、好读。三套主题：纸（默认）、白天、夜间。 */
:root, [data-theme='paper'] {
  --bg: #f4efe4;          /* 米黄纸色，降低蓝光和对比 */
  --panel: #faf6ee;
  --card: #fffcf6;
  --rail: #ebe4d5;
  --ink: #33302a;          /* 不用纯黑 */
  --ink-2: #6b665c;
  --ink-3: #9a9487;
  --line: #e2dacb;
  --line-2: #d3c9b5;
  --hover: rgba(80, 64, 30, 0.06);
  --sel: rgba(61, 122, 104, 0.13);
  --accent: #3d7a68;
  --accent-ink: #ffffff;
  --accent-soft: #e2eee8;
  --good: #3d7a52; --good-soft: #e3efe2;
  --bad: #b2513f;  --bad-soft: #f6e3dc;
  --warn: #a8741b; --warn-soft: #f6ebd3;
  --quote: #f1ebdd;
  --mark: #f6e08a;
  --fakao: #b5523f; --fakao-soft: #f6e1da;
  --takken: #3f6fa0; --takken-soft: #dfe8f2;
  --gyosei: #4f8a5b; --gyosei-soft: #e1eee2;
  color-scheme: light;
}
[data-theme='day'] {
  --bg: #f6f7f8; --panel: #fbfbfc; --card: #ffffff; --rail: #eceef1; --ink: #23272e; --ink-2: #5d636d; --ink-3: #8e949d;
  --line: #e3e6ea; --line-2: #d1d6dc; --hover: rgba(0,0,0,.045); --sel: rgba(46,107,91,.12); --quote: #f2f5f4; --mark: #ffe27a;
}
[data-theme='night'] {
  --bg: #1d1f21; --panel: #222527; --card: #26292c; --rail: #181a1c; --ink: #d9d4c8; --ink-2: #a19c91; --ink-3: #757168;
  --line: #34383b; --line-2: #43484c; --hover: rgba(255,255,255,.05); --sel: rgba(110,180,155,.18);
  --accent: #6fae97; --accent-ink: #14201b; --accent-soft: #233630;
  --good: #7fbf8f; --good-soft: #22342a; --bad: #e08d78; --bad-soft: #3b2723; --warn: #d9ab5b; --warn-soft: #3a3020;
  --quote: #2c3033; --mark: #6b5a1f;
  --fakao: #e08d78; --fakao-soft: #3b2723; --takken: #86aedb; --takken-soft: #22303f; --gyosei: #8cc79a; --gyosei-soft: #233628;
  color-scheme: dark;
}

:root {
  --fs: 16px;
  --read-w: 46em;
  font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', 'PingFang SC', 'Yu Gothic UI', sans-serif;
  font-size: var(--fs);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
:lang(ja) { font-family: 'Yu Gothic UI', 'Yu Gothic', 'Meiryo', 'Hiragino Sans', 'Microsoft YaHei UI', sans-serif; }
* { box-sizing: border-box; }
html, body, #root { margin: 0; height: 100%; }
body { background: var(--bg); }
::selection { background: var(--mark); }
a { color: var(--accent); cursor: pointer; text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: Consolas, 'MS Gothic', monospace; font-size: .9em; background: var(--quote); padding: 1px 5px; border-radius: 4px; }
small, .muted { color: var(--ink-2); font-weight: normal; }
.hint { color: var(--ink-3); font-size: .88em; line-height: 1.6; }
.error { color: var(--bad); }
h1, h2, h3 { font-weight: 600; letter-spacing: .01em; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* 按钮和表单 */
button {
  font: inherit; font-size: .95em; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); border-radius: 9px;
  padding: 7px 16px; cursor: pointer; transition: background .15s, border-color .15s;
}
button:hover { background: var(--hover); border-color: var(--ink-3); }
button:disabled { opacity: .45; cursor: default; }
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
button.primary:hover { filter: brightness(1.06); }
button.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
button.ghost:hover { background: var(--hover); }
button.small { padding: 3px 10px; font-size: .85em; }
button.big { padding: 11px 30px; font-size: 1.08em; border-radius: 11px; }
button.danger { color: var(--bad); }
input, select, textarea {
  font: inherit; border: 1px solid var(--line-2); border-radius: 9px; padding: 7px 11px; background: var(--card); color: var(--ink);
}
textarea { width: 100%; resize: vertical; line-height: 1.8; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
input[type='checkbox'], input[type='radio'] { accent-color: var(--accent); width: 1.05em; height: 1.05em; vertical-align: -2px; }
label.check { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; color: var(--ink-2); }
.w5 { width: 5.5em; } .w8 { width: 8em; } .w12 { width: 12em; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.right { justify-content: flex-end; }
.col { display: flex; flex-direction: column; gap: 10px; }
.spacer { flex: 1; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 18px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }

/* 考试标签 */
.tag { display: inline-block; font-size: .78em; padding: 2px 9px; border-radius: 20px; white-space: nowrap; font-weight: 500; }
.tag.fakao { background: var(--fakao-soft); color: var(--fakao); }
.tag.takken { background: var(--takken-soft); color: var(--takken); }
.tag.gyosei { background: var(--gyosei-soft); color: var(--gyosei); }
.tag.plain { background: var(--quote); color: var(--ink-2); }
.tag.good { background: var(--good-soft); color: var(--good); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }

/* 整体布局：左侧导航 + 内容 */
.app { display: flex; height: 100%; }
.rail { width: 84px; flex-shrink: 0; background: var(--rail); display: flex; flex-direction: column; align-items: stretch; padding: 14px 8px; gap: 2px; }
.rail .brand { text-align: center; font-weight: 700; letter-spacing: 1px; margin-bottom: 14px; color: var(--accent); font-size: 1.05em; }
.rail button { border: none; background: transparent; color: var(--ink-2); border-radius: 12px; padding: 9px 4px 7px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .82em; position: relative; }
.rail button svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rail button:hover { background: var(--hover); color: var(--ink); }
.rail button.on { background: var(--card); color: var(--accent); box-shadow: 0 1px 0 var(--line); }
.rail .badge { position: absolute; top: 4px; right: 10px; background: var(--bad); color: #fff; font-size: .7em; border-radius: 10px; padding: 0 5px; line-height: 1.5; }
.rail .bottom { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topline { display: flex; align-items: center; gap: 12px; padding: 8px 22px; min-height: 46px; border-bottom: 1px solid var(--line); background: var(--panel); }
.topline .title { font-weight: 600; }
.content { flex: 1; min-height: 0; overflow: hidden; }
.page { height: 100%; overflow: auto; padding: 24px 32px 60px; }
.page.narrow > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.focus .rail, .focus .topline { display: none; }

/* 计时胶囊 */
.timer-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); font-variant-numeric: tabular-nums; cursor: pointer; }
.timer-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.timer-pill.running .dot { background: var(--good); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; } }

/* 卡片 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; }
.card + .card { margin-top: 18px; }
.card h2 { margin: 0 0 14px; font-size: 1.08em; display: flex; align-items: center; gap: 10px; }
.card h2 small { font-size: .82em; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.stat .k { color: var(--ink-2); font-size: .85em; }
.stat .v { font-size: 1.65em; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: .55em; margin-left: 4px; }
.light { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 20px; font-size: .9em; }
.light.green { background: var(--good-soft); color: var(--good); }
.light.yellow { background: var(--warn-soft); color: var(--warn); }
.light.red { background: var(--bad-soft); color: var(--bad); }
.light.unknown { background: var(--quote); color: var(--ink-2); }
.light i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.bar { height: 8px; background: var(--quote); border-radius: 6px; overflow: hidden; }
.bar > div { height: 100%; background: var(--accent); border-radius: 6px; transition: width .6s; }
.notice { padding: 12px 16px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); line-height: 1.6; }
.notice.info { background: var(--accent-soft); color: var(--accent); }
.notice.good { background: var(--good-soft); color: var(--good); }
.notice.bad { background: var(--bad-soft); color: var(--bad); }

/* 今日任务 */
.tasks { border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; }
.task { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: none; }
.task .chk { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; }
.task.done .chk { background: var(--good); border-color: var(--good); }
.task.done .t { color: var(--ink-3); text-decoration: line-through; }
.task .t { flex: 1; line-height: 1.5; }
.task .t small { display: block; font-size: .8em; color: var(--ink-3); text-decoration: none; }
.task .m { color: var(--ink-3); font-size: .88em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.countdown { display: flex; gap: 12px; flex-wrap: wrap; }
.countdown .stat { min-width: 150px; }
.heat { display: grid; grid-template-columns: repeat(14, 34px); gap: 5px; }
.heat .cell { height: 34px; border-radius: 6px; background: var(--quote); position: relative; display: flex; align-items: flex-end; justify-content: flex-end; padding: 3px; font-size: .62em; color: var(--ink-3); }
.heat .cell.ck::before { content: ''; position: absolute; left: 5px; top: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }

/* 教材 */
.library { display: flex; height: 100%; }
.tree { width: 320px; flex-shrink: 0; border-right: 1px solid var(--line); background: var(--panel); padding: 16px 12px; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.tree .search { width: 100%; }
.dir-h { font-weight: 600; padding: 7px 6px; cursor: pointer; border-radius: 8px; display: flex; gap: 6px; align-items: center; }
.dir-h:hover, .grp-h:hover { background: var(--hover); }
.grp-h { padding: 5px 6px 5px 20px; cursor: pointer; color: var(--ink-2); border-radius: 8px; font-size: .92em; }
.ch { padding: 6px 8px 6px 34px; cursor: pointer; font-size: .9em; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 6px; align-items: center; }
.ch:hover { background: var(--hover); }
.ch.cur { background: var(--sel); color: var(--accent); }
.ch .st { width: 1.1em; color: var(--line-2); flex-shrink: 0; }
.ch .st.done { color: var(--good); }
.ch .st.reading { color: var(--warn); }
.ch .q { margin-left: auto; font-size: .78em; color: var(--ink-3); }
.hits .hit { padding: 10px; border-radius: 10px; cursor: pointer; }
.hits .hit:hover { background: var(--hover); }
.hits .hit b { font-size: .9em; font-weight: 600; }
.hits .hit p { margin: 4px 0 0; font-size: .82em; color: var(--ink-2); line-height: 1.5; }
.reader { flex: 1; overflow: auto; position: relative; scroll-behavior: smooth; }
.reader .empty { padding: 80px 60px; max-width: 760px; }
.reader-bar { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; align-items: center; padding: 10px 28px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.reader-body { display: flex; gap: 36px; padding: 8px 36px 120px; justify-content: center; }
.toc { width: 220px; flex-shrink: 0; position: sticky; top: 64px; align-self: flex-start; max-height: calc(100vh - 150px); overflow: auto; font-size: .84em; padding-top: 22px; }
.toc a { display: block; padding: 4px 8px; color: var(--ink-2); border-radius: 6px; line-height: 1.45; }
.toc a:hover { background: var(--hover); text-decoration: none; color: var(--ink); }
.toc a.l3 { padding-left: 20px; color: var(--ink-3); }
.toc a.on { color: var(--accent); background: var(--sel); }
.reader-body article { flex: 1; min-width: 0; max-width: var(--read-w); }
.focus .toc { display: none; }
::highlight(search) { background: var(--mark); }
.progress-line { position: absolute; left: 0; top: 0; height: 3px; background: var(--accent); z-index: 6; transition: width .2s; }

/* Markdown 正文：行距宽、段距大 */
.md { line-height: 1.95; font-size: 1.02em; }
.md p { margin: .9em 0; }
.md h1 { font-size: 1.6em; line-height: 1.45; margin: 1em 0 .6em; scroll-margin-top: 70px; }
.md h2 { font-size: 1.3em; margin-top: 2.4em; padding-bottom: 8px; border-bottom: 1px solid var(--line); scroll-margin-top: 70px; }
.md h3 { font-size: 1.1em; margin-top: 1.8em; scroll-margin-top: 70px; color: var(--accent); }
.md blockquote { margin: 1.1em 0; padding: 10px 18px; background: var(--quote); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; color: var(--ink); }
.md blockquote p { margin: .4em 0; }
.md .table-wrap { overflow-x: auto; margin: 1.2em 0; border: 1px solid var(--line); border-radius: 12px; }
.md table { border-collapse: collapse; font-size: .92em; line-height: 1.65; width: 100%; }
.md th, .md td { border-bottom: 1px solid var(--line); padding: 8px 12px; vertical-align: top; text-align: left; }
.md th { background: var(--panel); font-weight: 600; white-space: nowrap; }
.md tr:last-child td { border-bottom: none; }
.md td + td, .md th + th { border-left: 1px solid var(--line); }
.md pre { background: var(--quote); padding: 14px 18px; border-radius: 12px; overflow-x: auto; line-height: 1.55; font-size: .9em; }
.md pre code { background: none; padding: 0; }
.md details { border: 1px solid var(--line); border-radius: 12px; padding: 8px 16px; margin: 1em 0; background: var(--panel); }
.md summary { cursor: pointer; color: var(--accent); font-weight: 500; }
.md hr { border: none; border-top: 1px dashed var(--line-2); margin: 2.4em 0; }
.md li { margin: .3em 0; }
.md strong { color: var(--ink); font-weight: 650; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--mark) 55%, transparent) 62%); }
.md .warn-mark { color: var(--warn); }

/* 练习 */
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.mode { text-align: left; padding: 18px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.mode:hover { border-color: var(--accent); background: var(--card); }
.mode b { font-size: 1.05em; }
.mode .n { font-size: 1.7em; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.quiz { max-width: 820px; margin: 0 auto; }
.quiz-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--ink-2); font-size: .9em; }
.qcard { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 30px 34px; }
.qstem { font-size: 1.14em; line-height: 2; white-space: pre-wrap; }
.qstem .kw { background: var(--warn-soft); color: var(--warn); border-radius: 4px; padding: 0 3px; font-weight: 600; }
.opts { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.opt { text-align: left; display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 12px; line-height: 1.7; font-size: 1.02em; }
.opt .k { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-2); display: flex; align-items: center; justify-content: center; font-size: .9em; font-weight: 600; }
.opt.sel { border-color: var(--accent); background: var(--accent-soft); }
.opt.sel .k { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.opt.right { border-color: var(--good); background: var(--good-soft); }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.tf { display: flex; gap: 14px; margin-top: 26px; }
.tf button { flex: 1; padding: 16px; font-size: 1.25em; border-radius: 14px; }
.tf button.sel { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.qfoot { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.feedback { margin-top: 18px; padding: 14px 18px; border-radius: 12px; line-height: 1.8; }
.feedback.ok { background: var(--good-soft); }
.feedback.ng { background: var(--bad-soft); }
.kbd { display: inline-block; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 0 6px; font-size: .78em; color: var(--ink-2); font-family: Consolas, monospace; }
.progress-dots { display: flex; gap: 3px; flex-wrap: wrap; margin-bottom: 14px; }
.progress-dots i { width: 10px; height: 6px; border-radius: 3px; background: var(--line); }
.progress-dots i.a { background: var(--accent); }
.progress-dots i.c { background: var(--ink-3); }

/* 讲解报告 */
.report-head { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.ritem { border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin-bottom: 12px; overflow: hidden; }
.ritem.must { border-color: var(--bad); }
.ritem.must.acked { border-color: var(--line); }
.ritem-h { display: flex; gap: 12px; align-items: center; padding: 12px 18px; cursor: pointer; }
.ritem-h .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ritem-b { padding: 4px 22px 18px; border-top: 1px solid var(--line); line-height: 1.85; }
.ritem-b .lbl { color: var(--ink-3); font-size: .85em; margin-top: 12px; }
.reasons { display: flex; gap: 6px; flex-wrap: wrap; }
.reasons button { padding: 4px 12px; font-size: .85em; border-radius: 20px; }
.reasons button.on { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }

/* 主观题机考 */
.exam-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; height: 100%; }
.exam-split > div { overflow: auto; padding: 22px 26px; }
.exam-split .left { border-right: 1px solid var(--line); background: var(--panel); user-select: none; }
.exam-split textarea { min-height: 60vh; font-size: 1.02em; }
.kgrid { display: grid; grid-template-columns: repeat(15, 1.9em); gap: 2px; margin: 10px 0; }
.kgrid span { width: 1.9em; height: 1.9em; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; background: var(--card); }
.typing-src { font-size: 1.25em; line-height: 2; letter-spacing: .04em; }
.typing-src .ok { color: var(--good); }
.typing-src .ng { color: var(--bad); background: var(--bad-soft); }
.typing-src .cur { border-bottom: 2px solid var(--accent); }
.flash { min-height: 220px; display: flex; flex-direction: column; justify-content: center; }

/* 统计图 */
.chart { width: 100%; height: 180px; }
.chart .axis { stroke: var(--line); }
.chart text { fill: var(--ink-3); font-size: 10px; }
.mastery { display: grid; grid-template-columns: repeat(auto-fill, minmax(18px, 1fr)); gap: 3px; }
.mastery i { aspect-ratio: 1; border-radius: 4px; background: var(--quote); }

/* 设置、表格 */
.kv { display: flex; gap: 14px; align-items: center; margin: 10px 0; flex-wrap: wrap; }
.kv > span:first-child { width: 9em; color: var(--ink-2); flex-shrink: 0; }
.kv code { flex: 1; min-width: 200px; word-break: break-all; }
table.list { width: 100%; border-collapse: collapse; }
table.list td, table.list th { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
table.list th { color: var(--ink-3); font-weight: 500; font-size: .85em; }
table.list td.t { color: var(--ink-3); width: 5em; white-space: nowrap; }
table.list td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.list tr.dim { opacity: .5; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--card); }
.seg button { border: none; border-radius: 0; padding: 7px 16px; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.seg.small button { padding: 4px 11px; font-size: .86em; }

/* 对话框、提示 */
.modal-back { position: fixed; inset: 0; background: rgba(30, 26, 20, .32); display: flex; align-items: center; justify-content: center; z-index: 40; animation: fade .15s; }
.modal { background: var(--card); border-radius: 18px; padding: 22px 26px; width: min(600px, 92vw); max-height: 88vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.22); }
.modal h3 { margin: 0 0 12px; }
.modal label { display: block; margin: 12px 0 6px; color: var(--ink-2); font-size: .9em; }
.modal input:not([type='checkbox']):not([type='radio']) { width: 100%; }
@keyframes fade { from { opacity: 0; } }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 11px 22px; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.2); z-index: 60; animation: fade .2s; max-width: 80vw; }
.break-banner { position: fixed; right: 24px; bottom: 24px; z-index: 55; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; width: 320px; box-shadow: 0 12px 40px rgba(0,0,0,.16); animation: fade .3s; }
.break-banner b { display: block; margin-bottom: 6px; }
blockquote.quote { margin: 8px 0; padding: 8px 12px; background: var(--quote); border-left: 3px solid var(--accent); font-size: .9em; max-height: 9em; overflow: auto; }
.wizard { max-width: 760px; margin: 0 auto; }
.wizard .steps { display: flex; gap: 6px; margin-bottom: 20px; }
.wizard .steps i { flex: 1; height: 5px; border-radius: 4px; background: var(--line); }
.wizard .steps i.on { background: var(--accent); }
.empty-state { text-align: center; padding: 50px 20px; color: var(--ink-2); line-height: 1.9; }

/* ---------- 手机、窄屏（网页版在手机上用） ---------- */
.mobile-only { display: none; }
@media (max-width: 760px) {
  :root { --fs: 16px; }
  .mobile-only { display: inline-flex; }
  .desktop-only { display: none !important; }
  .app { flex-direction: column; }
  .rail {
    position: fixed; left: 0; right: 0; bottom: 0; width: 100%; height: calc(58px + env(safe-area-inset-bottom)); z-index: 30;
    flex-direction: row; padding: 4px 2px env(safe-area-inset-bottom); gap: 0; border-top: 1px solid var(--line); overflow-x: auto;
  }
  .rail .brand { display: none; }
  .rail .bottom { margin: 0; flex-direction: row; display: contents; }
  .rail button { flex: 1 1 0; min-width: 0; padding: 5px 0 3px; font-size: .62em; border-radius: 10px; white-space: nowrap; letter-spacing: -.02em; }
  .rail::-webkit-scrollbar { display: none; }
  .rail button svg { width: 20px; height: 20px; }
  .rail .badge { right: 4px; top: 1px; }
  .main { padding-bottom: calc(58px + env(safe-area-inset-bottom)); height: 100%; }
  .topline { padding: 6px 12px; min-height: 42px; gap: 6px; padding-top: calc(6px + env(safe-area-inset-top)); }
  .topline .title { font-size: .95em; }
  .timer-pill { max-width: 52vw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .8em; padding: 4px 10px; }
  .page { padding: 14px 12px 40px; }
  .card { padding: 14px 14px; border-radius: 14px; overflow-x: auto; }
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .modes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .mode { padding: 12px 14px; }
  .countdown .stat { min-width: 0; flex: 1 1 42%; padding: 10px 12px; }
  .stat .v { font-size: 1.35em; }
  .task { padding: 12px 12px; gap: 10px; flex-wrap: wrap; }
  .task .t { min-width: 60%; }
  .heat { grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 3px; }
  .heat .cell { height: 20px; font-size: 0; }
  .library .tree { width: 100%; border-right: none; }
  .library.has-cur .tree { display: none; }
  .library:not(.has-cur) .reader { display: none; }
  .reader-bar { padding: 8px 10px; flex-wrap: wrap; gap: 6px; }
  .reader-bar button { padding: 5px 10px; font-size: .85em; }
  .reader-body { padding: 4px 14px 80px; gap: 0; }
  .toc { display: none; }
  .md { font-size: 1em; line-height: 1.9; }
  .md h2 { font-size: 1.18em; }
  .quiz-top { flex-wrap: wrap; font-size: .85em; }
  .qcard { padding: 18px 16px; border-radius: 14px; }
  .qstem { font-size: 1.05em; }
  .opt { padding: 11px 12px; }
  .tf button { padding: 14px 8px; font-size: 1.15em; }
  .qfoot { flex-wrap: wrap; }
  .qfoot .big { width: 100%; }
  .kbd { display: none; }
  .exam-split { grid-template-columns: minmax(0, 1fr); height: auto; }
  .exam-split > div { padding: 14px; }
  .exam-split textarea { min-height: 40vh; }
  .kgrid { grid-template-columns: repeat(9, 1.9em); }
  .seg { flex-wrap: wrap; }
  .kv > span:first-child { width: 100%; }
  .break-banner { left: 12px; right: 12px; width: auto; bottom: calc(70px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  table.list td, table.list th { padding: 7px 4px; }
}

/* ================= 0.4：路线图首页、视频、分节学习、全屏幕适配 ================= */

/* 字号跟着屏幕走：大显示器、4K 电视上自动放大；用户在右上角调的 A−/A+ 仍然有效 */
:root { --auto: 1; font-size: calc(var(--fs) * var(--auto)); }
@media (min-width: 1920px) { :root { --auto: 1.06; } }
@media (min-width: 2560px) { :root { --auto: 1.18; } }
@media (min-width: 3200px) { :root { --auto: 1.35; } }
@media (min-width: 3840px) { :root { --auto: 1.55; } }
html, body, #root { height: 100vh; height: 100dvh; overscroll-behavior: none; }
body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
img, svg, iframe { max-width: 100%; }
.app { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
button.on-soft { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
button.ghost.on { color: var(--good); }
h3.sub { margin: 20px 0 10px; font-size: 1em; color: var(--ink-2); }
.rail .more-btn { display: none; }
.clock { font-size: 3em; font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: 2px; }

/* 首页顶部 */
.hero { display: flex; gap: 26px; align-items: center; padding: 26px 30px; border-radius: 22px; border: 1px solid var(--line);
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 16%, var(--card)) 0%, var(--card) 55%),
    var(--card); position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -60px; top: -70px; width: 240px; height: 240px; border-radius: 50%;
  background: color-mix(in srgb, var(--warn) 12%, transparent); pointer-events: none; }
.hero-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.hero-hi { font-size: 1.55em; font-weight: 700; letter-spacing: .02em; }
.hero-sub { color: var(--ink-2); font-size: .95em; }
.hero-bar { height: 10px; max-width: 520px; }
.hero-cta { display: flex; align-items: center; gap: 14px; text-align: left; max-width: 640px; padding: 14px 22px; border-radius: 16px; margin-top: 4px;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 28%, transparent); transition: transform .15s, box-shadow .15s; }
.hero-cta:hover { transform: translateY(-2px); }
.hero-cta > span:first-child { font-size: 1.5em; }
.hero-cta .cta-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.hero-cta .cta-t small { display: block; color: inherit; opacity: .8; font-size: .72em; font-weight: 400; }
.hero-cta .cta-m { white-space: nowrap; opacity: .9; font-size: .9em; }
.hero-done { padding: 14px 18px; border-radius: 14px; background: var(--good-soft); color: var(--good); font-weight: 600; max-width: 640px; }
.hero-chips { gap: 8px; }
.hero-side { display: flex; align-items: center; gap: 14px; cursor: pointer; position: relative; z-index: 1; flex-shrink: 0; }
.ring { width: 104px; height: 104px; flex-shrink: 0; }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 9; }
.ring-fg { fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round; transition: stroke-dasharray .8s; }
.ring-n { font-size: 30px; font-weight: 700; fill: var(--ink); }
.ring-l { font-size: 12px; fill: var(--ink-3); }
.hero-lv { display: flex; flex-direction: column; gap: 3px; }
.hero-lv b { font-size: 1.1em; }
.hero-lv small { color: var(--ink-3); font-size: .8em; }
.streak { display: inline-block; margin-top: 4px; padding: 3px 11px; border-radius: 20px; background: var(--warn-soft); color: var(--warn); font-size: .85em; font-weight: 600; white-space: nowrap; }

/* 三座山 */
.peaks { display: grid; gap: 14px; }
.peak-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px 12px; cursor: pointer; min-width: 0; transition: transform .15s, border-color .15s; }
.peak-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.peak-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.peak-days { color: var(--ink-2); font-size: .85em; white-space: nowrap; }
.peak-days b { font-size: 1.5em; color: var(--ink); font-variant-numeric: tabular-nums; }
.peak { display: block; width: 100%; height: auto; max-height: 150px; margin: 4px 0; }
.peak .climber { animation: bob 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes bob { 50% { transform: translateY(-2.5px); } }
.peak-cap b { display: block; font-size: .95em; }
.peak-cap small { color: var(--ink-3); font-size: .8em; }

/* 今天的路 */
.trail { position: relative; display: flex; flex-direction: column; gap: 10px; }
.trail::before { content: ''; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 3px; border-radius: 2px;
  background: repeating-linear-gradient(to bottom, var(--line-2) 0 6px, transparent 6px 12px); }
.stop { display: flex; align-items: center; gap: 14px; position: relative; padding: 10px 14px 10px 0; }
.stop .node { width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 2px solid var(--line-2); display: flex; align-items: center; justify-content: center;
  font-size: 1.2em; flex-shrink: 0; z-index: 1; transition: transform .2s; }
.stop-body { flex: 1; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 11px 16px; cursor: pointer; transition: border-color .15s, transform .15s; }
.stop-body:hover { border-color: var(--accent); }
.stop-t { display: flex; gap: 8px; align-items: baseline; line-height: 1.5; }
.stop-t > span:last-child { min-width: 0; }
.stop-body small { color: var(--ink-3); font-size: .82em; }
.stop.now .node { border-color: var(--accent); background: var(--accent-soft); transform: scale(1.12); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent); animation: pulse 2.2s ease-in-out infinite; }
.stop.now .stop-body { border-color: var(--accent); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 12%, transparent); }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 5%, transparent); } }
.stop.done .node { background: var(--good); border-color: var(--good); color: #fff; font-size: 1em; font-weight: 700; }
.stop.done .stop-body { background: transparent; border-style: dashed; cursor: default; }
.stop.done .stop-t { color: var(--ink-3); text-decoration: line-through; }
.stop.end .stop-body { background: transparent; border: none; padding: 0; cursor: default; }
.stop.end .node { border-style: dashed; }
.stop.end.done .node { background: var(--warn-soft); border-color: var(--warn); border-style: solid; }
.alloc { margin-top: 14px; cursor: pointer; }
.alloc-bar { display: flex; height: 12px; border-radius: 8px; overflow: hidden; background: var(--quote); gap: 2px; }
.alloc-bar i { display: block; height: 100%; }
.alloc-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: .84em; color: var(--ink-2); }
.alloc-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }

/* 撒花 */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 15px; border-radius: 2px; opacity: .9; animation: fall 1.8s cubic-bezier(.2, .6, .4, 1) forwards; }
@keyframes fall { to { top: 105%; opacity: 0; rotate: 540deg; translate: 30px 0; } }

/* 计划页：一周和比例 */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wday { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wday.today { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.wday small { color: var(--ink-3); font-size: .78em; }
.wbar { display: flex; gap: 2px; min-height: 22px; border-radius: 6px; overflow: hidden; align-items: stretch; }
.wbar i { color: #fff; font-style: normal; font-size: .72em; display: flex; align-items: center; justify-content: center; min-width: 4px; white-space: nowrap; overflow: hidden; }

/* 成就 */
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.badge-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--panel); display: flex; flex-direction: column; gap: 4px; opacity: .75; }
.badge-card.got { opacity: 1; background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
.badge-card small { color: var(--ink-3); font-size: .78em; line-height: 1.4; }
.badge-medal { font-size: 1.6em; line-height: 1; }
.update { padding: 12px 0; border-bottom: 1px solid var(--line); }
.update:last-child { border-bottom: none; }
.update .md { font-size: .95em; line-height: 1.8; }

/* 分节学习 */
.stepper { padding-top: 14px; }
.step-dots { display: flex; gap: 4px; margin-bottom: 6px; }
.step-dots i { flex: 1; height: 7px; border-radius: 4px; background: var(--line); cursor: pointer; transition: background .2s; max-width: 60px; }
.step-dots i.done { background: var(--good); }
.step-dots i.cur { background: var(--accent); }
.step-nav { display: flex; gap: 10px; align-items: center; margin: 34px 0 10px; flex-wrap: wrap; }
.recall { margin: 34px 0 10px; padding: 20px 22px; border-radius: 16px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); animation: fade .25s; }
.recall b { font-size: 1.1em; color: var(--accent); }
.recall p { line-height: 1.8; margin: 8px 0 12px; }
.verify-note { margin: 10px 36px 0; padding: 8px 14px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: .88em; }

/* 视频清单 */
.vpanel { margin: 16px 0 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.vrow { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.vplay { width: 42px; height: 42px; border-radius: 50%; padding: 0; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); flex-shrink: 0; font-size: .95em; }
.vinfo { flex: 1; min-width: 0; cursor: pointer; }
.vinfo b { display: block; font-weight: 600; line-height: 1.45; font-size: .95em; }
.vinfo small { display: block; color: var(--ink-3); font-size: .8em; line-height: 1.5; }
.vrow.watched .vinfo b { color: var(--ink-2); }
.vadd { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.vadd input { flex: 1; min-width: 180px; }

/* 视频播放器 */
.player { position: fixed; z-index: 50; background: #111; border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); overflow: hidden; display: flex; flex-direction: column; color: #eee; }
.player-bar { display: flex; align-items: center; gap: 2px; padding: 5px 6px 5px 12px; background: #1d1f21; cursor: grab; user-select: none; touch-action: none; min-height: 40px; }
.player.dragging .player-bar { cursor: grabbing; }
.player-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85em; }
.player-bar button { color: #cfcfcf; padding: 4px 8px; white-space: nowrap; }
.player-bar button:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.player-bar button.on { color: #8fd19e; }
.player-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-shield { position: absolute; inset: 0; }
.player-none { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.player-foot { display: flex; justify-content: space-between; gap: 10px; padding: 5px 12px; font-size: .74em; color: #9a9a9a; background: #1d1f21; }
.player-foot a { color: #9fc7ba; white-space: nowrap; }
.player-grip { position: absolute; right: 0; bottom: 0; width: 20px; height: 20px; cursor: nwse-resize; touch-action: none;
  background: linear-gradient(135deg, transparent 50%, rgba(255, 255, 255, .35) 50% 58%, transparent 58% 70%, rgba(255, 255, 255, .35) 70% 78%, transparent 78%); }
.player.wide { left: 84px; top: 47px; right: 0; bottom: 0; width: auto; border-radius: 0; }
.player.wide .player-frame, .player:fullscreen .player-frame { flex: 1; aspect-ratio: auto; }
.player.wide .player-bar { cursor: default; }
.player:fullscreen { left: 0 !important; top: 0 !important; width: 100vw !important; height: 100vh; border-radius: 0; }
.player.mini { left: auto !important; top: auto !important; right: 18px; bottom: 18px; width: min(340px, calc(100vw - 36px)) !important; border-radius: 24px; }
.player.mini .player-frame { position: absolute; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
.player.mini .player-bar { cursor: default; padding-left: 16px; }

/* 手机上的"更多" */
.more-sheet { position: fixed; inset: 0; z-index: 29; background: rgba(30, 26, 20, .32); animation: fade .15s; display: none; }
.more-grid { position: absolute; left: 10px; right: 10px; bottom: calc(68px + env(safe-area-inset-bottom)); background: var(--card); border-radius: 18px; padding: 12px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; box-shadow: 0 12px 40px rgba(0, 0, 0, .2); }
.more-grid button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 4px; border: none; background: var(--panel); border-radius: 14px; font-size: .88em; color: var(--ink-2); }
.more-grid button svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.more-grid button.on { color: var(--accent); background: var(--accent-soft); }

/* 大屏幕：内容区放宽 */
@media (min-width: 1700px) {
  .page.narrow > * { max-width: 1320px; }
  .rail { width: 96px; }
  .player.wide { left: 96px; }
  .tree { width: 360px; }
}
/* 平板和小笔记本 */
@media (max-width: 1180px) {
  .tree { width: 260px; }
  .toc { display: none; }
  .reader-body { padding: 8px 26px 120px; }
  .page { padding: 20px 20px 60px; }
  .hero { padding: 22px 22px; gap: 18px; }
}
/* 触摸屏：按钮够大 */
@media (pointer: coarse) {
  button { min-height: 40px; }
  button.small { min-height: 34px; padding: 5px 12px; }
  .ch, .grp-h, .dir-h { padding-top: 10px; padding-bottom: 10px; }
  input, select { min-height: 40px; }
  input[type='checkbox'], input[type='radio'] { min-height: 0; width: 1.25em; height: 1.25em; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* 手机 */
@media (max-width: 760px) {
  .rail { overflow: visible; justify-content: space-around; }
  .rail .extra { display: none; }
  .rail .more-btn { display: flex; }
  .rail button { font-size: .7em; padding: 6px 0 4px; letter-spacing: 0; }
  .rail button svg { width: 23px; height: 23px; }
  .more-sheet { display: block; }
  .topline .title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .hero { flex-direction: column; align-items: stretch; padding: 18px 16px; gap: 14px; border-radius: 18px; }
  .hero-hi { font-size: 1.3em; }
  .hero-side { order: -1; justify-content: flex-start; }
  .ring { width: 68px; height: 68px; }
  .hero-lv { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
  .hero-lv .streak { margin-top: 0; }
  .hero-cta { padding: 12px 14px; gap: 10px; }
  .hero-cta .cta-t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .peaks { gap: 8px; }
  .peak-card { padding: 10px 8px 8px; border-radius: 14px; }
  .peak-top { flex-direction: column; align-items: flex-start; gap: 2px; }
  .peak-days b { font-size: 1.25em; }
  .peak-cap b { font-size: .8em; }
  .peak-cap small { font-size: .68em; display: block; line-height: 1.35; }
  .stop { gap: 10px; padding-right: 0; }
  .stop .node { width: 38px; height: 38px; }
  .trail::before { left: 18px; }
  .stop-body { padding: 10px 12px; }
  .stop-t { flex-wrap: wrap; }
  .week { grid-template-columns: repeat(7, minmax(52px, 1fr)); overflow-x: auto; }
  .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clock { font-size: 2.4em; }
  .verify-note { margin: 8px 14px 0; }
  .reader-bar .seg.small button { padding: 5px 9px; }
  .vadd input { min-width: 100%; }
  /* 视频固定在最上面，下面照常看教材 */
  .player.float, .player.wide { left: 0 !important; top: 0 !important; right: 0; bottom: auto; width: 100% !important; border-radius: 0; padding-top: env(safe-area-inset-top); }
  .player.wide .player-frame { flex: none; aspect-ratio: 16 / 9; }
  .app:has(.player.float) .main, .app:has(.player.wide) .main { padding-top: calc(56.25vw + 66px + env(safe-area-inset-top)); }
  .app:has(.player.float) .topline, .app:has(.player.wide) .topline { display: none; }
  .player.mini { bottom: calc(68px + env(safe-area-inset-bottom)); right: 10px; }
  .player-foot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* 很窄的手机 */
@media (max-width: 380px) {
  .page { padding: 12px 8px 40px; }
  .peak-cap small { display: none; }
  .hero-cta .cta-m { display: none; }
}
/* 手机横过来：导航放到左边，把高度让给内容 */
@media (max-height: 520px) and (orientation: landscape) and (max-width: 1000px) {
  .app { flex-direction: row; }
  .rail { position: static; flex-direction: column; width: 58px; height: auto; padding: 4px 2px; border-top: none; overflow-y: auto; justify-content: flex-start; }
  .rail .brand, .rail .extra { display: none; }
  .rail .more-btn { display: flex; }
  .rail .bottom { display: contents; }
  .rail button { flex: 0 0 auto; font-size: .62em; padding: 5px 0 3px; }
  .main { padding-bottom: 0; }
  .more-sheet { display: block; }
  .more-grid { left: 68px; bottom: 10px; right: 10px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .topline { min-height: 36px; padding-top: 4px; padding-bottom: 4px; }
  .player.float, .player.wide { left: auto !important; right: 8px; top: 8px !important; width: 46vw !important; border-radius: 12px; padding-top: 0; }
  .app:has(.player.float) .main, .app:has(.player.wide) .main { padding-top: 0; }
  .app:has(.player.float) .topline, .app:has(.player.wide) .topline { display: flex; }
  .toast, .break-banner { bottom: 14px; }
}
@media print {
  .rail, .topline, .reader-bar, .tree, .toc, .player, .toast { display: none !important; }
  .reader, .page, .content, .app, html, body, #root { height: auto !important; overflow: visible !important; }
}
