:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --inset: #f8f9fb;
  --hover: #f9fafb;
  --sel-bg: #f0f5ff;

  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --muted-2: #9ca3af;

  --line: #e5e7eb;
  --line-2: #eff1f5;

  --blue: #2563eb;
  --blue-d: #1d4ed8;
  --blue-l: #eff4ff;

  --ok: #15803d;
  --ok-bg: #f0fdf4;
  --warn: #b45309;
  --warn-bg: #fffbeb;
  --bad: #dc2626;
  --bad-bg: #fef2f2;

  --r: 12px;
  --r-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
.hidden { display: none !important; }

/* ── 角色登录入口（Gate） ── */
.gate-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 28px 60px;
}
.gate-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.gate-brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(155deg, #132e54, #1e4b85);
  color: #fff; font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.gate-brand h1 { font-size: 23px; font-weight: 700; letter-spacing: -.3px; color: var(--ink); line-height: 1.25; }
.gate-brand p { font-size: 13px; color: var(--muted); margin-top: 3px; }

.gate-strip {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 20px; margin-bottom: 20px;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px;
}
.gate-kpi { border-right: 1px solid var(--line-2); padding-right: 12px; }
.gate-kpi:last-child { border-right: none; padding-right: 0; }
.gate-kpi span { display: block; font-size: 11.5px; color: var(--muted); }
.gate-kpi b { display: block; font-size: 18px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.gate-kpi small { font-size: 11px; color: var(--muted-2); font-weight: 400; }

.gate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.gate-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 22px 17px;
  text-align: left;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.gate-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--role-color, var(--blue)); opacity: 0; transition: opacity .16s;
}
.gate-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(19, 46, 84, .09);
  border-color: #cddbf0;
}
.gate-card:hover::before { opacity: 1; }
.gate-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.gate-user-row { display: flex; align-items: center; gap: 10px; }
.gate-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--role-bg, var(--blue-l)); color: var(--role-color, var(--blue));
  font-weight: 700; font-size: 14px; flex: 0 0 36px;
}
.gate-user-meta b { display: block; font-size: 12.5px; color: var(--ink); line-height: 1.3; }
.gate-user-meta small { display: block; font-size: 11px; color: var(--muted); }
.gate-role-tag { font-size: 11px; color: var(--muted); background: var(--inset); border: 1px solid var(--line-2); padding: 2px 8px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.gate-card h3 { font-size: 16.5px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.gate-card p { font-size: 12.5px; color: var(--muted); line-height: 1.6; flex: 1; }
.gate-modules { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.gate-modules i {
  font-style: normal; font-size: 11px; color: var(--ink-2);
  background: var(--inset); border: 1px solid var(--line-2);
  padding: 2px 7px; border-radius: 6px;
}
.gate-card-foot {
  margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--ink-2); font-weight: 600;
}
.gate-card-foot span:last-child { color: var(--role-color, var(--blue)); }
.gate-note { text-align: center; font-size: 11.5px; color: var(--muted-2); margin-top: 22px; }

/* ── 清爽浅色飞书风侧边栏外壳 ── */
.app { display: flex; min-height: 100vh; }

.side {
  width: 212px; flex: 0 0 212px;
  background: #fbfcfd;
  border-right: 1px solid var(--line);
  color: var(--ink-2);
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 16px 0 14px;
  user-select: none;
}
.side-brand {
  padding: 0 16px 14px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--line-2);
}
.side-logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; flex: 0 0 30px;
}
.side-brand-t { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.side-brand-s { font-size: 11px; color: var(--muted); margin-top: 2px; }

.side-role-box {
  margin: 10px 12px 4px; padding: 8px 10px; border-radius: 8px;
  background: var(--inset); border: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 8px;
}
.side-role-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex: 0 0 6px; }
.side-role-box b { display: block; font-size: 12px; color: var(--ink); line-height: 1.25; }
.side-role-box small { display: block; font-size: 10.5px; color: var(--muted); }

.nav {
  flex: 1; overflow-y: auto; padding: 8px 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.nav button {
  width: 100%; display: flex; align-items: center; gap: 9px;
  padding: 8.5px 11px; border-radius: 8px;
  color: var(--ink-2); font-size: 13px; font-weight: 500;
  text-align: left; transition: background .12s, color .12s;
}
.nav button svg { width: 15px; height: 15px; opacity: .62; flex: 0 0 15px; }
.nav button:hover { background: var(--inset); color: var(--ink); }
.nav button.on { background: var(--blue-l); color: var(--blue); font-weight: 600; }
.nav button.on svg { opacity: 1; color: var(--blue); }
.nav-cnt {
  margin-left: auto; font-size: 11px; font-weight: 600;
  padding: 1px 6.5px; border-radius: 999px;
  background: var(--line-2); color: var(--muted);
}
.nav button.on .nav-cnt { background: #dbeafe; color: var(--blue); }

.side-foot {
  padding: 10px 12px 0;
  border-top: 1px solid var(--line-2);
  display: flex; flex-direction: column; gap: 6px;
}
.switch-btn {
  width: 100%; padding: 7px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); font-size: 12px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .12s;
}
.switch-btn svg { width: 14px; height: 14px; opacity: .7; }
.switch-btn:hover { background: var(--inset); color: var(--ink); }

/* ── 右侧主体与简洁顶栏 ── */
.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 10px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.topbar-l { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.topbar-sep { color: var(--line); }
.topbar-r { display: flex; align-items: center; gap: 10px; }
.date-pill {
  font-size: 11.5px; color: var(--muted); background: var(--inset);
  border: 1px solid var(--line-2); padding: 4px 11px; border-radius: 999px;
}

.content {
  padding: 13px 22px 40px;
  max-width: 1400px;
  width: 100%;
}

/* ── 紧凑单行页头（消灭冗余副标题挤占首屏） ── */
.page-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 11px; flex-wrap: wrap;
}
.page-head h1 { font-size: 18.5px; font-weight: 700; letter-spacing: -.2px; color: var(--ink); line-height: 1.28; }
.page-head p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.page-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }

/* ── 筛选胶囊与工具栏 ── */
.mini { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.mini button {
  padding: 5px 13px; border-radius: 999px; font-size: 12px; font-weight: 500;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
  transition: all .14s;
}
.mini button:hover { border-color: #c5d4ea; background: var(--hover); }
.mini button.on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }

.toolbar {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.toolbar-l, .toolbar-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar-count { font-size: 12px; color: var(--ink-2); font-weight: 600; }

/* ── 统计卡、栅格、卡片 ── */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.stats-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 15px 17px;
}
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.stat-lbl { font-size: 12px; color: var(--muted); font-weight: 500; }
.stat b {
  display: block; font-size: 28px; font-weight: 700; color: var(--ink);
  line-height: 1.18; letter-spacing: -.5px; margin: 5px 0 5px;
}
.stat b small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.stat-sub { font-size: 11.5px; color: var(--muted-2); display: flex; align-items: center; justify-content: space-between; gap: 4px; }

.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 16px; align-items: start; }
.split-wide { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 16px; align-items: start; }
.split-l { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.split-3 { display: grid; grid-template-columns: 250px minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.mb-10 { margin-bottom: 10px; }
.mb-12 { margin-bottom: 12px; }
.mb-14 { margin-bottom: 14px; }
.mb-16 { margin-bottom: 16px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 17px 19px;
}
.card-h {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin-bottom: 13px; flex-wrap: wrap;
}
.card-h h3 { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.card-h p { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.kv-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kv-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kv-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kv {
  background: transparent !important; border: none; border-left: 2px solid var(--line);
  border-radius: 0; padding: 2px 12px;
}
.kv span { display: block; font-size: 11.5px; color: var(--muted); }
.kv b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 2px; }
.kv small { display: block; font-size: 11px; color: var(--muted-2); margin-top: 1px; }

/* ── 按钮、表单、标签 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 6.5px 13px; border-radius: 8px; font-size: 12.5px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
  transition: all .14s; white-space: nowrap;
}
.btn:hover:not(:disabled) { background: var(--inset); border-color: #c8d7ec; color: var(--ink); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--blue-d); border-color: var(--blue-d); color: #fff; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.dark:hover:not(:disabled) { background: #0f172a; border-color: #0f172a; color: #fff; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.ok:hover:not(:disabled) { background: #15803d; border-color: #15803d; color: #fff; }
.btn.danger { background: var(--surface); border-color: #e8c4b8; color: var(--bad); }
.btn.danger:hover:not(:disabled) { background: var(--bad-bg); border-color: #d99b88; color: var(--bad); }
.btn.sm { padding: 4px 10px; font-size: 11.5px; border-radius: 7px; }
.btn.xs { padding: 2px 8px; font-size: 11px; border-radius: 6px; }
.btn.link { border: none; background: none; padding: 4px 6px; color: var(--muted); font-weight: 500; }
.btn.link:hover { color: var(--ink); background: var(--inset); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.inp, .sel, .txta {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 6.5px 11px; font-size: 12.5px; color: var(--ink); outline: none;
}
.inp:focus, .sel:focus, .txta:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-l); }

.seg {
  display: inline-flex; background: var(--inset); border: 1px solid var(--line);
  border-radius: 9px; padding: 2px; gap: 2px;
}
.seg button { padding: 4px 11px; border-radius: 7px; font-size: 12px; font-weight: 500; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(19, 46, 84, .08); }

.sub-tabs {
  display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin-bottom: 14px;
}
.sub-tabs button {
  padding: 7px 2px 9px; font-size: 12.5px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.sub-tabs button.on { color: var(--blue); border-bottom-color: var(--blue); }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1.5px 7.5px; border-radius: 5px; font-size: 11px; font-weight: 500;
  background: #f3f4f6; color: #4b5563; white-space: nowrap;
}
.tag.blue { background: #eff4ff; color: #2563eb; }
.tag.ok { background: #f0fdf4; color: #15803d; }
.tag.warn { background: #f3f4f6; color: #4b5563; }
.tag.bad { background: #fef2f2; color: #dc2626; font-weight: 600; }

.note-bar {
  background: #fdf8f1; border: 1px solid #efe0c2; border-radius: 10px;
  padding: 9.5px 13px; font-size: 12px; color: #745318;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.note-bar.blue { background: #f3f7fe; border-color: #d7e4fb; color: #1e3e72; }
.note-bar.ok { background: #f1fbf6; border-color: #cdecd9; color: #0a5c40; }

/* ── 表格、分页与列表行 ── */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.tbl th {
  background: var(--inset); color: var(--muted); font-size: 11px; font-weight: 600;
  text-align: left; padding: 9.5px 11px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.tbl td {
  padding: 10px 11px; border-bottom: 1px solid var(--line-2); color: var(--ink);
  vertical-align: middle;
}
table.tbl tr:last-child td { border-bottom: none; }
table.tbl tbody tr:hover { background: var(--hover); }
table.tbl tbody tr.clickable { cursor: pointer; }
table.tbl tbody tr.on { background: var(--sel-bg); box-shadow: inset 3px 0 0 var(--blue); }
table.tbl small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 400; margin-top: 1px; }

.pager {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line-2);
  font-size: 12px; color: var(--muted); flex-wrap: wrap;
}
.pager-btns { display: flex; align-items: center; gap: 5px; }
.pager-btns button {
  min-width: 28px; height: 28px; padding: 0 8px; border-radius: 7px;
  border: 1px solid var(--line); background: var(--surface); font-size: 11.5px; color: var(--ink-2);
}
.pager-btns button.on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.pager-btns button:disabled { opacity: .4; cursor: not-allowed; }

.list-row {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 10px; border-bottom: 1px solid var(--line-2);
  border-radius: 8px; transition: background .12s;
}
.list-row:last-child { border-bottom: none; }
.list-row.clickable { cursor: pointer; }
.list-row.clickable:hover { background: var(--hover); }
.list-row.on { background: var(--sel-bg); box-shadow: inset 3px 0 0 var(--blue); }
.num-dot {
  width: 23px; height: 23px; border-radius: 50%; flex: 0 0 23px;
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.num-dot.soft { background: var(--line-2); color: var(--ink-2); }
.num-dot.ok { background: var(--ok-bg); color: var(--ok); }
.num-dot.warn { background: var(--warn-bg); color: var(--warn); }
.num-dot.bad { background: var(--bad-bg); color: var(--bad); }
.lr-body { flex: 1; min-width: 0; }
.lr-t { font-size: 12.8px; font-weight: 600; color: var(--ink); }
.lr-s { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ── 排课周课表（Timetable） ── */
.timetable {
  display: grid;
  grid-template-columns: 76px repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.tt-head, .tt-slot, .tt-cell { background: var(--surface); padding: 8px; }
.tt-head { background: var(--inset); font-size: 11.5px; font-weight: 600; color: var(--ink-2); text-align: center; }
.tt-slot { background: var(--inset); font-size: 11px; color: var(--muted); display: flex; flex-direction: column; justify-content: center; text-align: center; font-weight: 500; }
.tt-cell { min-height: 70px; display: flex; flex-direction: column; gap: 5px; }
.tt-chip {
  border: 1px solid #d7e4fb; background: #f5f9ff; border-radius: 7px;
  padding: 6px 7px; text-align: left; cursor: pointer; transition: all .12s;
}
.tt-chip:hover { border-color: #93b8f6; background: #eef4fd; }
.tt-chip.on { border-color: var(--blue); background: var(--sel-bg); box-shadow: inset 0 0 0 1px var(--blue); }
.tt-chip.nb { border-color: #cde7e2; background: #f2fbf9; }
.tt-chip.sx { border-color: #eedcc2; background: #fdf8ef; }
.tt-chip b { display: block; font-size: 11.5px; color: var(--ink); line-height: 1.3; }
.tt-chip small { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.tt-empty { font-size: 11px; color: #d5dfec; text-align: center; margin: auto 0; }

/* ── 进度条、分布条、漏斗、柱图 ── */
.bar { height: 6px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue), #60a5fa); transition: width .35s; }
.bar.ok > i { background: var(--ok); }
.bar.warn > i { background: #c58a2b; }
.bar.bad > i { background: var(--bad); }

.stack-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 2px; background: var(--line-2); }
.stack-bar > span { display: block; height: 100%; }

.funnel { display: flex; flex-direction: column; gap: 9px; }
.funnel-row { display: grid; grid-template-columns: 84px 1fr 130px; align-items: center; gap: 12px; }
.funnel-lbl { font-size: 12px; font-weight: 600; color: var(--ink-2); text-align: right; }
.funnel-track { height: 32px; background: #f1f5fb; border-radius: 8px; overflow: hidden; }
.funnel-fill {
  height: 100%; min-width: 72px; border-radius: 8px;
  background: linear-gradient(90deg, #2563eb, #6ea6f5);
  color: #fff; font-size: 12px; font-weight: 600;
  display: flex; align-items: center; padding: 0 11px; white-space: nowrap;
  transition: width .35s ease;
}
.funnel-fill.warn { background: linear-gradient(90deg, #b45309, #e59a4a); }
.funnel-fill.ok { background: linear-gradient(90deg, #0a704d, #34a77f); }
.funnel-meta { font-size: 11.5px; color: var(--muted); }

.spark-row {
  display: flex; align-items: flex-end; gap: 12px; height: 142px;
  padding: 18px 8px 6px; border-bottom: 1px solid #e3eaf4;
}
.spark-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: 5px; }
.spark-val { font-size: 11px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.spark-bar { width: 56%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #60a5fa, #2563eb); transition: height .3s; }
.spark-bar.ok { background: linear-gradient(180deg, #34d399, #0a704d); }
.spark-bar.warn { background: linear-gradient(180deg, #fbbf24, #b45309); }
.spark-lbls { display: flex; gap: 12px; padding: 6px 8px 0; }
.spark-lbls span { flex: 1; text-align: center; font-size: 11px; color: var(--muted); }

/* ── 评分细则按钮、检查项与周打卡条 ── */
.rubric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rubric-item {
  border: 1px solid var(--line); background: var(--inset); border-radius: 9px;
  padding: 9px 11px; text-align: left; cursor: pointer; transition: all .12s;
}
.rubric-item.on { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.rubric-item.deduct { border-color: #eabfb0; background: var(--bad-bg); color: var(--bad); }
.rubric-item b { display: block; font-size: 12px; }
.rubric-item small { display: block; font-size: 10.5px; opacity: .85; margin-top: 2px; }

.check-list { display: flex; flex-direction: column; gap: 7px; }
.check-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 11px; border-radius: 8px; background: var(--inset); border: 1px solid var(--line-2);
  font-size: 12px;
}

.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.week-day {
  border: 1px solid var(--line-2); background: var(--inset); border-radius: 9px;
  padding: 8px 6px; text-align: center;
}
.week-day.done { background: var(--ok-bg); border-color: #bfe4d1; color: var(--ok); }
.week-day.today { background: var(--sel-bg); border-color: var(--blue); color: var(--blue); font-weight: 600; }
.week-day span { display: block; font-size: 10.5px; opacity: .8; }
.week-day b { display: block; font-size: 12.5px; margin-top: 2px; }

/* ── 视频播放舞台 ── */
.video-stage {
  background: linear-gradient(160deg, #0d2340, #163763);
  color: #fff; border-radius: 12px; padding: 26px 24px 20px;
  position: relative; margin-bottom: 14px;
}
.video-stage-top { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: #9ec0e8; margin-bottom: 18px; }
.video-stage-center { padding: 18px 0 22px; text-align: center; }
.video-stage-center h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.video-stage-center p { font-size: 12.5px; color: #bfd8f6; }
.video-bookmarks { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }
.video-bookmarks button {
  padding: 5px 10px; border-radius: 7px; font-size: 11.5px;
  background: rgba(255, 255, 255, .11); border: 1px solid rgba(255, 255, 255, .18); color: #e8f1fc;
}
.video-bookmarks button.on { background: #2563eb; border-color: #60a5fa; color: #fff; font-weight: 600; }

/* ── 学员端今日卡片、答题、手机模拟 ── */
.today-hero {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 58%, #3b82f6 100%);
  color: #fff; border-radius: 16px; padding: 20px 24px;
  box-shadow: 0 10px 24px rgba(30, 64, 175, .16);
  display: grid; grid-template-columns: 1fr 250px; gap: 20px; align-items: center;
  margin-bottom: 16px;
}
.today-hero h2 { font-size: 20px; font-weight: 700; margin-bottom: 5px; }
.today-hero p { font-size: 12.8px; color: #dbeafe; }
.hero-side {
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px; padding: 13px 15px;
}
.hero-side span { font-size: 11.5px; color: #dbeafe; display: block; }
.hero-side b { font-size: 24px; font-weight: 700; display: block; margin: 2px 0 6px; }

.quote-box {
  border-left: 3px solid var(--blue); background: var(--inset);
  padding: 11px 14px; border-radius: 0 10px 10px 0; font-size: 12.5px; color: var(--ink-2);
}
.quote-box small { display: block; color: var(--muted); margin-top: 4px; font-size: 11px; }

.qnav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.qnav button {
  height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface);
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.qnav button.cur { background: var(--blue); border-color: var(--blue); color: #fff; }
.qnav button.ok { background: var(--ok-bg); border-color: #b7e2ce; color: var(--ok); }
.qnav button.bad { background: var(--bad-bg); border-color: #eabfb0; color: var(--bad); }

.opt {
  width: 100%; text-align: left; padding: 10.5px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); margin-bottom: 8px;
  font-size: 13px; color: var(--ink); display: flex; align-items: center; justify-content: space-between;
}
.opt:hover:not(:disabled) { border-color: #b8cde8; background: var(--hover); }
.opt.sel { border-color: var(--blue); background: var(--sel-bg); font-weight: 600; }
.opt.ok { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.opt.bad { border-color: var(--bad); background: var(--bad-bg); color: var(--bad); font-weight: 600; }

.reason-row { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 8px; }
.reason-btn {
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 500;
  border: 1px solid #e4bdb0; background: #fff; color: var(--bad);
}
.reason-btn.on { background: var(--bad); border-color: var(--bad); color: #fff; font-weight: 600; }

.phone-stage { display: flex; justify-content: center; gap: 28px; align-items: flex-start; padding: 10px 0; flex-wrap: wrap; }
.phone {
  width: 374px; background: #0e1e36; border-radius: 34px; padding: 10px;
  box-shadow: 0 18px 40px rgba(18, 38, 70, .20);
}
.phone-in { background: var(--bg); border-radius: 26px; overflow: hidden; height: 660px; display: flex; flex-direction: column; }
.phone-bar { height: 28px; background: var(--ink); color: #fff; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 600; }
.phone-body { flex: 1; overflow-y: auto; padding: 12px; }
.phone-tabs { display: flex; background: var(--surface); border-top: 1px solid var(--line); }
.phone-tabs button { flex: 1; padding: 9px 0; font-size: 11.5px; color: var(--muted); }
.phone-tabs button.on { color: var(--blue); font-weight: 700; }

/* ── 稿件阅读、违规标记、排期月历 ── */
.paper {
  background: var(--inset); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 13px 15px; font-size: 12.8px; line-height: 1.78; color: var(--ink);
}
.risk-mark { background: #fdecea; color: #a12c1e; border-bottom: 2px solid #e8a598; padding: 0 3px; border-radius: 3px; font-weight: 600; }
.safe-mark { background: var(--ok-bg); color: var(--ok); border-bottom: 2px solid #96d6b8; padding: 0 3px; border-radius: 3px; font-weight: 600; }
.diff { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.diff-box { border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font-size: 12.5px; }
.diff-box.before { background: #fffafa; border-color: #f0d6d2; }
.diff-box.after { background: #f6fcf9; border-color: #c8e6d7; }
.diff-box span { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }

.chat-feed { display: flex; flex-direction: column; gap: 9px; max-height: 340px; overflow-y: auto; padding-right: 4px; }
.msg { padding: 10px 13px; border-radius: 10px; font-size: 12.5px; line-height: 1.65; }
.msg.u { background: var(--sel-bg); border: 1px solid #d5e5fb; color: var(--ink); align-self: flex-end; max-width: 90%; }
.msg.a { background: var(--inset); border: 1px solid var(--line-2); color: var(--ink-2); align-self: flex-start; max-width: 96%; }

.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ''; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1.5px; background: var(--line); }
.tl { position: relative; padding: 5px 0 10px; font-size: 12.5px; }
.tl::before {
  content: ''; position: absolute; left: -17px; top: 10px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--blue); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--blue);
}
.tl.fresh::before { background: var(--ok); box-shadow: 0 0 0 2px var(--ok-bg); }
.tl small { display: block; font-size: 11px; color: var(--muted); }

.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-h { text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); padding-bottom: 4px; }
.cal-c {
  border: 1px solid var(--line-2); border-radius: 9px; padding: 7px 8px; min-height: 64px;
  background: var(--surface); cursor: pointer; text-align: left; transition: border-color .12s, background .12s;
}
.cal-c:hover { border-color: #b5cae8; background: var(--hover); }
.cal-c.sel { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: var(--sel-bg); }
.cal-c.empty { background: transparent; border-style: dashed; cursor: default; }
.cal-c.gap { background: #fff9f7; border-color: #ecc6b8; }
.cal-c.filled { background: #f3fbf7; border-color: #bfe4d1; }
.cal-c .d { font-size: 10.5px; color: var(--muted); display: flex; justify-content: space-between; }
.cal-c .n { font-size: 13px; font-weight: 700; color: var(--ink); margin: 2px 0; }
.cal-c.gap .n { color: var(--bad); }
.cal-c .t { font-size: 10px; color: var(--muted); }

.share-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; background: var(--inset); border: 1px solid var(--line);
  padding: 7px 10px; border-radius: 7px; color: var(--ink-2);
}

.modal-backdrop { position: fixed; inset: 0; background: rgba(14, 39, 72, .45); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-dialog { background: var(--surface); border-radius: 16px; border: 1px solid var(--line); max-width: 700px; width: 100%; max-height: 88vh; overflow-y: auto; padding: 22px 24px; box-shadow: 0 24px 50px rgba(14, 39, 72, .22); }
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.toast { background: var(--ink); color: #fff; border-radius: 10px; padding: 11px 14px; font-size: 12.5px; box-shadow: 0 12px 28px rgba(14, 39, 72, .24); display: flex; flex-direction: column; gap: 4px; }
.toast button { align-self: flex-start; font-size: 11.5px; color: #93c5fd; font-weight: 600; text-decoration: underline; margin-top: 2px; }

/* ── 交互增强组件：表头排序、内嵌清空搜索框、点名开关、可点柱图、通知徽标 ── */
.search-wrap { position: relative; display: inline-flex; align-items: center; }
.search-wrap .inp { padding-right: 28px; }
.search-clear {
  position: absolute; right: 7px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--line); color: var(--ink-2); font-size: 12px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.search-clear:hover { background: #cbd8ec; color: var(--ink); }

th.sortable { cursor: pointer; user-select: none; transition: color .12s, background .12s; }
th.sortable:hover { color: var(--ink); background: #eef3fb; }
th.sortable.sorted { color: var(--blue); background: var(--sel-bg); }
.sort-ind { display: inline-block; margin-left: 3px; font-size: 10px; opacity: .65; }
th.sortable.sorted .sort-ind { opacity: 1; font-weight: 700; }

.btn.copied { background: var(--ok-bg) !important; border-color: #9ed8be !important; color: var(--ok) !important; }

.bell-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  background: var(--inset); border: 1px solid var(--line); color: var(--ink-2);
}
.bell-btn:hover { border-color: #b9cce8; background: var(--sel-bg); }
.bell-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }

.spark-col.clickable { cursor: pointer; padding: 4px 4px 0; border-radius: 8px; transition: background .14s; }
.spark-col.clickable:hover { background: #f2f6fd; }
.spark-col.sel { background: var(--sel-bg); box-shadow: inset 0 0 0 1px #c7dcfb; }

.att-pills { display: inline-flex; background: var(--inset); border: 1px solid var(--line); border-radius: 7px; padding: 2px; gap: 2px; }
.att-pills button { padding: 3px 8px; border-radius: 5px; font-size: 11px; color: var(--muted); font-weight: 500; }
.att-pills button.on-ok { background: var(--ok); color: #fff; font-weight: 600; }
.att-pills button.on-warn { background: #c58a2b; color: #fff; font-weight: 600; }
.att-pills button.on-bad { background: var(--bad); color: #fff; font-weight: 600; }

.chk-pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--surface); font-size: 11px; cursor: pointer; user-select: none;
}
.chk-pill.on { border-color: #e4b4a3; background: var(--bad-bg); color: var(--bad); font-weight: 600; }
.chk-pill:disabled { opacity: .55; cursor: not-allowed; }

.video-ctrl-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 9px; padding: 8px 12px; margin-top: 12px; flex-wrap: wrap;
}
.video-ctrl-bar .v-play-btn {
  padding: 5px 13px; border-radius: 7px; background: #2563eb; color: #fff; font-size: 12px; font-weight: 600;
}
.video-ctrl-bar .v-rate-btn {
  padding: 3px 8px; border-radius: 6px; font-size: 11px; color: #dbeafe; background: rgba(255,255,255,.08);
}
.video-ctrl-bar .v-rate-btn.on { background: #fff; color: #0e2748; font-weight: 700; }

/* ── 真实手写作业拍照画布与红笔批阅组件 ── */
.hw-photo-stage {
  background: #eaeff7; border: 1px solid #d4dfef; border-radius: 12px;
  padding: 12px; position: relative; overflow: hidden;
}
.hw-photo-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 10px; font-size: 11.5px; color: var(--ink-2); flex-wrap: wrap;
}
.hw-notebook {
  background: #fffef9;
  background-image: repeating-linear-gradient(transparent, transparent 29px, #e6ecf5 29px, #e6ecf5 30px);
  border: 1px solid #dcd8cc; border-radius: 6px;
  box-shadow: 0 6px 18px rgba(19, 46, 84, .10);
  padding: 18px 22px 20px 34px; position: relative;
  transition: transform .2s ease;
}
.hw-notebook::before {
  content: ''; position: absolute; left: 24px; top: 0; bottom: 0; width: 1.5px; background: #f2c6c2;
}
.hw-notebook.zoom { transform: scale(1.03); transform-origin: top center; }
.hw-notebook.rot90 { border-left: 4px solid #cbd5e1; }
.hw-hand-meta {
  display: flex; justify-content: space-between; font-size: 11px; color: #7a7568;
  border-bottom: 1.5px solid #dcd8cc; padding-bottom: 6px; margin-bottom: 10px;
}
.hw-hand-title { font-weight: 700; font-size: 13px; color: #0f172a; margin-bottom: 6px; padding-right: 122px; }
.hw-hand-line {
  font-family: "KaiTi", "STKaiti", "Georgia", Cambria, serif;
  font-size: 15.5px; line-height: 30px; color: #1e293b; letter-spacing: .3px;
  position: relative;
}
.hw-hand-strike { text-decoration: line-through; color: #64748b; margin-right: 8px; }
.red-pen-box {
  display: inline-flex; align-items: center; gap: 5px;
  margin-left: 10px; padding: 1px 8px; border-radius: 999px;
  border: 1.5px solid #dc2626; background: rgba(254, 226, 226, .68);
  color: #b91c1c; font-family: "PingFang SC", sans-serif; font-size: 11.5px; font-weight: 700;
  transform: rotate(-1.5deg);
}
.red-pen-ok {
  border-color: #15803d; background: rgba(220, 252, 231, .75); color: #15803d;
}
.red-score-stamp {
  position: absolute; right: 18px; top: 14px;
  border: 2.5px solid #dc2626; color: #dc2626; border-radius: 8px;
  padding: 3px 10px; font-size: 20px; font-weight: 800; line-height: 1.1;
  transform: rotate(-6deg); background: rgba(255, 255, 255, .86);
}
.red-score-stamp small { display: block; font-size: 10px; font-weight: 600; text-align: center; }

.quick-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.quick-chip {
  padding: 3.5px 9px; border-radius: 6px; font-size: 11.5px;
  background: var(--inset); border: 1px solid var(--line); color: var(--ink-2);
}
.quick-chip:hover { border-color: var(--blue); color: var(--blue); background: var(--sel-bg); }

/* ── 企业级单行筛选条、左窄分页名册与横向步骤条（适配单校区数百人规模） ── */
.filter-bar {
  background: var(--surface); border: 1px solid var(--line); border-radius: 11px;
  padding: 9px 13px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.fb-left, .fb-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fb-meta { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.sel.sm, .inp.sm { height: 31px; padding: 4px 10px; font-size: 12px; border-radius: 7px; }
.sel.sm { padding-right: 24px; }

.dir-pane {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh); padding: 12px; display: flex; flex-direction: column;
}
.dir-head { display: flex; flex-direction: column; gap: 7px; padding-bottom: 9px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.dir-list { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.dir-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer; border: 1px solid transparent;
  transition: background .12s, border-color .12s;
}
.dir-row:hover { background: var(--hover); }
.dir-row.on { background: var(--sel-bg); border-color: #c7dcfb; }
.dir-row-main b { font-size: 13px; color: var(--ink); font-weight: 600; }
.dir-row-main small { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.dir-pager {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 9px; margin-top: 6px; border-top: 1px solid var(--line-2);
  font-size: 11.5px; color: var(--muted);
}
.dir-pager-btns { display: flex; gap: 4px; }
.dir-pager-btns button {
  padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--surface); font-size: 11.5px; color: var(--ink-2);
}
.dir-pager-btns button:disabled { opacity: .42; cursor: not-allowed; }

.step-tabs {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; margin-bottom: 14px;
}
.step-tab {
  text-align: left; padding: 9px 10px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--inset); cursor: pointer;
  transition: all .12s;
}
.step-tab:hover { border-color: #b5cae8; background: var(--hover); }
.step-tab.on { border-color: var(--blue); background: var(--sel-bg); box-shadow: inset 0 0 0 1px var(--blue); }
.step-tab span { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.step-tab.on span { color: var(--blue); }
.step-tab b { display: block; font-size: 12px; color: var(--ink); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.split-roster { display: grid; grid-template-columns: minmax(0, 1.85fr) 316px; gap: 16px; align-items: start; }

/* ── 顶栏六端秒切条与全局校区视角 ── */
.topbar {
  padding: 9px 22px;
  flex-wrap: wrap;
}
.role-bar {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--inset); border: 1px solid var(--line);
  border-radius: 10px; padding: 3px; flex-wrap: wrap;
}
.role-bar button {
  padding: 4.5px 11px; border-radius: 7px; font-size: 12px; font-weight: 600;
  color: var(--ink-2); transition: all .14s; display: inline-flex; align-items: center; gap: 5px;
}
.role-bar button:hover { background: #eef4fd; color: var(--blue); }
.role-bar button.on {
  background: var(--blue); color: #fff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, .24);
}
.role-bar .role-dot {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7;
}
.campus-ctx {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f3f7fe; border: 1px solid #d4e2fa; border-radius: 8px;
  padding: 3px 9px; font-size: 11.5px; color: var(--ink-2); font-weight: 600;
}
.campus-ctx select {
  border: none; background: transparent; font-weight: 700; color: var(--blue);
  font-size: 12px; outline: none; cursor: pointer; padding-right: 4px;
}

/* ── 右侧一页通速览抽屉（免跨菜单重搜学生） ── */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(14, 39, 72, .32); z-index: 190;
  display: flex; justify-content: flex-end;
}
.quick-drawer {
  width: 450px; max-width: 94vw; height: 100vh; background: var(--surface);
  border-left: 1px solid var(--line); box-shadow: -16px 0 40px rgba(14, 39, 72, .18);
  padding: 20px 22px 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
}
.stu-link {
  color: var(--ink); font-weight: 700; cursor: pointer; border-bottom: 1px dashed #93b8f6;
  transition: color .12s; display: inline-block;
}
.stu-link:hover { color: var(--blue); border-bottom-style: solid; }

/* ── 显眼 AI 交互入口卡（校长速查 / 任意话题写稿 / 一句话配卷） ── */
.ai-hero-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 14px;
}
.ai-hero-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 10px; flex-wrap: wrap;
}
.ai-hero-title {
  display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink);
}
.ai-badge {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 5px;
  background: #eef2ff; color: #3730a3; font-size: 11px; font-weight: 600;
}
.ai-input-row {
  display: flex; gap: 9px; align-items: stretch; flex-wrap: wrap;
}
.ai-input-row .inp-lg {
  flex: 1; min-width: 240px; height: 42px; padding: 0 15px; font-size: 13.5px;
  border: 1.5px solid #b8d0f8; border-radius: 10px; background: #fff; color: var(--ink);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.ai-input-row .inp-lg:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3.5px rgba(37, 99, 235, .14);
}
.ai-input-row .btn-lg {
  height: 42px; padding: 0 20px; border-radius: 10px; font-size: 13.5px; font-weight: 700;
}
.topic-pills {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px;
}
.topic-pills > span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.topic-pill {
  padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 500;
  background: #fff; border: 1px solid #d6e3f7; color: var(--ink-2); transition: all .13s;
}
.topic-pill:hover, .topic-pill.on {
  border-color: var(--blue); background: var(--sel-bg); color: var(--blue); font-weight: 600;
}

/* ── 小红书 3:4 真实视觉封面与多图预览器 ── */
.studio-grid {
  display: grid; grid-template-columns: 348px minmax(0, 1fr); gap: 18px; align-items: start;
}
.xhs-phone {
  background: #fff; border: 1px solid #dde6f2; border-radius: 20px;
  overflow: hidden; box-shadow: 0 12px 30px rgba(19, 46, 84, .09);
}
.xhs-top {
  padding: 10px 14px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line-2); font-size: 12px; font-weight: 600;
}
.xhs-author { display: flex; align-items: center; gap: 8px; }
.xhs-ava {
  width: 26px; height: 26px; border-radius: 50%; background: #e11d48; color: #fff;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.xhs-canvas {
  height: 410px; padding: 22px 20px 18px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; color: #fff; transition: background .2s ease;
}
.xhs-canvas.theme-navy {
  background: linear-gradient(155deg, #0f294a 0%, #1d4ed8 62%, #1e3a8a 100%);
}
.xhs-canvas.theme-warm {
  background: linear-gradient(155deg, #7c2d12 0%, #c2410c 58%, #ea580c 100%);
}
.xhs-canvas.theme-mint {
  background: linear-gradient(155deg, #064e3b 0%, #0f766e 58%, #0d9488 100%);
}
.xhs-kicker {
  display: inline-flex; align-self: flex-start; padding: 3px 10px; border-radius: 6px;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .28);
  font-size: 11px; font-weight: 700; letter-spacing: .3px;
}
.xhs-big-title {
  font-size: 21px; font-weight: 800; line-height: 1.32; letter-spacing: -.3px;
  margin: 10px 0 12px; text-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.xhs-highlight-box {
  background: rgba(255, 255, 255, .95); color: #0f172a; border-radius: 12px;
  padding: 12px 14px; font-size: 12px; line-height: 1.65;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .14);
}
.xhs-highlight-box b { color: #1d4ed8; }
.xhs-slide-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px; background: #f8fafd; border-bottom: 1px solid var(--line-2); font-size: 11.5px;
}
.xhs-dots { display: flex; gap: 5px; }
.xhs-dots button {
  padding: 2px 8px; border-radius: 999px; font-size: 11px; border: 1px solid var(--line);
  background: #fff; color: var(--muted);
}
.xhs-dots button.on { background: #e11d48; border-color: #e11d48; color: #fff; font-weight: 700; }
.xhs-caption-preview {
  padding: 12px 14px 14px; font-size: 12px; line-height: 1.65; color: var(--ink);
}
.xhs-tags { color: #1d4ed8; font-size: 11.5px; font-weight: 600; margin-top: 6px; }

/* ── 学生自主组卷、交卷评分诊断横幅与错题举一反三闯关台 ── */
.step-flow {
  display: inline-flex; align-items: center; gap: 6px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 4px 8px;
}
.step-flow button {
  padding: 4px 11px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--muted);
}
.step-flow button.on { background: var(--blue-l); color: var(--blue); font-weight: 700; }
.step-flow span { color: var(--muted-2); font-size: 11px; }

.report-hero {
  background: linear-gradient(135deg, #0f294a 0%, #1e40af 62%, #2563eb 100%);
  color: #fff; border-radius: 16px; padding: 22px 26px; margin-bottom: 16px;
  display: grid; grid-template-columns: 210px 1fr; gap: 24px; align-items: center;
}
.report-score-ring {
  background: rgba(255, 255, 255, .12); border: 1.5px solid rgba(255, 255, 255, .25);
  border-radius: 14px; padding: 16px; text-align: center;
}
.report-score-ring b { font-size: 40px; font-weight: 800; line-height: 1.05; display: block; }
.report-score-ring span { font-size: 12px; color: #bfdbfe; }

.kp-cluster-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px;
}
.kp-cluster-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  transition: border-color .14s, box-shadow .14s;
}
.kp-cluster-card:hover { border-color: #93b8f6; box-shadow: 0 6px 18px rgba(19, 46, 84, .06); }
.kp-cluster-card.active { border: 1.5px solid var(--blue); background: var(--sel-bg); }

.variant-stage {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 14px;
}
.variant-steps {
  display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap;
}
.variant-step-pill {
  padding: 5px 13px; border-radius: 999px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
}
.variant-step-pill.cur { border-color: var(--blue); background: var(--blue); color: #fff; }
.variant-step-pill.pass { border-color: #96d6b8; background: var(--ok-bg); color: var(--ok); }
.variant-step-pill.fail { border-color: #eabfb0; background: var(--bad-bg); color: var(--bad); }

/* ── 清爽批处理条、状态条与角色切换（去彩虹边框） ── */
.batch-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 9px 14px; margin-bottom: 12px; border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
}
.stage-pipe {
  display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap;
  font-size: 11.5px; font-weight: 500; color: var(--muted);
}
.stage-pipe .sp-node {
  padding: 2px 8px; border-radius: 6px; background: var(--inset); border: 1px solid var(--line);
}
.stage-pipe .sp-node.done { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.stage-pipe .sp-node.cur { background: var(--blue-l); border-color: transparent; color: var(--blue); font-weight: 600; }
.stage-pipe .sp-node.warn { background: var(--warn-bg); border-color: transparent; color: var(--warn); font-weight: 600; }
.kbd-tag { display: none !important; }
.view-mode-switch {
  display: inline-flex; align-items: center; gap: 2px; padding: 2px;
  background: #f1f3f6; border: 1px solid var(--line); border-radius: 8px;
}
.view-mode-switch button {
  padding: 4.5px 12px; border-radius: 6px; font-size: 12px; font-weight: 500; color: var(--muted);
  transition: all .13s;
}
.view-mode-switch button.on {
  background: var(--surface); color: var(--ink); font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
.ctx-side-card {
  background: #f9fafb;
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
}
.seat-opt {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px;
  background: var(--surface); cursor: pointer; transition: all .12s;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.seat-opt:hover { border-color: #cbd5e1; background: var(--hover); }
.seat-opt.on, .seat-opt.sel { border-color: var(--blue); background: var(--sel-bg); }
.seat-opt.full { opacity: .52; background: var(--inset); cursor: not-allowed; }

.resume-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 8px 14px; margin-bottom: 12px; border-radius: 9px;
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 12.5px;
}
.stat-seg-bar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px;
  margin-bottom: 12px;
}
.stat-seg-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 13px; border-radius: 9px; background: var(--surface);
  border: 1px solid var(--line); cursor: pointer; transition: all .12s; text-align: left;
}
.stat-seg-item:hover { border-color: #cbd5e1; }
.stat-seg-item.on {
  border-color: var(--blue); background: var(--sel-bg);
}
.stat-seg-item .ss-lbl { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.stat-seg-item .ss-val { font-size: 18px; font-weight: 700; line-height: 1.1; }
.toast-undo-btn {
  margin-top: 6px; padding: 4px 10px; border-radius: 6px;
  background: #f3f4f6; color: #111827 !important; font-weight: 600 !important; font-size: 11.5px !important;
  border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; text-decoration: none !important;
}
.inline-slice-box {
  margin-top: 8px; padding: 10px 14px; border-radius: 8px;
  background: #f8fafc; border: 1px solid var(--line); color: var(--ink-2); font-size: 12px;
}
.compact-studio-bar {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 16px; margin-bottom: 12px;
}

/* ── 独立原生级手机应用舞台（学员端默认、销售与校长随身版） ── */
.mapp-stage {
  min-height: 100vh; background: #eef0f4;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 16px 32px;
}
.mapp-topbar {
  width: 100%; max-width: 960px; padding: 10px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted);
}
.mapp-frame {
  width: 412px; max-width: 100%; height: 780px; max-height: calc(100vh - 76px);
  background: #f6f7f9; border-radius: 38px;
  border: 9px solid #1f2937;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .16);
  display: flex; flex-direction: column; overflow: hidden; position: relative;
}
.mapp-status {
  height: 30px; background: #ffffff; color: #111827;
  padding: 4px 22px 0; display: flex; align-items: center; justify-content: space-between;
  font-size: 11.5px; font-weight: 600; flex-shrink: 0;
}
.mapp-header {
  background: #ffffff; padding: 8px 18px 12px;
  border-bottom: 1px solid #eef0f4; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.mapp-header h2 { font-size: 17px; font-weight: 700; color: #111827; }
.mapp-scroll {
  flex: 1; overflow-y: auto; padding: 12px 14px 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.mapp-card {
  background: #ffffff; border-radius: 14px; padding: 14px 15px;
  border: 1px solid #eceef2;
}
.mapp-nav {
  height: 58px; background: #ffffff; border-top: 1px solid #e5e7eb;
  display: grid; grid-template-columns: repeat(4, 1fr); flex-shrink: 0; padding-bottom: 2px;
}
.mapp-nav.cols-3 { grid-template-columns: repeat(3, 1fr); }
.mapp-nav button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 11px; color: #6b7280; font-weight: 500; position: relative;
}
.mapp-nav button svg { width: 18px; height: 18px; opacity: .65; }
.mapp-nav button.on { color: var(--blue); font-weight: 600; }
.mapp-nav button.on svg { opacity: 1; color: var(--blue); }
.mapp-badge {
  position: absolute; top: 5px; right: 24%; min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 999px; background: #dc2626; color: #fff; font-size: 9.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ── 统一响应式底部导航（桌面隐藏，手机自动出现） ── */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 1180px) {
  .stats, .stats-5, .g3, .g4, .gate-grid, .gate-strip, .kp-cluster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-3, .studio-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .split, .split-wide, .split-l, .today-hero, .report-hero { grid-template-columns: 1fr; }
  .timetable { grid-template-columns: 56px repeat(7, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .side { display: none; }
  .mobile-bottom-nav {
    display: grid;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: 58px;
    background: #ffffff;
    border-top: 1px solid var(--line);
    z-index: 90;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mobile-bottom-nav button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    font-size: 11px; color: var(--muted); font-weight: 500; position: relative; min-width: 0;
  }
  .mobile-bottom-nav button svg { width: 18px; height: 18px; opacity: .7; }
  .mobile-bottom-nav button.on { color: var(--blue); font-weight: 600; }
  .mobile-bottom-nav button.on svg { opacity: 1; color: var(--blue); }
  .mbn-badge {
    position: absolute; top: 4px; right: 18%; min-width: 15px; height: 15px; padding: 0 4px;
    border-radius: 999px; background: #dc2626; color: #fff; font-size: 9.5px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
  }
  .topbar { height: auto; padding: 8px 12px; gap: 8px; flex-wrap: wrap; }
  .topbar-r { flex-wrap: wrap; gap: 6px; }
  .content { padding: 12px 12px 76px; }
  .page-head { margin-bottom: 12px; }
  .stats, .stats-5, .g2, .g3, .g4, .gate-grid, .gate-strip, .diff, .rubric-grid { grid-template-columns: 1fr; }
  .kv-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn, .btn.sm, .btn.xs { min-height: 34px; }
  .modal-dialog { width: calc(100vw - 20px); max-height: 88vh; padding: 16px; }
}

/* 弹窗头部关闭按钮永不换行 */
.modal-dialog > .card-h { flex-wrap: nowrap; align-items: flex-start; gap: 12px; }
.modal-dialog > .card-h > div { min-width: 0; flex: 1; }
.modal-dialog > .card-h > button { flex-shrink: 0; }

/* Round 6 Stamp Polish */
.hw-hand-title { padding-right: 120px; }
.red-score-stamp { top: 10px; right: 14px; pointer-events: none; }

/* 学员端 · 今日学习（模块 2 商业化学习产品视觉升级） */
.stu-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #172554 0%, #1d4ed8 58%, #3b82f6 100%);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(29, 78, 216, 0.18);
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 20px;
  align-items: center;
}
.stu-hero::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}
.stu-hero-l { position: relative; z-index: 1; min-width: 0; }
.stu-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,0.85); margin-bottom: 8px;
}
.stu-hero-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.22);
  font-size: 11.5px; font-weight: 600; color: #fff;
  backdrop-filter: blur(6px);
}
.stu-hero-title {
  font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3;
  margin: 0 0 6px; color: #fff;
}
.stu-hero-sub {
  font-size: 12.8px; color: rgba(255,255,255,0.82); line-height: 1.5; margin-bottom: 14px;
}
.stu-streak-strip {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.stu-streak-day {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 44px; padding: 5px 6px; border-radius: 9px;
  background: rgba(255,255,255,0.11); border: 1px solid rgba(255,255,255,0.14);
  font-size: 10.5px; color: rgba(255,255,255,0.78); line-height: 1.3;
}
.stu-streak-day b { font-size: 11px; color: #fff; font-weight: 600; }
.stu-streak-day.today {
  background: rgba(255,255,255,0.24); border-color: rgba(255,255,255,0.55);
  box-shadow: 0 2px 8px rgba(15,23,42,0.12);
}
.stu-hero-r {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  padding: 14px 16px;
  backdrop-filter: blur(8px);
}
.stu-ring-wrap { position: relative; width: 78px; height: 78px; flex-shrink: 0; }
.stu-ring-wrap svg { width: 78px; height: 78px; transform: rotate(-90deg); }
.stu-ring-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; line-height: 1.15;
}
.stu-ring-center b { font-size: 17px; font-weight: 700; color: #fff; }
.stu-ring-center small { font-size: 10px; color: rgba(255,255,255,0.8); }
.stu-hero-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; flex: 1; min-width: 0; }
.stu-hm-item span { display: block; font-size: 11px; color: rgba(255,255,255,0.76); }
.stu-hm-item b { display: block; font-size: 15px; font-weight: 700; color: #fff; margin-top: 1px; }
.stu-hm-item b small { font-size: 11px; font-weight: 500; opacity: .85; margin-left: 2px; }

.stu-card {
  background: var(--surface);
  border: 1px solid #e6ebf3;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 6px 18px rgba(15, 23, 42, 0.035);
}
.g2-asym { grid-template-columns: 1.38fr 1fr; gap: 16px; }
.graded-notice-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; margin-bottom: 12px;
  background: linear-gradient(90deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1px solid #a7f3d0; border-left: 4px solid var(--ok);
  border-radius: 10px;
}
.today-task-card {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid #e8edf5;
  background: #ffffff;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.today-task-card:last-child { margin-bottom: 0; }
.today-task-card:hover {
  border-color: #cbd8ee;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.06);
}
.today-task-card.is-next {
  background: linear-gradient(135deg, #f5f9ff 0%, #ffffff 70%);
  border-color: #93c5fd;
  border-left: 4px solid var(--blue);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.09);
}
.today-task-card.is-done {
  background: #fafbfd; border-color: #edf1f7; opacity: .9; padding: 10px 12px;
}
.task-type-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700; letter-spacing: -0.02em;
}
.task-type-icon.math { background: #eff6ff; color: #1d4ed8; border: 1px solid #dbeafe; }
.task-type-icon.eng { background: #ecfdf5; color: #047857; border: 1px solid #d1fae5; }
.task-type-icon.hw { background: #fff7ed; color: #c2410c; border: 1px solid #ffedd5; }
.task-type-icon.done { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.today-task-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 5px; font-size: 11.5px; color: var(--muted);
}
.subj-chip {
  display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 6px;
  font-size: 11px; font-weight: 600;
}
.subj-chip.math { background: #eff6ff; color: #1d4ed8; }
.subj-chip.eng { background: #ecfdf5; color: #047857; }
.subj-chip.hw { background: #fff7ed; color: #c2410c; }
.today-task-act { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.done-collapse-wrap { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.done-collapse-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-radius: 9px; font-size: 12px; font-weight: 600; color: var(--ink-2);
  background: #f4f7fb; transition: background .12s;
}
.done-collapse-btn:hover { background: #eaf0f8; color: var(--ink); }
.done-collapse-body { margin-top: 8px; }

.school-goal-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 13px; margin-bottom: 12px; border-radius: 11px;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid #dbe7fb;
}
.sgb-score { font-size: 18px; font-weight: 700; color: var(--blue); line-height: 1.1; }
.sgb-score small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.weak-topic-card {
  padding: 11px 12px; margin-bottom: 9px; border-radius: 11px;
  border: 1px solid #edf1f7; background: #fbfcfe;
  transition: border-color .14s, background .14s;
}
.weak-topic-card:last-child { margin-bottom: 0; }
.weak-topic-card:hover { border-color: #c7d9f8; background: #ffffff; }
.wt-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; margin-bottom: 7px; }
.wt-top small { color: var(--muted); font-weight: 400; font-size: 11.5px; }
.bar-marked { position: relative; height: 8px; background: #e8eef6; border-radius: 999px; overflow: visible; }
.bar-marked > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2563eb, #60a5fa); }
.bar-marked.bad > i { background: linear-gradient(90deg, #dc2626, #f87171); }
.bar-marked.warn > i { background: linear-gradient(90deg, #d97706, #fbbf24); }
.bar-marked.ok > i { background: linear-gradient(90deg, #059669, #34d399); }
.bar-target-tick {
  position: absolute; top: -3px; bottom: -3px; width: 2px;
  background: #334155; border-radius: 2px;
}
.wt-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.wt-freq { font-size: 11px; color: var(--muted); }

.mentor-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border-radius: 12px;
  background: #f8fafd; border: 1px solid #e6edf7;
}
.mentor-head { display: flex; align-items: center; gap: 10px; }
.mentor-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
}
.mentor-avatar.t0 { background: linear-gradient(135deg, #2563eb, #4f46e5); }
.mentor-avatar.t1 { background: linear-gradient(135deg, #059669, #0d9488); }
.mentor-avatar.t2 { background: linear-gradient(135deg, #d97706, #ea580c); }
.mentor-text { font-size: 12.8px; color: var(--ink-2); line-height: 1.6; }

/* 学员端 · 在线练习选卷页（模块 3）高质感卡片 */
.stu-practice-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.sph-stats { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sph-pill {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 6px 12px; border-radius: 10px;
  background: var(--surface); border: 1px solid #e4eaf3;
  box-shadow: 0 1px 3px rgba(15,23,42,.03);
  font-size: 11.5px; color: var(--muted);
}
.sph-pill b { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.sph-pill small { font-size: 11px; color: var(--muted); }
.sph-pill.warn b { color: var(--bad); }

.deck-card {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 18px 18px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid #e6ebf3;
  box-shadow: 0 1px 2px rgba(15,23,42,.03), 0 6px 18px rgba(15,23,42,.035);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.deck-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15,23,42,.07); }
.deck-card.is-primary {
  background: linear-gradient(155deg, #f4f8ff 0%, #ffffff 65%);
  border-color: #93c5fd; border-top: 3px solid var(--blue);
}
.deck-card.is-eng { border-top: 3px solid #10b981; }
.deck-card.is-hw { border-top: 3px solid #f59e0b; }
.deck-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.deck-time { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.deck-title { font-size: 15.5px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.deck-reason { font-size: 12.2px; color: var(--ink-2); line-height: 1.55; margin-bottom: 14px; flex: 1; }
.deck-reason b { color: var(--ink); }

.score-badge-box {
  width: 44px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: baseline; justify-content: center; padding-top: 9px;
  font-weight: 700;
}
.score-badge-box.ok { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.score-badge-box.warn { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.score-badge-box b { font-size: 15px; line-height: 1; }
.score-badge-box small { font-size: 10px; margin-left: 1px; font-weight: 500; }

/* 学员端 · 做题页与诊断报告（模块 4）高质感样式 */
.exam-topbar {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px 15px; margin-bottom: 14px;
  background: var(--surface); border: 1px solid #e6ebf3; border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15,23,42,.03), 0 4px 14px rgba(15,23,42,.03);
  overflow: hidden;
}
.et-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.et-title { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.et-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.et-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #edf2f7; }
.et-progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #60a5fa); transition: width .25s ease; }

.exam-timer-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: #f1f5fb; border: 1px solid #dbe5f4; color: var(--ink); font-size: 12.5px;
}
.exam-timer-pill b { font-variant-numeric: tabular-nums; font-size: 13.5px; }
.exam-timer-pill.warn { background: var(--bad-bg); border-color: #fecaca; color: var(--bad); }
.et-pause-btn {
  font-size: 11px; color: var(--blue); font-weight: 600;
  padding: 1px 6px; border-radius: 999px; background: #fff; border: 1px solid #cbd5e1;
}

.exam-stem {
  padding: 16px 18px; margin-bottom: 12px; border-radius: 12px;
  background: #f8fafd; border: 1px solid #e4ecf7;
  font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.65;
}
.exam-tools {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.opt-list { display: flex; flex-direction: column; gap: 9px; }
.opt-card {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 12px 14px; border-radius: 12px;
  background: #ffffff; border: 1.5px solid #e5ebf4;
  transition: all .14s ease; cursor: pointer;
}
.opt-card:hover:not(:disabled) { border-color: #93c5fd; background: #f8fbff; }
.opt-letter {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700; color: var(--ink-2);
  background: #f1f5f9; border: 1px solid #dbe2ec;
  transition: all .14s ease;
}
.opt-text { flex: 1; font-size: 14px; color: var(--ink); line-height: 1.5; }
.opt-card.sel { border-color: var(--blue); background: #eff6ff; box-shadow: 0 2px 10px rgba(37,99,235,.08); }
.opt-card.sel .opt-letter { background: var(--blue); color: #fff; border-color: var(--blue); }
.opt-card.ok { border-color: var(--ok); background: #ecfdf5; }
.opt-card.ok .opt-letter { background: var(--ok); color: #fff; border-color: var(--ok); }
.opt-card.bad { border-color: var(--bad); background: #fef2f2; }
.opt-card.bad .opt-letter { background: var(--bad); color: #fff; border-color: var(--bad); }

.qnav-legend { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.qnav-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 3px; vertical-align: middle; }
.qnav-legend .lg-cur { background: var(--blue); }
.qnav-legend .lg-ok { background: var(--ok); }
.qnav-legend .lg-flag { background: var(--bad); }
.qnav-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.qnav-cell {
  position: relative; height: 34px; border-radius: 9px;
  border: 1px solid #e2e8f0; background: #fff; color: var(--ink-2);
  font-size: 12.5px; font-weight: 600; transition: all .12s;
}
.qnav-cell:hover { border-color: var(--blue); color: var(--blue); }
.qnav-cell.cur { border-color: var(--blue); background: var(--blue); color: #fff; }
.qnav-cell.ok { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
.qnav-cell.bad { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.qnav-cell.flagged::after {
  content: ''; position: absolute; top: 3px; right: 3px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--bad);
}

.rep-q-card {
  padding: 14px 16px; border-radius: 12px; margin-bottom: 12px;
  border: 1px solid #e6ebf3; background: #ffffff;
}
.rep-q-card.is-ok { background: #f9fdfb; border-color: #cde8da; border-left: 4px solid var(--ok); }
.rep-q-card.is-bad { background: #fffaf9; border-color: #f3cfc4; border-left: 4px solid var(--bad); }

/* 学员端 · AI 讲思路清爽三段式窗口（模块 5） */
.ai-tutor-stem {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 13px; margin-bottom: 12px; border-radius: 10px;
  background: #f8fafd; border: 1px solid #e4ecf7;
  font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.55;
}
.ai-tutor-canvas {
  min-height: 220px; max-height: 320px; overflow-y: auto;
  padding: 12px; margin-bottom: 12px; border-radius: 12px;
  background: #fbfcfe; border: 1px solid #e8eef6;
  display: flex; flex-direction: column; gap: 10px;
}
.ai-starter-box {
  padding: 14px 16px; border-radius: 11px;
  background: #ffffff; border: 1px solid #e5ecf6;
}
.ai-starter-chips { display: flex; flex-direction: column; gap: 7px; }
.ai-chip-btn {
  text-align: left; padding: 9px 12px; border-radius: 9px;
  background: #f5f9ff; border: 1px solid #dbe8fc;
  color: #1d4ed8; font-size: 12.5px; font-weight: 500;
  transition: all .12s ease;
}
.ai-chip-btn:hover { background: #e8f1ff; border-color: #93c5fd; }
.ai-msg-row { display: flex; }
.ai-msg-row.u { justify-content: flex-end; }
.ai-msg-row.a { justify-content: flex-start; }
.ai-msg-bubble {
  max-width: 92%; padding: 11px 14px; border-radius: 12px; font-size: 13px;
}
.ai-msg-bubble.u {
  background: var(--blue); color: #ffffff; border-bottom-right-radius: 4px;
}
.ai-msg-bubble.a {
  background: #ffffff; color: var(--ink); border: 1px solid #e4ebf5;
  border-bottom-left-radius: 4px; width: 100%; max-width: 100%;
  box-shadow: 0 2px 8px rgba(15,23,42,.03);
}
.ai-steps-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ai-step-card {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 11px; border-radius: 9px;
  background: #f7faff; border: 1px solid #e3edfb;
}
.ai-step-num {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue); color: #fff; font-size: 11.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.ai-step-body { min-width: 0; flex: 1; }
.ai-step-t { font-size: 12px; font-weight: 700; color: #1d4ed8; margin-bottom: 2px; }
.ai-step-p { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.ai-draft-strip {
  padding: 9px 12px; margin-bottom: 10px; border-radius: 10px;
  background: #f0f7ff; border: 1px solid #bfdbfe;
}
.ai-composer {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; margin-bottom: 10px; border-radius: 12px;
  background: #f5f7fb; border: 1px solid #dce4f0;
}
.ai-composer:focus-within { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.ai-tutor-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  padding-top: 10px; border-top: 1px solid var(--line-2);
}
.ai-tutor-footer.is-hint { justify-content: center; font-size: 11.5px; color: var(--muted); padding-top: 8px; }
.ai-tutor-footer.is-done {
  background: var(--ok-bg); border: 1px solid #a7f3d0; border-radius: 10px;
  padding: 9px 12px; font-size: 12.5px; color: var(--ok);
}

/* 学员端 · 错题本高质感卡片流（模块 6） */
.wb-cluster-card {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 14px 15px 12px; border-radius: 13px;
  background: var(--surface); border: 1px solid #e6ebf3;
  box-shadow: 0 1px 2px rgba(15,23,42,.03), 0 5px 15px rgba(15,23,42,.03);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.wb-cluster-card.has-todo { border-top: 3px solid #ef4444; }
.wb-cluster-card.is-clear { border-top: 3px solid #10b981; }
.wb-cluster-card:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15,23,42,.06); }
.wb-cluster-card.active { border-color: var(--blue); background: #f6faff; }
.wb-sel-all {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer;
}
.wb-feed { display: flex; flex-direction: column; gap: 12px; }
.wb-card {
  padding: 16px 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid #e6ebf3;
  box-shadow: 0 1px 2px rgba(15,23,42,.03), 0 6px 18px rgba(15,23,42,.035);
  transition: border-color .14s ease, box-shadow .14s ease;
}
.wb-card:hover { border-color: #c7d9f8; box-shadow: 0 6px 20px rgba(37,99,235,.06); }
.wb-card.is-mastered { background: #fbfefd; border-color: #d2ece0; }
.wb-card-top {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.wb-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wb-card-stem {
  padding: 12px 14px; margin-bottom: 10px; border-radius: 10px;
  background: #f8fafd; border: 1px solid #e7eef8;
  font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.6;
}
.wb-ans-strip {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--ink-2); margin-bottom: 12px;
}
.wb-card-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-top: 10px; border-top: 1px solid var(--line-2);
}
.wb-src { font-size: 11.5px; color: var(--muted); }
.wb-card-acts { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }

/* 学员端 · 课程视频目录与学情档案横幅（模块 7） */
.vid-dir-item {
  padding: 11px 12px; margin-bottom: 8px; border-radius: 11px;
  border: 1px solid #e8edf5; background: #fbfcfe; cursor: pointer;
  transition: all .14s ease;
}
.vid-dir-item:last-child { margin-bottom: 0; }
.vid-dir-item:hover { border-color: #c7d9f8; background: #ffffff; }
.vid-dir-item.on {
  background: linear-gradient(135deg, #f4f8ff 0%, #ffffff 70%);
  border-color: #93c5fd; border-left: 4px solid var(--blue);
}
.stu-profile-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 20px; border-radius: 15px;
  background: linear-gradient(135deg, #172554 0%, #1d4ed8 60%, #3b82f6 100%);
  color: #fff; box-shadow: 0 8px 24px rgba(29,78,216,.16);
}
.stu-profile-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.2); border: 1.5px solid rgba(255,255,255,.45);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #fff;
}
.spb-metrics { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spb-item {
  padding: 8px 13px; border-radius: 11px;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.2);
  min-width: 96px;
}
.spb-item span { display: block; font-size: 10.5px; color: rgba(255,255,255,.78); }
.spb-item b { display: block; font-size: 16px; font-weight: 700; color: #fff; line-height: 1.2; margin-top: 2px; }
.spb-item b small { font-size: 11px; font-weight: 500; opacity: .85; margin-left: 2px; }
.spb-item em { display: block; font-style: normal; font-size: 10.5px; color: #bfdbfe; margin-top: 2px; }
.spb-item em.ok { color: #a7f3d0; font-weight: 600; }

/* 教师端 · 组卷测评高质感卡片（教师模块 1） */
.tch-q-card {
  padding: 13px 15px; margin-bottom: 10px; border-radius: 12px;
  background: #ffffff; border: 1px solid #e6ebf3;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.tch-q-card:last-child { margin-bottom: 0; }
.tch-q-card:hover { border-color: #c7d9f8; box-shadow: 0 4px 14px rgba(37,99,235,.05); }
.tch-q-card.is-flashed { background: #f2f8ff; border-color: var(--blue); }
.tch-q-top {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.tch-q-stem {
  font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.6;
  margin-bottom: 8px;
}
.tch-opt-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px;
}
.tch-opt-item {
  font-size: 12.2px; color: var(--ink-2);
  padding: 5px 9px; border-radius: 7px; background: #f8fafd; border: 1px solid #edf2f8;
}
.tch-q-exp {
  margin-top: 9px; padding: 9px 11px; border-radius: 8px;
  background: #f4fbf7; border: 1px solid #cde8da;
  font-size: 12px; color: var(--ink-2); line-height: 1.55;
}
.tch-acc-card {
  padding: 11px 13px; border-radius: 11px; cursor: pointer;
  background: #fbfcfe; border: 1px solid #e6ebf3;
  transition: all .14s ease;
}
.tch-acc-card:hover { border-color: #93c5fd; background: #ffffff; }
.tch-acc-card.on { background: #eff6ff; border: 1.5px solid var(--blue); box-shadow: 0 3px 12px rgba(37,99,235,.08); }
.ai-prompt-box {
  display: flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 6px 7px 6px 14px;
  background: #ffffff;
  border: 1.5px solid #93c5fd;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(37,99,235,.06);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ai-prompt-box:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37,99,235,.13);
}
.ai-prompt-ico { font-size: 15px; color: var(--blue); flex-shrink: 0; opacity: .85; }
.ai-prompt-input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-size: 14px; color: var(--ink); line-height: 1.5;
}
.ai-prompt-input::placeholder { color: #94a3b8; }
.ai-prompt-clear {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: #f1f5f9; color: #64748b; font-size: 15px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.ai-prompt-clear:hover { background: #e2e8f0; color: var(--ink); }

/* 教师端 · 作业批改队列与打分台（教师模块 2） */
.hw-queue-list { display: flex; flex-direction: column; gap: 6px; max-height: 440px; overflow-y: auto; }
.hw-queue-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 11px; border-radius: 10px; cursor: pointer;
  background: #fbfcfe; border: 1px solid #e8edf5;
  transition: all .13s ease;
}
.hw-queue-item:hover { border-color: #c7d9f8; background: #fff; }
.hw-queue-item.on {
  background: linear-gradient(135deg, #f3f8ff 0%, #ffffff 70%);
  border-color: #93c5fd; border-left: 4px solid var(--blue);
}
.grade-panel {
  padding: 14px 16px; border-radius: 12px;
  background: #f8fafd; border: 1px solid #e4ecf7;
}

/* 教务端 · 待办风险色条卡片（教务模块 1） */
.acad-cf-card {
  padding: 13px 14px; border-radius: 12px; cursor: pointer;
  background: #ffffff; border: 1px solid #e6ebf3;
  border-left: 4px solid #f59e0b;
  transition: all .14s ease;
}
.acad-cf-card.lv-bad { border-left-color: #ef4444; }
.acad-cf-card.lv-warn { border-left-color: #f59e0b; }
.acad-cf-card.lv-ok, .acad-cf-card.lv-blue { border-left-color: #10b981; }
.acad-cf-card:hover { border-color: #c7d9f8; box-shadow: 0 4px 14px rgba(37,99,235,.05); }
.acad-cf-card.on { background: #f4f8ff; border-color: #93c5fd; box-shadow: 0 4px 16px rgba(37,99,235,.08); }

/* 学员端 · 题库手动挑题列表 */
.stu-pick-list {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 340px; overflow-y: auto; padding-right: 2px;
}
.stu-pick-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 13px; border-radius: 11px; cursor: pointer;
  background: #ffffff; border: 1px solid #e6ebf3;
  transition: all .13s ease;
}
.stu-pick-row:hover { border-color: #93c5fd; background: #f8fbff; }
.stu-pick-row.on {
  background: #eff6ff; border-color: var(--blue);
  box-shadow: 0 2px 10px rgba(37,99,235,.07);
}
@media (max-width: 640px) {
  .tch-opt-grid { grid-template-columns: 1fr; }
  .ai-prompt-box { flex-wrap: wrap; padding: 8px 10px; }
  .ai-prompt-box .btn.primary { width: 100%; justify-content: center; }
}

@media (max-width: 960px) {
  .stu-hero { grid-template-columns: 1fr; padding: 16px; gap: 14px; }
}
@media (max-width: 860px) {
  .g2-asym { grid-template-columns: 1fr !important; }
  .today-task-card { flex-wrap: wrap; }
  .today-task-act { width: 100%; justify-content: flex-end; }
  .stu-hero-title { font-size: 17px; }
  .stu-card { padding: 14px; }
}

/* ── V2 减负版 · 1-2-3-4 线性步骤条与极简列表样式 ── */
.v2-stepper {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  margin-bottom: 18px;
}
.v2-step {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px; border-radius: 12px;
  background: #ffffff; border: 1.5px solid #e6ebf3;
  text-align: left; cursor: pointer; transition: all .15s ease;
}
.v2-step:hover { border-color: #93c5fd; background: #f8fbff; }
.v2-step.on {
  background: #eff6ff; border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(37,99,235,.08);
}
.v2-step.done { border-color: #bbf7d0; background: #f7fef9; }
.v2-step-num {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13.5px; font-weight: 800; background: #f1f5f9; color: #475569;
}
.v2-step.on .v2-step-num { background: var(--blue); color: #fff; }
.v2-step.done .v2-step-num { background: #10b981; color: #fff; }
.v2-step-body { min-width: 0; flex: 1; }
.v2-step-t { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.v2-step-s { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.v2-step.on .v2-step-s { color: var(--blue); font-weight: 600; }
.v2-step.done .v2-step-s { color: #059669; }

.v2-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.v2-bar-l, .v2-bar-r { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.v2-filter-panel {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 14px;
  background: #f8fafc; border: 1px solid #e6ebf3; border-radius: 10px;
}

.v2-clean-list { display: flex; flex-direction: column; gap: 10px; }
.v2-clean-row {
  background: #ffffff; border: 1px solid #e6ebf3; border-radius: 12px;
  padding: 15px 18px;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.v2-clean-row:hover { border-color: #cbd5e1; box-shadow: 0 2px 10px rgba(15,23,42,.04); }
.v2-clean-main {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.v2-clean-info { min-width: 0; flex: 1; }
.v2-clean-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 4px; }
.v2-clean-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.v2-clean-meta { font-size: 12.5px; color: var(--muted); }
.v2-clean-desc { font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.v2-clean-act { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.v2-sticky-pub {
  position: sticky; bottom: 12px; z-index: 20;
  margin-top: 16px; padding: 14px 18px; border-radius: 14px;
  background: #ffffff; border: 1.5px solid #bfdbfe;
  box-shadow: 0 10px 28px rgba(15,23,42,.10);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.v2-grade-stage {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 16px; align-items: start;
}

@media (max-width: 960px) {
  .v2-stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-grade-stage { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .v2-clean-main { flex-direction: column; align-items: flex-start; }
  .v2-clean-act { width: 100%; justify-content: flex-end; }
}
