:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --line: #e3e6ea;
  --text: #1f2328;
  --muted: #6b7280;
  --accent: #2563eb;
  --ok-bg: #eaf3de; --ok-fg: #3b6d11;
  --warn-bg: #faeeda; --warn-fg: #854f0b;
  --bad-bg: #fcebeb; --bad-fg: #a32d2d;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 14px; line-height: 1.6;
}

.topbar {
  display: flex; align-items: center; gap: 24px; row-gap: 8px;
  /* 4.1.28：允许换行。窄窗口（最小 980）下把右侧集群整体换到第二行，
     而不是让徽标/按钮互相挤压或溢出到 padding 外。 */
  flex-wrap: wrap;
  padding: 14px 24px; background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.brand { font-weight: 500; font-size: 15px; }
.brand span { color: var(--accent); }

/* 右侧集群：账号 / 退出登录。顶栏只留导航 + 这一个动作组，窄窗也不挤。 */
.topbar-right {
  display: flex; align-items: center; gap: 10px;
  margin-left: auto; flex: 0 0 auto;
}

/* 右下角状态坞：数据面徽标 / 版本徽标 / 云同步状态。
   固定定位，但不吃点击（子元素各自 pointer-events:auto），页面末尾留 44px 余量。 */
.status-dock {
  position: fixed; right: 16px; bottom: 12px; z-index: 9;
  display: flex; align-items: center; gap: 8px;
  pointer-events: none;
}
.status-dock > * { pointer-events: auto; }
.status-dock .ver-badge { box-shadow: 0 2px 8px rgba(20, 28, 40, .08); }

/* 最新版徽标：位于右侧集群内，靠 .topbar-right 的 gap 与相邻元素隔开（不再自己吃 auto margin） */
.ver-badge {
  flex: 0 0 auto;
  font-size: 12px; line-height: 1; color: var(--muted);
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); white-space: nowrap;
  font-variant-numeric: tabular-nums; cursor: default;
}
.ver-badge b { color: var(--accent); font-weight: 500; }
.ver-badge.is-latest { border-color: #bcd79a; background: var(--ok-bg); color: var(--ok-fg); }
.ver-badge.is-latest b { color: var(--ok-fg); }
.ver-badge.is-stale { border-color: #e6c88a; background: var(--warn-bg); color: var(--warn-fg); }
.ver-badge.is-stale b { color: var(--warn-fg); }
.tabs { display: flex; gap: 6px; }
.tab {
  border: 1px solid transparent; background: transparent; color: var(--muted);
  padding: 6px 14px; border-radius: 8px; cursor: pointer; font-size: 14px;
  font-family: inherit;
}
.tab:hover { background: #f0f2f5; }
.tab.active { background: #eef4ff; color: var(--accent); border-color: #d6e4ff; }

main { max-width: min(1900px, 100% - 48px); margin: 20px auto 44px; padding: 0 24px; }
.panel { display: none; }
.panel.active { display: block; }
.grid { display: grid; grid-template-columns: minmax(340px, 420px) 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px;
}
.card h2 { margin: 0 0 16px; font-size: 15px; font-weight: 500; }
.card h3 { margin: 18px 0 8px; font-size: 13px; font-weight: 500; color: var(--muted); }

.form-row { margin-bottom: 12px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
input, select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--text); font-family: inherit; font-size: 14px;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: #9ec1ff; box-shadow: 0 0 0 3px #eef4ff;
}
textarea { resize: vertical; }

.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 8px 0 16px; }
.check input { width: auto; }

button.primary {
  width: 100%; padding: 10px; border: none; border-radius: 8px;
  background: var(--accent); color: #fff; font-size: 14px; cursor: pointer;
  font-family: inherit;
}
button.primary:hover { background: #1d4ed8; }
button.primary:disabled { background: #9ab; cursor: default; }

.muted { color: var(--muted); font-size: 13px; }
.hidden { display: none; }

.verdict-line { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 13px; background: #eef1f5; color: var(--muted);
}
.badge.ok { background: var(--ok-bg); color: var(--ok-fg); }
.badge.warn { background: var(--warn-bg); color: var(--warn-fg); }
.badge.bad { background: var(--bad-bg); color: var(--bad-fg); }
.action { margin: 0 0 12px; color: var(--text); }

.list-block { margin: 10px 0; }
.list-block ul { margin: 4px 0 0; padding-left: 18px; }
.list-block li { margin: 2px 0; }
.list-block .hd { font-size: 12px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px;
  background: #fbfcfd; min-width: 150px;
}
.chip .id { font-weight: 500; }
.chip .desc { font-size: 12px; color: var(--muted); }
.chip .free { font-size: 12px; color: var(--accent); }

.verify-box {
  margin-top: 16px; padding: 12px; border: 1px dashed var(--line);
  border-radius: 10px; background: #fbfcfd; font-size: 13px;
}
.verify-box .line { margin: 3px 0; }
.verify-box.gate-pass { border-left: 3px solid var(--ok-fg); }
.verify-box.gate-fail { border-left: 3px solid var(--bad-fg); }

/* 「待补充」的三类子原因分组：每组一行标题 + 逐车最小动作 */
.gate-group { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid #eef0f3; }
.gate-group-hd { font-size: 12px; font-weight: 500; color: #92400e; margin-bottom: 4px; }
.gate-items { display: flex; flex-direction: column; gap: 4px; }
.gate-item { padding-left: 10px; border-left: 2px solid #f0d3a0; }
.gate-item-hd { font-size: 13px; }
.gcand { font-size: 12px; color: var(--muted); padding-left: 2px; }

.count-table { width: 100%; border-collapse: collapse; }
.count-table th {
  padding: 6px; text-align: left; font-size: 12px; font-weight: 500;
  color: var(--muted); border-bottom: 1px solid var(--line);
}
.count-table td { padding: 8px 6px; border-bottom: 1px solid #f0f2f5; }
.count-table td.id { width: 90px; font-weight: 500; }
.count-table td.desc { color: var(--muted); font-size: 12px; }
.count-table td.num { width: 90px; }
.count-table td.free { width: 80px; text-align: right; font-size: 12px; color: var(--accent); }
.count-table input { padding: 6px 8px; text-align: right; }

/* 载具核验表：车名放宽、等级/出击数右对齐 */
#v-vehicles th:nth-child(2), #v-vehicles td:nth-child(2),
#v-vehicles th:nth-child(3), #v-vehicles td:nth-child(3) { width: 64px; text-align: right; }
#v-vehicles td.id { width: auto; cursor: help; }
#v-vehicles td.desc { width: 96px; }
.row-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.row-actions button.primary { width: auto; padding: 8px 20px; }

/* 线A 只留一个粘贴框 */
.hint { font-size: 12px; color: var(--muted); margin: 0 0 12px; line-height: 1.65; }
.hint.tiny { font-size: 12px; margin: 12px 0 0; }
textarea.resume { line-height: 1.75; min-height: 320px; }
button.ghost {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--muted); font-size: 13px; cursor: pointer;
  font-family: inherit;
}
button.ghost:hover { background: #f7f8fa; color: var(--text); }

/* ---------------- 截图上传（AI 识图） ---------------- */
.shot-block { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.shot-block.flat { margin-top: 0; padding-top: 0; border-top: 0; }
.shot-head { display: flex; justify-content: space-between; gap: 10px;
  align-items: baseline; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.shot-drop { display: flex; align-items: center; gap: 10px; padding: 14px;
  border: 1px dashed var(--line); border-radius: 10px; background: #fbfcfd;
  cursor: pointer; font-size: 13px; color: var(--muted); margin: 0; }
.shot-drop:hover, .shot-drop.over { border-color: var(--accent); background: #f2f7ff; color: var(--accent); }
.shot-plus { font-size: 18px; font-weight: 600; line-height: 1; }
.shot-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.shot-chip { position: relative; display: inline-block; line-height: 0; cursor: pointer; }
.shot-chip img { width: 72px; height: 72px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line); }
.shot-chip b { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--bad-fg); color: #fff; font-size: 12px;
  line-height: 18px; text-align: center; font-weight: 400; }

.tiny { font-size: 11.5px; }
.tiny-btn { padding: 5px 10px; font-size: 12px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; color: var(--muted); cursor: pointer; }
.tiny-btn:hover { border-color: var(--accent); color: var(--accent); }
.tiny-btn.ok-text { border-color: #bcd79a; background: var(--ok-bg); }
.ok-text { color: var(--ok-fg); }
.warn-text { color: var(--warn-fg); }
.ai-filled { background: #eef7e6; border-color: #bcd79a; }

/* ---------------- AI 设置弹窗 ---------------- */
.ai-dialog { border: none; border-radius: 14px; padding: 0;
  width: min(560px, 92vw); box-shadow: 0 20px 60px rgba(0, 0, 0, .2); }
.ai-dialog::backdrop { background: rgba(15, 23, 42, .35); }
.ai-form { padding: 20px 22px; }
.ai-form h2 { margin: 0 0 6px; font-size: 16px; }
.field { display: block; margin: 10px 0; }
.field span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.field input { width: 100%; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 13px; font-family: inherit; }
.ai-adv { margin: 12px 0; border-top: 1px dashed var(--line); padding-top: 10px; }
.ai-adv summary { cursor: pointer; font-size: 12px; color: var(--accent); }

/* ---------------- 线B：人数表流水线 ---------------- */
.b-grid { display: grid; grid-template-columns: minmax(420px, 1fr) minmax(360px, 460px);
  gap: 20px; align-items: start; }
.b-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
@media (max-width: 980px) { .b-grid { grid-template-columns: 1fr; } }

.count-table.compact th { padding: 4px 6px; }
.count-table.compact td { padding: 5px 6px; }
.count-table td.free.zero { color: var(--ok-fg); font-weight: 500; }
.count-table td.free.over { color: var(--bad-fg); font-weight: 500; }
.count-table input.miss { border-color: #f0c2c2; background: #fff8f8; }
.count-table input { width: 100%; }

/* ---- 识别带来的人数变动：模块置顶醒目条 + 行轻高亮 ----
   只读展示：不覆盖、不禁用、不改动任何 input，手动修改照常可用。 */
.count-delta { margin: 12px 0 14px; padding: 11px 14px; border-radius: 10px;
  border: 1px solid var(--line); border-left: 5px solid var(--muted);
  font-size: 13px; line-height: 1.55; }
.count-delta.hidden { display: none; }
.count-delta.has-change { background: #fff7ed; border-color: #fdba74;
  border-left-color: #ea580c; color: #7c2d12; }
.count-delta.no-change { background: var(--ok-bg); border-color: #bcd79a;
  border-left-color: var(--ok-fg); color: #1f4410; }
.count-delta.pending { background: #eff6ff; border-color: #bfdbfe;
  border-left-color: var(--accent); color: #1e3a8a; }
.count-delta.failed { background: var(--bad-bg); border-color: #f0c2c2;
  border-left-color: var(--bad-fg); color: var(--bad-fg); }
.count-delta .delta-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.count-delta .delta-badge { display: inline-block; padding: 3px 11px; border-radius: 999px;
  font-weight: 700; font-size: 13px; letter-spacing: .3px; white-space: nowrap; }
.count-delta.has-change .delta-badge { background: #ea580c; color: #fff; }
.count-delta.no-change .delta-badge { background: var(--ok-fg); color: #fff; font-size: 15px; }
.count-delta.pending .delta-badge,
.count-delta.failed .delta-badge { background: rgba(255, 255, 255, .72); color: inherit; }
.count-delta .delta-total { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.count-delta .muted.tiny { color: inherit; opacity: .8; }
.count-delta .delta-note { display: block; margin-top: 6px; font-size: 12px; opacity: .85; }
.delta-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; }
.delta-list li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px;
  border-radius: 7px; background: #fff; border: 1px solid #fdba74;
  font-variant-numeric: tabular-nums; font-size: 12.5px; }
.delta-list li.down { border-color: #bcd79a; }
.delta-list .did { font-weight: 600; }
.delta-list .arrow { opacity: .6; }
.delta-list .chg { font-weight: 700; }
.delta-list .chg.up { color: #a32d2d; }
.delta-list .chg.down { color: #3b6d11; }

/* 只给 <tr> 加底色与左色条：input 的边框/背景/可用性一概不动 */
#b-rows tr.row-up { background: #fff4ee; }
#b-rows tr.row-down { background: #f1f9e9; }
#b-rows tr.row-up td:first-child { box-shadow: inset 3px 0 0 #ea580c; }
#b-rows tr.row-down td:first-child { box-shadow: inset 3px 0 0 var(--ok-fg); }

.tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px;
  font-size: 11px; font-weight: 400; line-height: 17px; background: #eef1f5; color: var(--muted); }
.tag.zero { background: var(--ok-bg); color: var(--ok-fg); }
.tag.over { background: var(--bad-bg); color: var(--bad-fg); }

.commit-bar { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
/* 线B 操作条置顶（2026-11-08）：日期/时刻 + 手动修正提交 + 强制重出图 + 状态，
   压在 11 行表格下面要滚屏才看得见，而 AI 识别已经会自动出图了。 */
.b-submit-bar { margin: 4px 0 14px; }
.b-submit-bar #btn-commit { flex: 0 0 auto; }
.b-topbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 10px 0 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.b-topbar-fields { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.b-topbar button { white-space: nowrap; }
/* 状态文字吃掉剩余宽度但不把按钮挤走；没内容时不占位。 */
.b-topbar #b-msg { flex: 1 1 120px; min-width: 0; }
.b-topbar #b-msg:empty { flex: 0 0 auto; }
.bfield { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 12px; color: var(--muted); }
.bfield span { white-space: nowrap; }
.bfield input { width: auto; padding: 6px 8px; font-size: 13px; }
.check.inline { margin: 0; gap: 6px; font-size: 12px; white-space: nowrap; }

.banner { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px;
  border-radius: 10px; font-size: 13px; background: #f1f3f6; }
.banner b { font-size: 14px; font-weight: 600; }
.banner.ok { background: var(--ok-bg); color: var(--ok-fg); }
.banner.same { background: var(--warn-bg); color: var(--warn-fg); }
.banner.bad { background: var(--bad-bg); color: var(--bad-fg); }

.diffs { list-style: none; margin: 12px 0 0; padding: 0; }
.diffs li { display: flex; align-items: center; gap: 8px; padding: 5px 0;
  border-bottom: 1px dashed #eef0f3; font-size: 13px; }
.diffs li .did { min-width: 64px; font-weight: 500; }
.diffs li .arrow { color: var(--muted); }
.diffs li .delta { margin-left: auto; font-variant-numeric: tabular-nums; }
.diffs li .delta.up { color: #a32d2d; }
.diffs li .delta.down { color: #3b6d11; }

.verify-line { margin: 14px 0 0; padding: 10px 12px; border: 1px dashed var(--line);
  border-radius: 10px; background: #fbfcfd; font-size: 12.5px; }
.b-preview { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; background: #2b2b2b; }
.b-preview img { display: block; width: 100%; height: auto;
  max-height: 38vh; object-fit: contain; }
.b-dl { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.b-dl a { flex: 1; text-align: center; padding: 8px 12px; border-radius: 8px;
  border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 13px; }
.b-dl a:hover { border-color: var(--accent); color: var(--accent); }
.b-dl a.dl-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.b-dl a.dl-primary:hover { background: #1d4ed8; color: #fff; }
/* 「复制图片 / 打开所在文件夹」：是动作不是下载，所以不给 flex:1——
   两个下下载按钮才是等宽主按钮，这两个跟在旁边当辅助。 */
.b-dl button { flex: 0 0 auto; padding: 8px 12px; font-size: 13px; }
/* 下载失败时那条说明要独占一行，否则会被按钮挤成竖排 */
.b-dl > span { flex: 0 0 100%; }
.b-dl a.busy { opacity: .6; pointer-events: none; }
/* 预览图本身可拖：给个抓手光标，不然没人知道能拖 */
.b-preview img { cursor: grab; }
.b-preview img:active { cursor: grabbing; }


/* AI 审核提示：判定后附加，与判定结论视觉分离（左侧色条 + 灰底） */
.ai-notes { border-left: 3px solid var(--accent); background: #f8fafc; }
.ai-notes-hd { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.ai-notes .action { margin: 0 0 8px; }
.ai-guide { margin: 4px 0 8px; white-space: pre-wrap; line-height: 1.6; }
.ai-notes .tiny-btn { margin-top: 2px; }

/* AI 判定：紫色左边条，与「AI 审核提示」（蓝色）区分——一个是判定依据，一个是文案 */
.ai-judge { border-left: 3px solid #7f77dd; background: #faf9ff; }
.ai-judge .action { margin: 0 0 6px; font-weight: 600; }
.ai-basis { margin: 0 0 6px; padding-left: 18px; font-size: 13px; line-height: 1.6; }
.ai-basis li { margin: 2px 0; }
.ai-judge .tag { background: #eeedfe; color: #3c3489; }

/* 六项资料的硬性条件提示：结果最上方的醒目警示条（不动判定，只提醒人工拍板） */
.hard-flags { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 14px; }
.hard-flag {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 13px; border-radius: 10px;
  background: #fff7ed; border: 1px solid #fed7aa; border-left: 4px solid #d97706;
}
.hard-flag-tag {
  flex: none; font-weight: 700; font-size: 13px; color: #b45309;
  background: #ffedd5; border-radius: 6px; padding: 1px 7px; white-space: nowrap;
}
.hard-flag-txt { font-size: 13.5px; line-height: 1.55; color: #7c2d12; }

/* 载具来源标记：礼包（橙）/ 银币线（灰）——「氪的」和「练的」一眼分得开 */
.paid-tag { display: inline-block; padding: 1px 6px; border-radius: 5px; font-size: 12px; }
.paid-tag.paid { background: #ffedd5; color: #b45309; border: 1px solid #fed7aa; }
.paid-tag.silver { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }

/* ================= 判定结果排版（结论优先 + 双列分区） ================= */
/* 目标：2K 下一屏看完全部信息；1080P / 2K / 4K、窗口与全屏都能自适应。 */

/* ① 顶部通栏：结论、硬性提示、处理建议 —— 视线第一落点 */
.result-hero {
  padding: 0 0 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line);
}
.result-hero .verdict-line { margin-bottom: 8px; }
.result-hero .badge { font-size: 15px; padding: 4px 13px; }
.result-hero .action { font-size: 15px; font-weight: 500; margin: 0; line-height: 1.5; }

/* ② 双列：左决策（推荐/载具），右依据（理由/证据/AI） */
.result-cols { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1180px) {
  .result-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 20px; }
}
.result-col { min-width: 0; }           /* 关键：防止长串撑破 grid */

/* 列内小标题：弱化但仍成组，降低视觉噪音 */
.col-title {
  margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--muted);
  letter-spacing: .02em;
}
.result-col > .col-title ~ .col-title { margin-top: 16px; }

/* 详情列整体降一级：层级分明，主次一眼可见 */
.result-detail { font-size: 13.5px; }
.result-detail .list-block { margin: 8px 0; }
.result-detail .list-block li { margin: 1px 0; }

/* ③ 纵向压缩：把省下来的高度让给"一页看完" */
.card { padding: 16px 18px; }
.card h2 { margin-bottom: 12px; }
.list-block { margin: 8px 0; }
.list-block li { margin: 1px 0; }
.verify-box { margin: 8px 0; padding: 9px 11px; }
.count-table td, .count-table th { padding: 6px; }
.chips { gap: 8px; }
.hard-flags { margin: 8px 0 10px; }
.hard-flag { padding: 8px 11px; }

/* ④ 超宽屏（2K/4K 全屏）：放宽但限行宽，避免一行太长得来回扫 */
@media (min-width: 1920px) {
  main { max-width: min(1800px, 100% - 64px); }
  .result-cols { gap: 26px; }
}
/* 2K 起放宽字号与间距：一屏装得下，就别让字太小 */
@media (min-width: 2200px) {
  body { font-size: 15px; }
  main { max-width: 1900px; }
  .card { padding: 20px 22px; }
  .result-hero .badge { font-size: 16px; padding: 5px 14px; }
  .result-hero .action { font-size: 16px; }
  .result-detail { font-size: 14px; }
  .list-block li { margin: 2px 0; }
  .count-table td, .count-table th { padding: 8px 8px; }
}

/* ⑤ 窄窗口（笔记本分屏 / 非全屏）：先堆叠，再把次要块压紧 */
@media (max-width: 900px) {
  main { padding: 0 14px; }
  .card { padding: 14px; }
  .result-hero .action { font-size: 14px; }
}

/* ⑥ 矮屏（1080P 全屏或更矮）：进一步压缩，优先保证结论与推荐同屏 */
@media (max-height: 900px) and (min-width: 1180px) {
  .result-detail { font-size: 13px; }
  .result-detail .list-block { margin: 6px 0; }
  .verify-box { margin: 6px 0; padding: 8px 10px; }
  .card { padding: 14px 16px; }
}

/* ⑦ 矮屏（1366x768 这类笔记本 / 分屏）：再压一档间距，保证结论+推荐+详情同屏 */
@media (max-height: 820px) {
  main { margin: 12px auto; }
  .card { padding: 12px 14px; }
  .card h2 { margin-bottom: 8px; font-size: 14px; }
  .result-hero { padding-bottom: 8px; margin-bottom: 10px; }
  .result-hero .verdict-line { margin-bottom: 5px; }
  .result-hero .action { font-size: 14px; }
  .hard-flags { margin: 6px 0 8px; gap: 6px; }
  .hard-flag { padding: 6px 9px; }
  .list-block { margin: 5px 0; }
  .list-block .hd { font-size: 11.5px; }
  .verify-box { margin: 5px 0; padding: 7px 9px; }
  .count-table td, .count-table th { padding: 4px 5px; }
  .chips .chip { padding: 6px 10px; }
  .col-title { margin-bottom: 5px; }
  .result-col > .col-title ~ .col-title { margin-top: 10px; }
  .ai-guide { margin: 3px 0 6px; }
}

/* 载具字段里未识别片段：提示性一行小字，不抢结论注意力 */
.leftover-hint {
  margin: 6px 0 0; font-size: 12px; color: #92400e;
  background: #fffbeb; border: 1px dashed #fde68a; border-radius: 6px; padding: 5px 9px;
}

/* ---------- 人工查询卡片（V2.1） ---------- */
.manual-box { border: 1px solid #e3e5e8; border-radius: 8px; padding: 12px 14px;
              background: #f6f7f8; }
.manual-box .manual-head { font-weight: 600; color: #a35b00; margin-bottom: 6px; }
.manual-box .manual-row { display: flex; align-items: center; gap: 10px;
                          margin: 8px 0; }
.manual-box .manual-label { color: #6b7280; font-size: 12px; }
.manual-box #m-uid { font-size: 18px; font-variant-numeric: tabular-nums; }
.manual-box .mini { padding: 4px 10px; font-size: 12px; border-radius: 6px;
                    border: 1px solid #e3e5e8; background: #fff; cursor: pointer;
                    text-decoration: none; color: #23282d; }
.manual-box .mini.primary { background: #0f6e56; border-color: #0f6e56; color: #fff; }
.manual-box .mini[hidden] { display: none; }
.manual-box .line { font-size: 12px; margin-top: 4px; }
/* 对照入口的短反馈：跟结果区上方那条说明共用一套色值，不另起一套语义 */
.manual-box #m-live-state { font-size: 12px; }
.manual-box #m-live-state.ok { color: var(--ok-fg); }
.manual-box #m-live-state.warn { color: var(--warn-fg); }

/* ---- v3.3.4 启动骨架：HTML 已加载、后端接口未就绪时的占位 ---- */
.boot-screen { position: fixed; inset: 0; z-index: 9999; background: var(--bg);
               display: flex; align-items: center; justify-content: center; }
.boot-screen[data-state="done"] { display: none; }
.boot-card { width: min(460px, 88vw); background: var(--card); border: 1px solid var(--line);
             border-radius: 14px; padding: 28px 30px; box-shadow: 0 12px 40px rgba(20,28,40,.10); }
.boot-brand { font-size: 18px; font-weight: 700; color: var(--text); }
.boot-brand span { color: var(--accent); }
.boot-title { margin-top: 18px; font-size: 16px; font-weight: 600; color: var(--text); }
.boot-detail { margin-top: 4px; font-size: 13px; color: var(--muted); }
.boot-track { height: 6px; background: #eef1f5; border-radius: 999px;
              margin: 18px 0 0; overflow: hidden; }
.boot-bar { height: 100%; width: 12%; background: var(--accent);
            border-radius: 999px; transition: width .3s ease; }
.boot-skeleton { margin-top: 18px; }
.boot-sk-line, .boot-sk-block {
  background: linear-gradient(90deg, #eef1f5 25%, #f7f9fb 50%, #eef1f5 75%);
  background-size: 200% 100%; animation: boot-shimmer 1.4s infinite linear;
  border-radius: 6px; }
.boot-sk-line { height: 12px; margin-bottom: 10px; }
.boot-sk-line.short { width: 62%; }
.boot-sk-block { height: 68px; margin-top: 14px; }
@keyframes boot-shimmer { 0% { background-position: 200% 0; }
                          100% { background-position: -200% 0; } }
.boot-err { margin-top: 16px; padding: 10px 12px; border-radius: 8px;
            background: var(--bad-bg); color: var(--bad-fg); font-size: 13px;
            white-space: pre-wrap; }
.boot-actions { margin-top: 16px; display: flex; gap: 10px; }
.boot-actions.hidden { display: none; }
.boot-screen[data-state="failed"] .boot-skeleton,
.boot-screen[data-state="failed"] .boot-track { display: none; }

/* 常驻手动窗口入口（v3.4.2）。刻意做得轻：它是个「可选动作」，
   不该和「开始判定」抢视觉权重。 */
.live-row {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; flex-wrap: wrap;
}
.live-row .live-note { font-size: 12px; color: var(--muted); }
.live-row .live-note.ok { color: var(--ok-fg); }
.live-row .live-note.warn { color: var(--warn-fg); }

/* 鲨鱼网战绩 TOP5 看板（2026-11-09）：纯展示，视觉上要与上方「载具核验」区分开 */
.stats-top { margin-top: 14px; border-left: 3px solid #6b7fa3; }
.stats-top-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.stats-top-tabs { display: flex; gap: 6px; margin-left: auto; }
.stats-tab {
  border: 1px solid #4a5263; background: #2b3039; color: #c8cfdb;
  border-radius: 999px; padding: 3px 12px; font-size: 12px; cursor: pointer;
}
.stats-tab.active { background: #3d4a63; color: #fff; border-color: #5d6d8c; }
.stats-tab.hidden { display: none; }
.stats-top { overflow-x: auto; }
.stats-top-table { margin-top: 4px; width: 100%; }
/* 列名与数值一律不折行：窄栏里「付费类型」曾被挤成竖排（2026-11-09） */
.stats-top-table th, .stats-top-table td { white-space: nowrap; }
.stats-top-table th:first-child, .stats-top-table td:first-child { white-space: normal; }
.warn-text { color: #b45309; }

/* ============================================================
   3.9.0 · 线A 三栏（输入 288 / 决策 384 / 材料自适应）
   ============================================================ */
.linea-grid {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  height: calc(100vh - 128px);
  min-height: 520px;
}
.linea-in { display: flex; flex-direction: column; min-height: 0; padding: 14px 16px; }
.linea-in h2 { margin: 0 0 6px; }
.linea-in .hint { margin: 0 0 8px; }
.linea-in textarea.resume { flex: 1; min-height: 0; resize: none; font-size: 12.5px; line-height: 1.6; }
.linea-in .row-actions { margin-top: 10px; }
.recent-mini { margin-top: 10px; border: 1px solid var(--line); border-radius: 9px;
  padding: 7px 10px; background: #fbfcfd; font-size: 12px; color: var(--muted); }
.recent-mini summary { cursor: pointer; color: #374151; font-weight: 500; }
.recent-mini[open] summary { margin-bottom: 5px; }

.linea-right { display: flex; flex-direction: column; gap: 12px; min-height: 0; }

/* ---- 空态 ---- */
.linea-empty { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow: auto; }
.empty-msg { background: #fff7ed; border: 1px solid #fdba74; color: #9a3412;
  border-radius: 10px; padding: 10px 14px; font-size: 13px; }
.empty-hero { background: #fff; border: 1px dashed var(--line); border-radius: 12px;
  padding: 22px 24px; text-align: center; }
.empty-hero h3 { margin: 0 0 6px; font-size: 16px; }
.empty-steps { display: flex; gap: 12px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.empty-step { background: #f8fafc; border: 1px solid #e6eaf1; border-radius: 10px;
  padding: 9px 14px; min-width: 150px; text-align: left; }
.empty-step b { display: block; font-size: 12.5px; margin-bottom: 2px; }
.empty-step span { font-size: 11.5px; color: var(--muted); }
.empty-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; }
.empty-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.empty-card h4 { margin: 0 0 8px; font-size: 12.5px; color: #374151; }
.rule-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.rule-table td { padding: 4px 6px; border-bottom: 1px solid #f5f7fa; vertical-align: top; }
.rule-table td:first-child { color: var(--muted); white-space: nowrap; width: 88px; }

/* ---- 判定中 ---- */
.linea-progress { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.linea-progress jgr-verify-progress { display: block; flex: 1; min-height: 0; overflow: auto; }

/* ---- 结果 ---- */
.linea-body {
  flex: 1; min-height: 0; display: grid;
  grid-template-columns: 384px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px 14px;
}
.linea-body .result-hero { grid-column: 1 / -1; grid-row: 1; border-radius: 12px;
  padding: 11px 15px; background: #fff; border: 1px solid var(--line); }
.linea-body .result-hero.is-ok { background: #f6fbf3; border-color: #cfe6c2; }
.linea-body .result-hero.is-warn { background: #fffaf0; border-color: #f0dfb8; }
.linea-body .result-hero.is-bad { background: #fdf5f5; border-color: #f0cccc; }
.linea-body .result-hero .badge { font-size: 17px; padding: 3px 14px; font-weight: 700; }
.linea-body .result-hero .action { margin: 6px 0 0; }
.hero-ops { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.linea-cols { display: contents; }
.linea-dec, .linea-mat { min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.linea-dec .col-title { margin: 0; font-size: 12px; color: #374151; }
.linea-dec .chips .chip { background: #fff; }

/* AI 合并卡 */
.ai-card { background: #faf9ff; border: 1px solid #e7e4fb; border-left: 3px solid #7f77dd;
  border-radius: 10px; padding: 10px 12px; }
.ai-card-hd { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; font-size: 12.5px; }
.ai-card #v-ai-judge, .ai-card #v-ai-notes { border: 0; background: transparent; padding: 0; margin: 0; }
.ai-card #v-ai-notes { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #e7e4fb; }

/* 材料列 + 折叠 */
.mat-hd { display: flex; align-items: center; gap: 8px; }
.mat-hd .mat-t { font-size: 12px; font-weight: 600; color: #374151; }
.mat-hd .mat-ops { margin-left: auto; display: flex; gap: 6px; }
.mat-hd .mat-ops .mini { padding: 3px 9px; font-size: 11.5px; }
details.fold { background: #fff; border: 1px solid var(--line); border-radius: 10px; }
details.fold > summary { cursor: pointer; padding: 8px 12px; font-size: 12.5px; font-weight: 600;
  color: #374151; list-style: none; display: flex; align-items: center; gap: 6px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: '▸'; color: #9aa3b2; font-size: 11px; }
details.fold[open] > summary::before { content: '▾'; }
details.fold > summary .fold-count { margin-left: auto; font-weight: 400; color: #9aa3b2; font-size: 11.5px; }
details.fold > *:not(summary) { margin-left: 12px; margin-right: 12px; }
details.fold .list-block { margin: 0 0 8px; }
details.fold .list-block .hd { font-size: 11.5px; }
details.fold .verify-box { margin-top: 6px; }

/* 窄窗退化 */
@media (max-width: 1279px) {
  .linea-grid { grid-template-columns: 300px minmax(0, 1fr); }
  .linea-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .empty-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1079px) {
  .linea-grid { grid-template-columns: 1fr; height: auto; }
  .linea-body { grid-template-columns: 1fr; grid-template-rows: auto; }
  .linea-body .result-hero { grid-column: 1; }
  .linea-dec, .linea-mat { overflow: visible; }
}

/* ============================================================
   3.9.0 · 线B 三栏（操作 316 / 核对表 560 / 结果+状态 自适应）
   ============================================================ */
.b-main {
  display: grid;
  grid-template-columns: 316px 560px minmax(0, 1fr);
  grid-template-areas: "left mid right";
  gap: 14px;
  height: calc(100vh - 128px);
  min-height: 540px;
}
.b-left { grid-area: left; display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow: auto; }
.b-mid { grid-area: mid; display: flex; min-height: 0; }
.b-right { grid-area: right; display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow: auto; }
.b-mid .b-table-card { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; padding: 12px 14px; }
.b-table-hint { margin-left: auto; }
.b-table-wrap { flex: 1; min-height: 0; overflow: auto; margin-top: 4px; }
.b-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.b-table thead th { position: sticky; top: 0; z-index: 1; background: #fff;
  text-align: left; color: var(--muted); font-weight: 500; font-size: 11.5px;
  padding: 6px 6px; border-bottom: 1px solid #eef1f5; }
.b-table td { padding: 6px 6px; border-bottom: 1px solid #f4f6f9; }
.b-table tr:hover td { background: #f8fafc; }
.b-table td.id { font-weight: 600; }
.b-table td.desc { color: var(--muted); font-size: 11px; max-width: 168px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-table td.num input { width: 66px; text-align: right; padding: 3px 6px; }
.b-table td.free.zero { color: #a32d2d; font-weight: 600; }
.b-table td.free.room { color: var(--ok-fg); }
.b-totals { display: flex; gap: 8px; margin-top: 9px; }
.b-stat { flex: 1; border: 1px solid #e6eaf1; border-radius: 9px; padding: 6px 10px; background: #f8fafc; }
.b-stat span { display: block; font-size: 11px; color: var(--muted); }
.b-stat b { font-size: 15px; }
.b-stat.bad { background: #fdf5f5; border-color: #f0cccc; }
.b-stat.bad b { color: #a32d2d; }
.b-stat.ok { background: #f6fbf3; border-color: #cfe6c2; }
.b-stat.ok b { color: var(--ok-fg); }
#b-result-card { flex: none; }
#b-state-card { flex: 1 0 auto; display: flex; flex-direction: column; min-height: 0; }
#b-state-card .count-table { overflow: visible; }
.b-diff-up { color: var(--ok-fg); }
.b-diff-dn { color: #a32d2d; }
.b-diff-eq { color: #b6bfcd; }

@media (max-width: 1079px) {
  /* 3.9.11：两列两行（整页滚动，不再半屏定高），断点从 1279 下移到 1079，
     让 1080–1279 这段（125% 缩放下物理 1350–1600）仍是三栏 */
  .b-main {
    grid-template-columns: clamp(240px, 24vw, 300px) minmax(0, 1fr);
    grid-template-areas: "left mid" "left right";
    grid-template-rows: auto auto;
    height: auto;
    min-height: 0;
  }
  .b-left, .b-right { overflow: visible; }
}
@media (max-width: 899px) {
  .b-main { grid-template-columns: 1fr; grid-template-areas: "left" "mid" "right";
            grid-template-rows: auto; height: auto; }
}

/* 3.9.0 补充：线B 表格空位三色 + 最近判定行 */
.b-table td.free.zero { color: #a32d2d; font-weight: 600; }
.b-table td.free.over { color: #a32d2d; font-weight: 600; }
.b-table td.free:not(.zero):not(.over) { color: var(--ok-fg); }
.recent-row { font-size: 12px; color: #374151; padding: 2px 0; display: flex; gap: 6px; }
.recent-row .recent-at { margin-left: auto; color: #9aa3b2; }
.linea-empty .recent-row { font-size: 12.5px; }

/* 3.9.0 修正：新版块的 display 会盖过通用 .hidden，这里显式兜底 */
.linea-empty.hidden,
.linea-progress.hidden,
.linea-body.hidden,
.linea-right.hidden,
.empty-msg.hidden,
.empty-body.hidden,
.recent-mini.hidden,
.ai-card.hidden { display: none !important; }

/* 3.9.0：线B「打开目录 ▾」常驻按钮 + 二级菜单 */
.b-dir-wrap { position: relative; margin-left: auto; display: inline-flex; }
.b-dir-wrap > .mini { padding: 3px 10px; font-size: 11.5px; }
.dir-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
  background: #fff; border: 1px solid var(--line); border-radius: 9px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .14); min-width: 156px; padding: 4px;
}
.dir-menu.hidden { display: none !important; }
.dir-menu button {
  display: block; width: 100%; text-align: left; border: 0; background: none;
  padding: 7px 11px; font-size: 12.5px; color: #374151; border-radius: 6px; cursor: pointer;
}
.dir-menu button:hover { background: #f1f5f9; }

/* 3.9.0：线B 左栏日期/时刻并排（316 宽下也要一行放下） */
.b-left .b-topbar-fields { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.b-left .b-topbar-fields .bfield { flex: 1 1 0; min-width: 0; }
.b-left .b-topbar-fields .bfield { flex-direction: column; align-items: stretch; gap: 3px; }
/* 4.1.26 修 4.1.24 布局回归：复选框独占一行，避免与日期/时刻三等分后被压到 79px 溢出卡片 */
.b-left .b-topbar-fields .bfield-now {
  flex: 1 1 100%; flex-direction: row; align-items: center; gap: 6px;
  white-space: nowrap; min-width: 0;
}
.b-left .b-topbar-fields .bfield-now input { flex: 0 0 auto; }
/* 复选框不能被下面的 input 规则撑到 104px：只留固有尺寸（实测否则可点区 104px、与文字间距过大） */
.b-left .b-topbar-fields .bfield-now input[type="checkbox"] { min-width: 0; }
.b-left .b-topbar-fields .bfield-now span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.b-left .bfield input { width: 100%; box-sizing: border-box; min-width: 104px; }

/* 3.9.0：线A 左栏按钮分组（288 宽下不折字） */
.linea-in .row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.linea-in .row-actions #btn-review { flex: 1 1 100%; }
.linea-in .row-actions #btn-sample,
.linea-in .row-actions #btn-clear { flex: 1 1 0; white-space: nowrap; }
.linea-in .row-actions button { white-space: nowrap; }

/* ============================================================
   3.9.1 · 线B 反馈修正
   ============================================================ */
/* (1) 三栏重新配比：中栏收窄，右栏加宽（生成图更大） */
.b-main {
  /* v3.9.11：流体三栏 —— 左栏随视口缩放，中栏按内容需要伸缩，右栏吃掉剩余 */
  grid-template-columns: clamp(264px, 21vw, 316px) minmax(360px, 1.25fr) minmax(320px, 1fr);
}

/* (2) 上传区：按钮与上传区等宽，提示文字在按钮下方整行 */
.recog-stack { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.recog-btn { width: 100%; white-space: nowrap; }
.recog-hint { display: block; line-height: 1.55; white-space: pre-wrap; }
.recog-hint:empty { display: none; }

/* (3) 核对表：高度随内容（不再撑满整栏），行内显示变动 */
.b-mid { align-items: flex-start; }
.b-mid .b-table-card { flex: 0 0 auto; }
.b-table th:nth-child(4), .b-table td:nth-child(4) { width: 62px; }
.b-table th:nth-child(5), .b-table td:nth-child(5) { width: 74px; }
.bm-delta { font-size: 11.5px; color: #b6bfcd; white-space: nowrap; }
.bm-delta.up { color: #1b7f3b; font-weight: 600; }
.bm-delta.dn { color: #a32d2d; font-weight: 600; }
/* 该行本期有变动：整行淡色底 + 左侧竖线，比在结果卡里列清单直观 */
.b-table tr.bm-changed td { background: #f6fbf3; }
.b-table tr.bm-changed.dn td { background: #fdf5f5; }
.b-table tr.bm-changed td:first-child { box-shadow: inset 3px 0 0 #cfe6c2; }
.b-table tr.bm-changed.dn td:first-child { box-shadow: inset 3px 0 0 #f0cccc; }
.b-table tr.bm-changed td.num input { border-color: #bcd79a; }
.b-table tr.bm-changed.dn td.num input { border-color: #e8b4b4; }
.b-diff-summary {
  margin-top: 8px; font-size: 11.5px; color: #374151;
  background: #f8fafc; border: 1px solid #e6eaf1; border-radius: 8px; padding: 6px 10px;
}
.b-diff-summary b { color: #111827; }
.b-diff-summary .up { color: #1b7f3b; font-weight: 600; }
.b-diff-summary .dn { color: #a32d2d; font-weight: 600; }
/* (4) 结果卡：不再列变动清单，改成一行摘要 */
.b-diff-line { font-size: 11.5px; color: #374151; margin: 6px 0 0; }
.b-diff-line .up { color: #1b7f3b; font-weight: 600; }
.b-diff-line .dn { color: #a32d2d; font-weight: 600; }


/* ============================================================
   3.9.2 · 线A 推荐分队模块 + 分队记录区
   ============================================================ */
.linea-left { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.linea-left .linea-in { flex: 0 0 auto; }
.linea-left .linea-in textarea.resume { flex: 0 0 auto; min-height: 170px; }

/* 分队记录区（粘贴简历正下方） */
.linea-log { flex: 1; min-height: 140px; display: flex; flex-direction: column; padding: 11px 13px; }
.linea-log h2 { margin: 0 0 8px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.sq-log-all { margin-left: auto; padding: 2px 9px; font-size: 11.5px; }
.sq-log-list { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 7px; }
.sq-log-hint { margin: 7px 0 0; }
.sq-row { border: 1px solid #e9edf3; border-radius: 9px; padding: 7px 9px; background: #fcfdfe; }
.sq-row.ok { border-left: 3px solid #7cb342; background: #fbfef9; }
.sq-row.bad { border-left: 3px solid #e08a8a; background: #fefbfb; }
.sq-row .sq-top { display: flex; align-items: center; gap: 6px; }
.sq-row .sq-nick { font-weight: 600; font-size: 12px; }
.sq-row .sq-uid { margin-left: auto; color: #8a94a6; font-size: 11px; }
.sq-row .sq-state { margin-top: 3px; font-size: 11.5px; display: flex; align-items: center; gap: 6px; }
.sq-row .sq-ok { color: #1b7f3b; font-weight: 600; }
.sq-row .sq-bad { color: #a32d2d; font-weight: 600; }
.sq-row .sq-when { margin-left: auto; color: #b6bfcd; }
.sq-empty { color: #9aa3b2; font-size: 12px; padding: 4px 2px; }

/* 推荐分队模块 */
.rec-mod { padding: 11px 13px; }
.rec-hd { margin: 0 0 9px; display: flex; align-items: center; gap: 8px; }
.rec-cards { display: flex; gap: 8px; flex-wrap: wrap; }
.rec-card { position: relative; flex: 1 1 150px; border: 1px solid var(--line); border-radius: 11px;
  padding: 9px 11px 8px; background: #fbfcfd; cursor: pointer; transition: .12s; }
.rec-card:hover { border-color: #93b4f5; background: #f5f9ff; box-shadow: 0 0 0 3px rgba(47,111,237,.08); }
.rec-card .id { font-weight: 700; font-size: 13px; }
.rec-card .desc { font-size: 11px; color: var(--muted); margin-top: 1px; }
.rec-card .free { font-size: 11px; color: var(--accent); margin-top: 2px; }
.rec-card .pick { position: absolute; right: 9px; top: 8px; font-size: 11px; color: #9aa3b2; }
.rec-card.done { border-color: #bcd79a; background: #f6fbf3; cursor: default; }
.rec-card.done .pick { color: var(--ok-fg); font-weight: 600; }
.rec-card.done::after { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 3px; background: #7cb342; border-radius: 3px; }
/* 3.9.34 CASE A：旧值 pointer-events:none 让「同一单换队」点不动 —— JS 守卫已放行，
   但 click 根本派发不到卡片上。这里只做视觉弱化，可点性交给 JS 守卫。 */
.rec-card.muted { opacity: .5; }
.rec-card.rejected { border-color: #f0cccc; background: #fdf5f5; cursor: default; }
.rec-card.rejected .pick { color: #a32d2d; font-weight: 600; }
.rec-card.rejected::after { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 3px; background: #e08a8a; border-radius: 3px; }
.rec-branch { margin: 9px 0 0; font-size: 11px; }
.rec-actions { display: flex; align-items: center; gap: 8px; margin-top: 9px;
  padding-top: 9px; border-top: 1px dashed #e6eaf1; }
.rec-actions .menu-wrap { position: relative; }
.rec-btn { border: 1px solid #d7dce5; background: #fff; border-radius: 8px; padding: 4px 11px;
  font-size: 11.5px; color: #374151; cursor: pointer; }
.rec-btn:hover { background: #f5f7fa; }
.rec-btn.danger { color: #a32d2d; border-color: #e8b4b4; }
.rec-btn.danger:hover { background: #fdf5f5; }
.rec-actions #rec-hint { margin-left: auto; }
/* 其他分队下拉（向下弹，避免遮住推荐卡） */
#rec-other-menu { left: 0; right: auto; top: calc(100% + 6px); bottom: auto; min-width: 196px; max-height: 260px; overflow: auto; }
#rec-other-menu button { display: flex; align-items: center; gap: 8px; }
#rec-other-menu .nm { font-weight: 600; }
#rec-other-menu .td { color: #9aa3b2; font-size: 11px; }
#rec-other-menu .free { margin-left: auto; color: var(--accent); font-size: 11px; }

/* 载具明细卡（决策列） */
.dec-veh { padding: 11px 13px; display: flex; flex-direction: column; gap: 7px; }
.dec-veh .col-title { margin: 0; }
.dec-veh .sub-title { margin: 0; font-size: 11.5px; color: var(--muted); }
.dec-veh #v-stats-top { margin-top: 2px; }

/* AI 参考意见再压一点 */
.linea-dec .ai-card { padding: 8px 10px; }
.linea-dec .ai-card #v-ai-notes { margin-top: 6px; padding-top: 6px; }

@media (max-width: 1279px) {
  .linea-left { gap: 8px; }
  .rec-card { flex: 1 1 130px; }
}

/* 3.9.2 线B：核对模块底部提交条 + 与上期对比 */
.b-table-card .b-submit-bar { margin-top: 10px; padding-top: 9px; border-top: 1px dashed #e6eaf1; }
.b-compare { margin-top: 8px; border: 1px solid #e6eaf1; border-radius: 9px; overflow: hidden; }
.b-compare .cmp-hd { background: #f8fafc; padding: 5px 9px; font-size: 11px; color: #8a94a6; }
.b-compare table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.b-compare th { color: #9aa3b2; font-weight: 500; text-align: left; padding: 3px 8px; }
.b-compare td { padding: 3px 8px; border-top: 1px solid #f4f6f9; }
.b-compare td.num { text-align: right; }
.b-compare .up { color: #1b7f3b; font-weight: 600; }
.b-compare .dn { color: #a32d2d; font-weight: 600; }

/* 3.9.2 收尾：左栏输入框限高（给记录区留空间）+ 载具表不折行 + 记录区最小高度 */
.linea-in textarea.resume { max-height: 190px; }
.linea-log { min-height: 190px; }
#v-vehicles th, #v-vehicles td { white-space: nowrap; }

/* ============================================================
   3.9.3 · 记录区入口悬浮提示 + 应用内弹层 + AI 卡上移
   ============================================================ */
.sq-recent { font-size: 11.5px; color: #8a94a6; font-weight: 400; }
.tip-wrap { position: relative; display: inline-flex; }
.tip-wrap .tip {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(100% + 9px);
  width: 300px; background: #111827; color: #fff; border-radius: 9px; padding: 9px 11px;
  font-size: 11.5px; line-height: 1.55; box-shadow: 0 8px 24px rgba(15,23,42,.25);
  opacity: 0; visibility: hidden; transition: .12s; z-index: 60; font-weight: 400;
}
.tip-wrap .tip::after {
  content: ''; position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: #111827;
}
.tip-wrap:hover .tip, .tip-wrap:focus-within .tip { opacity: 1; visibility: visible; }
.tip-wrap.tip-down .tip { bottom: auto; top: calc(100% + 9px); }
.tip-wrap.tip-down .tip::after { top: auto; bottom: 100%; border-top-color: transparent;
  border-bottom-color: #111827; }

/* 弹层 */
.sq-mask { position: fixed; inset: 0; background: rgba(15,23,42,.42); z-index: 100;
  display: flex; align-items: center; justify-content: center; }
.sq-mask.hidden { display: none !important; }
body.sq-modal-open { overflow: hidden; }
.sq-modal { width: min(1100px, 92vw); height: min(760px, 84vh); background: #fff; border-radius: 14px;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 60px rgba(15,23,42,.35); }
.sq-modal.max { width: 96vw; height: 92vh; }
.sq-modal-hd { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #eef1f5; }
.sq-modal-hd .t { font-size: 14px; font-weight: 600; }
.sq-modal-hd .cnt { font-size: 11.5px; color: #8a94a6; }
.sq-modal-hd .ops { margin-left: auto; display: flex; gap: 6px; }
.sq-m-btn { border: 1px solid #d7dce5; background: #fff; border-radius: 8px; padding: 4px 10px;
  font-size: 12px; cursor: pointer; color: #374151; }
.sq-m-btn:hover { background: #f5f7fa; }
.sq-modal-body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 10px 16px 0; }
.sq-modal-search { display: flex; gap: 8px; margin-bottom: 9px; align-items: center; }
.sq-modal-search input { flex: 1; border: 1px solid #d7dce5; border-radius: 8px; padding: 6px 10px;
  font-size: 12.5px; font-family: inherit; }
.sq-modal-table { flex: 1; min-height: 0; overflow: auto; border: 1px solid #e3e7ee; border-radius: 10px; }
.sq-modal-table table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.sq-modal-table th { position: sticky; top: 0; background: #fbfcfd; text-align: left; color: #8a94a6;
  font-weight: 500; font-size: 11.5px; padding: 8px 10px; border-bottom: 1px solid #eef1f5; }
.sq-modal-table td { padding: 7px 10px; border-bottom: 1px solid #f4f6f9; }
.sq-modal-table tr.ok td:first-child { box-shadow: inset 3px 0 0 #7cb342; }
.sq-modal-table tr.bad td:first-child { box-shadow: inset 3px 0 0 #e08a8a; }
.sq-modal-table .st-ok { color: #1b7f3b; font-weight: 600; }
.sq-modal-table .st-bad { color: #a32d2d; font-weight: 600; }
.sq-modal-ft { display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  border-top: 1px solid #eef1f5; font-size: 11.5px; color: #8a94a6; }
/* AI 卡上移后：横跨材料列 */
.linea-mat .ai-card { width: 100%; }

/* ============================================================
   3.9.4 · 分队记录「查看全部」右移改色 + 最近判定三态 + 弹层 scope/导出
   ============================================================ */
.sq-all-wrap { margin-left: auto; }
.sq-all-btn { border: 1px solid #cfe0ff; background: #eef4ff; color: #2f6fed;
  border-radius: 12px; padding: 4px 13px; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.sq-all-btn:hover { background: #e3edff; }
/* 最近判定（空态右区）：三态徽标 */
.au-row { border: 1px solid #e9edf3; border-radius: 9px; padding: 7px 9px; background: #fcfdfe; margin-bottom: 7px; }
.au-row.ok { border-left: 3px solid #7cb342; background: #fbfef9; }
.au-row.bad { border-left: 3px solid #e08a8a; background: #fefbfb; }
.au-row.none { border-left: 3px solid #c9ced8; background: #fcfcfd; }
.au-top { display: flex; align-items: center; gap: 6px; }
.au-nick { font-weight: 600; font-size: 12px; }
.au-uid { color: #8a94a6; font-size: 11px; }
.au-when { margin-left: auto; color: #b6bfcd; font-size: 11px; }
.au-sub { margin-top: 3px; font-size: 11.5px; color: #8a94a6; }
.au-badge { border-radius: 999px; padding: 1px 8px; font-size: 10.5px; font-weight: 600; }
.au-ok { background: #e8f5e9; color: #1b7f3b; }
.au-bad { background: #fdecec; color: #a32d2d; }
.au-none { background: #eef1f5; color: #6b7280; }
/* 弹层 scope / 导出 */
.sq-seg { display: flex; border: 1px solid #dfe3ec; border-radius: 8px; overflow: hidden; margin-right: 8px; }
.sq-seg button { border: 0; background: #fff; padding: 4px 12px; font-size: 12px; cursor: pointer; color: #4b5563; }
.sq-seg button.on { background: #eef4ff; color: #2f6fed; font-weight: 600; }
.sq-export-menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff;
  border: 1px solid #e3e7ee; border-radius: 9px; box-shadow: 0 6px 20px rgba(15,23,42,.14);
  min-width: 200px; padding: 4px; z-index: 130; }
.sq-export-menu button { display: block; width: 100%; text-align: left; border: 0; background: none;
  padding: 7px 11px; font-size: 12.5px; border-radius: 6px; cursor: pointer; }
.sq-export-menu button:hover { background: #f5f7fa; }

/* 3.9.8 · 弹层「打开导出位置」：常驻按钮，风格与「查看全部」一致 */

/* 2026-11-12 三功能：手动核对区（查看 / 重新核验），按左栏可用宽度设计 */
.live-panel { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.live-hd { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.live-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.live-acts .tiny-btn {
  min-width: 0; white-space: nowrap; text-align: center;
  overflow: hidden; text-overflow: ellipsis;
}
.live-acts .tiny-btn:disabled { opacity: .5; cursor: not-allowed; }
.live-acts .tiny-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.live-panel .live-note {
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 2026-11-12 识别审查层（线B）：左图右表，异常时强制人工 */
.review-mask { position: fixed; inset: 0; z-index: 9998; background: rgba(15, 23, 42, .45);
  display: flex; align-items: center; justify-content: center; }
.review-mask.hidden { display: none; }
.review-box { width: min(1180px, 94vw); height: min(780px, 90vh); background: var(--card);
  border-radius: 12px; border: 1px solid var(--line); display: flex; flex-direction: column;
  overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, .3); }
.review-hd { display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); }
.review-body { display: flex; flex: 1; min-height: 0; }
.review-left { flex: 1.35; min-width: 0; display: flex; flex-direction: column; gap: 6px;
  padding: 12px; border-right: 1px solid var(--line); }
.review-img-wrap { flex: 1; min-height: 0; overflow: hidden; position: relative;
  background: #f1f3f5; border-radius: 8px; cursor: grab; touch-action: none; }
.review-img-wrap img { position: absolute; left: 0; top: 0; transform-origin: 0 0;
  max-width: none; user-select: none; -webkit-user-drag: none; }
.review-img-wrap.hidden { display: none; }
.review-right { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 12px; }
.review-table-wrap { flex: 1; min-height: 0; overflow: auto; }
.review-table th, .review-table td { font-size: 12px; vertical-align: top; }
.review-table td.ctl { min-width: 120px; }
.review-table select, .review-table input[type="number"] { width: 100%; max-width: 120px; }
.review-row-ok { background: #f6ffed; }
.review-row-warn { background: #fff7e6; }
.review-row-bad { background: #fff1f0; }
.review-ft { display: flex; align-items: center; gap: 8px; padding-top: 10px;
  border-top: 1px solid var(--line); margin-top: 8px; flex-wrap: wrap; }
.review-band { position: absolute; left: 0; pointer-events: none;
  border-top: 2px solid #2563eb; border-bottom: 2px solid #2563eb;
  background: rgba(37, 99, 235, .12); border-radius: 3px; }
.review-field { display: inline-flex; align-items: center; gap: 4px; }
.review-field span { font-size: 11px; color: var(--muted); }
.review-field input { width: 110px; }
.review-chip { display: inline-block; padding: 1px 6px; border-radius: 6px;
  border: 1px solid var(--line); font-size: 11px; }

/* 2026-11-12 云名单：特批历史只读区 */
.cloud-history-title { font-weight: 500; margin: 12px 0 6px; }
.cloud-history-pre { max-height: 220px; overflow: auto; background: #f7f8fa; border: 1px solid var(--line);
  border-radius: 8px; padding: 10px; font-size: 12px; white-space: pre-wrap; }

/* 2026-11-12 云端入队审核记录 */
.cloud-audit-box { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.cloud-audit-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.cloud-audit-hd b { font-size: 14px; }

/* 2026-11-12 云名单页重做：两个独立卡片模块，和线A/B 一致 */
.cloud-page { display: flex; flex-direction: column; gap: 12px; max-width: 1280px; margin: 0 auto; }

.cloud-switch { display: inline-flex; align-self: flex-start; gap: 4px; padding: 4px;
  background: #eef1f5; border: 1px solid var(--line); border-radius: 10px; }
.cloud-switch-btn { appearance: none; border: 0; background: transparent; color: var(--muted);
  padding: 7px 14px; border-radius: 7px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.cloud-switch-btn:hover { color: var(--text); }
.cloud-switch-btn.active { background: #fff; color: var(--text); font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.cloud-switch-count { display: inline-block; min-width: 18px; margin-left: 4px; padding: 0 5px;
  border-radius: 9px; background: #e3e8ef; color: var(--muted); font-size: 11px; font-weight: 400; }
.cloud-switch-btn.active .cloud-switch-count { background: #e8f0fe; color: var(--accent); }
.cloud-panel.hidden { display: none; }

/* 2026-11-12 云端记录：复用线A 的分队记录 / 最近判定模块 */
.cloud-record-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  max-width: 1280px; width: 100%; margin: 0 auto; flex-wrap: wrap; }
.cloud-record-hd h2 { margin: 0; font-size: 16px; }
.cloud-record-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 1280px;
  width: 100%; margin: 0 auto; }
.cloud-record-card { min-height: 300px; }
.cloud-record-card h2 { margin: 0 0 10px; font-size: 15px; }
.cloud-record-card .sq-log-list, .cloud-record-card .au-list { max-height: 420px; }
.cloud-full-box { max-width: 1280px; width: 100%; margin: 0 auto; }
.cloud-full-box.hidden { display: none; }
@media (max-width: 900px) {
  .cloud-record-grid { grid-template-columns: 1fr; }
  .cloud-record-hd { flex-direction: column; }
}


.cloud-card { padding: 16px 18px 14px; }
.cloud-card-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cloud-card-title { min-width: 0; }
.cloud-card-title h2 { margin: 0; font-size: 16px; line-height: 1.35; }
.cloud-sub { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.cloud-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cloud-tools-sub { margin: 10px 0 0; }
.cloud-search { width: 240px; max-width: 100%; height: 32px; padding: 0 10px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; color: var(--text); font-size: 13px; }
.cloud-search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.cloud-table-wrap { margin-top: 10px; max-height: min(56vh, 520px); overflow: auto;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.cloud-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cloud-table th { position: sticky; top: 0; z-index: 1; background: #f7f8fa; color: var(--muted);
  font-weight: 500; text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cloud-table td { padding: 8px 10px; border-bottom: 1px solid #eef0f4; vertical-align: middle; }
.cloud-table tr:last-child td { border-bottom: 0; }
.cloud-table tbody tr:hover { background: #fafbfc; }
.cloud-table code { font-size: 12px; }
.cloud-reason { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cloud-actions { white-space: nowrap; }
.cloud-actions .tiny-btn { margin-right: 4px; }
.cloud-msg { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: #f7f8fa;
  border: 1px solid var(--line); font-size: 12px; }
.cloud-msg.bad { background: #fff5f5; border-color: #f3c7c7; color: #a12a2a; }
.cloud-tip { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.cloud-audit-box { display: none; }
@media (max-width: 900px) {
  .cloud-card-hd { flex-direction: column; }
  .cloud-tools { width: 100%; }
  .cloud-search { flex: 1; min-width: 160px; }
}



/* 2026-11-12 S4 关于版本 popover */
.ver-pop-mask { position: fixed; inset: 0; z-index: 9997; background: rgba(15, 23, 42, .18);
  display: flex; align-items: flex-start; justify-content: flex-end; padding: 54px 22px 0; }
.ver-pop-mask.hidden { display: none; }
.ver-pop { width: min(360px, 92vw); background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 16px 40px rgba(15, 23, 42, .22); overflow: hidden; }
.ver-pop-hd { display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  border-bottom: 1px solid var(--line); }
.ver-pop-body { padding: 12px 14px 14px; }
.ver-row { display: flex; gap: 12px; padding: 7px 0; font-size: 13px; line-height: 1.5; }
.ver-k { width: 70px; flex: none; color: var(--muted); }
.ver-check-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ver-diag { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.ver-diag summary { cursor: pointer; color: var(--muted); font-size: 12px; }
#ver-pop-diag { margin-top: 6px; white-space: pre-wrap; word-break: break-all; }
#ver-pop-about { white-space: pre-line; }
#ver-pop-current { word-break: break-all; }

/* ===== 2026-11-15 S4 手机 390px 适配 =====
   口径见 docs/4.1.34_S4手机390px适配_改造清单_2026-11-15.md。
   只新增 ≤480px 断点与弹层锁滚动，>480px 桌面渲染零影响；回退=删本节两个块。 */

/* 桌面端修复（S4 核实实测发现，清单漏收）：.sq-all-btn 无 nowrap，
   1180px 宽度下「导入/导出/查看全部」被压成 47px 后竖排成两行 */
.sq-all-btn { white-space: nowrap; }

/* 弹层打开时锁背景滚动（sq-modal 已有 body.sq-modal-open，此处推广到其余弹层） */
body.jgr-lock { overflow: hidden; }

@media (max-width: 480px) {
  /* 3.1 顶栏：三 tab 等宽一行，右侧按钮保持可达 */
  .topbar { padding: 10px 12px; gap: 8px; }
  .tabs { width: 100%; }
  .tab { flex: 1; text-align: center; min-height: 40px; }
  .topbar-right { margin-left: auto; }
  .topbar-right .tiny-btn { min-height: 40px; padding: 8px 14px; }

  /* 3.2 载具核验表：允许折行，不再横向撑破卡片/整页 */
  #dec-veh-card { overflow-x: auto; }
  #v-vehicles th, #v-vehicles td { white-space: normal; }

  /* 3.3 手动核对卡按钮行换行 */
  .manual-box .manual-row { flex-wrap: wrap; }

  /* 3.4 识别审查弹层纵向化：上图下表（dvh 不支持时退化为 vh）
     min-width:0 必须给到：缺了它 flex 项按 min-content 拒缩，7 列审计表被顶出视口右缘 */
  .review-box { width: 96vw; height: 92vh; height: 92dvh; }
  .review-body { flex-direction: column; min-width: 0; }
  .review-left { flex: none; height: 38vh; height: 38dvh; border-right: 0; border-bottom: 1px solid var(--line); }
  .review-right { flex: 1; min-height: 0; min-width: 0; }
  .review-ft { position: sticky; bottom: 0; background: var(--card); }
  .review-zoom-bar { position: absolute; right: 10px; bottom: 34px; display: flex; gap: 6px; z-index: 2; }

  /* 3.5/3.11 网格轨道允许收缩：核对表等 min-content 大的容器会把 1fr 轨道撑破整页。
     .b-mid 旧断点(779-780)的 align-items:flex-start + flex:0 0 auto 会让卡片按
     max-content 取宽（实测 513px 溢出），480px 内必须改回拉伸，表格交给 wrap 滚动 */
  .b-main, .linea-grid, .cloud-record-grid { grid-template-columns: minmax(0, 1fr); }
  .b-mid { align-items: stretch; }
  .b-mid .b-table-card { flex: 1 1 auto; max-width: 100%; }
  .b-table-wrap { min-width: 0; max-width: 100%; }

  /* 3.5 全部记录弹层：头/底栏换行 */
  .sq-modal { width: 96vw; height: 92vh; height: 92dvh; }
  .sq-modal-hd { flex-wrap: wrap; row-gap: 6px; }
  .sq-modal-ft { flex-wrap: wrap; }
  .sq-seg { margin-right: 0; }

  /* 3.6 云名单切换条：三键仍一行，缩 padding，放不下则换行 */
  .cloud-switch { align-self: stretch; flex-wrap: wrap; }
  .cloud-switch-btn { flex: 1 1 auto; padding: 7px 8px; font-size: 12px; min-height: 40px; }

  /* 3.7 input 字号 16px：防 iOS Safari 聚焦强制放大 */
  input, select, textarea,
  .auth-field input, .s2-field input, .s2-input, .field input { font-size: 16px; }

  /* 3.8 触控目标放大到 40px（44px 会让顶栏变四行，40px 是现实取舍） */
  .tab, .tiny-btn, .mini, .sq-all-btn, .rec-btn, .sq-m-btn, .cloud-switch-btn,
  #btn-review { min-height: 40px; }

  /* 3.8+ L5/溢出主因修复（S4 核实实测）：.tip 固定 300px 宽 + absolute 居中定位，
     触发钮靠边时气泡出视口，是 390px 整页 scrollWidth=402 的第一贡献者。
     手机端改为固定顶部横幅：fixed 元素不参与文档滚动宽度（V2 门禁直接过），
     且触屏上「点按钮 → focus-within」即可显示，不依赖 hover。 */
  .tip-wrap .tip {
    position: fixed; left: 12px; right: 12px; top: 12px; bottom: auto;
    width: auto; max-width: none; transform: none; z-index: 9999;
  }
  .tip-wrap .tip::after { display: none; }

  /* 3.9 AI 设置 dialog：按钮行换行，提示语占整行 */
  .ai-dialog { width: 94vw; }
  .ai-form .row-actions { flex-wrap: wrap; }
  .ai-form .row-actions .muted { flex-basis: 100%; }

  /* 3.11 线A 其他：判定结果按钮行换行；下拉菜单左对齐防出屏 */
  .stats-top { padding-bottom: 4px; }
  .rec-actions { flex-wrap: wrap; }
  #rec-other-menu { left: 0; right: auto; }
}


