/* 语音转写全套样式：迁移自 mindmap-app src/renderer/styles/app.css（.voice-* / .vf-* / .vh-*）
   及其依赖的 .fm-add-template / .fm-back 按钮规则（原 FileMenu 面板共用） */

.fm-add-template {
  background: #2a5699; color: white; border: none;
  padding: 8px 18px; border-radius: 3px; cursor: pointer; font-size: 13px;
}
.fm-add-template:hover { background: #1d4080; }


.fm-back {
  border: 1px solid #d7e3f4; background: #fff; color: #2a5699;
  border-radius: 999px; padding: 6px 16px 6px 13px; font-size: 12.5px;
  cursor: pointer; transition: background .15s, border-color .15s, transform .05s;
  display: inline-flex; align-items: center; gap: 4px; line-height: 1.4;
}
.fm-back:hover { background: #e8f1fb; border-color: #9dbde4; }
.fm-back:active { transform: translateY(1px); }


/* ---------------- 语音转写弹窗 (VoiceDialog) ---------------- */
.voice-dialog {
  position: fixed;
  right: 28px;
  bottom: 52px;
  width: 620px;
  max-width: calc(100vw - 56px);
  max-height: min(560px, calc(100vh - 150px));
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ribbon-border);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(20, 40, 80, 0.22);
  z-index: 70;
  overflow: hidden;
  animation: voiceIn 0.16s ease-out;
}
@keyframes voiceIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.voice-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #ececec;
  background: linear-gradient(#fbfcfe, #f4f7fb);
}
.voice-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #333; }
.voice-dot { width: 9px; height: 9px; border-radius: 50%; background: #9aa0a6; flex-shrink: 0; }
.voice-dot-starting, .voice-dot-paused, .voice-dot-stopping, .voice-dot-degraded { background: #f5a524; }
.voice-dot-recording { background: #e5484d; animation: voice-pulse 1.2s ease-in-out infinite; }
.voice-dot-finished { background: #2f9e6e; }
@keyframes voice-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.45); }
  50% { box-shadow: 0 0 0 5px rgba(229, 72, 77, 0); }
}
.voice-timer { font-variant-numeric: tabular-nums; color: #2a5699; font-weight: 600; }
.voice-badge {
  font-size: 11px; background: #fff4e0; color: #b76e00;
  border: 1px solid #f0d9a8; padding: 1px 7px; border-radius: 9px;
}
.voice-sources { display: flex; gap: 6px; margin-left: auto; }
.voice-src {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: #555;
  border: 1px solid #d5d5d5; border-radius: 12px;
  padding: 2px 10px; cursor: pointer; background: #fff;
}
.voice-src:hover { border-color: #9db9d9; }
.voice-src.on { background: #e8f1fb; border-color: #9db9d9; color: #2a5699; font-weight: 600; }
.voice-src input { accent-color: #2a5699; margin: 0; }
.voice-close {
  border: none; background: transparent; color: #888;
  font-size: 13px; line-height: 1; cursor: pointer;
  padding: 4px 7px; border-radius: 4px; margin-left: 6px;
}
.voice-close:hover { background: #e8eaed; color: #333; }
.voice-wave {
  display: block; width: 100%; height: 48px;
  background: #f7fafd; border-bottom: 1px solid #ececec;
}
.voice-transcript {
  flex: 1; min-height: 110px; overflow-y: auto;
  padding: 10px 14px;
  display: flex; flex-direction: column; gap: 6px;
  user-select: text;
}
.voice-empty { color: #999; font-size: 12.5px; padding: 8px 0; }
.voice-seg { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; color: #333; line-height: 1.55; }
.voice-seg-time { color: #98a2b3; font-size: 11px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.voice-seg-speaker {
  color: #2a5699; font-size: 11px; background: #e8f1fb;
  padding: 0 6px; border-radius: 8px; flex-shrink: 0;
}
.voice-seg-text { flex: 1; }
.voice-seg-partial .voice-seg-text { color: #8a919c; font-style: italic; }
.voice-error {
  margin: 0 14px 10px; background: #fdecec; color: #c0392b;
  border: 1px solid #f5c6c6; font-size: 12px;
  padding: 6px 10px; border-radius: 6px;
}
.voice-notice {
  margin: 0 14px 10px; background: #eef4fb; color: #2a5699;
  border: 1px solid #c9d9ec; font-size: 12px;
  padding: 6px 10px; border-radius: 6px;
}
.voice-actions {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-top: 1px solid #ececec; background: #fafbfc;
}
.voice-btn {
  border: 1px solid #c9d6e4; background: #fff; color: #333;
  border-radius: 6px; padding: 5px 16px; font-size: 12.5px; cursor: pointer;
}
.voice-btn:hover:not(:disabled) { background: #e0ecf7; border-color: #b0cbe5; }
.voice-btn:disabled { opacity: 0.55; cursor: default; }
.voice-btn-primary { background: #2a6db5; border-color: #2a6db5; color: #fff; }
.voice-btn-primary:hover:not(:disabled) { background: #1d5a9e; border-color: #1d5a9e; }
.voice-btn-stop { border-color: #e5484d; color: #e5484d; }
.voice-btn-stop:hover:not(:disabled) { background: #fdecec; border-color: #e5484d; }
.voice-saved { margin-left: auto; font-size: 11.5px; color: #2f9e6e; }

/* ---------------- 转写记录面板 (VoiceHistoryPanel) ---------------- */
.voice-history-list { display: flex; flex-direction: column; gap: 6px; }
.voice-history-item {
  display: flex; align-items: center; gap: 10px;
  text-align: left; width: 100%;
  border: 1px solid #e2e6ea; background: #fff;
  border-radius: 8px; padding: 8px 12px;
  cursor: pointer; font-size: 12.5px; color: #333;
  transition: border-color .12s, background .12s;
}
.voice-history-item:hover { border-color: #9db9d9; background: #f4f9fe; }
.vh-icon { font-size: 16px; flex-shrink: 0; }
.vh-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.vh-title { font-weight: 600; color: #2b2f36; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vh-sub { font-size: 11.5px; color: #8a919c; }
.vh-open { font-size: 11.5px; color: #2a5699; flex-shrink: 0; opacity: 0; transition: opacity .12s; }
.voice-history-item:hover .vh-open { opacity: 1; }
.voice-test-row { display: flex; align-items: center; gap: 10px; margin: 2px 0 6px; }
.voice-test-row .voice-btn { padding: 4px 14px; font-size: 12px; }
.voice-test-ok { color: #1a7f37; font-size: 12px; }
.voice-test-fail { color: #c0392b; font-size: 12px; }
.voice-model-box { border: 1px solid #e3e7ee; border-radius: 8px; padding: 8px 10px; background: #fafbfd; margin-bottom: 6px; }
.voice-model-status { font-size: 12.5px; color: #4a5160; }
.voice-model-progress { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 11.5px; color: #6a7180; }
.voice-model-bar { flex: 1; height: 6px; background: #e3e7ee; border-radius: 3px; overflow: hidden; }
.voice-model-bar-inner { height: 100%; background: linear-gradient(90deg, #3a6fd8, #5b8def); border-radius: 3px; transition: width .3s; }
.voice-model-msg { margin-top: 6px; font-size: 11.5px; color: #4a5160; }
.voice-settings-divider { margin-top: 18px; }

/* 行内文件夹按钮 + 查看箭头 */
.vh-open {
  border: none; background: transparent; font-size: 14px; cursor: pointer;
  color: #2a5699; flex-shrink: 0; opacity: 0; transition: opacity .12s;
  border-radius: 4px; padding: 2px 4px;
}
.voice-history-item:hover .vh-open { opacity: 1; }
.vh-open:hover { background: #e8f1fb; }
.vh-open-arrow { font-size: 11.5px; color: #2a5699; flex-shrink: 0; opacity: 0; transition: opacity .12s; }
.voice-history-item:hover .vh-open-arrow { opacity: 1; }
.vh-badge { font-style: normal; color: #1a7f37; margin-left: 4px; }

/* 录音面板音源提示 */
.voice-src-hint {
  font-size: 11px; color: #8a919c; margin-left: 6px;
  border-left: 1px solid #e2e6ea; padding-left: 8px;
}

/* ---------------- 右下角悬浮录音入口（讯飞听见式） ---------------- */
.voice-fab {
  position: fixed; right: 26px; bottom: 46px; z-index: 60;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.voice-fab-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 126px; height: 40px; padding: 0;
  border: none; cursor: pointer; border-radius: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .5px;
  box-shadow: 0 4px 14px rgba(30, 64, 120, .18);
  transition: transform .12s, box-shadow .12s, filter .12s, background .12s;
}
.voice-fab-btn svg { flex: none; }
.voice-fab-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(30, 64, 120, .28); }
.voice-fab-btn:disabled { opacity: .65; cursor: wait; transform: none; }
.voice-fab-main { background: linear-gradient(135deg, #4f8ef7, #2563eb); color: #fff; }
.voice-fab-main:hover { filter: brightness(1.07); }
.voice-fab-sub { background: #fff; color: #3565b0; border: 1px solid #d9e4f4; }
.voice-fab-sub:hover { background: #f4f8ff; }
.vf-spin {
  width: 13px; height: 13px; flex: none; border-radius: 50%;
  border: 2px solid #c3d4ec; border-top-color: #3565b0;
  animation: vfspin .8s linear infinite;
}
@keyframes vfspin { to { transform: rotate(360deg); } }

/* ---------------- 转写记录详情视图 ---------------- */
.voice-history-panel { max-width: none; width: 100%; }
.vh-detail-view { display: flex; flex-direction: column; gap: 10px; min-height: 0; height: 100%; box-sizing: border-box; }
.vh-detail-title { font-size: 16px; font-weight: 600; color: #2b2f36; max-width: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-left: 12px; }
.vh-tabrow {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; border-bottom: 1px solid #e2e6ea;
}
.vh-tabs { display: flex; gap: 6px; border-bottom: none; padding-bottom: 0; }
.vh-tab {
  border: 1px solid transparent; border-bottom: none; background: transparent;
  padding: 6px 14px; font-size: 12.5px; color: #6a7180; cursor: pointer;
  border-radius: 8px 8px 0 0; margin-bottom: -1px;
}
.vh-tab:hover { color: #2a5699; }
.vh-tab.on {
  background: #fff; border-color: #e2e6ea; color: #2a5699; font-weight: 600;
  border-bottom: 2px solid #fff;
}
.vh-text {
  flex: 1; min-height: 0; overflow: auto; width: 100%; box-sizing: border-box;
  border: 1px solid #e2e6ea; border-radius: 10px; background: #fff;
  box-shadow: 0 1px 4px rgba(30, 64, 120, .06);
  padding: 20px 28px; font-size: 14px; line-height: 1.95; color: #333;
  white-space: pre-wrap; word-break: break-word; font-family: inherit;
}
.vh-empty { color: #9aa1ac; font-style: italic; }
.vh-msg { font-size: 12px; color: #c0392b; }
.vh-msg.busy { color: #2a5699; }
.vh-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-bottom: 7px; }
.vh-actions .fm-add-template { padding: 6px 14px; font-size: 12.5px; }
.vh-actions .fm-add-template:disabled { opacity: .55; cursor: wait; }
.vh-actions .fm-back { padding: 6px 12px; font-size: 12.5px; }

/* 返回按钮：幽灵胶囊样式（原先无样式，是浏览器默认灰框） */
.fm-back {
  border: 1px solid #d7e3f4; background: #fff; color: #2a5699;
  border-radius: 999px; padding: 6px 16px 6px 13px; font-size: 12.5px;
  cursor: pointer; transition: background .15s, border-color .15s, transform .05s;
  display: inline-flex; align-items: center; gap: 4px; line-height: 1.4;
}
.fm-back:hover { background: #e8f1fb; border-color: #9dbde4; }
.fm-back:active { transform: translateY(1px); }

/* 详情标题旁的重命名小按钮 */
.vh-rename-btn {
  border: none; background: transparent; cursor: pointer; font-size: 13px;
  padding: 2px 6px; border-radius: 6px; opacity: .5; transition: opacity .12s, background .12s; margin-right: auto;
}
.vh-rename-btn:hover { background: #e8f1fb; opacity: 1; }

/* 行内重命名输入框 */
.vh-rename-input {
  border: 1px solid #9dbde4; border-radius: 6px; padding: 3px 9px;
  font-size: 13px; font-weight: 600; color: #2b2f36; background: #fff;
  outline: none; width: 280px; max-width: 60%; box-shadow: 0 0 0 3px rgba(42, 86, 153, .12);
}
.vh-rename-input-lg { font-size: 15px; width: 420px; padding: 4px 10px; }

/* ---------------- 会议纪要 Markdown 正文 ---------------- */
.vh-text.md-body { white-space: normal; }
.md-body h2 { font-size: 19px; font-weight: 700; color: #1f3f77; margin: 6px 0 12px; }
.md-body h3 {
  font-size: 15.5px; font-weight: 700; color: #2a5699; margin: 22px 0 10px;
  padding-left: 10px; border-left: 3px solid #2a5699;
}
.md-body h4 { font-size: 14px; font-weight: 600; color: #3b4657; margin: 16px 0 8px; }
.md-body p { margin: 7px 0; }
.md-body ul, .md-body ol { margin: 7px 0; padding-left: 26px; }
.md-body li { margin: 5px 0; }
.md-body li::marker { color: #2a5699; }
.md-body strong { color: #1f3f77; font-weight: 600; }
.md-body em { color: #6a7180; }
.md-body hr { border: none; border-top: 1px dashed #c9d8ec; margin: 18px 0; }
.md-body table { border-collapse: collapse; margin: 12px 0; width: 100%; }
.md-body th, .md-body td { border: 1px solid #dfe6ee; padding: 7px 12px; font-size: 13px; text-align: left; vertical-align: top; }
.md-body th { background: #f2f7fd; color: #2a5699; font-weight: 600; }
.md-body tbody tr:nth-child(even) { background: #fafcfe; }
.md-body blockquote {
  margin: 10px 0; padding: 8px 14px; border-left: 3px solid #2a5699;
  background: #f5f9fe; color: #55606e; border-radius: 0 6px 6px 0;
}
.md-body blockquote p { margin: 3px 0; }
.md-body code { background: #f0f3f7; padding: 1px 6px; border-radius: 4px; font-size: 12.5px; }

/* ---------------- 原文字稿：人工修订 / 批量替换 / 导出 ---------------- */
.vh-edit-area {
  resize: none; outline: none; display: block; width: 100%;
  border: 1.5px solid #2a5699; box-shadow: 0 0 0 3px rgba(42, 86, 153, .08);
}
.vh-edit-hint {
  font-size: 12px; color: #2a5699; background: #e8f1fb;
  border: 1px solid #d7e3f4; border-radius: 8px; padding: 6px 12px;
}
.vh-replace-bar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  background: #f4f8ff; border: 1px solid #d7e3f4; border-radius: 10px;
  padding: 8px 12px; font-size: 12.5px; color: #3b4657;
}
.vh-replace-label { color: #5a6473; flex: none; }
.vh-replace-bar input[type="text"] {
  border: 1px solid #c9d8ec; border-radius: 6px; padding: 5px 9px;
  font-size: 12.5px; min-width: 170px; outline: none; background: #fff; color: #2b2f36;
}
.vh-replace-bar input[type="text"]:focus { border-color: #2a5699; }
.vh-replace-case { display: inline-flex; gap: 4px; align-items: center; cursor: pointer; user-select: none; }
.vh-replace-info { color: #2a5699; font-weight: 600; }
.vh-replace-hint { width: 100%; color: #8a93a3; font-size: 11.5px; line-height: 1.6; }
.vh-replace-bar .fm-add-template { padding: 5px 14px; font-size: 12.5px; }
.vh-replace-bar .fm-back { padding: 5px 12px; font-size: 12.5px; }
.vh-actions .fm-back.on { background: #2a5699; color: #fff; border-color: #2a5699; }
.vh-export-wrap { position: relative; display: inline-block; }
.vh-export-menu {
  position: absolute; right: 0; top: calc(100% + 6px); background: #fff;
  border: 1px solid #e2e6ea; border-radius: 10px;
  box-shadow: 0 10px 28px rgba(30, 64, 120, .18);
  padding: 6px; z-index: 60; min-width: 168px;
  display: flex; flex-direction: column; gap: 2px;
}
.vh-export-menu button {
  text-align: left; border: none; background: transparent; padding: 8px 12px;
  border-radius: 7px; font-size: 12.5px; color: #2b2f36; cursor: pointer; white-space: nowrap;
}
.vh-export-menu button:hover { background: #e8f1fb; color: #2a5699; }
.vh-export-backdrop { position: fixed; inset: 0; z-index: 50; }
/* 查找高亮：正文匹配项黄底标出 + 替换栏实时匹配计数 */
.vh-find-hl { background: #ffe08a; color: inherit; border-radius: 2px; box-shadow: inset 0 0 0 1px #f0be2e; padding: 0 1px; }
.vh-find-count { background: #2a5699; color: #fff; border-radius: 10px; padding: 1px 10px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }

/* ===== 面板依赖样式补齐（自源 app.css：记录面板/设置面板复用的 FileMenu 与 AI 设置段） ===== */
.fm-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  color: #333;
  margin-bottom: 12px;
}
.fm-footer { margin-top: 10px; color: #888; font-size: 12px; }
.fm-template-scroll { max-height: calc(100vh - 150px); overflow-y: auto; padding-right: 6px; }
.fm-template-group { margin-bottom: 16px; }
.fm-group-title {
  font-size: 14px; font-weight: 600; color: #2a5699;
  margin-bottom: 10px; padding-bottom: 5px;
  border-bottom: 1px solid #ddd;
}
.fm-template-group[data-tone="blue"]   { --tone: #2a6db5; --tone-bg: #EAF2FB; }
.fm-template-group[data-tone="green"]  { --tone: #2e8b57; --tone-bg: #E9F5EE; }
.fm-template-group[data-tone="orange"] { --tone: #d9822b; --tone-bg: #FBF1E5; }
.fm-template-group[data-tone="purple"] { --tone: #7a5fa8; --tone-bg: #F1EDF8; }
.fm-group-title {
  display: flex; align-items: center; gap: 8px;
  color: #333; border-bottom: 1px solid #e2e2e2;
}
.fm-group-title::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px;
  background: var(--tone, #2a5699);
}
.fm-panel-actions { display: flex; gap: 10px; margin-top: 18px; }
.fm-panel-actions button {
  background: #2a5699; color: #fff; border: none;
  padding: 8px 16px; border-radius: 3px; cursor: pointer; font-size: 13px;
}
.fm-panel-actions button:hover { background: #1d4080; }
.ai-settings { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; max-width: 560px; }
.ai-settings label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: #444; }
.ai-settings input {
  padding: 6px 8px; border: 1px solid #ccc; border-radius: 3px; font-size: 13px;
}
.ai-test-result { margin-top: 12px; font-size: 13px; padding: 8px 12px; border-radius: 3px; max-width: 560px; }
.ai-test-result.ok { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.ai-test-result.err { background: #fdecea; color: #c62828; border: 1px solid #f5b4ae; }

/* ===== 工作台适配新增：设置表单分组 / 导图页签 ===== */
.ai-settings-form { display: flex; flex-direction: column; gap: 10px; }
.ai-settings-form select { padding: 6px 8px; border: 1px solid #ccc; border-radius: 3px; font-size: 13px; }
.voice-check { flex-direction: row !important; align-items: center; gap: 6px !important; }
.voice-check input[type="checkbox"] { width: auto; }
.vh-map { padding: 0; overflow: hidden; }
.vh-mindmap-svg { display: block; width: 100%; height: 100%; }

/* =====================================================================
   工作台原生布局重设计（企微风）：不再照搬源抽屉样式
   ===================================================================== */

/* 修复：hidden 属性被 display:flex 覆盖 → 录音弹窗/悬浮球残留空白面板 */
.voice-dialog[hidden],
.voice-fab[hidden] { display: none !important; }

/* ---- 页面骨架：工具条 + 内容 ---- */
.vp-shell { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.vp-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vp-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: #2b2f36; }
.vp-count { background: rgba(43, 125, 233, .1); color: var(--brand); border-radius: 999px; padding: 1px 9px; font-size: 11.5px; font-weight: 600; }
.vp-tools { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---- 统一按钮：小幽灵 / 主色 ---- */
.vp-btn {
  display: inline-flex; align-items: center; gap: 5px; line-height: 1.4;
  border: 1px solid #d9e2ee; background: #fff; color: #4a5464;
  border-radius: 6px; padding: 6px 12px; font-size: 12.5px; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.vp-btn:hover { border-color: var(--brand); color: var(--brand); background: rgba(43, 125, 233, .06); }
.vp-btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.vp-btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }
.vp-btn:disabled { opacity: .55; cursor: wait; }

/* ---- 空态引导 ---- */
.vp-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 72px 20px; color: #8a93a3; }
.vp-empty-ico { font-size: 46px; opacity: .9; }
.vp-empty-title { font-size: 15px; font-weight: 600; color: #5a6474; }
.vp-empty-sub { font-size: 12.5px; line-height: 1.9; text-align: center; color: #98a1b0; }
.vp-empty-acts { display: flex; gap: 10px; margin-top: 10px; }
.vp-empty-acts .vp-btn { padding: 8px 18px; font-size: 13px; border-radius: 8px; }

/* ---- 会话卡片列表 ---- */
.vp-list { display: flex; flex-direction: column; gap: 8px; }
.vp-item {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid #e4e9f0; border-radius: 10px;
  padding: 12px 16px; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.vp-item:hover { border-color: rgba(43, 125, 233, .45); box-shadow: 0 3px 12px rgba(30, 64, 120, .08); transform: translateY(-1px); }
.vp-item-ico {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: rgba(43, 125, 233, .1);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.vp-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vp-item-title { font-size: 13.5px; font-weight: 600; color: #2b2f36; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-item-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11.5px; color: #98a1b0; }
.vp-badge { font-style: normal; background: rgba(52, 168, 83, .12); color: #2f9e44; border-radius: 4px; padding: 1px 6px; font-size: 10.5px; }
.vp-item-btn {
  border: none; background: transparent; cursor: pointer; font-size: 14px;
  padding: 6px 7px; border-radius: 6px; color: #98a1b0;
  opacity: 0; transition: opacity .12s, background .12s, color .12s;
}
.vp-item:hover .vp-item-btn { opacity: 1; }
.vp-item-btn:hover { background: rgba(43, 125, 233, .1); color: var(--brand); }
.vp-item-go { font-size: 12px; color: var(--brand); flex: none; opacity: 0; transition: opacity .12s; }
.vp-item:hover .vp-item-go { opacity: 1; }
.vp-rename-input { width: 100%; box-sizing: border-box; }

/* ---- 覆盖源样式：次级按钮统一小幽灵（原实心深蓝大块） ---- */
.fm-add-template,
.fm-panel-actions button {
  display: inline-flex; align-items: center; gap: 5px; line-height: 1.4;
  background: #fff; border: 1px solid #d9e2ee; color: #4a5464;
  border-radius: 6px; padding: 6px 12px; font-size: 12.5px; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.fm-add-template:hover,
.fm-panel-actions button:hover { background: rgba(43, 125, 233, .06); border-color: var(--brand); color: var(--brand); }
.fm-add-template:disabled,
.fm-panel-actions button:disabled { opacity: .55; cursor: wait; }
.fm-back {
  display: inline-flex; align-items: center; gap: 4px; line-height: 1.4;
  background: #fff; border: 1px solid #d9e2ee; color: #4a5464;
  border-radius: 6px; padding: 6px 12px; font-size: 12.5px; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.fm-back:hover { background: rgba(43, 125, 233, .06); border-color: var(--brand); color: var(--brand); }
.fm-back.on { border-color: var(--brand); color: var(--brand); background: rgba(43, 125, 233, .08); }

/* ---- 面包屑行工具条化：标题左、操作右 ---- */
.fm-breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fm-breadcrumb > span { font-size: 14px; font-weight: 600; color: #2b2f36; }
.fm-breadcrumb > .fm-add-template:first-of-type { margin-left: auto; }
.fm-panel-actions { margin-top: 10px; }

/* ---- 页签：企微下划线式（覆盖源圆角卡片式） ---- */
.vh-tabrow { border-bottom: 1px solid #e4e9f0; gap: 12px; }
.vh-tabs { gap: 4px; }
.vh-tab {
  border: none; background: transparent; border-radius: 0; margin-bottom: -1px;
  padding: 8px 14px; font-size: 13px; color: #5a6474;
  border-bottom: 2px solid transparent;
}
.vh-tab:hover { color: var(--brand); background: transparent; }
.vh-tab.on { background: transparent; border-color: transparent; border-bottom-color: var(--brand); color: var(--brand); font-weight: 600; }

/* ---- 容器去源卡片外壳（外层 #voicePanelHost 已是工作台卡片） ---- */
.ai-settings.voice-history-panel { max-width: none; width: 100%; background: transparent; border: none; box-shadow: none; padding: 0; margin-top: 0; gap: 14px; }
.ai-settings { max-width: 680px; }
.fm-footer { color: #98a1b0; font-size: 12px; margin-top: 2px; }
.vp-shell .vh-text, .vh-detail-view .vh-text { min-height: 320px; }

/* ---- T31:统一模型配置状态卡(会议设置页,编辑跳员工模块对话框) ---- */
.vp-llm-state { font-size: 13px; margin-top: 2px; }
.vp-llm-state.ok { color: #2f9e44; }
.vp-llm-state.err { color: #c0392b; }
.vp-llm-meta { font-size: 11.5px; color: #98a1b0; margin-top: 2px; word-break: break-all; }

/* ---- T31:列表分页 ---- */
.vp-pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 6px 0 2px; }
.vp-pager-info { font-size: 12px; color: #98a1b0; }
