/* D:\VCP\VoiceStudio_Public\public\style.css */
/* 严守 Web 工作台 8 大出厂基线：清透护眼玉石毛玻璃 + 1:1 GPU 跟手悬浮条 + 无斑点雾化导图 + 双舱室 + 手机 100dvh 底部独立 Tab */

:root {
  --bg-sage: #e2eee5;
  --glass-surface: rgba(247, 252, 248, 0.76);
  --glass-card-inner: rgba(252, 255, 253, 0.89);
  --glass-border: rgba(255, 255, 255, 0.88);
  --line-soft: rgba(45, 74, 58, 0.085);
  --line-mid: rgba(45, 74, 58, 0.15);
  --text-main: #1c2d24;
  --text-sub: #4a6154;
  --text-mute: #7c9486;
  --jade-primary: #2b8a64;
  --jade-mix: #237a72;
  --amber-pause: #d97706;
  --coral-stop: #d64550;
  --radius-outer: 22px;
  --radius-inner: 14px;
  --radius-pill: 999px;
  --shadow-sage:
    inset 0 1px 0 rgba(255, 255, 255, 0.90),
    0 2px 6px rgba(24, 48, 34, 0.035),
    0 14px 32px -10px rgba(24, 48, 34, 0.065);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 13.5px;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-sage);
  background-image:
    radial-gradient(circle at 14% 16%, rgba(164, 214, 184, 0.36) 0%, transparent 45%),
    radial-gradient(circle at 86% 14%, rgba(184, 226, 204, 0.34) 0%, transparent 42%),
    radial-gradient(circle at 78% 86%, rgba(154, 209, 180, 0.30) 0%, transparent 45%),
    radial-gradient(circle at 20% 84%, rgba(203, 232, 212, 0.36) 0%, transparent 42%);
  background-attachment: fixed;
  overflow: hidden;
}

body.is-resizing { user-select: none !important; }
body.is-resizing svg, body.is-resizing canvas { pointer-events: none !important; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(68, 102, 82, 0.22); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(68, 102, 82, 0.38); }

/* ==================== 邀请码极简毛玻璃门禁舱 ==================== */
.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    radial-gradient(circle at 25% 25%, rgba(167, 224, 191, 0.55) 0%, transparent 50%),
    radial-gradient(circle at 78% 76%, rgba(182, 226, 209, 0.50) 0%, transparent 50%),
    rgba(226, 238, 229, 0.92);
  backdrop-filter: blur(24px);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(250, 254, 251, 0.86);
  backdrop-filter: blur(32px) saturate(170%);
  border: 1px solid #ffffff;
  border-radius: 26px;
  padding: 28px 26px;
  box-shadow: 0 24px 60px -12px rgba(22, 48, 34, 0.14), inset 0 1px 0 #fff;
  text-align: center;
}
.auth-logo { width: 52px; height: 52px; border-radius: 15px; margin-bottom: 12px; box-shadow: 0 8px 18px rgba(43, 138, 100, 0.24); }
.auth-title { font-size: 19px; font-weight: 720; color: #163a28; margin-bottom: 6px; }
.auth-desc { font-size: 12.5px; color: var(--text-sub); line-height: 1.6; margin-bottom: 18px; }
.auth-input {
  width: 100%; padding: 11px 16px; border-radius: 14px; border: 1.5px solid rgba(43, 138, 100, 0.25);
  background: #ffffff; font-size: 15px; font-weight: 650; text-align: center; letter-spacing: 1px;
  color: var(--text-main); margin-bottom: 12px; transition: all 0.16s;
}
.auth-input:focus { outline: none; border-color: var(--jade-primary); box-shadow: 0 0 0 3px rgba(43, 138, 100, 0.16); }
.auth-btn {
  width: 100%; padding: 11px; border: none; border-radius: 14px;
  background: linear-gradient(135deg, #2b8a64, #1e6b4c); color: #fff;
  font-size: 14px; font-weight: 660; cursor: pointer; box-shadow: 0 8px 20px rgba(43, 138, 100, 0.25);
}
.auth-btn:hover { filter: brightness(1.05); }
.auth-err { font-size: 12px; color: var(--coral-stop); margin-top: 8px; min-height: 16px; }
.auth-device-bar {
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-mid);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 11.5px; color: var(--text-sub);
}
.auth-dev-btn {
  border: 1px solid rgba(43, 138, 100, 0.3); background: #fff; color: #1b5c40;
  border-radius: var(--radius-pill); padding: 3px 10px; font-size: 11.3px; font-weight: 650; cursor: pointer;
}

/* ==================== 主框架与顶部导航栏（电脑端与手机端双轨清晰结构） ==================== */
.app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-width: 1860px;
  margin: 0 auto;
  padding: 9px 14px;
  gap: 8px;
}

.topbar {
  background: var(--glass-surface);
  backdrop-filter: blur(30px) saturate(165%);
  -webkit-backdrop-filter: blur(30px) saturate(165%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-outer);
  padding: 7px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-sage);
  flex-shrink: 0;
}

.topbar-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.brand-area { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.brand-logo { width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; }
.title-wrap { display: flex; flex-direction: column; flex: 1; max-width: 360px; min-width: 0; }
.title-input {
  border: 1px solid transparent; background: transparent; border-radius: 8px;
  padding: 2px 7px; margin-left: -6px; font-size: 14.2px; font-weight: 670; color: var(--text-main); width: 100%;
}
.title-input:hover { background: rgba(255, 255, 255, 0.55); }
.title-input:focus { outline: none; background: rgba(255, 255, 255, 0.94); border-color: rgba(43, 138, 100, 0.45); }
.subtitle-status { font-size: 11px; color: var(--text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pane-sub-hint { font-size: 11px; color: #7c9486; font-weight: 500; }

.topbar-right-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.device-switch-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4.5px 10px; border-radius: var(--radius-pill);
  border: 1px solid rgba(45, 74, 58, 0.18);
  background: rgba(255, 255, 255, 0.78);
  color: #234b37; font-size: 11.6px; font-weight: 660;
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.device-switch-pill:hover {
  background: #ffffff; border-color: var(--jade-primary); color: #164631;
}

/* 顶栏双舱室太空胶囊切换器 */
.cabin-switcher {
  display: inline-flex;
  background: rgba(34, 72, 52, 0.075);
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.72);
  gap: 3px;
  flex-shrink: 0;
}
.cabin-btn {
  border: none; background: transparent; padding: 5px 14px; border-radius: var(--radius-pill);
  font-size: 12.2px; font-weight: 660; color: var(--text-sub); cursor: pointer; transition: all 0.16s; white-space: nowrap;
}
.cabin-btn.active {
  background: #ffffff; color: #19583e;
  box-shadow: 0 2px 8px rgba(22, 52, 36, 0.10);
}
.m-label { display: none; }

.toolbar-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; width: 100%; padding-top: 5px; border-top: 1px solid var(--line-soft);
}
.voice-tools-inline, .common-tools-inline {
  display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
}

/* 右上角温润翡翠余额胶囊 + 主人总控按钮 */
.wallet-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4.5px 11px; border-radius: var(--radius-pill);
  background: rgba(232, 246, 238, 0.92);
  border: 1px solid rgba(43, 138, 100, 0.28);
  font-size: 11.8px; font-weight: 650; color: #1b5c40;
  cursor: pointer; white-space: nowrap;
}
.wallet-pill.low-balance {
  background: rgba(254, 242, 242, 0.95);
  border-color: rgba(214, 69, 80, 0.38);
  color: #b91c1c;
}
.wallet-amount { font-variant-numeric: tabular-nums; font-weight: 750; }

.btn-admin-crown {
  background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
  color: #78350f !important;
  border-color: rgba(217, 119, 6, 0.4) !important;
  font-weight: 700 !important;
}

/* ==================== 1:1 GPU 跟手悬浮灵动岛录音条 ==================== */
.floating-island-bar {
  position: fixed; top: 0; left: 0; z-index: 88;
  display: none; align-items: center; gap: 9px; height: 44px;
  padding: 0 12px 0 10px; border-radius: var(--radius-pill);
  background: rgba(23, 41, 32, 0.88);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  color: #f0fdf4; border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 28px rgba(15, 32, 24, 0.24), inset 0 1px 0 rgba(255,255,255,0.16);
  user-select: none; touch-action: none; will-change: transform; cursor: grab;
  transition: border-color 0.2s, background-color 0.22s;
}
.floating-island-bar.is-dragging { transition: none !important; cursor: grabbing !important; }
.floating-island-bar.speaking-glow {
  border-color: rgba(110, 231, 183, 0.82);
  box-shadow: 0 0 0 3px rgba(43, 138, 100, 0.20), 0 12px 30px rgba(15, 32, 24, 0.28);
}
.floating-island-bar.paused-mode { background: rgba(110, 52, 14, 0.90); border-color: rgba(252, 211, 77, 0.72); }
.island-drag-grip { padding: 4px 3px; color: rgba(255, 255, 255, 0.55); font-size: 14px; letter-spacing: -1px; flex-shrink: 0; }
.rec-dot { width: 7.5px; height: 7.5px; border-radius: 50%; background: #ff5b5b; box-shadow: 0 0 8px #ff5b5b; animation: pulseDot 1.4s ease-in-out infinite; flex-shrink: 0; }
.floating-island-bar.paused-mode .rec-dot { background: #fbbf24; box-shadow: none; animation: none; }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.island-timer { font-variant-numeric: tabular-nums; font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 12.5px; font-weight: 650; width: 42px; text-align: center; flex-shrink: 0; }
.wave-canvas { width: 148px; height: 28px; display: block; border-radius: 8px; background: rgba(255, 255, 255, 0.055); flex-shrink: 0; }
.island-state-tag { font-size: 11px; color: #a7f3d0; width: 50px; text-align: center; flex-shrink: 0; white-space: nowrap; }
.floating-island-bar.paused-mode .island-state-tag { color: #fde68a; }
.island-mini-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.10);
  color: #ecfdf5; padding: 3px 9px; border-radius: var(--radius-pill);
  font-size: 11.2px; font-weight: 600; cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.island-wave-btn { min-width: 72px; }
.island-mini-btn:hover { background: rgba(255, 255, 255, 0.22); }
.island-mini-stop { background: rgba(214, 69, 80, 0.85); border-color: rgba(255, 255, 255, 0.25); }

/* ==================== 按钮与视觉降噪体系 ==================== */
.divider-v { width: 1px; height: 18px; background: var(--line-mid); margin: 0 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 5.5px 11px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-mid); background: rgba(255, 255, 255, 0.56);
  color: var(--text-sub); font-size: 12px; font-weight: 560; cursor: pointer;
  transition: all 0.15s ease; white-space: nowrap; flex-shrink: 0;
}
.btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.9); color: var(--text-main); border-color: rgba(43, 138, 100, 0.32); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-xs { padding: 3.5px 9px; font-size: 11.5px; }

.btn-rec-start { background: var(--jade-primary); color: #fff; border-color: rgba(255,255,255,0.25); font-weight: 630; }
.btn-rec-start:hover:not(:disabled) { background: #237553; color: #fff; }
.btn-rec-mix { background: var(--jade-mix); color: #fff; border-color: rgba(255,255,255,0.25); font-weight: 630; }
.btn-rec-pause { background: var(--amber-pause); color: #fff; font-weight: 630; }
.btn-rec-stop { background: var(--coral-stop); color: #fff; font-weight: 630; }
.btn-soft-accent { background: rgba(43, 138, 100, 0.13); color: #1f684b; border-color: rgba(43, 138, 100, 0.28); font-weight: 620; }
.btn-soft-accent:hover:not(:disabled) { background: rgba(43, 138, 100, 0.22); color: #144933; }
.btn-diarize-active { background: rgba(31, 122, 140, 0.16); color: #135361; border-color: rgba(31, 122, 140, 0.42); font-weight: 650; }

.buffer-select {
  border: 1px solid var(--line-mid); background: rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-pill); padding: 4px 10px; font-size: 11.5px; color: var(--text-main); font-weight: 560;
}

.advisor-banner {
  background: rgba(248, 252, 249, 0.78); backdrop-filter: blur(18px);
  border: 1px solid rgba(43, 138, 100, 0.22); border-radius: 15px;
  padding: 5px 12px; display: flex; align-items: center; gap: 8px;
  overflow-x: auto; font-size: 11.8px; color: #264a38; flex-shrink: 0;
}
.advisor-chip { background: rgba(255, 255, 255, 0.88); border: 1px solid var(--line-mid); padding: 2px 9px; border-radius: var(--radius-pill); cursor: pointer; white-space: nowrap; }

/* ==================== 舱室 A：四分框十字自由拖动工作区 ==================== */
.workspace-flex { flex: 1; min-height: 0; display: flex; align-items: stretch; }
.left-col { width: var(--left-width, 44%); min-width: 280px; max-width: 68%; flex-shrink: 0; display: flex; flex-direction: column; min-height: 0; }
.left-top-pane { height: var(--left-top-height, 64%); min-height: 150px; max-height: 82%; flex-shrink: 0; }
.left-bottom-pane { flex: 1; min-height: 115px; }
.right-col { flex: 1; min-width: 310px; display: flex; flex-direction: column; min-height: 0; }
.top-map-pane { height: var(--map-height, 45%); min-height: 145px; max-height: 76%; flex-shrink: 0; }
.bottom-summary-pane { flex: 1; min-height: 165px; }

.resizer-v { width: 11px; cursor: col-resize; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.resizer-v::after { content: ""; width: 4px; height: 40px; border-radius: 99px; background: rgba(68, 102, 82, 0.18); transition: all 0.16s; }
.resizer-v:hover::after, .resizer-v.dragging::after { height: 68px; background: var(--jade-primary); }

.resizer-h { height: 10px; cursor: row-resize; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.resizer-h::after { content: ""; height: 4px; width: 44px; border-radius: 99px; background: rgba(68, 102, 82, 0.18); transition: all 0.16s; }
.resizer-h:hover::after, .resizer-h.dragging::after { width: 74px; background: var(--jade-primary); }

.glass-card {
  background: var(--glass-surface);
  backdrop-filter: blur(30px) saturate(165%);
  -webkit-backdrop-filter: blur(30px) saturate(165%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-outer);
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
  box-shadow: var(--shadow-sage);
}

.card-header {
  padding: 8px 14px; border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between;
  gap: 7px; flex-wrap: wrap; background: rgba(255, 255, 255, 0.36); flex-shrink: 0;
}
.card-title { font-size: 13px; font-weight: 660; color: var(--text-main); display: flex; align-items: center; gap: 6px; }

.seg-control { display: inline-flex; background: rgba(45, 74, 58, 0.065); padding: 2.5px; border-radius: var(--radius-pill); gap: 2px; }
.seg-btn { border: none; background: transparent; padding: 3.5px 10px; border-radius: var(--radius-pill); font-size: 11.7px; font-weight: 600; color: var(--text-sub); cursor: pointer; white-space: nowrap; }
.seg-btn.active { background: rgba(255, 255, 255, 0.93); color: var(--text-main); box-shadow: 0 1px 4px rgba(24, 48, 34, 0.08); }

/* 归档与实时双语行 */
.audio-bar { padding: 5px 14px; border-bottom: 1px solid var(--line-soft); background: rgba(255,255,255,0.42); display: none; }
.audio-bar audio { width: 100%; height: 28px; }

.transcript-wrap { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.transcript-scroll, .live-stream-scroll { flex: 1; overflow-y: auto; padding: 11px 14px; display: flex; flex-direction: column; gap: 8px; }

.minute-block { padding: 10px 13px; border-radius: var(--radius-inner); background: var(--glass-card-inner); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 2px 6px rgba(24, 48, 34, 0.025); }
.minute-block.flash-highlight { background: #f5f3c4 !important; border-color: #d4b106 !important; }
.minute-head { display: flex; align-items: center; gap: 7px; padding-bottom: 5px; margin-bottom: 5px; border-bottom: 1px dashed rgba(45, 74, 58, 0.12); flex-wrap: wrap; }
.minute-summary-title { font-size: 12.6px; font-weight: 660; color: #1f4f38; }
.minute-line { font-size: 13px; line-height: 1.65; color: var(--text-main); margin-top: 4px; }
.minute-bi-trans {
  margin: 3px 0 6px 10px; padding: 5px 10px; border-radius: 9px;
  background: rgba(232, 246, 249, 0.75); border-left: 3px solid #1f7a8c;
  font-size: 12.4px; color: #134652; line-height: 1.55;
}

.live-raw-item { padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.72); border-left: 3px solid var(--jade-primary); font-size: 12.8px; line-height: 1.55; color: #1f4734; }
.live-raw-trans { font-size: 12px; color: #155e75; margin-top: 3px; padding-top: 3px; border-top: 1px dashed rgba(31, 122, 140, 0.2); }

.ts-pill { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 10.8px; font-weight: 600; color: #256f50; background: rgba(43, 138, 100, 0.11); padding: 1.5px 7px; border-radius: var(--radius-pill); cursor: pointer; }
.spk-tag { display: inline-block; font-size: 11px; font-weight: 660; padding: 1px 7px; border-radius: var(--radius-pill); margin-right: 6px; background: rgba(43, 138, 100, 0.13); color: #1c5e42; }
.spk-tag.spk-b { background: rgba(31, 122, 140, 0.14); color: #135361; }
.spk-tag.spk-c { background: rgba(183, 121, 31, 0.15); color: #744210; }
.spk-tag.spk-d { background: rgba(107, 92, 165, 0.15); color: #3c2e70; }

.new-archive-toast { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); background: rgba(32, 53, 43, 0.88); color: #ecfdf5; padding: 3.5px 12px; border-radius: var(--radius-pill); font-size: 11.5px; cursor: pointer; display: none; z-index: 5; }

/* 无斑点雾化思维导图画布 */
#paneMap.glass-card { background: rgba(245, 252, 247, 0.58); backdrop-filter: blur(34px) saturate(175%); }
.mindmap-box {
  flex: 1; min-height: 0; position: relative;
  background:
    radial-gradient(ellipse at 22% 24%, rgba(255, 255, 255, 0.62) 0%, transparent 58%),
    radial-gradient(ellipse at 82% 78%, rgba(183, 228, 203, 0.28) 0%, transparent 56%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.30) 0%, rgba(235, 247, 239, 0.18) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.mm-svg { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.mm-svg:active { cursor: grabbing; }
.mindmap-guide-tip { position: absolute; left: 10px; bottom: 8px; background: rgba(255, 255, 255, 0.70); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.85); padding: 3px 10px; border-radius: var(--radius-pill); font-size: 11px; color: var(--text-sub); pointer-events: none; }

.scroll-pane { flex: 1; overflow-y: auto; padding: 11px 14px; }

/* 候选热词回流胶囊 */
.hotword-reflow-bar { margin-bottom: 10px; padding: 9px 12px; border-radius: 14px; background: rgba(235, 247, 239, 0.92); border: 1px solid rgba(43, 138, 100, 0.25); display: none; flex-direction: column; gap: 7px; font-size: 11.8px; color: #1f4f38; }
.reflow-chips-wrap { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cand-pill { display: inline-flex; align-items: center; gap: 4px; background: #ffffff; border: 1.5px solid var(--line-mid); border-radius: var(--radius-pill); padding: 2px 8px; cursor: pointer; }
.cand-pill.checked { border-color: var(--jade-primary); background: #e6f5ec; }
.cand-check-icon { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #94a3b8; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; color: transparent; }
.cand-pill.checked .cand-check-icon { background: var(--jade-primary); border-color: var(--jade-primary); color: #fff; }
.cand-edit-inp { border: 1px dashed transparent; background: transparent; font-size: 11.8px; font-weight: 600; color: var(--text-main); min-width: 48px; max-width: 120px; padding: 1px 4px; border-radius: 4px; }
.cand-edit-inp:focus { outline: none; border-style: solid; border-color: var(--jade-primary); background: #fff; }

.formal-report-box { background: var(--glass-card-inner); border: 1px solid rgba(255, 255, 255, 0.88); border-radius: var(--radius-inner); padding: 11px 14px; font-size: 12.5px; line-height: 1.66; color: var(--text-main); }
.formal-report-box h2, .formal-report-box h3, .formal-report-box h4 { font-size: 13px; font-weight: 680; color: #193829; margin: 10px 0 4px; padding-bottom: 3px; border-bottom: 1px solid var(--line-soft); }
.formal-report-box h2:first-child, .formal-report-box h3:first-child { margin-top: 0; }
.formal-report-box ul, .formal-report-box ol { margin: 4px 0 8px 18px; }
.md-hl { background: rgba(234, 222, 148, 0.42); color: #1c2d24; font-weight: 640; padding: 0 4px; border-radius: 4px; }
.md-code { font-family: ui-monospace, Consolas, monospace; font-size: 11.4px; background: rgba(45, 74, 58, 0.07); color: #235c42; padding: 1px 5px; border-radius: 4px; }

.todo-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 9px; }
.todo-item { display: flex; align-items: flex-start; gap: 8px; padding: 6.5px 10px; border-radius: 11px; background: var(--glass-card-inner); border: 1px solid rgba(255,255,255,0.88); font-size: 12.3px; }
.todo-item.done { opacity: 0.5; text-decoration: line-through; }
.todo-chk { margin-top: 2px; accent-color: var(--jade-primary); cursor: pointer; }
.prio-tag { font-size: 10.5px; font-weight: 650; padding: 1px 6px; border-radius: 99px; flex-shrink: 0; }
.prio-high { background: rgba(214, 69, 80, 0.12); color: #a62b35; }
.prio-mid { background: rgba(43, 138, 100, 0.12); color: #216b4d; }

.topic-card { border: 1px solid rgba(255,255,255,0.88); border-radius: 13px; padding: 9px 12px; margin-bottom: 7px; background: var(--glass-card-inner); font-size: 12.3px; }
.topic-card h4 { font-size: 12.8px; color: #1f4f38; margin-bottom: 4px; display: flex; justify-content: space-between; }
.topic-card ul { padding-left: 17px; line-height: 1.58; }
.topic-gap { margin-top: 4px; font-size: 11.6px; color: var(--jade-primary); font-weight: 600; }
.edit-textarea { flex: 1; width: 100%; border: none; padding: 12px; font-size: 13px; line-height: 1.65; resize: none; background: rgba(255,255,255,0.92); font-family: inherit; }
.edit-textarea:focus { outline: none; }

/* 视觉交付三件套横幅条 */
.export-trio-bar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 7px; margin-bottom: 10px;
}
.trio-card-btn {
  display: flex; align-items: center; gap: 8px; padding: 8px 11px;
  border-radius: 13px; border: 1px solid rgba(43, 138, 100, 0.24);
  background: rgba(255, 255, 255, 0.88); cursor: pointer; text-align: left;
  transition: all 0.15s;
}
.trio-card-btn:hover { background: #ffffff; border-color: var(--jade-primary); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(24, 48, 34, 0.06); }
.trio-icon { font-size: 19px; flex-shrink: 0; }
.trio-title { font-size: 12.2px; font-weight: 680; color: var(--text-main); }
.trio-sub { font-size: 10.6px; color: var(--text-sub); }

/* ==================== 舱室 B：文档与长文「术语锁定」精翻舱 ==================== */
.translate-flex {
  flex: 1; min-height: 0; display: none; align-items: stretch; gap: 10px;
}
.trans-left-pane { width: 42%; min-width: 290px; display: flex; flex-direction: column; }
.trans-right-pane { flex: 1; min-width: 320px; display: flex; flex-direction: column; }

.trans-source-area {
  flex: 1; width: 100%; border: 1px solid var(--line-soft); border-radius: 13px;
  padding: 12px 14px; font-size: 13px; line-height: 1.66; resize: none;
  background: rgba(255, 255, 255, 0.86); font-family: inherit; color: var(--text-main);
}
.trans-source-area:focus { outline: none; border-color: var(--jade-primary); background: #fff; }

.glossary-mini-box {
  margin-top: 8px; background: rgba(235, 247, 239, 0.78);
  border: 1px solid rgba(43, 138, 100, 0.2); border-radius: 12px; padding: 8px 11px;
}
.glossary-mini-inp {
  width: 100%; border: 1px solid rgba(43, 138, 100, 0.22); border-radius: 8px;
  padding: 5px 9px; font-size: 12px; background: #fff; margin-top: 4px;
}

.bilingual-pair-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 11px 13px; border-radius: 13px; background: var(--glass-card-inner);
  border: 1px solid rgba(255, 255, 255, 0.9); margin-bottom: 8px;
  transition: border-color 0.15s, background-color 0.15s;
}
.bilingual-pair-card:hover { border-color: rgba(43, 138, 100, 0.42); background: #ffffff; }
.bp-src { font-size: 12.6px; line-height: 1.64; color: var(--text-sub); border-right: 1px dashed var(--line-mid); padding-right: 10px; }
.bp-tgt { font-size: 13px; line-height: 1.66; color: var(--text-main); font-weight: 510; }
.bp-idx { font-size: 10.5px; font-weight: 700; color: var(--jade-primary); margin-bottom: 3px; }

/* ==================== 模态框与主人运营监控充值总控台 ==================== */
.modal-mask {
  position: fixed; inset: 0; background: rgba(20, 38, 28, 0.36); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; z-index: 98; padding: 14px;
}
.modal-mask.open { display: flex; }
.modal-box {
  background: #f4f9f5; border-radius: 24px; border: 1px solid #fff;
  width: 100%; max-width: 820px; max-height: 88vh; display: flex; flex-direction: column;
  overflow: hidden; box-shadow: 0 22px 50px rgba(20, 38, 28, 0.22);
}
.modal-box.modal-wide { max-width: 1040px; }
.modal-body { padding: 14px 18px; overflow-y: auto; flex: 1; }
.input-row { display: flex; gap: 7px; margin-bottom: 9px; flex-wrap: wrap; align-items: center; }
.text-inp { flex: 1; min-width: 130px; padding: 7px 12px; border: 1px solid var(--line-mid); border-radius: var(--radius-pill); font-size: 12.5px; background: #fff; color: var(--text-main); }
.text-inp:focus { outline: none; border-color: var(--jade-primary); }

.hw-edit-section { background: #ffffff; border: 1px solid var(--line-soft); border-radius: 15px; padding: 11px 13px; margin-top: 10px; }
.corr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 7px; max-height: 180px; overflow-y: auto; padding-right: 4px; }
.corr-row { display: flex; align-items: center; gap: 5px; background: #f7fbf8; border: 1px solid var(--line-mid); border-radius: 10px; padding: 4px 7px; }
.hw-vis-input { border: 1px solid #cbd5ce; background: #ffffff; border-radius: 7px; padding: 4px 8px; font-size: 12px; color: var(--text-main); }
.hw-vis-input:focus { outline: none; border-color: var(--jade-primary); }
.hw-vis-input.dirty { border-color: #10b981; background: #ecfdf5; }
.word-input-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 7px; margin-top: 8px; }
.word-input-cell { display: flex; align-items: center; gap: 4px; background: #f7fbf8; border: 1px solid var(--line-soft); border-radius: 9px; padding: 3px 6px; }
.word-input-cell .hw-vis-input { width: 100%; min-width: 0; flex: 1; }
.tag-del-btn { border: none; background: rgba(214,69,80,0.08); color: #b93640; cursor: pointer; width: 20px; height: 20px; border-radius: 6px; font-size: 13px; flex-shrink: 0; }
.tag-del-btn:hover { background: var(--coral-stop); color: #fff; }

/* 主人监控大盘卡片与表格 */
.admin-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 14px; }
.admin-kpi-card { background: #ffffff; border: 1px solid var(--line-soft); border-radius: 15px; padding: 12px 14px; }
.admin-kpi-label { font-size: 11.5px; color: var(--text-sub); }
.admin-kpi-val { font-size: 20px; font-weight: 760; color: #164631; margin-top: 3px; font-variant-numeric: tabular-nums; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; font-size: 12.2px; }
.admin-table th { background: #e8f3ec; color: #194732; text-align: left; padding: 9px 10px; font-weight: 680; }
.admin-table td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.badge-soft-del { background: #fef3c7; color: #92400e; padding: 1px 7px; border-radius: 99px; font-size: 10.5px; font-weight: 650; }

[contenteditable="true"]:hover { outline: 1px dashed rgba(43, 138, 100, 0.5); border-radius: 4px; }
[contenteditable="true"]:focus { outline: 2px solid var(--jade-primary); background: rgba(255,255,255,0.2); border-radius: 4px; }

/* ==================== 📱 手机端独立精雕专版（由 html.device-mobile 控制，支持自动识别与一键手切） ==================== */
.mobile-nav { display: none; }

html.device-mobile, html.device-mobile body {
  height: 100dvh;
  overflow: hidden;
}
html.device-mobile .app-shell {
  height: 100dvh;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  gap: 6px;
}
html.device-mobile .desktop-only,
html.device-mobile .resizer-v,
html.device-mobile .resizer-h,
html.device-mobile .divider-v,
html.device-mobile .pane-sub-hint,
html.device-mobile .d-label {
  display: none !important;
}
html.device-mobile .m-label {
  display: inline !important;
}
html.device-mobile .m-hide {
  display: none !important;
}

/* 手机端清爽紧凑头部：第1行标题+视图切换+余额；第2行双舱切换；第3行单排横滑动作条 */
html.device-mobile .topbar {
  padding: 7px 10px;
  border-radius: 17px;
  gap: 6px;
}
html.device-mobile .topbar-main-row {
  flex-wrap: wrap;
  gap: 6px;
}
html.device-mobile .brand-area {
  min-width: 140px;
}
html.device-mobile .brand-logo { width: 25px; height: 25px; }
html.device-mobile .title-input { font-size: 14px; padding: 1px 5px; margin-left: -4px; }
html.device-mobile .device-switch-pill { padding: 3.5px 8px; font-size: 11px; }
html.device-mobile .wallet-pill { padding: 3.5px 9px; font-size: 11.2px; }

html.device-mobile .cabin-switcher {
  order: 3;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
html.device-mobile .cabin-btn {
  text-align: center;
  padding: 5.5px 6px;
  font-size: 12.2px;
}

html.device-mobile .toolbar-actions {
  width: 100%;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: flex-start;
  gap: 5px;
  padding-top: 4px;
}
html.device-mobile .toolbar-actions::-webkit-scrollbar { display: none; }
html.device-mobile .voice-tools-inline,
html.device-mobile .common-tools-inline {
  flex-wrap: nowrap;
  gap: 5px;
  flex-shrink: 0;
}
html.device-mobile .toolbar-actions .btn { padding: 5px 9px; font-size: 11.6px; }
html.device-mobile .buffer-select { padding: 4px 8px; font-size: 11.4px; }

/* 手机端单屏专注容器 + 舒适大字号（防 iOS Safari 点击自动放大乱跳） */
html.device-mobile .workspace-flex,
html.device-mobile .translate-flex {
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
html.device-mobile .left-col,
html.device-mobile .right-col,
html.device-mobile .trans-left-pane,
html.device-mobile .trans-right-pane {
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  flex: 1;
  min-height: 0;
  gap: 6px;
}
html.device-mobile .left-top-pane { height: 58% !important; max-height: none; min-height: 130px; }
html.device-mobile .left-bottom-pane { flex: 1; min-height: 95px; }
html.device-mobile .top-map-pane,
html.device-mobile .bottom-summary-pane {
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0;
  flex: 1;
}
html.device-mobile .glass-card { border-radius: 17px; }
html.device-mobile .card-header { padding: 7px 11px; }
html.device-mobile .minute-line,
html.device-mobile .formal-report-box { font-size: 14px; line-height: 1.65; }
html.device-mobile .trans-source-area,
html.device-mobile .edit-textarea,
html.device-mobile .glossary-mini-inp { font-size: 15px; }
html.device-mobile .bilingual-pair-card { grid-template-columns: 1fr; gap: 6px; }
html.device-mobile .bp-src { border-right: none; border-bottom: 1px dashed var(--line-mid); padding-right: 0; padding-bottom: 6px; font-size: 13.5px; }
html.device-mobile .bp-tgt { font-size: 14.2px; }
html.device-mobile .export-trio-bar { grid-template-columns: 1fr; }

html.device-mobile .floating-island-bar { height: 40px; gap: 6px; padding: 0 9px 0 8px; max-width: calc(100vw - 14px); }
html.device-mobile .island-state-tag { display: none; }
html.device-mobile .wave-canvas { width: 88px; height: 24px; }

html.device-mobile .mobile-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: var(--glass-surface);
  backdrop-filter: blur(24px) saturate(165%);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 4px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sage);
}
html.device-mobile .mobile-nav.cols-3 { grid-template-columns: repeat(3, 1fr); }
html.device-mobile .m-nav-btn {
  border: none; background: transparent; padding: 8px 3px; border-radius: 12px;
  font-size: 11.8px; font-weight: 660; color: var(--text-sub); cursor: pointer;
}
html.device-mobile .m-nav-btn.active {
  background: #ffffff; color: var(--jade-primary); box-shadow: 0 2px 6px rgba(24, 48, 34, 0.08);
}

/* ==================== 🎯 1v1 咨询参谋专享模式（右下角 4H/4N 实时支招 ⇄ 4C 深度诊断导出） ==================== */
html.consult-advisor-mode #cabinBtnWish,
html.consult-advisor-mode .non-consult-tab {
  display: none !important;
}
html.consult-advisor-mode.device-mobile .cabin-switcher {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
html.consult-advisor-mode.hide-wallet-amount #walletBalanceText,
html.consult-advisor-mode.hide-wallet-amount #walletPill .desktop-only {
  display: none !important;
}

.consult-guide-empty {
  background: #f5fbf7;
  border: 1px dashed rgba(43, 138, 100, 0.35);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 12.6px;
  line-height: 1.68;
  color: #355243;
}

.advice-feed-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.advice-card {
  background: #ffffff;
  border: 1px solid rgba(43, 138, 100, 0.25);
  border-radius: 14px;
  padding: 11px 13px;
  box-shadow: 0 3px 10px rgba(20, 48, 34, 0.04);
  overflow-wrap: anywhere;
}
.advice-card.latest {
  border-color: #10b981;
  background: linear-gradient(180deg, #f3fcf7 0%, #ffffff 48%);
}
.advice-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-soft);
}
.advice-stage-title {
  font-size: 13px;
  font-weight: 720;
  color: #13462f;
}
.advice-meta {
  font-size: 11px;
  color: #5b7566;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.advice-sec-box {
  border-radius: 10px;
  padding: 8px 10px;
  margin-top: 6px;
  font-size: 12.8px;
  line-height: 1.58;
}
.advice-sec-sug {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #064e3b;
}
.advice-sec-ask {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
}
.advice-sec-pit {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #78350f;
}
.advice-sec-label {
  font-weight: 700;
  margin-bottom: 3px;
  display: block;
}
.advice-sec-box ul {
  margin: 0;
  padding-left: 17px;
}
.advice-sec-box li {
  margin: 2px 0;
}

.consult-export-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.consult-exp-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(43, 138, 100, 0.3);
  background: #f6fbf8;
  color: #164631;
  cursor: pointer;
  text-align: left;
  transition: transform 0.14s, background 0.14s;
  min-width: 0;
  overflow-wrap: anywhere;
}
.consult-exp-btn:hover {
  background: #eaf6ef;
  transform: translateY(-1px);
}
.consult-exp-btn.primary {
  background: #1b6b4a;
  border-color: #16593d;
  color: #ffffff;
}
.consult-exp-btn.primary:hover {
  background: #15583c;
}
.consult-exp-btn span {
  font-size: 12.8px;
  font-weight: 720;
}
.consult-exp-btn small {
  font-size: 11px;
  opacity: 0.85;
}

.consult-exec-banner {
  background: #eff9f3;
  border-left: 4px solid #1b7a53;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.62;
  color: #153828;
}
.consult-diag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.consult-diag-card {
  background: #ffffff;
  border: 1px solid var(--line-mid);
  border-radius: 11px;
  padding: 9px 11px;
  font-size: 12.3px;
  line-height: 1.55;
  min-width: 0;
  overflow-wrap: anywhere;
}
.consult-sug-item {
  background: #ffffff;
  border: 1px solid var(--line-mid);
  border-radius: 11px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 12.6px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.badge-p0 {
  background: #fee2e2;
  color: #991b1b;
  font-weight: 750;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 6px;
  margin-right: 6px;
}
.badge-p1 {
  background: #dcfce7;
  color: #166534;
  font-weight: 750;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 6px;
  margin-right: 6px;
}

@media (max-width: 820px) {
  .consult-export-bar,
  .consult-diag-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
html.device-mobile .consult-export-bar,
html.device-mobile .consult-diag-grid {
  grid-template-columns: minmax(0, 1fr);
}
html.device-mobile .advice-sec-box {
  font-size: 13.8px;
  line-height: 1.62;
}
