/*
 * 青云实践平台 · 样式（2026-10-12 改版）
 * 用户定的比重：Teamily 占七成，WorkBuddy 给分区，另一张「AI 产品经理实训」图只作参考、不照搬。
 * - Teamily（量自课程开发那边 10-11 登录后的 teamily.ai，qingyun-ai 交接第十六节）：72px 白色图标栏、
 *   300px 会话列表当前行浅绿底、56px 白顶栏细底线、对话区淡底纹、对方白气泡（左上 12px 其余 24px）、
 *   自己的话深色气泡、输入框 32px 大圆角一圈淡绿边、36px 绿色圆钮；主绿 #0f9488、绿字 #0b7b71；Lato 加苹方。
 * - WorkBuddy：左边一列任务，中间对话，右边是跟着这一步走的工作台（课程开发那边 10-12 和用户定的分区）。
 * - 参考图里取的：一排建议回复胶囊、「你可以这样和我聊」小卡、首页右侧「开始前，你可以」。插画一概不用。
 */
@font-face { font-family: "Lato"; src: url(vendor/fonts/Lato-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url(vendor/fonts/Lato-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }

:root {
  /* 11-02 设计体系（职上青云）：浅蓝白底、白卡片、藏青字；主色青绿，蓝表示进行中，灰圈表示待探索。 */
  --brand: #0f9488; --brand-hover: #0c7f75; --brand-ink: #0b7b71; --brand-grad: linear-gradient(90deg, #12a594, #0b7f7a); --brand-grad-hover: linear-gradient(90deg, #0f9488, #096f6b);
  --brand-weak: #e8f6f4; --brand-weak2: #d2efea; --brand-line: #b4e2da;
  --navy: #12305a; --blue: #2b7de0; --blue-ink: #1d66bf; --blue-weak: #eaf3fd; --blue-line: #cfe2f9; --purple: #7c6fd6; --purple-weak: #f0effc; --orange: #e8703a; --orange-weak: #fff1e9;
  --ink: #12305a; --ink2: #2e4259; --muted: #5f7186; --faint: #8c9bad; --slate: #48596e;
  --line: #e2eaf2; --line2: #edf2f7; --line3: #e8eef4; --soft: #f2f6fa; --soft2: #f7fafc;
  --amber: #a16207; --amber-weak: #fef7e6; --amber-ink: #5b4310;
  --bad: #dc2626; --bad-weak: #fef2f2;
  --wall: #f4f8fb; --mint: #e8f6f4;
  --panel: #ffffff; --bg: #f6fafc;
  /* names older pages still use */
  --ok: var(--brand-ink); --ok-weak: var(--brand-weak); --warn: var(--amber); --warn-weak: var(--amber-weak);
  --ink3: var(--faint); --line-strong: #dbe5ee;
  --radius: 14px; --shadow: 0 4px 18px rgba(18, 48, 90, .05);
  --font: "Lato", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink2); font: 14px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
#app { height: 100%; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; color: var(--ink); }
h1 { font-size: 24px; line-height: 32px; } h2 { font-size: 18px; } h3 { font-size: 15px; } h4 { font-size: 14px; } h5 { font-size: 13px; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--brand-weak2); }

/* ---------- shell: icon rail | list panel | main ---------- */
.app { height: 100vh; display: grid; grid-template-columns: 72px 300px minmax(0, 1fr); background: #fff; }
.app.folded { grid-template-columns: 72px 0 minmax(0, 1fr); }
.side { display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; background: #fff; border-right: 1px solid var(--line2); padding: 16px 12px 0; }
.app.folded .side { visibility: hidden; padding: 0; border: 0; }
.rail { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 0 18px; background: #fff; border-right: 1px solid var(--line2); }
.rail-logo { width: 44px; height: 44px; border-radius: 14px; background: var(--brand-weak); display: grid; place-items: center; margin-bottom: 14px; }
.rail-logo svg { width: 30px; height: 30px; }
.rail-btn { width: 44px; height: 36px; border-radius: 12px; border: 0; background: none; color: var(--faint); display: grid; place-items: center; cursor: pointer; position: relative; }
.rail-btn:hover { background: var(--soft2); }
.rail-btn.on { background: var(--brand-weak); color: var(--brand-ink); }
.rail-btn svg { width: 22px; height: 22px; }
.rail-me { position: relative; }
.rail-me > button { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
.rail-me .me-menu { left: 52px; right: auto; top: auto; bottom: 0; }
.rail-btn .badge-dot { position: absolute; top: 8px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; }
.rail-gap { flex: 1; }
.topbar { height: 56px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 20px; background: #fff; border-bottom: 1px solid var(--line2); }
.topbar-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar-title strong { font-size: 16px; line-height: 22px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-title span { font-size: 12px; line-height: 16px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; border-radius: 999px; border: 0; background: none; cursor: pointer; position: relative; text-align: left; }
.me:hover { background: var(--soft2); }
.me .who b { display: block; font-size: 14px; color: var(--ink); line-height: 20px; }
.me .who span { display: block; font-size: 12px; color: var(--faint); line-height: 16px; }
.me-menu { position: absolute; right: 0; top: 52px; z-index: 30; min-width: 180px; background: #fff; border: 1px solid var(--line2); border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 40, 30, .12); padding: 6px; display: flex; flex-direction: column; }
.me-menu button { height: 38px; border: 0; background: none; border-radius: 10px; text-align: left; padding: 0 12px; cursor: pointer; font-size: 14px; }
.me-menu button:hover { background: var(--soft2); }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 14px; }
.logo { width: 36px; height: 36px; border-radius: 12px; background: var(--brand-weak); display: grid; place-items: center; flex: none; }
.logo svg { width: 26px; height: 26px; }
.side-brand b { display: block; font-size: 17px; line-height: 22px; color: var(--ink); }
.side-brand span { display: block; font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-new { margin: 0 4px 12px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: #fff; display: flex; align-items: center;
  justify-content: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; }
.side-new:hover { border-color: var(--brand-line); background: var(--brand-weak); color: var(--brand-ink); }
.side-label { font-size: 11px; line-height: 16px; font-weight: 700; color: var(--faint); padding: 10px 8px 6px; }
.side-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; padding-bottom: 12px; }
.side-scroll::-webkit-scrollbar { width: 0; }
.srow { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 16px; cursor: pointer; color: inherit; }
.srow:hover { background: var(--soft2); text-decoration: none; }
.srow.on { background: var(--brand-weak); }
.srow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.srow-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.srow-top b { font-size: 15px; line-height: 22px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow.on .srow-top b { color: var(--brand-ink); }
.srow-top time { font-size: 12px; color: var(--faint); flex: none; font-variant-numeric: tabular-nums; }
.srow-sub { font-size: 12px; line-height: 18px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.tag { align-self: flex-start; margin-top: 5px; font-size: 11px; line-height: 18px; padding: 0 8px; border-radius: 9px; background: var(--line2); color: #64748b; white-space: nowrap; }
.tag.turn { background: var(--amber-weak); color: var(--amber); font-weight: 700; }
.tag.done { background: var(--brand-weak); color: var(--brand-ink); }
.tag.wait { background: #eff6ff; color: #1d4ed8; }
.av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 700; flex: none; line-height: 1; }
.av.s28 { width: 28px; height: 28px; font-size: 12px; } .av.s36 { width: 36px; height: 36px; font-size: 14px; }
.t0 { background: var(--brand-grad); color: #fff; } .t1 { background: #fde7d3; color: #9a4b12; } .t2 { background: #dbeafe; color: #1e40af; }
.t3 { background: #ede9fe; color: #5b21b6; } .t4 { background: #ddfbf8; color: #16655d; } .t5 { background: #fef3c7; color: #92400e; }
.sfiles { padding: 2px 0 8px 52px; display: flex; flex-direction: column; gap: 1px; }
.sfile { height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-radius: 10px; font-size: 13px; color: var(--slate); cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 0; background: none; text-align: left; width: 100%; }
.sfile:hover { background: var(--soft2); }
.sfile.on { background: var(--line2); color: var(--ink); font-weight: 700; }
.sfile i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); flex: none; }
.sfile.on i { background: var(--brand); }
.snav { height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 12px; color: var(--slate); font-size: 14px; cursor: pointer; }
.snav:hover { background: var(--soft2); text-decoration: none; }
.snav.on { background: var(--brand-weak); color: var(--brand-ink); font-weight: 700; }
.snav small { margin-left: auto; color: var(--faint); font-size: 12px; font-weight: 400; }
.side-foot { border-top: 1px solid var(--line2); padding: 12px 8px 14px; display: flex; align-items: center; gap: 10px; }
.side-foot .who { flex: 1; min-width: 0; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot .who span { display: block; font-size: 11px; color: var(--faint); }
.main { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #fff; }
.main-scroll { flex: 1; min-height: 0; overflow: auto; }
.banner { padding: 8px 20px; font-size: 13px; background: var(--amber-weak); color: var(--amber); flex: none; }

/* ---------- pages inside main ---------- */
.page { width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; }
.page-head .grow { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.crumb { font-size: 13px; color: var(--faint); }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { background: #fff; border: 1px solid var(--line3); border-radius: 20px; }
.card-pad { padding: 20px 22px; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 16px 22px; border-bottom: 1px solid var(--line2); }
.card-head h2, .card-head h3 { flex: 1; min-width: 7em; }
.card.soft { background: var(--soft2); border-color: transparent; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 18px; border-radius: 999px;
  border: 0; background: var(--soft); color: var(--ink); font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
.btn:hover:not(:disabled) { background: #e7ecf1; text-decoration: none; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--brand-hover); }
.btn.primary:disabled { box-shadow: none; }
.btn.ghost { background: transparent; color: var(--muted); font-weight: 400; }
.btn.ghost:hover:not(:disabled) { background: var(--soft2); }
.btn.line { background: #fff; border: 1px solid var(--line); }
.btn.danger { color: var(--bad); }
.btn.small { height: 30px; padding: 0 12px; font-size: 13px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 13px; color: var(--slate); cursor: pointer; text-align: left; }
.chip:hover { border-color: var(--brand-line); background: var(--brand-weak); color: var(--brand-ink); }
.input, .textarea, .select { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 8px 12px; outline: none; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-weak2); }
.select { height: 36px; padding: 0 10px; }
.textarea { resize: vertical; min-height: 80px; line-height: 1.65; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; color: var(--muted); }
.error { color: var(--bad); font-size: 13px; }
.note { font-size: 13px; color: var(--slate); background: var(--soft2); border-radius: 14px; padding: 10px 14px; }
.note.warn { background: var(--amber-weak); color: var(--amber-ink); }
.note.bad { background: var(--bad-weak); color: var(--bad); }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 11px; font-size: 12px; background: var(--line2); color: #64748b; white-space: nowrap; }
.badge.brand, .badge.ok { background: var(--brand-weak); color: var(--brand-ink); }
.badge.warn { background: var(--amber-weak); color: var(--amber); }
.badge.bad { background: var(--bad-weak); color: var(--bad); }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- lists & tables ---------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-top: 1px solid var(--line2); }
.list-item:first-child { border-top: 0; }
.list-item.click { cursor: pointer; } .list-item.click:hover { background: var(--soft2); }
.list-item .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow: visible; background: none; }
.list-item .title { font-weight: 700; color: var(--ink); }
.empty { padding: 32px 20px; text-align: center; color: var(--faint); }
table.data { border-collapse: collapse; width: 100%; font-size: 13px; }
table.data th, table.data td { border-bottom: 1px solid var(--line2); padding: 8px 12px; text-align: left; vertical-align: top; white-space: nowrap; }
table.data th { color: var(--muted); font-weight: 700; font-size: 12px; background: var(--soft2); position: sticky; top: 0; }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }
/* 11-12 长文字的列折行显示全文（原来一行到底，要左右滑才看得全）；整列是数的表头也靠右；表头字多的可以折成两行 */
table.data th.num { text-align: right; }
table.data td.long, table.data th.long, table.data th.wrap { white-space: normal; }
table.data td.long { line-height: 1.65; }
table.data th.long { min-width: calc(var(--w, 12) * 1em); }
table.data th.wrap { min-width: 4.5em; }
table.data th .hn { white-space: nowrap; }
.wide-tip { display: none; }  /* 表要左右滑动的提示：只在做任务页的资料栏里显示（qy3.css） */
@media (max-width: 560px) { table.data th.long { min-width: calc(min(var(--w, 12), 11) * 1em); } }
.table-wrap { overflow: auto; border: 1px solid var(--line3); border-radius: 14px; max-height: 340px; }

/* ---------- entry & join ---------- */
.center-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; background: var(--wall);
  background-image: radial-gradient(circle, #dde5e4 1px, transparent 1.3px); background-size: 22px 22px; }
.auth { width: 400px; display: flex; flex-direction: column; gap: 16px; border-radius: 24px; padding: 28px; }
.auth h1 { text-align: center; }
.entry { width: min(720px, 100%); display: flex; flex-direction: column; gap: 18px; border-radius: 24px; padding: 32px; }
.entry h1 { text-align: center; }
.entry > .muted { text-align: center; margin-top: -8px; }
.entry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.entry-person { display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-align: left; cursor: pointer; border: 1px solid var(--line3);
  border-radius: 16px; background: #fff; font: inherit; color: inherit; }
.entry-person .title, .entry-person .small { display: block; }
.entry-person .title { font-weight: 700; color: var(--ink); }
.entry-person:hover:not(:disabled) { border-color: var(--brand-line); background: var(--brand-weak); }
.entry-person:disabled { cursor: default; opacity: .7; }
/* 10-31 老师首页：管理和数据看板（四个人数、这周要看谁、学生名单） */
.tb { display: flex; flex-direction: column; gap: 14px; max-width: 1120px; }
.tb h2 { font-size: 17px; color: var(--ink); }
.tb-head, .tb-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; }
.tb-h { margin-top: 10px; }
.tb-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tb-tiles-note { margin-top: 6px; }
.tb-grow { display: flex; flex-direction: column; gap: 2px; min-width: 190px; max-width: 300px; }
.ct-keys { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.ct-key { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; font-size: 13.5px; }
.ct-key .dots { display: inline-flex; gap: 4px; }
.ct-key .dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #cad2db; }
.ct-key .dots i.on { background: var(--brand); border-color: var(--brand); }
.tb-where-cell { min-width: 140px; max-width: 220px; }
.tb-table .tb-who small { white-space: normal; }
.tb-grow small.tb-quiet { color: var(--amber); }
.tb-tile { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border: 1px solid var(--line3); border-radius: 16px; background: #fff; }
.tb-tile-label { color: var(--muted); font-size: 13px; }
.tb-tile b, .tb-look-card b { font-size: 28px; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; }
.tb-tile b small, .tb-look-card b small { font-size: 14px; font-weight: 400; color: var(--muted); }
.tb-tile-week { color: var(--faint); font-size: 12px; }
.tb-look { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tb-look-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line3); border-radius: 16px; background: #fff; }
.tb-look-card > span:first-child { color: var(--ink2); font-weight: 700; }
.tb-look-card.on { border-color: var(--brand-line); background: var(--brand-weak); }
.tb-act { align-self: flex-start; padding: 0; border: 0; background: transparent; color: var(--brand-ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.tb-act:hover { text-decoration: underline; }
.tb-table-wrap { overflow-x: auto; border: 1px solid var(--line3); border-radius: 16px; background: #fff; }
.tb-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.tb-table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.tb-table td { padding: 12px 14px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.tb-table tr:last-child td { border-bottom: 0; }
.tb-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.tb-who { display: flex; align-items: center; gap: 10px; }
.tb-who span { display: flex; flex-direction: column; min-width: 0; }
.tb-who b { color: var(--ink); white-space: nowrap; }
.tb-who small { white-space: nowrap; }
.tb-where.idle, .tb-where.unread { color: var(--amber); }
.tb-where.asked { color: var(--brand-ink); }
.tb-row-act { text-align: right; white-space: nowrap; }
.tb-note { margin-top: 2px; }
@media (max-width: 760px) {
  .tb-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-look { grid-template-columns: minmax(0, 1fr); }
}
/* 10-31 首页：一句话说清做什么，三张卡各进一端，注册折在学生卡底下 */
.home { width: min(980px, 100%); display: flex; flex-direction: column; gap: 22px; }
.home-head { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.home-logo { width: 52px; height: 52px; border-radius: 16px; margin-bottom: 4px; }
.home-head h1 { font-size: 28px; }
.home-sub { font-size: 17px; color: var(--ink); }
.role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.role-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 20px; }
.role-tag { align-self: flex-start; font-size: 18px; font-weight: 700; color: var(--ink); padding-left: 12px; border-left: 4px solid var(--brand); line-height: 1.2; }
.role-tag.enterprise { border-left-color: #f59e0b; }
.role-tag.teacher { border-left-color: #3b82f6; }
.role-say { flex: 1; font-size: 15px; line-height: 1.75; color: var(--ink2); }
.role-who { margin-top: -2px; }
.role-go { height: 44px; font-size: 15px; font-weight: 700; }
.role-reg { align-self: center; border: 0; background: transparent; color: var(--brand-ink); font: inherit; font-size: 13px; cursor: pointer; padding: 2px 6px; }
.role-reg:hover { text-decoration: underline; }
.home-steps { text-align: center; }
.home-reg { border-radius: 20px; }
/* 11-02 首页没有可进的账号时：说清怎么办，给账号密码登录的入口 */
.home-empty { border-radius: 20px; text-align: center; display: flex; flex-direction: column; gap: 8px; width: min(640px, 100%); align-self: center; }
.home-reg .new-student { border-top: 0; padding-top: 0; }
.role-reg.ghost { visibility: hidden; }  /* the other two cards keep the same room, so the three buttons line up */
.who-sees { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--soft2); }
.who-sees b { color: var(--ink); }
@media (max-width: 760px) {
  .role-grid { grid-template-columns: minmax(0, 1fr); }
  .role-reg.ghost { display: none; }  /* one card per row on a phone: nothing to line up with */
  .home-head h1 { font-size: 24px; }
  .home-sub { font-size: 15px; }
}

/* ---------- task document ---------- */
.doc { display: flex; flex-direction: column; gap: 18px; }
.doc section { display: flex; flex-direction: column; gap: 6px; }
.doc h4 { color: var(--muted); font-size: 12px; font-weight: 700; }
.doc .text { white-space: pre-wrap; line-height: 1.75; }
.doc .table-title { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--ink); }
.doc ol, .doc ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.doc li .sub { color: var(--faint); font-size: 13px; }
.prov { font-size: 12px; color: var(--faint); }

/* ---------- student project: chat | workbench ---------- */
.proj { flex: 1; min-height: 0; display: flex; flex-direction: column; min-width: 0; }
.pill { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.pill.turn { color: var(--amber); background: var(--amber-weak); }
.pill.done { color: var(--brand-ink); background: var(--brand-weak); }
.pill.wait { color: #1d4ed8; background: #eff6ff; }
.proj-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 480px; grid-template-rows: minmax(0, 1fr); }

/* Teamily conversation: faint dotted wall, white bubbles with a small top-left corner, mine dark on the right */
.chat-col { min-height: 0; min-width: 0; display: flex; flex-direction: column; background-color: var(--wall);
  background-image: radial-gradient(circle, #dde5e4 1px, transparent 1.3px); background-size: 22px 22px; }
.coach { flex: none; display: flex; align-items: center; gap: 10px; padding: 16px 28px 0; }
.coach b { font-size: 15px; color: var(--ink); }
.coach span { font-size: 13px; color: var(--muted); }
.thread { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 28px 10px; display: flex; flex-direction: column; gap: 18px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 700px; }
.msg .by { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 20px; color: var(--slate); margin-bottom: 6px; }
.msg .bubble { margin-left: 36px; width: fit-content; max-width: 620px; background: #fff; border-radius: 12px 24px 24px 24px; padding: 10px 16px;
  font-size: 15px; line-height: 24px; color: var(--ink2); white-space: pre-wrap; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.msg .time { font-size: 12px; color: var(--faint); margin: 4px 0 0 40px; }
.msg.student { align-self: flex-end; align-items: flex-end; }
.msg.student .bubble { margin-left: 0; background: var(--ink2); color: #fff; border-radius: 24px 12px 24px 24px; }
.msg.student .time { margin: 4px 4px 0 0; }
.msg .who { display: none; }
.task-card { margin-left: 36px; max-width: 620px; background: #fff; border: 1px solid var(--brand-line); border-radius: 20px; padding: 14px 18px 16px;
  box-shadow: 0 6px 22px rgba(0, 141, 57, .08); display: flex; flex-direction: column; gap: 8px; }
.task-card .label { font-size: 12px; font-weight: 700; color: var(--brand-ink); display: flex; align-items: center; gap: 6px; }
.task-card .label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.task-card h3 { font-size: 16px; line-height: 24px; }
.task-card p { font-size: 14px; line-height: 22px; color: var(--ink2); }
.task-card .meta { font-size: 13px; color: var(--muted); }
.starters { margin-left: 36px; display: flex; flex-wrap: wrap; gap: 8px; }
.howto { margin-left: 36px; align-self: flex-start; max-width: 440px; background: rgba(255, 255, 255, .85); border: 1px solid var(--line3); border-radius: 20px; padding: 14px 18px;
  display: flex; flex-direction: column; gap: 8px; }
.howto b { font-size: 14px; color: var(--ink); }
.howto ul { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.howto li { list-style: none; display: flex; gap: 10px; font-size: 13px; color: var(--slate); }
.howto li::before { content: "✓"; color: var(--brand-ink); font-weight: 700; }
.sys { align-self: center; font-size: 12px; color: var(--muted); background: rgba(255, 255, 255, .8); padding: 2px 10px; border-radius: 999px; }
.composer2 { flex: none; margin: 6px 22px 6px; background: #fff; border: 1px solid var(--brand-line); border-radius: 32px; padding: 14px 14px 12px 22px;
  display: flex; flex-direction: column; gap: 4px; min-height: 108px; }
.composer2:focus-within { border-color: var(--brand); }
.composer2 textarea { flex: 1; border: 0; outline: none; resize: none; min-height: 48px; max-height: 160px; font-size: 15px; line-height: 24px; background: transparent; padding: 0; }
.composer2 .row { justify-content: space-between; }
.composer-hint { flex: none; margin: 0 32px 10px; font-size: 12px; color: var(--faint); }
.send { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.send:disabled { background: var(--line-strong); cursor: default; }
.send svg { width: 18px; height: 18px; }
.typing::after { content: '▍'; animation: blink 1s steps(2) infinite; color: var(--faint); }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .typing::after, .spin { animation: none; } }

/* WorkBuddy-style workbench in Teamily's dress: a plain white panel that follows the current step */
.wb-wrap { min-height: 0; min-width: 0; display: flex; border-left: 1px solid var(--line2); }
.wb { flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column; background: #fff; }
.wb-step { flex: none; margin: 14px 16px 0; padding: 14px 16px 12px; border-radius: 16px; background: var(--brand-weak); display: flex; flex-direction: column; gap: 6px; }
.wb-step .label { font-size: 12px; font-weight: 700; color: var(--brand-ink); display: flex; align-items: center; gap: 6px; }
.wb-step .leaf { width: 22px; height: 22px; display: grid; place-items: center; flex: none; }
.wb-step .leaf svg { width: 18px; height: 18px; }
.wb-step h2 { font-size: 17px; line-height: 24px; }
.wb-step p { font-size: 13px; line-height: 20px; color: var(--slate); }
.wb-step .leave { font-size: 12px; color: var(--brand-ink); background: rgba(255, 255, 255, .75); border-radius: 10px; padding: 6px 10px; }
.wb-dots { display: flex; gap: 4px; }
.wb-dots i { width: 16px; height: 4px; border-radius: 2px; background: #d6eae8; }
.wb-dots i.done { background: var(--brand); } .wb-dots i.cur { background: #86e3da; }
.wb-tabs { flex: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 12px 16px 8px; }  /* 10-17: a zone topic's fifth tab slid out of sight */
.wb-tab { flex: none; white-space: nowrap; height: 32px; padding: 0 14px; border-radius: 999px; border: 0; background: none; color: var(--muted); font-size: 14px; cursor: pointer; }
.wb-tab:hover { background: var(--soft2); }
.wb-tab.on { background: var(--soft); color: var(--ink); font-weight: 700; }
.wb-body { flex: 1; min-height: 0; overflow: auto; padding: 8px 20px 16px; }
.wb-body.flush { padding: 0; display: flex; flex-direction: column; }
.wb-foot { flex: none; border-top: 1px solid var(--line2); padding: 10px 20px 12px; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.wb-foot b { color: var(--ink); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--faint); margin-right: 4px; vertical-align: 0; }
.dot.full { background: var(--brand); border-color: var(--brand); }
.mat { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line3); border-radius: 16px; cursor: pointer; background: #fff; width: 100%; text-align: left; }
.mat:hover { border-color: var(--brand-line); background: var(--brand-weak); }
.mat .ic { width: 36px; height: 36px; border-radius: 12px; background: var(--brand-weak); color: var(--brand-ink); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.mat b { display: block; color: var(--ink); font-size: 14px; }
.mat small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; border: 0; background: none; padding: 0; }

/* work editor */
.editor { flex: 1; min-height: 240px; border: 0; padding: 8px 20px 16px; outline: none; resize: none; line-height: 1.85; font-size: 15px; }
.editor-foot { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 20px; border-top: 1px solid var(--line2); }
.editor-foot .grow { flex: 1; font-size: 12px; color: var(--faint); }
.tabs { display: flex; gap: 4px; padding: 10px 16px; border-bottom: 1px solid var(--line2); flex: none; }
.tab { height: 32px; padding: 0 14px; border-radius: 999px; border: 0; background: none; cursor: pointer; color: var(--muted); }
.tab.on { background: var(--soft); color: var(--ink); font-weight: 700; }

/* ---------- review (teacher) ---------- */
.review-item { border: 1px solid var(--line3); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.review-item .head { display: flex; align-items: center; gap: 8px; }
.review-item .head h4 { flex: 1; }
.quote { border-left: 3px solid var(--brand-line); padding: 2px 10px; color: var(--slate); font-size: 13px; }
.checks { border-color: #f3dfb5; }
.checks .card-head { background: var(--amber-weak); border-radius: 20px 20px 0 0; }
.checks ul { margin: 0; padding-left: 32px; display: flex; flex-direction: column; gap: 10px; }
.checks li p { margin: 4px 0 0; }
.figures summary { cursor: pointer; list-style: none; }
.figures summary::-webkit-details-marker { display: none; }
.figures summary h3::before { content: '▸ '; color: var(--muted); }
.figures[open] summary h3::before { content: '▾ '; }
.figures:not([open]) summary { border-radius: 20px; }
.figures .figure-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.figures .figure-list li > div { margin-top: 2px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.figures .fig { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.figures .fig b { color: var(--ink); }
.figures .off { color: var(--amber); }
.figures ul { padding-left: 20px; display: block; }
.seg { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 3px 12px; border-radius: 999px; cursor: pointer; font-size: 13px; color: var(--muted); }
.seg button.on { background: var(--brand-grad); color: #fff; font-weight: 700; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.paper { white-space: pre-wrap; line-height: 1.85; }

/* ---------- teacher dashboard ---------- */
.hl { display: flex; align-items: center; gap: 16px; background: var(--amber-weak); border-radius: 20px; padding: 16px 20px; color: var(--amber-ink); font-size: 15px; line-height: 24px; }
.hl.calm { background: var(--brand-weak); color: #14534d; }
.hl b { color: var(--amber); } .hl.calm b { color: var(--brand-ink); }
.hl .btn { flex: none; background: #fff; color: var(--amber); }
.hl.calm .btn { color: var(--brand-ink); }
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr) 64px; gap: 14px; align-items: center; cursor: pointer; }
.bar-row:hover .bar-name { color: var(--brand-ink); }
.bar-name { font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 12px; border-radius: 6px; background: var(--line3); display: flex; overflow: hidden; }
.bar i { display: block; height: 100%; }
.bar .s-reviewed { background: var(--brand); } .bar .s-submitted { background: #f59e0b; } .bar .s-working { background: #3b82f6; }
.bar-num { font-size: 13px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.weak-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 40px; gap: 12px; align-items: center; font-size: 14px; }
.mini { height: 8px; border-radius: 4px; background: var(--line3); overflow: hidden; }
.mini i { display: block; height: 100%; background: #f5c26b; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 24px; line-height: 30px; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); }
.code-big { font-size: 28px; font-weight: 700; letter-spacing: .18em; font-variant-numeric: tabular-nums; color: var(--ink); }

/* ---------- modal & picker ---------- */
.overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .32); display: grid; place-items: center; z-index: 50; padding: 24px; }
.modal { width: min(980px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; background: #fff; border-radius: 24px; box-shadow: 0 20px 60px rgba(15, 23, 42, .18); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 22px; border-bottom: 1px solid var(--line2); }
.modal-head h2 { flex: 1; }
.modal-body { flex: 1; min-height: 0; overflow: auto; padding: 18px 22px; }
.modal-foot { display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line2); }
.modal-foot .grow { flex: 1; }
.picker { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; min-height: 420px; }
.picker-preview { min-width: 0; overflow: auto; max-height: 56vh; padding-right: 4px; }
.picker-list { border: 1px solid var(--line3); border-radius: 16px; overflow: auto; max-height: 56vh; padding: 6px; }
.picker-head { padding: 10px 12px 4px; font-size: 12px; font-weight: 700; color: var(--muted); position: sticky; top: -6px; background: var(--panel); z-index: 1; }
.picker-row { padding: 10px 12px; border-radius: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.picker-row:hover { background: var(--soft2); } .picker-row.on { background: var(--brand-weak); }
.picker-row.on > span:first-child { color: var(--brand-ink); font-weight: 700; }
.picker.lib { min-height: 0; }
.picker.lib .picker-list, .picker.lib .picker-preview { max-height: calc(100vh - 210px); }
.new-student { border-top: 1px solid var(--line2); padding-top: 16px; text-align: left; }

/* ---------- enterprise editor ---------- */
.edit-list { display: flex; flex-direction: column; gap: 10px; }
.edit-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; border: 1px solid var(--line3); border-radius: 14px; padding: 10px; background: var(--soft2); }

/* the composer the enterprise talks in (chat column and the start page) */
.ecomp { min-height: 0; gap: 6px; }
.ecomp > textarea { min-height: 52px; }
.ecomp .table-paste { border-top: 1px dashed var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.ecomp .table-paste textarea { width: 100%; border: 0; outline: none; resize: vertical; min-height: 64px; max-height: 180px; background: transparent;
  font-family: ui-monospace, monospace; font-size: 12px; line-height: 18px; }
.ecomp .row { gap: 8px; }

/* start page: one question, one box */
.estart { max-width: 860px; gap: 18px; }
.estart-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 26px 0 6px; }
.estart-av { width: 52px; height: 52px; border-radius: 18px; background: var(--brand-weak); display: grid; place-items: center; }
.estart-av svg { width: 30px; height: 30px; }
.estart-hero h1 { font-size: 28px; line-height: 36px; }
.estart-hero p { max-width: 640px; color: var(--muted); font-size: 15px; line-height: 24px; }
.estart .composer2 { margin: 0; }
.estart-chips { gap: 8px; }
.chip.small-chip { height: 26px; padding: 0 10px; font-size: 12px; }
.estart-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.estart-step { background: #fff; border: 1px solid var(--line3); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.estart-step .n { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-weak); color: var(--brand-ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.estart-step b { font-size: 14px; color: var(--ink); }
.estart-step p { font-size: 13px; line-height: 20px; color: var(--muted); }

/* the project: progress strip, conversation | draft */
.estrip { flex: none; display: flex; gap: 6px; padding: 10px 22px; border-bottom: 1px solid var(--line2); background: #fff; overflow-x: auto; }
.es { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--soft2); flex: none; }
.es i { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--faint); font-style: normal; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.es b { font-size: 13px; color: var(--muted); font-weight: 600; }
.es small { display: block; font-size: 11px; line-height: 14px; color: var(--faint); max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.es.done { background: var(--brand-weak); } .es.done i { background: var(--brand); border-color: var(--brand); color: #fff; } .es.done b { color: var(--brand-ink); }
.es.now { background: var(--amber-weak); } .es.now i { border-color: var(--amber); color: var(--amber); } .es.now b { color: var(--amber-ink); }
.es.gap i { border-color: var(--bad); color: var(--bad); }
.eproj-body { grid-template-columns: minmax(0, 1fr) minmax(460px, 46%); }
@media (min-width: 761px) and (max-width: 1280px) {  /* a fixed-width right panel left the conversation a sliver on a laptop */
  .proj-body, .eproj-body { grid-template-columns: minmax(0, 1fr) minmax(0, 44%); }
  .proj-body.home { grid-template-columns: minmax(0, 1fr); }
  .proj-body.home > .wb-wrap { display: none; }
}
.msg .bubble .att { margin-top: 6px; font-size: 12px; opacity: .8; }
.acard { margin-left: 36px; margin-top: 8px; width: min(620px, calc(100% - 36px)); background: #fff; border: 1px solid var(--line3); border-radius: 18px; padding: 12px 16px;
  display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 22px; color: var(--ink2); }
.acard .label { font-size: 12px; font-weight: 700; color: var(--brand-ink); display: flex; align-items: center; gap: 6px; }
.acard .label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.acard.warn { border-color: #f3dfb5; background: #fffdf6; } .acard.warn .label { color: var(--amber); } .acard.warn .label::before { background: var(--amber); }
.acard ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.acard .why { border-top: 1px dashed var(--line); padding-top: 6px; font-size: 13px; color: var(--muted); }
.acard .why > span { font-size: 12px; color: var(--faint); }
.scene { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; }
.scene dt { color: var(--faint); font-size: 13px; } .scene dd { margin: 0; }
.flow { font-size: 13px; color: var(--slate); background: var(--soft2); border-radius: 10px; padding: 6px 10px; }
.pick { border: 1px solid var(--line3); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.pick.on { border-color: var(--brand-line); background: var(--brand-weak); }
.pick-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pick-top b { color: var(--ink); } .pick-top small { font-size: 12px; color: var(--faint); }
.pick p { font-size: 13px; color: var(--slate); }
.turn-foot { margin: 8px 0 0 36px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qbox { flex: none; margin: 4px 22px 4px; background: #fffdf6; border: 1px solid #f3dfb5; border-radius: 20px; padding: 10px 14px; display: flex; flex-direction: column; gap: 8px;
  max-height: 34vh; overflow-y: auto; }
.qbox-head { display: flex; align-items: center; gap: 10px; }
.qbox-head b { font-size: 14px; color: var(--amber-ink); } .qbox-head .small { flex: 1; }
.qbox .q { display: flex; align-items: center; gap: 10px; border-top: 1px dashed #f0dcb0; padding-top: 8px; }
.qbox .q > div { flex: 1; min-width: 0; } .qbox .q p { font-size: 14px; color: var(--ink2); } .qbox .q small { font-size: 12px; color: var(--muted); }
.epanel .wb-body { padding-top: 4px; }
.origin:empty { display: none; }
.origin { font-size: 13px; line-height: 20px; color: var(--slate); background: var(--brand-weak); border-radius: 14px; padding: 10px 14px; }
.echecks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.echecks li { display: flex; gap: 8px; font-size: 13px; line-height: 20px; color: var(--ink2); }
.echecks i { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; font-style: normal; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.echecks .ok i { background: var(--brand-weak); color: var(--brand-ink); }
.echecks .warn i { background: var(--amber-weak); color: var(--amber); }
.echecks .block i { background: var(--bad-weak); color: var(--bad); } .echecks .block span { color: var(--bad); }
.estats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.estats > div { background: var(--soft2); border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; }
.estats small { font-size: 12px; color: var(--muted); } .estats b { font-size: 24px; line-height: 30px; color: var(--ink); } .estats span { font-size: 12px; color: var(--faint); }

/* ---------- open entry: switch identity from the top bar ---------- */
.switch { position: relative; flex: none; }
.switch-btn { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 4px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 13px; color: var(--ink); }
.switch-btn:hover { border-color: var(--brand-line); background: var(--brand-weak); }
.switch-btn b { color: var(--brand-ink); font-size: 13px; }
.switch-menu { position: absolute; right: 0; top: 44px; z-index: 40; width: 280px; max-height: 70vh; overflow-y: auto; background: #fff; border: 1px solid var(--line2);
  border-radius: 18px; box-shadow: 0 16px 40px rgba(15, 23, 42, .14); padding: 6px 8px 10px; }
.switch-menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border: 0; background: none; border-radius: 12px; cursor: pointer; text-align: left; }
.switch-menu button:hover { background: var(--soft2); }
.switch-menu button.on { background: var(--brand-weak); }
.switch-menu button span:not(.av) { flex: 1; min-width: 0; }
.switch-menu b { display: block; font-size: 14px; color: var(--ink); }
.switch-menu small { display: block; font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switch-menu em { font-style: normal; font-size: 11px; color: var(--brand-ink); }

/* teacher: one question about the class */
.ask-class .row .input { flex: 1; }
.ask-answer { border-top: 1px solid var(--line2); padding-top: 12px; }
.ask-ev { display: flex; flex-direction: column; gap: 8px; }
.ask-ev > div { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.ask-ev .quote { flex: 1 1 100%; }

/* enterprise: interview follow-ups on a shared work */
.followups { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; }
.followups li { display: flex; flex-direction: column; gap: 4px; }
.followups .quote { font-size: 13px; }

/* ---------- phones: one column; the list is a drawer; side-by-side pages show one side at a time ---------- */
.topbar-menu { display: none; }
.pane-switch { display: none; }
.phone-only { display: none; }
@media (max-width: 760px) {
  .app, .app.folded { grid-template-columns: minmax(0, 1fr); height: 100dvh; }
  .rail { display: none; }
  .side, .app.folded .side { position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); visibility: visible; padding: 16px 12px 0;
    border-right: 1px solid var(--line2); transform: translateX(-102%); transition: transform .2s ease; }
  .app.drawer .side { transform: none; box-shadow: 0 0 40px rgba(15, 23, 42, .18); }
  .drawer-shade { position: fixed; inset: 0; z-index: 55; background: rgba(15, 23, 42, .28); }
  .topbar { padding: 0 10px; gap: 8px; }
  .topbar-menu { display: grid; place-items: center; width: 36px; height: 36px; border: 0; background: none; color: var(--slate); flex: none; cursor: pointer; }
  .topbar-menu svg { width: 22px; height: 22px; }
  .topbar .av.s36 { display: none; }
  .topbar .btn { padding: 0 12px; }
  .topbar .switch-btn b, .topbar .switch-btn span:not(.av) { display: none; }
  .page { padding: 16px 16px 40px; gap: 14px; }
  .page-head { flex-wrap: wrap; align-items: flex-start; }
  .split, .estart-flow { grid-template-columns: minmax(0, 1fr); }
  .estats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .estart-hero h1 { font-size: 22px; line-height: 30px; }
  .pane-switch { display: flex; flex: none; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--line2); background: #fff; }
  .pane-switch button { flex: 1; height: 34px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 14px; cursor: pointer; }
  .pane-switch button.on { background: var(--brand-weak); color: var(--brand-ink); font-weight: 700; }
  .proj-body, .eproj-body { grid-template-columns: minmax(0, 1fr); }
  .proj-body.show-chat > .wb-wrap, .proj-body.show-work > .chat-col, .proj-body.show-doc > .chat-col { display: none; }
  .wb-wrap { border-left: 0; }
  .thread { padding: 14px 12px 8px; }
  .msg .bubble, .task-card, .acard { margin-left: 0; max-width: 100%; }
  .acard { width: 100%; }
  .composer2 { margin: 6px 10px; padding: 10px 10px 8px 14px; border-radius: 22px; min-height: 0; }
  .qbox { margin: 4px 10px; }
  .estrip { padding: 8px 10px; }
  .list-item { padding: 12px 14px; flex-wrap: wrap; }
  .modal { width: calc(100vw - 24px) !important; }
  .phone-only { display: block; }
  .proj-body.home > .wb-wrap { display: none; }  /* on a phone the home chat already says what the panel says */
  .grid2, .grid3, .picker { grid-template-columns: minmax(0, 1fr); }
  .bar-row { grid-template-columns: minmax(0, 1fr) 44px; gap: 6px 10px; }
  .bar-row > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .weak-row { grid-template-columns: minmax(0, 1fr) 72px 32px; }
  .legend { flex-wrap: wrap; gap: 6px 10px; }
  .card-head { flex-wrap: wrap; padding: 14px 16px; }
  .card-pad { padding: 16px; }
  .row:has(> h3), .row:has(> h2) { flex-wrap: wrap; }
  .row > h3, .row > h2 { flex: 1 1 100% !important; }
  .ask-class .row:not(.wrap) { flex-wrap: wrap; }
  .ask-class .row .input { flex: 1 1 100%; }
  .list-item .main { flex: 1 1 55%; }
  .phone-only.card { padding: 4px 0; }
}

/* the check before handing in, and why an enterprise task is recommended */
.check-item { border-top: 1px solid var(--line2); padding-top: 8px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.check-item .head { display: flex; gap: 8px; align-items: center; justify-content: space-between; width: 100%; }
.check-item p { margin: 0; }
.list-item.offer { align-items: flex-start; }
.list-item.offer .main { gap: 3px; }
.list-item.offer .why { color: var(--brand-ink); }
.list-item.offer .why::before { content: '· '; }

/* a live enterprise task: what changed reaches the student, and whether a change reached students */
.update-bar { display: flex; align-items: center; gap: 10px; padding: 10px 20px; background: var(--amber-weak); border-bottom: 1px solid var(--line2); }
.update-bar .grow { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.up-bar { background: var(--brand-weak); }
.up-bar.themes { align-items: flex-start; }
.up-theme { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line2); }
.up-theme .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
@media (max-width: 760px) { .up-theme { flex-wrap: wrap; } }
.sync.ok { color: var(--brand-ink); margin: 0; }
@media (max-width: 760px) { .update-bar { flex-wrap: wrap; padding: 10px 14px; } }

/* a zone of enterprise topics, taken as they were set */
.zone-rules { margin: 0; padding-left: 18px; color: var(--muted); }
.zone-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.zone-topic .card-head h3 { font-size: 15px; }
@media (max-width: 760px) { .zone-grid { grid-template-columns: minmax(0, 1fr); } }
.team-row { display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 6px; align-items: center; }
.team-row .input { padding-left: 10px; padding-right: 8px; min-width: 0; }
.team-x { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--soft2); color: var(--muted); cursor: pointer; font-size: 16px; }

/* a course station as the course built it (10-13): its page fills the main area under a thin bar */
.station-proj { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.station-bar { display: flex; align-items: center; gap: 10px; padding: 6px 16px; border-bottom: 1px solid var(--line2); background: var(--panel); }
.station-proj .qy-embed { flex: 1; min-height: 0; }

/* ---------- 「一眼看懂」看板（10-16：题目要像看板一样，信息画出来） ---------- */
.board { display: flex; flex-direction: column; gap: 10px; }
.bd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.bd-card { border: 1px solid var(--line3); border-radius: 14px; padding: 14px 16px; background: #fff; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bd-card.wide { grid-column: 1 / -1; }
.bd-title { font-size: 13px; font-weight: 700; color: var(--ink); }
.bd-note { font-size: 12px; color: var(--faint); }
.bd-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.bd-kpi { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--soft2); border-left: 4px solid var(--c); }
.bd-kpi-label { font-size: 12px; color: var(--muted); }
.bd-kpi-value { font-size: 24px; line-height: 30px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.bd-kpi-value small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 3px; }
.bd-kpi-note { font-size: 12px; color: var(--faint); }
.bd-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
.bd-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.bd-bars { display: flex; flex-direction: column; gap: 5px; }
.bd-bar-row { display: grid; grid-template-columns: minmax(64px, 30%) 1fr auto; align-items: center; gap: 8px; font-size: 12px; }
.bd-bar-name { color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-bar-track { display: flex; flex-direction: column; gap: 2px; }
.bd-bar { display: block; height: 9px; border-radius: 5px; }
.bd-bar-val { color: var(--ink2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bd-svg { width: 100%; height: auto; display: block; }
.bd-svg .bd-grid { stroke: var(--line); stroke-width: 1; }
.bd-svg .bd-axis { fill: var(--faint); font-size: 11px; }
.bd-time { list-style: none; margin: 0; padding: 0 0 0 2px; display: flex; flex-direction: column; gap: 0; }
.bd-time li { display: grid; grid-template-columns: 132px 14px 1fr; align-items: start; gap: 8px; font-size: 13px; padding: 5px 0; border-left: 0; position: relative; }
.bd-time-at { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; font-size: 12px; padding-top: 1px; }
.bd-time-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); }
.bd-time-text { color: var(--ink2); }
.bd-chip { display: inline-block; font-size: 11px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); border-radius: 9px; padding: 0 8px; margin-right: 6px; line-height: 18px; }
.bd-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.bd-quote { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--soft2); }
.bd-who { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink); }
.bd-who i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #fff; font-style: normal; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.bd-quote p { font-size: 13px; line-height: 1.6; color: var(--ink2); }
.bd-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bd-step { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--brand-weak); color: var(--ink); font-size: 13px; }
.bd-step b { width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.bd-arrow { color: var(--faint); }
.bd-matrix-wrap { max-height: 360px; }
.bd-matrix { border-collapse: separate; border-spacing: 3px; font-size: 12px; width: 100%; }
.bd-matrix th { font-weight: 700; color: var(--muted); text-align: left; padding: 2px 6px; white-space: nowrap; }
.bd-cell { text-align: center; border-radius: 6px; padding: 4px 6px; white-space: nowrap; }
.bd-cell.yes { background: #ddfbf8; color: #16655d; } .bd-cell.no { background: #fee2e2; color: #991b1b; }
.bd-cell.mid { background: #e0e7ff; color: #3730a3; } .bd-cell.none { background: var(--soft); color: var(--faint); }
@media (max-width: 640px) { .bd-time li { grid-template-columns: 92px 14px 1fr; } .bd-grid { grid-template-columns: 1fr; } }

/* ---------- 新手引导（10-16）：欢迎指南、做题页带看、首页清单、头三道题、题库新手说明 ---------- */
.guide-link { width: 100%; border: 0; background: none; text-align: left; color: var(--brand-ink); }
.field > small { font-size: 12px; line-height: 1.5; }
.ns-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.gd-overlay { z-index: 70; }
.modal.gd { width: min(820px, 100%); }
.gd .modal-body { padding: 22px 26px; }
.gd-page { display: flex; flex-direction: column; gap: 14px; }
.gd-page h2 { font-size: 20px; }
.gd-hero { display: flex; gap: 14px; align-items: center; }
.gd-hero .logo { width: 52px; height: 52px; border-radius: 16px; background: var(--brand-weak); display: grid; place-items: center; flex: none; }
.gd-hero .logo svg { width: 34px; height: 34px; }
.gd-hero p { color: var(--muted); margin-top: 4px; }
.gd-four { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gd-four > div { border: 1px solid var(--line3); border-radius: 16px; padding: 14px 16px; display: grid; grid-template-columns: 36px 1fr; gap: 2px 12px; }
.gd-four .ic { grid-row: span 2; width: 36px; height: 36px; border-radius: 12px; background: var(--brand-weak); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; }
.gd-four b { color: var(--ink); } .gd-four p { font-size: 13px; color: var(--slate); }
.gd-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.gd-steps { margin: 0; padding: 0; counter-reset: gd; display: flex; flex-direction: column; gap: 12px; }
.gd-steps li { list-style: none; counter-increment: gd; position: relative; padding-left: 40px; }
.gd-steps li::before { content: counter(gd); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.gd-steps b { color: var(--ink); } .gd-steps p { font-size: 13px; color: var(--slate); margin-top: 2px; }
.gd-n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #f59e0b; color: #fff; font-size: 12px; font-weight: 700; flex: none; }
.gd-wire { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 11px; color: var(--slate); background: #fff; box-shadow: 0 6px 20px rgba(15, 23, 42, .06); }
.gd-wire-top { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line2); }
.gd-wire-top span { flex: 1; font-weight: 700; color: var(--ink); }
.gd-wire-top i { font-style: normal; background: var(--brand); color: #fff; border-radius: 999px; padding: 2px 10px; }
.gd-wire-body { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 210px; }
.gd-wire-chat { background: var(--wall); padding: 8px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.gd-wire-chat .t { font-weight: 700; color: var(--ink); padding-left: 24px; }
.gd-wire-chat > .gd-n, .gd-wire-work .gd-n { position: absolute; }
.gd-wire-chat > .gd-n { left: 8px; top: 8px; }
.gd-wire-chat .bub { background: #fff; border-radius: 4px 10px 10px 10px; padding: 4px 8px; align-self: flex-start; max-width: 92%; }
.gd-wire-chat .bub.me { background: var(--ink); color: #fff; align-self: flex-end; border-radius: 10px 4px 10px 10px; }
.gd-wire-chat .box { margin-top: auto; border: 1px solid var(--brand-line); background: #fff; border-radius: 999px; padding: 4px 10px; color: var(--faint); }
.gd-wire-work { padding: 8px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--line2); }
.gd-wire-work .step { position: relative; background: var(--brand-weak); border-radius: 10px; padding: 6px 8px 6px 30px; font-weight: 700; color: var(--brand-ink); }
.gd-wire-work .step .gd-n { left: 6px; top: 6px; }
.gd-wire-work .step small { display: block; font-weight: 400; color: var(--slate); }
.gd-wire-work .tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.gd-wire-work .tabs span { padding: 1px 6px; border-radius: 6px; background: var(--soft2); }
.gd-wire-work .tabs span.on { background: var(--ink); color: #fff; }
.gd-wire-work .ed { position: relative; flex: 1; border: 1px dashed var(--line); border-radius: 10px; padding: 8px 8px 8px 30px; color: var(--faint); min-height: 70px; }
.gd-wire-work .ed .gd-n { left: 6px; top: 7px; }
.gd-wire-top .gd-n { margin-left: auto; }
.gd-can { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gd-can > div { border-radius: 16px; padding: 14px 16px; }
.gd-can .yes { background: var(--brand-weak); } .gd-can .no { background: var(--amber-weak); }
.gd-can b { color: var(--ink); }
.gd-can ul { margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.gd-can li { list-style: none; font-size: 13px; padding-left: 20px; position: relative; color: var(--slate); }
.gd-can .yes li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-ink); font-weight: 700; }
.gd-can .no li::before { content: "✕"; position: absolute; left: 0; color: var(--amber); font-weight: 700; }
.gd-say { display: flex; flex-wrap: wrap; gap: 8px; }
.gd-say span { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; background: #fff; }
.gd-who { width: 100%; border-collapse: collapse; font-size: 13px; }
.gd-who th, .gd-who td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line2); }
.gd-who th { color: var(--muted); font-weight: 400; font-size: 12px; }
.gd-who td:first-child { width: 150px; } .gd-who td small { display: block; color: var(--faint); font-size: 12px; }
.gd-who td:nth-child(2) { background: var(--brand-weak); } .gd-who td:nth-child(3) { background: var(--soft2); }
.gd-dots { display: flex; gap: 6px; }
.gd-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--line); padding: 0; cursor: pointer; }
.gd-dots button.past { background: var(--brand-line); } .gd-dots button.on { background: var(--brand); width: 22px; border-radius: 5px; }
.gd-pick { border: 1px solid var(--line3); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.gd-pick-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gd-pick-meta .tag { margin-top: 0; }
.gd-pick-title { color: var(--ink); font-size: 15px; }
.gd-pick .why { color: var(--brand-ink); }
.gd-pick .row { margin-top: auto; padding-top: 4px; }
.gd-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.gd-picks-card .gd-picks { padding: 14px 16px 16px; }
.gd-picks-card .gd-pick { background: var(--soft2); border-color: transparent; }
.tour { position: fixed; inset: 0; z-index: 65; }
.tour-hole { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(15, 23, 42, .55); outline: 3px solid #f59e0b; transition: all .2s ease; pointer-events: none; }
.tour-shade { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); }
.tour-bubble { position: fixed; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 16px 40px rgba(15, 23, 42, .25); display: flex; flex-direction: column; gap: 6px; }
.tour-bubble b { font-size: 15px; color: var(--ink); } .tour-bubble p { font-size: 13px; color: var(--slate); }
.cl .card-head { border-bottom: 0; padding-bottom: 8px; }
.cl-bar { margin: 0 22px; height: 6px; border-radius: 3px; background: var(--line2); overflow: hidden; }
.cl-bar i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.cl-list { padding: 8px 12px 12px; display: flex; flex-direction: column; }
.cl-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; }
.cl-row.cur { background: var(--amber-weak); }
.cl-mark { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--faint); flex: none; }
.cl-row.done .cl-mark { background: var(--brand); border-color: var(--brand); color: #fff; }
.cl-row.cur .cl-mark { border-color: #f59e0b; color: var(--amber); }
.cl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cl-main b { color: var(--ink); font-size: 14px; } .cl-row.done .cl-main b { color: var(--faint); text-decoration: line-through; font-weight: 400; }
.cl-main .tag { margin-top: 0; vertical-align: 1px; }
.cl-main .small { color: var(--slate); }
.lib-intro { margin-bottom: 14px; }
.lib-intro h4 { margin-bottom: 8px; }
.lib-intro-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px; background: var(--brand-weak); margin-bottom: 12px; }
.lib-intro-bar .small { flex: 1; color: var(--brand-ink); }
.lib-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lib-how > div { background: var(--soft2); border-radius: 14px; padding: 12px 14px; display: grid; grid-template-columns: 24px 1fr; gap: 2px 8px; align-items: start; }
.lib-how .gd-n { grid-row: span 2; width: 22px; height: 22px; }
.lib-how b { color: var(--ink); font-size: 13px; } .lib-how small { color: var(--muted); font-size: 12px; }
.lib-explain { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.lib-sets { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lib-sets li { list-style: none; border-bottom: 1px solid var(--line2); padding-bottom: 8px; }
.lib-sets li b { color: var(--ink); margin-right: 8px; } .lib-sets li p { color: var(--slate); }
.lib-levels { display: grid; grid-template-columns: 1fr; gap: 8px; }
.lib-levels > div { border: 1px solid var(--line3); border-radius: 14px; padding: 10px 12px; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: baseline; }
.lib-levels > div p { grid-column: 1 / -1; }
.lib-levels b { color: var(--ink); } .lib-levels p { color: var(--slate); }
.lib-friendly { gap: 6px; color: var(--slate); cursor: pointer; }
.before-start h4 { margin-bottom: 6px; }
.before-start ul { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.before-start li { list-style: none; font-size: 13px; color: var(--slate); }
.before-start li b { color: var(--ink); }
.fb-how { display: flex; flex-direction: column; gap: 4px; }
.fb-how b { color: var(--ink); } .fb-how .badge { height: 20px; padding: 0 8px; }
.facet-help table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 8px; }
.facet-help td { padding: 5px 8px; border-bottom: 1px solid var(--line2); vertical-align: top; color: var(--slate); }
.facet-help td:first-child { width: 88px; white-space: nowrap; }
.facet-help td b { color: var(--ink); }
.facet-help p { margin-top: 4px; }
.rep-howto summary { cursor: pointer; display: flex; gap: 10px; align-items: baseline; }
.tour-again { white-space: nowrap; }
@media (max-width: 760px) {
  .ns-grid, .gd-four, .gd-split, .gd-can, .lib-how, .lib-explain, .lib-levels { grid-template-columns: 1fr; }
  .gd .modal-body { padding: 16px; }
  .gd-who td:first-child { width: 96px; }
  .tour-again { display: none; }
}
.row > .grow, .modal-head > .grow, .card-head > .grow { flex: 1; }
.gd .modal-head h2, .cl .card-head h3, .lib-intro .card-head h3 { flex: none; }

/* ---------- FDE 业务流程图（10-17，按本体：对象、角色、现状流程） ---------- */
.bf { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line3); border-radius: 16px; padding: 14px 16px; background: #fff; margin: 4px 0 8px; }
.bf h4 { margin: 0; }
.bf-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 6px; }
.bf-objects { display: flex; flex-wrap: wrap; gap: 10px; }
.bf-obj { border: 1.5px solid #c7d2fe; background: #f5f7ff; border-radius: 12px; padding: 8px 10px; min-width: 130px; max-width: 240px; display: flex; flex-direction: column; gap: 5px; }
.bf-obj b { color: #3730a3; font-size: 14px; }
.bf-props { display: flex; flex-wrap: wrap; gap: 4px; }
.bf-props span { font-size: 11px; background: #fff; border: 1px solid #e0e7ff; border-radius: 6px; padding: 0 6px; color: var(--slate); }
.bf-states { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; font-size: 11px; color: #4338ca; }
.bf-states span { background: #e0e7ff; border-radius: 999px; padding: 0 7px; }
.bf-states i { font-style: normal; color: var(--faint); }
.bf-links { display: flex; flex-wrap: wrap; gap: 8px; }
.bf-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.bf-link b { color: #3730a3; }
.bf-link em { font-style: normal; color: var(--muted); border-bottom: 1.5px solid #a5b4fc; padding: 0 4px; position: relative; }
.bf-link em::after { content: "→"; margin-left: 4px; color: #6366f1; }
.bf-actors { display: flex; flex-wrap: wrap; gap: 6px; }
.bf-actor, .bf-lane-name { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink2); }
.bf-actor { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px 2px 3px; }
.bf-actor i, .bf-lane-name i { font-style: normal; font-size: 10px; font-weight: 700; color: #fff; border-radius: 999px; padding: 0 6px; line-height: 18px; background: #64748b; }
.k-p i { background: #13998c; } .k-d i { background: #2563eb; } .k-s i { background: #64748b; } .k-a i { background: #9333ea; }
.bf-lanes-wrap { overflow-x: auto; border: 1px solid var(--line2); border-radius: 12px; }
.bf-lanes { position: relative; }
.bf-lane { position: absolute; left: 0; right: 0; border-bottom: 1px dashed var(--line); }
.bf-lane:nth-child(odd) { background: var(--soft2); }
.bf-lane-name { position: absolute; left: 8px; top: 8px; width: 82px; flex-wrap: wrap; font-weight: 700; line-height: 1.3; }
.bf-svg { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.bf-arrow { fill: none; stroke: #94a3b8; stroke-width: 1.6; }
.bf-arrow.alt { stroke-dasharray: 4 3; }
.bf-svg marker path { fill: #94a3b8; }
.bf-step { position: absolute; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; border: 1.5px solid var(--brand-line); background: #fff; border-radius: 10px; padding: 5px 8px; cursor: pointer; overflow: hidden; font: inherit; }
.bf-step:hover, .bf-step.on { border-color: var(--brand); box-shadow: 0 2px 10px rgba(0, 201, 81, .18); }
.bf-step b { font-size: 12.5px; color: var(--ink); line-height: 1.35; }
.bf-step b em { font-style: normal; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 10px; margin-right: 4px; vertical-align: 1px; }
.bf-step small { font-size: 11px; color: #4338ca; line-height: 1.3; }
.bf-sys { font-size: 10px; color: var(--slate); background: var(--line2); border-radius: 5px; padding: 0 5px; }
.bf-cond { font-size: 10px; color: var(--amber); }
.bf-quote b { color: var(--ink); }
.bf-head { display: flex; align-items: center; gap: 10px; }
.bf-head h4 { flex: 1; }
.bf.big { border: 0; padding: 0; margin: 0; }
.bf-cond { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-step small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 10-17 a zone topic: which hand-in this is, what the operators are confirming, the questions to them */
.stage-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.note.pending ul { margin: 6px 0 4px; padding-left: 18px; }
.qa { border-top: 1px solid var(--line2); padding-top: 8px; display: grid; gap: 6px; }
.qa p { margin: 2px 0 0; white-space: pre-wrap; }
.qa .a { background: var(--soft, #f3f6f9); border-radius: 8px; padding: 8px 10px; }
.zone-desk .topic-row .main { gap: 2px; }
.zone-desk .q-reply { display: grid; gap: 6px; margin-top: 6px; }

/* ---------- 10-19 三端走查后改的学生端：图标栏带字、首页只留下一步、做题页三栏、表格能拿出去算 ---------- */
.rail-t { font-size: 11px; line-height: 14px; font-weight: 600; white-space: nowrap; }
.rail-btn:has(.rail-t) { width: 58px; height: auto; padding: 7px 0 5px; gap: 3px; }
.rail-btn:has(.rail-t) svg { width: 20px; height: 20px; }
.side-nav { display: none; }
.back-home { flex: none; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--soft); color: var(--slate); font-size: 13px; cursor: pointer; white-space: nowrap; }
.back-home:hover { background: var(--brand-weak); color: var(--brand-ink); }
.station-bar .back-home { height: 26px; font-size: 12px; }

.home2 { max-width: 1000px; }
.next-card { border: 2px solid var(--brand); border-radius: 18px; padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.next-card h2 { font-size: 20px; line-height: 28px; }
.next-card p { line-height: 1.7; color: var(--ink2); }
.home-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 18px; }
.home-cards .card-pad { display: flex; flex-direction: column; gap: 8px; }
.home-cards .card-pad p { flex: 1; line-height: 1.6; }

.sp-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 47fr) minmax(0, 53fr) 340px; grid-template-rows: minmax(0, 1fr); }
.sp-body.tutor-off { grid-template-columns: minmax(0, 47fr) minmax(0, 53fr) 46px; }
.sp-doc, .sp-work, .sp-tutor { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.sp-doc { background: #fff; border-right: 1px solid var(--line2); }
.sp-doc-body { flex: 1; min-height: 0; overflow: auto; padding: 4px 16px 18px; }
.sp-work { background: #fff; }
.sp-work-body { flex: 1; min-height: 0; overflow: auto; padding: 14px 18px; }
.sp-col-head { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line2); min-height: 50px; }
.sp-seg button { padding: 4px 12px; }
.new-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; margin-left: 5px; vertical-align: middle; }
.sp-tutor { border-left: 1px solid var(--line2); background-color: var(--wall); }
.sp-tutor .sp-col-head { background: #fff; }
.sp-tutor .thread { padding: 14px 14px 8px; gap: 14px; }
.sp-tutor .msg .bubble { margin-left: 0; max-width: 100%; font-size: 14px; white-space: pre-line; }
.sp-tutor .msg .time { margin-left: 4px; }
.sp-tutor .starters { margin-left: 0; gap: 6px; }
.sp-tutor .composer2 { margin: 6px 10px 10px; padding: 10px 10px 8px 14px; border-radius: 20px; }
.sp-tutor .composer2 textarea { min-height: 40px; font-size: 14px; }
.sp-tutor.folded { align-items: center; padding-top: 12px; background: #fff; }
.sp-tutor-open { writing-mode: vertical-rl; letter-spacing: 2px; border: 0; border-radius: 12px; background: var(--brand-weak); color: var(--brand-ink); font-size: 13px; font-weight: 700; padding: 14px 8px; cursor: pointer; }
.sproj .wb-step { margin: 14px 16px 0; }
.wb-step-hint { font-size: 12px; line-height: 18px; color: var(--slate); background: rgba(255, 255, 255, .75); border-radius: 10px; padding: 6px 10px; }
.sproj .wb-foot { line-height: 18px; }

.tbox { border: 1px solid var(--line3); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.tbox-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tbox-head .grow { min-width: 140px; }
.tbox-head .grow b { display: block; font-size: 14px; }
.tbox-msg { color: var(--brand-ink); }
.tbox-table .table-wrap { max-height: 360px; }
.tbox-big .table-wrap { max-height: 70vh; }
.gd-wire-body.three { grid-template-columns: 1.1fr 1fr .9fr; }
.rep-me { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.rep-me .card-pad .row { gap: 10px; }
.rep-empty { display: flex; flex-direction: column; gap: 10px; }
.rep-empty ul { padding-left: 20px; line-height: 1.8; }

@media (min-width: 761px) and (max-width: 1180px) {
  .sp-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 300px; }
  .sp-body.tutor-off { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 46px; }
}
@media (max-width: 760px) {
  .side-nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
  .sp-body, .sp-body.tutor-off { grid-template-columns: minmax(0, 1fr); }
  .sp-body.show-doc > .sp-work, .sp-body.show-doc > .sp-tutor,
  .sp-body.show-work > .sp-doc, .sp-body.show-work > .sp-tutor,
  .sp-body.show-chat > .sp-doc, .sp-body.show-chat > .sp-work { display: none; }
  .sp-doc, .sp-tutor { border: 0; }
  .sp-tutor .sp-col-head .btn { display: none; }
  .next-card { padding: 16px; }
  .rail-btn:has(.rail-t) { width: 44px; }
}
/* a table in the task page's left column: tight cells, column names may wrap, so most tables fit without scrolling sideways */
.tbox-table table.data { font-size: 12px; }
.tbox-table table.data th, .tbox-table table.data td { padding: 5px 6px; }
.tbox-table table.data th { white-space: normal; min-width: 3.2em; line-height: 16px; vertical-align: bottom; }
.tbox-table table.data th .faint { display: block; font-weight: 400; }
.lib-intro-bar .btn { flex: none; }
@media (max-width: 760px) {
  .sproj .topbar .step-pill { display: none; }
  .sproj .back-home { padding: 0 10px; }
  .sproj .back-home span { display: none; }
}

/* ---------- 10-19 三端一批：企业首页等你确认的作品、课题运营「要你处理的」、作品页意见的标题 ---------- */
.ewait { border: 2px solid var(--brand); margin-bottom: 18px; }
.ewait .grow { display: flex; flex-direction: column; gap: 2px; }
.ewait b { font-size: 16px; }
.todo { border: 2px solid var(--brand); }
.todo-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.todo-nums > * { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 12px; background: var(--soft2); color: inherit; text-decoration: none; }
.todo-nums a:hover { background: var(--brand-weak); }
.todo-nums b { font-size: 26px; line-height: 32px; color: var(--ink); }
.todo-nums span span, .todo-nums a span { font-size: 13px; color: var(--muted); }
.todo-topics { gap: 6px; }
.chip.on { border-color: var(--brand); background: var(--brand-weak); color: var(--brand-ink); font-weight: 700; }
.rv-head { font-size: 15px; margin-top: 4px; }
.lv-row { display: flex; gap: 4px; margin-top: 4px; }
.lv-btn { height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 12px; color: var(--slate); cursor: pointer; }
.lv-btn:hover { border-color: var(--brand-line); color: var(--brand-ink); }
.lv-btn.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.lv-btn.doing:not(.on) { border-color: #f5c46b; }

/* ---------- 10-19 三端换成对话软件的样子：左边一列对话、中间一条对话、做出来的东西在右边 ---------- */
.cs { height: 100vh; display: grid; grid-template-columns: 300px minmax(0, 1fr); background: #fff; }
.cs.slim { grid-template-columns: 72px minmax(0, 1fr); }
.cs-list { min-height: 0; min-width: 0; display: flex; flex-direction: column; background: #f4f6f9; border-right: 1px solid #e7ecf1; }
.cs-top { display: flex; align-items: center; gap: 10px; padding: 18px 18px 12px; color: inherit; }
.cs-top:hover { text-decoration: none; }
.cs-logo { width: 34px; height: 34px; border-radius: 11px; background: var(--brand-weak); display: grid; place-items: center; flex: none; }
.cs-logo svg { width: 24px; height: 24px; }
.cs-brand { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cs-brand b { font-size: 16px; line-height: 20px; color: var(--ink); }
.cs-brand small { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-off { flex: none; font-size: 11px; color: var(--amber); background: var(--amber-weak); border-radius: 999px; padding: 1px 8px; }
.cs-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 8px 12px; scrollbar-width: none; }
.cs-scroll::-webkit-scrollbar { width: 0; }
.cs-group { font-size: 11.5px; color: var(--faint); padding: 12px 12px 4px; }
.cs-row { display: flex; gap: 11px; align-items: center; padding: 9px 10px; border-radius: 12px; cursor: pointer; color: inherit; }
.cs-row:hover { background: #ebeff4; text-decoration: none; }
.cs-row.on { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.cs-av { position: relative; flex: none; display: grid; }
.cs-dot { position: absolute; right: -1px; top: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--bad); border: 2px solid #f4f6f9; }
.cs-row.on .cs-dot { border-color: #fff; }
.cs-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cs-row-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.cs-row-top b { font-size: 14px; line-height: 20px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-row-top time { flex: none; font-size: 11px; color: var(--faint); }
.cs-row-sub { font-size: 12.5px; line-height: 18px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-mark { border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; flex: none; background: var(--brand); }
.cs-mark.brand { background: var(--brand); }
.cs-mark.ink { background: #4b4f63; }
.cs-mark svg { width: 70%; height: 70%; }
.cs-mark:has(svg) { background: var(--brand-weak); }
.cs-tabs { display: flex; border-top: 1px solid #e7ecf1; padding: 6px 10px 10px; gap: 4px; }
.cs-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 2px; border-radius: 10px; color: var(--faint); font-size: 11.5px; }
.cs-tab:hover { background: #ebeff4; text-decoration: none; }
.cs-tab svg { width: 21px; height: 21px; }
.cs-tab.on { color: var(--brand-ink); }
.cs.slim .cs-top { justify-content: center; padding: 18px 0 12px; }
.cs.slim .cs-brand, .cs.slim .cs-off, .cs.slim .cs-group, .cs.slim .cs-row-main { display: none; }
.cs.slim .cs-row { justify-content: center; padding: 8px 0; }
.cs.slim .cs-scroll { padding: 2px 6px 12px; }
.cs.slim .cs-tabs { flex-direction: column; padding: 6px; }
.cs.slim .cs-tab span { display: none; }
.av.s48 { width: 48px; height: 48px; font-size: 18px; }

/* the conversation */
.ct-page { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #fff; }
.ct-head { height: 60px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 24px; border-bottom: 1px solid #e7ecf1; }
.ct-head > div { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.ct-head b { font-size: 16px; color: var(--ink); white-space: nowrap; }
.ct-head span { font-size: 12.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-thread { flex: 1; min-height: 0; overflow-y: auto; }
.ct-col { max-width: 760px; margin: 0 auto; padding: 20px 24px 8px; }
.ct-col.wide { max-width: 880px; }
.ct-foot { flex: none; }
.ct-foot .ct-col { padding-top: 6px; padding-bottom: 16px; }
.ct-turn { display: flex; gap: 10px; margin-bottom: 16px; align-items: flex-start; }
.ct-av { flex: none; }
.ct-body { flex: 1; min-width: 0; max-width: 660px; display: flex; flex-direction: column; align-items: flex-start; }
.ct-who { font-size: 12px; color: var(--faint); margin-bottom: 4px; }
.ct-bubble { background: #f2f4f7; border-radius: 4px 16px 16px 16px; padding: 10px 14px; color: var(--ink2); white-space: pre-wrap; max-width: 100%; }
.ct-turn.mine { justify-content: flex-end; }
.ct-turn.mine .ct-body { flex: none; max-width: min(520px, 85%); background: var(--ink); color: #fff; border-radius: 16px 4px 16px 16px; padding: 10px 14px; white-space: pre-wrap; align-items: stretch; }
.ct-turn.mine .ct-time { color: rgba(255, 255, 255, .55); }
.ct-time { font-size: 11px; color: var(--faint); margin-top: 4px; }
.ct-card { align-self: stretch; margin-top: 8px; border: 1px solid #e7ecf1; border-radius: 14px; padding: 12px 16px; background: #fff; display: flex; flex-direction: column; gap: 4px; }
.ct-card p { margin: 0; }
.ct-kicker { font-size: 12px; color: var(--faint); }
.ct-title { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 22px; }
.ct-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.ct-card.step { border-color: #bfece8; background: #fbfefe; }
.ct-card.step .ct-kicker { color: var(--brand-ink); font-weight: 700; }
.ct-card.warn { border-color: #f3dfb1; background: #fffcf4; }
.ct-day { text-align: center; font-size: 11.5px; color: var(--faint); margin: 4px 0 14px; }
.ct-say { border: 1px solid #dee5ed; border-radius: 16px; padding: 10px 12px 8px 16px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .04); }
.ct-say:focus-within { border-color: var(--brand-line); }
.ct-say textarea { width: 100%; border: 0; outline: none; resize: none; font-size: 15px; line-height: 24px; min-height: 24px; max-height: 160px; background: transparent; padding: 2px 0; }
.ct-say.off textarea::placeholder { color: var(--amber); }
.ct-say-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.ct-chip { border: 1px solid #dee5ed; background: #fff; border-radius: 999px; padding: 3px 12px; font-size: 12.5px; color: var(--ink2); cursor: pointer; }
.ct-chip:hover { border-color: var(--brand-line); color: var(--brand-ink); }
.ct-chip:disabled { opacity: .5; cursor: default; }
.ct-chips { gap: 8px; margin-top: 8px; }
.ct-send { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.ct-send svg { width: 16px; height: 16px; }
.ct-send:disabled { background: #d2dbe5; cursor: default; }
.ct-note { text-align: center; font-size: 11.5px; color: var(--faint); margin-top: 6px; }
.ct-bars { display: flex; flex-direction: column; gap: 2px; }
.ct-bar { display: grid; grid-template-columns: 76px minmax(0, 1fr) 104px 86px; align-items: center; gap: 10px; font-size: 13px; padding: 3px 0; }
.ct-bar i { display: block; height: 8px; border-radius: 4px; background: #ebeff3; overflow: hidden; }
.ct-bar i b { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.ct-bar em { font-style: normal; color: var(--muted); font-size: 12px; text-align: right; }
.ct-bar small { color: var(--amber); font-size: 12px; text-align: right; }
.ct-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid #f0f3f7; color: inherit; font-size: 13.5px; }
.ct-line:last-child { border-bottom: 0; }
a.ct-line:hover { text-decoration: none; color: var(--brand-ink); }
.chip-s { flex: none; font-size: 12px; padding: 1px 9px; border-radius: 999px; background: var(--brand-weak); color: var(--brand-ink); font-weight: 700; white-space: nowrap; }
.chip-s.am { background: var(--amber-weak); color: var(--amber); }
.ct-who-line b { display: block; color: var(--ink); }
.ct-who-line small { color: var(--faint); font-size: 12px; }
.ct-src { align-self: stretch; margin-top: 6px; font-size: 13px; }
.ct-src summary { cursor: pointer; color: var(--muted); font-size: 12.5px; }
.ct-quote { border-left: 3px solid #dee5ed; padding: 4px 10px; margin: 6px 0; }
.ct-quote span { color: var(--faint); font-size: 12px; margin-left: 6px; }
.ct-quote p { margin: 2px 0 0; color: var(--slate); }
.ct-edit { min-height: 200px; font-size: 14px; line-height: 1.8; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* a task: the conversation with the tutor, and on the right what the task gives you over the work */
.tp { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.tp-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(380px, 42fr) minmax(0, 58fr); }
.tp-talk { min-height: 0; min-width: 0; display: flex; flex-direction: column; border-right: 1px solid #e7ecf1; }
.tp-talk .ct-col { max-width: none; padding-left: 20px; padding-right: 20px; }
.tp-studio { min-height: 0; min-width: 0; display: flex; flex-direction: column; background: #fff; }
.tp-sh { height: 56px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid #e7ecf1; }
.tp-data { flex: none; height: 46%; min-height: 0; display: flex; flex-direction: column; border-bottom: 1px solid #e7ecf1; }
.tp-data.folded { height: auto; }
.tp-data-tabs { flex: none; display: flex; align-items: center; gap: 4px; padding: 8px 12px 4px; }
.tp-data-body { flex: 1; min-height: 0; overflow: auto; padding: 4px 16px 14px; }
.tp-editor { flex: 1; min-height: 0; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 16px 20px !important; font-size: 15px; line-height: 1.85; resize: none; outline: none; }
.tp-fb { flex: 1; min-height: 0; overflow: auto; padding: 16px; }

/* the enterprise: work handed in arrives in the task's conversation */
.acard.work-in.wait { border-color: #f3dfb1; background: #fffcf4; }
.acard.work-in p { margin: 4px 0 8px; }

/* 「我」 */
.me-page { max-width: 760px; }
.me-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.me-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; padding: 4px 16px 16px; }
.me-person { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #e7ecf1; border-radius: 12px; background: #fff; cursor: pointer; text-align: left; }
.me-person:hover { border-color: var(--brand-line); }
.me-person.on { background: var(--brand-weak); border-color: var(--brand-line); }
.me-person > span:not(.av) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.me-person b { font-size: 13.5px; color: var(--ink); }
.me-person small, .me-person em { font-size: 11.5px; color: var(--faint); font-style: normal; }

/* the teacher's 「数据」: the cockpit without its own sidebar */
.ck.data { grid-template-columns: minmax(0, 1fr); }
.ck.data .ck-main { grid-area: 1 / 1; }
.ck-tabs { display: flex; gap: 4px; }
.ck-tabs a, .ck-tabs button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; color: var(--mute); font-size: 14px; }
.ck-tabs a:hover, .ck-tabs button:hover { background: var(--chip); }
.ck-tabs a.on { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: var(--shadow); }
.ck-demo-note { font-size: 12px; color: var(--faint); }
.ct-say-row .grow, .tp-sh .grow, .tp-data-head .grow, .ct-head .grow, .wb-tabs .grow, .row .grow { flex: 1; min-width: 0; }
.tp-data-head { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 16px 0; }
.tp-data-head b { color: var(--ink); font-size: 13.5px; }
/* the enterprise's task conversation looks like the others: white, bubbles in grey */
.chat-col { background: #fff; background-image: none; }
.chat-col .msg .bubble { background: #f2f4f7; box-shadow: none; border: 0; }
.chat-col .msg.student .bubble { background: var(--ink); }

/* 10-19 用户问「导航栏怎么改到下面去了」，选了放回最左边一条竖栏：竖栏 | 对话列表 | 页面 */
.cs { grid-template-columns: 72px 300px minmax(0, 1fr); }
.cs.slim { grid-template-columns: 72px 72px minmax(0, 1fr); }
.cs-rail { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 0 16px; background: #e8edf2; border-right: 1px solid #dde4ec; min-height: 0; }
.cs-rail .cs-logo { width: 40px; height: 40px; border-radius: 12px; background: #fff; }
.cs-rail .cs-logo:hover { text-decoration: none; }
.cs-rail .cs-tabs { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; padding: 0; }
.cs-rail .cs-tab { flex: none; width: 56px; padding: 8px 0 6px; border-radius: 12px; }
.cs-rail .cs-tab:hover { background: #dce3eb; }
.cs-rail .cs-tab.on { background: #fff; color: var(--brand-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.cs-gap { flex: 1; }
.cs-top { padding: 20px 18px 12px; }
.cs.slim .cs-top { display: none; }
.cs.slim .cs-scroll { padding-top: 16px; }
.cs.slim .cs-rail .cs-tab span { display: inline; }

/* 10-20 交了以后的追问：答题框跟在问题下面，和对话一样宽 */
.askback { display: contents; }  /* its turns line up in the conversation's own column */
.askback-box { display: grid; gap: 6px; margin: 4px 0 8px 44px; }
.askback-box .textarea { min-height: 64px; }

/* 10-20 我页：AI+X 能力模型的体检报告 */
.aixr .aixr-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.aixr .aixr-head .k { font-size: 12px; color: var(--muted); }
.aixr .aixr-head h2 { margin: 2px 0 0; }
.aixr-sum { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 14px 0 10px; }
.aixr-sum > div { background: var(--bg2, #f4f6f9); border-radius: 10px; padding: 8px 12px; display: grid; gap: 2px; }
.aixr-sum span { font-size: 12px; color: var(--muted); }
.aixr-sum b { font-size: 20px; font-weight: 600; }
.aixr-sum .b8 { background: var(--ink); color: #fff; }
.aixr-sum .b8 span { color: rgba(255, 255, 255, .7); }
.aixr-dim { font-size: 13px; font-weight: 600; color: var(--muted); padding: 14px 4px 6px; border-bottom: 1px solid var(--line2, #e9eef3); }
.aixr-row { border-bottom: 1px solid var(--line2, #e9eef3); }
.aixr-row.open { background: #fafbfa; }
.aixr-line { width: 100%; display: grid; grid-template-columns: minmax(0, 1.6fr) 136px 40px 44px minmax(0, 1.6fr) 40px; gap: 10px; align-items: center;
  padding: 8px 4px; background: none; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.aixr-line:hover { background: #f4f6f9; }
.aixr-line .nm { display: flex; align-items: center; gap: 8px; min-width: 0; }
.aixr-line .pts { display: inline-flex; gap: 3px; font-style: normal; }
.aixr-line .pts b { width: 7px; height: 7px; border-radius: 50%; border: 1px solid #afbcca; display: inline-block; }
.aixr-line .pts b.on { background: var(--brand, #149f91); border-color: var(--brand, #149f91); }
.aixr-line .bar { display: flex; gap: 3px; }
.aixr-line .bar i { width: 22px; height: 10px; border-radius: 2px; background: #e2e8ef; box-sizing: border-box; }
.aixr-line .bar i.f { background: var(--ink); }
.aixr-line .bar i.t { outline: 2px solid var(--brand, #149f91); outline-offset: 0; }
.aixr-line .chev { font-size: 12px; color: var(--muted); text-align: right; }
.aixr-st { font-size: 12px; justify-self: start; display: grid; gap: 1px; }
.aixr-st small { color: var(--muted); font-size: 11.5px; }
.aixr-st.ok { color: #108579; } .aixr-st.w1 { color: #b06a00; } .aixr-st.w2 { color: #c2363c; } .aixr-st.pv { color: var(--muted); }
.aixr-detail { padding: 4px 12px 14px 22px; display: grid; gap: 10px; }
.aixr-pt .h { display: flex; gap: 10px; align-items: baseline; }
.aixr-pt ul { margin: 4px 0 0; padding-left: 18px; }
.aixr-next { display: grid; gap: 6px; }
.aixr-next .it { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line2, #e9eef3); border-radius: 10px; padding: 8px 12px; background: #fff; }
.aixr-next .it > div { flex: 1; display: grid; gap: 2px; }
.aixr-next .it small { color: var(--muted); }

/* 10-20 首页：想做哪类工作，十四个方向一排排 */
.ct-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ct-chips .chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* 10-20 交代青云干活：交代的标签、打算的步骤、算好的表、核对、交作品时挑记录 */
.tag-deleg { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 0 6px; margin-right: 6px; background: rgba(255, 255, 255, .18); }
.rec-steps { margin: 4px 0 6px; padding-left: 18px; }
.rec-table { overflow-x: auto; margin: 4px 0; }
.rec-table table { border-collapse: collapse; font-size: 12.5px; width: 100%; }
.rec-table th { text-align: left; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); padding: 3px 8px; white-space: nowrap; }
.rec-table td { border-bottom: 1px solid var(--line2, #e9eef3); padding: 3px 8px; white-space: nowrap; }
.rec-table td.n { text-align: right; font-variant-numeric: tabular-nums; }
.rec-check { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 8px; }
.rec-pick { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; display: grid; gap: 4px; }
.deleg-on { background: #eef7f6; color: #0d6960; margin-bottom: 6px; }

/* 10-20 正式账号：同意、平台怎么用你的信息、账号与隐私 */
.agree { display: grid; gap: 6px; }
.data-use { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; display: grid; gap: 4px; background: #fafbfa; }
.acct { display: grid; gap: 10px; }
.btn.danger-line { color: #c2363c; border-color: #f0c4c6; }

/* 10-20 P1 意见钉在作品原句上 */
.pinned { display: grid; gap: 10px; }
.pin-index { display: flex; flex-wrap: wrap; gap: 6px; }
.pin-chip { font-size: 12px; border-radius: 999px; padding: 2px 10px; border: 1px solid var(--line); cursor: pointer; color: var(--ink); text-decoration: none; }
.pin-chip.met { border-color: #bfe6e2; background: #eef8f7; color: #0d6960; }
.pin-chip.partial { border-color: #f1d9a8; background: #fdf6e7; color: #8a5a00; }
.pin-chip.missing { border-color: #f2c6c8; background: #fdf0f0; color: #a3282d; }
.pin-doc { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: #fff; }
.pin-para > p { margin: 4px 0; line-height: 1.75; white-space: pre-wrap; }
.pin-mark { border-radius: 3px; padding: 0 1px; background: #eef8f7; }
.pin-mark.partial { background: #fdf0d2; }
.pin-mark.missing { background: #fbe0e1; }
.pin-mark sup, .pin-sup { font-size: 10.5px; font-weight: 700; margin-left: 2px; color: var(--muted); }
.pin-note { margin: 4px 0 10px 14px; border-left: 3px solid #cfd9e4; padding: 4px 10px; display: grid; gap: 4px; }
.pin-note.met { border-left-color: #8fd3cc; }
.pin-note.partial { border-left-color: #e8b54d; }
.pin-note.missing { border-left-color: #e0767b; }
.pin-note .head { display: flex; align-items: center; gap: 8px; }
.pin-note p { margin: 0; font-size: 13.5px; }
.pin-n { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; }
.pin-loose { display: grid; gap: 4px; }
.pin-bar { display: flex; gap: 12px; align-items: flex-start; background: #fdf6e7; border: 1px solid #f1d9a8; border-radius: 10px; padding: 8px 12px; margin: 8px 12px 0; }
.pin-bar > div { flex: 1; display: grid; gap: 2px; font-size: 13px; }
.pin-bar p { margin: 0; }

/* 10-21 P1 学生问到、题里没写的事 */
.gap-note { border: 1px dashed #cbd3dc; border-radius: 10px; padding: 8px 12px; font-size: 13.5px; background: #fafcfc; display: grid; gap: 4px; }
.gap-note p { margin: 0; }
.gap-list { display: grid; gap: 12px; }
.gap-item { display: grid; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.gap-item:last-child { border-bottom: 0; padding-bottom: 0; }
.gap-item .head { display: grid; gap: 2px; }
.gap-item .said { border-left: 3px solid #dee5ed; padding-left: 10px; }
.gap-item .said p { margin: 2px 0; }
.gap-item .note { margin: 0; }
.gap-reply { display: grid; gap: 6px; }
.gap-reply .textarea { min-height: 52px; }
.week { display: grid; gap: 10px; }
.week-task p { margin: 2px 0 0; }
.addenda li { margin: 4px 0; }

/* 10-21 P1 企业看作品：原句标号、没把握的排前面、挑进来的 AI 使用记录 */
.paper.marked p { margin: 0 0 6px; line-height: 1.8; white-space: pre-wrap; }
.paper.marked .pin-mark { cursor: pointer; }
.review-item .head .pin-n { flex: none; }
.review-item.doubt { border-color: #f1d9a8; background: #fffbf2; }
.unsure { margin: 0; color: #8a5a00; }
.rec-picked { display: grid; gap: 3px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.rec-picked:last-child { border-bottom: 0; padding-bottom: 0; }
.rec-picked .head { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.rec-picked p { margin: 0; }

/* 10-21 P1 作品集 */
.pf { display: grid; gap: 12px; }
.pf-head { display: grid; gap: 2px; }
.pf-head h3 { margin: 0; }
.pf-switch { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.pf-switch label { gap: 8px; align-items: flex-start; cursor: pointer; }
.pf-switch label.off { opacity: .55; }
.pf-contact { align-items: center !important; padding-left: 24px; }
.pf-contact .input { max-width: 280px; }
.pf-tip { display: flex; gap: 10px; align-items: center; justify-content: space-between; background: #eef8f7; border-radius: 10px; padding: 8px 12px; }
.pf-list { display: grid; gap: 2px; }
.pf-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 4px; border-bottom: 1px solid var(--line2, #ebeff4); cursor: pointer; }
.pf-row.off { opacity: .6; cursor: default; }
.pf-row .main { display: grid; gap: 2px; }
.pf-row a { cursor: pointer; }
.pf-preview { display: grid; gap: 8px; }
.pf-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; background: #fbfcfc; }
.pf-card .head { display: flex; gap: 10px; align-items: baseline; }
.pf-card p { margin: 0; }
.pf-lock { color: #8a5a00; }
.pf-work summary { cursor: pointer; padding: 4px 0; }
.pf-work .paper { margin-top: 6px; max-height: 360px; overflow: auto; }

/* 10-21 P1 主要看 */
.look { font-size: 12.5px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; background: #f6fafa; }
.look b { color: var(--brand, #11897d); margin-right: 2px; }
.bank-row { align-items: flex-start; text-decoration: none; color: inherit; }
.bank-row .main { display: grid; gap: 2px; }

/* ---------- 11-01 老师看的能力图谱：本校学生合起来（#/t/students）、一个学生的完整记录（#/t/record/<学生>） ---------- */
.tg { display: flex; flex-direction: column; gap: 16px; }
.tg-sec { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; }
.tg-sec h3 { margin: 0; }
.tg-dir { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tg-dir b { font-size: 13px; color: var(--muted); min-width: 64px; }
.tg-dim { font-size: 13px; font-weight: 700; color: var(--ink2); margin: 6px 0 0; }
.tg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tg-node { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tg-node b { font-size: 13.5px; color: var(--ink2); line-height: 1.4; }
.tg-node.some { border-color: var(--brand-line); }
.tg-node.up { background: var(--brand-weak); border-color: var(--brand); }
.tg-node.met { background: var(--brand); border-color: var(--brand); }
.tg-node.met b, .tg-node.met .small { color: #fff; }
.tg-node.off { border-style: dashed; background: #fafbfa; }
.tg-star { font-style: normal; color: #f59e0b; margin-right: 4px; }
.tg-bar { position: relative; height: 8px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.tg-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.tg-bar i.lit { background: var(--brand-line); }
.tg-bar i.up { background: var(--brand); }
.tg-legend { display: flex; gap: 14px; }
.tg-legend span { display: inline-flex; align-items: center; gap: 5px; }
.tg-legend i { width: 18px; height: 8px; border-radius: 999px; display: inline-block; }
.tg-legend i.lit { background: var(--brand-line); }
.tg-legend i.up { background: var(--brand); }
.tg-dots { display: inline-flex; gap: 5px; }
.tg-dots i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid #cad2db; background: #fff; }
.tg-dots i.on { background: var(--brand); border-color: var(--brand); }
.tg-node.met .tg-dots i { border-color: #fff; background: #fff; }
.tg-stops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 14px; }
.tg-stops li { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); }
.tg-stops li i { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); font-style: normal; font-size: 12px; display: grid; place-items: center; }
.tg-stops li.done { color: var(--ink2); }
.tg-stops li.done i { background: var(--brand-weak); border-color: var(--brand-line); color: var(--brand-ink); }
.tg-stops li.now { color: var(--ink); font-weight: 700; }
.tg-stops li.now i { background: var(--brand); border-color: var(--brand); color: #fff; }
.tg-works { display: flex; flex-direction: column; gap: 6px; }
.tg-work { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--line2); }
@media (max-width: 760px) {
  .tg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-stops { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 11-01 老师看的「产业用人和高校育人」：公开发布的数，每个数下面一行出处，点开看原文那句话；每块一句「解读」 ---------- */
.ti-sec { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; }
.ti-sec h3 { margin: 0; }
.ti-lead { margin: 0; color: var(--slate); }
.ti-means { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--brand-weak); color: var(--ink2); }
.ti-means em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--brand-ink); margin-right: 8px; }
.ti-note { margin: 0; font-size: 12.5px; color: var(--muted); }
.ti-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.ti-stat { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ti-label { font-size: 13px; color: var(--muted); }
.ti-num { font-size: 26px; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; }
.ti-num small, .ti-line-h b small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 3px; }
.ti-src { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 12px; color: var(--faint); }
.ti-src a { color: var(--brand-ink); }
.ti-kind { font-style: normal; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--amber-weak); color: var(--amber); }
.ti-qbtn { border: 0; background: none; padding: 0; font: inherit; font-size: 12px; color: var(--brand-ink); cursor: pointer; align-self: flex-start; }
.ti-quote { flex-basis: 100%; margin: 4px 0 0; padding: 8px 10px; border-left: 3px solid var(--brand-line); background: var(--soft2); color: var(--ink2); font-size: 13px; border-radius: 0 8px 8px 0; }
.ti-ranks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ti-rank { display: flex; flex-direction: column; min-width: 0; }
.ti-rank h4 { margin: 0 0 2px; font-size: 14px; color: var(--ink); }
.ti-rank-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line2); }
.ti-rank-row div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ti-no { font-weight: 700; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.ti-more { margin-top: 8px; }
.ti-group h4 { font-size: 14px; color: var(--muted); margin: 6px 0 8px; }
.ti-dirs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ti-dir { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ti-dir-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ti-dir-h b { font-size: 15px; color: var(--ink); }
.ti-dir .chip-s.none { background: var(--soft); color: var(--muted); font-weight: 400; }
.ti-part { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; border-top: 1px dashed var(--line); }
.ti-part-k { font-size: 12px; font-weight: 700; color: var(--muted); }
.ti-job { display: flex; flex-direction: column; gap: 2px; }
.ti-def { font-size: 13px; color: var(--slate); }
.ti-tag { font-style: normal; font-size: 11.5px; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--brand-weak); color: var(--brand-ink); }
.ti-tag.new { background: var(--amber-weak); color: var(--amber); }
.ti-line { display: flex; flex-direction: column; gap: 2px; }
.ti-line-h { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.ti-line-h span { color: var(--ink2); min-width: 0; }
.ti-line-h b { white-space: nowrap; color: var(--ink); font-variant-numeric: tabular-nums; }
.ti-news { color: var(--ink2); }
.ti-majors { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.ti-majors h4 { margin: 0; font-size: 14px; color: var(--ink); }
.ti-major-g { display: flex; flex-direction: column; gap: 4px; }
.ti-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ti-chip { font-size: 13px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink2); }
.ti-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ti-place { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.ti-sources { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.ti-sources li span { display: block; }
.ti-qtable { border-collapse: collapse; margin-top: 6px; font-size: 12.5px; }
.ti-qtable th, .ti-qtable td { border: 1px solid var(--line); padding: 3px 8px; text-align: left; font-weight: 400; }
.ti-qtable th { background: #fff; color: var(--muted); }
.ti-chosen { margin: 0; font-weight: 700; color: var(--ink); }
.ti-link { border: 0; background: none; padding: 0; font: inherit; color: var(--brand-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ti-jobsrc { display: flex; flex-direction: column; gap: 2px; }
.ti-bj { font-size: 13px; color: var(--ink2); }
.ti-bj em { font-style: normal; font-size: 12px; color: var(--muted); margin-right: 4px; }
.ti-fold { margin-top: 2px; }
@media (max-width: 760px) {
  .ti-dirs, .ti-ranks { grid-template-columns: minmax(0, 1fr); }
  .ti-sec { padding: 14px 14px; }
  .ti-line-h { flex-direction: column; gap: 0; }
  .ti-line-h b { font-size: 18px; }
  .ti-src a, .ti-qbtn { padding: 6px 0; }
  .ti-dir { padding: 10px 12px; }
  .ti-num { font-size: 22px; }
}

.cs-list-btn { display: none; }  /* 电脑上不要：中间那一列一直在 */
/* ---------- 11-01 手机上：老师端、企业端原来三栏挤在一起（竖栏 72 + 名单 300），页面被挤成右边一条细缝 ----------
   手机上导航放到最底下一排（10-19 用户认的手机放法），中间那一列名单先不显示，页面占满屏幕；老师看板的学生名单从表格变成一人一块 */
@media (max-width: 760px) {
  .cs, .cs.slim { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; height: 100dvh; }
  .cs-list { display: none; }
  .cs > .main { grid-row: 1; grid-column: 1; }
  .cs-rail { grid-row: 2; grid-column: 1; flex-direction: row; gap: 0; padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid #dde4ec; }
  .cs-rail .cs-logo { display: none; }
  .cs-rail .cs-tabs { flex-direction: row; justify-content: space-around; width: 100%; }
  .cs-rail .cs-tab { flex: 1; width: auto; max-width: 96px; }
  .cs-rail .cs-gap { display: none; }
  .tb-table { min-width: 0; }
  .tb-table thead { display: none; }
  .tb-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line2); }
  .tb-table td { display: block; padding: 0; border: 0; min-width: 0; }
  .tb-table td.tb-row-act { grid-column: 2; grid-row: 1; align-self: start; }
  .tb-table td:not(:first-child):not(.tb-row-act) { grid-column: 1 / -1; }
  .tb-table td:nth-child(4)::before { content: '还看不出：'; color: var(--faint); }
  .tb-where-cell, .tb-grow { min-width: 0; max-width: none; }
  .cs-list-btn { display: flex; flex: 1; max-width: 96px; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none;
    padding: 8px 0 6px; border-radius: 12px; font-size: 12px; color: var(--muted); }
  .cs-list-btn.on { background: #fff; color: var(--brand-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
  .cs.drawer .cs-list { display: flex; position: fixed; left: 0; right: 0; top: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 30; border-right: 0; }
  .kb-hint { visibility: hidden; }  /* 手机上没有回车、Shift 这两个键 */
  .cs.drawer .cs-rail .cs-tab.on { background: none; box-shadow: none; color: var(--muted); }  /* 抽屉开着时只亮抽屉那个 */
}

/* ==================== 11-02 设计体系（用户：「整个产品系统的 ui 还有对应页面的设计，都参考这套设计体系，全部整改！」） ====================
   顶上一条：品牌、工作台名字、自己；左边带文字的导航，当前项浅底加一条竖线；页面浅蓝白底、白卡片、藏青大标题、青绿渐变主按钮。 */
h1 { font-size: 28px; line-height: 1.3; font-weight: 800; letter-spacing: .005em; }
h2 { font-size: 20px; line-height: 1.4; }
h3 { font-size: 16px; line-height: 1.5; }
.qy-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--navy); }
.qy-brand svg { width: 34px; height: 30px; flex: none; }
.qy-brand-text { display: flex; flex-direction: column; line-height: 1; }
.qy-brand-text b { font-size: 19px; font-weight: 800; letter-spacing: .06em; color: var(--navy); }
.qy-brand-text small { font-size: 8.5px; letter-spacing: .13em; color: var(--muted); margin-top: 4px; font-weight: 700; }
.qy-top { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; gap: 16px; padding: 0 22px; background: #fff; border-bottom: 1px solid var(--line3); box-shadow: 0 1px 8px rgba(18, 48, 90, .03); z-index: 5; min-width: 0; }
.qy-top-logo:hover { text-decoration: none; }
.qy-top-sep { width: 1px; height: 24px; background: var(--line); flex: none; }
.qy-top-name { font-size: 16px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.qy-top-org { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qy-top .grow { flex: 1; min-width: 0; }
.qy-top-off { font-size: 12.5px; line-height: 26px; padding: 0 10px; border-radius: 8px; background: var(--orange-weak); color: #b4501f; white-space: nowrap; }
.qy-top-me { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink2); border-radius: 10px; padding: 4px 8px; white-space: nowrap; }
.qy-top-me:hover { background: var(--soft); text-decoration: none; }
.qy-note { display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; line-height: 1.6; color: var(--muted); background: var(--soft2); border-radius: 10px; padding: 8px 12px; }
.qy-note::before { content: 'i'; flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; border: 1.3px solid var(--faint); color: var(--faint); font-size: 11px; line-height: 13px; text-align: center; font-style: italic; font-family: Georgia, serif; }

.cs { background: var(--bg); grid-template-columns: 208px 300px minmax(0, 1fr); grid-template-rows: 60px minmax(0, 1fr); }
.cs.slim { grid-template-columns: 208px 72px minmax(0, 1fr); }
.cs > .cs-rail { grid-column: 1; grid-row: 2; }
.cs > .cs-list { grid-column: 2; grid-row: 2; background: #fbfdfe; border-right: 1px solid var(--line3); }
.cs > .main { grid-column: 3; grid-row: 2; background: var(--bg); }
.cs.wide { grid-template-columns: 208px minmax(0, 1fr) !important; }
.cs.wide > .main { grid-column: 2; }
.cs-rail { align-items: stretch; gap: 0; padding: 14px 10px 12px; background: #fff; border-right: 1px solid var(--line3); overflow-y: auto; }
.cs-rail .cs-logo { display: none; }
.cs-rail .cs-tabs { align-items: stretch; gap: 3px; }
.cs-rail .cs-tab, .cs.slim .cs-rail .cs-tab { position: relative; width: auto; flex: none; flex-direction: row; justify-content: flex-start; gap: 11px; height: 44px; padding: 0 14px; border-radius: 10px; font-size: 14.5px; color: var(--slate); }
.cs-rail .cs-tab svg { width: 21px; height: 21px; flex: none; }
.cs-rail .cs-tab:hover { background: var(--soft); }
.cs-rail .cs-tab.on { background: var(--brand-weak); color: var(--brand-ink); font-weight: 700; box-shadow: none; }
.cs-rail .cs-tab.on::before { content: ''; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.cs-top { padding: 14px 18px 8px; }
.cs-row.on { background: var(--brand-weak); }
.topbar { height: 64px; background: transparent; border-bottom: 0; padding: 0 28px; }
.topbar-title strong { font-size: 22px; line-height: 30px; font-weight: 800; color: var(--navy); }
.topbar-title span { font-size: 13px; line-height: 18px; }
.card { border-radius: 14px; border-color: var(--line3); box-shadow: var(--shadow); }
.btn { height: 38px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 600; }
.btn:hover:not(:disabled) { background: var(--soft); }
.btn.primary { background: var(--brand-grad); border-color: transparent; color: #fff; font-weight: 700; }
.btn.primary:hover:not(:disabled) { background: var(--brand-grad-hover); }
.btn.small { height: 32px; border-radius: 8px; padding: 0 12px; font-size: 13px; }
.btn.ghost { border-color: transparent; background: transparent; }
.textarea, .input, input[type="text"], input[type="search"], input[type="password"], select { border-color: var(--line); border-radius: 10px; }
.textarea:focus, .input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 148, 136, .12); outline: none; }
.tag { background: var(--soft); color: var(--slate); }
.tag.done { background: var(--brand-weak); color: var(--brand-ink); }
.tag.wait { background: var(--blue-weak); color: var(--blue-ink); }
a { color: var(--brand-ink); }
.ct-bubble { background: var(--soft); }
/* 11-03 老师、企业自己发的话：11-02 只把字改成深色，底还是藏青，深字压深底看不清；时间在气泡外面，还是白字。照学生端自己那一边的样子 */
.ct-turn.mine .ct-body { background: #eef2f6; color: var(--ink); }
.ct-turn.mine .ct-time { color: var(--faint); }
.ct-send, .send-btn { background: var(--brand-grad); }

@media (max-width: 1180px) {
  .cs, .cs.wide { grid-template-columns: 64px 280px minmax(0, 1fr) !important; }
  .cs.wide { grid-template-columns: 64px minmax(0, 1fr) !important; }
  .cs-rail .cs-tab, .cs.slim .cs-rail .cs-tab { flex-direction: column; justify-content: center; gap: 2px; height: 56px; padding: 0; font-size: 11px; }
  .cs-rail { padding: 10px 5px; }
  .cs-rail .cs-tab.on::before { left: -5px; }
}
@media (max-width: 760px) {
  .cs, .cs.slim, .cs.wide { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: 52px minmax(0, 1fr) auto; }
  .qy-top { padding: 0 14px; gap: 10px; }
  .qy-top-org, .qy-top-me span, .qy-top-sep { display: none; }
  .qy-top-name { font-size: 14px; }
  .qy-brand-text b { font-size: 16px; }
  .cs > .main, .cs.wide > .main { grid-row: 2; grid-column: 1; }
  .cs > .cs-rail { grid-row: 3; grid-column: 1; flex-direction: row; padding: 2px 4px calc(2px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line3); overflow: visible; }
  .cs-rail .cs-tabs { flex-direction: row; }
  .cs-rail .cs-tab, .cs.slim .cs-rail .cs-tab { flex: 1 1 0; min-width: 0; height: 52px; font-size: 10.5px; }
  .cs-rail .cs-tab svg { width: 20px; height: 20px; }
  .cs-rail .cs-tab.on::before { display: none; }
}

/* 首页和登录页 */
.center-wrap { position: relative; background: linear-gradient(180deg, #f1f8fb 0%, #f7fbfd 60%, #eef6fa 100%); overflow: hidden; }
.center-wrap::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 300px; pointer-events: none; opacity: .7;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 300' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23d5e8f6'/%3E%3Cstop offset='1' stop-color='%23eef6fa' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 300V190l180-90 150 70 210-150 190 130 170-80 200 110 170-70 170 90v100z' fill='url(%23a)'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; }
.center-wrap > * { position: relative; }
.home-brand { margin-bottom: 8px; }
.home-brand .qy-brand svg { width: 46px; height: 40px; }
.home-brand .qy-brand-text b { font-size: 26px; }
.home-brand .qy-brand-text small { font-size: 10.5px; }
.home-head h1 { font-size: 30px; font-weight: 800; color: var(--navy); }
.role-card { box-shadow: 0 6px 24px rgba(18, 48, 90, .06); border-color: var(--line3); }
.role-tag { color: var(--navy); border-left-color: var(--brand); }
.role-tag.enterprise { border-left-color: var(--purple); }
.role-tag.teacher { border-left-color: var(--blue); }

/* 11-03 标志换成发布会用的那一版（图片，web/brand/） */
.qy-brand img { height: 34px; width: auto; display: block; }
.home-brand .qy-brand img { height: 54px; }
.qy-icon { width: 100%; height: 100%; display: block; border-radius: 28%; object-fit: contain; }
@media (max-width: 720px) { .qy-brand img { height: 28px; } }

/* ==================== 11-04 极简：老师端、企业端也不要顶栏 ==================== */
/* 用户 11-04：「一次只让用户看到一件事，其他的都要折叠」。标志挪到左边竖栏最上面，名字和单位放在标志的悬停提示里 */
.cs { grid-template-rows: minmax(0, 1fr); }
.cs > .qy-top { display: none; }
.cs > .cs-rail, .cs > .cs-list, .cs > .main { grid-row: 1; }
.cs-rail-logo { display: block; flex: none; padding: 6px 8px 16px; }
.cs-rail-logo:hover { text-decoration: none; }
.cs-rail-logo .qy-brand img { height: 34px; width: auto; display: block; }
.cs-rail-logo .cs-rail-icon { display: none; }
@media (max-width: 1280px) {
  .cs-rail-logo { display: flex; justify-content: center; padding: 4px 0 12px; }
  .cs-rail-logo .cs-rail-full { display: none; }
  .cs-rail-logo .cs-rail-icon { display: grid; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-weak); place-items: center; }
  .cs-rail-logo .cs-rail-icon img { width: 28px; height: 28px; }
}
@media (max-width: 860px) {
  .cs, .cs.slim, .cs.wide { grid-template-rows: minmax(0, 1fr) auto !important; }
  .cs > .main, .cs.wide > .main { grid-row: 1; }
  .cs > .cs-rail { grid-row: 2; }
  .cs-rail-logo { display: none; }
}
