/* ═══ WorkBuddy 教学模拟器 · 像素级复刻样式（规格源：_参考截图/pixel_spec.txt） ═══ */
:root {
  /* 真机取色（agnes pixel_spec 实测） */
  --bg: #ffffff;            /* 主区纯白 */
  --side-bg: #ffffff;       /* 侧栏纯白（分区灰标题区分层级） */
  --panel: #ffffff;
  --panel-2: #f7f8fa;
  --border: #e5e7eb;        /* 真机边框 */
  --border-strong: #d1d5db; /* 输入框描边 */
  --ink: #111827;           /* 一级文字 */
  --ink-2: #4b5563;         /* 二级文字 */
  --ink-3: #9ca3af;         /* 三级文字/时间戳 */
  --brand: #3b82f6;         /* 真机主蓝（发送键/链接/蓝点） */
  --brand-deep: #1d4ed8;    /* 选中项深蓝字 */
  --brand-weak: #eff6ff;    /* 选中项浅蓝底 */
  --brand-weak-2: #dbeafe;
  --bubble: #e5e7eb;        /* 用户气泡（真机浅灰） */
  --ok: #22c55e;
  --ok-weak: #e6f6ee;
  --warn: #e37318;
  --warn-weak: #fdf0e3;
  --err: #ef4444;
  --avatar-green: #34d399;  /* 账号头像亮绿 */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", "Cascadia Code", Consolas, "Courier New", monospace;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-2: 0 6px 24px rgba(16, 24, 40, .10);
  --shadow-3: 0 12px 40px rgba(16, 24, 40, .16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 14px; overflow: hidden; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #c9cfd8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #aeb6c2; }
::-webkit-scrollbar-track { background: transparent; }

/* ══════════ 总布局（v5 真机版）：菜单栏 + [侧栏 + 内容区] ══════════ */
.app { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.app-body { display: flex; flex: 1; min-height: 0; }

/* ── 顶部系统菜单栏（真机：编辑/窗口/帮助/关于） ── */
.menubar {
  height: 30px; min-height: 30px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 10px; gap: 2px;
}
/* 课程页常驻导航（教学层，不属于真机 UI）：永远能回目录 / 知道在第几课 */
.course-hud {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--ink-2); text-decoration: none;
  padding: 3px 10px; border-radius: 7px; white-space: nowrap;
  border: 1px solid var(--border-strong); background: var(--panel-2);
  transition: all .14s;
}
.course-hud:hover { color: var(--brand); border-color: var(--brand); background: #eff6ff; }
.hud-arrow { font-size: 12px; line-height: 1; }
.hud-sep { width: 1px; height: 10px; background: var(--border-strong); }
.hud-pos { color: var(--ink-3); font-size: 11px; }
.course-hud:hover .hud-pos { color: var(--brand); }

/* 「一键填示例」按钮（输错指令被拒时出现） */
.fill-sample-btn {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 10px; padding: 6px 13px; font-size: 12.5px; font-family: var(--font);
  color: var(--brand); background: var(--brand-weak);
  border: 1px solid #bfdbfe; border-radius: 8px; cursor: pointer;
  transition: all .14s;
}
.fill-sample-btn:hover { background: #dbeafe; border-color: var(--brand); transform: translateY(-1px); }
.fill-sample-btn:active { transform: translateY(0); }
.fsb-ic { font-size: 11px; }

/* 术语按钮（HUD 右侧第二个） */
.course-hud.hud-gloss { margin-left: 6px; font-family: var(--font); cursor: pointer; }
/* 人话词典弹窗 */
.gloss-list { display: flex; flex-direction: column; gap: 10px; max-height: 46vh; overflow-y: auto; }
.gloss-row { padding: 10px 12px; background: var(--panel-2); border-radius: 9px; border: 1px solid var(--border); }
.gloss-t { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.gloss-d { font-size: 12.5px; color: var(--ink-2); line-height: 1.68; }
.gloss-d b { color: var(--ink); }
.mb-ic {
  font-size: 12px; color: var(--ink-2);
  padding: 3px 6px; border-radius: 5px; cursor: default;
  font-style: normal;
}
.mb-ic:hover { background: var(--panel-2); }
.mb-item {
  font-size: 12px; color: var(--ink-2);
  padding: 3px 9px; border-radius: 5px; cursor: default;
}
.mb-item:hover { background: var(--panel-2); color: var(--ink); }

/* ── 侧栏（规格表#1-17：240px 纯白，导航行高32，间距8） ── */
.sidebar {
  width: 240px; min-width: 240px;
  background: var(--side-bg);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
}

/* 侧栏内嵌导航（行高32px 间距8px 图标16px） */
.side-nav { padding: 12px 12px 4px; display: flex; flex-direction: column; gap: 4px; }
.sn-item {
  width: 100%; border: none; background: transparent; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  height: 32px; padding: 0 8px; border-radius: 8px;
  font-size: 14px; color: #1f2937; font-family: var(--font);
  transition: background .12s; position: relative; text-align: left;
}
.sn-item:hover { background: #f3f4f6; }
.sn-item.active { background: var(--brand-weak); color: var(--brand-deep); }
.sn-ic { font-size: 15px; width: 20px; text-align: center; font-style: normal; }
.sn-beta {
  font-size: 9px; background: #e8eaee; color: #6b7280;
  padding: 1.5px 6px; border-radius: 8px; margin-left: 4px; font-weight: 600;
}
.sn-sub { font-size: 11px; color: var(--ink-3); margin-left: 2px; }
.sn-hint { font-size: 10px; color: var(--ink-3); margin-left: auto; }

.side-scroll { flex: 1; overflow-y: auto; min-height: 0; }

/* 分区标题（#6/#9：12px 中灰） */
.side-section {
  padding: 10px 14px 4px; font-size: 12px; color: var(--ink-3);
  font-weight: 400; letter-spacing: 0;
}

/* 置顶行（#8-10：14px 图标+13px 标题+右对齐12px 日期） */
.task-list { padding: 0 8px 4px; }
.task-item {
  padding: 6px 8px; border-radius: 6px; cursor: pointer;
  display: flex; align-items: center; gap: 8px; margin-bottom: 1px;
  transition: background .12s; position: relative;
}
.task-item:hover { background: #f3f4f6; }
.task-item.active { background: var(--brand-weak); }
.task-item.active .task-title { color: var(--brand-deep); }
.task-dot {
  width: 14px; height: 14px; min-width: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #374151;
}
.task-dot.done { color: #374151; }
.task-dot.doing { color: var(--brand); }
.task-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.task-title {
  font-size: 13px; color: var(--ink); line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.task-time { font-size: 12px; color: var(--ink-3); margin-left: auto; white-space: nowrap; }

/* 空间区子项/蓝点（#11-14） */
.space-item .task-title { font-weight: 500; }
.sub-item { padding-left: 32px !important; }
.sub-item .task-title { font-size: 12px; color: var(--ink-2); }
.blue-dot {
  width: 5px; height: 5px; min-width: 5px; border-radius: 50%;
  background: var(--brand); display: inline-block;
}
.task-time-inline { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.more-link .task-title:hover { color: var(--brand); cursor: pointer; }

/* 选中空间行（#13：浅蓝底深蓝字4px圆角） */
.space-item.active {
  background: var(--brand-weak); border-radius: 4px;
}
.space-item.active .task-title { color: var(--brand-deep); font-weight: 600; }

.side-foot {
  border-top: 1px solid var(--border);
  padding: 10px 14px; display: flex; align-items: center; gap: 9px;
}
.side-avatar {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--avatar-green);
  color: #fff; font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.side-user { flex: 1; }
.side-user .n { font-size: 13px; font-weight: 500; color: var(--ink); }
.foot-ic {
  border: none; background: none; color: #6b7280; font-size: 14px;
  cursor: pointer; padding: 4px; border-radius: 6px; position: relative;
  font-style: normal; font-family: var(--font);
}
.foot-ic:hover { background: var(--panel-2); }
.badge-dot {
  position: absolute; top: -1px; right: -2px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--err); font-size: 0; line-height: 0;
}
.side-head { padding: 14px 14px 8px; display: flex; align-items: center; gap: 8px; }
.side-name { font-weight: 600; font-size: 14px; }
.side-sub { font-size: 11px; color: var(--ink-3); }
.new-task-btn {
  margin: 6px 10px 10px; padding: 8px 0;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--panel); color: var(--ink-2); font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all .15s;
}
/* ── ③ 对话区域 ── */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--panel); }

/* 场景切换 tabs */
.scene-tabs {
  display: flex; gap: 4px; padding: 10px 20px 0;
  border-bottom: 1px solid var(--border); background: var(--panel);
}
.st-tab {
  border: none; background: transparent; cursor: pointer;
  font-size: 13.5px; color: var(--ink-2); padding: 8px 16px 10px;
  border-radius: 9px 9px 0 0; position: relative; transition: all .15s;
  font-family: var(--font);
}
.st-tab:hover { background: var(--panel-2); }
.st-tab.on { color: var(--brand); font-weight: 600; }
.st-tab.on::after {
  content: ""; position: absolute; left: 18%; right: 18%; bottom: 0;
  height: 2.5px; background: var(--brand); border-radius: 2px;
}

/* 欢迎页 + 快捷模板 */
.chat-scroll { flex: 1; overflow-y: auto; scroll-behavior: smooth; }
.welcome {
  max-width: 640px; margin: 0 auto; padding: 44px 24px 20px; text-align: center;
  animation: fadeUp .4s ease;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
.w-logo {
  width: 56px; height: 56px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
}
.w-logo-img {
  width: 56px; height: 56px; border-radius: 14px;
  display: block; box-shadow: 0 4px 16px rgba(14,199,168,0.22);
}
.w-hi { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.w-sub { font-size: 13.5px; color: var(--ink-3); margin-bottom: 26px; }
/* 官方欢迎页三段式：模式tab + 场景胶囊 */
.w-mode-tabs { display: flex; gap: 4px; margin-top: 12px; margin-bottom: 44px; }
.wmt {
  border: none; background: transparent; cursor: pointer;
  font-size: 12.5px; color: var(--ink-3); padding: 5px 12px;
  border-radius: 16px; font-family: var(--font); transition: all .12s;
}
.wmt:hover { color: var(--ink-2); background: var(--panel-2); }
.wmt.on { background: var(--brand-weak); color: var(--brand); font-weight: 600; }
.scene-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 560px; }
.spill {
  border: 1px solid var(--border); background: var(--panel); cursor: pointer;
  font-size: 12.5px; color: var(--ink-2); padding: 6px 14px;
  border-radius: 16px; font-family: var(--font); transition: all .12s;
}
.spill:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-weak); }
.scene-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: left; }
.scard {
  border: 1px solid var(--border); border-radius: 12px; padding: 13px 14px;
  cursor: pointer; background: var(--panel); transition: all .15s;
}
.scard:hover { border-color: var(--brand); background: var(--brand-weak); box-shadow: var(--shadow-1); transform: translateY(-1px); }
.scard .ic { font-size: 20px; margin-bottom: 7px; }
.scard .t { font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
.scard .d { font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }

/* ═══ 消息流（真机样式 v5） ═══ */
.msg { display: flex; }
.msg.user { justify-content: flex-end; padding: 8px 22px; }
.msg.user .u-bubble {
  background: #e5e9f0; border-radius: 14px; padding: 10px 16px;
  font-size: 14px; line-height: 1.7; max-width: 78%;
  white-space: pre-wrap; word-break: break-word;
}
.msg.ai { padding: 10px 22px 4px; }
.msg.ai .ai-body { max-width: 92%; }
.msg-bubble { line-height: 1.75; font-size: 14px; word-break: break-word; white-space: pre-wrap; }

/* AI 头部（Logo + WorkBuddy + 已处理时长） */
.ai-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ai-logo {
  width: 24px; height: 24px; min-width: 24px; border-radius: 50%;
  background: linear-gradient(135deg, #0052d9, #4d8bff);
  color: #fff; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.ai-name { font-size: 13.5px; font-weight: 700; }
.ai-meta { font-size: 11.5px; color: var(--ink-3); }
.ai-extra { margin-bottom: 4px; }

/* 运行行（圆点紧凑行，真机样式） */
.run-line {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 22px; font-size: 12.5px; color: var(--ink-2);
}
.rl-dot {
  width: 12px; height: 12px; min-width: 12px; border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 8px; color: transparent; background: var(--panel);
  transition: all .3s;
}
.rl-dot.ok { border-color: var(--ok); background: var(--ok); color: #fff; }
.rl-text.as-link { color: var(--brand); cursor: pointer; }
.rl-text.as-link:hover { text-decoration: underline; }

/* 文件改动行（真机配色：红+ 绿-） */
.fc-row {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 22px; font-size: 12.5px;
  font-family: var(--mono);
}
.fc-act {
  font-size: 11px; color: var(--ink-2);
  font-family: var(--font);
}
.fc-name { color: var(--ink-2); }
.fc-add { color: var(--err); font-weight: 600; }
.fc-del { color: var(--ok); font-weight: 600; }

/* 计划卡片 */
.plan-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); overflow: hidden; margin: 8px 0; box-shadow: var(--shadow-1); }
.plan-head { padding: 10px 14px; display: flex; align-items: center; gap: 8px; background: var(--panel-2); border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; cursor: pointer; user-select: none; }
.plan-head .caret { transition: transform .16s ease, color .16s ease; color: var(--ink-3); font-size: 11px; }
.plan-card.folded .caret { transform: rotate(-90deg); }
.plan-card.folded .plan-body { display: none; }
.plan-body { padding: 6px 0; }
.plan-step { display: flex; gap: 10px; padding: 7px 14px; font-size: 13px; color: var(--ink-2); align-items: flex-start; }
.plan-step .ic {
  width: 17px; height: 17px; min-width: 17px; border-radius: 50%;
  border: 1.5px solid var(--border-strong); display: flex; align-items: center; justify-content: center;
  font-size: 10px; margin-top: 2px; color: transparent; background: var(--panel);
}
.plan-step.active .ic { border-color: var(--brand); }
.plan-step.active .ic::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: pulse 1.1s ease-in-out infinite; }
.plan-step.done .ic { border-color: var(--ok); background: var(--ok); color: #fff; }
.plan-step.done .ic::before { content: "✓"; }
.plan-step.active { color: var(--ink); font-weight: 500; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* 工具调用卡片 */
.tool-card { border: 1px solid var(--border); border-radius: var(--radius-sm); margin: 8px 0; background: var(--panel); overflow: hidden; font-size: 13px; }
.tool-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer; user-select: none; }
.tool-head .t-ic { width: 22px; height: 22px; min-width: 22px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.t-ic.read { background: var(--brand-weak); color: var(--brand); }
.t-ic.write { background: var(--ok-weak); color: var(--ok); }
.t-ic.bash { background: #2c2f38; color: #9fd0ff; }
.t-ic.net { background: var(--warn-weak); color: var(--warn); }
.tool-head .t-name { font-weight: 500; }
.tool-head .t-path { color: var(--ink-3); font-size: 12px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-head .t-state { font-size: 11px; color: var(--ink-3); }
.tool-card.running .t-state { color: var(--brand); }
.tool-card.done .t-state { color: var(--ok); }
.tool-card.folded .tool-body { display: none; }
/* 折叠箭头：对齐官方 avatar-fold-arrow 手感（transform .16s，默认 -90deg → 展开 0） */
.tool-head .caret { transition: transform .16s ease, color .16s ease; color: var(--ink-3); font-size: 10px; margin-left: 2px; }
.tool-card.folded .tool-head .caret { transform: rotate(-90deg); }
/* 终端/代码输出块：对齐官方 atm-detail-run-technical（bg-modal+border-weak+8px圆角+等宽12/18） */
.tool-terminal {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; margin: 0 0 8px;
  font-family: var(--mono); font-size: 12px; line-height: 18px;
  white-space: pre-wrap; word-break: break-word;
  max-height: 180px; overflow: auto; color: var(--ink);
}
.tool-terminal .t-prompt { color: var(--ok); user-select: none; }
.tool-terminal .t-cmd { color: var(--brand); }
.tool-body {
  border-top: 1px dashed var(--border); background: var(--panel-2); padding: 10px 12px;
  font-family: var(--mono); font-size: 12px; line-height: 1.7;
  max-height: 260px; overflow: auto; white-space: pre-wrap; word-break: break-all; color: var(--ink-2);
}

/* 思考证 */
.thinking { display: flex; gap: 8px; align-items: center; color: var(--ink-3); font-size: 13px; padding: 6px 0; }
.thinking .dots { display: flex; gap: 4px; }
.thinking .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: bounce 1.2s infinite; }
.thinking .dots i:nth-child(2) { animation-delay: .15s; }
.thinking .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%,80%,100% { transform: translateY(0); opacity:.4; } 40% { transform: translateY(-4px); opacity:1; } }
.type-cursor::after { content: "▌"; color: var(--brand); animation: blink 1s step-end infinite; font-size: 13px; }
@keyframes blink { 50% { opacity: 0; } }

/* ── ⑤⑥ 输入框 + 底部工具栏（官方规范：左右内边距24px·内容宽832·发送键32圆形蓝#3B82F6） ── */
.input-zone { padding: 12px 24px 10px; max-width: 960px; margin: 0 auto; width: 100%; }
.input-box { border: 1px solid var(--border-strong); border-radius: 20px; background: var(--panel); transition: border-color .15s, box-shadow .15s; }
.input-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(59,130,246,.10); }
.input-row { display: flex; align-items: flex-end; padding: 14px 18px 2px; gap: 10px; position: relative; }
#chatInput {
  flex: 1; border: none; outline: none; resize: none;
  font-family: var(--font); font-size: 14px; line-height: 1.6;
  max-height: 120px; padding: 4px 0; background: transparent;
  color: var(--ink);
}
#chatInput::placeholder { color: var(--ink-3); }
/* 发送按钮：真机位于工具栏最右端（不在输入行内） */
.send-btn {
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: var(--brand); color: #fff; cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center; transition: all .15s;
  font-weight: 700; margin-left: 2px; flex: none;
}
.send-btn:disabled { background: var(--border-strong); cursor: not-allowed; }
.send-btn:not(:disabled):hover { background: #2563eb; transform: translateY(-1px); }
/* 发现应用按钮（对齐真机浅蓝底微边框） */
.discover-chip {
  margin-left: auto;
  border: 1px solid #bfdbfe; background: #f0f7ff;
  color: #0052d9; font-size: 11.5px; font-weight: 500;
  padding: 3px 9px; border-radius: 12px; cursor: pointer; font-family: var(--font);
  display: inline-flex; align-items: center; gap: 5px;
  transition: all .15s;
}
.discover-chip:hover { background: #e0effe; }

/* 工具栏在输入框内底部（真机顺序：＋ ｜ 权限 ｜ DE ｜ 状态环 ｜ … ｜ 模型 ｜ 🎤 ｜ 发送） */
.input-toolbar { display: flex; align-items: center; gap: 4px; padding: 4px 10px 8px; }
.tb-btn {
  border: none; background: transparent; cursor: pointer;
  font-size: 13px; color: var(--ink-2);
  padding: 4px 7px; border-radius: 6px;
  display: flex; align-items: center; gap: 4px;
  transition: background .12s ease, color .12s ease, transform .12s ease, box-shadow .12s ease;
  font-family: var(--font);
  position: relative; white-space: nowrap;
}
.tb-btn:hover { background: var(--panel-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--border); }
.tb-btn:active { transform: scale(.96); }
.tb-sep { width: 1px; height: 14px; background: var(--border-strong); margin: 0 4px; flex: none; }
/* 弹性空隙：把右侧簇（模型/麦克风/发送）推到最右 */
.tb-spacer { flex: 1; }
/* 上下文用量状态环（真机只读指示，不可点） */
.tb-ring {
  font-size: 12px; color: var(--ink-3); line-height: 1;
  display: inline-flex; align-items: center; padding: 0 4px; user-select: none;
}
/* 权限 chip：默认=「权限设置」中性色；完全访问=danger 红 */
.tb-btn.perm-chip { font-size: 12.5px; color: var(--ink-2); border: none; background: transparent; padding: 5px 9px; }
.tb-btn.perm-chip.perm-warn { color: #dc2626; }
.tb-btn.perm-chip.perm-warn span { color: #dc2626; }
.perm-ic { display: inline-flex; align-items: center; vertical-align: -2px; }
/* 模型 chip：单行「名称:id」 */
.tb-btn.model-chip { font-size: 12.5px; max-width: 230px; overflow: hidden; }
.model-label { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-dot { font-size: 12px; }
.model-label { display: inline-flex; align-items: baseline; gap: 0; }
.model-colon { color: var(--ink-3); margin: 0 1px; }
#modelId { font-size: 11px; color: var(--ink-3); }
/* 欢迎态框下 footer 行：选择工作空间 */
.input-footer {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 6px 0; max-width: 960px; margin: 0 auto; width: 100%;
}
.ws-chip-btn { font-size: 12.5px; color: var(--ink-2); border: none; border-radius: 10px; padding: 5px 9px; background: transparent; }
.ws-ic-svg { display: inline-flex; align-items: center; vertical-align: -2px; }
.ws-chip-btn:hover { background: var(--panel-2); color: var(--ink); }
/* menubar 右端省略号 */
.mb-more { margin-left: auto; font-size: 13px; color: var(--ink-3); letter-spacing: 1px; padding: 2px 8px; cursor: default; }
.mb-more:hover { background: var(--panel-2); border-radius: 5px; }
/* 模型面板分组标题（官方分组样式，可折叠） */
.dd-group-title {
  font-size: 10.5px; color: var(--ink-3); font-weight: 700;
  padding: 8px 10px 3px; letter-spacing: .5px;
}
.group-toggle { display: flex; align-items: center; gap: 4px; cursor: pointer; user-select: none; }
.group-toggle:hover { color: var(--ink-2); }
.gt-arrow { font-size: 10px; width: 10px; display: inline-block; text-align: center; }
.model-panel { width: 300px; padding-bottom: 0; max-height: 460px; display: flex; flex-direction: column; }
/* 模型列表区可滚动（模型补全后条目变多，不能顶出屏幕） */
.model-panel .model-groups { overflow-y: auto; max-height: 340px; flex: 1; min-height: 0; }
.model-empty-tip { font-size: 11.5px; color: var(--ink-3); padding: 8px 12px 10px; line-height: 1.5; }
/* 模型搜索行：无边框+放大镜+清除（官方 modelSelectorSearchContainer 视觉） */
.model-search-row {
  display: flex; align-items: center; gap: 6px;
  margin: 8px 8px 4px; padding: 6px 9px;
  background: var(--panel-2); border-radius: 8px;
}
.model-search-ic { color: var(--ink-3); display: inline-flex; }
.model-search {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 12.5px; font-family: var(--font); color: var(--ink); min-width: 0;
}
.model-search-clear { cursor: pointer; color: var(--ink-3); font-size: 11px; padding: 0 2px; }
.model-search-clear:hover { color: var(--ink); }
.model-id-sep { color: var(--ink-3); }
.model-id-text { font-size: 11px; color: var(--ink-3); }
.model-tag { font-size: 10px; background: var(--brand-weak); color: var(--brand); padding: 1px 6px; border-radius: 8px; margin-left: 5px; }
.model-footer {
  border-top: 1px solid var(--border); margin-top: 6px; padding: 8px 14px;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--ink-2);
}
.model-footer:hover { background: var(--panel-2); }
.tb-btn.perm-warn { color: #dc2626; }
.tb-btn.perm-warn span { color: var(--ink-2); }
/* 模型按钮两段式（官方：名称+小字id） */
.model-name-two { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.model-name-two i { font-style: normal; font-size: 9.5px; color: var(--ink-3); letter-spacing: 0; }
/* 工作空间 chip（官方 WbWorkspacePickerChip 同位：＋右侧可见按钮） */
.ws-chip-btn { font-size: 12.5px; color: var(--ink-2); }
.input-tip { font-size: 10px; color: var(--ink-3); text-align: center; margin-top: 6px; }

/* 下拉菜单 */
.dd-menu {
  position: fixed; z-index: 700; min-width: 220px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-3);
  padding: 6px; animation: ddIn .16s ease;
}
@keyframes ddIn { from { opacity: 0; transform: translateY(6px); } }
.dd-item {
  padding: 8px 12px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; gap: 9px; font-size: 13px;
}
.dd-item:hover { background: var(--panel-2); }
.dd-item.picked { color: var(--brand); background: var(--brand-weak); }
.dd-item .ck { margin-left: auto; font-size: 12px; visibility: hidden; }
.dd-item.picked .ck { visibility: visible; }
.dd-item .sub { font-size: 11px; color: var(--ink-3); }
.dd-sep { height: 1px; background: var(--border); margin: 5px 8px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%);
  background: rgba(22,32,46,.92); color: #fff; font-size: 13px;
  padding: 10px 20px; border-radius: 10px; z-index: 800;
  box-shadow: var(--shadow-3); animation: ddIn .2s ease;
  max-width: 420px; text-align: center;
}

/* ── 右侧：结果区（默认折叠，产物生成或点击时平滑滑出，340px 对齐真机） ── */
.rightpanel {
  width: 340px; min-width: 340px;
  border-left: 1px solid var(--border);
  background: var(--panel);
  display: flex; flex-direction: column;
  transition: width .25s ease, min-width .25s ease, opacity .2s ease;
}
.rightpanel.collapsed {
  width: 0 !important; min-width: 0 !important;
  border-left: none; overflow: hidden; opacity: 0; pointer-events: none;
}
.rp-head { height: 44px; min-height: 44px; border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 8px 0 10px; gap: 2px; }
/* 产物标签条（官方：可截断的多标签 + 右端动作图标） */
.rp-tabs { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; overflow: hidden; }
.rp-tab {
  padding: 5px 8px; font-size: 12.5px; color: var(--ink-2); border-radius: 6px;
  cursor: pointer; position: relative; display: inline-flex; align-items: center; gap: 4px;
  max-width: 130px; white-space: nowrap; flex: none;
}
.rp-tab:hover { background: var(--panel-2); }
.rp-tab.on { color: var(--brand); font-weight: 600; }
.rp-tab.on::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: -8px; height: 2px; background: var(--brand); border-radius: 2px; }
.rp-tab-ic { font-size: 12px; }
.rp-tab-x { font-size: 9px; color: var(--ink-3); padding: 0 2px; border-radius: 4px; }
.rp-tab-x:hover { background: var(--border); color: var(--ink); }
.rp-head-actions { display: flex; align-items: center; gap: 1px; flex: none; }
.rp-ic-btn {
  border: none; background: transparent; color: var(--ink-3);
  font-size: 13px; cursor: pointer; padding: 4px 6px; border-radius: 6px;
  transition: all .12s; line-height: 1;
}
.rp-ic-btn:hover { background: var(--panel-2); color: var(--ink); }
.rp-close-btn {
  margin-left: auto; border: none; background: transparent;
  color: var(--ink-3); font-size: 13px; cursor: pointer;
  padding: 3px 7px; border-radius: 6px; transition: all .12s;
}
.rp-close-btn:hover { background: var(--panel-2); color: var(--ink); }
.rp-body { flex: 1; overflow-y: auto; }
/* 置顶「收起」行（真机在列表底部） */
.pin-fold-row { display: flex; justify-content: flex-end; padding: 0 14px 4px; }

/* 文件卡片 */
.file-list { padding: 12px 14px; }
.file-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 10px; overflow: hidden; cursor: pointer;
  transition: box-shadow .15s, border-color .15s; background: var(--panel);
}
.file-card:hover { border-color: var(--brand); box-shadow: var(--shadow-2); }
.file-card.fresh { animation: fileIn .5s ease, freshGlow 1.6s ease .3s; }
@keyframes fileIn { from { transform: translateY(14px); opacity: 0; } }
/* 产物诞生绿色高光（交付时刻的视觉确认） */
@keyframes freshGlow {
  0% { border-color: var(--ok); box-shadow: 0 0 0 3px rgba(43,164,113,.18); }
  100% { border-color: var(--border); box-shadow: 0 0 0 0 rgba(43,164,113,0); }
}
.file-head { display: flex; align-items: center; gap: 10px; padding: 11px 14px; }
.file-ic { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.file-ic.xlsx { background: var(--ok-weak); }
.file-ic.docx { background: var(--brand-weak); }
.file-ic.pptx { background: var(--warn-weak); }
.file-ic.md { background: var(--panel-2); }
.file-meta { flex: 1; min-width: 0; }
.file-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-sub { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.file-open { font-size: 11px; color: var(--brand); }

/* Excel 预览 */
.sheet-view { padding: 14px; }
.sheet-title { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.sheet-table { width: 100%; border-collapse: collapse; font-size: 12px; background: var(--panel); }
.sheet-table th, .sheet-table td { border: 1px solid #dfe4ea; padding: 6px 9px; text-align: left; white-space: nowrap; }
.sheet-table th { background: #eef1f5; font-weight: 600; color: var(--ink-2); }
.sheet-table tr:hover td { background: #f5f9ff; }
/* Excel 网格：对齐官方 Luckysheet 规格（行号列 46px · 列头行高 20px · 左上 corner · 细网格线） */
.sheet-grid {
  display: grid; border: 1px solid #dfe4ea; border-radius: 6px; overflow: hidden;
  font-size: 12px; background: var(--panel);
}
.sheet-corner { height: 20px; background: #eef1f5; border-right: 1px solid #dfe4ea; border-bottom: 1px solid #dfe4ea; }
.sheet-colhead { grid-column: 2 / -1; display: flex; height: 20px; background: #eef1f5; border-bottom: 1px solid #dfe4ea; }
.sheet-colh { flex: 1; min-width: 72px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--ink-2); border-right: 1px solid #eceff3; font-weight: 500; }
.sheet-colh:last-child { border-right: none; }
.sheet-grid-body { grid-column: 1 / -1; }
.sheet-row { display: flex; border-bottom: 1px solid #eceff3; }
.sheet-row:last-child { border-bottom: none; }
.sheet-rowh { width: 46px; min-width: 46px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--ink-3); background: #fafbfc; border-right: 1px solid #dfe4ea; font-variant-numeric: tabular-nums; }
.sheet-cell { flex: 1; min-width: 72px; padding: 6px 9px; border-right: 1px solid #eceff3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.sheet-cell:last-child { border-right: none; }
.sheet-row:hover .sheet-cell { background: #f5f9ff; }
.sheet-row:hover .sheet-rowh { background: #f0f4f8; }

/* ── 方案确认门（第四课：先方案后执行的"喊停"按钮） ── */
.plan-gate { display: flex; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.pg-btn { border: none; border-radius: 8px; padding: 8px 18px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font); transition: all .15s; }
.pg-btn.pg-ok { background: var(--ok); color: #fff; }
.pg-btn.pg-ok:hover { filter: brightness(1.08); box-shadow: 0 4px 14px rgba(43,164,113,.3); transform: translateY(-1px); }
.pg-btn.pg-no { background: var(--panel-2); color: var(--ink-2); border: 1px solid var(--border); }
.pg-btn.pg-no:hover { border-color: var(--brand); color: var(--brand); }

/* ── 文件树（第二课：文件夹整理前后对比，对齐官方空间目录树风格） ── */
.ft-stats { display: flex; gap: 14px; font-size: 11.5px; margin-bottom: 10px; }
.ft-add { color: var(--ok); font-weight: 600; }
.ft-del { color: var(--err, #dc2626); font-weight: 600; }
.ft-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ft-col { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.ft-col-head { font-size: 11.5px; font-weight: 600; color: var(--ink-3); padding: 6px 10px; background: var(--panel-2); border-bottom: 1px solid var(--border); }
.ft-col-head-after { color: var(--ok); }
.ft-tree { padding: 6px 0; max-height: 300px; overflow: auto; }
.ft-node { display: flex; align-items: center; gap: 6px; padding: 3px 10px; font-size: 12px; color: var(--ink-2); }
.ft-node:hover { background: #f5f9ff; }
.ft-ic { font-size: 12px; flex: none; }
.ft-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-meta { font-size: 10.5px; color: var(--ink-3); flex: none; }
.ft-dir > .ft-name { font-weight: 600; color: var(--ink); }
.ft-changed { background: rgba(43,164,113,.10); }
.ft-changed > .ft-name { color: var(--ok); font-weight: 600; }
.ft-removed { background: rgba(220,38,38,.07); }
.ft-removed > .ft-name { color: #dc2626; text-decoration: line-through; }

/* ── 幻灯片（第三课：汇报 PPT，缩略图 + 舞台放大） ── */.slides-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.slide-thumb { cursor: pointer; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: all .15s; background: var(--panel); }
.slide-thumb:hover { border-color: var(--brand); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.st-page { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, #f8fafc, #eef2f7); overflow: hidden; }
.st-no { position: absolute; right: 6px; bottom: 4px; font-size: 9px; color: var(--ink-3); }
.st-kind { padding: 8% 9%; height: 100%; display: flex; flex-direction: column; }
.st-cover-title { font-size: 13px; font-weight: 700; color: var(--ink); margin-top: 22%; }
.st-cover-sub { font-size: 9px; color: var(--ink-3); margin-top: 6%; }
.st-title { font-size: 10.5px; font-weight: 700; color: var(--brand); border-left: 3px solid var(--brand); padding-left: 6px; margin-bottom: 7%; }
.st-list { list-style: none; padding: 0; margin: 0; }
.st-list li { font-size: 8.5px; color: var(--ink-2); padding: 2.5px 0 2.5px 10px; position: relative; line-height: 1.5; }
.st-list li::before { content: "▪"; position: absolute; left: 0; color: var(--brand); }
.st-bars { flex: 1; display: flex; align-items: flex-end; gap: 8%; padding: 4% 6% 8%; }
.st-bar { flex: 1; background: linear-gradient(180deg, #4d8bff, #0052d9); border-radius: 2px 2px 0 0; position: relative; min-height: 8%; }
.st-bar i { position: absolute; bottom: -11px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 6.5px; color: var(--ink-3); white-space: nowrap; }
.st-end { margin: auto; font-size: 13px; font-weight: 700; color: var(--brand); }
.st-cap { font-size: 10.5px; color: var(--ink-3); padding: 5px 9px; border-top: 1px dashed var(--border); }
.slide-stage { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.ss-nav { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: var(--panel); cursor: pointer; font-size: 17px; color: var(--ink-2); flex: none; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.ss-nav:hover { border-color: var(--brand); color: var(--brand); }
.ss-canvas { flex: 1; min-width: 0; }
.ss-slide { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, #ffffff, #f2f6fb); border: 1px solid var(--border); border-radius: 10px; padding: 6% 7%; display: flex; flex-direction: column; animation: ssIn .25s ease; }
@keyframes ssIn { from { opacity: 0; transform: scale(.98); } }
.ss-slide .ss-no { position: static; text-align: right; font-size: 10px; color: var(--ink-3); margin-bottom: 4px; }
.ss-slide .ss-title { font-size: 15px; margin-bottom: 12px; }
.ss-slide .ss-list li { font-size: 12px; padding: 5px 0 5px 14px; }
.ss-slide .ss-list li::before { font-size: 12px; }
.ss-slide .ss-bars { padding: 4% 8% 10%; }
.ss-slide .ss-bar i { font-size: 10px; bottom: -14px; }
.ss-cover-title { font-size: 22px; font-weight: 700; color: var(--ink); margin-top: 26%; }
.ss-cover-sub { font-size: 12px; color: var(--ink-3); margin-top: 10px; }
.ss-end { margin: auto; font-size: 22px; font-weight: 700; color: var(--brand); }
.ss-pager { font-size: 11px; color: var(--ink-3); text-align: center; margin-top: 8px; }
.sheet-sum { margin-top: 10px; background: var(--brand-weak); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 12px; color: var(--brand); display: flex; gap: 16px; flex-wrap: wrap; }
.chart-mini { margin-top: 14px; border-top: 1px dashed var(--border); padding-top: 12px; }
.chart-bars { display: flex; align-items: flex-end; gap: 10px; height: 110px; padding: 0 4px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.bar { width: 100%; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #4d8bff, #0052d9); animation: barUp .8s ease; }
@keyframes barUp { from { height: 0 !important; } }

/* ── 聚光灯教学层 ── */
#coachLayer { position: fixed; inset: 0; z-index: 785; pointer-events: none; }
.spot-mask { position: fixed; pointer-events: none; box-shadow: 0 0 0 9999px rgba(15, 23, 36, .55); border-radius: 10px; transition: all .35s cubic-bezier(.4, 0, .2, 1); }
.coach-bubble {
  position: fixed; width: 320px; background: var(--panel); border-radius: 14px;
  box-shadow: var(--shadow-3); border: 1px solid var(--border);
  padding: 16px 18px; pointer-events: auto;
  animation: coachIn .35s cubic-bezier(.34, 1.4, .64, 1); z-index: 790;
}
/* P1-1 气泡翻转态箭头 */
.coach-bubble.flip-up::after {
  content: ""; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  border-left: 7px solid transparent; border-right: 7px solid transparent;
  border-top: 7px solid var(--panel);
}
@keyframes coachIn { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.coach-step-no { font-size: 11px; color: var(--brand); font-weight: 700; letter-spacing: 1px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.coach-skip { cursor: pointer; color: var(--ink-3); font-weight: 400; letter-spacing: 0; border: none; background: none; font-size: 11px; }
.coach-skip:hover { color: var(--err); }
.coach-title { font-size: 15px; font-weight: 700; margin-bottom: 7px; }
.coach-text { font-size: 13px; line-height: 1.75; color: var(--ink-2); }
.coach-text b { color: var(--brand); }
.coach-text code { background: var(--panel-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 4px; font-family: var(--mono); font-size: 12px; }
.coach-actions { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.coach-btn { border: none; border-radius: 8px; padding: 8px 18px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all .15s; }
.coach-btn.pri { background: var(--brand); color: #fff; }
.coach-btn.pri:hover { background: #0047c2; }
.coach-btn.sec { background: var(--panel-2); color: var(--ink-2); border: 1px solid var(--border); }
.coach-btn.sec:hover { border-color: var(--border-strong); }
.coach-actions .spacer { flex: 1; }
.coach-check { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ok); font-weight: 500; animation: coachIn .3s ease; }
.coach-link { border: none; background: none; color: var(--ink-3); font-size: 12px; cursor: pointer; text-decoration: underline; padding: 0; }
.coach-link:hover { color: var(--brand); }

.spot-target { position: relative; z-index: 501; }
.spot-target.ring-anim { animation: ringGlow 1.6s ease-in-out infinite; border-radius: 12px; }
@keyframes ringGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(0, 82, 217, 0); } 50% { box-shadow: 0 0 0 5px rgba(0, 82, 217, .28); } }

.expect-hint {
  position: absolute; right: 10px; top: -30px;
  background: var(--brand); color: #fff; font-size: 11px;
  padding: 3px 10px; border-radius: 12px;
  box-shadow: var(--shadow-2); white-space: nowrap;
  animation: coachIn .3s ease;
}
.expect-hint::after { content: ""; position: absolute; bottom: -4px; right: 22px; border: 5px solid transparent; border-top-color: var(--brand); border-bottom: none; }

/* 庆祝 */
.celebrate { position: fixed; inset: 0; z-index: 600; display: flex; align-items: center; justify-content: center; background: rgba(15, 23, 36, .5); backdrop-filter: blur(3px); }
.celebrate-card { background: var(--panel); border-radius: 18px; padding: 34px 38px; width: 420px; text-align: center; box-shadow: var(--shadow-3); animation: coachIn .4s cubic-bezier(.34, 1.4, .64, 1); }
.celebrate-card .big { font-size: 46px; margin-bottom: 10px; }
.celebrate-card h2 { font-size: 20px; margin-bottom: 8px; }
.celebrate-card p { font-size: 13px; color: var(--ink-2); line-height: 1.8; }
.celebrate-stats { display: flex; justify-content: center; gap: 26px; margin: 18px 0; padding: 14px 0; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); }
.celebrate-stats .st { text-align: center; }
.celebrate-stats .v { font-size: 22px; font-weight: 700; color: var(--brand); }
.celebrate-stats .k { font-size: 11px; color: var(--ink-3); }
.celebrate-actions { display: flex; gap: 10px; justify-content: center; margin-top: 6px; }

/* 导航抽屉（更多/专家等说明弹层） */
.nav-drawer { position: fixed; inset: 0; z-index: 650; }
.nd-mask { position: absolute; inset: 0; background: rgba(15,23,36,.45); backdrop-filter: blur(2px); }
.nd-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  background: var(--panel); border-radius: 16px; width: 400px; max-width: 90vw;
  padding: 26px 28px; box-shadow: var(--shadow-3); animation: coachIn .3s cubic-bezier(.34,1.4,.64,1);
}
.nd-title { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.nd-body { font-size: 13.5px; color: var(--ink-2); line-height: 1.85; }
.nd-body b { color: var(--brand); }

/* 斜杠菜单定位修正 */
.slash-menu { position: absolute !important; top: auto !important; }

/* 收起按钮（#7：12px 浅灰） */
.fold-btn {
  border: none; background: none; color: var(--ink-3); font-size: 12px;
  cursor: pointer; font-family: var(--font); padding: 2px 4px;
}
.fold-btn:hover { color: var(--brand); }

/* 任务标题条（对话开始后浮现，#18：16px 黑体+右2图标） */
.task-head-bar {
  height: 48px; min-height: 48px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px; padding: 0 22px; background: var(--panel);
}
.thb-title { font-size: 16px; font-weight: 700; color: var(--ink); flex: 1; }

/* 后台任务胶囊（#17/#25：24px高 12px圆角 灰底 时钟图标，输入框左上悬浮） */
.bg-task-pill {
  position: absolute; top: -14px; left: 12px;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 4px 12px;
  font-size: 12px; color: #6b7280;
  box-shadow: var(--shadow-1);
  z-index: 5;
}
.input-zone { position: relative; }

/* ═══ v7 全量交互组件（规格源：官方文档） ═══ */

/* 任务行悬停 ⋯ 按钮 */
.task-more {
  border: none; background: transparent; color: var(--ink-3);
  font-size: 15px; cursor: pointer; padding: 0 4px;
  border-radius: 5px; opacity: 0; transition: opacity .12s;
  font-family: var(--font); line-height: 1;
}
.task-item:hover .task-more { opacity: 1; }
.task-more:hover { background: var(--panel-2); color: var(--ink); }

/* 右键/⋯ 菜单（官方三组分隔） */
.ctx-menu {
  position: fixed; z-index: 750; min-width: 200px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-3);
  padding: 5px; animation: ddIn .14s ease;
}
.ctx-item {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 11px; border-radius: 7px; cursor: pointer;
  font-size: 13px; color: var(--ink);
}
.ctx-item:hover { background: var(--panel-2); }
.ctx-item.danger { color: var(--err); }
.ctx-item.danger:hover { background: #fef2f2; }
.ci-ic { font-size: 13px; width: 18px; text-align: center; font-style: normal; }
.ctx-sep { height: 1px; background: var(--border); margin: 5px 9px; }

/* 消息操作行（复制/赞/踩/朗读/重生成/分享 + 模型时间标识） */
.msg-actions {
  display: flex; align-items: center; gap: 2px;
  margin-top: 10px; padding-top: 6px;
  border-top: 1px dashed var(--border);
}
.ma-btn {
  border: none; background: transparent; color: var(--ink-3);
  font-size: 13px; cursor: pointer; padding: 4px 7px;
  border-radius: 6px; transition: all .12s;
}
.ma-btn:hover { background: var(--panel-2); color: var(--ink); }
.ma-model {
  margin-left: auto; font-size: 11px; color: var(--ink-3);
  display: flex; align-items: center; gap: 4px;
}

/* 全局搜索（Ctrl+K，官方四分类） */
.gsearch-mask {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(15,23,36,.4); backdrop-filter: blur(2px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 12vh;
}
.gsearch {
  width: 560px; max-width: 92vw; background: var(--panel);
  border-radius: 14px; box-shadow: var(--shadow-3);
  padding: 10px; animation: coachIn .2s ease;
}
.gs-tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.gs-tab {
  border: none; background: transparent; cursor: pointer;
  font-size: 12.5px; color: var(--ink-2); padding: 5px 12px;
  border-radius: 7px; font-family: var(--font);
}
.gs-tab:hover { background: var(--panel-2); }
.gs-tab.on { background: var(--brand-weak); color: var(--brand); font-weight: 600; }
.gs-input {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border-strong);
  border-radius: 10px; font-size: 14px; font-family: var(--font);
  outline: none;
}
.gs-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(59,130,246,.10); }
.gs-hint { font-size: 11px; color: var(--ink-3); text-align: center; margin-top: 8px; }

/* @ 引用菜单 */
.at-menu { max-height: 300px; overflow-y: auto; }

/* 停止按钮模式（执行中发送键变红色■） */
.send-btn.stop-mode { background: var(--err); }
.send-btn.stop-mode:hover { background: #dc2626; }

/* 产物分享/下载按钮 */
.file-share, .file-dl {
  border: none; background: transparent; color: var(--ink-3);
  font-size: 13px; cursor: pointer; padding: 4px 6px;
  border-radius: 6px;
}
.file-share:hover { background: var(--panel-2); color: var(--brand); }
.file-dl:hover { background: var(--ok-weak); color: var(--ok); }

/* ═══ v9-3 选中引用（官方 Conversation 规格） ═══ */
/* 选区浮动操作栏 */
.sel-bar {
  position: fixed; z-index: 660;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 9px; box-shadow: var(--shadow-2);
  padding: 3px; animation: ddIn .12s ease;
}
.sb-btn {
  border: none; background: var(--brand); color: #fff;
  font-size: 12px; padding: 5px 13px; border-radius: 6px;
  cursor: pointer; font-family: var(--font); white-space: nowrap;
}
.sb-btn:hover { background: #2563eb; }

/* 用户消息：引用块+气泡纵排 */
.msg.user .u-col { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; max-width: 78%; }
.u-quotes { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.u-quote {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 4px 10px;
  font-size: 11.5px; color: var(--ink-2); cursor: default;
}
.u-quote:hover { border-color: var(--brand); color: var(--brand); }

/* 引用原文悬浮卡 */
.quote-tip {
  position: fixed; z-index: 670; width: 320px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 11px; box-shadow: var(--shadow-3);
  padding: 10px 13px; animation: ddIn .15s ease;
}
.qt-src { font-size: 10.5px; color: var(--ink-3); margin-bottom: 5px; }
.qt-text { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; max-height: 160px; overflow-y: auto; }

/* ═══ v9-4 B组补丁样式 ═══ */
/* 筛选面板 */
.filter-panel {
  margin: 0 10px 6px; padding: 8px 10px;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 9px;
}
.fp-row { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; }
.fp-row:last-child { margin-bottom: 0; }
.fp-label { font-size: 11px; color: var(--ink-3); width: 26px; }
.fp-chip {
  border: 1px solid var(--border-strong); background: var(--panel);
  font-size: 11px; padding: 2.5px 10px; border-radius: 11px;
  color: var(--ink-2); cursor: pointer; font-family: var(--font);
}
.fp-chip:hover { border-color: var(--brand); color: var(--brand); }
.fp-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* 批量操作条 */
.batch-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 690; display: flex; align-items: center; gap: 9px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 13px; padding: 9px 15px;
  box-shadow: var(--shadow-3); animation: coachIn .25s ease;
}
.bb-all { display: flex; align-items: center; gap: 5px; font-size: 12.5px; cursor: pointer; }
.bb-count { font-size: 12px; color: var(--brand); font-weight: 600; }
.bb-spacer { width: 12px; }
.mini-btn.danger { color: var(--err); border-color: var(--err); }
.mini-btn.danger:hover { background: #fef2f2; }
.task-check { width: 14px; height: 14px; min-width: 14px; cursor: pointer; margin-right: 2px; }

/* 搜索结果行 */
.gs-results { max-height: 340px; overflow-y: auto; margin-top: 8px; }
.gs-group { font-size: 11px; color: var(--ink-3); padding: 6px 10px 3px; }
.gs-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 11px; border-radius: 9px; cursor: pointer;
}
.gs-row:hover { background: var(--panel-2); }
.gs-row.cur { background: var(--brand-weak); }
.gsr-ic { font-size: 16px; }
.gsr-info { flex: 1; min-width: 0; }
.gsr-title { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gsr-sub { font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.gsr-type { font-size: 10.5px; color: var(--ink-3); background: var(--panel-2); padding: 2px 8px; border-radius: 9px; }
.gs-empty { text-align: center; color: var(--ink-3); font-size: 12.5px; padding: 26px 0; }

/* 设置页下拉 */
.set-select {
  padding: 5px 10px; border: 1px solid var(--border-strong);
  border-radius: 8px; font-size: 12px; font-family: var(--font);
  background: var(--panel); color: var(--ink); cursor: pointer; outline: none;
}
.set-select:focus { border-color: var(--brand); }

/* 输入框引用托盘 */
.quote-tray {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 9px 14px 0;
}
.q-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-weak); border: 1px solid var(--brand-weak-2);
  color: var(--brand-deep); border-radius: 8px;
  padding: 3px 9px; font-size: 11.5px; max-width: 240px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.q-del {
  border: none; background: transparent; color: var(--brand);
  cursor: pointer; font-size: 13px; padding: 0 2px; line-height: 1;
}
.q-del:hover { color: var(--err); }

/* ═══ v10-2 任务状态徽章（官方：进行中/已完成未读/待确认 + 分组聚合） ═══ */
.st-badge {
  font-size: 10px; padding: 1.5px 7px; border-radius: 9px;
  white-space: nowrap; font-weight: 500;
}
.st-badge.doing { background: var(--brand-weak); color: var(--brand); }
.st-badge.unread { background: var(--brand-weak-2); color: var(--brand-deep); }
.st-badge.confirm { background: var(--warn-weak); color: var(--warn); }
.grp-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%;
  font-size: 9.5px; margin-left: 5px; vertical-align: 1px;
}
.grp-badge.confirm { background: var(--warn-weak); color: var(--warn); }
.grp-badge.unread { background: var(--brand-weak-2); color: var(--brand-deep); }
.grp-badge.doing { background: var(--brand-weak); color: var(--brand); }
.task-dot.failed { color: var(--err); }

/* ═══ v10-1 消息队列托盘 ═══ */
.queue-tray {
  margin: 8px 14px 0; padding: 8px 12px;
  background: var(--panel-2); border: 1px dashed var(--border-strong);
  border-radius: 11px;
}
.qt-head { font-size: 11px; color: var(--ink-3); margin-bottom: 6px; }
.q-row {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 0; font-size: 12.5px;
}
.q-no {
  width: 17px; height: 17px; min-width: 17px; border-radius: 50%;
  background: var(--brand-weak); color: var(--brand); font-size: 10px;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}
.q-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.q-op {
  border: none; background: transparent; color: var(--ink-3);
  font-size: 12px; cursor: pointer; padding: 2px 5px; border-radius: 5px;
}
.q-op:hover { background: var(--panel); color: var(--brand); }

/* 内置浏览器（预览tab，官方：地址栏+刷新+多页签） */
.mini-browser { display: flex; flex-direction: column; height: 100%; }
.mb-bar {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 10px; border-bottom: 1px solid var(--border);
  background: var(--panel-2);
}
.mb-nav {
  border: none; background: transparent; color: var(--ink-2);
  font-size: 13px; cursor: pointer; padding: 4px 8px; border-radius: 6px;
}
.mb-nav:hover { background: var(--panel); }
.mb-url {
  flex: 1; padding: 5px 12px; border: 1px solid var(--border);
  border-radius: 14px; font-size: 12px; color: var(--ink-2);
  background: var(--panel); font-family: var(--mono);
}
.mb-page { flex: 1; overflow-y: auto; }

/* ═══ v9-1 工作空间选择 ═══ */
.modal-mask {
  position: fixed; inset: 0; z-index: 780;
  background: rgba(15,23,36,.42); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
}
.modal {
  background: var(--panel); border-radius: 16px; width: 460px; max-width: 92vw;
  max-height: 86vh; overflow-y: auto; padding: 24px 26px;
  box-shadow: var(--shadow-3); animation: coachIn .25s cubic-bezier(.34,1.4,.64,1);
}
.modal h3 { font-size: 16px; margin-bottom: 10px; }
.ws-list { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 4px; }
.ws-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 13px; border: 1px solid var(--border);
  border-radius: 11px; cursor: pointer; transition: all .12s;
}
.ws-item:hover { border-color: var(--brand); background: var(--brand-weak); }
.ws-item.on { border-color: var(--brand); background: var(--brand-weak); }
.ws-ic { font-size: 20px; }
.ws-info { flex: 1; min-width: 0; }
.ws-name { font-size: 13.5px; font-weight: 600; }
.ws-sub {
  font-size: 11.5px; color: var(--ink-3); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ws-cur {
  font-size: 10.5px; color: var(--brand); background: var(--brand-weak-2);
  padding: 2px 8px; border-radius: 9px; font-weight: 600;
}
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 14px; }
.tb-btn#workspaceBtn:hover { color: var(--brand); }
/* 工作空间按钮：默认态与其它按钮一致（真机无高亮） */
.tb-btn#workspaceBtn { color: var(--ink-2); }
.tb-btn#workspaceBtn .chosen { color: var(--brand); }

@media (max-width: 1180px) { .rightpanel { display: none; } }
@media (max-width: 860px) { .sidebar { display: none; } .scene-cards { grid-template-columns: 1fr 1fr; } }

/* ═══════════ 功能页面（专家/自动化/项目/助理/更多/设置） ═══════════ */
.page { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--bg); overflow: hidden; }
.page-head {
  height: 52px; min-height: 52px; background: var(--panel);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px; padding: 0 22px;
}
.page-title { font-size: 16px; font-weight: 700; flex: 1; }
.page-body { flex: 1; overflow-y: auto; padding: 20px 22px; }
.page-inner { max-width: 980px; margin: 0 auto; }

/* 页内返回对话按钮 */
.back-home {
  border: 1px solid var(--border-strong); background: var(--panel);
  color: var(--ink-2); font-size: 12.5px; padding: 5px 12px;
  border-radius: 8px; cursor: pointer; margin-right: 8px;
  transition: all .13s; font-family: var(--font);
}
.back-home:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-weak); }

/* 页内 tabs（专家页） */
.page-tabs { display: flex; gap: 4px; padding: 14px 22px 0; background: var(--panel); border-bottom: 1px solid var(--border); }
.pt-tab {
  border: none; background: transparent; cursor: pointer;
  font-size: 13.5px; color: var(--ink-2); padding: 8px 16px 10px;
  border-radius: 9px 9px 0 0; position: relative; font-family: var(--font);
}
.pt-tab:hover { background: var(--panel-2); }
.pt-tab.on { color: var(--brand); font-weight: 600; }
.pt-tab.on::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 0; height: 2.5px; background: var(--brand); border-radius: 2px; }

/* 搜索框+分类chips */
.filter-row { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.search-box {
  flex: 1; min-width: 220px; padding: 9px 14px;
  border: 1px solid var(--border-strong); border-radius: 10px;
  font-size: 13px; color: var(--ink); outline: none; background: var(--panel);
  font-family: var(--font);
}
.search-box:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,82,217,.08); }
.chip {
  border: 1px solid var(--border-strong); background: var(--panel);
  padding: 6px 14px; border-radius: 18px; font-size: 12.5px;
  color: var(--ink-2); cursor: pointer; transition: all .12s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* 卡片网格 */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.feat-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 18px; transition: all .15s; display: flex; flex-direction: column; gap: 8px;
}
.feat-card:hover { border-color: var(--brand); box-shadow: var(--shadow-2); }
.fc-top { display: flex; align-items: flex-start; gap: 12px; }
.fc-ic {
  width: 40px; height: 40px; min-width: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: var(--brand-weak);
}
.fc-name { font-size: 14.5px; font-weight: 700; }
.fc-desc { font-size: 12.5px; color: var(--ink-2); line-height: 1.65; flex: 1; }
.fc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.fc-meta { font-size: 11px; color: var(--ink-3); }
.install-btn {
  border: 1px solid var(--brand); background: var(--brand); color: #fff;
  font-size: 12.5px; padding: 6px 16px; border-radius: 8px; cursor: pointer;
  transition: all .15s; font-family: var(--font);
}
.install-btn:hover { background: #0047c2; }
.install-btn.installed { background: var(--ok-weak); border-color: var(--ok-weak); color: var(--ok); cursor: default; }
.install-btn.ghost { background: var(--panel); color: var(--brand); }
.install-btn.ghost:hover { background: var(--brand-weak); }

/* 状态点 */
.st-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.st-dot i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.st-dot.ok i { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-weak); }
.st-dot.off i { background: #c3cad3; }

/* 自动化任务卡 */
.auto-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 18px; margin-bottom: 12px; display: flex; align-items: center; gap: 14px;
  transition: all .15s;
}
.auto-card:hover { border-color: var(--brand); }
.auto-ic {
  width: 42px; height: 42px; min-width: 42px; border-radius: 11px;
  background: var(--brand-weak); display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.auto-info { flex: 1; min-width: 0; }
.auto-name { font-size: 14px; font-weight: 700; }
.auto-prompt { font-size: 12px; color: var(--ink-2); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auto-meta { font-size: 11px; color: var(--ink-3); margin-top: 5px; display: flex; gap: 12px; flex-wrap: wrap; }
.auto-acts { display: flex; gap: 8px; }
.mini-btn {
  border: 1px solid var(--border-strong); background: var(--panel); color: var(--ink-2);
  font-size: 12px; padding: 6px 13px; border-radius: 8px; cursor: pointer;
  transition: all .13s; font-family: var(--font);
}
.mini-btn:hover { border-color: var(--brand); color: var(--brand); }
.mini-btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.mini-btn.primary:hover { background: #0047c2; }

/* 模板行 */
.tpl-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-bottom: 18px; }
.tpl-card {
  border: 1px dashed var(--border-strong); border-radius: 12px; padding: 12px 14px;
  cursor: pointer; background: var(--panel-2); transition: all .13s;
}
.tpl-card:hover { border-color: var(--brand); background: var(--brand-weak); }
.tpl-t { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.tpl-d { font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }

/* 表单弹窗 */
.modal h3 { font-size: 16px; margin-bottom: 16px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 12.5px; color: var(--ink-2); font-weight: 600; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border-strong);
  border-radius: 9px; font-size: 13px; font-family: var(--font);
  outline: none; background: var(--panel); color: var(--ink);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,82,217,.08); }
.form-row textarea { resize: vertical; min-height: 72px; }
.form-acts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* 开关 */
.switch { position: relative; width: 40px; height: 22px; min-width: 40px; cursor: pointer; display: inline-block; }
.switch input { display: none; }
.switch .tr { position: absolute; inset: 0; border-radius: 20px; background: #c3cad3; transition: background .18s; }
.switch .th {
  position: absolute; top: 2.5px; left: 3px; width: 17px; height: 17px;
  background: #fff; border-radius: 50%; transition: left .18s;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.switch input:checked ~ .tr { background: var(--brand); }
.switch input:checked ~ .th { left: 20px; }

/* 设置分区与卡片 */
.set-section-title {
  font-size: 13px; font-weight: 700; color: var(--ink-2);
  margin: 18px 0 8px; letter-spacing: 0.3px;
}
.set-section-title:first-child { margin-top: 4px; }
.set-card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 4px 18px; margin-bottom: 14px; }
.set-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--panel-2); }
.set-row:last-child { border-bottom: none; }
.set-info { flex: 1; }
.set-name { font-size: 13.5px; font-weight: 600; }
.set-desc { font-size: 12px; color: var(--ink-3); margin-top: 3px; line-height: 1.6; }

/* 假二维码 */
.qr-fake {
  width: 180px; height: 180px; margin: 0 auto 14px;
  border: 1px solid var(--border); border-radius: 12px;
  background:
    repeating-linear-gradient(0deg, #1c242e 0 8px, transparent 8px 16px),
    repeating-linear-gradient(90deg, #1c242e 0 8px, transparent 8px 16px),
    #fff;
  position: relative; overflow: hidden;
}
.qr-fake::after {
  content: "扫码授权"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.88); color: var(--ink-2); font-size: 14px; font-weight: 600;
}

/* 助理页手机演示 */
.phone-demo { display: flex; gap: 14px; align-items: stretch; margin-top: 18px; }
.phone-box { flex: 1; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); padding: 14px 16px; }
.phone-box .ph-title { font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.chat-bubble-demo { max-width: 85%; padding: 9px 13px; border-radius: 12px; font-size: 12.5px; line-height: 1.6; margin-bottom: 8px; }
.chat-bubble-demo.me { background: #95ec69; margin-left: auto; border-radius: 12px 2px 12px 12px; }
.chat-bubble-demo.ai { background: var(--panel-2); border-radius: 2px 12px 12px 12px; color: var(--ink-2); }

/* 空状态 */
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-3); font-size: 13px; }
.empty-state .ic { font-size: 40px; margin-bottom: 12px; opacity: .6; }

/* 更多页：发现应用生态 (BuddyApps) */
.more-app-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px; margin-top: 14px;
}
.more-app-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between;
  transition: all .18s ease; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.more-app-card:hover {
  border-color: #3370ff; box-shadow: 0 6px 20px rgba(51, 112, 255, 0.08);
  transform: translateY(-2px);
}
.more-app-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 10px; }
.more-app-icon-wrap {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; background: #f7f8fa;
  border: 1px solid #ebedf0; padding: 8px; box-sizing: border-box;
}
.more-app-icon { width: 100%; height: 100%; object-fit: contain; }
.more-app-info { flex: 1; min-width: 0; }
.more-app-title {
  font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 3px;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.more-app-dev { font-size: 11.5px; color: var(--ink-3); }
.more-app-desc {
  font-size: 12.5px; color: #4e5969; line-height: 1.65; margin: 8px 0 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 40px;
}
.more-app-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; border-top: 1px solid var(--panel-2);
}
.more-app-status-pill {
  font-size: 11.5px; padding: 2px 8px; border-radius: 10px;
  background: var(--panel-2); color: var(--ink-3); font-weight: 500;
}
.more-app-status-pill.connected {
  background: #e6f7ec; color: #00a870; font-weight: 600;
}

/* 更多页：灵感中心 (Inspiration) */
.insp-header-box {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  border: 1px solid #bfdbfe; border-radius: 16px; padding: 18px 22px;
  margin-bottom: 18px;
}
.insp-title-row { display: flex; flex-direction: column; gap: 6px; }
.insp-main-text { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.insp-badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #0052d9;
  box-shadow: 0 0 0 3px rgba(0,82,217,.2);
}
.insp-date-pill {
  font-size: 11.5px; background: #e8f1ff; color: #0052d9;
  padding: 2px 8px; border-radius: 12px; font-weight: 600;
}
.insp-sub-text { font-size: 12.5px; color: #4e5969; line-height: 1.6; }
.insp-grid { display: flex; flex-direction: column; gap: 14px; }
.insp-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px 22px; transition: all .18s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.insp-card:hover {
  border-color: #3370ff; box-shadow: 0 6px 20px rgba(51, 112, 255, 0.08);
}
.insp-card-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 10px; }
.insp-card-icon-box {
  font-size: 26px; width: 44px; height: 44px; border-radius: 12px;
  background: #f7f8fa; border: 1px solid #ebedf0;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.insp-card-title-area { flex: 1; min-width: 0; }
.insp-card-title { font-size: 15.5px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.insp-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.insp-card-desc { font-size: 13px; color: #4e5969; line-height: 1.7; margin: 10px 0; }
.insp-card-prompt-box {
  background: #f8fafc; border: 1px solid #e2e8f0; border-left: 3px solid var(--brand);
  border-radius: 8px; padding: 10px 14px; margin: 10px 0 14px;
}
.insp-prompt-label { font-size: 11.5px; font-weight: 700; color: var(--brand); margin-bottom: 3px; }
.insp-prompt-text { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; font-style: italic; }
.insp-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--panel-2);
}

/* 项目页 */
.proj-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 20px; transition: all .15s; cursor: pointer;
}
.proj-card:hover { border-color: var(--brand); box-shadow: var(--shadow-2); }
.proj-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.proj-desc { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.proj-meta { font-size: 11.5px; color: var(--ink-3); margin-top: 10px; display: flex; gap: 14px; }

/* ════════════════════════════════════════════════════════════════
   真机对齐：二级页面精修（专家·技能·连接器 / 定时任务 / 资料库）
   ════════════════════════════════════════════════════════════════ */

/* 页面通用顶栏与副标题 */
.page-head-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; border-bottom: 1px solid var(--border);
  background: var(--panel); min-height: 58px; box-sizing: border-box;
}
.page-head-left { display: flex; align-items: center; gap: 12px; }
.page-main-title { font-size: 16px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.page-sub-title { font-size: 12px; color: var(--ink-3); font-weight: normal; margin-left: 4px; }
.page-head-right { display: flex; align-items: center; gap: 10px; }

/* 顶栏操作胶囊与按钮 */
.action-btn-primary {
  background: var(--brand); color: #fff; border: 1px solid var(--brand);
  padding: 6px 14px; border-radius: 8px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: all .15s; font-family: var(--font);
}
.action-btn-primary:hover { background: #0047c2; border-color: #0047c2; }
.action-btn-secondary {
  background: var(--panel); color: var(--ink-2); border: 1px solid var(--border-strong);
  padding: 6px 14px; border-radius: 8px; font-size: 12.5px; font-weight: 500;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: all .15s; font-family: var(--font);
}
.action-btn-secondary:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-weak); }

/* 现代分段选择器 (Segmented Control) */
.wb-segmented-tabs {
  display: inline-flex; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 2px; gap: 2px;
}
.wb-segmented-item {
  border: none; background: transparent; padding: 5px 14px; border-radius: 6px;
  font-size: 12.5px; color: var(--ink-2); cursor: pointer; transition: all .15s;
  font-family: var(--font); font-weight: 500; display: inline-flex; align-items: center; gap: 5px;
}
.wb-segmented-item:hover { color: var(--ink); }
.wb-segmented-item.active {
  background: #fff; color: var(--brand); font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.wb-segmented-badge {
  font-size: 10.5px; background: rgba(0,82,217,.1); color: var(--brand);
  padding: 1px 6px; border-radius: 10px; font-weight: 600;
}

/* 专家页：角色卡片体系 */
/* ════════════════════════════════════════════════════════════════
   专家页：官方 3D 角色体系与技能卡片（对齐真机 expert-picker 规范）
   ════════════════════════════════════════════════════════════════ */
.expert-card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px; margin-top: 14px;
}
.expert-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between;
  transition: all .18s ease; cursor: pointer; position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.expert-card:hover {
  border-color: #3370ff; box-shadow: 0 6px 20px rgba(51, 112, 255, 0.08);
  transform: translateY(-2px);
}
.expert-card-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 10px; }
.expert-avatar-wrap {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; background: #f2f3f5;
  border: 1px solid #eef0f3; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.expert-avatar-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.expert-avatar-wrap.skill-avatar-box {
  background: #f7f8fa; font-size: 24px;
}
.skill-emoji-icon { font-size: 24px; }
.expert-info { flex: 1; min-width: 0; }
.expert-name {
  font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.expert-badge-official {
  font-size: 11px; background: #f0f4ff; color: #3370ff; border: 1px solid #d4e3ff;
  padding: 1.5px 6px; border-radius: 4px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 3px; white-space: nowrap;
}
.expert-badge-official.builtin {
  background: #e6f7ec; color: #00a870; border-color: #b5efd3;
}
.expert-official-icon { width: 12px; height: 12px; display: inline-block; vertical-align: middle; }
.expert-hot-tag { font-size: 11px; color: #ff5722; font-weight: 600; }
.expert-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.expert-tag-pill {
  font-size: 11px; background: #f7f8fa; color: #4e5969;
  padding: 1.5px 7px; border-radius: 4px; border: 1px solid #ebedf0;
}
.expert-desc {
  font-size: 12.5px; color: #4e5969; line-height: 1.65; margin: 8px 0 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 40px;
}
.expert-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid rgba(0,0,0,0.05);
}
.expert-meta-tip { font-size: 11.5px; color: var(--ink-3); }
.expert-summon-btn {
  background: #f2f6ff; color: #3370ff; border: 1px solid #d0e1fd;
  padding: 4px 13px; border-radius: 7px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all .15s; font-family: var(--font);
}
.expert-summon-btn:hover { background: #3370ff; color: #fff; border-color: #3370ff; }

/* ════════════════════════════════════════════════════════════════
   连接器页：原厂矢量生态图标与认证系统
   ════════════════════════════════════════════════════════════════ */
.connector-card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px; margin-top: 14px;
}
.connector-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between;
  transition: all .16s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.connector-card:hover {
  border-color: #3370ff; box-shadow: 0 6px 20px rgba(51, 112, 255, 0.08);
  transform: translateY(-1.5px);
}
.connector-card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.connector-icon-box {
  width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center;
  justify-content: center; background: #fff; border: 1px solid #eef0f3;
  flex-shrink: 0; box-shadow: 0 2px 6px rgba(0,0,0,0.03); overflow: hidden;
}
.connector-icon-img {
  width: 30px; height: 30px; object-fit: contain; display: block;
}
.connector-icon-fallback { font-size: 24px; }
.connector-title-box { flex: 1; min-width: 0; }
.connector-name-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.connector-name { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.connector-status-badge {
  font-size: 11.5px; display: inline-flex; align-items: center; gap: 5px;
}
.connector-status-badge.connected { color: #00a870; font-weight: 500; }
.connector-status-badge.connected i { width: 7px; height: 7px; border-radius: 50%; background: #00a870; box-shadow: 0 0 0 2px rgba(0,168,112,0.2); }
.connector-status-badge.disconnected { color: var(--ink-3); }
.connector-status-badge.disconnected i { width: 7px; height: 7px; border-radius: 50%; background: #c3cad3; }
.connector-meta-row { display: flex; align-items: center; gap: 6px; }
.connector-type-pill {
  font-size: 10.5px; padding: 1px 6px; border-radius: 4px; font-weight: 500;
}
.connector-type-pill.official { background: #e6f7ec; color: #00a870; border: 1px solid #b5efd3; }
.connector-type-pill.mcp { background: #f0f4ff; color: #3370ff; border: 1px solid #d0e0ff; }
.connector-type-pill.custom { background: #fff7e6; color: #fa8c16; border: 1px solid #ffd591; }
.connector-desc {
  font-size: 12.5px; color: #4e5969; line-height: 1.6; margin-bottom: 14px; min-height: 38px;
}
.connector-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid rgba(0,0,0,0.05); }
.connector-auth-pill { font-size: 11px; color: var(--ink-3); }
.connector-btn {
  padding: 5px 14px; border-radius: 7px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all .15s; font-family: var(--font);
}
.connector-btn.connect { background: #fff; color: #3370ff; border: 1px solid #3370ff; }
.connector-btn.connect:hover { background: #f0f4ff; }
.connector-btn.connected { background: var(--panel-2); color: var(--ink-2); border: 1px solid var(--border); }
.connector-btn.connected:hover { border-color: var(--err); color: var(--err); }

/* ════════════════════════════════════════════════════════════════
   定时任务页：真机流水线与卡片结构
   ════════════════════════════════════════════════════════════════ */
.atm-toolbar-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.atm-task-card-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.atm-task-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 22px; transition: all .15s; position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.atm-task-card:hover { border-color: #3370ff; box-shadow: 0 4px 16px rgba(51, 112, 255, 0.06); }
.atm-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.atm-card-title-group { display: flex; align-items: center; gap: 10px; }
.atm-card-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.atm-card-env-badge {
  font-size: 11.5px; background: #f0f4ff; color: #3370ff; border: 1px solid #d4e3ff;
  padding: 2px 8px; border-radius: 6px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px;
}
.atm-card-body { margin-bottom: 12px; }
.atm-card-schedule {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
  font-weight: 600; color: #3370ff; background: #eef4ff; padding: 3px 10px;
  border-radius: 6px; margin-bottom: 8px;
}
.atm-card-prompt-text {
  font-size: 12.5px; color: var(--ink-2); line-height: 1.6; background: #f7f8fa;
  padding: 10px 14px; border-radius: 8px; border-left: 3px solid #3370ff;
}
.atm-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11.5px; color: var(--ink-3); padding-top: 12px; border-top: 1px solid rgba(0,0,0,0.05);
}
.atm-card-meta-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.atm-card-actions { display: flex; align-items: center; gap: 8px; }
.atm-icon-action-btn {
  background: var(--panel); border: 1px solid var(--border); color: var(--ink-2);
  padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 500;
  cursor: pointer; transition: all .15s; font-family: var(--font);
}
.atm-icon-action-btn:hover { border-color: #3370ff; color: #3370ff; background: #f0f4ff; }
.atm-icon-action-btn.primary { background: #3370ff; color: #fff; border-color: #3370ff; }
.atm-icon-action-btn.primary:hover { background: #265bdb; }

/* 定时执行记录表格 */
.atm-records-table-wrap {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; margin-bottom: 24px;
}
.atm-records-table { width: 100%; border-collapse: collapse; font-size: 12.5px; text-align: left; }
.atm-records-table th {
  background: var(--panel-2); color: var(--ink-2); font-weight: 600; padding: 11px 16px;
  border-bottom: 1px solid var(--border); font-size: 12px;
}
.atm-records-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--ink);
}
.atm-records-table tr:last-child td { border-bottom: none; }
.atm-records-table tr:hover td { background: #fafbfc; }
.atm-status-tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px;
  padding: 2px 8px; border-radius: 10px; font-weight: 500;
}
.atm-status-tag.success { background: #e6f7ec; color: #00a870; }
.atm-status-tag.running { background: #eef5ff; color: #3370ff; }
.atm-status-tag.failed { background: #fff1f0; color: #f5222d; }

/* ════════════════════════════════════════════════════════════════
   资料库页：存储指示器、云源横幅与文件表格
   ════════════════════════════════════════════════════════════════ */
.lib-header-info { display: flex; align-items: center; gap: 14px; }
.lib-storage-capsule {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px;
  color: var(--ink-2); background: var(--panel-2); padding: 4px 12px;
  border-radius: 14px; border: 1px solid var(--border);
}
.lib-storage-bar {
  width: 50px; height: 5px; background: #e5e7eb; border-radius: 3px; overflow: hidden;
}
.lib-storage-fill { width: 12%; height: 100%; background: #3370ff; border-radius: 3px; }

.lib-cloud-sources-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px; margin-bottom: 18px;
}
.lib-source-capsule-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 18px; display: flex; align-items: center; gap: 14px; cursor: pointer;
  transition: all .16s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.lib-source-capsule-card:hover {
  border-color: #3370ff; box-shadow: 0 4px 16px rgba(51, 112, 255, 0.08);
  background: #fbfdff; transform: translateY(-1px);
}
.lib-source-icon-wrap {
  width: 40px; height: 40px; border-radius: 12px; background: #f7f8fa;
  border: 1px solid #eef0f3; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.lib-source-icon-img { width: 26px; height: 26px; object-fit: contain; display: block; }
.lib-source-info { flex: 1; min-width: 0; }
.lib-source-title { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.lib-source-sub { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.lib-source-arrow { color: var(--ink-3); font-size: 14px; font-weight: bold; margin-left: auto; transition: transform .15s; }
.lib-source-capsule-card:hover .lib-source-arrow { transform: translateX(2px); color: #3370ff; }

/* 资料库文件表格视图 */
.lib-file-table-wrap {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.03);
}
.lib-file-table { width: 100%; border-collapse: collapse; font-size: 12.5px; text-align: left; }
.lib-file-table th {
  background: var(--panel-2); color: var(--ink-2); font-weight: 600;
  padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 12px;
}
.lib-file-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--ink);
  vertical-align: middle;
}
.lib-file-table tr:last-child td { border-bottom: none; }
.lib-file-table tr:hover td { background: #fafbfc; }
.lib-file-name-cell { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.lib-file-icon-wrap {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.lib-file-svg-icon {
  width: 24px; height: 24px; vertical-align: middle; flex-shrink: 0;
}
.lib-file-excel-icon {
  width: 24px; height: 24px; border-radius: 5px; background: #107c41; color: #fff;
  font-size: 9px; font-weight: 800; display: inline-flex; align-items: center;
  justify-content: center; flex-shrink: 0; box-shadow: 0 1px 3px rgba(16,124,65,0.2);
  letter-spacing: 0.5px;
}
.lib-format-badge {
  width: 26px; height: 26px; border-radius: 6px; display: flex; align-items: center;
  justify-content: center; font-size: 14px; background: var(--panel-2); flex-shrink: 0;
}
.lib-action-btn-link {
  color: #3370ff; background: none; border: none; font-size: 12px;
  cursor: pointer; padding: 2px 6px; border-radius: 4px; font-weight: 500;
  transition: all .12s; font-family: var(--font);
}
.lib-action-btn-link:hover { background: #f0f4ff; text-decoration: underline; }

/* 微信/企微助理 SVG 图标样式 */
.fc-svg-icon {
  width: 32px; height: 32px; object-fit: contain; display: block;
}

/* ════════════════════════════════════════════════════════════════
   真机对齐：UserMenu 账户浮层、通知中心与高频交互弹窗
   ════════════════════════════════════════════════════════════════ */

/* 用户账户浮层 (UserMenu) */
.user-menu-popover {
  position: absolute; bottom: 58px; left: 12px; width: 280px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  z-index: 1000; padding: 12px; animation: popoverSlideUp .18s ease-out;
  box-sizing: border-box; font-family: var(--font);
}
@keyframes popoverSlideUp {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Buddy 加油站今日礼包横幅 */
.user-checkin-banner {
  background: linear-gradient(135deg, #0dc7a4 0%, #10a37f 100%);
  border-radius: 10px; padding: 12px 14px; color: #fff; margin-bottom: 10px;
  box-shadow: 0 3px 10px rgba(16,163,127,0.2);
}
.user-checkin-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.user-checkin-title { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.btn-checkin {
  background: rgba(255,255,255,0.92); color: #008e70; border: none;
  border-radius: 6px; padding: 4px 10px; font-size: 11.5px; font-weight: 700;
  cursor: pointer; transition: all .15s; font-family: var(--font);
}
.btn-checkin:hover { background: #fff; transform: scale(1.02); }
.btn-checkin.claimed { background: rgba(255,255,255,0.25); color: #fff; cursor: default; }
.user-checkin-desc { font-size: 11.5px; opacity: 0.92; line-height: 1.4; }

/* 菜单项 */
.user-menu-list { display: flex; flex-direction: column; gap: 2px; }
.user-menu-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border-radius: 8px; cursor: pointer; transition: background .12s;
  color: var(--ink); font-size: 13px; text-decoration: none;
}
.user-menu-row:hover { background: var(--panel-2); color: var(--brand); }
.user-menu-row-left { display: flex; align-items: center; gap: 10px; }
.user-menu-ic { font-size: 15px; width: 18px; text-align: center; }
.user-menu-divider { height: 1px; background: var(--border); margin: 6px 0; }

/* 通知中心浮层 (Notification Popover) */
.notif-popover {
  position: absolute; bottom: 58px; left: 160px; width: 320px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  z-index: 1000; padding: 14px; animation: popoverSlideUp .18s ease-out;
  box-sizing: border-box; font-family: var(--font);
}
.notif-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 8px; border-bottom: 1px solid var(--border); margin-bottom: 10px;
}
.notif-title { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.notif-clear-btn { background: none; border: none; font-size: 11.5px; color: var(--ink-3); cursor: pointer; }
.notif-clear-btn:hover { color: var(--brand); }
.notif-list { display: flex; flex-direction: column; gap: 10px; max-height: 280px; overflow-y: auto; }
.notif-item { padding: 8px 10px; border-radius: 8px; background: #fafbfc; border: 1px solid var(--border); }
.notif-item-top { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.notif-item-time { font-size: 11px; color: var(--ink-3); font-weight: normal; }
.notif-item-desc { font-size: 11.5px; color: var(--ink-2); line-height: 1.5; }

/* 技能详情弹窗 (Skill Detail Modal) */
.skill-detail-top { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.skill-detail-icon-wrap {
  width: 58px; height: 58px; border-radius: 14px; background: #f2f3f5;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  flex-shrink: 0; border: 1px solid #ebedf0;
}
.skill-detail-title { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.skill-detail-meta { font-size: 12px; color: var(--ink-3); }
.skill-detail-box {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 12px; font-size: 12.5px; line-height: 1.6; color: var(--ink-2);
}
.skill-detail-label { font-size: 11.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; }
.skill-cmd-pill {
  background: #eef2ff; color: #3730a3; padding: 2px 8px; border-radius: 4px;
  font-family: monospace; font-size: 12px; font-weight: 600; display: inline-block;
}

/* 环境自检弹窗 (Self-Check Modal) */
.diag-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.diag-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: 8px; background: #fafbfc; border: 1px solid var(--border);
}
.diag-info { display: flex; align-items: center; gap: 10px; }
.diag-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.diag-val { font-size: 11.5px; color: var(--ink-3); }
.diag-badge {
  font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 10px;
  background: #e6f7ec; color: #00a870;
}

/* 资源监控网格 (Resource Monitor) */
.res-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0; }
.res-card {
  background: #fafbfc; border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px;
}
.res-val { font-size: 18px; font-weight: 800; color: var(--brand); margin-bottom: 2px; }
.res-label { font-size: 11.5px; color: var(--ink-3); }

/* 侧边栏折叠状态 */
.sidebar.collapsed { width: 56px; min-width: 56px; }
.sidebar.collapsed .side-head > div:first-child,
.sidebar.collapsed .discover-chip,
.sidebar.collapsed .sn-sub,
.sidebar.collapsed .sn-beta,
.sidebar.collapsed .sn-hint,
.sidebar.collapsed .side-scroll,
.sidebar.collapsed .side-user { display: none !important; }
.sidebar.collapsed .side-head { justify-content: center; padding: 12px 0; }
.sidebar.collapsed .sn-item { justify-content: center; padding: 10px 0; }
.sidebar.collapsed .side-foot { justify-content: center; padding: 12px 0; }
.sidebar.collapsed .side-avatar { margin: 0 auto; }
.sidebar.collapsed .foot-ic[title="通知"] { display: none; }

/* ════════════════════════════════════════════════════════════════
   官方 1:1 复刻：个人主页 (AccountPanel) 与 电脑连接 (DeviceConnection)
   ════════════════════════════════════════════════════════════════ */

/* 侧栏底部个人点击态与电脑连接按钮 */
.side-user { cursor: pointer; user-select: none; }
.side-user:hover .n { color: var(--brand); }
.side-user .role-badge {
  font-size: 10px; color: var(--brand); background: var(--brand-weak);
  padding: 1px 5px; border-radius: 4px; display: inline-block; margin-top: 1px; font-weight: 500;
}
.foot-ic svg { display: block; }
.foot-ic.btn-device-connect {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; padding: 0; color: #4b5563;
  transition: all 0.15s ease;
}
.foot-ic.btn-device-connect:hover {
  color: var(--brand); background: var(--brand-weak);
}

/* 个人主页外层容器 */
.account-page-wrap {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  background: var(--panel); overflow: hidden;
}
.account-panel {
  display: flex; flex-direction: column; gap: 16px;
  max-width: 820px; margin: 0 auto; width: 100%; padding: 4px 0 32px;
}
.account-panel__header,
.account-panel__credits-section,
.account-panel__location-section {
  background: #ffffff; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

/* 1. 个人档案头部 */
.account-panel__header {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
}
.account-panel__avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #2ba471, #0052d9);
  color: #fff; font-size: 20px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 82, 217, 0.2);
  flex-shrink: 0;
}
.account-panel__user-info { flex: 1; min-width: 0; }
.account-panel__username {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 4px;
}
.account-panel__nickname-edit {
  border: none; background: none; cursor: pointer;
  font-size: 13px; color: var(--ink-3); padding: 2px 4px; border-radius: 4px;
}
.account-panel__nickname-edit:hover { background: var(--panel-2); color: var(--ink); }
.wb-badge-enterprise {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px;
  background: linear-gradient(90deg, rgba(0, 82, 217, 0.1), rgba(43, 164, 113, 0.1));
  color: var(--brand); border: 1px solid rgba(0, 82, 217, 0.2);
}
.account-panel__email {
  font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 8px;
}
.account-uid-label { font-family: monospace; }
.uid-copy-btn {
  border: none; background: none; cursor: pointer; font-size: 12px; color: var(--ink-3);
  padding: 1px 4px; border-radius: 4px;
}
.uid-copy-btn:hover { background: var(--panel-2); color: var(--brand); }
.account-sep { color: var(--border-strong); }
.account-panel__manage-link {
  border: 1px solid var(--border); background: var(--panel-2);
  padding: 6px 14px; border-radius: 8px; font-size: 12.5px; color: var(--ink-2);
  cursor: pointer; transition: all 0.15s; font-weight: 500;
}
.account-panel__manage-link:hover {
  background: var(--brand-weak); color: var(--brand); border-color: var(--brand);
}

/* 2. 算力与积分面板 */
.account-panel__credits-section {
  padding: 20px 22px;
}
.account-panel__edition-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.account-panel__edition-label {
  font-size: 15px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.status-pill-active {
  font-size: 11px; font-weight: 500; color: #10b981; background: #ecfdf5;
  padding: 2px 8px; border-radius: 10px; border: 1px solid rgba(16,185,129,0.2);
}
.account-panel__edition-expiry {
  font-size: 12px; color: var(--ink-3);
}
.account-panel__credits-summary {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 12px;
}
.account-panel__credits-label {
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
}
.account-panel__credits-value {
  display: flex; align-items: baseline; gap: 6px;
}
.account-panel__credits-number {
  font-family: "DIN Alternate", "Segoe UI", sans-serif;
  font-size: 36px; font-weight: 700; color: var(--brand); line-height: 1;
}
.account-panel__credits-unit {
  font-size: 14px; color: var(--ink-3); font-weight: 500;
}
.account-panel__view-details-btn {
  margin-left: 10px; border: 1px solid var(--border); background: var(--panel-2);
  border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer; color: var(--ink-2);
}
.account-panel__view-details-btn:hover { background: #e5e7eb; }
.credits-progress-bar {
  width: 100%; height: 10px; background: #f3f4f6; border-radius: 5px;
  overflow: hidden; margin-bottom: 14px; border: 1px solid var(--border);
}
.credits-progress-fill {
  height: 100%; border-radius: 5px;
  background: linear-gradient(90deg, #0052d9, #2ba471);
  transition: width 0.4s ease;
}
.account-panel__credits-warning {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  font-size: 12.5px; color: var(--ink-2); line-height: 1.5;
}
.account-panel__plan-divider {
  height: 1px; background: var(--border); margin: 18px 0 14px;
}
.account-panel__sub-plans {
  display: flex; flex-direction: column; gap: 10px;
}
.account-panel__plan-card {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; background: #fafbfc; border: 1px solid var(--border);
  border-radius: 8px;
}
.account-panel__plan-name {
  font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 2px;
}
.account-panel__plan-date {
  font-size: 12px; color: var(--ink-3);
}
.account-panel__plan-usage-value--highlight {
  font-size: 13px; font-weight: 600; color: var(--brand);
}

/* 3. 地址信息面板 */
.account-panel__location-section {
  padding: 20px 22px;
}
.account-panel__location-header {
  margin-bottom: 14px;
}
.account-panel__location-title {
  font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 4px;
}
.account-panel__location-subtitle {
  font-size: 12.5px; color: var(--ink-3); line-height: 1.5;
}
.account-panel__location-list {
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.account-panel__location-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--border); background: #fff;
}
.account-panel__location-name {
  font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px;
  display: flex; align-items: center; gap: 8px;
}
.location-phone { font-size: 12.5px; font-weight: 400; color: var(--ink-3); }
.account-panel__location-contact {
  font-size: 13px; color: var(--ink-2);
}
.account-panel__location-actions {
  display: flex; align-items: center; gap: 8px;
}
.account-panel__location-default-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 10px;
  background: var(--brand-weak); color: var(--brand); font-weight: 500;
}
.account-panel__location-icon-btn {
  border: none; background: none; cursor: pointer; padding: 4px 6px;
  border-radius: 4px; font-size: 13px; color: var(--ink-3);
}
.account-panel__location-icon-btn:hover {
  background: var(--panel-2); color: var(--ink);
}
.account-panel__location-icon-btn--danger:hover {
  background: #fee2e2; color: #dc2626;
}
.account-panel__location-add-row {
  width: 100%; border: none; background: #fafbfc; padding: 12px 16px;
  font-size: 13px; color: var(--brand); cursor: pointer; text-align: left;
  font-weight: 500; transition: background 0.15s;
}
.account-panel__location-add-row:hover { background: var(--brand-weak); }

/* 4. 退出登录卡片 */
.account-panel__actions-footer { width: 100%; }
.account-panel__sign-out {
  width: 100%; height: 44px; border: 1px solid var(--border);
  border-radius: 10px; background: #ffffff; color: #dc2626;
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all 0.15s;
}
.account-panel__sign-out:hover {
  background: #fef2f2; border-color: #fca5a5;
}

/* 电脑连接移动端弹窗 (MiniProgram & App QR Modal) */
.device-connect-card {
  display: flex; flex-direction: column; align-items: center; padding: 10px 0;
}
.device-tabs {
  display: flex; background: var(--panel-2); border-radius: 8px;
  padding: 3px; gap: 4px; margin-bottom: 16px;
}
.device-tab-btn {
  border: none; background: none; padding: 5px 20px; font-size: 13px;
  border-radius: 6px; cursor: pointer; font-weight: 500; color: var(--ink-2);
  transition: all 0.15s;
}
.device-tab-btn.active {
  background: #ffffff; color: var(--brand); font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.device-qr-box {
  width: 180px; height: 180px; padding: 6px; border: 1px solid var(--border);
  border-radius: 10px; background: #fff; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
}
.device-qr-img {
  width: 100%; height: 100%; object-fit: contain; border-radius: 6px;
}
.device-qr-title {
  font-size: 14.5px; font-weight: 600; color: var(--ink); margin-bottom: 4px;
}
.device-qr-desc {
  font-size: 12px; color: var(--ink-3); text-align: center; line-height: 1.5; margin-bottom: 16px;
}
.device-switches {
  width: 100%; background: #fafbfc; border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 14px; margin-bottom: 14px;
}
.device-switch-row {
  display: flex; justify-content: space-between; align-items: center; padding: 6px 0;
  font-size: 12.5px; color: var(--ink-2);
}
.device-switch-row + .device-switch-row { border-top: 1px dashed var(--border); }


/* P1-7 移动端降级提示（≤900px 显示建议用电脑横幅） */
.mobile-hint { display: none; }
@media (max-width: 900px) {
  .mobile-hint {
    display: flex; align-items: center; gap: 8px; justify-content: center;
    background: #fffbeb; border-bottom: 1px solid #fde68a; color: #92400e;
    font-size: 12px; padding: 8px 12px; text-align: center; z-index: 300;
  }
  .app { min-width: 0; }
  .app-body { overflow-x: auto; }
  .sidebar { width: 180px; min-width: 180px; }
}

/* ── 权限确认弹窗：能力项（静态，非勾选） ── */
.fac-cap { display: flex; gap: 10px; font-size: 12.5px; align-items: flex-start; }
.fac-cap-ic { font-size: 15px; line-height: 1.4; }
.fac-cap-desc { color: var(--ink-3); font-size: 11.5px; margin-top: 2px; line-height: 1.6; }

/* ── 工作空间浮层（官方 WorkspacePicker：top-start，宽240） ── */
.ws-pop {
  position: fixed; background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow-3); z-index: 700; padding: 6px;
}
.ws-search-row {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 8px; background: var(--panel-2); border-radius: 7px; margin-bottom: 4px;
}
.ws-search-ic { color: var(--ink-3); display: inline-flex; }
.ws-search {
  border: none; outline: none; background: transparent;
  font-size: 12.5px; font-family: var(--font); flex: 1; min-width: 0; color: var(--ink);
}
.ws-list { max-height: 260px; overflow-y: auto; }
.ws-opt {
  display: flex; align-items: center; gap: 8px; padding: 7px 9px;
  border-radius: 7px; cursor: pointer; font-size: 12.5px;
}
.ws-opt:hover { background: var(--panel-2); }
.ws-opt.on { background: var(--brand-weak); color: var(--brand); }
.ws-opt-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-opt-check { color: var(--brand); font-weight: 700; }
.ws-empty { text-align: center; color: var(--ink-3); font-size: 12px; padding: 18px 0; }
.ws-foot { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 4px; }
.ws-foot-item {
  padding: 7px 9px; border-radius: 7px; cursor: pointer;
  font-size: 12.5px; color: var(--ink-2);
}
.ws-foot-item:hover { background: var(--panel-2); }

/* ═══ 连接器按钮（输入框左下：已连接 App logo 叠放）+ 开关浮层 ═══ */
.tb-btn.conn-btn { padding: 3px 6px; display: inline-flex; align-items: center; gap: 0; }
.conn-badge-ic {
  width: 17px; height: 17px; border-radius: 4px; object-fit: contain;
  background: #fff; margin-left: -3px;
  box-shadow: 0 0 0 2px #fff;
}
.conn-badge-ic:first-child { margin-left: 0; }
.conn-btn:hover .conn-badge-ic { box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0,0,0,.14); }

.conn-pop {
  position: fixed; background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-3); z-index: 720;
  padding: 6px; display: flex; flex-direction: column; max-height: 300px;
}
.conn-list { overflow-y: auto; flex: 1; min-height: 0; }
.conn-row {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 9px; border-radius: 8px; cursor: pointer;
}
.conn-row:hover { background: var(--panel-2); }
.conn-ic { width: 19px; height: 19px; border-radius: 5px; object-fit: contain; flex: none; }
.conn-name {
  flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.conn-flag { font-size: 10.5px; color: var(--err); flex: none; }
.conn-sw {
  width: 32px; height: 19px; border-radius: 10px; background: #d1d5db;
  position: relative; flex: none; transition: background .16s;
}
.conn-sw i {
  position: absolute; top: 2px; left: 2px; width: 15px; height: 15px;
  border-radius: 50%; background: #fff; transition: left .16s;
  box-shadow: 0 1px 2px rgba(0,0,0,.18);
}
.conn-sw.on { background: var(--brand); }
.conn-sw.on i { left: 15px; }
.conn-foot {
  display: flex; align-items: center; gap: 5px;
  border-top: 1px solid var(--border); margin-top: 4px; padding: 8px 9px 5px;
  font-size: 12.5px; color: var(--ink-2); cursor: pointer;
}
.conn-foot:hover { color: var(--brand); }
.conn-foot-ic { font-size: 11px; }

/* 空间行前导图标（真机：文件夹/时钟） */
.space-item .space-ic { font-size: 12px; margin-right: 6px; opacity: .75; flex: none; }
.space-item .task-info { flex-direction: row; align-items: center; gap: 0; }

/* ── 专家页官方结构（UI-4） ── */
.expert-head-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.expert-switch {
  display: inline-flex; gap: 2px; background: var(--panel-2);
  padding: 3px; border-radius: 9px;
}
.expert-switch-btn {
  border: none; background: transparent; font-size: 12.5px;
  padding: 4px 12px; border-radius: 7px; cursor: pointer;
  color: var(--ink-2); font-family: var(--font);
}
.expert-switch-btn.active { background: var(--panel); color: var(--brand); font-weight: 600; box-shadow: var(--shadow-1); }
.expert-scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.expert-scene-card {
  border: 1px solid var(--border); border-radius: 14px; padding: 16px;
  cursor: pointer; background: linear-gradient(135deg, #f0f7ff, #ffffff);
  transition: all .15s;
}
.expert-scene-card:hover { border-color: var(--brand); box-shadow: var(--shadow-1); }
.esc-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.esc-sub { font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }
.expert-sec-row { display: flex; gap: 4px; margin-bottom: 10px; }
.expert-sec-tab {
  border: none; background: transparent; font-size: 13px; color: var(--ink-3);
  padding: 4px 10px; cursor: pointer; border-radius: 7px; font-family: var(--font);
}
.expert-sec-tab.on { color: var(--ink); font-weight: 700; background: var(--panel-2); }
.expert-usage { font-size: 11px; color: var(--ink-3); }
/* 4 列网格（真机） */
.expert-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1240px) { .expert-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .expert-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 定时任务卡片双列（UI-4 真机） */
.atm-task-card-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .atm-task-card-list { grid-template-columns: 1fr; } }

/* ── 欢迎页：空态垂直居中 + 胶囊贴近输入框 + 推荐任务行 ── */
.main.welcome-mode { justify-content: center; }
.main.welcome-mode .chat-scroll { flex: 0 0 auto; overflow: visible; }
.main.welcome-mode .welcome { padding-top: 0; padding-bottom: 12px; }
.main.welcome-mode .input-zone { padding-bottom: 0; }
.below-input { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.bi-row {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  font-size: 12.5px; color: var(--ink-2); border-radius: 8px; cursor: pointer;
  background: transparent; border: none; text-align: left; font-family: var(--font); width: 100%;
}
.bi-row:hover { background: var(--panel); box-shadow: inset 0 0 0 1px var(--border); }
.bi-arrow { margin-left: auto; color: var(--ink-3); }

/* 续学提示条 + 气泡目录链接 */
.resume-bar {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; z-index: 900;
  background: var(--panel); border: 1px solid var(--border);
  box-shadow: var(--shadow-3); border-radius: 12px; padding: 9px 14px;
  font-size: 12.5px; color: var(--ink-2);
}
.coach-home { text-decoration: none; display: inline-flex; align-items: center; }

/* ── 步骤类型标识：「请你操作 / 只看」 + 延迟操作提示 ── */
.coach-kind {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: .3px;
  padding: 3px 9px; border-radius: 10px; margin-bottom: 8px;
}
.coach-kind.act { background: #e8f1ff; color: #0052d9; border: 1px solid #bfdbfe; }
.coach-kind.demo { background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb; }
.coach-defer {
  margin-top: 10px; padding: 7px 10px; border-radius: 8px;
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
  font-size: 11.5px; line-height: 1.6;
}
/* 操作目标：更醒目的呼吸环 + 「点这里」小旗 */
.spot-target.spot-act.ring-anim { animation: ringPulse 1.4s ease-in-out infinite; }
@keyframes ringPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(0,82,217,.85), 0 0 18px 4px rgba(0,82,217,.28); }
  50% { box-shadow: 0 0 0 3px rgba(0,82,217,1), 0 0 26px 8px rgba(0,82,217,.4); }
}
.spot-tag {
  position: fixed; z-index: 520; pointer-events: none;
  background: #0052d9; color: #fff; font-size: 10.5px; font-weight: 700;
  padding: 2px 8px; border-radius: 8px; transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0,82,217,.35); white-space: nowrap;
}
.spot-tag::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%);
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 4px solid #0052d9;
}

/* ═══ 助理（Claw）· 手机遥控电脑 ═══ */
.claw-ai-tag {
  display: inline-block; margin-left: 5px; padding: 1px 5px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .3px;
  color: #fff; background: #6b7280; border-radius: 4px; vertical-align: 1px;
}
.claw-tip-card {
  padding: 14px 16px; background: var(--panel-2);
  border: 1px dashed var(--border-strong); border-radius: 10px;
}
.ctc-title { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.ctc-desc { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }

.claw-qr-card {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-1);
}
.cqc-title { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.cqc-steps { margin: 0 0 10px 16px; padding: 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.85; }
.cqc-steps li { list-style: decimal; }
.cqc-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cqc-timer { font-size: 11.5px; color: var(--ink-3); }
.cqc-timer b { color: var(--warn); font-variant-numeric: tabular-nums; }

.claw-bound-card {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px; background: var(--ok-weak, #f0fdf4);
  border: 1px solid #bbf7d0; border-radius: 12px; flex-wrap: wrap;
}
.cbc-left { display: flex; align-items: center; gap: 12px; }
.cbc-avatar {
  width: 40px; height: 40px; border-radius: 10px; background: #07c160;
  color: #fff; font-size: 17px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.cbc-name { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.cbc-ok {
  margin-left: 6px; padding: 1px 7px; font-size: 10.5px; font-weight: 700;
  color: #15803d; background: #dcfce7; border-radius: 5px;
}
.cbc-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.cbc-hint { font-size: 11.5px; color: var(--ink-3); }

/* 双端联动：左手机 / 右电脑 */
.claw-demo {
  display: grid; grid-template-columns: 300px 1fr; gap: 14px; margin-top: 10px;
}
.cd-phone {
  background: #ededed; border: 1px solid #d9d9d9; border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column; height: 372px;
}
.cd-phone-bar {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px;
  background: #f7f7f7; border-bottom: 1px solid #e0e0e0; flex: none;
}
.cd-signal { font-size: 7px; color: #07c160; letter-spacing: -1px; }
.cd-wxname { font-size: 12.5px; font-weight: 600; color: #1a1a1a; }
.cd-time { margin-left: auto; font-size: 10.5px; color: #999; }
.cd-chat { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.cd-sys { text-align: center; font-size: 10.5px; color: #999; padding: 2px 0 6px; }
.cd-bubble {
  max-width: 84%; padding: 7px 10px; border-radius: 8px;
  font-size: 12.5px; line-height: 1.6; word-break: break-word;
}
.cd-bubble.me { align-self: flex-end; background: #95ec69; color: #1a1a1a; }
.cd-bubble.ai { align-self: flex-start; background: #fff; color: #1a1a1a; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.cd-mini { font-size: 10.5px; color: #888; }
.cd-input-row { display: flex; gap: 6px; padding: 8px; background: #f7f7f7; border-top: 1px solid #e0e0e0; flex: none; }
.cd-input {
  flex: 1; min-width: 0; border: 1px solid #dcdcdc; border-radius: 6px;
  padding: 6px 9px; font-size: 12.5px; font-family: var(--font); outline: none; background: #fff;
}
.cd-input:focus { border-color: #07c160; }
.cd-send {
  border: none; background: #07c160; color: #fff; font-size: 12.5px; font-family: var(--font);
  padding: 0 13px; border-radius: 6px; cursor: pointer;
}
.cd-send:hover { background: #06ad56; }

.cd-pc {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  display: flex; flex-direction: column; height: 372px; overflow: hidden;
}
.cd-pc-bar {
  display: flex; align-items: center; gap: 7px; padding: 9px 14px;
  border-bottom: 1px solid var(--border); font-size: 12.5px; font-weight: 600; color: var(--ink);
  background: var(--panel-2); flex: none;
}
.cd-pc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.cd-pc-hint { margin-left: auto; font-size: 11px; font-weight: 400; color: var(--ink-3); }
.cd-pc-body { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; }
.cd-empty { color: var(--ink-3); font-size: 12.5px; text-align: center; padding: 40px 0; }
.cd-line { font-size: 12.5px; color: var(--ink-2); line-height: 1.65; }
.cd-tag {
  display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 5px;
  font-size: 10.5px; font-weight: 700; background: var(--brand-weak); color: var(--brand);
}
.cd-tag.ok { background: #dcfce7; color: #15803d; }

/* ═══ 连接向导：左手机微信 / 右电脑终端 ═══ */
.claw-guide {
  margin-top: 16px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--panel); overflow: hidden;
}
.cg-head {
  padding: 10px 16px; background: linear-gradient(90deg, #eff6ff, #f8fafc);
  border-bottom: 1px solid var(--border);
}
.cg-step { font-size: 13px; font-weight: 700; color: var(--brand-dark); }
.cg-body { display: grid; grid-template-columns: 304px 1fr; gap: 0; }
.cg-foot {
  display: flex; align-items: center; gap: 12px; padding: 9px 16px;
  border-top: 1px solid var(--border); background: var(--panel-2);
}
.cg-tip { font-size: 11.5px; color: var(--ink-3); flex: 1; line-height: 1.5; }

/* 手机外框 */
.cg-phone {
  background: #f2f2f2; border-right: 1px solid var(--border);
  height: 402px; overflow-y: auto; font-size: 12.5px; color: #1a1a1a;
}
.cw-bar {
  display: flex; align-items: center; gap: 6px; padding: 8px 10px;
  background: #f7f7f7; border-bottom: 1px solid #e2e2e2;
  position: sticky; top: 0; z-index: 2;
}
.cw-back { font-size: 17px; color: #333; line-height: 1; width: 12px; }
.cw-bar-t { font-size: 12.5px; font-weight: 600; }
.cw-me-head { display: flex; align-items: center; gap: 10px; padding: 14px 12px; background: #fff; }
.cw-me-avatar {
  width: 44px; height: 44px; border-radius: 8px; background: #4a90d9;
  color: #fff; font-size: 18px; display: flex; align-items: center; justify-content: center;
}
.cw-me-name { font-size: 14px; font-weight: 700; }
.cw-me-id { font-size: 11px; color: #999; margin-top: 2px; }
.cw-list { background: #fff; margin-top: 8px; }
.cw-row {
  display: flex; align-items: center; gap: 8px; padding: 11px 12px;
  border-bottom: 1px solid #f0f0f0; font-size: 12.5px;
}
.cw-row.cw-hit { cursor: pointer; }
.cw-row.cw-hit:hover { background: #f0f7ff; }
.cw-ic { width: 18px; text-align: center; font-size: 13px; }
.cw-ic-g { color: #07c160; }
.cw-ic-b { color: #4a90d9; }
.cw-arrow { margin-left: auto; color: #c8c8c8; font-size: 14px; }
.cw-pill {
  font-size: 10px; color: #999; margin-left: auto; margin-right: 4px;
  max-width: 108px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cw-sec { padding: 8px 12px 4px; font-size: 11px; color: #999; background: #fff; }

/* 插件卡片 */
.cw-plugin-card { background: #fff; margin: 10px; border-radius: 10px; padding: 12px; }
.cw-plugin-card.cw-hit { cursor: pointer; }
.cw-plugin-card.cw-hit:hover { box-shadow: 0 0 0 2px #07c160 inset; }
.cw-pc-top { display: flex; align-items: center; gap: 10px; }
.cw-pc-name { font-size: 13.5px; font-weight: 700; }
.cw-pc-sub { font-size: 11px; color: #999; margin-top: 2px; }
.cw-green-btn {
  background: #07c160; color: #fff; font-size: 11.5px; padding: 4px 10px;
  border-radius: 5px; flex: none;
}
.cw-pc-mock { margin: 12px 0 8px; background: #f2f2f2; border-radius: 8px; padding: 10px; height: 74px; position: relative; }
.cw-mock-r { position: absolute; right: 10px; top: 12px; width: 96px; height: 26px; background: #95ec69; border-radius: 6px; display: block; }
.cw-mock-l { position: absolute; left: 10px; top: 44px; width: 120px; height: 26px; background: #fff; border-radius: 6px; display: block; }
.cw-pc-cap { text-align: center; font-size: 11.5px; color: #666; line-height: 1.6; }
.cw-other { text-align: center; font-size: 10.5px; color: #999; padding: 10px 0 6px; }
.cw-plugin-mini {
  display: flex; align-items: center; gap: 8px; background: #fff;
  margin: 0 10px 10px; padding: 11px 12px; border-radius: 10px; font-size: 12.5px;
}
.cw-mini-ic {
  width: 22px; height: 22px; border-radius: 5px; background: #07c160; color: #fff;
  font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.cw-mini-tag { margin-left: auto; font-size: 11px; color: #07c160; }

/* 详情页 */
.cw-detail { padding: 20px 14px; background: #fff; }
.cw-detail-ic { display: flex; justify-content: center; margin-bottom: 10px; }
.cw-detail-name { text-align: center; font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.cw-detail-desc { font-size: 12px; color: #666; line-height: 1.75; text-align: center; margin-bottom: 18px; }
.cw-detail-row {
  display: flex; align-items: center; padding: 12px 2px;
  border-top: 1px solid #f0f0f0; font-size: 12.5px;
}
.cw-detail-row.cw-hit { cursor: pointer; }
.cw-detail-row.cw-hit:hover { color: #07c160; }

/* 连接页 */
.cw-connect { padding: 16px 12px; background: #fff; }
.cw-connect-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.cw-step-h { font-size: 11.5px; color: #555; line-height: 1.6; margin-bottom: 6px; }
.cw-cmd {
  background: #f7f7f7; border: 1px solid #e5e5e5; border-radius: 6px;
  padding: 8px 9px; font-family: ui-monospace, Consolas, monospace;
  font-size: 10.5px; color: #1a1a1a; word-break: break-all; margin-bottom: 14px;
}
.cw-cmd-ops { display: flex; gap: 12px; margin-top: 6px; }
.cw-cmd-ops span { color: #07c160; font-size: 11px; font-family: var(--font); }
.cw-scan-link { color: #07c160; font-size: 12.5px; padding: 8px 0; cursor: pointer; }
.cw-scan-link:hover { text-decoration: underline; }
.cw-terms { text-align: center; font-size: 11px; color: #999; margin-top: 24px; }

/* 聊天态 */
.cw-chatbar {
  padding: 9px 12px; background: #f7f7f7; border-bottom: 1px solid #e2e2e2;
  font-size: 12.5px; font-weight: 600; text-align: center;
}
.cw-chat { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.cw-sys { text-align: center; font-size: 10.5px; color: #999; }
.cw-input-row { display: flex; gap: 6px; padding: 8px; background: #f7f7f7; border-top: 1px solid #e2e2e2; }
.cw-input { flex: 1; min-width: 0; border: 1px solid #dcdcdc; border-radius: 6px; padding: 6px 9px; font-size: 12px; outline: none; }
.cw-send { border: none; background: #07c160; color: #fff; font-size: 12px; padding: 0 12px; border-radius: 6px; cursor: pointer; }

/* 终端 */
.cg-term { background: #1e1e1e; display: flex; flex-direction: column; height: 402px; }
.ct-bar {
  display: flex; align-items: center; gap: 6px; padding: 7px 12px;
  background: #2d2d2d; border-bottom: 1px solid #3a3a3a; flex: none;
}
.ct-dot { width: 9px; height: 9px; border-radius: 50%; }
.ct-dot.r { background: #ff5f57; } .ct-dot.y { background: #febc2e; } .ct-dot.g { background: #28c840; }
.ct-title { margin-left: 8px; font-size: 11px; color: #9ca3af; }
.ct-body { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; }
.ct-empty { color: #6b7280; font-size: 12px; text-align: center; padding: 60px 20px; line-height: 1.8; }
.ct-line { font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; color: #d4d4d4; line-height: 1.7; word-break: break-all; }
.ct-prompt { color: #4ec9b0; margin-right: 4px; }
.ct-cmd { color: #ce9178; }
.ct-dim { color: #6b7280; }
.ct-ok { color: #4ec9b0; }
.ct-cursor {
  display: inline-block; width: 6px; height: 12px; background: #d4d4d4;
  margin-left: 2px; vertical-align: -1px; animation: ctBlink 1s step-end infinite;
}
@keyframes ctBlink { 50% { opacity: 0; } }
.ct-qr { background: #fff; padding: 8px; border-radius: 6px; align-self: flex-start; margin: 4px 0; }
.ct-foot { padding: 9px 14px; border-top: 1px solid #3a3a3a; flex: none; }
.ct-btn {
  border: none; background: #0e639c; color: #fff; font-size: 12px; font-family: var(--font);
  padding: 7px 16px; border-radius: 6px; cursor: pointer;
}
.ct-btn:hover { background: #1177bb; }
.ct-btn.ghost { background: transparent; border: 1px solid #4b5563; color: #d4d4d4; }
.ct-btn.ghost:hover { background: #374151; }

/* ═══ 教学指引框 v2（方案 B：实线 + 脉冲；红=动手 / 蓝=只看） ═══ */
.spot-frame {
  position: fixed; z-index: 900; pointer-events: none;
  border-radius: 10px; box-sizing: border-box;
  transition: left .28s cubic-bezier(.4,0,.2,1), top .28s cubic-bezier(.4,0,.2,1),
              width .28s cubic-bezier(.4,0,.2,1), height .28s cubic-bezier(.4,0,.2,1);
}
.spot-frame.is-act {
  border: 3px solid #E24B4A;
  animation: spotPulseRed 1.45s ease-in-out infinite;
}
@keyframes spotPulseRed {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226,75,74,.55), 0 0 10px 2px rgba(226,75,74,.22); }
  50%      { box-shadow: 0 0 0 5px rgba(226,75,74,.16), 0 0 22px 7px rgba(226,75,74,.34); }
}
.spot-frame.is-demo {
  border: 2px solid #0052D9;
  animation: spotPulseBlue 1.9s ease-in-out infinite;
}
@keyframes spotPulseBlue {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,82,217,.34), 0 0 8px 2px rgba(0,82,217,.16); }
  50%      { box-shadow: 0 0 0 4px rgba(0,82,217,.11), 0 0 18px 5px rgba(0,82,217,.24); }
}
.spot-tag2 {
  position: fixed; z-index: 910; pointer-events: none;
  font-size: 11.5px; font-weight: 700; padding: 3px 11px; border-radius: 8px;
  white-space: nowrap; transform: translateX(-50%);
  animation: spotTagIn .28s cubic-bezier(.34,1.4,.64,1);
}
.spot-tag2.is-act { background: #E24B4A; color: #fff; box-shadow: 0 2px 8px rgba(226,75,74,.42); }
.spot-tag2.is-demo { background: #0052D9; color: #fff; box-shadow: 0 2px 8px rgba(0,82,217,.34); }
.spot-tag2::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%);
  border-left: 4px solid transparent; border-right: 4px solid transparent;
}
.spot-tag2.is-act::after { border-top: 4px solid #E24B4A; }
.spot-tag2.is-demo::after { border-top: 4px solid #0052D9; }
/* 上方没空间时，标签落在框内顶部（箭头朝下指目标） */
.spot-tag2.in-frame::after { display: none; }
@keyframes spotTagIn { from { opacity: 0; transform: translateX(-50%) translateY(-4px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ═══ 教练气泡：拖拽把手（可移动，避免挡住操作） ═══ */
.coach-drag {
  height: 16px; margin: -8px -8px 8px; cursor: grab;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px 10px 0 0; touch-action: none; user-select: none;
}
.coach-drag::before {
  content: ""; width: 30px; height: 3px; border-radius: 2px; background: #d8dce3;
  transition: background .15s;
}
.coach-drag:hover::before { background: #9aa3af; }
.coach-drag:active { cursor: grabbing; }
.coach-bubble.is-dragged .coach-drag::before { background: #0052d9; }

/* ═══ 教练气泡：示例句 chip（点一下填入，不用手打） ═══ */
.coach-samples { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.cs-hint { font-size: 10.5px; color: var(--ink-3); display: flex; align-items: center; gap: 4px; }
.cs-hint::before { content: "✦"; color: var(--brand); font-size: 10px; }
.cs-chip {
  text-align: left; font-family: var(--font); font-size: 12px; line-height: 1.5;
  color: var(--ink-2); background: #f5f8ff; border: 1px dashed #bfd4f5;
  border-radius: 7px; padding: 6px 9px; cursor: pointer;
  transition: all .14s; word-break: break-word;
}
.cs-chip:hover { background: #e8f1ff; border-color: var(--brand); color: var(--brand-dark); border-style: solid; }
.cs-chip:active { transform: scale(.985); }

/* ═══ 模型面板 v2（三档模式 + Max + 思考强度 + 上下文窗口） ═══ */
.model-panel { width: 348px; padding: 8px; max-height: 520px; }
.mp-head {
  display: flex; align-items: baseline; gap: 7px; padding: 4px 6px 8px;
  font-size: 12.5px; font-weight: 700; color: var(--ink);
}
.mp-head-hint { font-size: 10.5px; font-weight: 400; color: var(--ink-3); }
.mp-tiers { display: flex; flex-direction: column; gap: 5px; }
.mp-tier {
  display: flex; align-items: flex-start; gap: 9px; padding: 9px 10px;
  border: 1px solid var(--border); border-radius: 9px; cursor: pointer;
  background: var(--panel); transition: all .14s; position: relative;
}
.mp-tier:hover { border-color: #bfd4f5; background: #f7fafe; }
.mp-tier.on { border-color: var(--brand); background: var(--brand-weak); box-shadow: 0 0 0 1px var(--brand) inset; }
.mp-tier-ic { font-size: 15px; line-height: 1.35; flex: none; }
.mp-tier-body { flex: 1; min-width: 0; }
.mp-tier-name { font-size: 13px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.mp-tier-mult {
  font-size: 11px; font-weight: 700; color: var(--brand);
  background: #e8f1ff; padding: 1px 6px; border-radius: 5px;
}
.mp-tier-tag { font-size: 10px; font-weight: 400; color: var(--ink-3); }
.mp-tier-desc { font-size: 11.5px; color: var(--ink-2); line-height: 1.55; margin-top: 3px; }
.mp-tier-ck { color: var(--brand); font-weight: 700; font-size: 13px; opacity: 0; flex: none; margin-top: 1px; }
.mp-tier.on .mp-tier-ck { opacity: 1; }

.mp-opts { margin-top: 9px; border-top: 1px solid var(--border); padding-top: 4px; }
.mp-opt { display: flex; align-items: center; gap: 10px; padding: 7px 6px; }
.mp-opt + .mp-opt { border-top: 1px dashed var(--border); }
.mp-opt-l { flex: 1; min-width: 0; }
.mp-opt-l b { font-size: 12.5px; font-weight: 600; color: var(--ink); display: block; }
.mp-opt-l span { font-size: 10.5px; color: var(--ink-3); line-height: 1.5; display: block; margin-top: 1px; }
.mp-select {
  font-family: var(--font); font-size: 11.5px; color: var(--ink-2);
  border: 1px solid var(--border-strong); border-radius: 6px;
  padding: 4px 6px; background: var(--panel); max-width: 132px; outline: none;
}
.mp-switch { flex: none; }
.model-panel .model-footer {
  margin-top: 8px; border-top: 1px solid var(--border); padding: 9px 6px 5px;
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--ink-2); cursor: pointer; border-radius: 0 0 8px 8px;
}
.model-panel .model-footer:hover { background: var(--panel-2); color: var(--brand); }

/* ═══ 设置弹窗（真机形态：居中大框 + 左侧导航） ═══ */
.stg-mask {
  position: fixed; inset: 0; z-index: 830; background: rgba(15,23,36,.42);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: stgFade .18s ease;
}
@keyframes stgFade { from { opacity: 0; } to { opacity: 1; } }
.stg-modal {
  width: 880px; max-width: 100%; height: 620px; max-height: 100%;
  background: var(--panel); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(15,23,36,.28);
  animation: stgIn .22s cubic-bezier(.34,1.3,.64,1);
}
@keyframes stgIn { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.stg-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  border-bottom: 1px solid var(--border); flex: none;
}
.stg-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.stg-close {
  margin-left: auto; width: 26px; height: 26px; border: none; border-radius: 7px;
  background: transparent; color: var(--ink-3); font-size: 16px; cursor: pointer; line-height: 1;
}
.stg-close:hover { background: var(--panel-2); color: var(--ink); }
.stg-body { flex: 1; display: flex; min-height: 0; }
.stg-nav {
  width: 208px; flex: none; border-right: 1px solid var(--border);
  background: var(--panel-2); overflow-y: auto; padding: 8px 8px 16px;
}
.stg-search {
  width: 100%; box-sizing: border-box; margin: 4px 0 8px; padding: 6px 9px;
  border: 1px solid var(--border-strong); border-radius: 7px; background: var(--panel);
  font-family: var(--font); font-size: 12px; outline: none; color: var(--ink);
}
.stg-search:focus { border-color: var(--brand); }
.stg-nav-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 7px;
  font-size: 12.5px; color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
.stg-nav-item:hover { background: rgba(0,82,217,.07); }
.stg-nav-item.on { background: var(--brand-weak); color: var(--brand); font-weight: 600; }
.stg-nav-ic { width: 15px; text-align: center; flex: none; font-size: 12px; }
.stg-nav-group {
  font-size: 10.5px; color: var(--ink-3); padding: 10px 9px 4px; letter-spacing: .4px;
}
.stg-nav-sub { padding-left: 12px; }
.stg-nav-divider { height: 1px; background: var(--border); margin: 9px 6px 7px; }
.stg-pane { flex: 1; overflow-y: auto; padding: 18px 22px 28px; min-width: 0; }
.stg-pane-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.stg-pane-sub { font-size: 12px; color: var(--ink-3); margin-bottom: 16px; line-height: 1.6; }
.stg-sec { font-size: 11.5px; font-weight: 700; color: var(--ink-3); margin: 18px 0 8px; letter-spacing: .3px; }
.stg-sec:first-of-type { margin-top: 4px; }
.stg-card { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--panel); }
.stg-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.stg-row:last-child { border-bottom: none; }
.stg-row-l { flex: 1; min-width: 0; }
.stg-row-name { font-size: 13px; color: var(--ink); }
.stg-row-desc { font-size: 11.5px; color: var(--ink-3); line-height: 1.55; margin-top: 2px; }
.stg-row-ctl { flex: none; }
.stg-sel {
  font-family: var(--font); font-size: 12px; color: var(--ink-2);
  border: 1px solid var(--border-strong); border-radius: 7px; padding: 5px 8px;
  background: var(--panel); outline: none; max-width: 220px;
}
/* 主题三联卡 */
.stg-theme-row { display: flex; gap: 10px; }
.stg-theme {
  flex: 1; border: 1px solid var(--border); border-radius: 9px; padding: 10px;
  text-align: center; font-size: 12px; color: var(--ink-2); cursor: pointer;
}
.stg-theme.on { border-color: var(--brand); background: var(--brand-weak); color: var(--brand); font-weight: 600; }
.stg-theme-dot { width: 100%; height: 40px; border-radius: 6px; margin-bottom: 6px; border: 1px solid var(--border); }
.stg-theme-dot.auto { background: linear-gradient(90deg, #fff 50%, #1f2937 50%); }
.stg-theme-dot.light { background: #f8fafc; }
.stg-theme-dot.dark { background: #1f2937; }
/* 记忆条目 */
.stg-mem-list { display: flex; flex-direction: column; gap: 7px; }
.stg-mem-item {
  display: flex; align-items: flex-start; gap: 9px; padding: 9px 11px;
  border: 1px solid var(--border); border-radius: 9px; background: var(--panel);
}
.stg-mem-tag {
  font-size: 10px; padding: 1px 6px; border-radius: 4px; flex: none;
  background: var(--brand-weak); color: var(--brand); font-weight: 600;
}
.stg-mem-text { flex: 1; font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.stg-mem-del {
  border: none; background: transparent; color: var(--ink-3); cursor: pointer;
  font-size: 14px; line-height: 1; padding: 2px 4px; border-radius: 4px; flex: none;
}
.stg-mem-del:hover { background: #fee2e2; color: #dc2626; }
.stg-textarea {
  width: 100%; box-sizing: border-box; min-height: 92px; resize: vertical;
  border: 1px solid var(--border-strong); border-radius: 9px; padding: 10px 12px;
  font-family: var(--font); font-size: 12.5px; line-height: 1.7; color: var(--ink); outline: none;
}
.stg-textarea:focus { border-color: var(--brand); }
.stg-btn-row { display: flex; gap: 8px; margin-top: 10px; }
/* 记忆印象卡 */
.stg-impress {
  padding: 12px 14px; border-radius: 10px; background: linear-gradient(135deg,#eff6ff,#f8fafc);
  border: 1px solid #c7ddfb; font-size: 12.5px; color: var(--ink-2); line-height: 1.75;
}
.stg-impress b { color: var(--brand-dark); }

/* 设置弹窗打开时：遮罩 830，气泡/提示必须压过它，否则学员看不到也点不到 */
body.stg-open #coachLayer { z-index: 860; }
body.stg-open .toast { z-index: 880; }

/* 真机弹窗补充：快捷键键帽 / 小徽标 */
.stg-kbd {
  display: inline-block; font-size: 11px; line-height: 1; padding: 4px 7px;
  border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px;
  background: var(--panel-2); color: var(--ink-2); font-family: var(--font);
}
.stg-badge {
  display: inline-block; font-size: 10px; line-height: 1; padding: 2px 6px;
  border-radius: 4px; background: var(--brand-weak); color: var(--brand);
  font-weight: 600; vertical-align: middle;
}

/* ════════════════════════════════════════════════════════════════
   设置弹窗 · 真机 1:1 校准（2026-10-19 实测 900×680）
   调色板取自真机像素采样：
   bg #F5F9FF / 卡片 #FFF / 边框 #D7DFEA / 主文字 #12305E
   次要文字 #7F8FA7 / 选中底 #BACCE7 / 主按钮 #4C75B4 / 开关 #3966AC
   ════════════════════════════════════════════════════════════════ */
body .stg-mask { background: rgba(16, 24, 40, .35); }
body .stg-modal {
  position: relative; display: flex; flex-direction: row; width: 900px; height: 680px;
  background: #F5F9FF; border: 1px solid #D7DFEA; border-radius: 10px;
  overflow: hidden; box-shadow: 0 18px 48px rgba(15, 23, 36, .18);
}
body .stg-head { display: none; }
body .stg-close {
  position: absolute; top: 7px; right: 9px; z-index: 3;
  width: 22px; height: 22px; border: none; border-radius: 5px;
  background: transparent; color: #7F8FA7; font-size: 13px; line-height: 1;
  cursor: pointer;
}
body .stg-close:hover { background: #E8EFF9; color: #12305E; }
body .stg-body { flex: 1; display: flex; min-height: 0; }
body .stg-nav {
  width: 204px; flex: none; background: #F5F9FF;
  padding: 8px 6px 14px 12px; overflow-y: auto;
}
body .stg-search {
  display: none; width: calc(100% - 4px); box-sizing: border-box;
  margin: 4px 0 6px; height: 26px; padding: 0 8px;
  border: 1px solid #D7DFEA; border-radius: 6px; background: #fff;
  font-family: var(--font); font-size: 12px; color: #12305E; outline: none;
}
body .stg-nav.searching .stg-search { display: block; }
body .stg-search-btn {
  display: block; margin: 2px 2px 4px auto; width: 20px; height: 20px;
  border: none; background: transparent; color: #7F8FA7; cursor: pointer;
  font-size: 12px; line-height: 20px; text-align: center; border-radius: 4px;
}
body .stg-search-btn:hover { background: #E8EFF9; color: #12305E; }
body .stg-nav-item {
  height: 20px; padding: 0 8px; margin-bottom: 13px; border-radius: 5px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: #12305E; cursor: pointer; white-space: nowrap;
}
body .stg-nav-item:hover { background: #E8EFF9; }
body .stg-nav-item.on { background: #BACCE7; color: #0F2A52; font-weight: 600; }
body .stg-nav-item.on:hover { background: #BACCE7; }
body .stg-nav-ic { width: 16px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
body .stg-nav-group {
  font-size: 11.5px; color: #7F8FA7; padding: 14px 8px 7px; letter-spacing: 0;
}
body .stg-nav-divider { height: 1px; background: #D7DFEA; margin: 4px 8px 12px; }
body .stg-pane { flex: 1; overflow-y: auto; padding: 26px 30px 36px 28px; min-width: 0; background: #F5F9FF; }
body .stg-pane-title { font-size: 15px; font-weight: 700; color: #12305E; margin-bottom: 6px; }
body .stg-pane-sub { font-size: 12px; color: #7F8FA7; margin-bottom: 16px; line-height: 1.7; }
body .stg-sec { font-size: 11.5px; font-weight: 500; color: #7F8FA7; margin: 20px 0 8px; }
body .stg-sec:first-of-type { margin-top: 6px; }
body .stg-card { background: #fff; border: 1px solid #D7DFEA; border-radius: 8px; overflow: hidden; }
body .stg-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 44px; border-bottom: 1px solid #EDF1F7; }
body .stg-row:last-child { border-bottom: none; }
body .stg-row-l { flex: 1; min-width: 0; }
body .stg-row-name { font-size: 13px; color: #12305E; line-height: 1.5; }
body .stg-row-desc { font-size: 12px; color: #7F8FA7; line-height: 1.6; margin-top: 3px; }
body .stg-row-ctl { flex: none; }
body .stg-sel {
  height: 28px; max-width: 220px; padding: 0 26px 0 10px;
  border: 1px solid #D7DFEA; border-radius: 6px; background: #fff;
  font-family: var(--font); font-size: 12px; color: #12305E; outline: none;
}
body .stg-sel:focus { border-color: #4C75B4; }
body .stg-mask .switch { width: 34px; height: 20px; min-width: 34px; }
body .stg-mask .switch .tr { border-radius: 10px; background: #C9D6E6; }
body .stg-mask .switch .th { width: 16px; height: 16px; top: 2px; left: 2px; }
body .stg-mask .switch input:checked ~ .tr { background: #3966AC; }
body .stg-mask .switch input:checked ~ .th { left: 16px; }
body .stg-mask .mini-btn {
  height: 28px; padding: 0 12px; border-radius: 6px; font-size: 12px;
  border: 1px solid #D7DFEA; background: #fff; color: #12305E;
}
body .stg-mask .mini-btn:hover { border-color: #4C75B4; color: #2E5B96; }
body .stg-mask .mini-btn.primary { background: #4C75B4; border-color: #4C75B4; color: #fff; }
body .stg-mask .mini-btn.primary:hover { background: #3F64A0; }
body .stg-mask .mini-btn.danger { color: #C0392B; border-color: #E7C4BE; }
body .stg-theme-row { display: flex; gap: 10px; }
body .stg-theme {
  border: 1px solid #D7DFEA; border-radius: 8px; padding: 8px; background: #fff;
  text-align: center; font-size: 12px; color: #12305E; cursor: pointer;
}
body .stg-theme.on { border-color: #4C75B4; box-shadow: 0 0 0 1px #4C75B4 inset; }
body .stg-theme-dot { height: 38px; border-radius: 5px; margin-bottom: 6px; border: 1px solid #E5EBF3; }
body .stg-textarea {
  width: 100%; box-sizing: border-box; min-height: 92px; resize: vertical;
  border: 1px solid #D7DFEA; border-radius: 6px; padding: 8px 10px;
  font-family: var(--font); font-size: 12.5px; line-height: 1.7; color: #12305E; outline: none;
}
body .stg-textarea:focus { border-color: #4C75B4; }
body .stg-kbd { border-color: #D7DFEA; background: #F7FAFE; color: #12305E; }
body .stg-badge { background: #E7EEF9; color: #2E5B96; }
body .stg-impress { background: #EDF3FC; border-color: #C9DAF0; color: #12305E; }

/* 真机 pane 无页标题：直接以分组标签/卡片开场 */
body .stg-pane-title, body .stg-pane-sub { display: none; }
body .stg-pane { padding: 40px 30px 36px 28px; }
body .stg-row { padding: 10px 16px; min-height: 40px; }
body .stg-row-name { font-size: 13px; line-height: 1.45; }
body .stg-row-desc { font-size: 12px; line-height: 1.55; margin-top: 2px; }
body .stg-sec { margin: 18px 0 7px; }
body .stg-sec:first-of-type { margin-top: 0; }
/* 隐藏项提示条（替代被隐藏的副标题） */
body .stg-note {
  display: flex; align-items: flex-start; gap: 8px;
  background: #FFF7ED; border: 1px solid #F7D9B5; color: #8A4B12;
  font-size: 12px; line-height: 1.6; padding: 9px 12px; border-radius: 8px; margin-bottom: 14px;
}

/* 真机行高：66 行统一 62px（实测 card 188/3 = 62.7） */
body .stg-row { min-height: 62px; padding: 12px 16px; }
body .stg-card .stg-row:first-child { min-height: 62px; }

/* 真机细节：导航无搜索图标占位、首组不显示组名、pane 顶部 28 */
body .stg-nav { padding: 32px 6px 14px 12px; }
body .stg-search-btn { position: absolute; top: 8px; right: 36px; margin: 0; }
body .stg-nav-group.is-first { display: none; }
body .stg-pane { padding: 28px 28px 36px 28px; }

/* 收尾微调：与真机像素差 ≤3px */
body .stg-nav { padding-top: 27px; }
body .stg-nav-item { margin-bottom: 14px; }
body .stg-pane { padding: 28px 28px 36px 26px; }
body .stg-row { border-bottom-color: #F1F4F9; }

/* ── 真机组件：pill 标签 / 表格行 / 操作图标 / 应用卡 ── */
body .stg-tabs { display: flex; gap: 6px; margin: -6px 0 14px; }
body .stg-tab {
  padding: 5px 10px; border-radius: 6px; font-size: 12.5px; color: #7F8FA7;
  cursor: pointer; line-height: 1.4;
}
body .stg-tab:hover { background: #EEF3FA; color: #12305E; }
body .stg-tab.on { background: #E9EFF8; color: #12305E; font-weight: 600; }

body .stg-trow {
  display: flex; align-items: center; gap: 12px;
  min-height: 44px; padding: 8px 16px; border-bottom: 1px solid #F1F4F9;
  font-size: 13px; color: #12305E;
}
body .stg-trow:last-child { border-bottom: none; }
body .stg-thead { min-height: 40px; color: #7F8FA7; font-size: 12px; }
body .stg-trow .c1 { flex: 1; min-width: 0; }
body .stg-trow .c2 { width: 180px; flex: none; }
body .stg-trow .c3 { width: 48px; flex: none; text-align: right; }

body .stg-kbd {
  display: inline-block; font-size: 11.5px; line-height: 1; padding: 5px 8px;
  border: none; border-radius: 5px; background: #DCE6F5; color: #12305E;
  font-family: var(--font);
}
body .stg-act {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 5px; color: #4A6E9E; cursor: pointer;
}
body .stg-act:hover { background: #EAF0F9; color: #2E5B96; }
body .stg-act.danger:hover { background: #FBEBE9; color: #B93B2C; }
body .stg-row-actions { display: flex; gap: 10px; flex: none; }

body .stg-model-row { gap: 10px; }
body .stg-spark { display: inline-flex; color: #4A6E9E; flex: none; }
body .stg-model-name { font-weight: 600; }
body .stg-model-src { font-size: 12px; color: #7F8FA7; }
body .stg-model-row .stg-row-actions { margin-left: auto; }

body .stg-file-row { min-height: 56px; }
body .stg-file-main { flex: 1; min-width: 0; }
body .stg-file-name { font-size: 13px; color: #12305E; }
body .stg-file-time { font-size: 11.5px; color: #9AA6B8; margin-top: 2px; }
body .stg-file-row .stg-row-actions { gap: 12px; }

body .stg-app-row { min-height: 84px; align-items: flex-start; padding: 14px 16px; }
body .stg-app-avatar {
  width: 40px; height: 40px; border-radius: 10px; color: #fff; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700;
}
body .stg-app-main { flex: 1; min-width: 0; }
body .stg-app-name { font-size: 13.5px; font-weight: 600; color: #12305E; display: flex; align-items: center; gap: 8px; }
body .stg-app-desc { font-size: 12.5px; color: #7F8FA7; margin-top: 4px; }

body .stg-searchwrap {
  display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px;
  border: 1px solid #D7DFEA; border-radius: 6px; background: #fff; color: #9AA6B8;
}
body .stg-search-inline {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: var(--font); font-size: 12.5px; color: #12305E;
}
body .stg-search-inline::placeholder { color: #9AA6B8; }

/* 渐变进度条（真机 7FA8E8 → 4C75B4） */
body .stg-bar { height: 6px; border-radius: 3px; background: #E9EEF6; margin-top: 8px; overflow: hidden; }
body .stg-bar > i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #7FA8E8, #4C75B4); }

/* 细滚动条 */
body .stg-nav::-webkit-scrollbar, body .stg-pane::-webkit-scrollbar { width: 8px; }
body .stg-nav::-webkit-scrollbar-thumb, body .stg-pane::-webkit-scrollbar-thumb {
  background: #CBD5E3; border-radius: 4px; border: 2px solid transparent; background-clip: content-box;
}
body .stg-nav::-webkit-scrollbar-track, body .stg-pane::-webkit-scrollbar-track { background: transparent; }

/* 面板头：标题 + 说明 + 右侧按钮（模型页） */
body .stg-head-row { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
body .stg-head-l { flex: 1; min-width: 0; }
body .stg-h2 { font-size: 13.5px; font-weight: 700; color: #12305E; margin-bottom: 4px; }
body .stg-hdesc { font-size: 12px; color: #7F8FA7; line-height: 1.7; }
body .stg-hdesc code { font-size: 11.5px; color: #2E5B96; background: #EDF2FA; padding: 1px 5px; border-radius: 4px; }
body .stg-model-ic {
  width: 20px; height: 20px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
/* 快捷键列宽对齐真机：按键绑定列约 45% 起 */
body .stg-trow .c2 { width: 46%; }
body .stg-trow .c3 { width: 44px; }
/* 搜索按钮移入导航顶部左侧 */
body .stg-search-btn { right: auto; left: 176px; top: 6px; }
body .stg-model-row { min-height: 46px; }
body .stg-trow .stg-model-name { font-size: 12.5px; }

/* ── 外观：主题缩略图卡片（CSS 生成，替代真机截图） ── */
body .stg-appearance-hero { padding: 0; overflow: hidden; position: relative; }
body .stg-hero-preview { height: 150px; display: flex; align-items: flex-end; justify-content: center; }
body .stg-hero-mock {
  width: 82%; height: 72%; background: rgba(255,255,255,.82); border-radius: 10px 10px 0 0;
  box-shadow: 0 -2px 18px rgba(30,58,138,.12); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px;
}
body .stg-hero-mock i { display: block; height: 6px; border-radius: 3px; background: #D6E4F7; }
body .stg-hero-mock i:first-child { width: 42%; background: #B7CFEE; }
body .stg-hero-mock i:last-child { width: 68%; }
body .stg-hero-tip {
  position: absolute; top: 10px; right: 12px; font-size: 11px; color: #2E5B96;
  background: rgba(255,255,255,.85); border-radius: 10px; padding: 2px 8px;
}
body .stg-theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
body .stg-theme-card { cursor: pointer; }
body .stg-theme-thumb {
  height: 96px; border-radius: 8px; border: 1px solid #D7DFEA;
  transition: box-shadow .15s, border-color .15s;
}
body .stg-theme-card:hover .stg-theme-thumb { border-color: #7FA8E8; }
body .stg-theme-card.on .stg-theme-thumb { border-color: #4C75B4; box-shadow: 0 0 0 2px #4C75B4 inset; }
body .stg-theme-card.on .stg-theme-label { color: #12305E; font-weight: 600; }
body .stg-theme-label { text-align: center; font-size: 12px; color: #4A5A72; margin-top: 6px; }
body .stg-theme-card.disabled { cursor: default; opacity: .6; }

/* 导航压缩：19 项在 680 高内全部可见（真机 16 项为 34 行距） */
body .stg-nav-item { margin-bottom: 10px; }
body .stg-nav-group { padding: 12px 8px 5px; }
body .stg-nav-item { margin-bottom: 9px; }
body .stg-nav-group { padding: 10px 8px 4px; }

/* 真机确认弹窗（撤销授权 / 重置记忆） */
body .stg-confirm-mask {
  position: fixed; inset: 0; z-index: 900; background: rgba(15,23,36,.35);
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px);
}
body .stg-confirm {
  width: 470px; max-width: calc(100% - 48px); background: #fff; border-radius: 12px;
  box-shadow: 0 18px 48px rgba(15,23,36,.22); overflow: hidden;
}
body .stg-confirm-head { display: flex; align-items: flex-start; padding: 20px 20px 0; }
body .stg-confirm-head b { font-size: 14px; color: #12305E; font-weight: 700; flex: 1; line-height: 1.6; }
body .stg-confirm-x {
  width: 22px; height: 22px; border: none; background: transparent; color: #7F8FA7;
  font-size: 13px; cursor: pointer; border-radius: 4px; flex: none;
}
body .stg-confirm-x:hover { background: #EEF3FA; color: #12305E; }
body .stg-confirm-body { padding: 12px 20px 0; font-size: 13px; color: #4A5A72; line-height: 1.8; }
body .stg-confirm-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 22px 20px 20px; }
body .stg-mask .mini-btn.danger-solid { background: #E0533F; border-color: #E0533F; color: #fff; }
body .stg-mask .mini-btn.danger-solid:hover { background: #C94633; }

/* 应用管理：真机是文字 tab（无胶囊底） */
body .stg-tabs-text { display: flex; gap: 24px; margin: -2px 0 16px; }
body .stg-tabs-text .stg-tab { padding: 0; background: transparent; font-size: 13px; color: #7F8FA7; }
body .stg-tabs-text .stg-tab.on { background: transparent; color: #12305E; font-weight: 600; }
body .stg-tabs-text .stg-tab:hover { background: transparent; color: #12305E; }

/* 添加模型弹窗（真机 640 宽表单） */
body .stg-modal-sm-mask {
  position: fixed; inset: 0; z-index: 900; background: rgba(15,23,36,.35);
  display: flex; align-items: center; justify-content: center;
}
body .stg-modal-sm {
  width: 640px; max-width: calc(100% - 48px); background: #fff; border-radius: 12px;
  box-shadow: 0 18px 48px rgba(15,23,36,.22); overflow: hidden;
}
body .stg-sm-head { display: flex; align-items: center; padding: 18px 20px 0; }
body .stg-sm-head b { flex: 1; font-size: 14px; color: #12305E; }
body .stg-sm-body { padding: 14px 20px 4px; }
body .stg-field { margin-bottom: 14px; }
body .stg-label {
  display: flex; align-items: center; font-size: 12.5px; color: #4A5A72; margin-bottom: 6px;
}
body .stg-label .stg-link { margin-left: auto; color: #2E5B96; font-size: 12px; cursor: pointer; }
body .stg-inline { display: flex; gap: 10px; align-items: center; }
body .stg-sm-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 8px 20px 20px; }
