/* Hallmark · checked: 2026-10-31 · genre: editorial (inferred) · shape: app screen
 * floor: 0 FAIL · fixed: 7a 10a 19 29 34 39a 40 48 50 54 63 67 F6 · structural: printed only (24b spacing scale kept; 44/58/77 n/a app scope)
 * built: the project · redesign: polish · v2.0.0 */
/* Hallmark · waive 38ii · --font-display = Newsreader italic, true 400/600 italic files shipped, on every masthead head · the italic Newsreader masthead is the newsroom-kit brand face */
/* Hallmark · dismissed 41 · --accent-ink sits only on the accent fill (btn-primary, seal, dz-seal), never as ink on --bg */
/* Hallmark · waive 39b · hit target 157px, far past 44px, the label sits inside at 14px · the csvclean dropzone is the 拖入 target itself: one drop surface per page, not a stacked control row */
/* Hallmark · dismissed 56 · topbar and cmdbar never share a page: tool pages render the topbar, the hub renders the cmdbar */

/* csvclean — styles.css
   设计系统部分由 tools/sync-kit.mjs 从 kit/kit.css 注入（@kit 标记之间），
   本文件下方是 csvclean 专属样式。 */

/* @kit:start */
/* ════════════════════════════════════════════════════════════════
   newsroom-kit · kit.css — 统一设计系统「案头」
   纸墨双主题 · 朱砂点缀 · 学术仪器质感
   本文件是唯一真源；用 `node tools/sync-kit.mjs` 同步到各页面。
   ════════════════════════════════════════════════════════════════ */

/* ── 主题令牌 ─────────────────────────────────────────────── */
:root {
  --bg: #171410;
  --bg-elev: #1e1a15;
  --bg-soft: #27221b;
  --bg-input: #14110d;
  --border: #3d372c;
  --border-soft: #2d2820;
  --border-input: #746a56;
  --fg: #ece6d8;
  --fg-soft: #b0a794;
  --fg-dim: #948b77;
  --accent: #e0785a;
  --accent-strong: #ea9074;
  --accent-ink: #1f130c;
  --accent-wash: rgba(224, 120, 90, 0.11);
  --accent-glow: rgba(224, 120, 90, 0.30);
  --good: #6cb385;
  --good-wash: rgba(108, 179, 133, 0.12);
  --warn: #cfa14e;
  --warn-wash: rgba(207, 161, 78, 0.13);
  --bad: #e0785a;
  --bad-wash: rgba(224, 120, 90, 0.12);
  --info: #8fb0d6;
  --info-wash: rgba(143, 176, 214, 0.12);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-lift: 0 8px 28px rgba(0, 0, 0, 0.38);
  --radius: 4px;
  --radius-sm: 2px;
  --paper-print: #fcfaf3;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC", "STSong", "Noto Serif CJK SC", SimSun, serif;
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC", "STSong", "Noto Serif CJK SC", SimSun, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f6f4ee;
  --bg-elev: #fffdf8;
  --bg-soft: #edebe1;
  --bg-input: #fbfaf4;
  --border: #d7d2c3;
  --border-soft: #e5e1d4;
  --border-input: #928a72;
  --fg: #26221a;
  --fg-soft: #5f5849;
  --fg-dim: #6f6753;
  --accent: #b23a29;
  --accent-strong: #93301f;
  --accent-ink: #fdf9f0;
  --accent-wash: rgba(178, 58, 41, 0.08);
  --accent-glow: rgba(178, 58, 41, 0.22);
  --good: #2f7d4f;
  --good-wash: rgba(47, 125, 79, 0.10);
  --warn: #96690f;
  --warn-wash: rgba(150, 105, 15, 0.12);
  --bad: #b23a29;
  --bad-wash: rgba(178, 58, 41, 0.09);
  --info: #3d5a80;
  --info-wash: rgba(61, 90, 128, 0.10);
  --shadow: 0 1px 1px rgba(60, 50, 30, 0.05);
  --shadow-lift: 0 10px 28px rgba(40, 30, 16, 0.10);
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #f6f4ee;
    --bg-elev: #fffdf8;
    --bg-soft: #edebe1;
    --bg-input: #fbfaf4;
    --border: #d7d2c3;
    --border-soft: #e5e1d4;
    --border-input: #928a72;
    --fg: #26221a;
    --fg-soft: #5f5849;
    --fg-dim: #6f6753;
    --accent: #b23a29;
    --accent-strong: #93301f;
    --accent-ink: #fdf9f0;
    --accent-wash: rgba(178, 58, 41, 0.08);
    --accent-glow: rgba(178, 58, 41, 0.22);
    --good: #2f7d4f;
    --good-wash: rgba(47, 125, 79, 0.10);
    --warn: #96690f;
    --warn-wash: rgba(150, 105, 15, 0.12);
    --bad: #b23a29;
    --bad-wash: rgba(178, 58, 41, 0.09);
    --info: #3d5a80;
    --info-wash: rgba(61, 90, 128, 0.10);
    --shadow: 0 1px 1px rgba(60, 50, 30, 0.05);
    --shadow-lift: 0 10px 28px rgba(40, 30, 16, 0.10);
    color-scheme: light;
  }
}

/* ── 字体（两条路径：工具子目录优先，入口页回退）─────────── */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/newsreader-400.woff2") format("woff2"),
       url("assets/fonts/newsreader-400.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/newsreader-400-italic.woff2") format("woff2"),
       url("assets/fonts/newsreader-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/newsreader-600.woff2") format("woff2"),
       url("assets/fonts/newsreader-600.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/newsreader-600-italic.woff2") format("woff2"),
       url("assets/fonts/newsreader-600-italic.woff2") format("woff2");
}

/* ── 基础 ─────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
/* hidden 属性全局守护：类选择器的 display 会覆盖 UA 的 [hidden] 默认样式 */
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.15  0 0 0 0 0.12  0 0 0 0 0.08  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
:root[data-theme="light"] body::before,
:root:not([data-theme]) body::before { opacity: 0.035; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) body::before { opacity: 0.045; }
}
::selection { background: var(--accent-glow); color: var(--fg); }
.page { display: flex; flex-direction: column; min-height: 100vh; position: relative; z-index: 1; }

/* 统计学符号：衬线斜体（APA 惯例）*/
.st { font-family: var(--serif); font-style: italic; }
.st-up { font-family: var(--serif); font-style: normal; }
.num { font-variant-numeric: tabular-nums; }

/* 小节眉（期刊页眉式小标签）*/
.eyebrow {
  font-size: 12px;
  color: var(--fg-dim);
  font-weight: 600;
}

/* ── 顶栏 ─────────────────────────────────────────────────── */
/* 吸顶定位（position/top/z-index）由各页面自己的样式声明：
   工具页 .topbar 吸顶，入口页用 .cmdbar，互不并存（Hallmark 56）。*/
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 0 22px; height: 50px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.back-link {
  display: inline-flex; align-items: center; gap: 3px;
  color: var(--fg-dim); text-decoration: none; font-size: 13px;
  transition: color 0.12s;
  padding: 4px 6px; margin-left: -6px; border-radius: 5px;
}
.back-link:hover { color: var(--accent); }
.back-link svg { flex-shrink: 0; }
.seal {
  width: 20px; height: 20px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 2px;
  font-family: var(--serif);
  font-size: 12px; font-weight: 700; line-height: 1;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-ink) 18%, transparent);
  user-select: none;
}
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: -0.02em; font-style: italic; font-synthesis: none; }
.tag {
  font-size: 12px; color: var(--fg-dim); white-space: nowrap;
  padding-left: 10px; border-left: 1px solid var(--border-soft);
  overflow: hidden; text-overflow: ellipsis;
}
.topbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  font-size: 11px; color: var(--fg-dim);
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.chip svg { flex-shrink: 0; }

.theme-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  min-height: 32px;
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  background: var(--bg-soft); color: var(--fg-soft);
  font-size: 12px; font-family: var(--sans); cursor: pointer;
  transition: color 0.12s, border-color 0.12s;
}
.theme-toggle:hover { color: var(--fg); border-color: var(--border); }
.theme-toggle svg { display: none; }
:root[data-theme="auto"] .theme-toggle .ico-auto,
:root[data-theme="light"] .theme-toggle .ico-sun,
:root[data-theme="dark"] .theme-toggle .ico-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle .ico-auto { display: block; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .ico-auto { display: block; }
}

/* ── 主布局 ───────────────────────────────────────────────── */
.main {
  flex: 1;
  width: 100%; margin: 0 auto;
  padding: 30px 24px 76px;
}

/* 页头说明 */
.intro { margin-bottom: 22px; }
.page-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 24px; font-weight: 600;
  letter-spacing: -0.01em; line-height: 1.25;
}
.page-desc {
  margin: 0;
  font-size: 13.5px; color: var(--fg-soft); line-height: 1.7;
  max-width: 62ch;
}
.page-desc strong { color: var(--fg); font-weight: 600; }

/* ── 卡片 ─────────────────────────────────────────────────── */
.panel {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel-pad { padding: 20px 22px; }
.panel-title {
  margin: 0 0 14px;
  font-size: 12px; font-weight: 600;
  color: var(--fg-dim);
  display: flex; align-items: center; gap: 8px;
}
.panel-title::after {
  content: ""; flex: 1;
  border-top: 1px dotted var(--border);
}

/* ── 按钮 ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 18px;
  min-height: 32px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 13px; font-family: var(--sans); font-weight: 600;
  line-height: 1.4; cursor: pointer; text-decoration: none;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, color 0.12s, transform 0.08s;
  -webkit-user-select: none; user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-secondary {
  background: var(--bg-elev); color: var(--fg-soft);
  border-color: var(--border);
}
.btn-secondary:hover { color: var(--fg); border-color: var(--fg-dim); }
.btn-ghost {
  background: transparent; color: var(--fg-soft); border-color: transparent;
}
.btn-ghost:hover { color: var(--accent); background: var(--accent-wash); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn svg { flex-shrink: 0; }

/* ── 表单 ─────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label {
  font-size: 12px; color: var(--fg-soft); font-weight: 600;
}
.field input, .field select, .field textarea,
.input {
  padding: 8px 11px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--fg);
  font-size: 14px; font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: box-shadow 0.12s;
  width: 100%;
}
.field textarea { font-size: 13px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder, .input::placeholder {
  color: var(--fg-dim); font-family: var(--sans);
}
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
  outline-color: var(--accent);
}
.field .hint { font-size: 11px; color: var(--fg-dim); line-height: 1.5; }
select.input, .field select { font-family: var(--sans); }

/* ── 分段控件 / 标签页 ────────────────────────────────────── */
.segmented {
  display: inline-flex; padding: 3px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft); border-radius: 9px;
}
.seg {
  padding: 6px 16px; border: none; background: transparent;
  color: var(--fg-soft); font-size: 13px; font-family: var(--sans); font-weight: 500;
  border-radius: 6px; cursor: pointer; white-space: nowrap;
  transition: color 0.12s, background 0.12s, box-shadow 0.12s;
}
.seg:hover { color: var(--fg); }
.seg.active {
  background: var(--bg-elev); color: var(--fg); font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow);
}

.tabs {
  display: flex; gap: 2px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border-soft);
}
.tab {
  padding: 8px 14px; margin-bottom: -1px;
  border: none; background: transparent;
  border-bottom: 2px solid transparent;
  color: var(--fg-soft); font-size: 13.5px; font-family: var(--sans);
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s;
}
.tab:hover { color: var(--fg); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

/* ── 徽章 ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 8px; border-radius: var(--radius-sm);
  font-size: 11px; font-weight: 600; line-height: 1.7;
}
.badge-live { color: var(--good); background: var(--good-wash); }
.badge-wip { color: var(--warn); background: var(--warn-wash); }
.badge-planned { color: var(--fg-dim); background: var(--bg-soft); }
.badge-accent { color: var(--accent); background: var(--accent-wash); }

/* ── 状态栏（页脚信息并入）───────────────────────────────── */
.statusbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 5px 22px;
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
  font-size: 12px; color: var(--fg-dim);
}
.statusbar-left, .statusbar-right {
  display: inline-flex; align-items: center; gap: 8px;
  min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.statusbar a { color: var(--fg-dim); text-decoration: none; }
.statusbar a:hover { color: var(--accent); }
.statusbar .sep { width: 1px; height: 11px; background: var(--border); }
.status-dot {
  display: inline-block; flex-shrink: 0;
  width: 7px; height: 7px; border-radius: 50%;
}
.status-dot.ready { background: var(--fg-dim); }
.status-dot.ok { background: var(--good); }
.status-dot.error { background: var(--bad); }
.status-dot.busy { background: var(--warn); animation: kit-pulse 1s infinite; }
@keyframes kit-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ── 复制行（结果 + 复制按钮，不再重叠）─────────────────── */
.copyline {
  display: flex; align-items: stretch; gap: 0;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.copyline-text {
  flex: 1; min-width: 0;
  padding: 9px 13px;
  font-family: var(--serif);
  font-size: 14px; line-height: 1.6;
  color: var(--fg);
  word-break: break-word;
}
.copyline .copy-btn {
  flex-shrink: 0; align-self: center;
  margin: 0 6px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-elev);
  color: var(--fg-dim);
  font-size: 12px; font-family: var(--sans);
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s;
}
.copyline .copy-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ── 表格（点线引线，学术账目式）────────────────────────── */
.kit-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.kit-table th {
  text-align: left; font-weight: 600;
  font-size: 11.5px;
  color: var(--fg-dim);
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
}
.kit-table td {
  padding: 7px 10px;
  border-bottom: 1px dotted var(--border-soft);
  vertical-align: top;
}
.kit-table tr:last-child td { border-bottom: none; }
.kit-table-wrap { overflow-x: auto; }

kbd {
  font-family: var(--mono); font-size: 11px;
  padding: 1px 5px; border-radius: 4px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  background: var(--bg-soft); color: var(--fg-soft);
}

/* ── API 结果页（LLM 接口）───────────────────────────────── */
.api-result {
  max-width: 720px; margin: 40px auto;
  padding: 22px 24px;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 13px; line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--fg);
}

/* ── 动效与可访问性 ───────────────────────────────────────── */
@keyframes kit-rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.rise { animation: kit-rise 0.22s ease-out both; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

@media print {
  .topbar, .statusbar, .btn, .copy-btn { display: none !important; }
  body { background: var(--paper-print); }
}

/* ── 响应式 ───────────────────────────────────────────────── */
@media (max-width: 680px) {
  .main { padding: 22px 16px 84px; }
  .topbar { padding: 0 14px; }
  .statusbar { padding: 5px 14px; }
  .tag { display: none; }
  .chip .chip-label { display: none; }
  .page-title { font-size: 20px; }
}

/* ── 滚动条 ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 5px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--fg-dim); }
/* @kit:end */

/* 工具页专属：顶栏吸顶（入口页不渲染 .topbar）*/
.topbar { position: sticky; top: 0; z-index: 20; }

/* ═══════════════ csvclean 专属 ═══════════════ */

.main { max-width: 980px; }

/* 拖放区（复用 scipdf 风格）*/
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  padding: 30px 24px;
  margin-bottom: 14px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--accent); background: var(--accent-wash); }
.dropzone.dragover { border-color: var(--accent); border-style: solid; box-shadow: 0 0 0 4px var(--accent-wash); }
.dz-seal {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 8px;
  font-family: var(--serif); font-size: 20px; font-weight: 700;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent-ink) 20%, transparent);
  margin-bottom: 4px;
}
.dz-text { margin: 0; font-size: 14px; }
.dz-link { color: var(--accent); font-weight: 600; }
.dz-hint { margin: 0; font-size: 12px; color: var(--fg-dim); }

.paste-area {
  width: 100%;
  min-height: 110px;
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 12.5px; line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color 0.12s;
}
.paste-area:focus { outline: 2px solid var(--accent); outline-offset: -2px; }

/* 设置 */
.settings { margin-bottom: 14px; }
.settings-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  display: inline-flex; align-items: center; cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-input);
  transition: border-color 0.12s, background 0.12s;
  user-select: none;
}
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { padding: 4px 12px; font-size: 12.5px; color: var(--fg-dim); }
.pill:hover { border-color: var(--fg-dim); }
.pill:has(input:checked) { border-color: var(--accent); background: var(--accent-wash); }
.pill:has(input:checked) span { color: var(--accent); font-weight: 600; }

/* 报告 */
.report, .preview-panel { margin-bottom: 14px; }
.report .pane-meta { font-weight: 400; text-transform: none; letter-spacing: 0; margin-left: auto; }
.report-facts {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  margin-bottom: 14px;
  font-size: 13px;
}
.fact { display: inline-flex; gap: 6px; }
.fact .k { color: var(--fg-dim); }
.fact .v { font-family: var(--mono); color: var(--fg); }

.sub-title {
  margin: 16px 0 8px;
  font-size: 12px; font-weight: 600;
  color: var(--fg-dim);
}

.issue-list { margin: 0; padding: 0; list-style: none; }
.issue-list li {
  padding: 6px 0;
  font-size: 13px; color: var(--fg-soft); line-height: 1.6;
  border-bottom: 1px dotted var(--border-soft);
}
.issue-list li:last-child { border-bottom: none; }
.issue-list .issue-none { color: var(--good); }
.issue-list .issue-mark { color: var(--warn); margin-right: 6px; }

.type-badge {
  display: inline-block;
  padding: 1px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
}
.type-number { color: var(--info); background: var(--info-wash); }
.type-date   { color: var(--good); background: var(--good-wash); }
.type-text   { color: var(--fg-dim); background: var(--bg-soft); }
.type-empty  { color: var(--warn); background: var(--warn-wash); }

/* 动作与预览 */
.action-list { margin: 0 0 12px; padding: 0; list-style: none; }
.action-list li {
  font-size: 13px; color: var(--good);
  padding: 3px 0;
}
.action-list li::before { content: "✓ "; }
.action-none { color: var(--fg-dim) !important; }
.action-none::before { content: "" !important; }

.preview-actions { display: flex; gap: 8px; margin-bottom: 12px; }
.preview-table { font-family: var(--mono); font-size: 12px; }
.preview-table td { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.footnote { margin: 10px 0 0; font-size: 12px; color: var(--fg-dim); }

.error-box { border-color: var(--bad); }
.error-box p { margin: 0; color: var(--bad); font-size: 13.5px; line-height: 1.6; }

@media (max-width: 680px) {
  .settings-row { grid-template-columns: 1fr; }
}
