/* ============================================================
   雅思大作文题库 · 样式
   ============================================================ */
:root {
  --bg: #f4f6f9;
  --panel: #ffffff;
  --border: #e3e8ef;
  --text: #16202e;
  --muted: #6b7a90;
  /* 默认主题：星紫蓝 Indigo（④） */
  --brand: #6366F1;
  --brand-2: #4F46E5;
  --brand-3: #818CF8;
  --brand-soft: #EEF0FF;
  --brand-ink: #3730A3;
  --hero: linear-gradient(120deg, #818CF8, #6366F1 55%, #4F46E5);
  /* 四科固定色（色相不变，只跟主题微调深浅） */
  --listen: #22C55E; --listen-soft: #EAFBF1;
  --read: #C08552;   --read-soft: #FDF4E9;
  --write: #A78BFA;  --write-soft: #F4EFFE;
  --speak: #F2545B;  --speak-soft: #FFEEEF;
  --gold: #F5B544;
  /* 预留：词汇 / 语法（后续板块） */
  --vocab: #E8B931;   --vocab-soft: #FFF8E1;
  --grammar: #D6267F; --grammar-soft: #FDEBF6;
  --ok: #2f855a;
  --warn: #b7791f;
  --red: #d64545;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
}
/* ---------------- 主题（设置里可选） ---------------- */
html[data-theme="indigo"] {
  --brand:#6366F1; --brand-2:#4F46E5; --brand-3:#818CF8; --brand-soft:#EEF0FF; --brand-ink:#3730A3;
  --hero: linear-gradient(120deg, #818CF8, #6366F1 55%, #4F46E5);
}
html[data-theme="sky"] {
  --brand:#3B82F6; --brand-2:#1D4ED8; --brand-3:#60A5FA; --brand-soft:#EFF6FF; --brand-ink:#1E40AF;
  --hero: linear-gradient(120deg, #60A5FA, #3B82F6 55%, #6366F1);
}
html[data-theme="sapphire"] {
  --brand:#2563EB; --brand-2:#1D4ED8; --brand-3:#3B82F6; --brand-soft:#E8EFFF; --brand-ink:#1E3A8A;
  --hero: linear-gradient(120deg, #3B82F6, #2563EB 55%, #1D4ED8);
}
html[data-theme="glacier"] {
  --brand:#0EA5E9; --brand-2:#0284C7; --brand-3:#38BDF8; --brand-soft:#E6F6FE; --brand-ink:#075985;
  --hero: linear-gradient(120deg, #38BDF8, #0EA5E9 55%, #0284C7);
  --listen:#10B981; --listen-soft:#E7F8F1;
}
html[data-theme="aurora"] {
  --brand:#6366F1; --brand-2:#7C3AED; --brand-3:#38BDF8; --brand-soft:#EFEBFF; --brand-ink:#4338CA;
  --hero: linear-gradient(120deg, #38BDF8, #6366F1 48%, #8B5CF6);
}
html[data-theme="mint"] {
  --brand:#0D9488; --brand-2:#0F766E; --brand-3:#2DD4BF; --brand-soft:#E7FAF8; --brand-ink:#115E59;
  --hero: linear-gradient(120deg, #2DD4BF, #14B8A6 55%, #0EA5A0);
  --listen:#34D399; --listen-soft:#E9FBF3;
  --read:#D89A5B;   --read-soft:#FDF4E7;
  --write:#9B8AFB;  --write-soft:#F2EFFE;
  --speak:#FF6B6B;  --speak-soft:#FFEFEF;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: var(--brand); text-decoration: none; }
code { background: #eef2f7; padding: 1px 5px; border-radius: 5px; font-size: 13px; }

/* ---------------- 通用组件 ---------------- */
.app { max-width: 1320px; margin: 0 auto; padding: 22px 20px 80px; }
h1 { font-size: 22px; margin: 0 0 4px; letter-spacing: -.01em; }
.sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 18px; }

/* ---------- 管理后台：顶部概览 + 分组导航 ---------- */
.admin-hero {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
  background: var(--hero); background-size: 160% 160%;
  color: #fff; border-radius: 18px; padding: 20px 24px; margin-bottom: 16px;
  box-shadow: 0 14px 34px rgba(79,70,229,.20);
  position: relative; overflow: hidden;
}
.admin-hero::after {
  content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -180px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.30), transparent 65%);
}
.admin-hero > * { position: relative; z-index: 1; }
.admin-hero h1 { color: #fff; font-size: 22px; margin: 0 0 6px; }
.admin-hero .sub { color: rgba(255,255,255,.82); margin: 0; font-size: 13.5px; max-width: 560px; line-height: 1.7; }
.ah-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.stat-chip {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 12px;
  padding: 8px 14px; display: flex; align-items: baseline; gap: 6px; min-width: 92px;
}
.stat-chip span { font-size: 12px; opacity: .85; }
.stat-chip b { font-size: 19px; font-weight: 700; }
.stat-chip i { font-size: 11.5px; font-style: normal; opacity: .8; }
.stat-chip.hl { background: rgba(255,255,255,.24); }

/* ---------- 教师端：今日工作台（仅教师主页） ---------- */
.admin-hero.work-hero { align-items: flex-start; }
.ah-tiles { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  min-width: 138px; padding: 11px 16px; text-align: left; color: #fff;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.24);
  border-radius: 14px; font: inherit; cursor: pointer;
  transition: background .16s, transform .16s, box-shadow .16s;
}
.hero-tile:hover { background: rgba(255,255,255,.26); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(20,30,80,.16); }
.hero-tile:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hero-tile .ht-l { font-size: 12.5px; opacity: .92; }
.hero-tile .ht-v b { font-size: 23px; font-weight: 700; line-height: 1.2; }
.hero-tile .ht-v i { font-size: 11.5px; font-style: normal; opacity: .85; margin-left: 3px; }
.hero-tile .ht-h { font-size: 11.5px; font-style: normal; opacity: .74; }
.hero-tile.is-warn { background: rgba(255,255,255,.26); }

/* ---------- 教师端：子页面情境标题栏 ---------- */
.page-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 18px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.page-head h1 { font-size: 19px; margin: 0 0 3px; }
.page-head .sub { margin: 0; font-size: 12.5px; max-width: 620px; }
.ph-acts { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ph-chip {
  font-size: 12.5px; color: var(--muted); background: var(--bg); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 12px; white-space: nowrap;
}
.ph-chip b { color: var(--text); font-size: 14px; margin-right: 3px; }
.ph-chip.is-warn { background: #FEF3E2; border-color: #F6DDB5; color: #9A5B00; }
.ph-chip.is-warn b { color: #9A5B00; }

.tabgroups {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 14px 16px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.tg { min-width: 0; }
.tg + .tg { border-left: 1px dashed var(--border); padding-left: 14px; }
.tg-t { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.tg-t i { font-style: normal; }
.tg-b { display: flex; flex-wrap: wrap; gap: 8px; }
.tg .tab {
  border: 1px solid var(--border); background: #fbfcfe; color: var(--text);
  padding: 7px 14px; border-radius: 10px; cursor: pointer; font-size: 13.5px; transition: .15s;
}
.tg .tab:hover { border-color: var(--brand); color: var(--brand); background: #fff; }
.tg .tab.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent;
  color: #fff; box-shadow: 0 6px 16px rgba(43,108,176,.3);
}
/* 管理后台面板美化 */
.wrongbox { margin-top: 8px; max-height: 320px; overflow: auto; border-top: 1px dashed var(--border); padding-top: 8px; }
.wrong-row { font-size: 12.5px; line-height: 1.9; padding: 3px 0; border-bottom: 1px dashed #eef2f7; }
.wrong-row .bad { color: #c0392b; font-weight: 600; }
.wrong-row .ok { color: var(--ok); font-weight: 600; }
.cbtline { margin: 4px 0 2px; font-size: 12.5px; color: #4a5a6a; }
.revbox { margin-top: 8px; padding: 10px 12px; background: #f7faff; border: 1px dashed var(--border); border-radius: 10px; }
.subtasks { margin-top: 10px; border-top: 1px dashed var(--border); padding-top: 10px; }
.pl-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 7px; }
.pl-row .pl-sel { min-width: 110px; }
.pl-row .pl-txt { flex: 1; min-width: 200px; font: inherit; font-size: 13px; border: 1px solid var(--border); border-radius: 8px; padding: 6px 9px; }
.pl-row .pl-link, .pl-row .pl-doc { max-width: 260px; font: inherit; font-size: 12.5px; border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; }
.pl-row .pl-min { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.pl-row .pl-min input[type=number] { font: inherit; font-size: 12.5px; border: 1px solid var(--border); border-radius: 8px; padding: 5px 7px; }

/* ---------- 共用「布置任务」对话框 ---------- */
.mdl-mask {
  position: fixed; inset: 0; z-index: 200; background: rgba(16,28,48,.45);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.mdl {
  width: 760px; max-width: 100%; max-height: 88vh; overflow: auto;
  background: #fff; border-radius: 16px; box-shadow: 0 30px 70px rgba(10,20,40,.35);
  animation: popIn .14s ease;
}
.mdl-h {
  display: flex; align-items: center; gap: 8px; padding: 16px 20px;
  border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; z-index: 2;
}
.mdl-h b { font-size: 16px; }
.mdl-x { margin-left: auto; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--muted); }
.mdl-b { padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.mdl-r { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mdl-l { width: 92px; flex: none; font-size: 13px; color: var(--muted); }
.mdl-r input[type=text], .mdl-r textarea {
  flex: 1; min-width: 220px; font: inherit; font-size: 13.5px; border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 11px;
}
.mdl-r input[type=number], .mdl-r select {
  font: inherit; font-size: 13px; border: 1px solid var(--border); border-radius: 9px; padding: 7px 9px;
}
.mdl-ck { font-size: 12.5px; color: var(--muted); margin-left: 6px; }
.mdl-f {
  display: flex; align-items: center; gap: 10px; padding: 14px 20px;
  border-top: 1px solid var(--border); position: sticky; bottom: 0; background: #fff;
}
.mdl .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mdl .chips button {
  font: inherit; font-size: 13px; cursor: pointer; border: 1px solid var(--border);
  background: #fbfcfe; border-radius: 999px; padding: 6px 14px; color: var(--text);
}
.mdl .chips button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pl-ic { font-size: 15px; flex: none; }
.pl-x { flex: 1; min-width: 180px; font-size: 13.5px; }
.pl-tag { font-size: 11.5px; color: var(--muted); background: #f2f6fc; border-radius: 999px; padding: 3px 10px; }
.pl-tag.hot { background: #fff3e0; color: #b7791f; }
/* 教师端学员日历：任务条按状态着色 */
.cal-task.stu { cursor: pointer; }
.cal-task.stu.s0 { background: #f2f4f7; border-left-color: #8a94a3; }
.cal-task.stu.s1 { background: #eef4fd; border-left-color: #2b6cb0; }
.cal-task.stu.s2 { background: #fff6ea; border-left-color: #d98324; }
.cal-task.stu.s3 { background: #eefaf3; border-left-color: var(--ok); }
.subtasks-h { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.subtask { border: 1px solid #e9eef6; border-left: 3px solid var(--brand); border-radius: 10px; padding: 10px 12px; background: #fbfcfe; margin-bottom: 8px; }
.cal-task.assign { background: #fff6ea; border-left-color: #d98324; }
.cal-task.assign.on { background: #eefaf3; border-left-color: var(--ok); }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.subnav .subtab {
  border: 1px solid var(--border); background: #fff; color: var(--text);
  padding: 9px 18px; border-radius: 12px; cursor: pointer; font-size: 14px; transition: .15s;
}
.subnav .subtab:hover { border-color: var(--brand); color: var(--brand); }
.subnav .subtab.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent;
  color: #fff; box-shadow: 0 6px 16px rgba(43,108,176,.26);
}
.subsec { display: none; }
.subsec.active { display: block; animation: fade .25s ease; }
/* 登录页角落的管理员入口（与学生/老师入口分开） */
.admin-corner {
  position: fixed; right: 18px; bottom: 16px; z-index: 5;
  font-size: 12.5px; color: #7d8797; text-decoration: none;
  background: rgba(255,255,255,.9); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 14px; box-shadow: 0 4px 14px rgba(20,40,80,.08);
}
.admin-corner:hover { color: var(--brand); border-color: var(--brand); }
@media (max-width: 640px) { .admin-corner { right: 10px; bottom: 10px; } }
.app .card { border-radius: 14px; padding: 18px 20px; }
.app .card h3 { font-size: 15.5px; }
.app .am-table { border-collapse: separate; border-spacing: 0; }
.app .am-table th { background: #f4f7fb; padding: 11px 10px; }
.app .am-table td { padding: 11px 10px; }
.app .am-table tbody tr:nth-child(even) { background: #fbfcff; }
.app .am-table tbody tr:hover { background: #f2f8ff; }

/* ---------- 短语库表格 ---------- */
.ph-table { width: 100%; }
.ph-table td { vertical-align: middle; }
.ph-table .ph-in {
  width: 100%; box-sizing: border-box; border: 1px solid transparent; background: transparent;
  border-radius: 8px; padding: 6px 8px; font-size: 13.5px; color: #16203a;
}
.ph-table .ph-in:hover { border-color: #e2e8f4; background: #fff; }
.ph-table .ph-in:focus {
  border-color: var(--brand); background: #fff; outline: none;
  box-shadow: 0 0 0 3px rgba(76, 111, 255, .12);
}
.ph-table .ph-en { font-weight: 600; }
.ph-table .ph-del { color: #9aa5b8; }
.ph-table .ph-del:hover { color: #e5484d; border-color: #e5484d; }
.phrase-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: #fff; }
.phrase-en { font-weight: 700; color: #101a33; }
.phrase-cn { color: #3b4a68; }

/* 学生主页 · 任务建议 */
.sg-list { display: flex; flex-direction: column; gap: 10px; }
.sg { display: flex; gap: 12px; border: 1px solid #e6ebf4; border-radius: 12px; padding: 12px 14px; background: #fff; }
.sg-n {
  flex: 0 0 22px; height: 22px; border-radius: 50%; background: #eef2ff; color: #3b4ea8;
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.app .mini { transition: .15s; cursor: pointer; }
.app .mini:hover { border-color: var(--brand); color: var(--brand); }
.app .panel > .card:first-child { border-top: 4px solid var(--brand); }
.app .list-item { border-radius: 12px; }
.app .row > h3 { display: flex; align-items: center; gap: 8px; }
@media (max-width: 900px) {
  .tg + .tg { border-left: 0; padding-left: 0; }
  .tabgroups { grid-template-columns: 1fr; }
}
.tab {
  border: 1px solid var(--border); background: #fff; color: var(--text);
  padding: 8px 18px; border-radius: 999px; cursor: pointer; font-size: 14px; transition: .15s;
}
.tab:hover { border-color: #c9d6e5; }
.tab.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(43,108,176,.28); }
.panel { display: none; }
.panel.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card h3 { font-size: 15px; margin: 0 0 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
label.f { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); min-width: 0; }
select, input[type="text"], input[type="password"], textarea {
  font-family: inherit; font-size: 14px; padding: 9px 11px; border: 1px solid var(--border);
  border-radius: 10px; background: #fff; color: var(--text); min-width: 0; max-width: 100%; transition: .15s;
}
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(43,108,176,.14); }
.filters select { min-width: 150px; }
.filters input[type="text"] { min-width: 175px; }
button {
  font-family: inherit; font-size: 14px; cursor: pointer; border-radius: 10px;
  padding: 9px 16px; border: 1px solid var(--border); background: #fff; color: var(--text); transition: .15s;
}
button:hover { border-color: #c9d6e5; }
button.primary {
  background: var(--hero); background-size: 160% 160%; border-color: transparent; color: #fff; font-weight: 600;
  box-shadow: 0 6px 16px rgba(79, 70, 229, .22); transition: .16s;
}
button.primary:hover { filter: brightness(1.05); box-shadow: 0 8px 20px rgba(79, 70, 229, .3); }
button.ghost { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
button.mini { padding: 4px 11px; font-size: 13px; border-radius: 8px; }
button:disabled { opacity: .5; cursor: default; }
.cols { display: grid; grid-template-columns: 1fr 400px; gap: 16px; align-items: start; }
@media (max-width: 1060px) { .cols { grid-template-columns: 1fr; } }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.tag.type { background: #f0f3f8; color: var(--muted); }
.tag.lv { background: #fdf1d8; color: #92400e; }
.tag.ok { background: #e4f5ea; color: var(--ok); }
.question { font-size: 18px; line-height: 1.72; margin: 0 0 12px; min-height: 56px; }
.question.empty { color: var(--muted); font-size: 15px; }
.muted { color: var(--muted); font-size: 13px; }
.writing-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.timer { margin-left: auto; display: flex; align-items: center; gap: 8px; }
#timerText { font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 600; min-width: 62px; text-align: right; }
#timerText.low { color: var(--red); }
textarea { width: 100%; resize: vertical; line-height: 1.72; }
#essay { min-height: 280px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.msg { font-size: 14px; }
.msg.ok { color: var(--ok); }
.msg.warn { color: var(--warn); }
.msg.err { color: var(--red); }
.hint-block { border-top: 1px dashed var(--border); padding-top: 10px; margin-top: 10px; }
.hint-block:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.hint-title { font-size: 13px; font-weight: 600; color: var(--brand); margin-bottom: 6px; }
.hint-list { margin: 0 0 6px; padding-left: 20px; font-size: 13.5px; }
.hint-key { font-size: 13px; color: var(--warn); margin: 0; }
.hint-text { font-size: 13.5px; white-space: pre-wrap; }
.essaybox, .analysisbox {
  white-space: pre-wrap; font-size: 14px; line-height: 1.78; background: #fafbfd;
  border: 1px solid var(--border); border-radius: 10px; padding: 13px; max-height: 420px; overflow: auto;
}
.analysisbox { background: #f7faff; border-color: #d8e6f7; }
.empty-note { color: var(--muted); font-size: 13px; padding: 6px 0; }
.bank-list { max-height: 660px; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.bank-item { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 13px; cursor: pointer; background: #fff; transition: .15s; }
.bank-item:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(43,108,176,.12); transform: translateY(-1px); }
.bank-item .row { margin-bottom: 5px; }
.hist-item, .list-item { border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 10px; background: #fff; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 1060px) { .admin-grid { grid-template-columns: 1fr; } }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(10px);
  background: #16202e; color: #fff; padding: 11px 20px; border-radius: 999px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: .22s; z-index: 999; max-width: 86vw; text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.nowrap { white-space: nowrap; }
.live { font-size: 12px; color: var(--ok); }
.live.off { color: var(--muted); }

/* 顶栏 */
.topbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 20px; background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 30;
}
.topbar .logo { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.topbar .logo i { font-style: normal; color: var(--brand); }
.topbar .spacer { margin-left: auto; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 13px; font-weight: 600;
}

/* 表格 */
.am-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.am-table th, .am-table td { border-bottom: 1px solid var(--border); padding: 8px; text-align: left; vertical-align: top; }
.am-table th { color: var(--muted); font-weight: 600; font-size: 12px; white-space: nowrap; position: sticky; top: 0; background: #fbfcfe; }
.am-table td.cell { text-align: center; cursor: pointer; white-space: nowrap; width: 60px; }
.am-table td.cell:hover { background: var(--brand-soft); }
.am-table td.cell.has { color: var(--ok); font-weight: 700; }
.am-table td.cell.sel { background: var(--brand); color: #fff; }
.am-wrap { max-height: 460px; overflow: auto; border: 1px solid var(--border); border-radius: 10px; }
.am-q { max-width: 540px; }

/* ============================================================
   登录 / 注册
   ============================================================ */
.auth {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr;
  background: #fff;
}
@media (max-width: 980px) { .auth { grid-template-columns: 1fr; } }

.auth-hero {
  position: relative; overflow: hidden; color: #fff; padding: 56px 60px;
  background: var(--hero);
  display: flex; flex-direction: column; justify-content: center;
}
.auth-hero::before, .auth-hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(2px); opacity: .35;
}
.auth-hero::before { width: 460px; height: 460px; right: -160px; top: -140px;
  background: radial-gradient(circle, rgba(255,255,255,.55), transparent 65%); }
.auth-hero::after { width: 520px; height: 520px; left: -220px; bottom: -240px;
  background: radial-gradient(circle, rgba(120,220,255,.45), transparent 62%); }
.auth-hero > * { position: relative; z-index: 1; }
.hero-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; }
/* ---------- 入口页左侧品牌区（Elevor） ---------- */
.hero-top { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; flex-wrap: wrap; }
.hero-logo { display: flex; align-items: center; gap: 12px; }
.elevor-mark { flex: none; filter: drop-shadow(0 6px 14px rgba(6,20,50,.25)); }
.hero-wordmark .hw-1 { font-size: 19px; font-weight: 800; letter-spacing: .22em; line-height: 1.1; }
.hero-wordmark .hw-2 { font-size: 12.5px; opacity: .78; margin-top: 3px; letter-spacing: .04em; }
.hero-badge {
  margin-left: auto; font-size: 11.5px; letter-spacing: .12em; opacity: .9;
  border: 1px solid rgba(255,255,255,.38); border-radius: 999px; padding: 5px 12px; white-space: nowrap;
}
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 22px; }
.hero-tags span {
  font-size: 12px; border-radius: 999px; padding: 4px 12px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
}
.hero-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.hero-feats .feat {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 13px;
  background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.18);
}
.hero-feats .fi { font-size: 17px; flex: none; }
.hero-feats .ft { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.hero-feats .ft span { display: block; font-size: 11.5px; font-weight: 400; opacity: .74; margin-top: 2px; }
@media (max-width: 640px) { .hero-feats { grid-template-columns: 1fr; } .hero-badge { margin-left: 0; } }
.hero-mark {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
  font-weight: 800; font-size: 13px; letter-spacing: .5px;
}
.hero-title { font-size: 34px; font-weight: 700; line-height: 1.25; margin: 0 0 14px; letter-spacing: -.02em; }
.hero-sub { font-size: 14px; opacity: .85; margin: -4px 0 0; letter-spacing: .02em; }
.hero-cta-wrap { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-height: 900px) {
  .auth-hero { padding: 40px 52px; }
  .hero-title { font-size: 31px; }
  .hero-top { margin-bottom: 22px; }
  .hero-feats .feat { padding: 9px 12px; }
}
.hero-desc { font-size: 15px; opacity: .88; max-width: 440px; margin: 0 0 34px; }
.hero-list { list-style: none; padding: 0; margin: 0 0 38px; display: flex; flex-direction: column; gap: 14px; }
.hero-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; opacity: .95; }
.hero-list svg { flex: none; margin-top: 3px; }
.hero-stats { display: flex; gap: 34px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.22); }
.hero-stats b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.hero-stats span { font-size: 12.5px; opacity: .8; }

.auth-side { display: flex; align-items: center; justify-content: center; padding: 40px 28px; background: #fff; }
.auth-card { width: 100%; max-width: 430px; }
.auth-title { font-size: 25px; font-weight: 700; margin: 0 0 6px; letter-spacing: -.02em; }
.auth-sub { color: var(--muted); font-size: 14px; margin: 0 0 26px; }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: #f1f4f9; border-radius: 12px; padding: 4px; margin-bottom: 24px; }
.seg button {
  position: relative; z-index: 2; border: none; background: transparent; padding: 10px; border-radius: 9px;
  font-size: 14px; font-weight: 500; color: var(--muted); transition: .2s;
}
.seg button.active { color: var(--brand); }
.seg .seg-pill {
  position: absolute; z-index: 1; top: 4px; bottom: 4px; width: calc(50% - 4px); border-radius: 9px;
  background: #fff; box-shadow: 0 2px 8px rgba(16,24,40,.12); transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.seg.reg .seg-pill { transform: translateX(100%); }

.field { position: relative; margin-bottom: 15px; }
.field .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #9aa8bd; display: flex; }
.field input {
  width: 100%; height: 48px; padding: 0 44px 0 42px; border: 1.5px solid var(--border);
  border-radius: 12px; font-size: 14.5px; background: #fbfcfe; transition: .18s;
}
.field input::placeholder { color: #a7b3c4; }
.field input:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(43,108,176,.12); }
.field .eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: none; background: none;
  padding: 8px; color: #9aa8bd; cursor: pointer; border-radius: 8px; line-height: 0;
}
.field .eye:hover { color: var(--brand); background: var(--brand-soft); }
.field.bad input { border-color: var(--red); background: #fff8f8; }
.field .err { display: none; font-size: 12.5px; color: var(--red); margin-top: 6px; }
.field.bad .err { display: block; }
.field .ok { position: absolute; right: 46px; top: 50%; transform: translateY(-50%); color: var(--ok); display: none; }
.field.good .ok { display: block; }

.btn-main {
  width: 100%; height: 48px; border: none; border-radius: 12px; font-size: 15px; font-weight: 600;
  color: #fff; background: linear-gradient(120deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 22px rgba(43,108,176,.3); margin-top: 6px; transition: .18s;
}
.btn-main:hover { box-shadow: 0 10px 26px rgba(43,108,176,.4); transform: translateY(-1px); }
.btn-main:active { transform: translateY(0); }
.btn-main:disabled { opacity: .65; transform: none; cursor: default; }
.form-msg { min-height: 20px; font-size: 13.5px; margin: 12px 0 0; }
.form-msg.err { color: var(--red); }
.form-msg.ok { color: var(--ok); }
.auth-foot { margin-top: 22px; font-size: 13px; color: var(--muted); text-align: center; }
.auth-foot a { font-weight: 500; }
.auth-legal { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.page-legal { margin: 16px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.auth-legal a, .page-legal a { color: var(--muted); text-decoration: none; }
.auth-legal a:hover, .page-legal a:hover { color: var(--brand); text-decoration: underline; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } .auth-hero { padding: 36px 24px; } }

/* 身份选择 */
.rolepick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.rolepick button {
  border: 1.5px solid var(--border); background: #fbfcfe; border-radius: 11px; padding: 10px 6px;
  font-size: 13.5px; color: var(--muted); transition: .16s;
}
.rolepick button:hover { border-color: #c9d6e5; }
.rolepick button.active {
  border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600;
  box-shadow: 0 2px 8px rgba(43,108,176,.12);
}

/* 注册时的目标考试选择 */
.exam-block { margin-bottom: 15px; }
.exam-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.exam-seg button {
  border: 1.5px solid var(--border); background: #fbfcfe; border-radius: 11px; padding: 10px 6px;
  font-size: 13.5px; color: var(--muted);
}
.exam-seg button.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }

/* ============================================================
   平台首页 / 首页卡片
   ============================================================ */
.hero-strip {
  border-radius: 16px; padding: 30px 32px; color: #fff; margin-bottom: 20px; position: relative; overflow: hidden;
  background: var(--hero);
  box-shadow: 0 16px 34px rgba(79, 70, 229, .22);
}
.hero-strip::after {
  content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -180px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.32), transparent 65%);
}
.hero-strip > * { position: relative; z-index: 1; }
.hero-strip h2 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.02em; }
.hero-strip p { margin: 0; opacity: .9; font-size: 14.5px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.feature {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 20px;
  box-shadow: var(--shadow); transition: .18s; text-decoration: none; color: inherit; display: block;
}
.feature:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(16,24,40,.12); border-color: #c9d6e5; }
.feature .ic {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px;
  background: var(--brand-soft); color: var(--brand);
}
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.feature .badge {
  display: inline-block; margin-top: 12px; font-size: 12px; padding: 2px 9px; border-radius: 999px;
  background: #eef2f7; color: var(--muted);
}
.feature .badge.live { background: #e4f5ea; color: var(--ok); }
.feature.locked { opacity: .72; }
.feature.locked:hover { transform: none; box-shadow: var(--shadow); }
.staff-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fff8e6; border: 1px solid #f2e0b0; border-radius: 12px; padding: 12px 16px; margin-bottom: 18px;
}
.staff-bar .t { font-size: 13.5px; color: #8a6d1f; }

/* ============================================================
   学员端外壳：左侧导航 + 右侧内容
   ============================================================ */
body.shell { background: var(--bg); }
.shell-wrap { display: grid; grid-template-columns: 234px 1fr; min-height: 100vh; }

.side {
  background: #fff; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; }
.side-brand .mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  font-weight: 800; font-size: 12px; letter-spacing: .5px;
}
.side-brand .bn { font-size: 13.5px; font-weight: 600; line-height: 1.3; letter-spacing: .1em; white-space: nowrap; }
.side-brand .bs { letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
/* 本周完成度小卡 */
.side-week {
  display: flex; align-items: center; gap: 12px; margin: 0 14px 14px;
  background: linear-gradient(120deg, #F8F7FF, #FFFFFF);
  border: 1px solid var(--brand-soft); border-radius: 14px; padding: 11px 13px;
}
.side-week svg { flex: none; }
.side-week .t { font-size: 10.5px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.side-week .n { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.35; }
.side-week .s { font-size: 11px; color: #B45309; margin-top: 2px; }
/* 等级进度 */
.side-xp { margin: 0 16px 8px; }
.side-xp .bar { height: 6px; border-radius: 999px; background: #F0F1F6; overflow: hidden; }
.side-xp .bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #FB923C, #F59E0B); transition: .3s; }
.side-xp .txt { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-top: 5px; }
.side-class {
  margin-top: 5px; font-size: 11.5px; color: #43607f; background: #eef4fb;
  border: 1px solid #d8e6f5; border-radius: 999px; padding: 2px 8px; display: inline-block;
  max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.side-brand .bs { font-size: 11.5px; color: var(--muted); }

.side-nav { flex: 1; overflow: auto; padding: 6px 10px; display: flex; flex-direction: column; gap: 3px; }
.side-nav button {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  border: none; border-left: 2px solid transparent; background: transparent; color: #585F6D; font-size: 13.5px;
  padding: 10px 10px; border-radius: 9px; transition: .15s;
}
.side-nav button .ic {
  width: 22px; height: 22px; border-radius: 6px; background: #F3F4F8; color: #8A90A0; flex: none;
  display: grid; place-items: center; font-size: 11px; transition: .15s;
}
.side-nav button:hover { background: #f7f8fc; color: var(--text); }
.side-nav button.active { background: var(--brand-soft); color: var(--brand-2, var(--brand)); font-weight: 600; border-left-color: var(--brand); }
.side-nav button.active .ic { background: var(--hero, var(--brand)); color: #fff; }
.side-nav .sbadge {
  margin-left: auto; font-size: 10.5px; background: #FFF3E0; color: #B45309;
  border-radius: 999px; padding: 1px 7px; font-weight: 500;
}
.side-nav button.locked { color: var(--muted); }
.side-nav button.locked::after {
  content: "开发中"; margin-left: auto; font-size: 11px; color: var(--muted);
  background: #f0f3f8; padding: 1px 7px; border-radius: 999px; font-weight: 400;
}

.side-foot {
  display: flex; align-items: center; gap: 9px; padding: 12px 14px; flex-wrap: wrap;
  border-top: 1px solid var(--border);
}
.side-foot .who { min-width: 0; flex: 1 1 120px; }
.side-foot .who div:first-child { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot .muted { font-size: 12px; }
.side-foot > button { flex: none; }
.side-foot-actions { display: flex; gap: 8px; flex: none; width: 100%; }
.side-foot-actions .mini { flex: 1; justify-content: center; }
.side-foot-actions .mini.active { border-color: var(--brand); color: var(--brand); background: #eef4ff; }
.side-class { max-width: 100%; }
/* 后台·资料库：文件夹创建区 */
.folder-setup { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin-top: 12px; }
.fs-row { flex: 0 0 auto; }
.fs-make {
  flex: 1 1 420px; min-width: 320px; background: #f7faff; border: 1px dashed #c9d8ee;
  border-radius: 12px; padding: 12px 14px;
}
.fs-t { font-weight: 600; font-size: 13.5px; margin-bottom: 8px; color: #2b4a72; }
.fs-body { display: flex; gap: 8px; flex-wrap: wrap; }
.fs-body input[type="text"] { flex: 1 1 200px; min-width: 160px; }
.fs-body select { flex: 0 1 190px; }
.fs-hint { font-size: 12.5px; color: #6b7684; line-height: 1.7; margin-top: 8px; }
.fs-hint .muted { margin-left: 6px; }
.folder-mgr { margin: 12px 0 6px; }
.folder-mgr > summary { cursor: pointer; font-weight: 600; font-size: 13.5px; }
.folder-mgr > summary .muted { font-weight: 400; font-size: 12.5px; }
/* 后台弹窗（点 6/7/8 分格子后上传范文/解析） */
.cbt-modal { position: fixed; inset: 0; background: rgba(16,24,40,.45); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cbt-modal[hidden] { display: none; }
.cbt-modal-box {
  background: #fff; border-radius: 16px; padding: 20px 22px; width: min(560px, 94vw);
  max-height: 92vh; overflow: auto; box-shadow: 0 18px 50px rgba(16,24,40,.22);
}
.cbt-modal-box h3 { font-size: 17px; }
.cbt-modal-box textarea { width: 100%; font: inherit; font-size: 14px; line-height: 1.7; }

.main { min-width: 0; display: flex; flex-direction: column; }
.main-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 16px 24px; background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.main-head h2 { margin: 0; font-size: 18px; }
.main-head .spacer { margin-left: auto; }
.views { padding: 20px 24px 60px; }
.view { display: none; }
.view.active { display: block; animation: fade .22s ease; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-bottom: 16px; }
.stat-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat-card .lab { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.stat-card .val { font-size: 27px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.stat-card .val small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.stat-card .note { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.55; }
.stat-card .accent { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.stat-card.b1 .accent { background: var(--brand); }
.stat-card.b2 .accent { background: var(--warn); }
.stat-card.b3 .accent { background: var(--ok); }

.plan-day {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 10px;
}
.plan-day .dh { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.plan-day .dh strong { font-size: 14.5px; }
.plan-day .dh .muted { margin-left: auto; }
.task { display: flex; align-items: flex-start; gap: 9px; padding: 5px 0; font-size: 13.5px; cursor: pointer; }
.task input { margin-top: 3px; }
.task.done span { text-decoration: line-through; color: var(--muted); }

.ai-tile {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 20px;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.ai-tile .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 12px; }
.ai-tile h3 { margin: 0 0 6px; font-size: 15.5px; }
.ai-tile p { margin: 0 0 14px; font-size: 13.5px; color: var(--muted); flex: 1; }
/* 「学习」入口卡片：有待办时高亮，并用与侧栏徽章同色的「待完成 N」明显标识 */
.ai-tile.has-todo { border-color: #f0c58a; box-shadow: 0 3px 14px rgba(180, 83, 9, .12); }
.ai-tile .learn-badge {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  font-size: 11px; font-weight: 600; line-height: 1.7;
  background: #FFF3E0; color: #B45309; border-radius: 999px; padding: 1px 9px; white-space: nowrap;
}

/* 真题页的分段切换 */
.seg-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 6px; margin-bottom: 16px;
}
.seg-tabs button {
  border: none; background: transparent; color: var(--muted); font-size: 14px;
  padding: 9px 16px; border-radius: 9px; transition: .15s;
}
.seg-tabs button:hover { background: #f2f5f9; }
.seg-tabs button.active { background: var(--brand); color: #fff; font-weight: 600; }
.sec { display: none; }
.sec.active { display: block; animation: fade .22s ease; }

/* 真题册书架 */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; margin-bottom: 16px; }
.book-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 12px;
  text-align: center; cursor: pointer; transition: .16s; box-shadow: var(--shadow);
}
.book-card:hover { transform: translateY(-2px); border-color: var(--brand); }
.book-card.active { border-color: var(--brand); background: var(--brand-soft); }
.book-card .bk { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.book-card .bs { font-size: 12px; color: var(--muted); margin-top: 4px; }
.book-card .bd { font-size: 11.5px; margin-top: 8px; padding: 2px 8px; border-radius: 999px; display: inline-block; background: #eef2f7; color: var(--muted); }
.book-card .bd.has { background: #e4f5ea; color: var(--ok); }
.book-card .bq { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.book-card .bqb {
  font-size: 12px; text-decoration: none; border-radius: 8px; padding: 5px 10px;
  background: var(--brand); color: #fff; white-space: nowrap;
}
.book-card .bqb.alt { background: #eef2f7; color: var(--text); }
.book-card .bqb:hover { opacity: .88; }

/* 文档列表 */
.doc-item {
  display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 13px 16px; margin-bottom: 10px;
}
.doc-item .di {
  width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.doc-item .dn { font-size: 14.5px; font-weight: 600; }
.doc-item .dm { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.doc-item .da { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.doc-item a.dl {
  text-decoration: none; background: var(--brand); color: #fff; border-radius: 8px;
  padding: 6px 14px; font-size: 13px;
}
.doc-item a.dl.alt { background: #eef2f7; color: var(--text); }

/* 上传区 */
.up-drop {
  border: 2px dashed var(--border); border-radius: 12px; padding: 26px; text-align: center;
  color: var(--muted); font-size: 13.5px; cursor: pointer; background: #fbfcfe; transition: .16s;
}
.up-drop:hover, .up-drop.over { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.up-drop.picked { border-style: solid; border-color: var(--ok); background: #f4fbf6; color: var(--ok); }
.assign-box {
  border-top: 1px dashed var(--border); margin-top: 10px; padding-top: 10px;
  display: flex; flex-wrap: wrap; gap: 8px; max-height: 190px; overflow: auto;
}
.assign-box label {
  display: flex; align-items: center; gap: 6px; font-size: 13px;
  border: 1px solid var(--border); border-radius: 8px; padding: 5px 10px; background: #fff;
}
/* 后台「资料列表」 */
.catbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.catbar .catbtn {
  font: inherit; font-size: 12.5px; cursor: pointer; border: 1px solid var(--border);
  background: #fff; color: var(--text); border-radius: 999px; padding: 5px 13px;
  display: inline-flex; align-items: center; gap: 6px;
}
.catbar .catbtn span { color: var(--muted); font-size: 11.5px; }
.catbar .catbtn:hover { border-color: var(--brand); color: var(--brand); }
.catbar .catbtn.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.catbar .catbtn.on span { color: rgba(255,255,255,.85); }
.catbar .catbtn.add { border-style: dashed; color: var(--brand); }
.catbar .catbtn.mine { background: #fdf4e6; }
.doc-table .mv { margin-top: 6px; font-size: 12px; color: var(--muted); }
.doc-table .mv select { border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; background: #fff; color: var(--text); }
.doc-table td { vertical-align: top; }
.doc-table tr.assign-row > td { background: #f9fbfe; padding: 0 12px 14px; }
.doc-table .tag { display: inline-block; margin: 0 4px 4px 0; }
.assign-box { border-top: 0; margin-top: 0; padding-top: 4px; max-height: none; }
.assign-box .as-sec { width: 100%; margin-bottom: 10px; }
.assign-box .as-t { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.assign-box .as-chips { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 900px) {
  .shell-wrap { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: column; }
  .side-nav { flex-direction: row; overflow-x: auto; padding: 8px 12px; gap: 6px; }
  .side-nav button { white-space: nowrap; width: auto; }
  .side-nav button.locked::after { display: none; }
  .side-foot { border-top: 1px solid var(--border); }
  .views { padding: 16px; }
}

/* ---------- 在线机考入口 ---------- */
.mm-wrap { display: flex; gap: 14px; margin-top: 12px; align-items: stretch; }
.mm-editor { flex: 1 1 46%; min-width: 280px; }
.mm-preview {
  flex: 1 1 54%; min-width: 300px; border: 1px solid var(--border); border-radius: 12px;
  background: #fbfcfe; padding: 8px; overflow: auto; max-height: 460px;
}
.mm-preview-t { font-size: 12px; color: var(--muted); padding: 2px 6px 6px; }
.mm-branch {
  border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px;
  background: #fbfcfe;
}
.mm-branch .row { gap: 8px; margin-bottom: 6px; }
.mm-branch input.mm-btext { flex: 1; }
.mm-branch textarea.mm-bkids {
  width: 100%; font: inherit; font-size: 13px; border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 9px; resize: vertical;
}
.mm-view { max-height: 70vh; overflow: auto; }
.cls-tpick {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; margin: 0 8px 8px 0;
  border: 1px solid var(--border); border-radius: 999px; background: #fbfcfe; font-size: 13px;
}
.cls-tpick select {
  font: inherit; font-size: 12.5px; border: 1px solid var(--border); border-radius: 8px;
  padding: 2px 6px; background: #fff;
}

/* 全套模考里的模块分区：听力 / 阅读 / 写作 / 口语 可单独模考 */
.pmod {
  border-left: 3px solid var(--brand-soft); border-radius: 0 10px 10px 0;
  padding: 8px 0 8px 12px; margin: 10px 0;
}
.pmod[data-mod="listening"] { border-left-color: var(--listen); background: var(--listen-soft); }
.pmod[data-mod="reading"] { border-left-color: var(--read); background: var(--read-soft); }
.pmod[data-mod="writing"] { border-left-color: var(--write); background: var(--write-soft); }
.pmod[data-mod="speaking"] { border-left-color: var(--speak); background: var(--speak-soft); }
.pmod .pmod-btn { border-color: var(--brand); color: var(--brand); }
.pmod[data-mod="listening"] .pmod-btn { border-color: var(--listen); color: #15803D; }
.pmod[data-mod="reading"] .pmod-btn { border-color: var(--read); color: #8A5A32; }
.pmod[data-mod="writing"] .pmod-btn { border-color: var(--write); color: #6D46E0; }
.pmod[data-mod="speaking"] .pmod-btn { border-color: var(--speak); color: #C8313A; }
.pmod-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pmod-t { font-weight: 700; font-size: 14px; }
.pmod-d { font-size: 12.5px; color: var(--muted); }
.pmod-btn {
  margin-left: auto; font: inherit; font-size: 13px; cursor: pointer;
  border: 1px solid var(--brand); background: #fff; color: var(--brand);
  border-radius: 9px; padding: 6px 14px; transition: .14s;
}
.pmod-btn:hover { background: var(--brand); color: #fff; }
.pmod .punits { margin-top: 0; }

/* ---------- 诊断检测（Mini Test） ---------- */
/* 外观主题选择（设置里） */
/* 主页模块：可拖动 / 可增减 */
/* 讲义 / 教案编辑器 */
.hd-wrap { display: flex; gap: 16px; align-items: flex-start; }
.hd-side { width: 258px; flex: none; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.hd-side-h { display: flex; align-items: center; gap: 8px; }
.hd-list { max-height: 560px; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.hd-item { border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; cursor: pointer; background: #fcfdff; }
.hd-item:hover { border-color: var(--brand-3); }
.hd-item.on { border-color: var(--brand); background: var(--brand-soft); }
.hd-item .t { font-size: 13.5px; font-weight: 600; }
.hd-item .m { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.hd-main { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.hd-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 12px; }
.hd-toolbar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-bottom: 0; border-radius: 12px 12px 0 0; background: #fafbff; }
.hd-editwrap { border: 1px solid var(--border); border-radius: 0 0 12px 12px; overflow: hidden; }
.hd-editor {
  min-height: 430px; max-height: 640px; overflow: auto; padding: 22px 26px; outline: none;
  font-size: 15px; line-height: 1.9; color: var(--text); background: #fff;
}
.hd-editor:empty:before { content: attr(data-ph); color: #a9b3c2; }
.hd-editor h2 { font-size: 22px; margin: 18px 0 8px; }
.hd-editor h3 { font-size: 17px; margin: 14px 0 6px; }
.hd-editor blockquote { border-left: 3px solid var(--brand-3); background: var(--brand-soft); margin: 10px 0; padding: 8px 14px; border-radius: 0 8px 8px 0; }
.hd-editor table { border-collapse: collapse; width: 100%; margin: 10px 0; }
.hd-editor table td, .hd-editor table th { border: 1px solid var(--border); padding: 7px 10px; font-size: 14px; }
.hd-editor img { max-width: 100%; border-radius: 10px; margin: 8px 0; }
.hd-editor hr { border: 0; border-top: 1px dashed var(--border); margin: 16px 0; }
.hd-preview { padding: 22px 26px; min-height: 430px; max-height: 640px; overflow: auto; font-size: 15px; line-height: 1.9; }
.hd-preview h2 { font-size: 22px; margin: 18px 0 8px; }
.hd-preview blockquote { border-left: 3px solid var(--brand-3); background: var(--brand-soft); margin: 10px 0; padding: 8px 14px; }
.hd-preview table { border-collapse: collapse; width: 100%; }
.hd-preview td, .hd-preview th { border: 1px solid var(--border); padding: 7px 10px; }
@media (max-width: 1080px) { .hd-wrap { flex-direction: column; } .hd-side { width: 100%; } }

.home-tools { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; }
.home-tools .muted { font-size: 12.5px; }
.home-tools button { margin-left: auto; }
.home-grid { display: flex; flex-direction: column; gap: 16px; }
.home-mod { position: relative; border-radius: 14px; transition: .15s; }
.home-mod .hm-body > .card:first-child { margin-top: 0; }
.home-mod .hm-body > .grid-cards, .home-mod .hm-body > .stat-row { margin-top: 0; }
.home-mod.editing { outline: 1px dashed var(--brand-3); outline-offset: 4px; }
.home-mod.editing:hover { outline-color: var(--brand); }
.home-mod.dragging { opacity: .5; }
.home-mod.over { outline: 2px solid var(--brand); outline-offset: 4px; }
.hm-h {
  display: flex; align-items: center; gap: 10px; padding: 6px 10px; margin-bottom: 6px;
  background: var(--brand-soft); border-radius: 10px; font-size: 13px;
}
.hm-h b { font-size: 13.5px; }
.hm-h .muted { font-size: 12px; }
.hm-grip { cursor: grab; color: var(--brand); letter-spacing: 2px; }
.hm-acts { margin-left: auto; display: flex; gap: 6px; }
.hm-acts button { padding: 3px 10px; font-size: 12px; }
.home-add .ha-group { margin-top: 12px; }
.home-add .ha-t { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.home-add .ha-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.home-add .ha-chip {
  font: inherit; font-size: 13px; cursor: pointer; border: 1px solid var(--border); background: #fff;
  border-radius: 999px; padding: 7px 15px; color: var(--text); display: inline-flex; align-items: center; gap: 7px;
}
.home-add .ha-chip.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.home-add .ha-chip[disabled] { cursor: default; color: var(--muted); background: #f7f8fb; }
.home-add .ha-badge { font-size: 10.5px; background: #eef1f7; color: var(--muted); border-radius: 999px; padding: 1px 7px; }

.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.theme-card {
  position: relative; text-align: left; cursor: pointer; font: inherit;
  border: 1.5px solid var(--border); background: #fff; border-radius: 14px; padding: 11px 13px;
  display: flex; flex-direction: column; gap: 2px; transition: .15s;
}
.theme-card:hover { border-color: var(--brand-3); box-shadow: 0 8px 18px rgba(16,24,40,.08); }
.theme-card.on { border-color: var(--brand); background: var(--brand-soft); }
.theme-sw { display: flex; gap: 5px; margin-bottom: 6px; }
.theme-sw i { width: 20px; height: 20px; border-radius: 7px; display: inline-block; border: 1px solid rgba(0,0,0,.05); }
.theme-nm { font-size: 13.5px; font-weight: 600; color: var(--text); }
.theme-sub { font-size: 11.5px; color: var(--muted); }
.theme-tick { position: absolute; right: 11px; top: 10px; font-size: 12px; color: var(--brand); opacity: 0; }
.theme-card.on .theme-tick { opacity: 1; }

.mini-grid { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.mini-card {
  flex: 1 1 320px; min-width: 300px; border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; background: #fbfcfe;
}
.mini-card.first { border-top: 3px solid var(--brand); }
.mini-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 15px; }
.mini-last { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
/* Mini 测试：水平滑块 */
.mini-level { margin-top: 12px; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: #fbfcff; }
.mini-level-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.mini-level-h b { font-size: 14px; }
.mini-level input[type="range"] { width: 100%; accent-color: var(--brand); }
.mini-level-scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.mini-level-now { margin-top: 8px; font-size: 13px; }
.mini-hist-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--border); flex-wrap: wrap; }
.mini-hist-row .mini { font-size: 12.5px; }
button.mini.danger, .mini.danger { color: var(--red); border-color: #f2c9c9; background: #fff7f7; }
button.mini.danger:hover { background: #fdeeee; }
/* 老师上传的专属报告：主页上的醒目领取入口 */
.mini-claim {
  margin-top: 12px; border: 1px dashed #b9d2f2; border-radius: 12px; padding: 10px 12px;
  background: linear-gradient(135deg, #f2f7ff, #fdfdff);
}
.mini-claim-t { font-weight: 700; font-size: 13.5px; color: #1d4ed8; }
.mini-claim-d { font-size: 12px; color: var(--muted); margin: 3px 0 8px; word-break: break-all; }
.mini-claim-btn {
  display: inline-block; text-decoration: none; color: #fff; font-weight: 600; font-size: 14px;
  padding: 10px 22px; border-radius: 10px;
  background: linear-gradient(135deg, #2b6cb0, #6b46c1);
  box-shadow: 0 8px 18px rgba(43,108,176,.28);
  animation: claimPulse 2.2s ease-in-out infinite;
}
.mini-claim-btn:hover { filter: brightness(1.06); }
@keyframes claimPulse {
  0%, 100% { box-shadow: 0 8px 18px rgba(43,108,176,.28); }
  50% { box-shadow: 0 10px 26px rgba(107,70,193,.42); }
}
.mr-card {
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-top: 10px; background: #fff;
}
.mr-t { font-weight: 600; margin-bottom: 8px; }
.mr-bands { display: flex; gap: 10px; flex-wrap: wrap; }
.mr-band {
  min-width: 92px; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px;
  text-align: center; background: linear-gradient(135deg, #eef4ff, #f7fbff);
}
.mr-band b { display: block; font-size: 24px; color: var(--brand); line-height: 1.2; }
.mr-band span { font-size: 12px; color: var(--muted); }
.mr-band.sm { min-width: 78px; }
.mr-band.sm b { font-size: 18px; }
.mr-band.weak b { color: #c2410c; }
.mr-kv { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.9; }
.mr-kv > span { color: var(--muted); min-width: 96px; flex: none; }
.mr-note { margin-top: 8px; font-size: 13.5px; line-height: 1.8; background: #f7fbff; border-radius: 8px; padding: 8px 10px; }
.mr-wa-row, .mr-wk { border-top: 1px dashed var(--border); padding: 10px 0; font-size: 13.5px; }
.mr-wa-row:first-child, .mr-wk:first-child { border-top: 0; }
.mr-wa-h, .mr-wk-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.mr-wa-ans { font-size: 13px; color: #334; }
.mr-wa-ans i { color: #b91c1c; font-style: normal; }
.mr-wa-p { font-size: 13px; color: #334; line-height: 1.8; margin-top: 4px; }
.mr-wa-p.tip { color: var(--brand); }
.mr-pr { display: flex; gap: 10px; border-top: 1px dashed var(--border); padding: 10px 0; font-size: 13.5px; }
.mr-pr:first-child { border-top: 0; }
.mr-pr.p1 { background: #fff8f2; border-radius: 10px; padding: 10px 12px; border-top: 0; }
.mr-pr.p2 { background: #fffaf0; border-radius: 10px; padding: 10px 12px; border-top: 0; }
.mr-pr.p3 { background: #f7f8fa; border-radius: 10px; padding: 10px 12px; border-top: 0; }
.mr-pr-b { flex: 1; min-width: 0; }
.mr-pri {
  flex: none; align-self: flex-start; font-size: 12px; font-weight: 700; color: #fff; background: var(--brand);
  border-radius: 999px; padding: 2px 10px;
}
.mr-pri.p2 { background: #d97706; }
.mr-pri.p3 { background: #94a3b8; }
/* 「现在最该做的一件事」高亮条 */
.mr-one {
  display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap;
  background: #eef6ff; border: 1px solid #cfe0ff; border-radius: 10px; padding: 9px 12px;
  margin-bottom: 10px; font-size: 13.5px; line-height: 1.8;
}
.mr-one span {
  flex: none; font-size: 11.5px; color: #fff; background: var(--brand);
  border-radius: 999px; padding: 2px 9px;
}
/* 错题分析里的字段标签（原文依据 / 错在哪 / 正确思路 / 易错点） */
.mr-lab { display: inline-block; min-width: 58px; margin-right: 6px; color: #64748b; }
/* 听力错题的「原声片段」播放器 */
.mr-wa-audio { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.mr-wa-audio audio { height: 34px; width: 100%; max-width: 300px; }
.mr-ul { margin: 4px 0 0 18px; font-size: 13px; line-height: 1.9; }
.mr-sum { font-size: 14px; line-height: 1.95; }
.mr-hero { border-left: 4px solid var(--brand); background: linear-gradient(135deg, #f4f8ff, #fff); }
.mr-sum-p { margin: 6px 0 0; }
.mr-top3 { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.mr-top3-i {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 7px 12px;
  border: 1px solid var(--border); border-radius: 999px; background: #fff;
}
.mr-top3-i span {
  width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: #fff;
  font-size: 11px; display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.mr-bars { margin-top: 10px; }
.mr-bar { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-size: 13px; }
.mr-bar-l { width: 42px; color: var(--muted); flex: none; }
.mr-bar-t { position: relative; flex: 1; height: 10px; border-radius: 999px; background: #eef2f8; }
.mr-bar-t i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, #6ea8fe, var(--brand)); }
.mr-bar-t i.low { background: linear-gradient(90deg, #fbbf24, #f97316); }
.mr-bar-t b { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #334155; opacity: .65; }
.mr-bar-v { width: 68px; text-align: right; font-variant-numeric: tabular-nums; flex: none; }
.mr-sev { font-size: 11.5px; padding: 2px 9px; border-radius: 999px; }
.mr-sev.sev-c { background: #fee2e2; color: #b91c1c; }
.mr-sev.sev-h { background: #ffedd5; color: #c2410c; }
.mr-sev.sev-m { background: #fef9c3; color: #a16207; }
.mr-sev.sev-l { background: #e8f5ee; color: #166534; }
.mr-fold > summary { cursor: pointer; display: flex; align-items: baseline; gap: 10px; }
.mr-fold > summary::-webkit-details-marker { color: var(--brand); }
.mr-fold[open] > summary { margin-bottom: 8px; }
.mr-path { display: flex; gap: 12px; flex-wrap: wrap; }
.mr-path-i { flex: 1 1 220px; min-width: 200px; border-left: 3px solid var(--brand-soft); padding-left: 10px; }
.mm-svg text { font-family: inherit; }
@media (max-width: 900px) {
  .mm-wrap { flex-direction: column; }
}

.jj-card { border-top: 3px solid var(--brand); }
.jj-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.jj-tab {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: #fff; color: var(--text); font-size: 13px; cursor: pointer;
  transition: .14s;
}
.jj-tab:hover { border-color: var(--brand); color: var(--brand); }
.jj-tab.on { background: var(--brand); border-color: transparent; color: #fff; }
.jj-tab i { font-style: normal; font-size: 11.5px; opacity: .75; }
.jj-search {
  margin-left: auto; min-width: 180px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: #fff; font-size: 13px; font-family: inherit;
}
.jj-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; max-height: 420px; overflow: auto; }
.jj-row {
  padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fbfcfe;
}
.jj-row .jj-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.jj-row .jj-f { font-size: 12px; color: var(--muted); }
.jj-row .jj-act { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.jj-row .jj-act .dl { margin-left: 0 !important; }
.jj-audio { height: 34px; max-width: 340px; flex: 1; min-width: 200px; }
.jj-row .jj-d { font-size: 12.5px; color: var(--brand); font-weight: 600; flex: none; min-width: 42px; }
.jj-row .jj-t { font-size: 13.5px; font-weight: 600; }
.jj-row .jj-n { font-size: 12.5px; color: var(--muted); line-height: 1.7; margin-top: 6px; }
.jj-row .jj-n + .jj-act { margin-top: 6px; }
.cbt-set {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px;
  background: #fcfdff; cursor: pointer; transition: .14s;
}
.cbt-set:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(43,108,176,.10); }
.cbt-set .ic {
  width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none;
}
.cbt-set .t { font-weight: 600; font-size: 14.5px; }
.cbt-set .d { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cbt-set .go { margin-left: auto; color: var(--brand); font-size: 13px; }
.cbt-set .badge { margin-left: auto; font-size: 12px; color: #1a7f4b; background: #e8f7ef; border-radius: 999px; padding: 3px 10px; }

/* ---------- 学习计划表（可视化） ---------- */
.plan-sum {
  display: flex; align-items: center; gap: 22px; background: #fff; border: 1px solid var(--border);
  border-radius: 16px; padding: 20px 24px; margin-bottom: 16px;
}
.plan-ring {
  width: 108px; height: 108px; border-radius: 50%; flex: none; position: relative;
  background: conic-gradient(var(--brand) var(--p, 0%), #e8edf5 0);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.plan-ring::before { content: ""; position: absolute; inset: 10px; background: #fff; border-radius: 50%; }
.plan-ring span { position: relative; font-size: 26px; font-weight: 700; color: var(--brand); line-height: 1; }
.plan-ring small { position: relative; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.plan-sum-txt { min-width: 0; }
.pst1 { font-size: 17px; font-weight: 700; }
.pst2 { font-size: 13px; color: var(--muted); margin-top: 5px; line-height: 1.75; }
.plan-legend { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.plan-legend .lg { font-size: 12px; border-radius: 999px; padding: 3px 11px; border: 1px solid var(--border); background: #f8fafd; }

.plan-week { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.pday { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.pday.full { border-color: #9ad6b5; background: #f6fdf9; }
.pday-h { display: flex; align-items: baseline; justify-content: space-between; }
.pday-h b { font-size: 14.5px; }
.pday-h span { font-size: 12px; color: var(--muted); }

.ptask {
  display: flex; align-items: flex-start; gap: 8px; padding: 9px 11px; border-radius: 10px;
  border: 1px solid #e9eef6; background: #fbfcfe; cursor: pointer; transition: .14s;
}
.ptask .pt-check { cursor: pointer; flex: none; display: flex; align-items: center; padding-top: 2px; }
.ptask .pt-check input { display: none; }
.ptask .pt-box {
  width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid #c9d6e5; background: #fff;
  display: grid; place-items: center; font-size: 12px; color: #fff;
}
.ptask.done .pt-box { background: var(--ok); border-color: var(--ok); }
.ptask .pt-body { flex: 1; min-width: 0; }
.ptask .pt-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.ptask .pt-go { font-size: 12px; color: var(--brand); flex: none; align-self: center; }
.ptask.done .pt-go { color: var(--muted); }
.ptask:hover { border-color: var(--brand); }
.ptask input { display: none; }
.ptask .pi { font-size: 15px; line-height: 1.5; flex: none; }
.ptask .px { font-size: 13px; line-height: 1.7; color: var(--text); }
.ptask.done { opacity: .55; }
.ptask.done .px { text-decoration: line-through; }
/* 日历格子里的任务条 */
.cal-c { position: relative; }
.cal-c .cal-ok { font-style: normal; color: var(--ok); margin-left: 6px; font-size: 12px; }
.cal-task {
  display: flex; align-items: center; gap: 4px; font-size: 11px; line-height: 1.35;
  background: #f2f6fc; border-radius: 6px; padding: 2px 5px; margin-bottom: 3px;
  color: var(--text); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer;
  border-left: 3px solid #8a94a3;
}
.cal-task:hover { background: #e8f0fb; }
.cal-task i { font-style: normal; flex: none; }
.cal-task em { font-style: normal; margin-left: auto; color: var(--muted); flex: none; }
.cal-task.on { opacity: .55; text-decoration: line-through; }
.cal-task.li { border-left-color: #2b6cb0; } .cal-task.sp { border-left-color: #6b46c1; }
.cal-task.re { border-left-color: #1a7f4b; } .cal-task.wr { border-left-color: #b7791f; }
.cal-task.wo { border-left-color: #0d9488; } .cal-task.rv { border-left-color: #8a94a3; }

/* 浮层：即时任务表 */
.plan-pop {
  position: fixed; z-index: 90; width: 340px; max-width: calc(100vw - 24px);
  max-height: min(70vh, 540px); overflow: auto;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 18px 44px rgba(16,34,66,.22); padding: 14px 15px;
  animation: popIn .12s ease;
}
@keyframes popIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.plan-pop .pp-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.plan-pop .pp-h b { font-size: 14.5px; }
.plan-pop .pp-ic { font-size: 16px; }
.plan-pop .pp-min { margin-left: auto; font-size: 12px; color: var(--muted); }
.plan-pop .pp-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.plan-pop .pp-tip { font-size: 13px; line-height: 1.8; background: #f6fdf9; border: 1px solid #9ad6b5; border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; }
.plan-pop .pp-row {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; cursor: pointer;
  font: inherit; font-size: 13px; background: #fbfcfe; border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 10px; margin-bottom: 6px;
}
.plan-pop .pp-row:hover { border-color: var(--brand); background: #f4f9ff; }
.plan-pop .pp-row.done { opacity: .6; }
.plan-pop .pp-d { color: var(--brand); font-size: 12px; flex: none; min-width: 34px; }
.plan-pop .pp-x { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-pop .pp-m { font-size: 11.5px; color: var(--muted); flex: none; }
.plan-pop .pp-list { max-height: 300px; overflow: auto; }
.plan-pop .pp-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.plan-pop .pp-btn {
  font: inherit; font-size: 13px; text-decoration: none; cursor: pointer;
  background: var(--brand); color: #fff; border: 0; border-radius: 9px; padding: 7px 13px;
}
.plan-pop .pp-btn.ghost { background: #eef2f7; color: var(--text); }
.plan-pop .pp-btn:hover { opacity: .9; }
.plan-pop .pp-up { border-top: 1px dashed var(--border); padding-top: 10px; margin-top: 4px; }
.plan-pop .pp-up-t { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.plan-pop .pp-up input[type=file] { font-size: 12.5px; margin-bottom: 6px; display: block; }
.plan-pop .pp-up input[type=text] { width: 100%; font: inherit; font-size: 12.5px; border: 1px solid var(--border); border-radius: 8px; padding: 6px 9px; margin-bottom: 8px; }
.plan-pop .pp-msg { font-size: 12px; color: var(--muted); margin-left: 8px; }
.plan-pop .pp-files { border-top: 1px dashed var(--border); margin-top: 8px; padding-top: 8px; font-size: 12.5px; }
.plan-pop .pp-files a { color: var(--brand); }
.plan-pop .pp-foot { font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.plan-pop .pp-empty { font-size: 13px; color: var(--muted); padding: 10px 0; }
.plan-pop .pp-ok { font-size: 12.5px; color: var(--ok); background: #eefaf3; border: 1px solid #9ad6b5; border-radius: 9px; padding: 6px 11px; }
.plan-pop .pp-note { font-size: 12.5px; color: #a06a1b; background: #fdf6e6; border: 1px solid #e8cf9a; border-radius: 9px; padding: 6px 11px; }
.ptask .pt-box.auto { border-style: dashed; background: #f2f4f7; }
.ptask .pt-box.auto.on { background: var(--ok); border-color: var(--ok); border-style: solid; }
.ptask.li { border-left: 3px solid #2b6cb0; }
.ptask.sp { border-left: 3px solid #6b46c1; }
.ptask.re { border-left: 3px solid #1a7f4b; }
.ptask.wr { border-left: 3px solid #b7791f; }
.ptask.wo { border-left: 3px solid #0d9488; }
.ptask.rv { border-left: 3px solid #8a94a3; }
.plan-legend .lg.li { background: #eef4fd; } .plan-legend .lg.sp { background: #f3eefd; }
.plan-legend .lg.re { background: #e9f8f0; } .plan-legend .lg.wr { background: #fdf4e6; }
.plan-legend .lg.wo { background: #e6f7f5; } .plan-legend .lg.rv { background: #f2f4f7; }

/* ---------- 计划：积分 / 日历 / 详情 ---------- */
.plan-top { display: grid; grid-template-columns: 260px 1fr; gap: 16px; margin-bottom: 14px; }
@media (max-width: 860px) { .plan-top { grid-template-columns: 1fr; } }
.pg-card {
  background: linear-gradient(140deg,#2b6cb0,#6b46c1); color: #fff; border-radius: 16px; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.pg-lv { font-size: 30px; font-weight: 800; line-height: 1; }
.pg-lv small { font-size: 12px; font-weight: 500; opacity: .8; margin-left: 8px; }
.pg-xp { font-size: 13px; opacity: .95; }
.pg-xp b { font-size: 20px; }
.pg-xpi { display: block; font-size: 12px; opacity: .8; margin-top: 2px; }
.pg-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.28); overflow: hidden; margin-top: 4px; }
.pg-bar i { display: block; height: 100%; background: #fff; border-radius: 99px; }
.pg-sub { font-size: 11.5px; opacity: .85; }
.pg-streak { font-size: 13px; margin-top: 4px; background: rgba(255,255,255,.18); border-radius: 9px; padding: 6px 10px; }
.plan-legend button.lg { cursor: pointer; font-family: inherit; }
.plan-legend button.lg:hover { border-color: var(--brand); color: var(--brand); }
.plan-switch { display: inline-flex; background: #eef1f6; border-radius: 10px; padding: 3px; margin-bottom: 14px; }
.plan-switch button {
  border: 0; background: transparent; padding: 7px 18px; border-radius: 8px; font-size: 13px;
  color: var(--muted); cursor: pointer; font-family: inherit;
}
.plan-switch button.on { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 1px 4px rgba(16,24,40,.08); }
.ppt { margin-left: auto; font-size: 11px; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 1px 7px; flex: none; }

/* 日历 */
.cal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cal-head b { font-size: 15px; }
.cal-wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
.cal-wk span { text-align: center; font-size: 12px; color: var(--muted); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-c {
  min-height: 96px; background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 6px; display: flex; flex-direction: column; gap: 4px;
  min-width: 0; overflow: hidden;
}
.cal-c > * { min-width: 0; max-width: 100%; }
.cal-task { max-width: 100%; min-width: 0; }
.cal-task em { flex: none; }
.cal-m { display: block; min-width: 0; }
.cal-c.empty { background: transparent; border: 0; }
.cal-c[data-day] { cursor: pointer; }
.cal-c[data-day]:hover { border-color: var(--brand); }
.cal-c.today { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.cal-c.full { background: #f6fdf9; }
.cal-d { font-size: 12px; color: var(--muted); }
.cal-c.today .cal-d { color: var(--brand); font-weight: 700; }
.cal-m { display: flex; flex-direction: column; gap: 3px; }
.dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-block; }
.dot.on { background: currentColor; }
.dot.li { color: #2b6cb0; } .dot.sp { color: #6b46c1; } .dot.re { color: #1a7f4b; }
.dot.wr { color: #b7791f; } .dot.wo { color: #0d9488; } .dot.rv { color: #8a94a3; }

/* 详情 */
.pdetail { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; margin-top: 16px; }
.pdetail-h { font-size: 14.5px; font-weight: 700; margin-bottom: 10px; }
.pd-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed #edf1f6; font-size: 13.5px; }
.pd-row:last-child { border-bottom: 0; }
.pd-row.done { opacity: .6; }
.pd-d { flex: none; width: 92px; color: var(--muted); font-size: 12.5px; }
.pd-x { flex: 1; }
.pd-s { flex: none; font-size: 12px; color: var(--brand); }

/* 后台：学习计划模板编辑器 */
.pl-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.pl-sel { flex: none; width: 116px; }
.pl-txt { flex: 1; }

/* 短语库：话题 / 次主题 / 频率 彩色标签 */
.ph-chip {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 12.5px; line-height: 1.5; margin: 1px 4px 1px 0; white-space: nowrap;
}

/* 短语库搜索框（老师端 + 学员端共用） */
.ph-search {
  display: inline-flex; align-items: center; gap: 8px; width: 320px; height: 38px;
  padding: 0 10px 0 12px; border-radius: 999px; background: #f6f8fc;
  border: 1px solid #e2e8f0; transition: box-shadow .18s, border-color .18s, background .18s;
  vertical-align: middle;
}
.ph-search:hover { border-color: #cfdcf0; background: #fff; }
.ph-search:focus-within {
  background: #fff; border-color: #8ab0f5;
  box-shadow: 0 0 0 3px rgba(91,141,239,.18), 0 6px 18px rgba(31,64,120,.08);
}
.ph-search-ico { font-size: 14px; opacity: .55; }
.ph-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: 13.5px; color: #101a33;
}
.ph-search input::placeholder { color: #9aa8bd; }
.ph-search-clear {
  display: none; border: 0; background: #e8eefb; color: #4d6ba8; width: 20px; height: 20px;
  border-radius: 999px; line-height: 1; cursor: pointer; font-size: 11px;
}
.ph-search.has-text .ph-search-clear { display: block; }
.ph-search-clear:hover { background: #d8e4fb; }

/* 学习子页的返回按钮 */
.learn-back {
  margin: 0 0 12px 2px; border-radius: 999px; padding: 5px 14px;
  border: 1px solid var(--border, #e2e8f0); background: #fff; cursor: pointer;
}
.learn-back:hover { background: #f4f8ff; border-color: #cfdcf0; }

/* AI 对话（占位窗口） */
.aichat { border: 1px solid var(--border, #e2e8f0); border-radius: 14px; overflow: hidden; background: #fbfcfe; }
.aichat-body { min-height: 150px; padding: 16px; }
.aichat-sys {
  display: inline-block; background: #eef4ff; color: #33518f;
  padding: 8px 12px; border-radius: 12px; font-size: 13.5px;
}
.aichat-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border, #e2e8f0); background: #fff; }
.aichat-input input {
  flex: 1; border: 1px solid var(--border, #e2e8f0); border-radius: 10px;
  padding: 9px 12px; font-size: 13.5px; background: #f8fafc;
}
.aichat-input input:disabled { color: #9aa8bd; }

/* 任务卡片（额外任务 / 主要任务） */
.tk-card { border-left: 4px solid #cfd9ea; }
.tk-card.li { border-left-color: #2fb37e; }
.tk-card.sp { border-left-color: #e05252; }
.tk-card.re { border-left-color: #a9743f; }
.tk-card.wr { border-left-color: #8b6ef0; }
.tk-card.wo { border-left-color: #d8a600; }
.tk-card.rv { border-left-color: #2b9cf0; }
.tk-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tk-ic { font-size: 16px; }
.tk-meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px;
}
.tk-cell {
  flex: 1 1 150px; min-width: 140px; background: #f7f9fd; border: 1px solid #e9eff8;
  border-radius: 12px; padding: 9px 12px;
}
.tk-cell > span { display: block; font-size: 11.5px; color: #7b8798; letter-spacing: .2px; }
.tk-cell > b { display: block; font-size: 13.5px; color: #101a33; margin-top: 3px; line-height: 1.5; }
.tk-cell > i { display: block; font-size: 11.5px; color: #7b8798; font-style: normal; margin-top: 3px; }
.tk-cell > b .muted { font-weight: 400; font-size: 12px; margin-left: 4px; }
.hl { background: #eef4ff; color: #33518f; border-radius: 4px; padding: 0 4px; }
.tag.warn { background: #fdf1cf; color: #7c5400; }
.tag.type { background: #eef2f7; color: #475569; }

/* 真题完成网格（老师端） */
.cbt-grid { display: flex; flex-direction: column; gap: 6px; }
.cbt-grid-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cbt-grid-g { width: 62px; font-size: 12px; color: #64748b; font-weight: 700; }
.cbt-cell {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 62px; height: 26px; padding: 0 8px; border-radius: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: .2px; cursor: default;
}
.cbt-cell.todo { background: #fde2e2; color: #b91c1c; }
.cbt-cell.done { background: #d7f5e5; color: #157347; }
.cbt-cell.ok   { background: #dbe8ff; color: #1f4b8f; }
.cbt-cell.late { background: #ede0ff; color: #5b2fa8; }
.cbt-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: #475569; margin-top: 8px; }
.cbt-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: -2px; }
.cbt-legend i.todo { background: #fde2e2; }
.cbt-legend i.done { background: #d7f5e5; }
.cbt-legend i.ok { background: #dbe8ff; }
.cbt-legend i.late { background: #ede0ff; }
.cbt-grid-wrap { padding: 10px 0; border-bottom: 1px dashed var(--border, #e2e8f0); }
.cbt-grid-wrap:last-child { border-bottom: 0; }
.tk-sub { background: #f8fafc; border: 1px solid #e9eff8; border-radius: 10px; padding: 10px 12px; }
.tk-subtext { font-size: 13.5px; line-height: 1.8; white-space: pre-wrap; }
.pd-row { cursor: pointer; border-radius: 8px; }
.pd-row:hover { background: #f4f8ff; }
tr.stu-row { cursor: pointer; }
tr.stu-row:hover td { background: #f4f8ff; }

/* 老师端：任务详情对话框 */
.tk-sec { border-top: 1px dashed var(--border, #e2e8f0); padding-top: 12px; margin-top: 12px; }
.tk-sec:first-of-type { border-top: 0; margin-top: 4px; padding-top: 0; }
.tk-sec-h { font-size: 13px; font-weight: 700; color: #334155; margin-bottom: 8px; }
.tk-sec-h::before { content: ""; display: inline-block; width: 4px; height: 13px; background: var(--brand, #5b8def);
  border-radius: 2px; margin-right: 7px; vertical-align: -2px; }
.tk-sec-b { background: #f8fafc; border: 1px solid #e9eff8; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; line-height: 1.85; }
.tk-sec-f { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.tk-grade { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.tk-f { display: flex; flex-direction: column; gap: 4px; }
.tk-f > span { font-size: 12px; color: #7b8798; }
.tk-f input { width: 120px; }
.tk-f.tk-grow { flex: 1; min-width: 260px; }
.tk-f.tk-grow input { width: 100%; }
.tk-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.tk-pager { display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 12px; }
.tk-pager button[disabled] { opacity: .45; cursor: not-allowed; }
/* 学生提交里的学员行 */
.pd-row { display: block; padding: 10px 12px; border: 1px solid #e9eff8; border-radius: 12px; margin: 8px 0; background: #fff; }
.pd-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pd-top .pd-d { font-weight: 700; }
.pd-gap { flex: 1; }
.pd-mini { font-size: 12.5px; }
.pd-sub { margin-top: 6px; font-size: 13px; line-height: 1.8; color: #475569; white-space: pre-wrap; }
.pd-ops { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.pd-ops input.pd-sc { width: 74px; }
.pd-ops input.pd-cm { flex: 1; min-width: 200px; }
.pd-range { font-size: 12px; color: #64748b; background: #f4f7fb; border: 1px solid #e6edf7;
  border-radius: 999px; padding: 3px 10px; }

/* 防止子页面内容撑出横向滚动（老师端日历与卡片） */
.app { overflow-x: hidden; }
.app .card, .app .panel { min-width: 0; }
.panel .cal-grid, .panel .cal-wk { width: 100%; }

/* 老师课堂：课程编辑器 */
.lc-chapter { border: 1px solid #e9eff8; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.lc-chapter-h { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.lc-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 7px 0; border-bottom: 1px dashed #eef2f7; }
.lc-row:last-child { border-bottom: 0; }
.lc-kind { font-size: 12px; background: #eef4ff; color: #33518f; border-radius: 999px; padding: 2px 9px; flex: none; }
.lc-title { font-size: 13.5px; }
.lc-body { font-size: 12.5px; color: #64748b; line-height: 1.8; padding: 4px 0 8px 6px; border-left: 2px solid #eef2f7; margin-left: 4px; }
/* 学员端课程 */
.crs-card { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.crs-lesson { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #eef2f7; }
.crs-lesson:last-child { border-bottom: 0; }
.crs-lesson .dot { width: 10px; height: 10px; border-radius: 50%; background: #d7dee8; flex: none; }
.crs-lesson .dot.on { background: #2fb37e; }
.crs-play { border: 1px solid var(--border, #e2e8f0); border-radius: 12px; overflow: hidden; margin-top: 8px; background: #f8fafc; }
.crs-play iframe, .crs-play video { width: 100%; height: 380px; border: 0; display: block; }

/* ===== 统一输入控件（老师端 / 管理员端 / 弹窗） ===== */
.app input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.app select, .app textarea,
.cbt-modal input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.cbt-modal select, .cbt-modal textarea {
  border: 1px solid #e3e9f2; background: #f8fafc; border-radius: 10px;
  padding: 9px 12px; font-size: 13.5px; color: #101a33; outline: 0; line-height: 1.5;
  transition: border-color .15s, box-shadow .15s, background .15s; box-shadow: none;
}
.app input::placeholder, .app textarea::placeholder { color: #a2adbb; }
.app input:not([type="checkbox"]):not([type="radio"]):hover,
.app select:hover, .app textarea:hover { border-color: #cfdcf0; }
.app input:not([type="checkbox"]):not([type="radio"]):focus,
.app select:focus, .app textarea:focus,
.cbt-modal input:focus, .cbt-modal select:focus, .cbt-modal textarea:focus {
  background: #fff; border-color: #8ab0f5; box-shadow: 0 0 0 3px rgba(91,141,239,.16);
}
.app select, .cbt-modal select { padding-right: 30px; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #8a97a8 50%), linear-gradient(135deg, #8a97a8 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.app textarea, .cbt-modal textarea { line-height: 1.7; resize: vertical; }
.app input.mini, .app select.mini, .app textarea.mini { padding: 7px 11px; font-size: 13px; }
.app button.mini, .app a.mini { border-radius: 10px; }
.app label.f > input, .app label.f > select, .app label.f > textarea { width: 100%; margin-top: 4px; }
.app label.f { display: inline-flex; flex-direction: column; font-size: 12.5px; color: #64748b; }
.app input[type="date"] { min-width: 140px; }
.app input[type="number"] { -moz-appearance: textfield; }

/* ===== 工作区（已打开的内容） ===== */
.ws-item { display: flex; align-items: center; gap: 6px; width: 100%; }
.ws-item .ws-open {
  flex: 1; min-width: 0; text-align: left; border: 0; background: transparent;
  border-radius: 10px; padding: 8px 10px; font-size: 13.5px; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ws-item .ws-open:hover { background: #f2f6ff; color: #2b6cb0; }
.ws-item.on .ws-open { background: #e8efff; color: #1d4ed8; font-weight: 600; }
.ws-item .ws-x { border: 0; background: transparent; color: #9aa8bd; cursor: pointer; font-size: 13px; padding: 4px 6px; border-radius: 8px; }
.ws-item .ws-x:hover { background: #fee2e2; color: #b91c1c; }
#wsStage.active { display: block; }
.ws-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ws-head h2 { margin: 0; font-size: 18px; }
