:root {
  color-scheme: light;
  --bg: #f4ece1;
  --panel: #fffdf9;
  --panel-2: #fbf4e9;
  --ink: #4a3f37;
  --ink-soft: #9b8b7b;
  --line: #ece0cf;
  --accent: #c8703d;
  --accent-deep: #a85a2d;
  --accent-soft: #f6e7d6;
  --warm-shadow: 0 4px 18px rgba(168,90,45,.10);
  --right-panel-w: 372px;   /* 右栏宽度：可被拖拽分隔条动态改写并记忆到 localStorage */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
/* hidden 属性兜底：.sb-item/.sb-list/.sb-section-collapsible 等设了 display，会盖掉 UA 的 [hidden]{display:none}，这里强制生效 */
[hidden] { display: none !important; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--ink); height: 100vh; overflow: hidden;
}
.app { display: flex; height: 100vh; }
/* ===== 左侧路由侧边栏（通顶） ===== */
.sidebar { width: 248px; flex-shrink: 0; display: flex; flex-direction: column; background: var(--panel); border-right: 1px solid var(--line); }
.sb-brand { display: flex; align-items: center; gap: 9px; padding: 15px 16px 10px; }
.sb-logo { width: 30px; height: 30px; display: grid; place-items: center; flex-shrink: 0; }
.sb-name { font-size: 14.5px; font-weight: 800; color: #5b4636; letter-spacing: .2px; white-space: nowrap; }
/* 模拟模式主按钮：白底 + 阴影（参考图） */
.sb-new { margin: 4px 12px 8px; background: #fff; color: #5b4636; border: 1px solid var(--line); border-radius: 12px; padding: 10px 13px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .15s; display: flex; align-items: center; gap: 9px; text-align: left; box-shadow: 0 2px 9px rgba(91,70,54,.12); }
.sb-new:hover { box-shadow: 0 4px 14px rgba(91,70,54,.18); border-color: #e2d3bf; }
.sb-new .sb-svg { color: var(--accent); }
.sb-svg { width: 18px; height: 18px; flex-shrink: 0; }
/* 侧边栏收起（顶栏图标切换） */
.sidebar { transition: width .18s ease; }
.app.collapsed .sidebar { width: 0; min-width: 0; border-right: none; overflow: hidden; }
.sidebar-backdrop { display: none; }
/* 考试进行中：侧边栏锁定——展开也为空，提示不可用（默认收起，强行展开见提示） */
.sb-lock { display: none; flex: 1; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 18px; font-size: 13px; color: var(--ink-soft); line-height: 1.7; }
.app.exam-locked .sb-nav,
.app.exam-locked .sb-section,
.app.exam-locked #myAgentsList,
.app.exam-locked #historyList { display: none; }
.app.exam-locked .sb-lock { display: flex; }
.app.exam-locked .user-center { margin-top: auto; }
.sb-nav { padding: 2px 8px 6px; display: flex; flex-direction: column; gap: 2px; }
.sb-item { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; cursor: pointer; font-size: 13.5px; color: var(--ink); transition: background .12s; }
.sb-item:hover { background: var(--panel-2); }
.sb-item.active { background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; }
.sb-item .sb-ic { font-size: 16px; width: 18px; text-align: center; }
.sb-section { padding: 12px 16px 6px; font-size: 12px; color: var(--ink-soft); }
/* 可折叠分区标题（智能体）：两端对齐 + 折叠箭头 */
.sb-section-collapsible { display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; }
.sb-section-collapsible:hover { color: var(--ink); }
.sb-chevron { width: 15px; height: 15px; flex-shrink: 0; transition: transform .18s ease; opacity: .7; }
.sb-section-collapsible.collapsed .sb-chevron { transform: rotate(-90deg); }
/* 智能体列表（侧边栏，与历史对话同层级） */
.sb-list { padding: 2px 8px 4px; display: flex; flex-direction: column; gap: 3px; max-height: 152px; overflow-y: auto; flex-shrink: 0; }
.ag-item { display: flex; align-items: center; gap: 9px; padding: 8px 11px; border-radius: 10px; cursor: pointer; font-size: 13px; color: var(--ink); transition: background .12s; }
.ag-item:hover { background: var(--panel-2); }
.ag-item.active { background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; }
.ag-item .ag-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #fff; flex-shrink: 0; }
.ag-empty { font-size: 12px; color: var(--ink-soft); padding: 4px 12px; }
.status { font-size: 12px; padding: 4px 11px; border-radius: 14px; background: #f6e7d6; color: #a85a2d; white-space: nowrap; }
.status.live { background: #e3eddb; color: #5f7a3f; }
/* ===== 主区 + 顶栏 + 视图路由 ===== */
.main-area { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: stretch; background: linear-gradient(180deg,#fffdf9,#fbf3e7); border-bottom: 1px solid var(--line); flex-shrink: 0; min-height: 40px; }
/* 左区在「对话栏」上方：标题与下方输入框居中对齐；右区在「右侧面板」上方：放模式切换 */
.tb-main { flex: 1; min-width: 0; position: relative; display: flex; align-items: center; padding: 5px 18px; }
.tb-side { width: var(--right-panel-w, 372px); flex-shrink: 0; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 5px 18px; }
.tb-guide { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line); border-radius: 18px; padding: 5px 12px 5px 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: all .15s; white-space: nowrap; }
.tb-guide:hover { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-soft); }
.tb-guide svg { width: 16px; height: 16px; display: block; }
.tb-collapse { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; padding: 5px; border-radius: 8px; cursor: pointer; color: var(--ink-soft); display: grid; place-items: center; transition: all .12s; }
.tb-collapse:hover { background: var(--panel-2); color: #5b4636; }
.tb-collapse svg { width: 18px; height: 18px; display: block; }
.tb-title { flex: 1; max-width: 760px; margin: 0 auto; text-align: center; padding: 0 44px; font-size: 13px; font-weight: 700; color: #5b4636; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.view { flex: 1; min-height: 0; display: none; }
.view.active { display: flex; }
.view-sim { position: relative; }   /* 空态欢迎页绝对定位锚点 */

/* ── 空态欢迎页：未选择课程时覆盖工作区 ───────────────────────────── */
.welcome-hero {
  position: absolute; inset: 0; z-index: 6;
  display: flex; align-items: center; justify-content: center;
  padding: 40px; background: var(--bg);
}
.welcome-hero[hidden] { display: none; }
.wh-inner {
  max-width: 580px; text-align: center;
  animation: whRise .5s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes whRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.wh-greet {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  font-family: Georgia, "Songti SC", "Noto Serif SC", serif;
  font-size: 42px; font-weight: 500; line-height: 1.15;
  color: var(--ink); letter-spacing: .3px;
}
.wh-star { width: 34px; height: 34px; flex-shrink: 0; fill: var(--accent);
  animation: whSpin 9s linear infinite; transform-origin: center; }
@keyframes whSpin { to { transform: rotate(360deg); } }
.wh-tagline {
  margin: 22px auto 0; max-width: 460px;
  font-size: 16px; line-height: 1.95; color: var(--ink-soft);
}
.wh-cta {
  margin-top: 34px; display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border: 0; border-radius: 13px; cursor: pointer;
  font-size: 15px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 10px 26px rgba(168,90,45,.28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.wh-cta svg { width: 19px; height: 19px; }
.wh-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(168,90,45,.34); }
.wh-cta:active { transform: translateY(0); }
.wh-hint { margin-top: 20px; font-size: 13px; color: var(--ink-soft); }
.wh-hint b { color: var(--accent-deep); font-weight: 600; }
@media (max-width: 640px) {
  .wh-greet { font-size: 32px; gap: 12px; }
  .wh-star { width: 27px; height: 27px; }
  .wh-tagline { font-size: 15px; }
}
/* 创建案例 / 智能体 视图的内容容器 */
.page-wrap { flex: 1; overflow-y: auto; padding: 28px 32px; max-width: 940px; margin: 0 auto; width: 100%; }
/* 导师·学习问答：撑满整页、内部各区自己滚动（对话栏 + 右侧常驻画像栏），与案例模拟的 .view-sim 同一套骨架，
   而不是套用 .page-wrap 默认的居中定宽+整页滚动（那是给表单类页面用的）。 */
.page-wrap.pw-flush { padding: 0; max-width: none; overflow: hidden; display: flex; }
/* .page-head.mentor-head（两个类）而非单独 .mentor-head：后面 .page-head 基础规则的 margin-bottom
   和这里同选择器特异性，源码顺序在后会赢——用双类选择器把特异性提高，不用管声明顺序。 */
.page-head.mentor-head { padding: 20px 22px 6px; margin-bottom: 0; flex-shrink: 0; }
.mentor-side { width: 320px; flex-shrink: 0; overflow-y: auto; padding: 20px 22px 20px 6px; }
.mentor-side .aw-card { margin-top: 0; }
.page-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.page-head .ph-ic { font-size: 30px; line-height: 1; }
.page-head h2 { font-size: 20px; color: #5b4636; margin-bottom: 4px; }
.page-head p { font-size: 13px; color: var(--ink-soft); line-height: 1.65; }
.page-head p b { color: var(--accent-deep); }
/* 创建专区：两卡片入口 */
.create-hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ch-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px 22px; cursor: pointer; transition: box-shadow .16s, transform .16s, border-color .16s; box-shadow: 0 2px 10px rgba(91,70,54,.06); }
.ch-card:hover { box-shadow: 0 8px 24px rgba(168,90,45,.14); transform: translateY(-3px); border-color: #e2d3bf; }
.ch-card .ch-ic { font-size: 34px; line-height: 1; margin-bottom: 12px; }
.ch-card h3 { font-size: 17px; color: #5b4636; margin-bottom: 8px; }
.ch-card p { font-size: 13px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 14px; }
.ch-card .ch-go { font-size: 13px; font-weight: 600; color: var(--accent-deep); }
@media (max-width: 720px) { .create-hub-grid { grid-template-columns: 1fr; } }
.steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.step { display: flex; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; }
.step-no { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; display: grid; place-items: center; font-size: 13px; flex-shrink: 0; }
.step-bd { font-size: 13.5px; color: var(--ink); } .step-bd b { color: #5b4636; margin-right: 6px; }
.ph-cta { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ph-btn { background: var(--accent); color: #fff; border: none; border-radius: 11px; padding: 11px 18px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s; }
.ph-btn:hover { background: var(--accent-deep); }
.ph-note { font-size: 12px; color: var(--ink-soft); line-height: 1.6; }
.agents-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 12px; }
.agent-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; box-shadow: var(--warm-shadow); }
.agent-card .ac-top { display: flex; align-items: center; gap: 10px; }
.agent-card .ac-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; color: #fff; flex-shrink: 0; box-shadow: var(--warm-shadow); }
.agent-card .ac-name { font-size: 14px; font-weight: 700; color: #5b4636; }
.agent-card .ac-title { font-size: 12px; color: var(--accent-deep); }
.agent-card .ac-duty { font-size: 12px; color: var(--ink-soft); line-height: 1.55; margin-top: 8px; }
.history-list { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.history-empty { font-size: 12px; color: var(--ink-soft); text-align: center; padding: 26px 14px; line-height: 1.7; }
.history-item { display: flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 9px; border: 1.5px solid transparent; cursor: pointer; transition: all .15s; background: var(--panel-2); position: relative; }
.history-item:hover { border-color: var(--line); background: #fff; }
.history-item.active { border-color: var(--accent); background: var(--accent-soft); }
.history-item .hi-title { flex: 1; min-width: 0; font-size: 13px; color: var(--ink); font-weight: 600; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-item .hi-time { font-size: 11px; color: var(--ink-soft); flex-shrink: 0; }
.history-item:hover .hi-time { opacity: 0; }
.history-item .hi-del { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); font-size: 13px; color: var(--ink-soft); opacity: 0; transition: opacity .15s; cursor: pointer; line-height: 1; padding: 2px; border-radius: 5px; }
.history-item:hover .hi-del { opacity: 1; }
.history-item .hi-del:hover { color: #b5482f; background: #fbeae4; }
.review-banner { align-self: center; max-width: 94%; text-align: center; font-size: 12px; color: #8a5a36; background: #f3ecdd; border: 1px solid #e6d6b8; border-radius: 9px; padding: 6px 14px; line-height: 1.6; }
/* 左下角：个人中心 */
.user-center { border-top: 1px solid var(--line); padding: 11px 14px; background: var(--panel-2); }
.user-center .uc-top { display: flex; align-items: center; gap: 8px; }
.user-center .uc-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 15px; flex-shrink: 0; }
.user-center .uc-name { font-size: 13px; font-weight: 700; color: #5b4636; }
.user-center .uc-label { font-size: 11px; color: var(--ink-soft); }
.user-center .uc-copy { font-size: 11px; color: var(--accent-deep); cursor: pointer; border: none; background: none; padding: 2px 4px; white-space: nowrap; }
.user-center .uc-copy:hover { text-decoration: underline; }
/* 侧边栏积分条（取代原来的 ID 展示） */
.user-center .uc-points { margin-top: 8px; display: flex; align-items: baseline; gap: 5px;
  background: linear-gradient(135deg, #fff8ef, #fdeede); border: 1px solid #f0dcc4;
  border-radius: 8px; padding: 7px 10px; }
.user-center .uc-points[hidden] { display: none; }
.user-center .ucp-ic { font-size: 13px; }
.user-center .ucp-num { font-size: 16px; font-weight: 700; color: var(--accent-deep); }
.user-center .ucp-unit { font-size: 11.5px; color: #7a6552; }
.user-center .ucp-rank { font-size: 11px; color: var(--ink-soft); margin-left: auto; }
.left-panel { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.right-panel { width: var(--right-panel-w, 372px); flex-shrink: 0; display: flex; flex-direction: column; background: var(--panel-2); position: relative; }
/* 拖拽分隔条：位于对话栏与右栏之间，可左右拖动改变右栏宽度 */
.panel-resizer { width: 5px; flex-shrink: 0; cursor: col-resize; background: var(--line); position: relative; transition: background .12s; }
.panel-resizer:hover, .panel-resizer.dragging { background: var(--accent); }
.panel-resizer::after { content: ""; position: absolute; top: 0; bottom: 0; left: -3px; right: -3px; }
/* 角色选择栏 */
.role-bar {
  background: var(--panel); border-bottom: 1px solid var(--line); padding: 11px 18px;
  display: flex; gap: 8px; overflow-x: auto; flex-shrink: 0;
}
.role-chip {
  display: flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 20px;
  border: 1.5px solid var(--line); background: var(--panel-2); cursor: default; white-space: nowrap;
  font-size: 13px; color: var(--ink);
}
.role-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.role-chip .dot { width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; }
.rb-label { font-size: 12px; color: #9a8a78; display: flex; align-items: center; margin-right: 2px; flex-shrink: 0; }
/* 对话区 */
.chat { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 15px; background: var(--bg); }
.chat-inner { max-width: 760px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.msg { display: flex; gap: 10px; max-width: 82%; }
.msg.student { align-self: flex-end; flex-direction: row-reverse; }
.avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 18px; color: #fff; box-shadow: var(--warm-shadow); }
.bubble { padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.6; box-shadow: var(--warm-shadow); }
.msg .name { font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.msg.role .bubble { background: var(--panel); border: 1px solid var(--line); }
.msg.student .bubble { background: var(--accent); color: #fff; }
.msg.student .avatar { background: var(--accent); }
.msg.student.delivery-failed .bubble { background: #a94e3b; }
.delivery-state { display: flex; justify-content: flex-end; align-items: center; gap: 7px; margin-top: 5px;
  min-height: 22px; font-size: 11.5px; color: var(--ink-soft); }
.delivery-state.sending::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #b68a65;
  animation: rubricSyncPulse 1s ease-in-out infinite; }
.delivery-state.failed { color: #9a4935; }
.delivery-state button { padding: 2px 7px; border: 1px solid #d89d89; border-radius: 6px; background: #fff;
  color: #914431; font: inherit; cursor: pointer; }
.delivery-state button:hover { background: #fff2ed; }
/* 导师：右对齐的气泡对话，独立配色（暖棕/沙色），区别于学生(橙)与评估(卡片) —— 用于案例模拟里的混合对话 */
.msg.mentor { align-self: flex-end; flex-direction: row-reverse; }
.msg.mentor .bubble { background: #efe2cf; border: 1px solid #d8c09c; color: #5b4220; }
/* 导师单聊整页（学习问答）：左对齐，同样的暖棕/沙色气泡——这里只有"你 / 导师"两方，
   左右分侧比案例模拟里的"都靠右"更符合一般聊天直觉，所以单独一个 modifier，不复用 .msg.mentor */
.msg.tutor .bubble { background: #efe2cf; border: 1px solid #d8c09c; color: #5b4220; }
/* 系统引导提示：一行居中小字（开始/结束等），不是评估卡片 */
.sys-hint { align-self: center; max-width: 94%; text-align: center; font-size: 12px; color: var(--ink-soft); line-height: 1.6; padding: 2px 10px; }
/* 旁白 / 剧情：居中叙事卡，与角色气泡、系统提示、评估卡都区分开 */
.msg.narration { align-self: center; max-width: 92%; display: block;
  background: linear-gradient(135deg, #f8ede0, #f3e5d3); border: 1px solid #e6d3b6;
  border-left: 3px solid var(--accent); border-radius: 12px; padding: 13px 18px; margin: 14px 0;
  box-shadow: 0 4px 16px rgba(168,90,45,.08); }
.msg.narration .nar-tag { font-size: 11px; font-weight: 700; letter-spacing: 1px;
  color: var(--accent-deep); margin-bottom: 6px; text-align: center; }
.msg.narration .nar-body { font-size: 13.5px; line-height: 1.85; color: #6b5335; font-style: italic; text-align: center; }
.msg.narration .nar-body p { margin: 0; }
/* @ 提及弹窗：列出群成员 */
.mention-pop { position: absolute; left: 0; bottom: 100%; margin-bottom: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--warm-shadow); padding: 6px; min-width: 300px; z-index: 60; display: none; }
.mention-pop.open { display: block; }
.mention-pop .mp-title { font-size: 11px; color: var(--ink-soft); padding: 4px 10px 6px; }
.mention-item { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.mention-item:hover, .mention-item.active { background: var(--panel-2); }
.mention-item .mi-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #fff; flex-shrink: 0; }
.mention-item .mi-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.mention-item .mi-desc { font-size: 12px; color: var(--ink-soft); margin-left: auto; }
/* 系统类消息：评估 / 导师 —— 右对齐，与左侧业务角色做区分（属于「你的助手」一侧）*/
.sys-msg { align-self: flex-end; max-width: 82%; width: auto; }
/* 角色栏里把导师/评估推到右侧 */
.role-chip.helper { background: #efe7dd; }
.sys-eval { background: #f3ecdd; border: 1px solid #e6d6b8; border-left: 4px solid #b8893f; padding: 11px 15px; border-radius: 10px; font-size: 13px; line-height: 1.6; }
.sys-mentor { background: #efe7dd; border: 1px solid #ddccba; border-left: 4px solid #9c6f4a; padding: 11px 15px; border-radius: 10px; font-size: 13px; line-height: 1.6; }
.sys-msg .tag { font-size: 11px; font-weight: 700; letter-spacing: .5px; margin-bottom: 4px; display: block; }
.sys-eval .tag { color: #a06d27; } .sys-mentor .tag { color: #8a5a36; }
/* 输入区 —— 默认即长方形：textarea 在上、底部一行工具条（发送在右下） */
.composer { background: transparent; border-top: none; padding: 6px 18px 18px; flex-shrink: 0; }
/* 输入框上方 sug 栏：引导课「下一步 / 我已掌握 / 去做题 / 去案例」等一步步推进的胶囊按钮 */
.mt-sugbar { max-width: 760px; margin: 0 auto 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.mt-sug {
  border: 1.5px solid var(--accent-soft); background: var(--panel); color: var(--accent-deep);
  border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer;
  box-shadow: 0 2px 8px rgba(168,90,45,.10); transition: background .15s, border-color .15s, transform .1s;
}
.mt-sug:hover { background: var(--accent-soft); border-color: var(--accent); }
.mt-sug:active { transform: translateY(1px); }
.mt-sug.mt-sug-go { background: var(--accent); color: #fff; border-color: var(--accent); }
.mt-sug.mt-sug-go:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.mt-sug.mt-sug-case { background: #2e7d5b; color: #fff; border-color: #2e7d5b; }
.mt-sug.mt-sug-case:hover { background: #266b4d; border-color: #266b4d; }
.composer-inner {
  max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; position: relative;
  background: var(--panel); border: 1.5px solid var(--line); border-radius: 16px;
  box-shadow: 0 6px 22px rgba(168,90,45,.12); padding: 12px 14px 10px; transition: border-color .15s, box-shadow .15s;
}
.composer-inner:focus-within { border-color: var(--accent); box-shadow: 0 8px 28px rgba(168,90,45,.18); }
.target-hint { display: none; }
textarea {
  width: 100%; resize: none; border: none; border-radius: 0; padding: 2px 2px;
  font-size: 14.5px; font-family: inherit; min-height: 58px; max-height: 240px; line-height: 1.55; background: transparent; color: var(--ink);
}
textarea:focus { outline: none; background: transparent; }
textarea:disabled { background: transparent; color: #b8a994; }
.composer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.tone-control { display: flex; align-items: center; gap: 5px; min-width: 0; flex-wrap: wrap; }
.tone-label { font-size: 12px; color: var(--ink-soft); white-space: nowrap; margin-right: 2px; }
.tone-mode, .tone-level {
  height: 28px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink-soft);
  border-radius: 8px; padding: 0 9px; font-size: 12px; font-weight: 600; cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.tone-mode:hover, .tone-level:hover { border-color: #d8bda2; color: var(--ink); }
.tone-mode.active, .tone-level.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.tone-levels { display: flex; align-items: center; gap: 5px; }
.tone-levels[hidden] { display: none; }
.ct-hint { font-size: 12px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
/* 发送 / 停止：圆形图标按钮（同一位置切换，置于底部工具条右侧） */
.send-btn, .pause-btn {
  width: 38px; height: 38px; flex-shrink: 0; padding: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; transition: all .15s; border: none;
}
.send-btn svg, .pause-btn svg { width: 19px; height: 19px; display: block; }
.send-btn { background: var(--accent); color: #fff; }
.send-btn:hover:not(:disabled) { background: var(--accent-deep); }
.send-btn:disabled { opacity: .4; cursor: not-allowed; }
.pause-btn { background: #fff; color: #b5482f; border: 1.5px solid #e6c4ba; }
.pause-btn:hover { background: #fbeae4; border-color: #d98b78; }

/* ===== 语音输入 ===== */
/* 麦克风按钮：幽灵图标，悬浮变橙 */
.mic-btn {
  width: 38px; height: 38px; flex-shrink: 0; padding: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; transition: all .15s;
  background: #fff; color: var(--accent); border: 1.5px solid #e6c4ba;
}
.mic-btn svg { width: 19px; height: 19px; display: block; }
.mic-btn:not(:disabled):hover { background: var(--accent-soft); border-color: var(--accent); }
.mic-btn:disabled { opacity: .4; cursor: not-allowed; }   /* 未开始模拟/考试时与发送键一致变灰 */
/* 录音中：隐藏输入框 + 工具条，露出橙色波纹录音条 */
.composer-inner.recording > #input,
.composer-inner.recording > .composer-toolbar { display: none; }
.rec-bar {
  display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 6px 6px 6px 6px;
  animation: recIn .18s ease;
}
@keyframes recIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.rec-x, .rec-send {
  width: 40px; height: 40px; flex-shrink: 0; padding: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; transition: all .15s; border: none;
}
.rec-x svg, .rec-send svg { width: 20px; height: 20px; display: block; }
.rec-x { background: var(--accent-soft); color: var(--accent-deep); }
.rec-x:hover { background: #f0d4bf; }
.rec-send { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(200,112,61,.35); }
.rec-send:hover { background: var(--accent-deep); }
.rec-tip { font-size: 12.5px; color: var(--accent-deep); flex-shrink: 0; }
/* 橙色波纹：一排跳动的竖条 */
.rec-wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 38px; overflow: hidden; justify-content: center; }
.rec-wave span {
  display: block; width: 3px; border-radius: 3px; background: var(--accent);
  height: 20%; animation: recWave 1s ease-in-out infinite;
}
@keyframes recWave { 0%, 100% { height: 18%; opacity: .55; } 50% { height: 90%; opacity: 1; } }
/* 顶栏右侧：模拟 / 考试 切换（考试模式无导师） */
.mode-toggle { display: flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 20px; padding: 3px; gap: 2px; }
.mt-opt { border: none; background: none; padding: 5px 15px; border-radius: 16px; font-size: 13px; color: var(--ink-soft); cursor: pointer; font-weight: 600; transition: all .15s; }
.mt-opt.active { background: var(--accent); color: #fff; }
/* 语言切换：地球图标按钮 + 弹窗菜单（中文 / English）。图标风格对齐 .tb-guide/.tb-collapse，
   菜单为白底圆角卡，从图标下方弹出；当前语言深色高亮、其余灰色 */
.lang-switch { position: relative; display: inline-flex; }
.lang-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; background: none; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-soft); cursor: pointer; transition: all .15s; }
.lang-btn:hover { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-soft); }
.lang-btn svg { width: 18px; height: 18px; display: block; }
.lang-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 80; display: flex; flex-direction: column; min-width: 132px; padding: 5px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(91,70,54,.18); }
.lang-menu .lang-item { border: none; background: none; text-align: left; padding: 8px 12px; border-radius: 8px; font-size: 13.5px; color: var(--ink-soft); cursor: pointer; font-weight: 500; transition: background .12s, color .12s; white-space: nowrap; }
.lang-menu .lang-item:hover { background: var(--panel-2); color: var(--ink); }
.lang-menu .lang-item.active { color: var(--ink); font-weight: 700; background: var(--accent-soft); }
/* 修复 loading：导师/学生（右对齐侧）的「名字 + 气泡」改用 flex 列右对齐，
   让三点小气泡与名字都贴着头像、彼此对齐；业务角色(左侧)保持原 block 布局，不影响宽表格。 */
.msg.mentor > div:last-child, .msg.student > div:last-child {
  display: flex; flex-direction: column; align-items: flex-end; min-width: 0;
}
/* 角色头像悬停提示：职位 + 职责（JS 定位，挂在 body 上避免被角色栏裁切；不改鼠标形态） */
.role-tip {
  position: fixed; z-index: 200; background: #5b4636; color: #fff; border-radius: 10px; padding: 8px 11px;
  font-size: 12px; line-height: 1.5; width: max-content; max-width: min(300px, calc(100vw - 20px)); box-shadow: 0 8px 24px rgba(91,70,54,.32);
  pointer-events: none; opacity: 0; transform: translateY(-3px); transition: opacity .12s, transform .12s;
}
.role-tip.show { opacity: 1; transform: translateY(0); }
.role-tip strong { display: block; font-size: 13px; }
.role-tip b { color: #ffd9b8; display: block; font-size: 12px; margin-bottom: 3px; }
.role-tip-tasks { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.role-tip-tasks span { background: rgba(255,255,255,.12); border-radius: 5px; padding: 1px 5px; }
/* 右栏：模拟控制 */
.sim-control { padding: 18px; border-bottom: 1px solid var(--line); }
.sim-btns { display: flex; gap: 9px; }
.start-btn { flex: 1; background: var(--accent); color: #fff; border: none; border-radius: 11px; padding: 12px; font-size: 15px; font-weight: 700; cursor: pointer; transition: all .15s; }
.start-btn:hover:not(:disabled) { background: var(--accent-deep); }
.start-btn.running { background: #e9dcc8; color: #9b8b7b; cursor: default; }
.start-btn.done { background: #e3eddb; color: #5f7a3f; cursor: default; }
.sim-pause-btn {
  width: 44px; flex: 0 0 44px; display: grid; place-items: center;
  color: #6f5a47; background: #fff; border: 1.5px solid var(--line);
  border-radius: 11px; cursor: pointer;
}
.sim-pause-btn:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); }
.sim-pause-btn:disabled { opacity: .4; cursor: not-allowed; }
.sim-pause-icon { width: 18px; height: 18px; display: block; }
.sim-resume-play { display: none; }
.sim-pause-btn.paused .sim-pause-bars { display: none; }
.sim-pause-btn.paused .sim-resume-play { display: block; }
.stop-btn { background: #fff; color: #b5482f; border: 1.5px solid #e6c4ba; border-radius: 11px; padding: 12px 16px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s; }
.stop-btn:hover:not(:disabled) { background: #fbeae4; border-color: #d98b78; }
.stop-btn:disabled { opacity: .4; cursor: not-allowed; }
.countdown { text-align: center; font-size: 40px; font-weight: 700; margin-top: 16px; letter-spacing: 1px; font-variant-numeric: tabular-nums; color: #5b4636; }
.countdown.warn { color: #c0392b; }
.countdown-label { text-align: center; font-size: 12px; color: var(--ink-soft); margin-top: 3px; }
/* 右栏：底部工具条（计算器 / 备忘录图标） */
.tool-bar { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--panel); flex-shrink: 0; }
.tool-icon {
  display: flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--panel-2); cursor: pointer; font-size: 13px; color: var(--ink);
  transition: all .15s;
}
.tool-icon:hover { border-color: var(--accent); background: #fff; }
.tool-icon.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; }
.tool-icon .ic { font-size: 16px; }
/* 右栏：题干（标题行可点击收起/展开，节省纵向空间） */
.prompt-box { flex: 1; overflow-y: auto; padding: 14px 16px; }
.prompt-box-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; cursor: pointer; user-select: none; }
.prompt-box h3 { font-size: 13px; color: var(--accent-deep); }
.pb-toggle { flex-shrink: 0; width: 22px; height: 22px; padding: 0; border: none; background: none; border-radius: 6px; color: var(--ink-soft); display: grid; place-items: center; cursor: pointer; transition: background .12s, transform .2s; }
.pb-toggle:hover { background: var(--panel); color: #5b4636; }
.pb-toggle svg { width: 16px; height: 16px; display: block; transition: transform .2s; }
.prompt-box.collapsed .pb-toggle svg { transform: rotate(-90deg); }
.prompt-box.collapsed .case-card { display: none; }
.prompt-card { font-size: 13px; line-height: 1.75; color: var(--ink); }
.prompt-card .pc-block { margin-bottom: 13px; border-radius: 10px; padding: 11px 13px; }
.prompt-card .pc-label { font-weight: 700; color: #5b4636; display: block; margin-bottom: 4px; }
.prompt-card .pc-firm { background: #f6ecdb; border: 1px solid #e8d6b6; }
.prompt-card .pc-plain { background: var(--panel); border: 1px solid var(--line); }
.prompt-card .pc-core { background: #fbe9d8; border: 1px solid #f0c79f; }
.prompt-card .opt { margin-top: 7px; padding: 7px 10px; background: rgba(255,255,255,.6); border-radius: 7px; }
.prompt-card .opt b { color: var(--accent-deep); }
/* 案例题干：单张整洁卡片（标题已在顶栏展示，卡片内不再重复案例名，信息更密） */
.case-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--warm-shadow); overflow: hidden; font-size: 12.5px; line-height: 1.5; color: var(--ink); }
.case-card .cc-row { display: flex; gap: 8px; padding: 6px 12px; border-bottom: 1px solid var(--line); }
.case-card .cc-k { flex: 0 0 48px; color: var(--accent-deep); font-weight: 600; }
.case-card .cc-v { flex: 1; min-width: 0; }
.case-card .cc-company { padding: 9px 12px; background: #f6ecdb; border-bottom: 1px solid var(--line); }
.case-card .cc-company-title { color: var(--accent-deep); font-weight: 700; margin-bottom: 3px; }
.case-card .cc-company-text { color: var(--ink); line-height: 1.65; }
.case-card .cc-core { padding: 8px 12px; background: #fbe9d8; border-bottom: 1px solid var(--line); }
.case-card .cc-core .cc-k { display: block; margin-bottom: 2px; }
.case-card .cc-goal { padding: 8px 12px; }
.case-card .cc-goal .cc-k { color: var(--accent-deep); font-weight: 600; display: block; margin-bottom: 4px; }
.case-card .cc-tags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 5px; }
.case-card .cc-tags b { background: var(--accent-soft); color: var(--accent-deep); border: 1px solid #f0c79f; border-radius: 6px; padding: 2px 7px; font-size: 11.5px; font-weight: 600; }
/* 对话气泡内的 Markdown 渲染（表格 / 列表 / 标题 / 代码等） */
.chat-inner .md-p { margin: 4px 0; }
.chat-inner .md-p:first-child { margin-top: 0; }
.chat-inner .md-p:last-child { margin-bottom: 0; }
.chat-inner .md-h { font-weight: 700; margin: 8px 0 4px; }
.chat-inner .md-h1, .chat-inner .md-h2 { font-size: 14.5px; }
.chat-inner .md-ul, .chat-inner .md-ol { margin: 5px 0 5px 20px; }
.chat-inner .md-ul li, .chat-inner .md-ol li { margin: 2px 0; }
.chat-inner .md-table { border-collapse: collapse; margin: 9px 0; width: 100%; font-size: 12.5px; background: var(--panel); border-radius: 8px; overflow: hidden; }
.chat-inner .md-table th, .chat-inner .md-table td { border: 1px solid var(--line); padding: 6px 9px; text-align: left; vertical-align: top; }
.chat-inner .md-table th { background: var(--panel-2); font-weight: 700; color: #5b4636; }
.chat-inner .md-table tr:nth-child(even) td { background: rgba(246,231,214,.35); }
.chat-inner .msg.student .md-table th { background: rgba(255,255,255,.18); color: #fff; }
.chat-inner .msg.student .md-table th, .chat-inner .msg.student .md-table td { border-color: rgba(255,255,255,.35); }
.chat-inner code { background: rgba(120,90,60,.12); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.chat-inner .md-pre { background: #f3ece0; padding: 9px 11px; border-radius: 9px; overflow-x: auto; margin: 7px 0; }
.chat-inner .md-pre code { background: none; padding: 0; }
.chat-inner .msg.student .md-pre { background: rgba(255,255,255,.16); }
.chat-inner .msg.student code { background: rgba(255,255,255,.22); }
/* 图片（CFO 趋势图等）：自适应气泡宽度 */
.chat-inner .md-img { max-width: 100%; height: auto; display: block; margin: 8px 0; border-radius: 8px; }
.typing { font-size: 13px; color: var(--ink-soft); padding: 4px 8px; }
/* 加载中：气泡内三点动画 */
.typing-dots { display: inline-flex; gap: 6px; align-items: center; height: 1.3em; }
.typing-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: 1; animation: typingDot 1.2s infinite ease-in-out both; }
.typing-dots span:nth-child(2) { animation-delay: .18s; }
.typing-dots span:nth-child(3) { animation-delay: .36s; }
@keyframes typingDot { 0%, 80%, 100% { opacity: .45; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-5px); } }
/* 知识中心加载指示：气泡内 三点动画 + 当前状态文字（备课中/出题中/思考中…） */
.mt-typing-bubble { display: inline-flex; align-items: center; gap: 10px; }
.mt-typing-label { font-size: 13px; color: var(--ink-soft); }
/* 财务计算器面板（停靠右栏底部，点击图标弹出） */
.calc-panel {
  position: absolute; right: 18px; bottom: 64px; width: 300px; background: var(--panel); border-radius: 14px;
  box-shadow: 0 10px 34px rgba(91,70,54,.24); z-index: 60; display: none; overflow: hidden; border: 1px solid var(--line);
}
.calc-panel.open { display: block; }
.calc-head { background: #5b4636; color: #fff; padding: 9px 14px; font-size: 13px; display: flex; justify-content: space-between; align-items: center; }
.calc-head button { background: none; border: none; color: #fff; font-size: 17px; cursor: pointer; line-height: 1; }
/* 选项卡 */
.calc-tabs { display: flex; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.calc-tab { flex: 1; padding: 9px; text-align: center; font-size: 13px; cursor: pointer; color: var(--ink-soft); border-bottom: 2px solid transparent; transition: all .15s; }
.calc-tab.active { color: var(--accent-deep); font-weight: 600; border-bottom-color: var(--accent); background: var(--panel); }
.calc-pane { display: none; }
.calc-pane.active { display: block; }
/* 基础计算器 */
.calc-display { padding: 14px; font-size: 24px; text-align: right; min-height: 56px; word-break: break-all; background: var(--panel-2); color: #5b4636; }
.calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.calc-keys button { border: none; background: var(--panel); padding: 15px 0; font-size: 16px; cursor: pointer; color: var(--ink); }
.calc-keys button:hover { background: var(--accent-soft); }
.calc-keys .op { background: var(--panel-2); color: var(--accent-deep); font-weight: 600; }
.calc-keys .eq { background: var(--accent); color: #fff; }
.calc-keys .span2 { grid-column: span 2; }
/* 财务公式 */
.fin-pane { padding: 12px 14px; max-height: 360px; overflow-y: auto; }
.fin-select { width: 100%; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 9px; font-size: 13px; background: var(--panel); color: var(--ink); font-family: inherit; margin-bottom: 10px; }
.fin-desc { font-size: 11.5px; color: var(--ink-soft); margin-bottom: 11px; line-height: 1.55; padding: 7px 9px; background: var(--panel-2); border-radius: 7px; }
.fin-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.fin-row label { flex: 0 0 104px; font-size: 12.5px; color: var(--ink); }
.fin-row input { flex: 1; min-width: 0; padding: 7px 9px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 13px; background: var(--panel-2); color: var(--ink); }
.fin-row input:focus { outline: none; border-color: var(--accent); background: #fff; }
.fin-calc-btn { width: 100%; margin-top: 4px; background: var(--accent); color: #fff; border: none; border-radius: 9px; padding: 9px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s; }
.fin-calc-btn:hover { background: var(--accent-deep); }
.fin-result { margin-top: 10px; padding: 10px 12px; background: var(--accent-soft); border: 1px solid #f0c79f; border-radius: 9px; font-size: 13px; color: #5b4636; white-space: pre-line; line-height: 1.55; }
/* 答题纸面板（点击图标弹出）：可拖拽（标题栏）+ 可拉伸大小（右下角原生 resize）+ 一键复制 */
.memo-panel {
  position: fixed; width: 340px; height: 400px; min-width: 250px; min-height: 250px; max-width: 92vw; max-height: 86vh;
  background: var(--panel); border-radius: 14px; box-shadow: 0 12px 40px rgba(91,70,54,.30); z-index: 70;
  display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--line); resize: both;
}
.memo-panel.open { display: flex; }
.memo-head { background: #5b4636; color: #fff; padding: 9px 12px 9px 14px; font-size: 13px; display: flex; align-items: center; gap: 8px; cursor: move; user-select: none; flex-shrink: 0; }
.memo-head .mh-title { flex: 1; white-space: nowrap; }
.memo-head .mh-grip { opacity: .5; font-size: 11px; white-space: nowrap; }
.memo-head button { background: none; border: none; color: #fff; font-size: 17px; cursor: pointer; line-height: 1; }
.memo-panel textarea {
  flex: 1; width: 100%; height: auto; border: none; border-radius: 0; padding: 12px 14px; resize: none;
  font-size: 13.5px; line-height: 1.6; background: var(--panel); color: var(--ink); max-height: none;
}
.memo-panel textarea:focus { outline: none; background: #fff; }
.memo-foot { display: flex; gap: 8px; padding: 10px 12px; background: var(--panel-2); border-top: 1px solid var(--line); }
.memo-foot button { flex: 1; padding: 9px; border-radius: 9px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; transition: all .15s; }
.memo-save { background: var(--accent); color: #fff; }
.memo-save:hover { background: var(--accent-deep); }
.memo-clear { background: #fff; color: var(--ink-soft); border: 1.5px solid var(--line); }
.memo-clear:hover { background: #f0e7d9; }
.memo-copy { background: #fff; color: var(--accent-deep); border: 1.5px solid var(--line); }
.memo-copy:hover { background: var(--accent-soft); border-color: var(--accent); }
.memo-hint { font-size: 11px; color: var(--ink-soft); padding: 0 14px 10px; background: var(--panel-2); }
/* 信息卡面板（点击图标弹出）：镜像答题纸——可拖拽（标题栏）+ 可拉伸（右下角原生 resize）+ 一键复制 */
.info-panel {
  position: fixed; width: 360px; height: 440px; min-width: 280px; min-height: 260px; max-width: 92vw; max-height: 86vh;
  background: var(--panel); border-radius: 14px; box-shadow: 0 12px 40px rgba(91,70,54,.30); z-index: 70;
  display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--line); resize: both;
}
.info-panel.open { display: flex; }
.info-head { background: #5b4636; color: #fff; padding: 9px 12px 9px 14px; font-size: 13px; display: flex; align-items: center; gap: 8px; cursor: move; user-select: none; flex-shrink: 0; }
.info-head .ih-title { flex: 1; white-space: nowrap; }
.info-head .ih-grip { opacity: .5; font-size: 11px; white-space: nowrap; }
.info-head button { background: none; border: none; color: #fff; font-size: 17px; cursor: pointer; line-height: 1; }
.info-body { flex: 1; overflow-y: auto; padding: 12px 12px 4px; background: var(--panel); }
.info-empty { padding: 32px 18px; text-align: center; font-size: 12.5px; line-height: 1.8; color: var(--ink-soft); }
.info-group { margin-bottom: 14px; }
.info-group .ig-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.info-group .ig-dot { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 13px; color: #fff; flex-shrink: 0; }
.info-group .ig-name { font-size: 13px; font-weight: 700; }
.info-group .ig-count { margin-left: auto; font-size: 11px; color: var(--ink-soft); }
.info-msg { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; margin-bottom: 7px; font-size: 12.5px; line-height: 1.6; color: var(--ink); word-break: break-word; }
.info-msg .md-table { font-size: 11.5px; }
.info-foot { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--panel-2); border-top: 1px solid var(--line); flex-shrink: 0; }
.info-foot .info-hint { flex: 1; font-size: 11px; color: var(--ink-soft); line-height: 1.4; }
.info-foot .info-copy { flex-shrink: 0; padding: 8px 14px; border-radius: 9px; font-size: 12.5px; font-weight: 600; cursor: pointer; background: #fff; color: var(--accent-deep); border: 1.5px solid var(--line); transition: all .15s; }
.info-foot .info-copy:hover { background: var(--accent-soft); border-color: var(--accent); }
/* 确认弹窗（终止模拟） */
.overlay { position: fixed; inset: 0; background: rgba(74,63,55,.42); z-index: 100; display: none; align-items: center; justify-content: center; }
.overlay.open { display: flex; }
.dialog { background: var(--panel); border-radius: 16px; width: 380px; max-width: 90vw; padding: 24px; box-shadow: 0 16px 50px rgba(91,70,54,.32); text-align: center; }
.dialog .d-icon { font-size: 34px; }
.dialog h3 { font-size: 17px; margin: 12px 0 8px; color: #5b4636; }
.dialog p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 20px; }
.dialog-btns { display: flex; gap: 10px; }
.dialog-btns button { flex: 1; padding: 11px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; }
.btn-cancel { background: var(--panel-2); color: var(--ink); border: 1.5px solid var(--line); }
.btn-cancel:hover { background: #f0e7d9; }
.btn-confirm { background: #b5482f; color: #fff; }
.btn-confirm:hover { background: #9c3a24; }
/* ===== 实训中心：列表(按等级分列，横向排布) ⇄ 详情，两屏左右推拉切换（主区整页·原为浮层弹窗）=====
   两屏都是 .course-dialog 的直接子级、position:absolute 各占满整块，展开时各自独立 translateX 推拉。
   返回键固定左上角（仅详情屏时出现）。 */
.course-dialog {
  position: relative; flex: 1; min-height: 0;
  background: var(--panel); overflow: hidden;
}
.cd-x, .cd-back { position: absolute; top: 15px; z-index: 6;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 10px; background: rgba(255,253,249,.78); backdrop-filter: blur(3px);
  color: var(--ink-soft); font-size: 15px; cursor: pointer; transition: background .14s, color .14s; }
.cd-x { right: 15px; }
.cd-back { left: 15px; display: none; }
.cd-back svg { width: 18px; height: 18px; }
.course-dialog.expanded .cd-back { display: flex; }
.cd-x:hover, .cd-back:hover { background: #efe4d3; color: var(--ink); }

/* 两屏各自 position:absolute 占满卡片，各自独立推拉（不共享轨道，各自相对自身宽度位移） */
.cd-slide { position: absolute; inset: 0; display: flex; flex-direction: column; min-height: 0;
  transition: transform .42s cubic-bezier(.22,.61,.36,1); }
.cd-slide-list { transform: translateX(0); z-index: 2; }
.cd-slide-detail { transform: translateX(100%); z-index: 3; }
.course-dialog.expanded .cd-slide-list { transform: translateX(-100%); }
.course-dialog.expanded .cd-slide-detail { transform: translateX(0); }

/* 列表屏：课程按等级分列，列横向排布——扁平化（无卡中卡）：列是纯文字分区+竖向分隔线，
   条目是纯行(悬停/选中变底色 + 左侧细色条)，不再套一层又一层的圆角卡片背景。 */
.cd-left-head { flex: none; padding: 26px 30px 14px; }
.cd-kicker { font-size: 17px; font-weight: 800; letter-spacing: .5px; color: #4a3826; }
.cd-hint { font-size: 12px; color: var(--ink-soft); margin-top: 5px; letter-spacing: .2px; }
.course-tools { display: flex; align-items: center; gap: 10px; margin-top: 14px; min-width: 0; }
.course-search {
  min-width: 180px; max-width: 320px; flex: 1 1 240px; display: flex; align-items: center; gap: 7px;
  padding: 0 10px; border: 1px solid var(--line); background: #fff; border-radius: 8px;
}
.course-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(200,112,61,.12); }
.course-search svg { width: 16px; height: 16px; flex: none; color: var(--ink-soft); }
.course-search input { width: 100%; min-width: 0; height: 34px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12.5px; }
.course-status-filter { display: flex; flex: none; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); }
.course-status-filter button {
  min-height: 30px; padding: 0 9px; border: 0; border-radius: 6px; background: transparent;
  color: var(--ink-soft); font-size: 11.5px; cursor: pointer; white-space: nowrap;
}
.course-status-filter button.active { background: #fff; color: var(--accent-deep); font-weight: 700; box-shadow: 0 1px 4px rgba(91,70,54,.12); }
.course-sort { height: 36px; flex: none; padding: 0 28px 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 11.5px; }
.course-list { flex: 1; min-height: 0; display: flex; flex-direction: row;
  padding: 2px 30px 22px; overflow-x: hidden; }

.cp-col { --lc: #8a5a36; flex: 1 1 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.cp-col + .cp-col { margin-left: 22px; padding-left: 22px; border-left: 1px solid var(--line); }
.cp-col-head { flex: none; padding-bottom: 9px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.cp-col-top { display: flex; align-items: center; gap: 7px; }
.cp-col-top::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--lc); flex: none; }
.cp-col-name { font-size: 13.5px; font-weight: 800; color: #4a3826; white-space: nowrap; }
.cp-col-en { display: block; margin: 3px 0 0 15px; font-size: 9.5px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.cp-col-count { margin-left: auto; flex: none; font-size: 11.5px; color: var(--ink-soft); }
.cp-col-items { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }

/* 课程条目：扁平行，无背景框，悬停/选中靠底色+左侧色条区分 */
.cp-item { padding: 10px 10px 10px 12px; cursor: pointer; border-left: 3px solid transparent;
  border-radius: 0 8px 8px 0; transition: background .14s, border-color .14s; }
.cp-item:hover { background: var(--panel-2); border-left-color: var(--lc); }
.cp-item.active { background: var(--accent-soft, #f6e7d6); border-left-color: var(--lc); }
.cp-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-width: 0; }
.cp-item .cp-title { min-width: 0; font-size: 13.5px; font-weight: 700; color: #4a3826; line-height: 1.4; }
.cp-pass-badge { flex: none; margin-top: 1px; padding: 2px 6px; border: 1px solid #b8d8bd; border-radius: 6px;
  color: #2f7044; background: #eef8ef; font-size: 10px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.cp-sync-badge { flex: none; margin-top: 1px; padding: 2px 6px; border: 1px solid #d8c69f; border-radius: 6px;
  color: #76541f; background: #fff8e8; font-size: 10px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.cp-retry-badge { flex: none; margin-top: 1px; padding: 2px 6px; border: 1px solid #e4b8ad; border-radius: 6px;
  color: #9a4935; background: #fff1ed; font-size: 10px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.cp-item .cp-sub { font-size: 12px; color: #8a7563; margin-top: 4px; line-height: 1.5; }
.cp-item .cp-meta { font-size: 11px; color: var(--ink-soft); margin-top: 5px; letter-spacing: .2px; }
.cp-progress-meta, .cd-progress-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; color: #6f755e; }
.cp-progress-meta { margin-top: 5px; font-size: 10.5px; }
.cd-progress-meta { margin-top: 10px; font-size: 12px; }
.cp-progress-meta i, .cd-progress-meta i { width: 3px; height: 3px; border-radius: 50%; background: #aeb39e; }
.cp-empty { font-size: 13px; color: var(--ink-soft); text-align: center; padding: 40px 24px; }

/* 详情屏：内容居中，为左上角返回键让出顶部空间 */
.cd-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 60px 40px 8px; }
.cd-scroll, .cd-confirm { width: 100%; max-width: 620px; margin-left: auto; margin-right: auto; box-sizing: border-box; }
.cd-slide-detail > * { opacity: 0; transform: translateY(6px); transition: opacity .3s ease .16s, transform .3s ease .16s; }
.course-dialog.expanded .cd-slide-detail > * { opacity: 1; transform: none; }
.cd-course { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--accent-deep);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cd-badge { font-size: 11px; font-weight: 700; letter-spacing: .3px; padding: 2px 9px; border-radius: 20px;
  border: 1px solid currentColor; background: transparent; }
.cd-h1 { font-size: 22px; font-weight: 700; color: #4a3826; margin: 10px 0 0; letter-spacing: .3px; line-height: 1.35; }
.cd-intro { font-size: 13.5px; color: #8a7563; line-height: 1.7; margin-top: 10px; }
.cd-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-soft); margin-top: 14px; }
.cd-meta i { width: 3px; height: 3px; border-radius: 50%; background: #cbb79f; }
.cd-sec { margin-top: 22px; }
.cd-sec-k { font-size: 12px; font-weight: 700; letter-spacing: .8px; color: var(--accent-deep);
  margin-bottom: 9px; display: flex; align-items: center; gap: 8px; }
.cd-sec-k::before { content: ""; width: 15px; height: 2px; border-radius: 2px; background: var(--accent); }
.cd-sec-v { font-size: 13.5px; color: #6a5442; line-height: 1.8; }
.cd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cd-chip { color: var(--accent-deep); background: transparent; border: 1px solid #e6cdb3;
  border-radius: 8px; padding: 5px 11px; font-size: 12.5px; font-weight: 600; }
.cd-confirm { margin: 12px auto 26px; padding: 14px; border-radius: 12px; font-size: 14.5px; font-weight: 700;
  letter-spacing: 1px; color: #fff; border: none; cursor: pointer; display: block;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  box-shadow: 0 8px 22px rgba(200,112,61,.28); transition: filter .15s, transform .1s; }
.cd-confirm:hover { filter: brightness(1.05); }
.cd-confirm:active { transform: translateY(1px); }

@media (max-width: 760px) {
  .course-list { flex-direction: column; overflow-x: hidden; overflow-y: auto; }
  .cp-col { flex: none; }
  .cp-col + .cp-col { margin-left: 0; padding-left: 0; border-left: none;
    margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
  .cp-col-items { overflow-y: visible; }
  .cd-scroll { padding: 56px 22px 8px; max-width: none; }
  .cd-confirm { margin: 12px 22px 22px; width: auto; max-width: none; }
}

/* ===== 实时评分进度：倒计时（剩余时间）下方的小进度条（RUBRIC_LIVE_ENABLED 开时显示）===== */
.rubric-bar { display: flex; align-items: center; gap: 8px; padding: 7px 12px; margin-top: 14px;
  background: linear-gradient(90deg, #eef7ee, #f4faf1); border: 1px solid #d8ead8; border-radius: 10px;
  font-size: 12px; color: #33663a; flex: 0 0 auto; }
.rubric-bar[hidden] { display: none; }
.rubric-bar .rb-label { white-space: nowrap; }
.rubric-bar .rb-label b { color: #2f8f45; font-weight: 700; }
.rubric-bar .rb-partial { margin-left: 5px; color: #8c6b24; }
.rubric-bar .rb-partial b { color: #8c6b24; }
.rubric-bar .rb-track { flex: 1; height: 7px; background: #dce9dc; border-radius: 4px; overflow: hidden; }
.rubric-bar .rb-fill { display: block; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, #57b86a, #3f9d55); transition: width .4s ease; }
.rubric-bar .rb-sync { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: #66806a; font-size: 10.5px; white-space: nowrap; }
.rubric-bar .rb-sync-dot { width: 6px; height: 6px; border-radius: 50%; background: #58a968; flex: none; }
.rubric-bar.is-syncing .rb-sync-dot { animation: rubricSyncPulse 1s ease-in-out infinite; }
.rubric-bar.is-offline { background: #fff6f1; border-color: #efc9bb; color: #8b4a37; }
.rubric-bar.is-offline .rb-sync { color: #9a4935; }
.rubric-bar.is-offline .rb-sync-dot { background: #c45e43; }
.rubric-bar .rb-retry { flex: none; padding: 3px 7px; border: 1px solid #dfa995; border-radius: 6px; background: #fff; color: #9a4935; font-size: 10.5px; cursor: pointer; }
.rubric-bar .rb-retry:hover { background: #fff0ea; }
@keyframes rubricSyncPulse { 50% { opacity: .35; transform: scale(.8); } }

.hit-badge { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 10px;
  background: #e6f6e8; color: #2f8f45; font-size: 12px; font-weight: 700; border: 1px solid #bfe6c6;
  vertical-align: middle; cursor: default; }

/* ===== 邀请码登录层（INVITE_AUTH_ENABLED 开时显示）===== */
.auth-input { width: 100%; box-sizing: border-box; padding: 11px 12px; border-radius: 10px;
  border: 1.5px solid var(--line, #e3d5c3); background: var(--panel-2, #fbf4e9); font-size: 15px;
  text-align: center; letter-spacing: 2px; color: #5b4636; outline: none; }
.auth-input:focus { border-color: #c8703d; }
.auth-err { min-height: 18px; margin-top: 8px; font-size: 12.5px; color: #b0432f; }
.btn-primary { background: #c8703d; color: #fff; }
.btn-primary:hover { background: #b7602f; }
/* 登录/注册弹层的 tab 切换 + 个人账号表单（用户体系一期） */
.auth-tabs { display: flex; gap: 6px; margin: 4px 0 14px; border-bottom: 1.5px solid var(--line, #e3d5c3); }
.auth-tab { flex: 1; padding: 9px 0; border: none; background: none; cursor: pointer;
  font-size: 14px; color: #9b8468; border-bottom: 2px solid transparent; margin-bottom: -1.5px; }
.auth-tab.active { color: #c8703d; border-bottom-color: #c8703d; font-weight: 600; }
#authUser .auth-input, #pfEmailRow .auth-input, #pfPwRow .auth-input {
  margin-top: 8px; text-align: left; letter-spacing: normal; }
#authUser .ph-note a { color: #9b8468; }
/* 智能体工坊：详情页单聊（独立于案例模拟的轻量气泡） */
.ua-chat { height: 320px; overflow-y: auto; background: var(--panel-2, #fbf4e9);
  border: 1px solid var(--line, #e3d5c3); border-radius: 10px; padding: 10px; }
.ua-msg { display: flex; gap: 8px; margin: 8px 0; align-items: flex-start; }
.ua-msg.student { justify-content: flex-end; }
.ua-ava { width: 30px; height: 30px; border-radius: 50%; background: #efe3d0;
  display: flex; align-items: center; justify-content: center; font-size: 17px; flex: none; }
.ua-bubble { max-width: 82%; background: #fff; border: 1px solid var(--line, #e3d5c3);
  border-radius: 10px; padding: 8px 11px; font-size: 13.5px; line-height: 1.6; color: #4a3c2e;
  overflow-wrap: break-word; }
.ua-bubble.me { background: #c8703d; color: #fff; border-color: #c8703d; }

/* 导师学习问答（智能体→导师 的单聊页） */
.mentor-chat-card { max-width: 720px; background: var(--panel); border: 1px solid var(--line, #e3d5c3);
  border-radius: 14px; padding: 16px 18px; margin-top: 14px; }
.mentor-chat-card .ua-chat { height: 46vh; min-height: 300px; }
.mentor-input { display: flex; gap: 8px; margin-top: 10px; align-items: flex-end; }
.mentor-input textarea { flex: 1; resize: none; max-height: 140px; border: 1px solid var(--line, #e3d5c3);
  border-radius: 12px; padding: 10px 12px; font-family: inherit; font-size: 14px; line-height: 1.5;
  background: var(--panel-2, #fbf4e9); color: var(--ink); }
.mentor-input textarea:focus { outline: none; border-color: var(--accent); }
.mentor-input .ph-btn { flex: none; }

/* ===== 建课工作台（创建案例） ===== */
.aw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
@media (max-width: 1100px) { .aw-grid { grid-template-columns: 1fr; } }
.aw-card { background: var(--panel); border: 1px solid var(--line, #e3d5c3); border-radius: 14px; padding: 16px 18px; margin-top: 14px; }
.aw-card h3 { font-size: 14px; color: #5b4636; margin-bottom: 10px; }
.aw-row { margin-bottom: 10px; }
.aw-row label { display: block; font-size: 12.5px; color: var(--ink-soft); margin-bottom: 4px; }
.aw-row input, .aw-row textarea, .aw-line input, .aw-line textarea, #awSolution {
  width: 100%; box-sizing: border-box; padding: 8px 10px; border-radius: 8px; font-size: 13px;
  border: 1.5px solid var(--line, #e3d5c3); background: var(--panel-2, #fbf4e9); color: #5b4636; outline: none; }
.aw-row input:focus, .aw-row textarea:focus, .aw-line input:focus, .aw-line textarea:focus { border-color: #c8703d; }
.aw-line { display: flex; gap: 6px; margin-bottom: 6px; align-items: flex-start; }
.aw-dim .w-id { width: 52px; flex: none; } .aw-dim .w-weight { width: 70px; flex: none; }
.aw-point .w-pid { width: 56px; flex: none; } .aw-point .w-pdim { width: 44px; flex: none; } .aw-point .w-pmarks { width: 58px; flex: none; }
.aw-block { border: 1px dashed var(--line, #e3d5c3); border-radius: 10px; padding: 8px; margin-bottom: 8px; }
.aw-del { flex: none; width: 26px; height: 30px; border: none; border-radius: 8px; background: #f3e3d3; color: #a85a2d; cursor: pointer; font-size: 15px; }
.aw-del:hover { background: #ecd2ba; }
.aw-add { margin-top: 4px; padding: 6px 12px; border: 1.5px dashed #c8703d; background: transparent; color: #c8703d; border-radius: 8px; cursor: pointer; font-size: 12.5px; }
.aw-actions { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.aw-status { font-size: 13px; color: var(--ink-soft); }
.aw-check { font-size: 12.5px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 5px; }
/* 门禁配置块：挂在智能体行内，字段由后端 guard_fields 决定（数量随角色变） */
.aw-guard { margin-top: 8px; padding: 8px 10px; border-left: 2px solid #e0c6a8; background: rgba(200, 112, 61, .04); border-radius: 0 8px 8px 0; }
.aw-guard:empty { display: none; }
.aw-guard .aw-row:last-child { margin-bottom: 0; }
.aw-guard-h { color: #a85a2d; font-weight: 600; margin: 0 0 6px; }

/* ===== 创建智能体页：铺满整个主区（除左侧导航）；#wsForm 本身不再限宽，
   只把姓名/头像/人设等窄字段单独限宽到 640px，画布区用满整行 ===== */
.view-create-agent .page-wrap { max-width: none; }
.view-create-agent .page-head p { max-width: 760px; }
/* V2 画布优先：进页即满屏画布（bundle 内含模板弹窗/测试面板），状态行贴底 */
.ws-canvas-wrap { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 12px 14px 6px; }
.ws-canvas-wrap[hidden] { display: none; }   /* 类的 display:flex 会压过 UA 的 [hidden]，显式补回 */
.ws-canvas-wrap #canvas2Root { flex: 1; min-height: 0; }
.ws-canvas-wrap .aw-status { padding: 4px 2px 0; }
.aw-basic-fields { max-width: 640px; }
.aw-qa { margin-top: 10px; font-size: 13px; line-height: 1.8; }
.aw-qa .ok, #awSumBadge .ok { color: #2f8f45; }
.aw-qa .bad, #awSumBadge .bad { color: #b0432f; }
.aw-qa .warn { color: #a1770f; }

/* ===== 个人中心：头像与身份 ===== */
.pf-id-row { display: flex; align-items: center; gap: 16px; margin: 6px 0 14px; }
.pf-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--panel-2, #fbf4e9);
  border: 2px solid var(--line, #e3d5c3); display: flex; align-items: center; justify-content: center;
  font-size: 40px; overflow: hidden; flex: none; }
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-center .uc-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.msg .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.pf-name { font-size: 14px; font-weight: 600; color: #5b4636; }
.pf-idline { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.pf-idline code { font-size: 12px; color: var(--ink-soft); word-break: break-all; }
.pf-role { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; }

/* ── 积分与排行榜（个人中心）───────────────────────────────────── */
.pf-points-notice {
  display: flex; align-items: center; gap: 10px; margin-top: 14px;
  padding: 11px 14px; border-radius: 12px;
  background: #fdf3e6; border: 1px solid #f0d9bd; color: #8a5a2d; font-size: 13px;
}
.pf-points-notice[hidden] { display: none; }   /* display:flex 会盖过 hidden 属性，需显式兜底 */
.pf-points-notice .pn-ic { flex: none; }
.pf-points-notice .pn-text { flex: 1; line-height: 1.5; }
.pf-points-notice .pn-x { flex: none; border: 0; background: transparent; cursor: pointer;
  font-size: 18px; line-height: 1; color: #b98a55; padding: 2px 4px; }
.pf-points-notice .pn-x:hover { color: #8a5a2d; }

.pf-points-grid { display: grid; grid-template-columns: 260px 1fr; gap: 14px; margin-top: 14px; }
@media (max-width: 900px) { .pf-points-grid { grid-template-columns: 1fr; } }
.pf-score-card, .pf-board-card {
  background: var(--panel); border: 1px solid var(--line, #e3d5c3); border-radius: 14px; padding: 16px 18px;
}
.pf-score-card { background: linear-gradient(150deg, #fff8ef, #fdeede);
  border-color: #f0dcc4; display: flex; flex-direction: column; }
.psc-label { font-size: 13px; color: var(--ink-soft); }
.psc-num { font-size: 46px; font-weight: 700; line-height: 1.1; margin: 4px 0 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.psc-sub { font-size: 13px; color: #5b4636; }
.psc-sub b { color: var(--accent-deep); }
.psc-hint { margin-top: auto; padding-top: 12px; font-size: 11.5px; color: var(--ink-soft); line-height: 1.6; }
.psc-rules-link { align-self: flex-start; margin-top: 8px; padding: 0; border: none; background: none;
  font-size: 12px; font-weight: 600; color: var(--accent-deep); cursor: pointer; text-decoration: underline; }
.psc-rules-link:hover { opacity: .82; }

/* 积分规则弹窗：比默认 .dialog 宽、左对齐正文 */
.pr-dialog { width: 460px; text-align: left; }
.pr-dialog h3 { text-align: center; }
.pr-body { max-height: 62vh; overflow-y: auto; margin-bottom: 18px; }
.pr-sec { margin: 14px 0; }
.pr-sec h4 { font-size: 13.5px; font-weight: 700; color: #5b4636; margin: 0 0 6px; }
.pr-sec p { font-size: 13px; color: var(--ink-soft); line-height: 1.65; margin: 0; }
.pr-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pr-table th, .pr-table td { padding: 7px 10px; border-bottom: 1px solid rgba(91,70,54,.12); text-align: left; }
.pr-table th { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.pr-table td { color: #5b4636; }
.pr-table .pr-pts { text-align: right; font-weight: 700; color: var(--accent-deep); }

.pbc-head { font-size: 14px; font-weight: 600; color: #5b4636; margin-bottom: 10px; }
.pf-board { display: flex; flex-direction: column; gap: 2px; }
.pb-empty { font-size: 13px; color: var(--ink-soft); padding: 12px 2px; }
.pb-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; font-size: 13.5px; }
.pb-row:hover { background: var(--panel-2, #fbf4e9); }
.pb-row.me { background: var(--accent-soft, #f6e7d6); }
.pb-row.pb-mine { margin-top: 6px; border-top: 1px dashed var(--line, #e3d5c3); border-radius: 0 0 10px 10px; }
.pb-rank { flex: none; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 12.5px; font-weight: 700; color: #fff; background: #c9b79f; }
.pb-rank-1 { background: linear-gradient(135deg, #e8b64b, #c98f2b); }
.pb-rank-2 { background: linear-gradient(135deg, #c3c7cc, #9aa0a8); }
.pb-rank-3 { background: linear-gradient(135deg, #d9a878, #b9835a); }
.pb-name { flex: 1; color: #4a3f37; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-name b { color: var(--accent-deep); font-weight: 600; }
.pb-pts { flex: none; font-weight: 600; color: var(--accent-deep); }

/* ── 能力画像（个人中心）───────────────────────────────────── */
.pf-comp[hidden] { display: none; }
.pf-comp { margin-top: 16px; }
.wa-empty { margin-top: 18px; padding: 28px; text-align: center; color: var(--ink-soft); background: var(--panel); border: 1px dashed var(--line); border-radius: 14px; }
.wa-empty[hidden] { display: none; }
.pf-comp-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pf-comp-head h3 { font-size: 15px; color: #5b4636; }
.pf-comp-sub { font-size: 12px; color: var(--ink-soft); }
/* 能力雷达卡：居中置顶的概览 */
.pf-radar-card { background: var(--panel); border: 1px solid var(--line, #e3d5c3); border-radius: 14px;
  padding: 12px 10px 16px; margin: 12px auto 0; max-width: 360px;
  display: flex; flex-direction: column; align-items: center; }
.rr-svg { width: 100%; max-width: 340px; height: auto; }
.rr-ring { fill: none; stroke: #ece0cf; stroke-width: 1; }
.rr-spoke { stroke: #ece0cf; stroke-width: 1; }
.rr-area { fill: rgba(200,112,61,.20); stroke: var(--accent); stroke-width: 2; }
.rr-dot { fill: var(--accent-deep); }
.rr-label { font-size: 10.5px; fill: #6b5335; font-weight: 600; }
.rr-label-en { font-size: 8.5px; fill: #a08a6f; font-weight: 500; letter-spacing: .2px; }
.pf-radar-band { margin-top: 8px; font-size: 13px; color: #5b4636; }
.pf-radar-band b { color: var(--accent-deep); }

/* 能力维度大卡：置顶、更大、按屏宽自适应多列 */
.pf-comp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px; margin-top: 16px; }
.cmp-row { background: var(--panel); border: 1px solid var(--line, #e3d5c3); border-radius: 13px; padding: 14px 16px; }
.cmp-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cmp-name { font-size: 15.5px; font-weight: 700; color: #4a3f37; }
.cmp-level { flex: none; font-size: 11.5px; font-weight: 700; color: #fff; padding: 3px 11px; border-radius: 10px; }
.cmp-std { font-size: 11.5px; color: var(--ink-soft); margin-top: 6px; line-height: 1.5; }

/* 证据信息：整体下移到底部，按维度归集 */
.pf-comp-evidence { margin-top: 16px; background: #faf5ee; border: 1px solid #ecdcc6; border-radius: 12px; padding: 12px 16px; }
.pf-comp-evidence:empty { display: none; }
.cev-title { font-size: 13px; font-weight: 700; color: #5b4636; margin-bottom: 6px; }
.cev-row { display: flex; gap: 12px; font-size: 11.5px; padding: 7px 0; border-top: 1px solid #efe2d0; }
.cev-dim { flex: 0 0 160px; font-weight: 600; color: #4a3f37; }
.cev-list { flex: 1; color: #7a6552; line-height: 1.6; }
@media (max-width: 560px) { .cev-row { flex-direction: column; gap: 2px; } .cev-dim { flex: none; } }
.pf-comp-recs { margin-top: 16px; background: #fdf6ec; border: 1px solid #f0dcc4; border-radius: 12px; padding: 12px 14px; }
.pf-comp-recs:empty { display: none; }
.cmp-recs-h { font-size: 12.5px; font-weight: 700; color: var(--accent-deep); margin-bottom: 6px; }
.cmp-rec { font-size: 12.5px; color: #6b5335; line-height: 1.7; }
.pf-picker { margin-top: 10px; padding: 10px; border: 1px dashed var(--line, #e3d5c3); border-radius: 10px; }
.pf-emojis { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-bottom: 8px; }
.pf-emoji { font-size: 22px; padding: 6px 0; border: 1px solid transparent; background: var(--panel-2, #fbf4e9);
  border-radius: 8px; cursor: pointer; }
.pf-emoji:hover { border-color: #c8703d; }
.pf-upload { display: inline-block; font-size: 12.5px; color: #c8703d; cursor: pointer;
  border: 1.5px dashed #c8703d; padding: 6px 12px; border-radius: 8px; }
#awSumBadge b { margin-right: 8px; font-weight: 600; }

/* ===== 全屏强制登录页（authRequired 且无 token 时整页接管，App 不可见） ===== */
body.auth-locked .app { display: none !important; }
.auth-page { display: none; position: fixed; inset: 0; z-index: 1000; background: #faf6ee; }
.auth-page.open { display: grid; grid-template-columns: 1.15fr 1fr; }
.auth-brand { display: flex; flex-direction: column; justify-content: center; padding: 8vh 7vw;
  background: linear-gradient(135deg, #8a5a36 0%, #c0612e 55%, #c8703d 100%); color: #fff8ef; }
.ab-logo { font-size: 34px; letter-spacing: 1px; }
.ab-logo b { font-weight: 700; }
.ab-slogan { margin-top: 12px; font-size: 16px; opacity: .92; }
.ab-feats { margin-top: 5vh; list-style: none; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.ab-feats li { font-size: 14.5px; opacity: .95; background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 12px 16px; max-width: 420px; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 380px; max-width: 92vw; background: #fffdf9; border: 1px solid #e3d5c3;
  border-radius: 16px; padding: 30px 30px 24px; box-shadow: 0 12px 40px rgba(90,60,30,.10); }
.auth-card h3 { font-size: 20px; color: #5b4636; margin-bottom: 16px; letter-spacing: 6px; }
@media (max-width: 900px) {
  .auth-page.open { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto; }
  .auth-brand { padding: 26px 22px; }
  .ab-logo { font-size: 24px; }
  .ab-feats { display: none; }   /* 手机上只留 logo+slogan，别把表单挤出屏 */
  .auth-panel { align-items: flex-start; padding-top: 28px; }
}

/* ===== 首页（落地页）===== */
.landing-page { display: none; position: fixed; inset: 0; z-index: 900; overflow-y: auto;
  background: linear-gradient(180deg, #fff8ee 0%, #faf3e6 55%, #f6ecdb 100%); }
.landing-page.open { display: block; }
.lp-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 4vw; position: sticky; top: 0; background: rgba(255,248,238,.86);
  backdrop-filter: blur(8px); border-bottom: 1px solid #eadfcb; z-index: 2; }
.lp-brand { font-size: 20px; color: #5b4636; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-brand b { font-weight: 700; }
.lp-actions { display: flex; gap: 10px; }
.lp-btn-primary { background: #c8703d; color: #fff; border: none; border-radius: 10px;
  padding: 9px 22px; font-size: 14px; cursor: pointer; font-weight: 600; white-space: nowrap; }
.lp-btn-primary:hover { background: #b7602f; }
.lp-btn-ghost { background: transparent; color: #8a5a36; border: 1.5px solid #d8c4a8;
  border-radius: 10px; padding: 9px 18px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.lp-btn-ghost:hover { border-color: #c8703d; color: #c8703d; }
.lp-hero { text-align: center; padding: 9vh 6vw 6vh; }
.lp-hero h1 { font-size: clamp(28px, 4.2vw, 46px); color: #4a3826; letter-spacing: 2px; }
.lp-sub { margin-top: 16px; font-size: clamp(14px, 1.4vw, 17px); color: #7a6248; line-height: 1.9; }
.lp-cta { margin-top: 34px; font-size: 17px; padding: 14px 44px; border-radius: 12px;
  box-shadow: 0 8px 26px rgba(200,112,61,.30); }
.lp-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px;
  padding: 0 6vw 6vh; max-width: 1180px; margin: 0 auto; }
.lp-card { background: #fffdf9; border: 1px solid #e8dcc6; border-radius: 16px; padding: 22px 20px;
  box-shadow: 0 6px 20px rgba(90,60,30,.06); }
.lp-ic { font-size: 30px; }
.lp-card h3 { margin: 10px 0 8px; font-size: 16px; color: #5b4636; }
.lp-card p { font-size: 13.5px; color: #7a6248; line-height: 1.8; }
.lp-foot { text-align: center; padding: 20px 0 30px; font-size: 12.5px; color: #a58c6f; }
/* 登录页右上角「返回首页」 */
.auth-back-home { position: absolute; top: 20px; right: 24px; z-index: 3; }
.auth-page { position: fixed; }   /* 确保绝对定位子元素有参照 */

/* ===== 新手使用引导浮窗（类 Claude Code：轻量欢迎卡，不压暗全屏） =====
   三态：full（居中大卡，点悬浮球/顶栏「使用指南」才展开）→ mini（右下角小卡，不遮挡操作）
   → fab（右下角悬浮小图标，首访即显示，也是最小化后的收起态）。 */
.guide-overlay {
  position: fixed; z-index: 300;
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 20px 60px rgba(91,70,54,.34);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .26s cubic-bezier(.2,.8,.3,1),
              width .26s cubic-bezier(.2,.8,.3,1), height .26s cubic-bezier(.2,.8,.3,1),
              left .26s cubic-bezier(.2,.8,.3,1), top .26s cubic-bezier(.2,.8,.3,1),
              right .26s cubic-bezier(.2,.8,.3,1), bottom .26s cubic-bezier(.2,.8,.3,1);
}
.guide-overlay.open { opacity: 1; pointer-events: auto; }
/* full：屏幕居中，配一层半透明遮罩背景（遮罩是独立元素，见 .guide-scrim） */
.guide-overlay.mode-full {
  left: 50%; top: 50%; width: 480px; max-width: calc(100vw - 48px); max-height: 88vh;
  transform: translate(-50%, calc(-50% + 10px)) scale(.98);
}
.guide-overlay.mode-full.open { transform: translate(-50%, -50%) scale(1); }
/* mini：贴近悬浮球展开，left/top 由 JS 动态写入 */
.guide-overlay.mode-mini {
  width: 300px; max-height: 60vh;
  transform: translateY(10px) scale(.98);
}
.guide-overlay.mode-mini.open { transform: none; }
.guide-card { position: relative; max-height: inherit; overflow-y: auto; padding: 22px 22px 16px; }
.mode-mini .guide-card { padding: 16px 16px 12px; }
.guide-scrim {
  position: fixed; inset: 0; z-index: 299; background: rgba(74,63,55,.28);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.guide-scrim.open { opacity: 1; pointer-events: auto; }
.gd-close, .gd-mini {
  position: absolute; top: 14px; width: 28px; height: 28px; border: none;
  background: none; color: var(--ink-soft); line-height: 1; cursor: pointer;
  border-radius: 8px; transition: all .12s; display: grid; place-items: center;
}
.gd-close { right: 14px; font-size: 20px; }
.gd-mini { right: 44px; font-size: 14px; }
.mode-mini .gd-close, .mode-mini .gd-mini { top: 10px; }
.mode-mini .gd-close { right: 10px; } .mode-mini .gd-mini { right: 38px; }
.gd-close:hover, .gd-mini:hover { background: var(--panel-2); color: #5b4636; }
.gd-head { display: flex; gap: 14px; align-items: flex-start; padding-right: 24px; }
.gd-logo {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center;
  font-size: 24px; background: var(--accent-soft); box-shadow: var(--warm-shadow);
}
.gd-head h3 { font-size: 18px; color: #5b4636; margin: 2px 0 6px; }
.gd-sub { font-size: 13px; color: var(--ink-soft); line-height: 1.7; }
.gd-progress { margin: 16px 0 4px; }
.gd-progress-track { height: 6px; border-radius: 4px; background: var(--panel-2); overflow: hidden; margin-top: 6px; }
.gd-progress-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width .3s cubic-bezier(.2,.8,.3,1); width: 0%; }
#gdProgressText { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.gd-tips { margin: 18px 0 14px; display: flex; flex-direction: column; gap: 12px; max-height: 46vh; overflow-y: auto; }
.gd-tip {
  display: flex; gap: 12px; align-items: flex-start;
  opacity: 0; transform: translateX(-8px);
  transition: opacity .32s ease, transform .32s cubic-bezier(.2,.8,.3,1), background-color .2s;
}
.guide-overlay.open .gd-tip { opacity: 1; transform: none; }
.guide-overlay.open .gd-tip:nth-child(1) { transition-delay: .06s; }
.guide-overlay.open .gd-tip:nth-child(2) { transition-delay: .12s; }
.guide-overlay.open .gd-tip:nth-child(3) { transition-delay: .18s; }
.guide-overlay.open .gd-tip:nth-child(4) { transition-delay: .24s; }
.guide-overlay.open .gd-tip:nth-child(5) { transition-delay: .30s; }
.guide-overlay.open .gd-tip:nth-child(6) { transition-delay: .36s; }
.guide-overlay.open .gd-tip:nth-child(7) { transition-delay: .42s; }
.gd-tip-ic {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center;
  font-size: 15px; font-weight: 700; color: var(--accent-deep); background: var(--accent-soft);
  transition: background-color .2s, color .2s;
}
.gd-tip-t { font-size: 14px; font-weight: 600; color: #5b4636; margin-bottom: 2px; }
.gd-tip-d { font-size: 12.5px; color: var(--ink-soft); line-height: 1.65; }
.gd-tip-done .gd-tip-t, .gd-tip-done .gd-tip-d { color: #9c9086; text-decoration: line-through; }
.gd-tip-done .gd-tip-ic { background: #dcead0; color: #5c8a3a; }
/* mini 态：卡片变小，头图/说明收起，只留标题+进度+任务行，随手展开继续划勾 */
.mode-mini .gd-logo, .mode-mini .gd-sub { display: none; }
.mode-mini .gd-head h3 { font-size: 14px; margin: 0; padding-right: 46px; }
.mode-mini .gd-progress { margin: 10px 0 2px; }
.mode-mini .gd-tips { margin: 10px 0 8px; max-height: 34vh; gap: 8px; }
.mode-mini .gd-tip-d { display: none; }
.mode-mini .gd-tip-t { font-size: 12.5px; margin-bottom: 0; }
.mode-mini .gd-tip-ic { width: 24px; height: 24px; font-size: 12px; }
.mode-mini .gd-foot { display: none; }
.gd-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gd-nomore { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-soft); cursor: pointer; }
.gd-nomore input { cursor: pointer; }
.gd-btn {
  background: var(--accent); color: #fff; border: none; border-radius: 11px;
  padding: 10px 20px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s;
}
.gd-btn:hover { background: var(--accent-deep); }
@media (max-width: 560px) {
  .guide-card { width: 100%; padding: 22px 18px 16px; }
  .gd-foot { flex-direction: column-reverse; align-items: stretch; }
  .gd-btn { width: 100%; }
}

/* 收起后的悬浮清单小图标（默认右下角，常驻显示完成度；支持拖动到任意位置，点击可重新展开） */
.guide-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 290;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 22px;
  padding: 8px 14px 8px 10px; box-shadow: 0 8px 24px rgba(91,70,54,.22);
  cursor: grab; opacity: 0; transform: translateY(10px) scale(.96);
  transition: opacity .22s ease, transform .22s cubic-bezier(.2,.8,.3,1), border-color .15s;
  touch-action: none; user-select: none;
}
.guide-fab.open { opacity: 1; transform: none; }
.guide-fab:hover { border-color: var(--accent); }
/* 拖动中：关闭过渡动画，避免跟手感变差；光标切换为「抓取中」 */
.guide-fab.dragging { transition: none; cursor: grabbing; }
/* 拖动后改用 left/top 定位，需让出 right/bottom 空间 */
.guide-fab.positioned { right: auto; bottom: auto; }
.gd-fab-ic { font-size: 16px; }
.gd-fab-count { font-size: 12.5px; font-weight: 700; color: var(--accent-deep); }

/* ===== 全局轻量 toast（情境式引导提示，不阻塞操作） ===== */
.app-toast {
  position: fixed; left: 50%; bottom: 88px; z-index: 400; max-width: 420px;
  transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
  background: #4a3f37; color: #fff; font-size: 13px; line-height: 1.6;
  padding: 10px 16px; border-radius: 10px; box-shadow: 0 10px 30px rgba(74,63,55,.28);
  transition: opacity .22s ease, transform .22s cubic-bezier(.2,.8,.3,1);
}
.app-toast.open { opacity: 1; transform: translate(-50%, 0); }

/* 带操作按钮的 toast（如「知道啦，下次不用提醒」一类一次性确认提示） */
.app-toast-action { display: flex; align-items: center; gap: 12px; max-width: 480px; }
.at-msg { flex: 1; }
.at-btn {
  flex-shrink: 0; background: rgba(255,255,255,.16); color: #fff; border: none;
  border-radius: 8px; padding: 6px 12px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: background .15s; white-space: nowrap;
}
.at-btn:hover { background: rgba(255,255,255,.28); }

/* 首次能力测评：独立于正式案例表现画像 */
.oa-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.48);
}

.oa-modal {
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  position: relative;
  border-radius: 16px;
  background: #fff;
  color: #172033;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
  padding: 28px;
}

.oa-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  font-size: 20px;
  cursor: pointer;
}

.oa-eyebrow {
  margin: 0 0 8px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
}

.oa-modal h2,
.oa-profile-head h3 {
  margin: 0;
}

.oa-desc,
.oa-profile-head p,
.oa-muted {
  color: #64748b;
  line-height: 1.6;
}

.oa-questions {
  display: grid;
  gap: 16px;
  margin: 22px 0;
}

.oa-question {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
}

.oa-question legend {
  padding: 0 6px;
  font-weight: 700;
}

.oa-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  cursor: pointer;
}

.oa-option input {
  margin-top: 3px;
}

.oa-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.oa-primary,
.oa-secondary {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.oa-primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.oa-secondary {
  background: #fff;
  color: #334155;
}

.oa-profile-card {
  margin-bottom: 16px;
}

.oa-profile-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.oa-status {
  flex: none;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.oa-score-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.oa-score-row {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) 42px minmax(120px, 2fr);
  gap: 10px;
  align-items: center;
}

.oa-score-row strong {
  text-align: right;
}

.oa-score-bar {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.oa-score-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2563eb;
}

.oa-profile-action {
  margin-top: 14px;
}

/* 学前测评整页（#viewAssessment）：复用 .page-wrap 的居中定宽+整页滚动 */
.oa-page-body { width: 100%; }
.oa-page-head { margin-bottom: 20px; }
.oa-page-head h2 { margin: 4px 0 8px; font-size: 24px; color: #172033; }
.oa-page-loading {
  padding: 60px 0;
  text-align: center;
  color: #94a3b8;
  font-size: 15px;
}

/* 说明页（第一页）：价值主张 + 要点 */
.oa-modal-body { display: block; }
.oa-intro {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 18px 0 22px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}
.oa-intro-icon {
  flex: none;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  border-radius: 12px;
  background: #eff6ff;
}
.oa-intro-lead { margin: 0 0 10px; color: #172033; font-size: 15px; line-height: 1.6; }
.oa-intro-points { margin: 0; padding-left: 18px; color: #475569; line-height: 1.9; }
.oa-intro-points strong { color: #172033; }

/* 结果步：总分 + 定级 + 水平判断 + 学习建议（复用暖色调） */
.oa-result-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 12px;
}
.oa-result-score {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.oa-result-score strong {
  font-size: 34px;
  font-weight: 800;
  color: #b45309;
  line-height: 1;
}
.oa-result-score span { color: #94a3b8; font-size: 14px; }
.oa-band {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
}
.oa-result-judge {
  margin: 0 0 12px;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}
.oa-result-advice {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
}
.oa-result-advice b { color: #92400e; font-size: 13px; }
.oa-result-advice span { color: #78716c; font-size: 13px; line-height: 1.6; }
.oa-result-dims { margin-top: 4px; }

@media (max-width: 640px) {
  .oa-modal-backdrop {
    align-items: flex-end;
    padding: 12px;
  }

  .oa-modal {
    max-height: calc(100vh - 24px);
    padding: 22px;
  }

  .oa-score-row {
    grid-template-columns: 1fr 38px;
  }

  .oa-score-bar {
    grid-column: 1 / -1;
  }
}

/* ===== 导师教学中枢（H1-H4）：画像区 + 方向卡 + 教研组栏 + 复习自评 ===== */
.md-wrap { margin-bottom: 14px; max-width: 720px; }
.md-dims { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 22px; margin: 10px 0 4px; }
@media (max-width: 900px) { .md-dims { grid-template-columns: 1fr; } }
.md-dim { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #5b4636; }
.md-name { width: 108px; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-track { flex: 1; height: 8px; border-radius: 4px; background: #efe3d0; overflow: hidden; }
.md-fill { display: block; height: 100%; border-radius: 4px; background: #c8703d; }
.md-val { width: 36px; text-align: right; color: #9b8468; }
.md-cards { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.md-card { flex: 1; min-width: 200px; background: var(--panel-2, #fbf4e9); border: 1px solid var(--line, #e3d5c3);
  border-radius: 10px; padding: 10px 12px; font-size: 13px; color: #4a3c2e; }
.md-card b { font-size: 13.5px; }
.md-card p { margin: 6px 0; color: #7a6a55; font-size: 12.5px; line-height: 1.5; }
.mt-faculty { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 6px 2px 10px; }
.mt-prof { font-size: 12px; padding: 3px 9px; border-radius: 20px; border: 1px solid var(--line, #e3d5c3);
  background: #fff; color: #7a6a55; transition: all .3s; }
.mt-prof.lit { background: #c8703d; color: #fff; border-color: #c8703d; }
.mt-seg-name { font-size: 12px; color: #9b8468; margin-bottom: 2px; }
.md-review-row { display: flex; gap: 8px; margin: 6px 0 6px 46px; }

/* ===== 教学中枢 V2：即时练习（讲授后选择题）===== */
/* 缩进 46px：对齐 .msg 头像宽度 36px + gap 10px（导师单聊整页复用 .msg/.avatar 后的新尺寸） */
.mt-quiz-offer { margin: 8px 0 8px 46px; padding: 10px 12px; background: var(--panel-2, #fbf4e9);
  border: 1px dashed var(--line, #e3d5c3); border-radius: 10px; font-size: 13px; color: #5b4636;
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
/* 知识中心：整页单滚动条（贴窗口最右）+ 知识树右栏常驻导航（rail）：sticky 固定、内部头部再 sticky */
.page-wrap.kc-flush { overflow: hidden auto; }
.kc-flush .chat { overflow: visible; flex: 1 0 auto; }
.kc-flush .mentor-side { position: sticky; top: 0; align-self: flex-start; max-height: 100vh; overflow-y: auto;
  width: 344px; padding: 0; border-left: 1px solid var(--line); background: var(--panel-2); }

/* 知识中心：空态「学习总览」hero（垂直居中，占住中部空白，推荐入口 + 整体进度） */
.kc-hero { align-self: center; max-width: 560px; min-height: 56vh; margin: 0 auto; padding: 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.kc-hero-ic { font-size: 44px; line-height: 1; margin-bottom: 14px; }
.kc-hero-h { font-size: 20px; font-weight: 700; color: #5b4636; margin-bottom: 10px; }
.kc-hero-sub { font-size: 13.5px; color: var(--ink-soft); line-height: 1.75; margin-bottom: 20px; }
.kc-hero-sub b { color: var(--accent-deep); }
.kc-hero-cta { display: flex; flex-direction: column; align-items: stretch; gap: 12px; width: 100%; max-width: 360px; }
.kc-hero-start { width: 100%; }
.kc-hero-resume { border: 1px solid var(--line); background: var(--panel); color: #5b4636; border-radius: 11px;
  padding: 9px 16px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; }
.kc-hero-resume:hover { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-soft); }
.kc-hero-prog { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 2px; }
.kc-hero-tip { font-size: 12px; color: var(--ink-soft); margin-top: 22px; }

/* 知识中心「基础知识」：右侧常驻知识树导航 rail（头部进度/CTA sticky + 两层常显树体） */
.kc-nav { display: flex; flex-direction: column; }
.kc-nav-head { position: sticky; top: 0; z-index: 2; background: var(--panel-2);
  padding: 15px 15px 12px; border-bottom: 1px solid var(--line); }
.kc-nav-title { font-size: 14px; font-weight: 700; color: #5b4636; margin-bottom: 11px; }
.kc-progress { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.kc-progress-txt { flex-shrink: 0; font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; }
.kc-start { width: 100%; }
.kc-tree { padding: 8px 9px 10px; }
.kc-legend { font-size: 11px; color: var(--ink-soft); line-height: 1.6; margin: 0; padding: 0 15px 16px; }

.kc-sec { margin-bottom: 1px; }
.kc-sec-h { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 9px 8px;
  border: none; background: none; cursor: pointer; font-size: 13px; font-weight: 600; color: #5b4636; border-radius: 8px; }
.kc-sec-h:hover { background: rgba(120,90,60,.06); }
.kc-caret { width: 12px; flex-shrink: 0; color: var(--ink-soft); font-size: 10px; }
.kc-sec-name { flex: 1; min-width: 0; }
.kc-sec-cnt { flex-shrink: 0; font-size: 11px; font-weight: 700; color: var(--accent-deep);
  background: var(--accent-soft); border-radius: 10px; padding: 1px 8px; }
.kc-mods { display: flex; flex-direction: column; gap: 2px; padding: 2px 0 6px 4px; }

.kc-mod-wrap { border-radius: 9px; }
.kc-mod-wrap.kc-active { background: var(--accent-soft); }
.kc-mod { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 8px 10px;
  border: 1px solid transparent; border-radius: 9px; background: none; color: #4a3c2e; font-size: 12.5px;
  cursor: pointer; line-height: 1.4; }
.kc-mod:hover:not(:disabled) { background: var(--panel); border-color: var(--line); }
.kc-mod:disabled { cursor: not-allowed; opacity: .5; }
.kc-mod .kc-ic { flex-shrink: 0; }
.kc-mod-name { flex: 1; min-width: 0; }
.kc-badge { flex-shrink: 0; font-size: 12px; }
.kc-badge-untouched { color: #cbb99f; }
.kc-mod.kc-lesson { font-weight: 600; }
.kc-mod.kc-done { color: #2e7d5b; }
.kc-mod-wrap.kc-active > .kc-mod { border-color: var(--accent); font-weight: 600; background: var(--panel); }

.kc-pts { display: flex; flex-direction: column; gap: 2px; padding: 1px 0 5px 22px; }
.kc-pt { display: flex; align-items: center; gap: 7px; width: 100%; text-align: left; padding: 6px 9px;
  border: 1px solid transparent; border-radius: 8px; background: none; color: #6b5d4d; font-size: 12px;
  cursor: pointer; line-height: 1.4; }
.kc-pt:hover:not(:disabled) { background: var(--panel); border-color: var(--line); }
.kc-pt:disabled { cursor: not-allowed; opacity: .55; }
.kc-pt.kc-active { background: var(--panel); border-color: var(--accent); color: #4a3c2e; font-weight: 600; }
.kc-pt-name { flex: 1; min-width: 0; }

.mt-quiz-card { margin: 8px 0 8px 46px; padding: 12px 14px; background: #fff;
  border: 1px solid var(--line, #e3d5c3); border-radius: 10px; }
.mt-quiz-stem { font-size: 13.5px; color: #4a3c2e; margin-bottom: 8px; line-height: 1.6; }
.mt-quiz-opt { display: block; width: 100%; text-align: left; margin: 4px 0; padding: 8px 11px;
  border: 1px solid var(--line, #e3d5c3); border-radius: 8px; background: var(--panel-2, #fbf4e9);
  font-size: 13px; color: #4a3c2e; cursor: pointer; }
.mt-quiz-opt:hover:not(:disabled) { border-color: #c8703d; }
.mt-quiz-opt.right { background: #e6f6e8; border-color: #2f8f45; }
.mt-quiz-opt.wrong { background: #fdecea; border-color: #b0432f; }
.mt-quiz-result { margin-top: 8px; font-size: 12.5px; color: #5b4636; line-height: 1.6;
  border-top: 1px dashed var(--line, #e3d5c3); padding-top: 8px; }

/* ===== 模拟面试 ·「AI 财务面试」（interview.js） ===== */
.iv-opt-group { display: flex; align-items: center; gap: 12px; margin: 10px 0; }
.iv-opt-group > label { width: 68px; flex-shrink: 0; font-size: 13px; color: var(--ink-soft); }
.iv-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.iv-opt { border: 1px solid var(--line, #e3d5c3); background: var(--panel, #fff); color: #5b4636;
  border-radius: 10px; padding: 7px 14px; font-size: 13px; cursor: pointer; transition: all .15s; }
.iv-opt.active { border-color: #c8703d; background: #fdf3ec; color: #a85a2d; font-weight: 600; }
.iv-opt:disabled { opacity: .5; cursor: not-allowed; }
.iv-head-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.iv-progress { font-size: 12.5px; color: var(--ink-soft); background: var(--accent-soft, #f6e8dc);
  border-radius: 8px; padding: 4px 10px; white-space: nowrap; }
.iv-report { max-width: none; }
.iv-report table { font-size: 12.5px; }
.iv-voice-bar { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 0 2px; }
.iv-caption { font-size: 13px; color: var(--ink-soft); min-height: 20px; text-align: center; }
.iv-ptt { width: 220px; padding: 14px 0; border-radius: 999px; border: none; cursor: pointer;
  background: #c8703d; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 2px;
  user-select: none; -webkit-user-select: none; touch-action: none; transition: transform .1s, background .15s; }
.iv-ptt.holding { background: #a85a2d; transform: scale(1.04); box-shadow: 0 0 0 6px rgba(200,112,61,.18); }
.iv-ptt:disabled { background: #cdbfae; cursor: not-allowed; }
.iv-voice-status { font-size: 12px; color: var(--ink-soft); }

/* ===== 模拟面试 · 声波同心圆（orb）与 30min 面试间 ===== */
.iv-hero { max-width: 560px; margin: 0 auto; padding: 34px 20px 40px; display: flex;
  flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.iv-hero-head h2 { font-size: 22px; color: #5b4636; }
.iv-hero-head p { font-size: 13px; color: var(--ink-soft); margin-top: 6px; line-height: 1.7; }
.iv-hero-opts { display: flex; flex-direction: column; gap: 8px; align-items: center; }

.iv-orb { position: relative; width: 190px; height: 190px; margin: 14px auto 4px; flex-shrink: 0; }
.iv-orb span { position: absolute; inset: 0; margin: auto; border-radius: 50%; }
.iv-orb .core { width: 78px; height: 78px;
  background: radial-gradient(circle at 34% 30%, #e8a76f, #c8703d 62%, #a85a2d);
  box-shadow: 0 6px 26px rgba(200,112,61,.45); }
.iv-orb .c1 { width: 108px; height: 108px; border: 2px solid rgba(200,112,61,.5); }
.iv-orb .c2 { width: 138px; height: 138px; border: 2px solid rgba(200,112,61,.34); }
.iv-orb .c3 { width: 164px; height: 164px; border: 2px solid rgba(200,112,61,.2); }
.iv-orb .c4 { width: 190px; height: 190px; border: 2px solid rgba(200,112,61,.1); }
@keyframes ivBreath { 0%,100% { transform: scale(.97); opacity: .75; } 50% { transform: scale(1.03); opacity: 1; } }
@keyframes ivRipple { 0% { transform: scale(.72); opacity: .9; } 100% { transform: scale(1.12); opacity: 0; } }
@keyframes ivSpin   { 0% { transform: rotate(0) scale(1.01); } 100% { transform: rotate(360deg) scale(1.01); } }
.iv-orb.idle  .c1, .iv-orb.idle .c2, .iv-orb.idle .c3, .iv-orb.idle .c4 { animation: ivBreath 3.2s ease-in-out infinite; }
.iv-orb.idle  .c2 { animation-delay: .35s; } .iv-orb.idle .c3 { animation-delay: .7s; } .iv-orb.idle .c4 { animation-delay: 1.05s; }
.iv-orb.listen .c1, .iv-orb.listen .c2, .iv-orb.listen .c3, .iv-orb.listen .c4 { animation: ivRipple 1.15s ease-out infinite; border-color: rgba(47,143,69,.55); }
.iv-orb.listen .c2 { animation-delay: .28s; } .iv-orb.listen .c3 { animation-delay: .56s; } .iv-orb.listen .c4 { animation-delay: .84s; }
.iv-orb.listen .core { background: radial-gradient(circle at 34% 30%, #7fc98f, #2f8f45 62%, #256e36); box-shadow: 0 6px 26px rgba(47,143,69,.4); }
.iv-orb.think .c1, .iv-orb.think .c2 { border-style: dashed; animation: ivSpin 2.4s linear infinite; }
.iv-orb.think .c2 { animation-direction: reverse; }
.iv-orb.speak .c1, .iv-orb.speak .c2, .iv-orb.speak .c3, .iv-orb.speak .c4 { animation: ivRipple 1s ease-out infinite; }
.iv-orb.speak .c2 { animation-delay: .25s; } .iv-orb.speak .c3 { animation-delay: .5s; } .iv-orb.speak .c4 { animation-delay: .75s; }

.iv-start-btn { margin-top: 8px; width: 240px; padding: 15px 0; border: none; border-radius: 999px;
  background: linear-gradient(135deg, #c8703d, #a85a2d); color: #fff; font-size: 16px; font-weight: 700;
  letter-spacing: 4px; cursor: pointer; box-shadow: 0 6px 18px rgba(200,112,61,.35); transition: transform .12s, box-shadow .15s; }
.iv-start-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 9px 24px rgba(200,112,61,.42); }
.iv-start-btn:disabled { opacity: .6; cursor: wait; }

.iv-room { display: flex; flex-direction: column; }
.iv-topbar { display: flex; align-items: center; gap: 10px; padding: 14px 20px 10px; flex-shrink: 0;
  border-bottom: 1px solid var(--line, #e3d5c3); }
.iv-clock { font-size: 20px; font-weight: 800; color: #5b4636; font-variant-numeric: tabular-nums;
  background: var(--accent-soft, #f6e8dc); border-radius: 10px; padding: 4px 12px; }
.iv-clock.warn { color: #b0432f; background: #fdecea; }
.iv-topbar .aw-add.active { border-color: #c8703d; color: #a85a2d; }
.iv-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 16px; padding: 12px 24px; overflow: hidden; }
.iv-stage .iv-caption { max-width: 640px; max-height: 30%; overflow-y: auto; }
.iv-transcript { max-height: 42%; flex-shrink: 0; border-top: 1px dashed var(--line, #e3d5c3);
  display: flex; min-height: 0; }
.iv-transcript .chat { flex: 1; }

/* ===== P2：免提模式指示 ===== */
.iv-hf { display: flex; align-items: center; gap: 10px; padding: 12px 26px; border-radius: 999px;
  background: #fdf3ec; border: 1px solid #e8cdb4; color: #a85a2d; font-size: 14px; font-weight: 600; }
.iv-hf .hf-dot { width: 10px; height: 10px; border-radius: 50%; background: #2f8f45;
  animation: hfPulse 1.6s ease-in-out infinite; }
@keyframes hfPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(47,143,69,.4); } 50% { box-shadow: 0 0 0 7px rgba(47,143,69,0); } }

/* 暂停态：倒计时置灰闪烁提示 */
.iv-clock.paused { color: #9b8a76; background: #efe7db; animation: ivPausedBlink 1.6s ease-in-out infinite; }
@keyframes ivPausedBlink { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* ===== 收尾引导横幅（V2 closure banner） ===== */
.closure-banner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; margin: 8px 0; border-radius: 8px;
  font-size: 13px; animation: closureSlideDown 0.3s ease;
}
.closure-info { background: #E6F1FB; border: 1px solid #85B7EB; color: #0C447C; }
.closure-confirm { background: #FAEEDA; border: 1px solid #FAC775; color: #633806; }
.closure-success { background: #EAF3DE; border: 1px solid #97C459; color: #27500A; }
.closure-error { background: #FCEBEB; border: 1px solid #E6A6A6; color: #7A2424; }
.closure-content { flex: 1; }
.closure-content strong { margin-right: 8px; }
.closure-eval-btn {
  padding: 4px 12px; border-radius: 6px; border: none;
  background: #185FA5; color: white; cursor: pointer; font-size: 12px;
  margin: 0 8px; white-space: nowrap;
}
.closure-eval-btn:hover { background: #0C447C; }
.closure-eval-btn:disabled { opacity: .55; cursor: wait; }
.closure-close { background: none; border: none; font-size: 18px; cursor: pointer; color: inherit; padding: 0 4px; }

@keyframes closurePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(24, 95, 165, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(24, 95, 165, 0); }
}
.highlight-pulse { animation: closurePulse 2s infinite; }

@keyframes closureSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .app { position: relative; width: 100vw; overflow: hidden; }
  .main-area { width: 100%; }

  .sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 120;
    width: min(84vw, 280px); max-width: 280px;
    border-right: 1px solid var(--line);
    box-shadow: 12px 0 32px rgba(74,63,55,.2);
    transform: translateX(0);
    transition: transform .2s ease;
  }
  .app.collapsed .sidebar {
    width: min(84vw, 280px); min-width: 0;
    border-right: 1px solid var(--line);
    overflow: hidden; transform: translateX(-100%);
    pointer-events: none;
  }
  .sidebar-backdrop {
    display: block; position: fixed; inset: 0; z-index: 110;
    border: 0; background: rgba(74,63,55,.34);
    opacity: 1; cursor: pointer; transition: opacity .2s ease;
  }
  .app.collapsed .sidebar-backdrop { opacity: 0; pointer-events: none; }

  .topbar { align-items: center; min-height: 42px; }
  .tb-main { min-width: 96px; padding: 4px 2px 4px 4px; }
  .tb-collapse {
    position: static; flex: none; transform: none;
    width: 32px; height: 32px; padding: 6px;
  }
  .tb-title {
    min-width: 0; margin: 0; padding: 0 4px;
    text-align: left; font-size: 12px;
  }
  .tb-side { width: auto; padding: 4px 6px 4px 0; gap: 4px; }
  .tb-guide {
    width: 30px; height: 30px; padding: 0;
    justify-content: center; border-radius: 8px;
  }
  .tb-guide span { display: none; }
  .mode-toggle { padding: 2px; }
  .mt-opt { padding: 4px 8px; font-size: 11.5px; }
  .lang-btn { width: 30px; height: 30px; border-radius: 8px; }

  .page-wrap { padding: 18px 14px; }
  .cd-left-head { padding: 20px 16px 12px; }
  .course-tools { flex-wrap: wrap; gap: 8px; }
  .course-search { flex-basis: 100%; max-width: none; }
  .course-status-filter { flex: 1 1 auto; overflow-x: auto; }
  .course-status-filter button { flex: 1 0 auto; padding: 0 8px; }
  .course-sort { flex: 0 0 auto; max-width: 140px; }
  .course-list { padding: 2px 16px 18px; }
  .cp-item { width: 100%; }
  .cp-item .cp-title { word-break: normal; overflow-wrap: anywhere; }

  .view-sim { flex-direction: column; min-width: 0; overflow: hidden; }
  .view-sim .left-panel { width: 100%; min-height: 0; flex: 1 1 auto; }
  .view-sim .right-panel {
    width: 100%; height: 36vh; min-height: 250px; max-height: 340px;
    flex: 0 0 36vh; border-top: 1px solid var(--line);
  }
  .panel-resizer { display: none; }
  .role-bar { padding: 8px 10px; }
  .chat { padding: 12px 10px; gap: 10px; }
  .chat-inner { gap: 10px; }
  .msg, .sys-msg { max-width: 92%; }
  .composer { padding: 5px 10px 10px; }
  .composer-inner { padding: 9px 10px 8px; border-radius: 12px; }
  textarea { min-height: 42px; font-size: 14px; }
  .mention-pop { min-width: min(300px, calc(100vw - 40px)); }

  .sim-control {
    display: grid; grid-template-columns: minmax(0, 1fr) 84px;
    grid-template-areas: "buttons countdown" "label label" "rubric rubric";
    align-items: center; gap: 4px 10px; padding: 9px 12px;
  }
  .sim-btns { grid-area: buttons; min-width: 0; }
  .start-btn, .stop-btn { min-width: 0; padding: 9px 10px; font-size: 12.5px; }
  .sim-pause-btn { width: 38px; flex-basis: 38px; min-height: 38px; }
  .countdown { grid-area: countdown; min-width: 72px; margin-top: 0; font-size: 24px; line-height: 1.1; }
  .countdown-label { grid-area: label; justify-self: end; max-width: 100%; margin-top: 0; font-size: 10.5px; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; }
  .rubric-bar { grid-area: rubric; margin-top: 4px; }
  .prompt-box { min-height: 0; padding: 8px 12px; }
  .tool-bar { gap: 6px; padding: 7px 10px; }
  .tool-icon {
    flex: 1; justify-content: center; min-width: 0;
    gap: 4px; padding: 7px 5px; font-size: 11.5px;
  }

  .closure-banner {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    align-items: start; gap: 8px; padding: 10px 12px;
  }
  .closure-content { grid-column: 1; min-width: 0; line-height: 1.5; }
  .closure-content strong { display: block; margin: 0 0 2px; }
  .closure-eval-btn {
    grid-column: 1 / -1; grid-row: 2;
    width: 100%; margin: 0; padding: 7px 10px;
  }
  .closure-close { grid-column: 2; grid-row: 1; }
  .calc-panel { left: 10px; right: 10px; bottom: 52px; width: auto; }
}
