/* ============================================================
   行测知行 · 设计令牌与组件（第二批：清爽、安静、专业的学习工作台）
   所有颜色/字号/间距/圆角/阴影来自本文件令牌，页面内不得临时配色。
   ============================================================ */
:root{
  /* 色彩令牌 */
  --bg:#F5F7FB; --surface:#FFFFFF;
  --primary:#5cb85c; --primary-strong:#2E7D32; --primary-press:#449d44; --primary-weak:#f1f9ef;
  --primary-fill:#5cb85c; --primary-ink:#fff; --primary-border:#4cae4c;
  --ink:#172033; --ink-2:#566276; --line:#E3E8F0;
  --ok:#15803D; --ok-bg:#F0FDF4; --ok-line:#BBF7D0;
  --bad:#B91C1C; --bad-bg:#FEF2F2; --bad-line:#FECACA;
  --warn:#B45309; --warn-bg:#FFFBEB; --warn-line:#FDE68A;
  --info:#3c763d; --info-bg:#f1f9ef; --info-line:#d6e9c6;
  /* 圆角 */
  --r-lg:12px; --r-md:8px; --r-sm:6px;
  /* 间距 4/8/12/16/24/32 */
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:24px; --sp-6:32px;
  /* 阴影：默认靠边线，浮层才用 */
  --shadow-float:0 8px 24px rgba(23,32,51,.16);
  /* 字号 */
  --fs-title:24px; --fs-block:18px; --fs-read:16px; --fs-note:13px;
}
html.font-large{ --fs-read:18px; --fs-title:28px; --fs-block:20px; }

*{box-sizing:border-box; margin:0; padding:0;}
html{font-size:16px;}
body{
  font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  background:var(--bg); color:var(--ink); min-height:100vh;
  font-size:var(--fs-read); line-height:1.6;
}

/* ---------- 头部（白底青绿主题） ---------- */
header.site-head{
  background:var(--surface); border-bottom:1px solid var(--line);
  padding:var(--sp-3) var(--sp-4);
  display:flex; align-items:center; gap:var(--sp-3); flex-wrap:wrap;
}
.site-head .logo{font-size:20px; font-weight:800; color:var(--primary); letter-spacing:.5px;}
.site-head .logo small{font-size:13px; font-weight:500; color:var(--ink-2); margin-left:var(--sp-2);}
.site-head .sub{font-size:var(--fs-note); color:var(--ink-2);}
.site-head .who{margin-left:auto; display:flex; align-items:center; gap:var(--sp-2); font-size:var(--fs-note);}
.site-head .who .chip{background:var(--primary-weak); color:var(--primary); padding:4px 10px; border-radius:var(--r-sm);}
.site-head .who button{border:1px solid var(--line); background:var(--surface); color:var(--ink-2);
  padding:6px 12px; border-radius:var(--r-md); cursor:pointer; font-size:var(--fs-note);}
.site-head .who button:hover{border-color:var(--primary); color:var(--primary);}

/* ---------- 导航 ---------- */
nav.tabs{
  display:flex; gap:var(--sp-2); margin:var(--sp-4) auto 0;
  max-width:1280px; padding:0 var(--sp-4); flex-wrap:wrap;
}
nav.tabs button{
  padding:10px 16px; min-height:44px; border:1px solid var(--line); background:var(--surface);
  border-radius:var(--r-md); font-size:15px; cursor:pointer; color:var(--primary); font-weight:600;
}
nav.tabs button.active{background:var(--primary); border-color:var(--primary); color:#fff;}
nav.tabs button:focus-visible{outline:2px solid var(--primary); outline-offset:2px;}

/* ---------- 布局 ---------- */
.wrap{max-width:720px; margin:0 auto; padding:var(--sp-4) var(--sp-4) 64px;}
.wrap--wide{max-width:1280px;}
.drill-grid{display:grid; grid-template-columns:1fr; gap:var(--sp-4); align-items:start;}
@media(min-width:1024px){
  .drill-grid{grid-template-columns:55fr 45fr;}
}

/* ---------- 卡片 ---------- */
.card{
  background:var(--surface); border:1px solid #DFE6EF; border-radius:var(--r-lg);
  padding:var(--sp-4); margin-bottom:var(--sp-4);
}
.card h3{font-size:var(--fs-block); margin-bottom:var(--sp-3); font-weight:700;}
.card h3 .mini{font-size:var(--fs-note); font-weight:400; color:var(--ink-2); margin-left:var(--sp-2);}

/* ---------- 按钮 ---------- */
.btn{
  display:block; width:100%; border:none; background:var(--primary-strong); color:#fff;
  padding:13px var(--sp-4); min-height:44px; font-size:16px; font-weight:700;
  border-radius:var(--r-md); cursor:pointer;
}
.btn:hover{background:#256428;}
.btn:disabled{opacity:1; background:#E7ECF3; color:var(--ink-2); cursor:not-allowed;}
.btn.ghost{background:var(--surface); color:var(--primary-strong); border:1.5px solid var(--primary-strong); margin-top:var(--sp-2);}
.btn.danger{background:var(--surface); color:var(--bad); border:1.5px solid var(--bad);}
.btn.orange{background:var(--primary-strong);}
.btn.sm{padding:9px var(--sp-4); font-size:14px; min-height:40px;}
.btn:focus-visible{outline:2px solid var(--ink); outline-offset:2px;}
button:focus-visible{outline:2px solid var(--primary); outline-offset:2px;}

/* ---------- 提示条 ---------- */
.banner{
  display:flex; align-items:center; gap:var(--sp-2); flex-wrap:wrap;
  background:var(--info-bg); border:1px solid var(--info-line); color:var(--info);
  border-radius:var(--r-md); padding:9px var(--sp-3); font-size:14px; margin-bottom:var(--sp-3);
}
.banner.warn{background:var(--warn-bg); border-color:var(--warn-line); color:var(--warn);}
.banner button{margin-left:auto; border:none; background:var(--info-line); color:var(--info);
  border-radius:var(--r-md); padding:5px 10px; cursor:pointer; font-size:13px; min-height:32px;}

/* ---------- 首页 ---------- */
.home-greet{font-size:var(--fs-title); font-weight:800; margin-bottom:var(--sp-1);}
.home-sub{color:var(--ink-2); font-size:14px; margin-bottom:var(--sp-4);}
.home-reason{
  background:var(--primary-weak); border:1px solid var(--info-line); color:var(--info);
  border-radius:var(--r-md); padding:var(--sp-3); font-size:14.5px; line-height:1.7; margin-bottom:var(--sp-4);
}
.home-stats{display:flex; gap:var(--sp-2); flex-wrap:wrap; margin-bottom:var(--sp-4);}
.home-stats span{background:var(--bg); border:1px solid var(--line); color:var(--ink-2);
  padding:5px 10px; border-radius:var(--r-sm); font-size:13px;}
.home-actions .btn{margin-bottom:var(--sp-2);}
.intro-note{font-size:var(--fs-note); color:var(--ink-2); line-height:1.8;}

/* ---------- 登录 ---------- */
.auth h2{font-size:var(--fs-block); margin-bottom:var(--sp-1);}
.auth .hint{font-size:13px; color:var(--ink-2); margin-bottom:var(--sp-4);}
.field{margin-bottom:var(--sp-3);}
.field label{display:block; font-size:13px; color:var(--ink-2); margin-bottom:var(--sp-1);}
.field input{
  width:100%; padding:11px var(--sp-3); min-height:44px; border:1.5px solid var(--line);
  border-radius:var(--r-md); font-size:16px; outline:none; background:var(--surface);
}
.field input:focus{border-color:var(--primary);}
.auth-err{color:var(--bad); font-size:13px; min-height:18px; margin:2px 0 var(--sp-2);}

/* ---------- 题卡 ---------- */
.qhead{display:flex; align-items:center; gap:var(--sp-2); margin-bottom:var(--sp-3); flex-wrap:wrap;}
.badge{font-size:13px; padding:3px 9px; border-radius:var(--r-sm); background:var(--primary-weak); color:var(--primary); font-weight:600;}
.badge.tier-warn{background:var(--warn-bg); color:var(--warn);}
.badge.review{background:var(--bad-bg); color:var(--bad);}
.badge.ok{background:var(--ok-bg); color:var(--ok);}
.timer{margin-left:auto; font-variant-numeric:tabular-nums; font-size:14px; font-weight:700; color:var(--ink-2);}
.timer.slow{color:var(--warn);}
.timer.vslow{color:var(--bad);}

/* 来源层级：短来源 + 核验短标记 + 可展开详情 */
.qsource{font-size:13px; color:var(--ink-2); margin-bottom:var(--sp-3); line-height:1.7;}
.qsource .verify{font-weight:600;}
.qsource .verify.ok{color:var(--ok);} .qsource .verify.pending{color:var(--warn);}
.qsource details{margin-top:2px;}
.qsource summary{cursor:pointer; color:var(--primary); font-size:13px;}
.qsource .src-body{margin-top:var(--sp-1); overflow-wrap:anywhere;}
.qsource a{color:var(--primary);}

.material{
  font-size:var(--fs-read); line-height:1.85; color:var(--ink);
  background:var(--bg); border-radius:var(--r-md); padding:var(--sp-3); margin-bottom:var(--sp-3);
  overflow-x:auto;
}
.material table{border-collapse:collapse; width:100%; font-size:14px; margin:6px 0; background:var(--surface);}
.material th,.material td{border:1px solid var(--line); padding:5px 8px; text-align:center;}
.material th{background:var(--primary-weak);}
.material img{max-width:100%; height:auto; vertical-align:middle; cursor:zoom-in; border-radius:var(--r-sm);}
.material p{margin:6px 0;}
.stem{font-size:var(--fs-read); font-weight:600; line-height:1.7; margin-bottom:var(--sp-4);}

/* 选项：点击只选中，确认后才交卷 */
.opts{display:flex; flex-direction:column; gap:9px;}
.opt{
  text-align:left; padding:12px 14px; min-height:44px; border:1.5px solid var(--line); border-radius:var(--r-md);
  background:var(--surface); font-size:var(--fs-read); line-height:1.6; cursor:pointer; color:var(--ink);
  display:flex; gap:var(--sp-2); align-items:flex-start;
}
.opt .k{color:var(--primary); font-weight:700; flex:none;}
.opt .t{flex:1;}
.opt .k img,.opt .t img{max-width:100%; height:auto; vertical-align:middle;}
.opt p{display:inline; margin:0;}
.opt:hover:not(:disabled){border-color:var(--primary);}
.opt.selected{border-color:var(--primary); background:var(--primary-weak); box-shadow:inset 0 0 0 1px var(--primary);}
.opt:disabled{cursor:default;}
.opt.dim{opacity:.45;}
.opt.right{border-color:var(--ok); background:var(--ok-bg);}
.opt.wrong{border-color:var(--bad); background:var(--bad-bg);}

/* 确认栏：桌面随流，手机吸底 + 安全区 */
.confirm-bar{margin-top:var(--sp-4);}
@media(max-width:719px){
  .confirm-bar{
    position:sticky; bottom:0; margin:var(--sp-3) calc(-1 * var(--sp-4)) 0;
    padding:var(--sp-3) var(--sp-4) calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
    background:var(--surface); border-top:1px solid var(--line);
  }
}
/* 手机长材料快捷锚点 */
.jump-chips{display:none; gap:var(--sp-2); position:fixed; right:var(--sp-3); bottom:calc(76px + env(safe-area-inset-bottom,0px)); z-index:30;}
@media(max-width:719px){ .jump-chips.has-both{display:flex; flex-direction:column;} }
.jump-chips button{border:1px solid var(--line); background:var(--surface); color:var(--ink-2);
  border-radius:999px; padding:8px 12px; font-size:13px; cursor:pointer; box-shadow:var(--shadow-float);}

.verdict{padding:var(--sp-3) var(--sp-4); border-radius:var(--r-md); font-weight:700; font-size:15px; margin-top:var(--sp-4);}
.verdict.ok{background:var(--ok-bg); color:var(--ok);}
.verdict.no{background:var(--bad-bg); color:var(--bad);}

/* 答后解析：结构化区块 */
.exp-sec{margin-top:var(--sp-3); border:1px solid var(--line); border-radius:var(--r-md); overflow:hidden;}
.exp-sec .hd{background:var(--bg); padding:8px var(--sp-3); font-size:13px; font-weight:700; color:var(--ink-2);
  display:flex; align-items:center; gap:6px;}
.exp-sec .bd{padding:var(--sp-3); font-size:14.5px; line-height:1.85; color:var(--ink);}
.exp-sec.warn{border-color:var(--warn-line);} .exp-sec.warn .hd{background:var(--warn-bg); color:var(--warn);}
.exp-sec .bd p{margin:6px 0;}
.tags-row{display:flex; gap:var(--sp-2); flex-wrap:wrap; padding:var(--sp-2) var(--sp-3) var(--sp-3);}
.tag-chip{border:1px solid var(--line); background:var(--surface); color:var(--ink-2);
  border-radius:999px; padding:7px 12px; min-height:36px; font-size:13px; cursor:pointer;}
.tag-chip.on{border-color:var(--primary); background:var(--primary-weak); color:var(--primary); font-weight:600;}
.tag-saved{font-size:13px; color:var(--ok); padding:0 var(--sp-3) var(--sp-2);}

.perf-line{margin-top:var(--sp-3); font-size:13px; color:var(--info); background:var(--info-bg);
  border-radius:var(--r-md); padding:8px var(--sp-3); line-height:1.7;}

/* ---------- 等级行 ---------- */
.lvwrap{display:flex; align-items:center; gap:var(--sp-2); font-size:13px;}
.lvname{font-weight:700; color:var(--ink); min-width:34px;}
.lvbar{flex:1; height:9px; background:var(--bg); border-radius:999px; overflow:hidden;}
.lvbar i{display:block; height:100%; border-radius:999px;}
.lv1 i{background:#60A5FA;} .lv2 i{background:var(--primary);} .lv3 i{background:var(--ok);}
.lvtag{font-size:13px; color:var(--ink-2); min-width:36px; text-align:right;}
.kp-row{padding:var(--sp-3) 0; border-bottom:1px dashed var(--line);}
.kp-row:last-child{border-bottom:none;}
.kp-top{display:flex; align-items:baseline; gap:var(--sp-2);}
.kp-name{font-weight:700; font-size:15px;}
.kp-tag{font-size:13px; padding:2px 8px; border-radius:var(--r-sm); font-weight:600;}
.kp-tag.ok{background:var(--ok-bg); color:var(--ok);}
.kp-tag.mid{background:var(--warn-bg); color:var(--warn);}
.kp-tag.low{background:var(--bad-bg); color:var(--bad);}
.kp-tag.none{background:var(--bg); color:var(--ink-2);}
.kp-meta{font-size:13px; color:var(--ink-2); display:flex; gap:14px; margin-top:5px; flex-wrap:wrap;}
.sumline{font-size:14px; color:var(--ink); line-height:2;}

/* ---------- 雷达 / 大纲 ---------- */
.radarbox{text-align:center;}
.radarbox svg{max-width:100%; height:auto;}
.sy-ch{padding:var(--sp-3) 0 6px; border-bottom:1px solid var(--line);}
.sy-ch-top{display:flex; align-items:center; gap:var(--sp-2); margin-bottom:var(--sp-2); flex-wrap:wrap;}
.sy-sub{display:flex; align-items:center; gap:var(--sp-2); padding:7px 4px 7px 14px; font-size:13.5px; border-bottom:1px dashed var(--bg);}
.sy-dot{width:9px; height:9px; border-radius:50%; flex:none;}
.sy-dot.g{background:#22C55E;} .sy-dot.y{background:#EAB308;} .sy-dot.r{background:#EF4444;} .sy-dot.n{background:#CBD5E1;}
.sy-sub .go{margin-left:auto; border:none; background:var(--primary-weak); color:var(--primary); border-radius:var(--r-md); padding:4px 10px; cursor:pointer; font-size:13px; flex:none; min-height:32px;}
.sy-sub.na .go{background:var(--bg); color:#94A3B8; cursor:default;}

/* ---------- 题库页 ---------- */
.filter-group{margin-bottom:var(--sp-3);}
.filter-group .fl{font-size:13px; color:var(--ink-2); margin-bottom:6px;}
.chips{display:flex; gap:var(--sp-2); flex-wrap:wrap;}
.fchip{border:1px solid var(--line); background:var(--surface); color:var(--ink-2);
  border-radius:var(--r-md); padding:8px 12px; min-height:38px; font-size:13.5px; cursor:pointer;}
.fchip.on{border-color:var(--primary); background:var(--primary-weak); color:var(--primary); font-weight:600;}
.statline{font-size:14px; color:var(--ink); line-height:1.9;}

/* ---------- 练习建议表 ---------- */
.paper{width:100%; border-collapse:collapse; font-size:13.5px;}
.paper th{background:var(--bg); padding:8px 6px; border-bottom:2px solid var(--line); text-align:left;}
.paper td{padding:9px 6px; border-bottom:1px solid var(--line);}
.paper tr{cursor:pointer;}
.paper tr:hover td{background:var(--bg);}
.legend{font-size:13px; color:var(--ink-2); margin-top:10px; line-height:1.9;}

/* ---------- 设置 ---------- */
.set-row{display:flex; align-items:center; gap:var(--sp-3); padding:var(--sp-3) 0; border-bottom:1px dashed var(--line); flex-wrap:wrap;}
.set-row .lab{font-weight:600; font-size:14.5px;}
.set-row .desc{font-size:13px; color:var(--ink-2); width:100%;}
.set-row .act{margin-left:auto;}

/* ---------- 浮层：图片放大 ---------- */
.lightbox{
  position:fixed; inset:0; background:rgba(23,32,51,.78); z-index:100;
  display:flex; align-items:center; justify-content:center; padding:var(--sp-4); cursor:zoom-out;
}
.lightbox[hidden]{display:none;}
.lightbox img{max-width:96vw; max-height:92vh; background:var(--surface); border-radius:var(--r-md); box-shadow:var(--shadow-float);}

.loading{padding:50px 0; text-align:center; color:var(--ink-2); font-size:14px;}
.footnote{font-size:13px; color:var(--ink-2); text-align:center; margin-top:var(--sp-5); line-height:1.7;}
.intro h2{font-size:var(--fs-block); margin-bottom:10px;}
.intro ul{list-style:none; margin:12px 0 18px;}
.intro li{padding:9px 0 9px 28px; position:relative; font-size:14.5px; color:var(--ink); border-bottom:1px dashed var(--line);}
.intro li::before{content:"✓"; position:absolute; left:4px; color:var(--primary); font-weight:700;}

/* ---------- 第三批：分块训练与知识树 ---------- */
.blocks-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:var(--sp-4);}
/* 首页主入口：资料分析独占一行 */
.blocks-grid--hero{grid-template-columns:minmax(0,1fr);}
.block-card{margin-bottom:0;}
/* 建设中模块：一行紧凑提示 */
.coming-strip{display:flex; align-items:center; gap:var(--sp-4); flex-wrap:wrap;
  padding:var(--sp-3) var(--sp-4); color:var(--ink-2);}
.coming-label{font-size:13px; font-weight:700; white-space:nowrap;}
.coming-items{display:flex; gap:var(--sp-3); flex-wrap:wrap; flex:1;}
.coming-item{display:inline-flex; align-items:baseline; gap:6px; font-size:13.5px;
  color:var(--ink-2); background:var(--bg); border:1px solid var(--line);
  border-radius:var(--r-sm); padding:3px 10px;}
.coming-item small{font-size:13px; color:var(--ink-3, var(--ink-2));}
@media(max-width:719px){
  .coming-strip{align-items:flex-start; flex-direction:column; gap:var(--sp-2);}
}
.block-card.block-ok{border-color:var(--ok-line); background:linear-gradient(180deg, var(--ok-bg), var(--surface) 60%);}
.block-card.block-dim{color:var(--ink-2);}
.bc-top{display:flex; align-items:center; gap:var(--sp-2); margin-bottom:var(--sp-2);}
.bc-name{font-weight:700; font-size:16px; color:var(--ink);}
.block-dim .bc-name{color:var(--ink-2);}
.bc-meta{font-size:13px; color:var(--ink-2); margin-bottom:var(--sp-3);}

.tree-root{
  font-size:var(--fs-block); font-weight:800; color:var(--primary);
  background:var(--primary-weak); border:1px solid var(--info-line);
  border-radius:var(--r-md); padding:10px var(--sp-3); margin-bottom:var(--sp-3);
}
.tree-mod{border-left:3px solid var(--line); padding-left:var(--sp-3); margin-bottom:var(--sp-4);}
.tree-mod.dim-tree{opacity:.55;}
.tm-head{display:flex; align-items:center; gap:var(--sp-2); margin-bottom:var(--sp-2);}
.tm-name{font-weight:700; font-size:16px;}
.tm-tag{font-size:13px; color:var(--ink-2); background:var(--bg); border-radius:var(--r-sm); padding:2px 8px;}
.tree-block{
  border:1px solid var(--line); border-radius:var(--r-md);
  padding:var(--sp-2) var(--sp-3); margin-bottom:var(--sp-2);
}
.tree-block.lit{border-color:var(--ok-line); background:var(--ok-bg);}
.tree-block.dim{opacity:.62;}
.tb-head{display:flex; align-items:center; gap:var(--sp-2); flex-wrap:wrap;}
.tb-name{font-weight:600; font-size:14.5px;}
.tb-subs{margin-top:6px; display:flex; gap:6px; flex-wrap:wrap;}
.sy-chip{font-size:13px; padding:2px 8px; border-radius:999px;
  background:var(--bg); color:var(--ink-2); border:1px solid var(--line);}
.sy-chip.lit{background:var(--primary-weak); color:var(--primary); border-color:var(--info-line); font-weight:600;}
.tree-block .go{margin-left:auto; border:none; background:var(--primary-weak); color:var(--primary);
  border-radius:var(--r-md); padding:4px 12px; cursor:pointer; font-size:13px; min-height:30px;}

/* ---------- 训练系统面板 ---------- */
.module-card{cursor:pointer; transition:border-color .15s;}
.module-card:hover{border-color:var(--primary);}
.bc-subs{display:flex; gap:6px; flex-wrap:wrap; margin-bottom:var(--sp-3);}

/* ---------- 错题集 ---------- */
.rv-row{display:flex; align-items:center; gap:var(--sp-2); padding:10px 0;
  border-bottom:1px dashed var(--line); flex-wrap:wrap;}
.rv-row:last-child{border-bottom:none;}
.rv-kp{font-weight:600; font-size:14.5px; margin-right:var(--sp-2);}
.rv-sub{font-size:13px; color:var(--ink-2); margin-right:var(--sp-2);}
.rv-tag{font-size:13px; color:var(--warn); background:var(--warn-bg);
  border-radius:var(--r-sm); padding:2px 8px;}
.rv-act{margin-left:auto; display:flex; align-items:center; gap:var(--sp-2);}
.rv-due{font-size:13px; color:var(--bad); font-weight:600;}
.rv-act .go{border:1px solid var(--primary); background:var(--surface); color:var(--primary);
  border-radius:var(--r-md); padding:6px 12px; cursor:pointer; font-size:13px; min-height:36px;}

/* ---------- 知识树（真树状连线） ---------- */
.ktree{margin-top:var(--sp-2);}
.ktree-root{
  display:inline-block; font-size:var(--fs-block); font-weight:800; color:var(--primary);
  background:var(--primary-weak); border:1px solid var(--info-line);
  border-radius:var(--r-md); padding:10px var(--sp-5);
}
.ktree ul{list-style:none; margin:0; padding:0 0 0 var(--sp-5);}
.ktree li{position:relative; padding:var(--sp-2) 0 var(--sp-2) var(--sp-5);}
.ktree li::before{content:""; position:absolute; left:0; top:0; bottom:0;
  border-left:2px solid var(--line);}
.ktree li:last-child::before{height:26px; bottom:auto;}
.ktree li::after{content:""; position:absolute; left:0; top:26px; width:var(--sp-5);
  border-top:2px solid var(--line);}
.knode{
  display:flex; align-items:center; gap:var(--sp-2); flex-wrap:wrap;
  border:1px solid var(--line); border-radius:var(--r-md); background:var(--surface);
  padding:10px var(--sp-3);
}
.knode.mod{background:var(--primary-weak); border-color:var(--info-line);}
.knode.lit{border-color:var(--ok-line); background:var(--ok-bg);}
.knode.dim{opacity:.6;}
.knode.locked{opacity:.55; border-style:dashed;}
.kn-name{font-weight:700; font-size:15px; color:var(--ink);}
.knode.dim .kn-name{color:var(--ink-2);}
.kn-meta{font-size:13px; color:var(--ink-2);}
.kn-subs{width:100%; display:flex; gap:6px; flex-wrap:wrap;}
.kn-subs .sy-chip{font-size:13px; padding:2px 8px; border-radius:999px;
  background:var(--bg); color:var(--ink-2); border:1px solid var(--line);}
.kn-subs .sy-chip.lit{background:var(--primary-weak); color:var(--primary);
  border-color:var(--info-line); font-weight:600;}
.knode .go{margin-left:auto; border:1px solid var(--primary); background:var(--surface);
  color:var(--primary); border-radius:var(--r-md); padding:5px 12px; cursor:pointer;
  font-size:13px; min-height:32px;}

/* ---------- v0.9 复查补丁：图片选项网格 / 状态可读性 ---------- */
.opts-img{display:grid ; grid-template-columns:repeat(2, minmax(0,1fr)); gap:var(--sp-3);}
@media(max-width:719px){ .opts-img{grid-template-columns:1fr;} }
.zoom-mini{border:1px solid var(--line); background:var(--surface); color:var(--primary);
  border-radius:var(--r-sm); padding:2px 8px; font-size:13px; cursor:pointer; margin-left:6px;}
.knode.dim{opacity:1; background:var(--bg);}
.knode.dim .kn-name{color:var(--ink-2);}
.knode.locked{opacity:1; background:var(--bg); border-style:dashed;}

/* 六模块题库：沿用现有设计令牌 */
.modules-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.module-card .bc-top{margin-bottom:16px}.module-note{font-size:13px;color:var(--ink-2);line-height:1.7;min-height:2.5em}.module-actions{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}.bank-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.bank-select{display:flex;flex-direction:column;gap:8px;font-size:13px;color:var(--ink-2)}.bank-select select{width:100%;padding:12px;border:1px solid var(--line,#ddd);border-radius:10px;background:var(--paper,#fff);color:var(--ink);font:inherit}.drill-grid.drill-grid--single{grid-template-columns:minmax(0,1fr);max-width:860px;margin:auto}.drill-col-mat[hidden]{display:none}.source-warning{color:var(--ink-2);line-height:1.7}
@media(max-width:900px){.modules-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.modules-grid,.bank-filters{grid-template-columns:minmax(0,1fr)}.module-actions .btn{width:100%}}

/* v0.11: compact topic groups, count aligned beside action */
.topic-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:20px}
.topic-groups>.topic-group{margin:0;padding:20px;min-width:0}
.topic-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.topic-heading h3{margin:0}.topic-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line,#e4e8ed)}
.topic-row>div{min-width:0}.topic-name{font-weight:600;overflow-wrap:anywhere}.topic-count{display:block;font-size:13px;color:var(--muted,#667085);margin-top:4px}
.topic-row .topic-action{width:auto;min-width:64px;flex:0 0 auto}.topic-empty .topic-name{font-weight:400}.topic-empty button{opacity:.45;cursor:default}
.legacy-blocks summary{cursor:pointer;font-weight:600}.legacy-blocks .blocks-grid{margin-top:18px}
.ktree .topic-groups{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:12px}.topic-row .mini{margin-top:4px}
@media(max-width:700px){.topic-groups,.ktree .topic-groups{grid-template-columns:1fr}.topic-groups>.topic-group{padding:16px}.bank-filters{grid-template-columns:1fr 1fr}}

/* Lecture knowledge pages */
.lesson-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;align-items:start}
.lesson-layout .card{margin-bottom:18px}.lesson-eyebrow{color:var(--ink-2);font-size:13px;margin-bottom:12px}
.lesson-hero h2{font-size:27px;line-height:1.4;margin:0 0 14px}.lesson-hero p,.lesson-content p,.lesson-source p{line-height:1.9}
.lesson-formula{font-size:19px;line-height:1.9;background:#eef6f3;border-left:4px solid #347c67;border-radius:8px;padding:18px;margin:14px 0 26px;overflow-wrap:anywhere}
.lesson-content h3{margin-top:22px}.lesson-content ol{padding-left:24px;line-height:2}.lesson-content li{padding-left:4px;margin:7px 0}
.lesson-caution{padding:16px;background:#fff7e8;border:1px solid #eddbb6;border-radius:10px;margin:22px 0}.lesson-caution p{margin:8px 0 0}
.lesson-example{white-space:pre-wrap}.lesson-read{display:flex;gap:10px;align-items:flex-start;line-height:1.7;margin-bottom:18px}.lesson-read input{width:18px;height:18px;flex:none;margin-top:4px}
.lesson-source{position:sticky;top:18px;font-size:14px}.lesson-pdf{display:block;margin:18px 0;line-height:1.8}.source-page{border-top:1px solid #e3e8e5;padding:12px 0}.source-page summary{cursor:pointer;line-height:1.7}.source-page img{width:100%;height:auto;margin-top:12px;display:block}
.lesson-code{font-size:13px;color:var(--ink-2);display:block;line-height:1.8}.lesson-kind{font-size:13px;border:1px solid #d5e3dc;padding:1px 6px;border-radius:4px;margin-left:5px;color:#477362}.topic-empty .topic-name{opacity:1}.topic-empty{opacity:1}
@media(max-width:850px){.lesson-layout{display:block}.lesson-source{position:static}.lesson-hero h2{font-size:23px}.lesson-formula{font-size:17px}.lesson-layout .card{padding:20px}.lesson-read{font-size:14px}}

.topic-row[hidden],.topic-group[hidden]{display:none}.lesson-directory-tools input{margin:10px 0;width:100%;max-width:600px}.lesson-directory-tools label{display:block;font-weight:600}

/* Lecture knowledge stays readable on both desktop and phone. */
.excerpt-text{white-space:pre-wrap;line-height:1.85;overflow-wrap:anywhere;margin:16px 0;color:var(--text,#263549)}
.lesson-excerpt{margin-top:24px;border-top:1px solid var(--line,#dde4eb);padding-top:18px}.lesson-excerpt summary{cursor:pointer;font-weight:650}.lesson-caution{overflow-wrap:anywhere}

/* 专项题本原图与可追溯来源 */
.stem img, .exp-sec img { max-width:100%; height:auto; cursor:zoom-in; }
.stem img[src*="/bank-assets/scan-"] { width:100%; }
.scan-hint { color:var(--ink-2); font-size:13px; margin:0 0 10px; }
.special-resources { border-top:1px solid var(--line); margin-top:12px; padding-top:10px; }
.special-resources p { margin:8px 0; }
.special-resources small { color:var(--ink-2); }

/* 独立常识政治分栏 */
.knowledge-hero{display:flex;justify-content:space-between;align-items:center;gap:24px}.knowledge-hero h2{font-size:28px;margin:0 0 12px}.knowledge-level{font-size:38px;font-weight:750;color:var(--accent,#2563eb);background:#edf3ff;padding:22px;border-radius:16px}
.knowledge-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.knowledge-metrics .card{display:flex;flex-direction:column;gap:12px}.knowledge-metrics span{color:var(--ink-2);font-size:13px}.knowledge-metrics b{font-size:28px}
.knowledge-rules summary{cursor:pointer;font-weight:600}.knowledge-rules p{line-height:1.9}.knowledge-tabs{margin:20px 0}.knowledge-subjects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.knowledge-subjects .card{margin:0}.knowledge-actions{display:flex;gap:12px;flex-wrap:wrap}.knowledge-actions .btn{width:auto}.knowledge-feedback{background:#eef4ff;padding:14px;border-radius:8px}.related-practice{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.related-practice .btn{width:auto}
#knowledge-practice[hidden],#knowledge-review[hidden]{display:none}.knowledge-hero>div{min-width:0}
@media(max-width:700px){.knowledge-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.knowledge-subjects{grid-template-columns:1fr}.knowledge-hero{gap:12px}.knowledge-hero h2{font-size:22px}.knowledge-level{font-size:28px;padding:16px}.knowledge-metrics b{font-size:24px}.knowledge-metrics .card{padding:16px}.tabs{flex-wrap:wrap}.knowledge-review .rv-row{align-items:flex-start}}

/* Compact knowledge panorama: isolated from lesson and question layouts. */
.wrap--map{max-width:1600px}
.map-heading{padding:18px}.map-heading h3{margin:0;white-space:nowrap}
.map-topline{display:flex;align-items:center;justify-content:space-between;gap:12px}
.map-search-box{display:flex;align-items:center;gap:6px;flex:0 1 150px;width:150px;min-width:0;height:32px;padding:0 8px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink-2)}
.map-search-box svg{flex:0 0 15px}.map-search-box input{width:100%;min-width:0;height:100%;padding:0;border:0;background:transparent;color:var(--ink);font:inherit;font-size:13px;outline:none}
.map-search-box:focus-within{border-color:var(--primary);box-shadow:0 0 0 2px var(--primary-weak)}
.map-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0}
 .realm-0{--realm-color:#64748b}.realm-1{--realm-color:#0f766e}.realm-2{--realm-color:#2563eb}.realm-3{--realm-color:#a16207}.realm-4{--realm-color:#7e22ce}.realm-5{--realm-color:#be123c}
.map-realm-counts,.realm-milestones{display:flex;flex-wrap:wrap;gap:8px 14px;margin:8px 0 0}
.realm-count{display:inline-flex;align-items:center;gap:5px;font-size:13px;line-height:1.8;color:var(--ink-2)}
.realm-count i{width:7px;height:7px;border-radius:50%;background:var(--realm-color);flex:0 0 7px}.realm-count strong,.realm-count b{color:var(--realm-color);font-variant-numeric:tabular-nums}
#map-status[hidden]{display:none}
.map-root{width:max-content;margin:0 auto 18px;padding:8px 22px;border-radius:24px;background:var(--ink);color:white;font-size:14px;font-weight:700;position:relative}
.map-root:after{content:'';position:absolute;height:18px;width:1px;background:var(--line);top:100%;left:50%}
.knowledge-map{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:start;border-top:1px solid var(--line);padding-top:14px}
.map-module{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px;position:relative}
.map-module:before{content:'';position:absolute;height:15px;width:1px;background:var(--line);bottom:100%;left:50%}
.map-trunk{display:flex;align-items:center;justify-content:space-between;gap:6px;background:var(--primary-weak);padding:9px;border-radius:7px;margin-bottom:8px}
.map-trunk h4{font-size:15px}.map-trunk button{border:0;background:transparent;color:var(--primary);font-size:13px;cursor:pointer;padding:4px}
.map-chapter{margin-left:4px;border-left:1px solid var(--line);padding:0 0 5px 10px}
.map-chapter summary{font-size:13px;font-weight:700;padding:8px 0;cursor:pointer;overflow-wrap:anywhere}
.map-chapter summary small{font-weight:400;color:var(--ink-2);margin-left:6px}
.map-leaves{display:flex;flex-direction:column;gap:3px;padding-left:3px}
.map-leaf{display:flex;align-items:baseline;gap:8px;justify-content:space-between;width:100%;border:1px solid transparent;border-left:3px solid var(--line);border-radius:4px;background:var(--bg);padding:5px 7px;text-align:left;color:var(--ink);font-family:inherit;cursor:pointer;min-height:29px}
.map-leaf span{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.map-leaf small{font-size:13px;white-space:nowrap;color:var(--ink-2)}
.map-leaf[class*="realm-"]{border-left-color:var(--realm-color)}
.map-leaf:hover{border-color:var(--primary);background:var(--primary-weak)}.map-leaf:focus-visible,.map-chapter summary:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.map-empty{font-size:13px;padding:12px;color:var(--ink-2)}
.map-leaf[hidden],.map-chapter[hidden],.map-module[hidden]{display:none}
@media(max-width:1100px){.knowledge-map{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.knowledge-map{grid-template-columns:1fr}.map-leaf{min-height:40px;padding:8px}.map-leaf span{font-size:13px}.map-trunk button{min-height:40px}}

.map-tools .btn{width:auto;margin:0;flex:0 0 auto}


.training-progress{background:var(--primary-weak);border:1px solid var(--info-line);border-radius:10px;padding:14px;margin:10px 0;color:var(--ink)}
.training-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.training-progress p{font-size:13px;line-height:1.7;margin:6px 0}.training-progress small{color:var(--ink-2);font-size:13px}
.training-progress progress{width:100%;height:10px;accent-color:var(--primary);margin:10px 0 0}.training-reward{font-weight:700;color:var(--ok)}
.map-xp{font-size:13px;color:var(--primary);padding:0 7px 5px}.map-leaf[hidden]+.map-xp{display:none}
.training-rules p{line-height:1.7;margin-top:8px}.lesson-foundations details{border-bottom:1px solid var(--line);padding:10px 0}.lesson-foundations summary{cursor:pointer;font-weight:600}.course-reference .btn{width:auto;margin:5px}.lesson-foundations .btn{width:auto}

/* Quiet header: settings remains reachable without occupying the learning tabs. */
.site-head .who .settings-toggle{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 44px;padding:0;border-radius:10px;color:var(--ink-2);background:var(--surface)}
.site-head .who .settings-toggle.active{color:var(--primary);background:var(--primary-weak);border-color:var(--primary)}
.site-head .who .settings-toggle:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
.site-head .who .chip{max-width:min(30vw,220px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#bank-status[hidden]{display:none}
@media(max-width:600px){.site-head .who{gap:6px}.site-head .who button:not(.settings-toggle){padding:6px 8px}}

.training-progress[class*="realm-"] .training-head b{color:var(--realm-color)}
.training-progress[class*="realm-"] progress{accent-color:var(--realm-color)}

.knowledge-hero h2{margin-bottom:0}.knowledge-level{font-size:24px;white-space:nowrap;color:var(--realm-color,var(--primary))}
@media(max-width:700px){.knowledge-hero{flex-wrap:wrap}.knowledge-level{font-size:22px;padding:12px 16px}}

/* Compact progress cards inside the topic directory. */
.topic-row .training-progress{max-width:420px;padding:8px 10px;margin:6px 0 0;border-radius:8px}
.topic-row .training-head{align-items:center;gap:4px 10px;font-size:13px;line-height:1.4}
.topic-row .training-progress progress{height:6px;margin:6px 0 0}
.topic-row .training-progress p{font-size:13px;line-height:1.45;margin:4px 0 0}

/* Topic labels stay readable inside compact progress cards. */
.training-head b{font-size:17px;line-height:1.4}
.topic-row .training-head b{font-size:16px;line-height:1.4}
.lesson-topbar{display:flex;justify-content:flex-start;margin-bottom:12px}
.lesson-hero h2{margin-bottom:0}

/* Focused practice: reading on the left, decisions on the right. */
body.in-practice{background:#f1f4f8}
body.in-practice .tabs{display:none}
.wrap.practice-wrap{max-width:1440px;padding:24px 28px 48px}
.practice-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:6px 4px 24px}
.practice-eyebrow{font-size:13px;color:var(--ink-2);letter-spacing:.04em}
.practice-heading h1{font-size:22px;font-weight:700;line-height:1.5;margin-top:5px}
.practice-tools{display:flex;align-items:center;gap:22px;flex-shrink:0}
.practice-clock{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--ink-2);font-variant-numeric:tabular-nums}
.practice-clock .timer{margin:0;min-width:38px}
.clock-dot{width:7px;height:7px;border-radius:50%;background:#94a3b8}
.practice-exit{border:1px solid var(--line);background:#fff;color:var(--ink-2);padding:10px 15px;border-radius:9px;font:inherit;font-size:13px;cursor:pointer}
.practice-exit span{margin-left:10px}.practice-exit:hover{color:var(--primary);border-color:var(--primary)}
.practice-stage{display:grid;grid-template-columns:minmax(0,1.16fr) minmax(0,1fr);background:var(--surface);border:1px solid var(--line);border-radius:18px;min-height:calc(100dvh - 210px);box-shadow:0 12px 40px rgba(25,40,65,.05);overflow:clip;align-items:start}
.practice-reading{padding:34px 38px;min-width:0}
.practice-answer{padding:34px;min-width:0;border-left:1px solid var(--line);align-self:stretch;display:flex;flex-direction:column}
.practice-panel-label{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:25px;font-size:13px;color:var(--ink-2);font-weight:600}
.practice-answer-note{font-size:13px;font-weight:400;color:#7b8799}
.practice-reading .material{background:#f6f8fb;padding:20px;border:1px solid #edf0f5;margin-bottom:24px;line-height:1.95}
.practice-reading .stem{font-size:18px;font-weight:500;line-height:1.95;overflow-wrap:anywhere}
.practice-reading .stem img{max-width:100%;height:auto;cursor:zoom-in}
.practice-source{font-size:13px;color:var(--ink-2);margin-top:28px}
.practice-source>summary{cursor:pointer;display:inline-block;padding:6px 0}
.practice-source .qsource{margin-top:8px}
.practice-answer .opts{gap:12px}
.practice-answer .opt{padding:15px 17px;border-radius:11px;font-size:16px;align-items:center}
.practice-answer .opt .k{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;background:#f2f5f9;font-size:14px}
.practice-answer .opt.selected .k{background:var(--primary);color:#fff}
.practice-answer .opt.right .k{background:var(--ok-bg);color:var(--ok)}
.practice-answer .opt.wrong .k{background:var(--bad-bg);color:var(--bad)}
.practice-scratch{margin:24px 0 20px;font-size:13px;color:var(--ink-2)}
.practice-scratch summary{cursor:pointer;list-style:none;width:fit-content}
.practice-scratch summary:before{content:'＋';margin-right:7px;color:var(--primary)}
.practice-scratch[open] summary:before{content:'−'}
.practice-scratch summary span{font-size:13px;color:#8b96a5;margin-left:5px}
.practice-scratch textarea{display:block;width:100%;min-height:110px;resize:vertical;border:1px solid var(--line);border-radius:9px;padding:13px;background:#fafbfe;font:inherit;line-height:1.8;color:var(--ink);margin-top:12px}
.practice-scratch textarea:focus{outline:2px solid var(--primary);outline-offset:2px}
.practice-answer .confirm-bar{position:sticky;bottom:0;background:#fff;border-top:1px solid var(--line);padding:18px 0 0;margin:36px 0 0;z-index:2;margin-top:auto}
.practice-keyboard{font-size:13px;color:#7b8799;margin-bottom:12px;line-height:1.7}
.practice-answer #btn-confirm{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;border-radius:10px}
.practice-answer .verdict{font-size:14px}
.practice-answer .training-progress{margin:12px 0}
.practice-answer .opts-img{grid-template-columns:repeat(2,minmax(0,1fr))}
.practice-answer .opts-img .opt{display:block;padding:12px;min-width:0}
.practice-answer .opts-img .opt .k{margin-bottom:8px}
.practice-answer .opts-img img{max-height:180px;object-fit:contain}
/* Lecture content keeps the original structure and mathematical typography. */
.lesson-main{width:100%;max-width:960px;margin:0 auto}
.lesson-topbar .btn{width:auto;padding:8px 14px}
.lesson-title{margin:4px 0 24px}
.lesson-title h2{font-size:28px;line-height:1.5;letter-spacing:-.02em}
.lecture-reading{background:#fff;border:1px solid var(--line);border-radius:14px;padding:28px 38px;margin-bottom:24px;overflow:hidden}
.lecture-fragment{margin:0 0 24px}.lecture-fragment:last-child{margin-bottom:0}
.lecture-fragment>img{display:block;width:100%;height:auto;cursor:zoom-in;background:#fff}
.lecture-fragment figcaption{font-size:13px;color:#8993a2;text-align:right;margin-top:8px}
.lecture-text{font-size:13px;color:var(--ink-2);margin-top:8px}
.lecture-text summary{cursor:pointer;width:fit-content}
.lecture-text p{white-space:pre-wrap;line-height:1.9;margin-top:12px;padding:16px;background:var(--bg);border-radius:8px}
.lecture-scope{font-size:13px;line-height:1.9;color:var(--ink-2);border-left:3px solid var(--line);padding-left:12px;margin-bottom:24px}
.lesson-prerequisites{font-size:14px;color:var(--ink-2);margin-bottom:18px}
.lesson-prerequisites>summary{cursor:pointer;width:fit-content}
.lesson-prerequisites>div{display:flex;gap:8px;flex-wrap:wrap;padding-top:8px}
.lesson-prerequisites .btn{width:auto}
.method-source{font-size:13px;color:var(--ink-2)}
.method-body{font-size:18px;line-height:2;margin:18px 0}
.method-note{font-size:15px;line-height:1.9;border-left:3px solid var(--warn-line);padding-left:14px}
@media(min-width:1100px){.practice-reading{position:sticky;top:20px;max-height:calc(100dvh - 40px);overflow-y:auto;overscroll-behavior:contain}}
@media(max-width:900px){
 .wrap.practice-wrap{padding:18px 16px 32px}.practice-toolbar{gap:12px;padding-bottom:18px}.practice-heading h1{font-size:19px}
 .practice-tools{gap:12px}.practice-stage{grid-template-columns:minmax(0,1fr);min-height:0;border-radius:13px}
 .practice-reading{padding:24px}.practice-answer{border-left:0;border-top:1px solid var(--line);padding:24px}
 .practice-reading .stem{font-size:17px}.practice-answer .confirm-bar{margin:22px -24px -24px;padding:16px 24px calc(16px + env(safe-area-inset-bottom,0px));border-radius:0 0 13px 13px}
 .practice-keyboard{display:none}.lecture-reading{padding:18px 12px}.lesson-title h2{font-size:24px}
}
@media(max-width:480px){.practice-toolbar{align-items:flex-start}.practice-tools{gap:9px;flex-direction:column;align-items:flex-end}.practice-exit{padding:7px 10px}.practice-exit span{display:none}.practice-reading,.practice-answer{padding:20px}.practice-panel-label{margin-bottom:18px}.practice-answer .confirm-bar{margin-left:-20px;margin-right:-20px;margin-bottom:-20px;padding-left:20px;padding-right:20px}.practice-eyebrow{font-size:13px}.practice-heading h1{font-size:18px}}

.lecture-correction{border:1px solid var(--warn-line);background:var(--warn-bg);padding:18px 22px;border-radius:12px;margin:0 0 20px;line-height:1.9;font-size:14px}.lecture-correction b{color:var(--warn)}.lecture-correction p{margin:6px 0}.lecture-correction a{color:var(--primary);font-size:13px}

@media(max-width:900px){.practice-answer .confirm-bar{position:static;margin:22px 0 0;padding:16px 0 0;border-radius:0}.practice-keyboard{display:none}}

/* Native lecture text: white paper, selectable content, no page facsimiles. */
.lecture-prose{padding:34px 42px;font-size:17px;line-height:1.95;color:#253347;background:#fff}
.lecture-prose>p{margin:0 0 16px;overflow-wrap:anywhere}
.lecture-prose>h3{font-size:21px;line-height:1.6;margin:30px 0 16px;color:#18283b;font-weight:700}
.lecture-prose>h3:first-child{margin-top:0}
.lecture-prose>h4{font-size:17px;line-height:1.7;margin:24px 0 12px;color:#253347;font-weight:650}
.lecture-prose .lecture-example-title{border-top:1px solid #e9eef3;padding-top:26px;margin-top:30px;font-size:18px}
.lecture-prose>p.lecture-option{font-size:16px;margin:8px 0;padding-left:14px;color:#475569;line-height:1.85}
.lecture-prose sup,.lecture-prose sub{font-size:.73em;line-height:0;position:relative;vertical-align:baseline}
.lecture-prose sup{top:-.5em}.lecture-prose sub{bottom:-.2em}
.text-frac{display:inline-flex;flex-direction:column;vertical-align:middle;text-align:center;font-family:"Cambria Math","Times New Roman",serif;line-height:1.2;margin:0 .2em;font-size:.94em;min-width:.6em}
.text-frac>span:first-child{border-bottom:1px solid currentColor;padding:0 .16em .12em}
.text-frac>span:last-child{padding:.12em .16em 0}
.lecture-table-wrap{max-width:100%;overflow-x:auto;margin:20px 0 24px;border:1px solid #e4ebf0;border-radius:10px;background:#fff}
.lecture-table{border-collapse:collapse;width:100%;font-size:15px;line-height:1.85;min-width:440px}
.lecture-table th{background:#f1f9fa;color:#25474c;font-weight:650;text-align:left}
.lecture-table th,.lecture-table td{padding:12px 15px;border-right:1px solid #e5edf0;border-bottom:1px solid #e5edf0;vertical-align:middle}
.lecture-table tr:last-child td{border-bottom:0}.lecture-table tr>:last-child{border-right:0}
.lecture-table td:empty{background:#fafcfd}
.lecture-table .text-frac{white-space:nowrap}
.practice-answer #btn-confirm{background:#087f8c;color:#fff}
.practice-answer #btn-confirm:hover:not(:disabled){background:#066773}
.practice-answer #btn-confirm:focus-visible{outline:3px solid #99e4e6;outline-offset:3px}
@media(max-width:600px){.lecture-prose{padding:24px 20px;font-size:16px;line-height:1.95}.lecture-prose>h3{font-size:19px}.lecture-prose>h4{font-size:16px}.lecture-prose>p.lecture-option{padding-left:6px}.lecture-table{font-size:14px}.lecture-table th,.lecture-table td{padding:10px 12px}}

.lecture-prose{font-family:inherit}

.lecture-prose .lecture-supplement-label{font-size:13px;color:var(--ink-2);margin:18px 0 6px}

/* Muted teal for answer controls; keep feedback semantics intact. */
.practice-answer{--practice-accent:#2e7d71;--practice-accent-press:#24665c;--practice-accent-weak:#edf6f2}
.practice-answer #btn-confirm{background:var(--practice-accent);color:#fff}
.practice-answer #btn-confirm:hover:not(:disabled){background:var(--practice-accent-press)}
.practice-answer #btn-confirm:focus-visible{outline-color:#b5d9cd}
.practice-answer .opt .k{color:var(--practice-accent);background:var(--practice-accent-weak)}
.practice-answer .opt.selected{border-color:var(--practice-accent);background:var(--practice-accent-weak);box-shadow:inset 0 0 0 1px var(--practice-accent)}
.practice-answer .opt.selected .k{background:var(--practice-accent);color:#fff}
.practice-answer .opt[role="radio"]:hover{border-color:var(--practice-accent)}
.practice-answer .opt[role="radio"]:focus-visible{outline:2px solid var(--practice-accent);outline-offset:3px}
.lecture-method{padding-bottom:24px;margin-bottom:28px;border-bottom:1px solid #e4ede9}
.lecture-method-origin{font-size:13px;color:#5f7b73;margin-bottom:10px}
.lecture-method h3{font-size:21px;line-height:1.6;margin:0 0 16px;color:#183b33}
.lecture-method>p:not(.lecture-method-origin){margin:0 0 16px;line-height:1.95}
.lecture-method>p:last-child{margin-bottom:0}
.lecture-parent-note{margin:16px 0 20px;padding:14px 18px;background:#f2f8f5;border-left:3px solid #b5d9cd;border-radius:0 8px 8px 0;font-size:15px}
.lecture-parent-note b{font-size:13px;color:#58796c}.lecture-parent-note p{margin-top:6px}
@media(max-width:600px){.lecture-method h3{font-size:19px}.lecture-parent-note{padding:12px 14px}}

/* Primary green sampled from the provided reference button: #5cb85c. */
.site-head .logo{color:var(--primary)}
.btn{background:var(--primary-strong);color:var(--primary-ink)}
.btn:hover{background:var(--primary-press)}
.btn.ghost{background:var(--surface);color:var(--primary-strong);border-color:var(--primary-strong)}
.btn.ghost:hover{background:var(--primary-weak)}
.btn.danger{background:var(--surface);color:var(--bad)}
.btn.orange{background:var(--primary-strong);color:#fff}
nav.tabs button.active{background:var(--primary-strong);border-color:var(--primary-strong);color:var(--primary-ink)}
.practice-answer{--practice-accent:var(--primary-strong);--practice-accent-press:#256428;--practice-accent-weak:var(--primary-weak)}
.practice-answer #btn-confirm{color:var(--primary-ink)}
.practice-answer .opt .k{color:var(--primary-strong);background:var(--primary-weak)}
.practice-answer .opt.selected{border-color:var(--primary-border);box-shadow:inset 0 0 0 1px var(--primary-border)}
.practice-answer .opt.selected .k{background:var(--primary-strong);color:var(--primary-ink)}
.practice-answer .opt[role="radio"]:hover{border-color:var(--primary-border)}

/* T7: a shared next action for empty views. */
.empty-state{display:flex;flex-direction:column;align-items:center;gap:10px;padding:32px 16px;color:var(--ink-2);font-size:14px;text-align:center}
.empty-state .empty-icon{font-size:28px;opacity:.5;line-height:1;display:flex}
.empty-state .empty-icon svg{width:32px;height:32px}
.empty-state strong{font-size:16px;line-height:1.35;color:var(--ink);font-weight:600}
.empty-state p{max-width:36em;line-height:1.6;margin:0}
.empty-state .btn{width:auto;margin:6px 0 0}
/* T9: static presentation belongs in CSS, not template attributes. */
.content-error,.exam-weak{color:var(--bad)}
.exam-perfect{color:var(--ok)}
.exam-scope,.training-note{color:var(--ink-2);font-size:13px}
.timer-placeholder{visibility:hidden}
.knowledge-card-title{margin-bottom:12px}
.knowledge-card-example{color:var(--ink-2);margin:8px 0}
.knowledge-card-start{margin-top:16px}
.answer-next,.answer-followup{margin-top:14px}
.action-spacer{height:12px}
.set-row .act .btn{width:auto}
#reset-confirm{width:100%}
