/* AI 教室 · 白牌样式
   品牌色走 CSS 变量 --brand，机构没设时用青绿（默认色）。
   界面不硬编码平台名：标题只显示机构自己的品牌，没设就显示班级/中性文案。 */

:root {
  /* ============================================================
     设计系统 v3（2026-10-14）：色值**逐个取自** teamcamp.app 的样式表
     （不是眼睛估的）。规则：主色是近黑 #1a1a1a，蓝 #0099ff 只做强调，
     其余是中性灰阶；状态色另有绿 / 橙 / 红 / 粉。

     --brand 仍是"白牌口子"：机构设了自己的品牌色就覆盖它；
     默认值给的是参照站的强调蓝。
     ============================================================ */
  --brand: #0099ff;        /* 参照站强调蓝 rgb(0,153,255) */
  --brand-soft: #e6f4ff;   /* 同色浅底 */
  --brand-deep: #0074cc;   /* 加深版：白底上的小字与链接（AA） */
  --brand-2: #2538e0;      /* 参照站深蓝 */
  --black: #1a1a1a;        /* 参照站主按钮 / 主强调（出现 73 次） */
  --black-hover: #333333;
  --ink: #14151a;          /* 标题近黑（参照 rgb(20,21,26)） */
  --ink-2: #52525b;        /* 正文灰（参照 zinc-600） */
  --ink-3: #8b8b93;        /* 弱化灰 */
  --line: #e4e4e7;         /* 发丝线（参照 zinc-200） */
  --line-2: #cdcdcd;       /* 稍重的线（参照 #cdcdcd） */
  --bg: #f6f6f6;           /* 页面底（参照 #f6f6f6） */
  --card: #ffffff;
  --tint: #f6f6f6;         /* 卡片内浅底块 */
  --tint-2: #ececef;
  --ok: #10aa76;           /* 参照绿 */
  --warn: #ff7b34;         /* 参照橙 */
  --danger: #fe4a4a;       /* 参照红 */
  --pink: #ff3087;         /* 参照粉 */
  /* 状态蓝：固定值 不跟 --brand 走。三态（待办/稍后/已完成）是功能语义色
     机构把品牌色改成红色时 不能害得「稍后」也变红（2026-10-16）。 */
  --info: #0099ff;
  /* 上面三个是"填色"，白底上当文字太浅；文字另给加深版（AA 达标） */
  --ok-ink: #0b8a60;
  --warn-ink: #d9622a;
  --danger-ink: #d93a3a;
  --info-ink: #0074cc;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 20px;
  /* 悬浮只靠阴影，不靠描边。基准值就是参照站那条：
     0 2px 8px rgba(0,0,0,.08)（出现 8 次，是它的卡阴影标准值）。 */
  --shadow-1: 0 2px 8px rgba(0, 0, 0, .08);
  --shadow-2: 0 6px 20px rgba(0, 0, 0, .12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); }

/* 有品牌名时，登录卡头部就只显示品牌名：再挂一个「学生入口 / 老师·机构登录」
   会挤成一串。下面那句说明已经把入口讲清楚了。没有品牌名时维持原样。 */
html.has-brand #auth-title,
html.has-brand #login-title { display: none; }

/* ---------- 布局 ---------- */

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 460px; margin: 0 auto; padding: 0 20px; }

header.top {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
header.top .wrap {
  display: flex; align-items: center; gap: 14px;
  height: 58px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.brand img { height: 24px; width: auto; display: block; }
.brand .dot {
  width: 9px; height: 9px; border-radius: 3px;
  background: var(--brand); display: inline-block;
}
html.has-brand-logo .brand .dot,
html.has-brand-logo .sidebar-brand .dot { display: none; }
.top .spacer { flex: 1; }
.who { color: var(--ink-2); font-size: 13px; }

nav.tabs { display: flex; gap: 4px; }
nav.tabs button {
  border: 0; background: transparent; color: var(--ink-2);
  padding: 7px 12px; border-radius: 8px; cursor: pointer; font-size: 14px;
}
nav.tabs button:hover { background: var(--bg); }
nav.tabs button.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }

main { padding: 24px 0 60px; }

/* ---------- 卡片 ---------- */

.card {
  background: var(--card);
  border: 0;
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-1);
}
.card h2 { margin: 0 0 4px; font-size: 16px; }
.card h3 { margin: 0 0 4px; font-size: 15px; }
.card .sub { color: var(--ink-3); font-size: 13px; margin-bottom: 14px; }

.stats { display: flex; flex-wrap: wrap; gap: 18px; }
/* 2026-10-14 用户两次反馈"两排卡片重叠挤在一起"：实测 .stats 底边与下一块的顶边
   间距是 0（.stats 没有下边距、下一块也没有上边距），两层阴影叠在一起就看着像重叠。
   只给「直接挂在页面/面板上的统计行」补下边距（首页统计行 → 功能卡、我的待办统计行
   → 看板、学生端首页统计行 → 学习卡）；卡片内部的统计行不动，避免卡内出现一块空。
   24px 比网格行的 20px 略大，读起来是一处"换段"，而不是同一排卡片。 */
#page > .stats, .panel > .stats { margin-bottom: 24px; }
.stat {
  flex: 1 1 130px; background: var(--card); border-radius: 16px; padding: 16px 18px;
  box-shadow: var(--shadow-1);
}
.stat .n { font-size: 24px; font-weight: 600; line-height: 1.2; }
.stat .l { color: var(--ink-3); font-size: 12px; }
/* 卡片内部的统计块：白底叠白卡会糊，改成平面浅底 */
.card .stat { background: var(--tint); box-shadow: none; }

/* ---------- 表 ---------- */

/* 表是唯一保留发丝线的地方：没有线，行与行会读不清。线也用最浅的一档。 */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--ink-3); font-weight: 500; font-size: 12px; }
/* 看板列多，表头一律不折行（折成"学生/看了/吗"读不出来） */
table.board-table th { white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.clickable:hover { background: var(--bg); cursor: pointer; }

.pill {
  display: inline-block; padding: 1px 8px; border-radius: 20px;
  font-size: 12px; background: var(--bg); color: var(--ink-2);
}
.pill.ok { background: #e6f7f0; color: var(--ok-ink); }
.pill.warn { background: #fff0e6; color: var(--warn-ink); }
.pill.danger { background: #ffe9e9; color: var(--danger-ink); }

.empty { color: var(--ink-3); font-size: 14px; padding: 18px 0; text-align: center; }

/* ---------- 班级成员：范围勾选 ---------- */

/* 勾学号比填数字贴近老师脑子里的想法（"这几个学生归我"）。
   名单最多 50 人，所以不做搜索框，直接一屏两列铺开就够。 */
.scope-panel {
  background: var(--tint);
  border-radius: 12px;
  padding: 12px 14px;
}
.scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px 14px;
  max-height: 260px;
  overflow: auto;
}
.scope-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--ink-2); cursor: pointer;
}
.scope-item input { width: 15px; height: 15px; flex: 0 0 auto; accent-color: var(--brand); }

/* ---------- 表单 ---------- */

label.field { display: block; margin-bottom: 12px; }
label.field span { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 5px; }

input, select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 9px; font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}

button.btn {
  /* 参照站的主按钮是近黑 #1a1a1a、圆角 999 的药丸形，不用彩色 */
  border: 0; border-radius: 999px; padding: 10px 18px; font: inherit;
  background: var(--black); color: #fff; cursor: pointer; font-weight: 600;
}
button.btn:hover { background: var(--black-hover); filter: none; }
button.btn:disabled { opacity: .55; cursor: not-allowed; }
button.btn.ghost {
  background: var(--tint-2); color: var(--ink); border: 0;
}
button.btn.ghost:hover { background: #e2e2e7; filter: none; }
button.btn.sm { padding: 6px 11px; font-size: 13px; }

.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.row > * { flex: 1 1 160px; }
.row.tight > * { flex: 0 0 auto; }

.hint { color: var(--ink-3); font-size: 12.5px; margin-top: 8px; }

/* 面试形态的阶段清单（无领导小组 / 结构化小组）：把四个阶段一次摊给学生看 */
.phase-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 2px;
}
.phase-item {
  display: grid;
  gap: 3px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  background: var(--tint);
  border: 0;
}
.phase-item b { font-size: 13.5px; color: var(--ink); }
.phase-item span { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }

/* 登录卡上的「← 返回产品介绍」：看着像链接的按钮，不额外加依赖也不加跳转 */
.linklike {
  background: none; border: 0; padding: 0; font: inherit;
  color: var(--brand); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.linklike:hover { color: var(--brand-deep); }

/* ---------- 提示 ---------- */

.msg { padding: 10px 13px; border-radius: 9px; font-size: 13.5px; margin-bottom: 14px; }
.msg.err { background: #ffe9e9; color: var(--danger-ink); }
.msg.ok { background: #e6f7f0; color: var(--ok-ink); }
.hidden { display: none !important; }

/* ---------- 学生端 ---------- */

.hero {
  background: var(--card); border-bottom: 0;
  padding: 20px 0 18px; margin-bottom: 20px;
}
.hero .cls { font-size: 19px; font-weight: 600; margin: 0 0 2px; }
.hero .meta { color: var(--ink-3); font-size: 13px; }

.task {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 15px 17px; border: 0;
  border-radius: 16px; background: var(--card); margin-bottom: 10px;
  box-shadow: var(--shadow-1);
}
/* 卡片内部的任务行：同样改成平面浅底，避免白底叠白卡 */
.card .task { background: var(--tint); box-shadow: none; }
.task .t { font-weight: 600; }
.task .d { color: var(--ink-3); font-size: 13px; }
.task .n { font-size: 22px; font-weight: 600; color: var(--brand); }

.progress { height: 8px; border-radius: 6px; background: var(--bg); overflow: hidden; margin-top: 10px; }
.progress > i { display: block; height: 100%; background: var(--brand); }

/* ---------- 学生端 P1 ---------- */

/* =========================================================
   应用框架：左侧菜单 + 右侧内容（参照「心动 Offer」的工作台版式）
   白牌：品牌色只走 --brand；卡片主题色是功能分类色，不属于品牌。
   ========================================================= */

.shell {
  display: flex;
  height: 100vh;
  padding: 12px;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
/* 背景：纯色底。原设计有两团彩色光斑，参照站点是干净的灰白底，去掉装饰光晕。 */

.sidebar {
  /* AI 工作台三栏：左侧名称要能直接读懂入口，中间保留业务操作，右侧让给对话。 */
  width: 204px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--card);
  border: 0;
  box-shadow: var(--shadow-1);
  position: relative;
  z-index: 2;
}

.sidebar-brand {
  display: flex; align-items: center; gap: 8px;
  justify-content: flex-start;
  min-width: 0;
  padding: 8px 8px 18px;
  font-size: 15px; font-weight: 700;
  color: var(--ink);
}
.sidebar-brand img { height: 26px; width: auto; display: block; }
.sidebar-brand .brand-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.side-nav { display: flex; flex-direction: column; gap: 7px; overflow-y: auto; padding: 2px; }
.side-item {
  display: flex; align-items: center; justify-content: flex-start; gap: 12px;
  width: 100%;
  border: 0; background: transparent; cursor: pointer;
  min-height: 44px; padding: 11px 12px; border-radius: 13px;
  font: inherit; font-size: 14px; font-weight: 500;
  color: var(--ink-2); text-align: left;
  transition: background .15s, color .15s;
}
.side-item:hover { background: rgba(25, 25, 25, .045); color: var(--ink); }
.side-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.side-icon { width: 20px; flex-shrink: 0; display: grid; place-items: center; }
.side-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.side-name {
  font-size: 14px; font-weight: 600; line-height: 1.3; color: inherit;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.side-desc {
  display: none;
  font-size: 11px; font-weight: 400; color: var(--ink-3); line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.side-item.active .side-desc { color: var(--brand); opacity: .78; }

.sidebar-user {
  margin-top: auto;
  display: flex; align-items: center; justify-content: flex-start; gap: 9px;
  padding: 14px 5px 4px;
  border-top: 1px solid var(--line);
}
.side-avatar {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-deep); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}
.side-user-info { display: block; flex: 1; min-width: 0; }
.side-user-name {
  font-size: 13px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.side-user-sub { font-size: 11px; color: var(--ink-3); }
.side-logout {
  display: block;
  border: 0; background: transparent; cursor: pointer;
  color: var(--ink-3); font-size: 15px; padding: 4px 6px; border-radius: 10px;
}
.side-logout:hover { background: rgba(25, 25, 25, .06); color: var(--ink); }

.main {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  border-radius: 16px;
  background: var(--card);
  border: 0;
  box-shadow: var(--shadow-1);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* ---------- AI 居中输入条与右侧悬浮对话 ---------- */

.ai-dock {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 46;
  width: min(340px, calc(100vw - 40px));
  height: 64px;
  display: block;
  border: 1px solid #e6e6e9;
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
  transform: translateX(-50%);
  cursor: text;
  -webkit-tap-highlight-color: transparent;
  transition:
    width .28s cubic-bezier(.22, 1, .36, 1),
    opacity .16s ease,
    transform .24s cubic-bezier(.23, 1, .32, 1),
    visibility 0s linear;
}
.ai-dock:focus-within,
.ai-dock:has(input:not(:placeholder-shown)) {
  width: min(560px, calc(100vw - 40px));
}
.ai-dock-avatar {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}
.ai-dock-avatar img {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  object-fit: contain;
}
.ai-dock-avatar:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.ai-dock input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  padding: 0 58px;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  text-align: center;
}
.ai-dock:focus-within input,
.ai-dock:has(input:not(:placeholder-shown)) input {
  text-align: left;
}
.ai-dock:focus,
.ai-dock:focus-within,
.ai-dock input:focus {
  outline: none;
  box-shadow: none;
}
.ai-dock input::placeholder { color: var(--ink-3); }
.ai-dock-send {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #111;
  color: #fff;
  cursor: pointer;
  font: 700 18px/1 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) scale(.65);
  transition:
    opacity .16s ease,
    transform .2s ease,
    visibility 0s linear .2s;
}
.ai-dock-send:hover { background: #000; }
.ai-dock:focus-within .ai-dock-send,
.ai-dock:has(input:not(:placeholder-shown)) .ai-dock-send {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
  transition-delay: 0s;
}
#shell.ai-open .ai-dock,
#shell.ai-closing .ai-dock {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 18px) scale(.92);
  pointer-events: none;
  transition:
    opacity .16s ease,
    transform .24s cubic-bezier(.23, 1, .32, 1),
    visibility 0s linear .24s;
}

.ai-panel {
  position: fixed;
  left: 50%;
  right: auto;
  top: auto;
  bottom: 96px;
  z-index: 48;
  width: min(560px, calc(100vw - 40px));
  height: min(64vh, 620px);
  max-height: calc(100vh - 140px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(64px) scale(.34);
  transform-origin: bottom center;
  transition:
    opacity .18s ease,
    transform .34s cubic-bezier(.22, 1, .36, 1),
    visibility 0s linear .34s;
}
#shell.ai-open .ai-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
  transition-delay: 0s;
}
#shell.ai-closing .ai-panel {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transform: translateX(-50%) translateY(64px) scale(.34);
  transition:
    opacity .1s ease .26s,
    transform .36s cubic-bezier(.4, 0, .2, 1),
    visibility 0s linear .37s;
}

.ai-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--line);
}
.ai-panel-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ai-panel-title > div { min-width: 0; }
.ai-panel-title b {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink);
}
.ai-panel-title span:not(.ai-orb) {
  display: block;
  max-width: 240px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.5;
}
.ai-orb {
  width: 40px; height: 40px; flex: 0 0 auto;
  display: block;
  object-fit: contain;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.ai-close {
  width: 30px; height: 30px; flex: 0 0 auto;
  display: grid; place-items: center;
  border: 0; border-radius: 9px;
  background: var(--tint);
  color: var(--ink-3);
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
}
.ai-close:hover { color: var(--ink); background: var(--tint-2); }

.ai-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 14px 24px;
  background: linear-gradient(180deg, #fff 0%, #fbfbfd 100%);
}
.ai-welcome {
  padding: 16px;
  border-radius: 16px;
  background: var(--tint);
}
.ai-welcome h3 { margin: 0 0 5px; font-size: 15px; color: var(--ink); }
.ai-welcome p { margin: 0; color: var(--ink-2); font-size: 12.5px; line-height: 1.7; }
.ai-memory-note { margin-top: 10px !important; padding-top: 10px; border-top: 1px solid var(--line); }
.ai-suggestions { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.ai-suggestion {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card);
  color: var(--ink-2);
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}
.ai-suggestion:hover { border-color: #111; color: #111; }

.ai-msg {
  display: flex;
  margin: 0 0 12px;
}
.ai-msg.user { justify-content: flex-end; }
.ai-bubble {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.68;
  white-space: pre-wrap;
  word-break: break-word;
}
.ai-msg.user .ai-bubble {
  border-bottom-right-radius: 5px;
  background: #111;
  color: #fff;
}
.ai-msg.assistant .ai-bubble {
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
  background: var(--card);
  color: var(--ink);
}
.ai-thinking { display: inline-flex; align-items: center; gap: 4px; min-height: 20px; }
.ai-thinking i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink-3);
  animation: ai-dot 1s infinite ease-in-out;
}
.ai-thinking i:nth-child(2) { animation-delay: .14s; }
.ai-thinking i:nth-child(3) { animation-delay: .28s; }
@keyframes ai-dot {
  0%, 60%, 100% { opacity: .28; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
.ai-cards { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ai-plan-bubble {
  width: 100%;
  max-width: 100%;
  padding: 13px;
  white-space: normal;
}
.ai-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}
.ai-plan-head > div { min-width: 0; }
.ai-plan-head b { display: block; font-size: 13px; line-height: 1.45; }
.ai-plan-head p {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.6;
}
.ai-plan-head .ai-mini-pill { flex: 0 0 auto; margin-top: 1px; }
.ai-plan-diff {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0 11px;
}
.ai-plan-diff-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 7px;
  padding: 7px 8px;
  border-radius: 9px;
  background: var(--tint);
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.55;
}
.ai-plan-diff-row.is-new,
.ai-plan-diff-row.is-change {
  border-left: 2px solid #111;
}
.ai-plan-diff-row.is-remove {
  border-left: 2px solid #d76363;
}
.ai-plan-diff-row.is-same { opacity: .58; }
.ai-plan-day {
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.ai-plan-change { min-width: 0; word-break: break-word; }
.ai-plan-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
}
.ai-plan-actions button {
  min-height: 34px;
  border-radius: 10px;
  cursor: pointer;
  font: 600 11.5px/1 inherit;
}
.ai-plan-confirm {
  border: 0;
  background: #111;
  color: #fff;
}
.ai-plan-cancel {
  padding: 0 13px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
}
.ai-plan-actions button:hover:not(:disabled) { filter: brightness(.97); }
.ai-plan-actions button:disabled { opacity: .48; cursor: default; }
.ai-student-card {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.ai-student-card:hover { border-color: #111; background: #f5f5f5; }
.ai-student-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ai-student-name { font-size: 13px; font-weight: 650; }
.ai-student-why { margin-top: 4px; color: var(--ink-2); font-size: 11.5px; line-height: 1.5; }
.ai-student-meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 5px; }
.ai-mini-pill {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--ink-3);
  font-size: 10.5px;
}
.ai-mini-pill.warn { background: #fff0e6; color: var(--warn-ink); }
.ai-full-link {
  display: inline-flex;
  align-items: center;
  margin-top: 9px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
}

.ai-compose {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  background: var(--card);
}
.ai-compose textarea {
  width: 100%;
  height: 36px;
  min-height: 36px;
  max-height: 96px;
  resize: none;
  border: 0;
  border-radius: 0;
  padding: 8px 4px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  line-height: 20px;
  outline: none;
}
.ai-compose textarea:focus {
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
}
.ai-send {
  align-self: center;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #111;
  color: #fff;
  cursor: pointer;
  font: 700 18px/1 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
}
.ai-send:disabled { opacity: .45; cursor: not-allowed; }

.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  border-bottom: 0;
  flex-shrink: 0;
}
.topbar .page-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.topbar .page-sub { font-size: 12.5px; color: var(--ink-3); }
.topbar .spacer { flex: 1; }
.topbar .who { color: var(--ink-3); font-size: 13px; }
.icon-btn {
  display: none;
  width: 34px; height: 34px; border-radius: 11px;
  border: 1px solid rgba(25, 25, 25, .1); background: #fff;
  color: var(--ink); font-size: 16px; cursor: pointer;
}

/* 内容区铺一层浅底：白卡没有边框，全靠这层底色 + 阴影把卡片托起来 */
.main-scroll { flex: 1; overflow-y: auto; padding: 26px 28px 118px; background: var(--bg); }
/* 内容区上限 980 → 1180（2026-10-14 用户要求右边显示更多）。
   980 是收窄侧栏的隐形瓶颈：不收这条 省下来的 48px 全被它吃掉。 */
.shell .wrap { padding: 0; max-width: 1180px; }

.backdrop { display: none; }

/* 报告页：单独一屏，沿用同一套玻璃容器 */
.report-shell { display: flex; height: 100vh; padding: 12px; }
.report-shell .main { flex: 1; }

/* ---------- 首页：欢迎卡 + 功能卡 ---------- */

.home-hero { margin-bottom: 22px; }
.home-hero h1 { font-size: 26px; font-weight: 700; margin: 0 0 6px; letter-spacing: -.01em; }
.home-hero .sub { color: var(--ink-2); font-size: 14px; margin: 0; }

.feat-grid {
  display: grid;
  /* 跟参照实现同款：一行五张、等宽等高。
     之前是 3 列 + 每行各自撑高度，第一行 217、第二行 197，所以"大小不统一"。 */
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 1fr;   /* 行高统一拉齐，任意卡片数都一样高 */
  /* 2026-10-14 用户反馈「卡片挤在一起」：14 太紧 拉开到 20 与参照站的间距档位一致 */
  gap: 20px;
}
/* 工作台：用户 2026-10-14 明确「工作台依旧是三个卡片一排 这块不用改」。
   原来写的是 auto-fit minmax(240px)：在旧的 980 内容区下正好 3 个 看不出问题；
   内容区放开到 1180 之后它会变成 4 个一排 —— 所以这里钉成固定 3 列。 */
#page .feat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
/* 窄屏才允许降列（宽屏永远是 3 个 这是用户要的） */
@media (max-width: 999px) { #page .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feat-card {
  display: flex; flex-direction: column; gap: 8px;
  min-height: 236px;
  padding: 22px 20px;
  border-radius: 16px;
  border: 0;
  background: var(--card);
  box-shadow: var(--shadow-1);
  cursor: pointer; font: inherit; text-align: left;
  transition: transform .22s cubic-bezier(.23, 1, .32, 1), box-shadow .22s;
}
.feat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.feat-ico {
  width: 40px; height: 40px; border-radius: 13px;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--tint-2);
}
.feat-ico svg { width: 20px; height: 20px; }
.feat-card h3 {
  margin: 2px 0 0; font-size: 17px; font-weight: 700;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--ink);
}
.feat-tag {
  font-size: 10px; font-weight: 700; border-radius: 999px;
  padding: 2px 8px; line-height: 1.5; white-space: nowrap;
  color: #737373; background: rgba(25, 25, 25, .08);
}
.feat-desc { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.feat-result {
  margin-top: auto; padding-top: 12px;
  font-size: 12.5px; line-height: 1.6; color: var(--ink-2);
}

/* 功能卡主题色（分类色，与品牌无关）——只染图标与标题，卡身一律纯白：
   参照站点的卡都是白底，彩色只出现在图标和状态点上。 */
.feat-card.tint-teal   h3 { color: #0099ff; }
.feat-card.tint-teal   .feat-ico { background: rgba(0, 153, 255, .12); color: #0099ff; }
.feat-card.tint-blue   h3 { color: var(--brand-2); }
.feat-card.tint-blue   .feat-ico { background: rgba(37, 56, 224, .10); color: var(--brand-2); }
.feat-card.tint-green  h3 { color: #0b8a60; }
.feat-card.tint-green  .feat-ico { background: rgba(16, 170, 118, .14); color: #0b8a60; }
.feat-card.tint-orange h3 { color: #d9622a; }
.feat-card.tint-orange .feat-ico { background: rgba(255, 123, 52, .14); color: #d9622a; }
.feat-card.tint-purple h3 { color: #500fda; }
.feat-card.tint-purple .feat-ico { background: rgba(80, 15, 218, .10); color: #500fda; }
.feat-card.tint-red    h3 { color: #d93a3a; }
.feat-card.tint-red    .feat-ico { background: rgba(254, 74, 74, .12); color: #d93a3a; }

/* ---------- 功能页的介绍卡（进功能先看它，点主按钮才进详情） ---------- */

.intro-card {
  --tint-grad: rgba(25, 25, 25, .03);
  --tint-fg: var(--ink);
  --tint-soft: rgba(25, 25, 25, .06);
  /* 四张介绍卡一张一张地看，也要"大小统一"：给统一的最低高度，
     内容少的卡片底部留白，绝不让某一功能突然高出一截。 */
  min-height: 416px;
  /* 纵向弹性：把"行动按钮 + 脚注"这块永远压在卡片底部，
     于是四张卡的按钮落在同一条水平线上（不这样做会差 30 多像素）。 */
  display: flex; flex-direction: column;
  border-radius: 16px;
  padding: 26px 26px 22px;
  margin-bottom: 14px;
  background: var(--card);
  box-shadow: var(--shadow-1);
}
.intro-card.tint-teal   { --tint-grad: rgba(230, 244, 255, .85); --tint-fg: #0099ff; --tint-soft: rgba(0, 153, 255, .12); }
.intro-card.tint-blue   { --tint-grad: rgba(230, 238, 255, .85); --tint-fg: var(--brand-2); --tint-soft: rgba(37, 56, 224, .10); }
.intro-card.tint-green  { --tint-grad: rgba(232, 248, 242, .85); --tint-fg: #0b8a60; --tint-soft: rgba(16, 170, 118, .14); }
.intro-card.tint-orange { --tint-grad: rgba(255, 243, 235, .9);  --tint-fg: #d9622a; --tint-soft: rgba(255, 123, 52, .14); }
.intro-card.tint-purple { --tint-grad: rgba(240, 238, 255, .85); --tint-fg: #500fda; --tint-soft: rgba(80, 15, 218, .10); }

.intro-head { display: flex; align-items: flex-start; gap: 14px; }
.intro-head .feat-ico { width: 44px; height: 44px; border-radius: 14px; background: var(--tint-soft); color: var(--tint-fg); }
.intro-head .feat-ico svg { width: 22px; height: 22px; }
.intro-title { min-width: 0; }
.intro-title h2 {
  margin: 4px 0 5px; font-size: 21px; font-weight: 700;
  display: flex; align-items: center; gap: 8px; color: var(--tint-fg);
}
.intro-desc { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.intro-result {
  margin: 18px 0 0; padding-top: 0;
  font-size: 14.5px; line-height: 1.7; color: var(--ink);
}
.intro-points { list-style: none; margin: 12px 0 0; padding: 0; }
.intro-points li {
  position: relative; padding-left: 18px; margin-bottom: 7px;
  font-size: 13.5px; color: var(--ink-2); line-height: 1.65;
}
.intro-points li::before {
  content: ""; position: absolute; left: 3px; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--tint-fg); opacity: .55;
}
/* 自动占满上方的剩余空间：四张卡的点数不一样，但按钮永远贴底对齐 */
.intro-actions { margin-top: auto; padding-top: 18px; }
.intro-actions > * { flex: 0 0 auto; }
/* 介绍卡里的行动项：半透明白底，别在彩色卡上再叠一张白卡 */
.intro-card .task { background: var(--tint); box-shadow: none; }

.back-link {
  display: inline-block; margin-bottom: 14px;
  border: 0; background: transparent; cursor: pointer; padding: 2px 0;
  font: inherit; font-size: 13px; color: var(--ink-3);
}
.back-link:hover { color: var(--ink); }

/* 详情页里可点的"三条安排" */
.task.clickable { cursor: pointer; }
.task.clickable:hover { background: rgba(25, 25, 25, .07); }
.step-go { color: var(--ink-3); font-size: 18px; line-height: 1; margin-left: 4px; }

/* ---------- 今日侧重点（最弱 / 偏弱） ---------- */

.focus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.focus {
  border-radius: 16px; padding: 16px 18px;
  background: rgba(25, 25, 25, .035);
}
.focus.is-weakest { background: rgba(254, 74, 74, .10); }
.focus.is-weaker { background: rgba(255, 123, 52, .12); }
.focus-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.focus-badge {
  font-size: 11px; font-weight: 700; border-radius: 999px;
  padding: 2px 9px; line-height: 1.6; color: #fff;
}
.focus.is-weakest .focus-badge { background: #d93a3a; }
.focus.is-weaker .focus-badge { background: #d9622a; }
.focus-cat { font-size: 16px; font-weight: 700; color: var(--ink); }
.focus-reason { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.65; }

/* ---------- 每天首次登录的「今天先练这里」弹窗 ---------- */

.modal-layer {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 22px; background: rgba(18, 20, 24, .36);
}
.modal {
  width: min(560px, 100%); max-height: 88vh; overflow: auto;
  border-radius: 24px; padding: 26px 26px 20px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(15, 18, 22, .26);
  animation: modal-in .22s cubic-bezier(.23, 1, .32, 1);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: none; }
}
.modal-head { display: flex; align-items: flex-start; gap: 14px; }
.modal-head .feat-ico {
  width: 44px; height: 44px; border-radius: 14px;
  background: rgba(37, 56, 224, .10); color: var(--brand-2);
}
.modal-head .feat-ico svg { width: 22px; height: 22px; }
.modal-title { flex: 1; min-width: 0; }
.modal-title h2 { margin: 3px 0 5px; font-size: 20px; font-weight: 700; color: var(--ink); }
.modal-x {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; border: 0;
  background: rgba(25, 25, 25, .05); color: var(--ink-3);
  font: inherit; font-size: 13px; cursor: pointer;
}
.modal-x:hover { background: rgba(25, 25, 25, .1); color: var(--ink); }
.modal-lead { margin: 16px 0 0; font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
.modal-focus { margin-top: 12px; }
/* 弹窗窄，两块侧重点竖着放，别挤成两列 */
.modal .focus-grid { grid-template-columns: 1fr; gap: 10px; }
.modal-actions { margin-top: 18px; }
.modal-actions > * { flex: 0 0 auto; }
.modal .hint { margin-top: 12px; }

/* 题目与标签的弹窗要装下「题干 + 标签 + 批量条」 560 太窄 */
.modal.is-wide { width: min(860px, 100%); }
/* 老师点开学生卡片：左边成长曲线 右边能力雷达 下面继续放原有教学操作 */
.modal.is-student { width: min(1120px, 100%); }
.stu-detail-visuals {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .9fr);
  align-items: start;
  gap: 16px;
  margin-top: 18px;
}
.stu-focus-card {
  margin-top: 16px;
  padding: 15px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-soft), rgba(255,255,255,.9));
}
.stu-focus-card[aria-busy="true"] { min-height: 92px; }
.stu-focus-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.stu-focus-head h3 { margin: 2px 0 0; font-size: 16px; }
.stu-focus-kicker {
  color: var(--brand-deep);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
}
.stu-focus-reason {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.6;
}
.stu-focus-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.stu-focus-action {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: var(--ink);
  font-size: 11.5px;
}
.stu-visual-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(25, 25, 25, .018);
}
.stu-visual-card h3 { margin: 0 0 6px; font-size: 15px; }
.stu-visual-body[aria-busy="true"] { min-height: 240px; }
.stu-visual-body .growth-chart { margin-top: 6px; }
.stu-visual-body .growth-svg { height: 180px; }
.stu-visual-body .chart-legend { flex-wrap: wrap; gap: 8px 14px; }
.stu-visual-body .dim { padding: 8px 0; }
.stu-visual-body .dim:first-of-type { padding-top: 2px; }
.stu-visual-body .radar { width: 100%; height: auto; }
.student-radar-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}
.student-radar-list .tag { font-size: 12.5px; line-height: 1.4; }
.student-radar-list .dim-score { font-size: 13px; }
.tag-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 16px 0 4px; padding: 12px 14px; background: var(--tint); border-radius: 13px;
}
.tag-bar .tb-picked { font-size: 13px; color: var(--ink-2); }
.q-tag-row { padding: 12px 0; border-top: 1px solid var(--line); }
.q-tag-row:first-child { border-top: 0; }
/* 全局那条 input{width:100%} 会把复选框撑成整行 把题干挤没 这里按既有做法收回来 */
.q-tag-row input[type=checkbox], .tag-bar input[type=checkbox] {
  width: 15px; height: 15px; flex: 0 0 auto; accent-color: var(--brand); margin: 4px 0 0;
}
.q-tag-row .qt-head { display: flex; gap: 10px; align-items: flex-start; }
.q-tag-row .qt-stem { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.7; color: var(--ink); }
.q-tag-row .qt-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0 26px; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px; font-size: 12px;
  background: var(--brand-soft); color: var(--brand);
}
.tag-chip .tc-x {
  border: 0; background: transparent; cursor: pointer; font: inherit;
  color: inherit; opacity: .6; padding: 0 1px;
}
.tag-chip .tc-x:hover { opacity: 1; }

@media (max-width: 560px) {
  .modal { padding: 22px 18px 18px; border-radius: 20px; }
  .modal-actions > * { flex: 1 1 100%; }
}
@media (max-width: 820px) {
  .stu-detail-visuals { grid-template-columns: 1fr; }
  .stu-visual-body[aria-busy="true"] { min-height: 0; }
}
@media (max-width: 560px) {
  .student-radar-list { grid-template-columns: 1fr; }
}

/* ---------- 今日题单 ---------- */

.q-list { list-style: none; margin: 6px 0 0; padding: 0; }
.q-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 10px; border: 0; border-radius: var(--radius-sm);
  font-size: 13.5px; cursor: pointer;
  transition: background .14s;
}
.q-row:hover { background: var(--tint); }
.q-no {
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 600;
  background: rgba(25, 25, 25, .07); color: var(--ink-2);
}
.q-row.is-done .q-no { background: rgba(16, 170, 118, .16); color: #0b8a60; }
.q-row.is-cur .q-no { background: var(--brand-deep); color: #fff; }
.q-cat { flex: 1; min-width: 0; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-row.is-done .q-cat { color: var(--ink-3); }

@media (max-width: 1239px) {
  .feat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  /* 窄屏上一屏本来就放不下，统一高度只会留一大块空白，回到内容自适应 */
  .intro-card { padding: 20px 18px 18px; border-radius: 20px; min-height: 0; }
  .focus-grid { grid-template-columns: 1fr; }
  .q-row { font-size: 13px; }
}

@media (max-width: 860px) {
  .shell { padding: 0; gap: 0; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 50;
    width: 76%; max-width: 300px;
    border-radius: 0 20px 20px 0;
    transform: translateX(-104%);
    transition: transform .25s cubic-bezier(.23, 1, .32, 1);
  }
  .sidebar-brand { justify-content: flex-start; padding: 8px 10px 14px; }
  .sidebar-brand .brand-name,
  .side-text { display: flex; }
  .side-user-info,
  .side-logout { display: block; }
  .side-desc { display: block; }
  .side-item { justify-content: flex-start; gap: 10px; padding: 10px 12px; }
  .sidebar-user { justify-content: flex-start; padding: 10px 8px 4px; }
  .shell.nav-open .sidebar { transform: none; }
  .shell .backdrop {
    display: none; position: fixed; inset: 0; z-index: 49;
    background: rgba(25, 25, 25, .3);
  }
  .shell.nav-open .backdrop { display: block; }
  .main { border-radius: 0; border: 0; }
  .icon-btn { display: grid; place-items: center; }
  .main-scroll { padding: 20px 16px 106px; }
  .home-hero h1 { font-size: 22px; }
}

@media (max-width: 860px) {
  .ai-panel {
    bottom: 82px;
    width: calc(100vw - 24px);
    height: min(68vh, 600px);
    max-height: calc(100vh - 100px);
    border-radius: 18px;
    transform: translateX(-50%) translateY(58px) scale(.34);
  }
  #shell.ai-open .ai-panel {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  #shell.ai-closing .ai-panel {
    transform: translateX(-50%) translateY(58px) scale(.34);
  }
  .ai-dock {
    bottom: 12px;
    width: min(300px, calc(100vw - 32px));
    height: 60px;
  }
  .ai-dock:focus-within,
  .ai-dock:has(input:not(:placeholder-shown)) {
    width: calc(100vw - 24px);
  }
  .ai-dock-avatar {
    left: 13px;
    width: 34px;
    height: 34px;
  }
  .ai-dock-avatar img {
    padding: 0;
  }
  .ai-dock-send {
    right: 10px;
    height: 36px;
  }
}

@media (max-width: 560px) {
  .feat-grid, #page .feat-grid { grid-template-columns: minmax(0, 1fr); }
  .feat-card { min-height: 0; }
}

.stat .v { font-size: 24px; font-weight: 600; line-height: 1.2; }
.stat .k { color: var(--ink-2); font-size: 13px; }
.stat .note { color: var(--ink-3); font-size: 12px; margin-top: 2px; }

.row.between { justify-content: space-between; align-items: center; }
.row.between > * { flex: 0 0 auto; }

.tag { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.qmeta { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.qmeta:empty { display: none; }
.pill.ghost { background: var(--tint); border: 0; color: var(--ink-3); }

.stem {
  margin-top: 12px; padding: 14px 15px; background: var(--tint);
  border-radius: 10px; font-size: 15px; line-height: 1.75;
}
.stem.small { font-size: 14px; }

.block {
  padding: 13px 0 2px;
}
.block:first-of-type { padding-top: 4px; }
.block + .block { padding-top: 18px; }
.bt { font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
.bd { font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.bd ul { margin: 4px 0 0; padding-left: 20px; }
.bd li { margin-bottom: 3px; }

.lead { font-size: 15px; line-height: 1.8; }
.ok-line { color: var(--ok-ink); }
.warn-line { color: var(--warn-ink); }

.quote {
  margin-top: 8px; padding: 10px 13px;
  background: var(--tint); border-radius: 12px;
  font-size: 13.5px; color: var(--ink-2); line-height: 1.7;
}
.quote.bad { background: rgba(255, 123, 52, .12); }
.quote .qlabel {
  display: inline-block; font-size: 11.5px; color: var(--ink-3);
  margin-right: 6px; letter-spacing: .5px;
}

.answer { min-height: 150px; line-height: 1.7; resize: vertical; }

.steps { margin-top: 6px; }

/* ---------- 模拟面试考场 ---------- */

/* 配置页：四行「标签 + 选择」，选项按钮走 .opt（和功能卡同一套圆角语言） */
.setup-row { margin-top: 18px; }
.setup-label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 7px; }
.setup-row select { max-width: 420px; }

.opt-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.opt {
  text-align: left; padding: 12px 14px; border-radius: 14px; background: var(--tint);
  border: 1.5px solid transparent; cursor: pointer; font: inherit; color: var(--ink);
  transition: background .15s, border-color .15s;
}
.opt b { display: block; font-size: 14px; font-weight: 600; }
.opt small { display: block; margin-top: 3px; font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.opt:hover { background: var(--brand-soft); }
.opt.active { border-color: var(--brand); background: var(--brand-soft); }
.opt.active b { color: var(--brand-deep); }
.opt:disabled { cursor: not-allowed; opacity: .5; }
.opt:disabled:hover { background: var(--tint); }

/* 配置页的动作行：靠实打实的留白跟上一个选项组分开，不用分隔线（用户要求去掉卡内线条）。 */
.setup-actions { margin-top: 26px; padding-top: 0; border-top: 0; }

/* 上传题库：收在 ⑤ 里面，点「上传题库」才展开 */
.upload-box { margin-top: 14px; padding: 16px 16px 6px; background: var(--tint); border-radius: 14px; }
.upload-box .setup-label { margin-top: 12px; }
.upload-box .setup-actions { margin-top: 16px; padding-top: 14px; border-top: 0; }

/* 统考制的题本：一次给全，逐条排开 */
.stem-list { margin-top: 12px; display: grid; gap: 8px; }
.stem-item {
  padding: 12px 15px; background: var(--bg); border-radius: 10px;
  font-size: 14.5px; line-height: 1.75;
}
.stem-item b { display: block; font-size: 12px; color: var(--brand-deep); margin-bottom: 3px; }

/* 正在思考 / 正在作答 */
.phase-label { margin-top: 10px; font-size: 13px; color: var(--brand-deep); }

/* 模拟面试介绍卡里的三步走：压成一行「① → ② → ③」，跟其余三张介绍卡同高。
   原来这三步是竖排三张卡（每张一行标题 + 一行说明），把这张卡撑到 672，
   其余三张只有 355 左右——这就是用户看到的"卡片大小不统一"。 */
.intro-flow { margin: 12px 0 0; font-size: 13px; line-height: 1.75; color: var(--ink-3); }
.intro-flow .sf { white-space: nowrap; }
.intro-flow .sf b { margin-right: 4px; font-weight: 700; color: var(--tint-fg); }
.intro-flow .sf i { font-style: normal; color: var(--ink-2); }
.intro-flow .arw { margin: 0 9px; color: rgba(25, 25, 25, .26); }

.bar { height: 7px; border-radius: 5px; background: var(--bg); overflow: hidden; margin: 7px 0 4px; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 5px; }

.dim { padding: 12px 0; }
.dim:first-of-type { padding-top: 4px; }
.dim + .dim { padding-top: 16px; }
.dim-score { font-size: 14px; font-weight: 600; color: var(--brand-deep); white-space: nowrap; }

.score-head { display: flex; align-items: center; gap: 16px; }
.score {
  font-size: 46px; font-weight: 700; line-height: 1; color: var(--brand);
  min-width: 84px; text-align: center;
}
.score-head .k { font-size: 14px; font-weight: 600; }

.radar-wrap { display: flex; justify-content: center; padding: 6px 0 10px; }
.radar { max-width: 100%; }

.chart {
  display: flex; align-items: flex-end; gap: 5px; height: 110px; margin-top: 10px;
}
.chart .col {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end; height: 100%; gap: 4px;
}
.chart .col > i {
  display: block; width: 100%; min-height: 2px; border-radius: 3px;
  background: var(--brand); opacity: .85;
}
.chart .col > span { font-size: 10.5px; color: var(--ink-3); }

.panel { animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  .score { font-size: 38px; min-width: 68px; }
  .stem { font-size: 14.5px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  header.top .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  .stats .stat { flex: 1 1 45%; }
  table { font-size: 13px; }
  th, td { padding: 8px 6px; }
}

/* =========================================================================
   「学 — 测 — 复」闭环（2026-10-13）
   学生端：勾「今天学了什么」、题单标档位、弹窗三段、单元掌握图
   老师端：教学计划（一天 10 人）+ 班级大纲
   ========================================================================= */

/* ---------- 学生端：勾今天学了什么 ---------- */

/* 学习进度：一句话说你今天学到哪了（学生端与老师端同款） */
.say-box {
  margin-top: 12px; padding: 14px 16px;
  border-radius: 14px; background: var(--bg);
}
.say-box .say-tag {
  font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px;
}
.say-box .say-input {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 13.5px;
  border: 0; border-radius: 10px; background: var(--card); color: var(--ink);
}
.say-box .say-input::placeholder { color: var(--ink-3); }
.say-line { margin-top: 8px; font-size: 13px; color: var(--ok-ink); }
.say-line.err { color: var(--danger-ink); }

.unit-pick {
  margin: 10px 0 0; padding: 6px;
  max-height: 360px; overflow: auto;
  border-radius: 14px; background: var(--bg);
}
.unit-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 13.5px;
}
.unit-item:hover { background: rgba(25, 25, 25, .045); }
.unit-item input { width: auto; flex: 0 0 auto; margin: 3px 0 0; }
.unit-item .u-name { font-weight: 600; color: var(--ink); }
.unit-item .u-meta { margin-top: 3px; font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.unit-item.is-learned { background: rgba(16, 170, 118, .10); }
.unit-item.is-learned .u-name { color: #0b8a60; }
.unit-group {
  margin: 10px 0 4px; padding: 0 12px;
  font-size: 12px; color: var(--ink-3); font-weight: 600;
}

/* ---------- 学生端：题单里的档位标签 ---------- */

.tier {
  flex: 0 0 auto; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; color: #fff;
}
.tier-review { background: #d9622a; }
.tier-fresh { background: #2a7fbf; }
.tier-weak { background: #d93a3a; }
.q-unit { flex: 0 0 auto; font-size: 11.5px; color: var(--ink-3); max-width: 190px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 学生端：弹窗三段 ---------- */

.brief-sec { margin-top: 18px; }
.brief-sec > h4 {
  margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--ink-2);
  display: flex; align-items: center; gap: 7px;
}
.brief-sec > h4::before {
  content: ''; width: 4px; height: 13px; border-radius: 2px; background: var(--brand);
}
.brief-item {
  padding: 11px 14px; margin-bottom: 8px;
  border-radius: 13px; background: rgba(25, 25, 25, .04);
}
.brief-item .bi-t { font-size: 13.5px; color: var(--ink); line-height: 1.7; }
.brief-item .bi-s { margin-top: 4px; font-size: 11.5px; color: var(--ink-3); }
.brief-item.is-teacher { background: var(--brand-soft); }
.brief-item.is-teacher .bi-t { color: var(--brand-deep); }
/* AI 参考计划：跟老师那份明显区分，标注"供参考"（两份计划的层级不能含糊） */
.brief-item.is-ai { background: var(--tint); }
.brief-item.is-ai .bi-t { color: var(--ink-2); }
.brief-item .bi-tag {
  display: inline-block; margin-right: 6px; padding: 1px 7px;
  border-radius: 999px; font-size: 11px; background: #fff; color: var(--ink-3);
}
.brief-empty { font-size: 12.5px; color: var(--ink-3); padding: 2px 0 4px; }

/* ---------- 当前学习计划：学生端与老师端共用一套版式 ---------- */

.plan-current .say-box { margin-top: 10px; }
.plan-adjust-note { font-size: 13.5px; color: var(--ink-2); line-height: 1.75; }
.plan-days { display: grid; gap: 8px; margin-top: 14px; }
.plan-day {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 11px 14px; border-radius: 13px; background: var(--bg);
}
.plan-day-date {
  flex: 0 0 48px; font-size: 12px; font-weight: 700; color: var(--brand-deep);
}
.plan-day-main { flex: 1; min-width: 0; }
.plan-day-units { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.65; }
.plan-day-note { margin-top: 3px; font-size: 11.5px; color: var(--ink-3); line-height: 1.65; }
.plan-chat { display: grid; gap: 8px; margin: 12px 0; }
.plan-msg {
  max-width: 86%; padding: 9px 12px; border-radius: 13px;
  font-size: 13px; line-height: 1.7; background: var(--bg);
}
.plan-msg.is-me { justify-self: end; background: var(--brand-soft); color: var(--brand-deep); }
.plan-msg.is-ai { justify-self: start; }
.plan-chat-compose { margin-top: 10px; }
.plan-preview { border: 1px solid var(--brand-soft); }
.plan-diff {
  display: grid; gap: 5px; margin: 10px 0 2px; padding: 10px 12px;
  border-radius: 12px; background: var(--tint); font-size: 12.5px; color: var(--ink-2);
}

/* ---------- 学生端：单元掌握图 ---------- */

.unit-map { display: grid; gap: 8px; margin-top: 6px; }
.unit-cell {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 13px; background: var(--bg);
}
.unit-cell .uc-name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; }
.unit-cell .uc-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.unit-cell .uc-meter { flex: 0 0 90px; }
.uc-badge { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 9px; color: #fff; }
.uc-badge.learning { background: #2a7fbf; }
.uc-badge.weak { background: #d93a3a; }
.uc-badge.solid { background: #0b8a60; }
.uc-badge.due { background: #d9622a; }

/* ---------- 老师端：教学计划 / 班级大纲 ---------- */

/* 发布小组演练：两个字段并排，题目占满一行 */
.form-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0 18px; }
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } }
textarea { resize: vertical; min-height: 96px; line-height: 1.8; }

.drill-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 14px; border-radius: 14px; background: var(--bg); margin-bottom: 10px;
}
.drill-row .dr-main { flex: 1; min-width: 0; }
.drill-row .dr-name { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.drill-row .dr-goal { margin-top: 5px; font-size: 13px; color: var(--ink-2); }
.drill-row .dr-meta { margin-top: 5px; font-size: 12px; color: var(--ink-3); }
.drill-row .dr-pending {
  margin-top: 6px; font-size: 12px; color: var(--warn-ink);
  word-break: break-all; line-height: 1.7;
}
.drill-row .dr-pending.ok { color: var(--ok-ink); }

/* ---------- 全班看板：一张大卡 + 每生一张小卡（2026-10-14 用户改版） ---------- */

/* 小卡固定一行 5 个（2026-10-14 用户要求：50 人的班排成 5×10）。
   以前是 minmax(158px) 自动铺 宽屏只有 4 个 —— 改成定列数才数得清。 */
.stu-grid {
  display: grid; gap: 14px; margin-top: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* 结构与高度对每个人都一致 差别只在底色（状态色） */
.stu-card {
  position: relative; height: 116px; padding: 13px 14px;
  display: flex; flex-direction: column; gap: 7px;
  border-radius: 14px; background: var(--tint); cursor: pointer;
  transition: transform .22s cubic-bezier(.23, 1, .32, 1), box-shadow .22s ease;
  transition-delay: 0s;
}
.stu-card:hover { transform: scale(1.07); box-shadow: var(--shadow-2); z-index: 6; transition-delay: 1.1s; }
.stu-card.is-todo { background: #fff3ea; }
.stu-card.is-planned { background: #eaf4ff; }
.stu-card.is-doing { background: #e9faf2; }
/* 班级视图 / 教学计划视图多出来的两个状态底色（2026-10-15 待办第 5 件） */
.stu-card.is-due { background: #fff7e0; }
.stu-card.is-solid { background: #eef1f6; }

.stu-card .sc-top { display: flex; align-items: center; gap: 9px; min-width: 0; }
.stu-card .sc-avatar {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(26, 26, 26, .08); color: var(--ink);
  font-size: 13px; font-weight: 600;
}
.stu-card .sc-name {
  min-width: 0; font-size: 14px; font-weight: 600; color: var(--ink);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.stu-card .sc-state { display: flex; }
.stu-card .sc-state .pill { margin: 0; }
.stu-card .sc-meta {
  margin-top: auto; font-size: 11.5px; color: var(--ink-2);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

/* 悬浮 1 秒后浮出的详情：绝对定位 不参与排版 所以不会把别的卡挤开 */
.stu-card .stu-more {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 7;
  padding: 12px 14px; border-radius: 14px; background: #fff;
  box-shadow: var(--shadow-2);
  opacity: 0; pointer-events: none; transform: translateY(-5px);
  transition: opacity .18s ease, transform .18s ease;
  transition-delay: 0s;
}
.stu-card:hover .stu-more { opacity: 1; transform: translateY(0); transition-delay: 1.1s; }
.stu-more .sm-row { display: flex; gap: 8px; font-size: 12px; line-height: 1.7; }
.stu-more .sm-row b { flex: 0 0 auto; color: var(--ink-3); font-weight: 400; }
.stu-more .sm-row span { min-width: 0; color: var(--ink); }
.stu-more .sm-note { margin-top: 7px; font-size: 12px; line-height: 1.6; }
.stu-more .sm-note.is-warn { color: var(--warn-ink); }
.stu-more .sm-note.is-ok { color: var(--ok-ink); }

/* 全班看板窄屏逐级降列：5 → 4 → 3 → 2。
   断点按「内容区实际宽度」反推：视口 ≥1240 时内容区才吃满 1180；
   4 列放到 1000 以下每张只剩 ~162px 就开始难看了 所以 999 以下转 3 列。 */
@media (max-width: 1239px) { .stu-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 999px) { .stu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 699px) { .stu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 点开小卡后的详情弹窗 */
.detail-list { margin-top: 16px; }
.dl-row { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.dl-row:first-child { border-top: 0; }
.dl-row .dl-k { flex: 0 0 92px; color: var(--ink-3); }
.dl-row .dl-v { flex: 1; min-width: 0; color: var(--ink); }

/* 「排哪种计划」：日 / 周二选一 放在「今天先排这几个」卡里 */
.plan-type {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 10px 0 12px; padding: 10px 12px;
  background: var(--tint); border-radius: 12px;
}
.plan-type .pt-label { font-size: 13px; color: var(--ink-2); }
.plan-type .pt-now { font-size: 12px; color: var(--ink-3); }
.seg { display: inline-flex; gap: 3px; padding: 3px; background: var(--tint-2); border-radius: 11px; }
.seg .seg-btn {
  border: 0; background: transparent; font: inherit; font-size: 13px; color: var(--ink-2);
  padding: 6px 16px; border-radius: 8px; cursor: pointer;
}
.seg .seg-btn.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow-1); }

/* 悬浮详情会往下伸出去 别让祖先把它裁掉；scroll-margin 给「起草完滚到草案」留个顶距 */
.card { overflow: visible; scroll-margin-top: 14px; }

/* 班级计划设定：每天几个人 / 日计划还是周计划 / 每天学多久 */
.plan-settings {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 20px;
  margin: 14px 0 4px; padding: 12px 14px;
  background: var(--tint); border-radius: 13px;
}
label.field.inline { display: flex; align-items: center; gap: 8px; margin: 0; }
label.field.inline span { display: inline; margin: 0; white-space: nowrap; }
label.field.inline span.unit { color: var(--ink-3); }
label.field.inline input, label.field.inline select { width: auto; padding: 8px 10px; }

/* 「让 AI 改一版」：一句话改计划，改完还是草案 */
.ai-revise {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; padding: 12px 14px;
  background: var(--tint); border-radius: 13px;
}
.ai-revise .ar-label { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.ai-revise input { flex: 1; min-width: 0; }
.ai-revise button { white-space: nowrap; }
.ai-revise-wrap {
  margin-top: 12px; padding-top: 4px;
}
.ai-revise-wrap > h3 { margin-bottom: 4px; }
.stu-plan-card { margin-top: 14px; }
.stu-plan-card .plan-days { margin-top: 10px; }

.pick-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; margin-bottom: 8px; border-radius: 13px;
  background: var(--bg); cursor: pointer; font-size: 13.5px;
}
.pick-row:hover { background: var(--brand-soft); }
.pick-row.is-on { background: var(--brand-soft); box-shadow: inset 0 0 0 1.5px var(--brand); }
.pick-row .pr-main { flex: 1; min-width: 0; }
.pick-row .pr-name { font-weight: 600; }
.pick-row .pr-why { margin-top: 3px; font-size: 11.5px; color: var(--ink-3); }

.day-row {
  display: grid; align-items: center; gap: 10px;
  grid-template-columns: 74px minmax(0, 1fr) 118px 74px 84px;
  padding: 10px 10px; border: 0; border-radius: var(--radius-sm);
}
.day-row:nth-child(odd) { background: var(--tint); }
.day-head {
  display: grid; align-items: center; gap: 10px;
  grid-template-columns: 74px minmax(0, 1fr) 118px 74px 84px;
  padding: 0 10px 8px; font-size: 12px; color: var(--ink-3);
}
.day-row .dr-day { font-size: 13px; color: var(--ink-2); }
.day-row .dr-units { font-size: 13.5px; }
.day-row .dr-units small { display: block; margin-top: 3px; color: var(--ink-3); font-size: 11.5px; }
.day-row select, .day-row input { padding: 7px 9px; font-size: 13px; }

.fact-list { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); line-height: 1.75; }
.fact-list .is-warn { color: var(--warn-ink); }
.fact-list .is-ok { color: var(--ok-ink); }

.unit-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border-radius: 14px; background: var(--bg); margin-bottom: 8px;
}
.unit-row .ur-main { flex: 1; min-width: 0; }
.unit-row .ur-name { font-weight: 600; font-size: 14px; }
.unit-row .ur-points { margin: 5px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.unit-row .ur-meta { margin-top: 5px; font-size: 11.5px; color: var(--ink-3); }

/* ---------- 我的待办（A-4）：三列任务板 ---------- */

/* ---------- 重要 / 紧急四象限 ---------- */

.quadrant-card-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.quadrant-card-add {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(25, 25, 25, .1);
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.quadrant-card-add:hover {
  border-color: rgba(25, 25, 25, .2);
  background: var(--tint-2);
  color: var(--ink);
}
.quadrant-card-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 8px;
  margin: 0 0 10px;
}
.quadrant-card-form input {
  min-width: 0;
  height: 34px;
  padding: 7px 10px;
  font-size: 12.5px;
}
.quadrant-card-submit {
  width: 32px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: var(--black);
  color: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.quadrant-card-submit:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.quadrant-shell {
  min-height: calc(100vh - 142px);
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: minmax(min-content, 1fr) 24px;
  gap: 10px;
}
.quadrant-y-label {
  grid-row: 1;
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  place-items: center;
  color: var(--ink-3);
  font-size: 11.5px;
}
.quadrant-y-label span {
  writing-mode: vertical-rl;
  letter-spacing: .08em;
}
.quadrant-grid {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(min-content, 1fr));
  gap: 14px;
}
.quadrant-x-label {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  color: var(--ink-3);
  font-size: 11.5px;
  text-align: center;
  letter-spacing: .08em;
}
.quadrant-card {
  min-width: 0;
  min-height: 300px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-1);
  border-top: 4px solid var(--line);
}
.quadrant-card.q1 { border-top-color: #ff0000; }
.quadrant-card.q2 { border-top-color: #f2d264; }
.quadrant-card.q3 { border-top-color: #7eb9e8; }
.quadrant-card.q4 { border-top-color: #7acac4; }
.quadrant-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.quadrant-card-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .01em;
}
.quadrant-count {
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(25, 25, 25, .07);
  color: var(--ink-2);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.quadrant-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quadrant-task {
  display: flex;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(25, 25, 25, .07);
}
.quadrant-task-main {
  min-width: 0;
  flex: 1;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}
button.quadrant-task-main { cursor: pointer; }
.quadrant-task-main:hover .quadrant-task-title { color: var(--brand); }
.quadrant-task-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}
.quadrant-source,
.quadrant-lock {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(25, 25, 25, .06);
  color: var(--ink-3);
  font-size: 10.5px;
  white-space: nowrap;
}
.quadrant-source.self { background: var(--brand-soft); color: var(--brand); }
.quadrant-due { color: var(--ink-3); font-size: 10.5px; white-space: nowrap; }
.quadrant-task-title {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  word-break: break-word;
}
.quadrant-task-detail {
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.55;
}
.quadrant-lock {
  align-self: flex-start;
  flex: 0 0 auto;
}
.quadrant-remove {
  align-self: flex-start;
  flex: 0 0 auto;
  padding: 3px 6px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-3);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.quadrant-remove:hover { background: rgba(217, 58, 58, .09); color: #b52f2f; }
.quadrant-empty {
  flex: 1;
  min-height: 48px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  font-size: 12px;
}

@media (max-width: 760px) {
  .quadrant-shell {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
  }
  .quadrant-y-label { display: none; }
  .quadrant-grid {
    grid-column: 1;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }
  .quadrant-x-label { display: none; }
  .quadrant-card { min-height: 0; }
}

/* 我的待办：三态切换 + 整宽列表（2026-10-16 用户定的方案 A）。
   原来是三列看板 —— 三列平均分宽度 但真实数据几乎全挤在「待办」一列
   列被压到约 380px → 一条建议要折两三次 → 每条 151px 6 条就滚一屏半。
   改成切换 + 整宽之后正文一行放得下 每条压到 70px 上下。

   三态配色（2026-10-16 用户定的）：待办=橙 跟「教学计划」里「还没排」同族；
   稍后=蓝；已完成=绿（沟通）/灰（忽略）。标签上的数字用同色 一眼对得上。 */
.todo-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.todo-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
}
/* 每个标签自带自己的状态色，数字徽章一直带色 切到哪个都是同色实心 */
.todo-tab[data-col="todo"]  { --st: var(--warn);  --st-ink: var(--warn-ink);  --st-soft: #fff0e6; }
.todo-tab[data-col="later"] { --st: var(--info);  --st-ink: var(--info-ink);  --st-soft: #e6f4ff; }
.todo-tab[data-col="done"]  { --st: var(--ok);    --st-ink: var(--ok-ink);    --st-soft: #e6f7f0; }
.todo-tab:hover { background: var(--tint); }
.todo-tab.active {
  background: var(--st-soft);
  border-color: var(--st-soft);
  color: var(--st-ink);
  font-weight: 600;
}
.todo-tab-num {
  font-size: 12px;
  color: var(--st-ink);
  background: var(--st-soft);
  border-radius: 999px;
  padding: 0 7px;
  min-width: 20px;
  text-align: center;
}
.todo-tab.active .todo-tab-num { background: var(--st); color: #fff; }
.todo-tabs-hint { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }

.todo-list { display: flex; flex-direction: column; gap: 8px; }
.todo-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 10px;
  padding: 9px 14px;
  background: var(--tint);
}
.todo-item.st-todo { border-left-color: var(--warn); }
.todo-item.st-later { border-left-color: var(--info); }
.todo-item.st-told { border-left-color: var(--ok); }
.todo-item.st-skip { border-left-color: var(--ink-3); opacity: .78; }
.todo-item-who { flex: 0 0 92px; display: flex; flex-direction: column; }
.todo-name { font-weight: 600; font-size: 13.5px; }
.todo-no { font-size: 11.5px; color: var(--ink-3); }
.todo-item-body { flex: 1 1 auto; min-width: 0; }
.todo-text { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink); }
.todo-unit { margin-top: 3px; font-size: 11.5px; color: var(--ink-3); }
.todo-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.todo-actions .btn.sm { padding: 4px 10px; font-size: 12px; }
/* 选中的那个按钮跟它代表的三态同色：已沟通=绿 稍后=蓝 忽略=灰 */
.todo-actions .btn.active[data-st="told"] { background: #e6f7f0; color: var(--ok-ink); }
.todo-actions .btn.active[data-st="later"] { background: #e6f4ff; color: var(--info-ink); }
.todo-actions .btn.active[data-st="skip"] { background: var(--tint-2); color: var(--ink-2); }

/* 小组演练：每个人一行 + 观察点小标签 */
.form-row {
  padding: 12px 0;
}
.form-row + .form-row { padding-top: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-2);
  background: var(--tint);
  border: 0;
}
.chip.on { color: var(--brand-deep); background: var(--brand-soft); }

/* 错因五档：答错后点一下 老师端就能按错因归堆（2026-10-20 P0-1） */
.reason-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.reason-chips .chip { cursor: pointer; border: 1px solid transparent; }
.reason-chips .chip.on { border-color: var(--brand); font-weight: 600; }
.reason-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 2px;
}

/* 答后复盘：紧跟这次结果，普通文档流排版，不叠卡片 */
.recap-card {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--tint);
}
.recap-card h3 { margin-bottom: 8px; }
.recap-steps { margin: 4px 0 0; padding-left: 20px; }
.recap-steps li + li { margin-top: 6px; }
.recall-compare {
  margin-top: 14px;
  padding-left: 13px;
  border-left: 3px solid var(--brand);
}
.recall-compare h3 { margin-bottom: 6px; }
.recall-compare p + p { margin-top: 5px; }

/* 每周错题周报（2026-10-20 P0-2）：一周七格，只看自己的节奏，不排名。 */
.week-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  height: 108px;
  margin-top: 14px;
  padding: 10px 12px 8px;
  border-radius: 14px;
  background: var(--tint);
}
.week-bar {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 72px;
  border-radius: 8px;
  background: rgba(37, 56, 224, .08);
  overflow: hidden;
}
.week-bar i {
  display: block;
  width: 100%;
  min-height: 3px;
  border-radius: 8px 8px 0 0;
  background: var(--brand);
}
.week-bar.future { opacity: .42; }
.week-bar.future i { min-height: 0; }

/* 分层提示：先给方向 再给抓手 最后才展开参考答案。 */
.hint-step + .hint-step { margin-top: 8px; }
.hint-step {
  border-left: 3px solid var(--brand);
  background: var(--tint);
}

.tip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.tip-grid .tip-card { margin: 0; min-width: 0; }
.tip-grid .tip-card h3 { margin: 0; }
.tip-grid .tip-card .sub { min-height: 42px; }
.tip-steps {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.75;
}
.tip-trap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
  padding: 11px 12px;
  border-radius: 12px;
  background: #fff7e8;
  color: #8a4b10;
  font-size: 12.5px;
  line-height: 1.6;
}
.tip-trap strong { font-size: 12px; }

.shenlun-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.shenlun-grid .shenlun-dim { margin: 0; min-width: 0; }
.shenlun-grid .shenlun-dim h3 { margin: 0; }
.shenlun-grid .shenlun-dim .sub { margin-bottom: 10px; }
.shenlun-evidence {
  margin: 10px 0;
  padding: 10px 12px;
  border-left: 3px solid var(--brand);
  border-radius: 0 10px 10px 0;
  background: var(--tint);
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.65;
}
.block-field { display: block; margin-top: 14px; }
.block-field > span { display: block; margin-bottom: 6px; }
.block-field .answer-box { margin-top: 0; }

.handbook-result { margin-top: 14px; }
.handbook-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.handbook-template { width: auto; min-width: 112px; }
.handbook-preview {
  max-height: 420px;
  margin: 0;
  padding: 16px 18px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--tint);
  color: var(--ink-2);
  font: 12.5px/1.75 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 能力树：根 → 题型分支 → 已学单元叶子。全部普通文档流 不叠绝对定位。 */
.ability-root {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 14px 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--tint);
}
.ability-trunk {
  width: 9px;
  height: 28px;
  border-radius: 999px;
  background: var(--brand);
}
.ability-branches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ability-branch {
  min-width: 0;
  padding: 14px;
  border-radius: 14px;
  background: var(--bg);
  border-left: 4px solid var(--line);
}
.ability-branch.is-base { border-left-color: var(--warn); }
.ability-branch.is-growing { border-left-color: var(--info); }
.ability-branch.is-steady { border-left-color: var(--ok); }
.ability-branch-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.ability-branch h4 { margin: 0 0 3px; font-size: 14px; }
.ability-score {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.ability-leaves { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.ability-leaf {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 10px;
  background: var(--card);
  font-size: 12.5px;
}
.ability-leaf-name { min-width: 0; line-height: 1.5; }
.ability-leaf-state { flex: 0 0 auto; color: var(--ink-3); }

@media (max-width: 900px) {
  /* 窄屏：谁 + 说了什么 一行 操作按钮换到第二行 */
  .todo-item { flex-wrap: wrap; gap: 8px; }
  .todo-item-who { flex: 0 0 auto; flex-direction: row; align-items: baseline; gap: 7px; }
  .todo-item-body { flex: 1 1 200px; }
  .todo-actions { flex: 1 1 100%; justify-content: flex-start; }
  .week-bars { gap: 5px; padding-inline: 8px; }
  .tip-grid { grid-template-columns: minmax(0, 1fr); }
  .tip-grid .tip-card .sub { min-height: 0; }
  .shenlun-grid { grid-template-columns: minmax(0, 1fr); }
  .ability-branches { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 成长报告（机构端 / 老师端） ---------- */

.select {
  appearance: none;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 13.5px;
  min-width: 160px;
}

.growth-chart {
  margin-top: 12px;
  background: rgba(25, 25, 25, .02);
  border-radius: 12px;
  padding: 8px 10px 2px;
}

.growth-svg { width: 100%; height: 210px; display: block; }
.growth-svg .gx { font-size: 11px; fill: var(--ink-3); }

.chart-legend {
  display: flex;
  gap: 18px;
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 12.5px;
}

.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { display: inline-block; border-radius: 3px; }
.chart-legend .lg-bar { width: 14px; height: 9px; }
.chart-legend .lg-line { width: 16px; height: 3px; border-radius: 2px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 16px;
}

.report-list h4 { margin: 0 0 8px; font-size: 13.5px; }

.bar-row {
  display: grid;
  grid-template-columns: 96px 1fr 46px;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
}

.bar-name { color: var(--ink-2); }
.bar-val { text-align: right; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bar-track {
  height: 8px;
  border-radius: 999px;
  background: var(--bg);
  overflow: hidden;
}
.bar-track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--brand);
}

.focus-list { margin-top: 14px; }
.focus-item { padding: 6px 0; font-size: 13.5px; }
.focus-item + .focus-item { padding-top: 12px; }

.report-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .growth-svg { height: 160px; }
}

/* 我的数据（学生端 A-6）：就是一份可读的清单，不要做成表格 */
.privacy-list {
  margin: 6px 0 0;
  padding-left: 20px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.9;
}

/* 打印结课报告：只留报告正文，去掉侧栏和操作按钮 */
/* 审计日志（机构设置）：一行一条，像流水账 —— 不要做成表格 也不要做成大屏 */
.log-list { margin-top: 10px; max-height: 360px; overflow: auto; }
.log-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 7px 0; border-bottom: 1px dashed var(--line-2, #eee);
  font-size: 13px;
}
.log-row:last-child { border-bottom: 0; }
.log-what { flex: 1; color: var(--ink-1, #111); }
.log-who { color: var(--ink-3); }
.log-when { color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }

@media print {
  .sidebar, #sidebar, .topbar, .side-nav, .sidebar-user, .btn, .linklike { display: none !important; }
  .shell { display: block; }
  .main, #page { padding: 0; margin: 0; }
  .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
}

/* 沟通备注（老师端学生小卡里）：像微信聊天记录一样一条一条 不做成表格 */
.note-list { margin-top: 10px; max-height: 240px; overflow: auto; }
.note-row { padding: 8px 0; border-bottom: 1px dashed var(--line-2, #eee); }
.note-row:last-child { border-bottom: 0; }
.note-text { font-size: 13.5px; color: var(--ink-1, #111); line-height: 1.6; }
.note-meta { margin-top: 3px; font-size: 12px; color: var(--ink-3); }

/* 学生端作答框（本地 不上传）*/
.answer-box {
  width: 100%; min-height: 92px; padding: 12px 14px; margin-top: 8px;
  border: 1px solid var(--line-1, #e5e7eb); border-radius: 10px;
  font: inherit; font-size: 14px; line-height: 1.7; resize: vertical;
}
.answer-box:focus { outline: none; border-color: var(--brand, #3b82f6); }
