/* 光点 AI 知识中枢 · 管理中台（2026-11-09 重做）
   浅色为默认，深色跟系统或右上角切换（html[data-theme]）。图表配色按数据可视化规范：分类色按固定顺序，校验过色盲区分度；
   状态色（正常／注意／严重／故障）只表示状态，带图标和文字，不单靠颜色。不加载任何外部资源。 */
:root {
  color-scheme: light;
  --bg: #f5f6f8; --panel: #ffffff; --panel-2: #fafbfc; --hover: #f2f4f7; --press: #e9ecf1;
  --line: #e6e8ec; --line-2: #d8dbe2; --text: #111318; --text-2: #4a5160; --muted: #8a919e;
  --accent: #4f46e5; --accent-2: #4338ca; --accent-soft: #eef0ff; --accent-line: #c9cbfb; --on-accent: #ffffff;
  --good: #0ca30c; --good-text: #067a06; --good-soft: #e8f6e8;
  --warn: #fab219; --warn-text: #865600; --warn-soft: #fff4dc;
  --serious: #ec835a; --serious-text: #9c4317; --serious-soft: #fdeee7;
  --bad: #d03b3b; --bad-text: #b02424; --bad-soft: #fdecec;
  --c1: #2a78d6; --c2: #eb6834; --c3: #1baf7a; --c4: #eda100; --c5: #e87ba4; --c6: #008300; --c7: #6250d6; --c8: #e34948; --c-other: #b8bcc6;
  --grid: #eceef1; --axis: #c9ccd3; --chart-ink: #4a5160;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .14), 0 2px 6px rgba(16, 24, 40, .08);
  --r: 10px; --r-sm: 7px; --r-lg: 14px;
  --font: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --side: 236px;
  --tint: 14%; --lift: 0%;
}
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --bg: #0e0f12; --panel: #16171b; --panel-2: #1a1b20; --hover: #1f2127; --press: #262830;
    --line: #272930; --line-2: #33363e; --text: #eceef3; --text-2: #b4b9c4; --muted: #868c98;
    --accent: #8b8dff; --accent-2: #a3a5ff; --accent-soft: rgba(139, 141, 255, .13); --accent-line: rgba(139, 141, 255, .35); --on-accent: #0e0f12;
    --good-text: #3ccc3c; --good-soft: rgba(12, 163, 12, .14); --warn-text: #f6c04f; --warn-soft: rgba(250, 178, 25, .13);
    --serious-text: #f19c7a; --serious-soft: rgba(236, 131, 90, .14); --bad-text: #f07070; --bad-soft: rgba(208, 59, 59, .16);
    --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500; --c5: #d55181; --c6: #008300; --c7: #9085e9; --c8: #e66767; --c-other: #5a5f6b;
    --grid: #24262c; --axis: #3a3d45; --chart-ink: #b4b9c4;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 16px 40px rgba(0, 0, 0, .55);
    --tint: 22%; --lift: 30%;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0f12; --panel: #16171b; --panel-2: #1a1b20; --hover: #1f2127; --press: #262830;
  --line: #272930; --line-2: #33363e; --text: #eceef3; --text-2: #b4b9c4; --muted: #868c98;
  --accent: #8b8dff; --accent-2: #a3a5ff; --accent-soft: rgba(139, 141, 255, .13); --accent-line: rgba(139, 141, 255, .35); --on-accent: #0e0f12;
  --good-text: #3ccc3c; --good-soft: rgba(12, 163, 12, .14); --warn-text: #f6c04f; --warn-soft: rgba(250, 178, 25, .13);
  --serious-text: #f19c7a; --serious-soft: rgba(236, 131, 90, .14); --bad-text: #f07070; --bad-soft: rgba(208, 59, 59, .16);
  --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500; --c5: #d55181; --c6: #008300; --c7: #9085e9; --c8: #e66767; --c-other: #5a5f6b;
  --grid: #24262c; --axis: #3a3d45; --chart-ink: #b4b9c4;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 16px 40px rgba(0, 0, 0, .55);
  --tint: 22%; --lift: 30%;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: .01em; }
h1 { font-size: 22px; line-height: 1.35; }
h2 { font-size: 15px; }
h3 { font-size: 14px; }
p { margin: 0 0 8px; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- 框架：侧栏＋顶栏＋内容 ---------- */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; overflow-y: auto;
  border-right: 1px solid var(--line); background: var(--panel); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6 60%, #a855f7); box-shadow: 0 2px 8px rgba(99, 102, 241, .35); }
.brand-mark .i { width: 18px; height: 18px; stroke-width: 2.2; }
.brand b { display: block; font-size: 14px; line-height: 1.25; }
.brand span { display: block; color: var(--muted); font-size: 12px; }
.nav-group { margin: 12px 8px 4px; color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; }
.nav a { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px; border-radius: 8px; color: var(--text-2); font-weight: 500; }
.nav a:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.nav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav a .count { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--bad); color: #fff; font-size: 11.5px;
  font-weight: 700; line-height: 18px; text-align: center; }
.nav a .count.soft { background: var(--hover); color: var(--text-2); }
.side-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.who { display: flex; align-items: center; gap: 10px; padding: 8px; }
.who b { display: block; font-size: 13px; }
.who span { display: block; color: var(--muted); font-size: 12px; }
.who form { margin-left: auto; }
.avatar { display: inline-grid; width: 32px; height: 32px; flex: none; place-items: center; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 650;
  background: var(--av, #6366f1); }
.avatar.lg { width: 52px; height: 52px; font-size: 19px; }
.avatar.admin { background: linear-gradient(135deg, #6366f1, #8b5cf6); box-shadow: 0 4px 14px rgba(99, 102, 241, .35); }
.avatar.admin .i { width: 55%; height: 55%; color: #fff; stroke-width: 2; }
.avatar.sm { width: 26px; height: 26px; font-size: 11.5px; }
.main { min-width: 0; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 28px;
  border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(10px); }
.crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); font-size: 13px; }
.crumbs a { color: var(--muted); }
.crumbs b { overflow: hidden; color: var(--text); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.top-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.search { position: relative; }
.search input, .search input[type=search] { width: 240px; height: 34px; padding: 0 12px 0 34px; border: 1px solid var(--line-2); border-radius: 9px;
  background: var(--panel); color: var(--text); font: inherit; }
.search .i { position: absolute; z-index: 1; top: 9px; left: 11px; color: var(--muted); pointer-events: none; }
.icon-btn { display: inline-grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line-2); border-radius: 9px; background: var(--panel);
  color: var(--text-2); cursor: pointer; position: relative; }
.icon-btn:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.icon-btn .dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border: 2px solid var(--panel); border-radius: 50%; background: var(--bad); }
.content { max-width: 1480px; margin: 0 auto; padding: 24px 28px 64px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; margin-bottom: 20px; }
.page-head .sub { margin-top: 4px; color: var(--muted); font-size: 13px; }
.page-head .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.menu-toggle { display: none; }

/* ---------- 卡片、栅格 ---------- */
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.span2 { grid-column: span 2; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.card { min-width: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--shadow); }
.card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 16px 18px 0; }
.card-head .sub { width: 100%; margin-top: -4px; color: var(--muted); font-size: 12.5px; }
.card-head .tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.card-body { padding: 14px 18px 18px; }
.card-body.flush { padding: 10px 0 4px; }
.card-foot { padding: 10px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 28px 0 12px; }
.section-title h2 { font-size: 16px; }

/* ---------- 指标卡片 ---------- */
.stat { padding: 16px 18px; }
.stat .label { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; }
.stat .label .i { color: var(--muted); }
.stat .value { margin-top: 6px; font-size: 28px; font-weight: 650; line-height: 1.15; letter-spacing: -.01em; }
.stat .value small { margin-left: 4px; color: var(--muted); font-size: 14px; font-weight: 500; }
.stat .foot { display: flex; align-items: center; gap: 8px; min-height: 22px; margin-top: 8px; color: var(--muted); font-size: 12.5px; }
.delta { display: inline-flex; align-items: center; gap: 2px; padding: 0 6px; border-radius: 6px; font-size: 12px; font-weight: 600; line-height: 20px; }
.delta.up-good, .delta.down-good { background: var(--good-soft); color: var(--good-text); }
.delta.up-bad, .delta.down-bad { background: var(--bad-soft); color: var(--bad-text); }
.delta.flat { background: var(--hover); color: var(--text-2); }
.spark { display: block; width: 100%; height: 34px; margin-top: 10px; }
.meter { position: relative; height: 8px; overflow: hidden; border-radius: 4px; background: color-mix(in srgb, var(--c1) 16%, var(--panel)); }
.meter i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--c1); }
.meter.warn { background: color-mix(in srgb, var(--warn) 22%, var(--panel)); }
.meter.warn i { background: var(--warn); }
.meter.bad { background: color-mix(in srgb, var(--bad) 18%, var(--panel)); }
.meter.bad i { background: var(--bad); }
.meter-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; }
.meter-row .meter { grid-column: 1 / -1; }
.hero { font-size: 44px; font-weight: 650; line-height: 1.1; letter-spacing: -.02em; }

/* ---------- 标签、状态 ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--hover); color: var(--text-2);
  font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge .i { width: 13px; height: 13px; stroke-width: 2.2; }
.badge.good { background: var(--good-soft); color: var(--good-text); }
.badge.warn { background: var(--warn-soft); color: var(--warn-text); }
.badge.serious { background: var(--serious-soft); color: var(--serious-text); }
.badge.bad { background: var(--bad-soft); color: var(--bad-text); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.badge.outline { border: 1px solid var(--line-2); background: transparent; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2);
  font-size: 12px; white-space: nowrap; }
.dot-status { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--muted); }
.dot-status.good { background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.dot-status.warn { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.dot-status.bad { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.entr { display: inline-flex; gap: 4px; }
.entr span { display: inline-grid; width: 22px; height: 22px; place-items: center; border-radius: 6px; background: var(--hover); color: var(--muted); font-size: 11px; font-weight: 700; }
.entr span.on { background: var(--accent-soft); color: var(--accent); }

/* ---------- 按钮、表单 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 9px;
  background: var(--panel); color: var(--text); font: inherit; font-weight: 550; white-space: nowrap; cursor: pointer; }
.btn:hover { background: var(--hover); text-decoration: none; }
.btn:active { background: var(--press); }
.btn.primary { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-2); }
.btn.danger { border-color: transparent; background: var(--bad-soft); color: var(--bad-text); }
.btn.danger:hover { background: var(--bad); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--hover); color: var(--text); }
.btn.sm { height: 28px; padding: 0 10px; border-radius: 7px; font-size: 12.5px; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn .i { width: 15px; height: 15px; }
button.link { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; }
input[type=text], input[type=number], input[type=search], input[type=date], select, textarea {
  height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; }
textarea { height: auto; min-height: 80px; padding: 8px 10px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, .nav a:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 1px; }
label.field { display: grid; gap: 6px; }
label.field > span { color: var(--text-2); font-size: 13px; font-weight: 600; }
.field-hint { color: var(--muted); font-size: 12.5px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 16px; }
.form-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.check { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0; }
.check input { margin-top: 4px; }
.switch { position: relative; display: inline-block; width: 36px; height: 20px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; border-radius: 10px; background: var(--line-2); transition: background .15s; cursor: pointer; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(16px); }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--panel); }
.seg a, .seg button { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 0; border-radius: 6px; background: none; color: var(--text-2);
  font: inherit; font-size: 13px; font-weight: 550; cursor: pointer; }
.seg a:hover, .seg button:hover { color: var(--text); text-decoration: none; }
.seg a.on, .seg button.on { background: var(--accent-soft); color: var(--accent); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.filters .grow { flex: 1; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; }
table.t th { position: sticky; top: 0; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--panel-2); color: var(--muted); font-size: 12px;
  font-weight: 600; text-align: left; white-space: nowrap; }
table.t th[data-sort] { cursor: pointer; user-select: none; }
table.t th[data-sort]:hover { color: var(--text); }
table.t th .arrow { display: inline-block; width: 10px; margin-left: 2px; }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover td { background: var(--hover); }
table.t tr.row-link { cursor: pointer; }
table.t td.min, table.t th.min { width: 1%; white-space: nowrap; }
.cell-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell-person b { display: block; font-weight: 600; }
.cell-person span { display: block; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.table-empty { padding: 36px 16px; color: var(--muted); text-align: center; }
.pager { display: flex; align-items: center; gap: 8px; padding: 10px 16px; color: var(--muted); font-size: 12.5px; }
.pager .btn { margin-left: 4px; }
.pager .grow { flex: 1; }

/* ---------- 列表、动态、提示 ---------- */
.list { margin: 0; padding: 0; list-style: none; }
.list li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 18px; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list .li-main { flex: 1; min-width: 0; }
.list .li-title { font-weight: 550; }
.list .li-sub { color: var(--muted); font-size: 12.5px; }
.list .li-side { flex: none; color: var(--muted); font-size: 12px; white-space: nowrap; }
.ico-round { display: grid; width: 30px; height: 30px; flex: none; place-items: center; border-radius: 8px; background: var(--hover); color: var(--text-2); }
.ico-round.good { background: var(--good-soft); color: var(--good-text); }
.ico-round.warn { background: var(--warn-soft); color: var(--warn-text); }
.ico-round.bad { background: var(--bad-soft); color: var(--bad-text); }
.ico-round.accent { background: var(--accent-soft); color: var(--accent); }
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.alert .i { margin-top: 2px; }
.alert.warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); background: var(--warn-soft); color: var(--warn-text); }
.alert.bad { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); background: var(--bad-soft); color: var(--bad-text); }
.alert.good { border-color: color-mix(in srgb, var(--good) 40%, var(--line)); background: var(--good-soft); color: var(--good-text); }
.alert.info { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); }
.alert b { color: inherit; }
.empty { display: grid; justify-items: center; gap: 8px; padding: 40px 16px; color: var(--muted); text-align: center; }
.empty .ico-round { width: 44px; height: 44px; border-radius: 12px; }
.empty b { color: var(--text); font-size: 14px; }
.kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 12px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.steps { margin: 0; padding: 0 0 0 18px; }
.steps li.ok::marker { color: var(--good); }
.steps li.fail { color: var(--bad-text); }
pre.note { max-height: 70vh; overflow: auto; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel-2);
  font: 13px/1.7 var(--font); white-space: pre-wrap; }
.qr { position: relative; width: 300px; height: 300px; margin: 8px auto; overflow: hidden; border-radius: 12px; background: #fff; }
.qr iframe { position: absolute; top: 50%; left: 50%; width: 348px; height: 348px; border: 0; transform: translate(-50%, -50%) scale(.86); }
.toast { position: fixed; z-index: 60; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 10px; max-width: 420px; padding: 12px 16px; border-radius: 12px;
  background: #111318; color: #fff; box-shadow: var(--shadow-lg); animation: toast-in .25s ease-out; }
.toast.bad { background: var(--bad); }
.toast .i { color: #6ee7a8; }
.toast.bad .i { color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.tabs { display: flex; gap: 2px; margin: 0 0 18px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 2px solid transparent; color: var(--text-2); font-weight: 550;
  white-space: nowrap; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { border-bottom-color: var(--accent); color: var(--accent); }
.tabs a .count { padding: 0 6px; border-radius: 9px; background: var(--hover); color: var(--text-2); font-size: 11.5px; line-height: 18px; }
.profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 18px; }
.profile-head .who-main b { font-size: 20px; }
.profile-head .who-main span { color: var(--muted); }
.profile-head .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.thumbs a { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.thumbs img { display: block; width: 100%; height: 120px; object-fit: cover; background: var(--hover); color: transparent; font-size: 0; }
.thumbs span { display: block; padding: 6px 8px; overflow: hidden; color: var(--text-2); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.file-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.file-row + .file-row { margin-top: 8px; }
.file-row .grow { flex: 1; min-width: 0; }
.file-row b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 弹窗 ---------- */
dialog { width: min(480px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--text);
  box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(15, 17, 21, .45); backdrop-filter: blur(2px); }
dialog .dlg-body { padding: 22px 22px 8px; }
dialog .dlg-body h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 16px; }
dialog .dlg-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px 20px; }
dialog input[type=text] { width: 100%; margin-top: 8px; }

/* ---------- 图表 ---------- */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: var(--grid); stroke-width: 1; }
.chart .base-line { stroke: var(--axis); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .tick.y { text-anchor: end; font-variant-numeric: tabular-nums; }
.chart .tick.x { text-anchor: middle; }
.chart .label { fill: var(--chart-ink); font-size: 11.5px; font-family: var(--font); }
.chart .label.strong { fill: var(--text); font-weight: 600; }
.chart .series-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .series-area { stroke: none; opacity: .1; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .bar-hit { fill: transparent; }
.chart .mark:hover, .chart g.col:hover .mark { filter: brightness(1.08) saturate(1.05); }
.chart .crosshair { stroke: var(--axis); stroke-width: 1; pointer-events: none; }
.chart .end-dot { stroke: var(--panel); stroke-width: 2; }
.s1 { fill: var(--c1); stroke: var(--c1); } .s2 { fill: var(--c2); stroke: var(--c2); } .s3 { fill: var(--c3); stroke: var(--c3); } .s4 { fill: var(--c4); stroke: var(--c4); }
.s5 { fill: var(--c5); stroke: var(--c5); } .s6 { fill: var(--c6); stroke: var(--c6); } .s7 { fill: var(--c7); stroke: var(--c7); } .s8 { fill: var(--c8); stroke: var(--c8); }
.s-other { fill: var(--c-other); stroke: var(--c-other); }
.series-line.s1, .series-line.s2, .series-line.s3, .series-line.s4, .series-line.s5, .series-line.s6, .series-line.s7, .series-line.s8 { fill: none; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 10px; padding: 0; list-style: none; color: var(--text-2); font-size: 12.5px; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; }
.legend .ln { width: 14px; height: 2px; border-radius: 1px; }
.sw.s1, .ln.s1 { background: var(--c1); } .sw.s2, .ln.s2 { background: var(--c2); } .sw.s3, .ln.s3 { background: var(--c3); } .sw.s4, .ln.s4 { background: var(--c4); }
.sw.s5, .ln.s5 { background: var(--c5); } .sw.s6, .ln.s6 { background: var(--c6); } .sw.s7, .ln.s7 { background: var(--c7); } .sw.s8, .ln.s8 { background: var(--c8); }
.sw.s-other, .ln.s-other { background: var(--c-other); }
.chart-table { display: none; }
.viz.as-table .chart, .viz.as-table .legend { display: none; }
.viz.as-table .chart-table { display: block; max-height: 320px; overflow: auto; }
.tip { position: fixed; z-index: 70; min-width: 140px; max-width: 280px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--panel); color: var(--text); box-shadow: var(--shadow-lg); font-size: 12.5px; pointer-events: none; }
.tip .t-head { margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.tip .t-row { display: flex; align-items: center; gap: 8px; }
.tip .t-row .ln { width: 12px; height: 2px; border-radius: 1px; }
.tip .t-row b { margin-left: auto; padding-left: 12px; font-variant-numeric: tabular-nums; }
.hbar { display: grid; grid-template-columns: minmax(80px, 140px) minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; }
.hbar .hb-label { overflow: hidden; color: var(--text-2); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.hbar .hb-track { height: 18px; }
.hbar .hb-fill { height: 100%; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--c1); }
.hbar .hb-val { color: var(--text); font-size: 12.5px; font-variant-numeric: tabular-nums; text-align: right; }
.hbar .hb-val span { color: var(--muted); }

/* ---------- 登录页 ---------- */
.login { display: grid; min-height: 100vh; place-items: center; padding: 24px;
  background: radial-gradient(1200px 600px at 20% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%), var(--bg); }
.login-card { width: min(420px, 100%); padding: 32px 28px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: var(--shadow-lg); text-align: center; }
.login-card .brand { justify-content: center; padding: 0 0 6px; }
.login-card h1 { margin: 10px 0 4px; font-size: 20px; }
.login-card p { color: var(--muted); }

/* ---------- 小屏 ---------- */
@media (max-width: 1180px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main { grid-template-columns: minmax(0, 1fr); }
  .search input { width: 180px; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 40; inset: 0 auto 0 0; width: 260px; transform: translateX(-102%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .app.nav-open .side { transform: none; }
  .menu-toggle { display: inline-grid; }
  .top { padding: 0 14px; }
  .content { padding: 18px 14px 48px; }
  .g3, .g2 { grid-template-columns: minmax(0, 1fr); }
  .span2 { grid-column: auto; }
  .search { display: none; }
  .kv { grid-template-columns: 96px minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .chart:not(.hbar) { overflow-x: auto; }
  .chart:not(.hbar) svg { min-width: 560px; }
}
@media (max-width: 560px) {
  .g4 { grid-template-columns: minmax(0, 1fr); }
  .stat .value { font-size: 24px; }
  h1 { font-size: 19px; }
}
@media print {
  .side, .top, .actions, .tools { display: none !important; }
  .app { display: block; }
}

/* ---------- 抽屉（右侧滑出：改设置、看详情，不跳页） ---------- */
dialog.drawer { position: fixed; inset: 0 0 0 auto; width: min(520px, 100vw); height: 100vh; max-width: none; max-height: none; margin: 0;
  border: 0; border-left: 1px solid var(--line); border-radius: 18px 0 0 18px; animation: drawer-in .22s cubic-bezier(.2, .8, .2, 1); }
dialog.drawer.wide { width: min(760px, 100vw); }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line);
  background: var(--panel); }
.drawer-head h3 { font-size: 16px; }
.drawer-head .sub { color: var(--muted); font-size: 12.5px; }
.drawer-head .x { margin-left: auto; }
.drawer-body { padding: 20px 22px 28px; }
:where(.drawer-body, .inbox-detail) .block + .block, .inbox-detail .verdict + .block { margin-top: 18px; }
:where(.drawer-body, .inbox-detail) .block-title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--text-2); font-size: 13px; font-weight: 650; }
.drawer-foot { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--panel); }

/* ---------- 环形仪表 ---------- */
.ring { position: relative; display: inline-grid; place-items: center; flex: none; }
.ring svg { display: block; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: color-mix(in srgb, var(--c1) 15%, var(--panel)); }
.ring .fill { fill: none; stroke: var(--c1); stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.ring.warn .track { stroke: color-mix(in srgb, var(--warn) 22%, var(--panel)); }
.ring.warn .fill { stroke: var(--warn); }
.ring.bad .track { stroke: color-mix(in srgb, var(--bad) 18%, var(--panel)); }
.ring.bad .fill { stroke: var(--bad); }
.ring.good .track { stroke: color-mix(in srgb, var(--good) 16%, var(--panel)); }
.ring.good .fill { stroke: var(--good); }
.ring .ring-val { position: absolute; display: grid; place-items: center; text-align: center; line-height: 1.1; }
.ring .ring-val b { font-size: 15px; font-weight: 650; }
.ring.lg .ring-val b { font-size: 22px; }
.ring .ring-val span { color: var(--muted); font-size: 11px; }
.gauges { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 16px; }
.gauge { display: grid; justify-items: center; gap: 6px; color: var(--text-2); font-size: 12.5px; }

/* ---------- 折叠区块（收纳次要信息） ---------- */
details.fold { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--shadow); }
details.fold + details.fold { margin-top: 12px; }
details.fold > summary { display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; list-style: none; font-weight: 600; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary .chev { margin-left: auto; color: var(--muted); transition: transform .15s; }
details.fold[open] > summary .chev { transform: rotate(180deg); }
details.fold > summary > span:not(.sub) { flex: none; white-space: nowrap; }
details.fold > summary .sub { min-width: 0; overflow: hidden; color: var(--muted); font-size: 12.5px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
details.fold > .fold-body { padding: 0 18px 16px; }
details.fold > .fold-body.flush { padding: 0 0 6px; }

/* ---------- 图标块、功能入口 ---------- */
.ico-tile { display: grid; width: 40px; height: 40px; flex: none; place-items: center; border-radius: 11px; }
.ico-tile .i { width: 20px; height: 20px; }
/* 图标块：浅色下淡底深色图标；深色下（--tint、--lift 在深色主题里调大）底色更实一点、图标提亮，不再是一块发闷的暗色 */
.t1 { background: color-mix(in srgb, var(--c1) var(--tint), var(--panel)); color: color-mix(in srgb, var(--c1), #fff var(--lift)); }
.t2 { background: color-mix(in srgb, var(--c2) var(--tint), var(--panel)); color: color-mix(in srgb, var(--c2), #fff var(--lift)); }
.t3 { background: color-mix(in srgb, var(--c3) var(--tint), var(--panel)); color: color-mix(in srgb, var(--c3), #fff var(--lift)); }
.t4 { background: color-mix(in srgb, var(--c4) var(--tint), var(--panel)); color: color-mix(in srgb, color-mix(in srgb, var(--c4) 80%, var(--text)), #fff var(--lift)); }
.t5 { background: color-mix(in srgb, var(--c5) var(--tint), var(--panel)); color: color-mix(in srgb, var(--c5), #fff var(--lift)); }
.t6 { background: color-mix(in srgb, var(--c6) var(--tint), var(--panel)); color: color-mix(in srgb, var(--c6), #fff var(--lift)); }
.t7 { background: color-mix(in srgb, var(--c7) var(--tint), var(--panel)); color: color-mix(in srgb, var(--c7), #fff var(--lift)); }
.t8 { background: color-mix(in srgb, var(--c8) var(--tint), var(--panel)); color: color-mix(in srgb, var(--c8), #fff var(--lift)); }
.stat-top { display: flex; align-items: flex-start; gap: 12px; }
.stat-top .grow { flex: 1; min-width: 0; }
.hint { display: inline-grid; width: 16px; height: 16px; place-items: center; border-radius: 50%; color: var(--muted); cursor: help; }
.hint .i { width: 14px; height: 14px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.tiles.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }  /* 8 个块：两行各 4 个，不排成 6＋2 */
.tile { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); color: var(--text); }
a.tile:hover { border-color: var(--accent-line); background: var(--accent-soft); text-decoration: none; }
.tile b { display: block; font-size: 18px; line-height: 1.2; }
.tile span { display: block; color: var(--muted); font-size: 12px; }

/* ---------- 首页问候区 ---------- */
.welcome { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-bottom: 20px; padding: 22px 24px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: var(--shadow); }
.welcome::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 520px; height: 320px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 18%, transparent), transparent); }
.welcome h1 { font-size: 22px; }
.welcome .sub { color: var(--muted); }
.welcome .actions { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.pulse { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; }

/* ---------- 双栏收件箱（审核中心） ---------- */
.inbox { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); min-height: 560px; }
.inbox-list { border-right: 1px solid var(--line); overflow-y: auto; max-height: calc(100vh - 220px); }
.inbox-item { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--text); }
.inbox-item:hover { background: var(--hover); text-decoration: none; }
.inbox-item.on { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.inbox-item .grow { flex: 1; min-width: 0; }
.inbox-item b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-item .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; color: var(--muted); font-size: 12px; }
.inbox-detail { min-width: 0; padding: 20px 24px; }
.verdict { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.timeline { position: relative; margin: 0; padding: 0 0 0 22px; list-style: none; }
.timeline::before { content: ""; position: absolute; top: 6px; bottom: 6px; left: 7px; width: 2px; border-radius: 1px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 14px; }
.timeline li::before { content: ""; position: absolute; top: 6px; left: -19px; width: 10px; height: 10px; border: 2px solid var(--panel); border-radius: 50%;
  background: var(--tl, var(--muted)); box-shadow: 0 0 0 1px var(--line-2); }
.timeline .tl-time { color: var(--muted); font-size: 12px; }
@media (max-width: 900px) {
  .inbox { grid-template-columns: minmax(0, 1fr); }
  .inbox-list { max-height: none; border-right: 0; }
  dialog.drawer { border-radius: 0; }
}

/* ---------- 附件预览（审核中心） ---------- */
.pv { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); }
.pv-tabs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--panel); }
.pv-tab { display: flex; align-items: center; gap: 10px; min-width: 200px; max-width: 320px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.pv-tab:hover { border-color: var(--accent-line); }
.pv-tab.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.pv-tab > .i { width: 20px; height: 20px; color: var(--accent); }
.pv-tab span { min-width: 0; }
.pv-tab b { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.pv-tab span span { display: block; overflow: hidden; color: var(--muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.pv-stage { position: relative; height: min(72vh, 760px); min-height: 420px; background: #fff; }
.pv-stage iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.pv-stage:fullscreen { height: 100vh; }
.pv-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line); background: var(--panel); }
.pv-note { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.pv-bar .grow { flex: 1; }

/* ---------- 左右分栏：文件夹树＋列表（个人库） ---------- */
.split { display: grid; grid-template-columns: 250px minmax(0, 1fr); overflow: hidden; }
.tree { padding: 10px 8px; border-right: 1px solid var(--line); background: var(--panel-2); }
.tree-item { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 10px; border-radius: 8px; color: var(--text-2); font-size: 13px; }
.tree-item:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.tree-item.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.tree-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-item em { color: var(--muted); font-size: 11.5px; font-style: normal; font-variant-numeric: tabular-nums; }
.tree-node > summary { list-style: none; }
.tree-node > summary::-webkit-details-marker { display: none; }
.tree-node > summary .tree-item::after { content: "›"; color: var(--muted); transition: transform .15s; }
.tree-node[open] > summary .tree-item::after { transform: rotate(90deg); }
.split-main { min-width: 0; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } .tree { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------- 联网收录（2026-11-10）：收录方式、状态切换、待确认收件箱 ---------- */
.gate-head { margin-bottom: 16px; }
.mode-wrap { display: flex; flex-wrap: wrap; align-items: stretch; gap: 16px; }
.mode-opts { display: grid; flex: 3 1 520px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mode-opts form { display: contents; }
.mode-opts.one { grid-template-columns: minmax(0, 1fr); }
.mode-opt { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--panel-2); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s, transform .15s; }
.mode-opt:hover { border-color: var(--accent-line); background: var(--panel); transform: translateY(-1px); box-shadow: var(--shadow); }
.mode-opt .mode-txt { display: grid; min-width: 0; }
.mode-opt .mode-txt b { font-size: 14px; }
.mode-opt .mode-txt span { color: var(--muted); font-size: 12px; }
.mode-opt .tick { position: absolute; top: 8px; right: 8px; color: var(--accent); opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.mode-opt.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); cursor: default; }
.mode-opt.on .tick { opacity: 1; transform: none; }
.mode-opt[disabled] { opacity: 1; }
.gate-kpis { display: grid; flex: 2 1 320px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.gk { display: grid; align-content: center; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); color: var(--text); }
.gk:hover { border-color: var(--accent-line); text-decoration: none; }
.gk b { font-size: 22px; font-weight: 680; line-height: 1.1; font-variant-numeric: tabular-nums; }
.gk span { color: var(--muted); font-size: 12px; }
.gk.warn b { color: var(--warn-text); } .gk.accent b { color: var(--accent); } .gk.good b { color: var(--good-text); } .gk.bad b { color: var(--bad-text); }
.gk.on { border-color: var(--accent-line); box-shadow: inset 0 0 0 1px var(--accent-line); background: var(--panel); }
/* 没答上的问题（2026-11-12） */
.gaps-head p { flex: 1 1 280px; margin: 0; line-height: 1.7; }
.gap-answer { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); line-height: 1.7; }
.gap-how { margin: 0; color: var(--text-2); line-height: 1.7; }
.gap-hist { margin: 0; padding-left: 18px; color: var(--text-2); line-height: 1.9; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.pills a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel);
  color: var(--text-2); font-weight: 550; }
.pills a:hover { color: var(--text); text-decoration: none; border-color: var(--accent-line); }
.pills a.on { border-color: transparent; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #a855f7)); color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 30%, transparent); }
.pills .count { min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--hover); color: var(--text-2); font-size: 11.5px; line-height: 18px; text-align: center; }
.pills .count.hot { background: var(--bad); color: #fff; }
.pills a.on .count { background: rgba(255, 255, 255, .25); color: #fff; }
.gate-filters .chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
a.chip:hover { text-decoration: none; border-color: var(--accent-line); color: var(--text); }
.bulk-bar { margin: 0 0 12px; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.inbox-tools { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 90%, transparent); backdrop-filter: blur(8px); }
.check-all { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 12.5px; cursor: pointer; }
.gate-item { align-items: flex-start; padding: 0; }
.gate-item > input { margin: 16px 0 0 14px; }
.gate-item > a { display: block; padding: 12px 14px 12px 10px; color: var(--text); }
.gate-item > a:hover { text-decoration: none; }
.gate-item:not(:has(input)) > a { padding-left: 14px; }
.gate-item .gi-top { display: flex; align-items: center; gap: 10px; }
.gate-item .gi-top b { flex: 1; min-width: 0; }
.gate-item .meta { padding-left: 40px; }
.gd-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.gd-head h2 { font-size: 18px; line-height: 1.4; }
.gd-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gd-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 14px; }
.gd-facts > div { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); min-width: 0; }
.gd-facts span { color: var(--muted); font-size: 12px; }
.gd-facts b { overflow: hidden; font-size: 13.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.verdict.good { border-color: color-mix(in srgb, var(--good) 35%, var(--line)); background: var(--good-soft); }
.verdict.bad { border-color: color-mix(in srgb, var(--bad) 32%, var(--line)); background: var(--bad-soft); }
.verdict.warn { border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); background: var(--warn-soft); }
code.url { display: block; padding: 8px 10px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); overflow-wrap: anywhere; color: var(--text-2); }
.gd-actions { display: flex; flex: none; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.gd-actions .btn { height: 38px; padding: 0 16px; }
.breathe { animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent); } }
@media (max-width: 900px) {
  .gate-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gk { padding: 8px 10px; }
  .gk b { font-size: 18px; }
  .pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .pills a { flex: none; }
  .gd-head { flex-wrap: wrap; }
  .gd-actions { width: 100%; margin-left: 0; }
  .gd-actions form, .gd-actions .btn { flex: 1; }
  .gd-actions form .btn { width: 100%; }
  .pv-bar { flex-wrap: wrap; row-gap: 6px; }
  .pv-bar .pv-note { flex: 1 1 100%; }
}
@media (max-width: 600px) {
  .tiles, .tiles.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }  /* 手机上两列，不用一格一行往下翻 */
  .tile { padding: 12px; gap: 10px; }
  .mode-opts:not(.one) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .mode-opt { flex-direction: column; justify-content: center; gap: 6px; padding: 12px 6px; text-align: center; }
  .mode-opt .mode-txt b { font-size: 12.5px; }
  .mode-opt .mode-txt span { display: none; }
  .mode-opts.one .mode-opt { flex-direction: row; justify-content: flex-start; padding: 12px 14px; text-align: left; }
  .mode-opts.one .mode-opt .mode-txt span { display: block; }
}

/* ---------- 工作台质感（2026-11-10 用户：「更精细更精致优美一点，增加一下未来工作台的质感和细节，包括一些动效」） ---------- */
:root { --hl: rgba(255, 255, 255, .75); --glow-1: color-mix(in srgb, var(--accent) 10%, transparent); --glow-2: color-mix(in srgb, #06b6d4 8%, transparent);
  --grad: linear-gradient(135deg, #6366f1, #8b5cf6 55%, #a855f7); }
:root[data-theme="dark"] { --hl: rgba(255, 255, 255, .04); --glow-1: rgba(99, 102, 241, .16); --glow-2: rgba(6, 182, 212, .08); }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) { --hl: rgba(255, 255, 255, .04); --glow-1: rgba(99, 102, 241, .16); --glow-2: rgba(6, 182, 212, .08); } }
body { background: radial-gradient(1100px 520px at 18% -8%, var(--glow-1), transparent 62%), radial-gradient(900px 480px at 100% 0%, var(--glow-2), transparent 60%), var(--bg);
  background-attachment: fixed; }
.side { background: color-mix(in srgb, var(--panel) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); }
.nav a { position: relative; transition: background .15s, color .15s; }
.nav a.on { background: linear-gradient(90deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 40%, transparent)); }
.nav a.on::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 60%, transparent); }
.card, details.fold, .welcome { box-shadow: var(--shadow), inset 0 1px 0 var(--hl); }
.card { border-radius: 16px; transition: box-shadow .2s, transform .2s, border-color .2s; }
a.card:hover, .card.stat:hover { transform: translateY(-2px); border-color: var(--accent-line); box-shadow: var(--shadow-lg), inset 0 1px 0 var(--hl); }
.card-head h2 { font-size: 15px; letter-spacing: .01em; }
.ico-tile { position: relative; box-shadow: inset 0 1px 0 var(--hl); }
.stat .value { font-variant-numeric: tabular-nums; }
.btn { transition: background .15s, border-color .15s, box-shadow .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn.primary { border-color: transparent; background: var(--grad); color: #fff; box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn.primary:hover { background: var(--grad); filter: brightness(1.06); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 38%, transparent); }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.welcome { background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 7%, var(--panel)), var(--panel) 45%, color-mix(in srgb, #06b6d4 6%, var(--panel))); }
.welcome::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: linear-gradient(115deg, transparent 30%, color-mix(in srgb, var(--accent) 10%, transparent) 45%, transparent 60%); background-size: 250% 100%;
  animation: sheen 9s ease-in-out infinite; }
@keyframes sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.live-dot { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--good); opacity: 0; animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 10px; background: color-mix(in srgb, var(--muted) 35%, transparent) padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* 打开页面时的动效：卡片依次浮现、数字滚动、柱子长出来、折线画出来、环形仪表转到位（console.js 加 html.anim；系统设了减少动效就不动） */
@media (prefers-reduced-motion: no-preference) {
  html.anim .content > *, html.anim .grid > *, html.anim .tiles > *, html.anim .gate-kpis > * {
    animation: rise .55s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--d, 0) * 55ms); }
  html.anim .chart .mark { transform-box: fill-box; transform-origin: 50% 100%; animation: grow-y .8s cubic-bezier(.2, .8, .2, 1) backwards;
    animation-delay: calc(var(--d, 0) * 55ms + 120ms + var(--k, 0) * 12ms); }
  html.anim .chart .series-line, html.anim .spark path:not([class*="area"]) { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s cubic-bezier(.4, 0, .2, 1) forwards;
    animation-delay: calc(var(--d, 0) * 55ms + 200ms); }
  html.anim .chart .series-area { animation: fade .9s ease backwards; animation-delay: calc(var(--d, 0) * 55ms + 500ms); }
  html.anim .hb-fill, html.anim .meter i { transform-origin: 0 50%; animation: grow-x .9s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--d, 0) * 55ms + 150ms); }
  html.anim .ring .fill { transition: stroke-dashoffset 1.3s cubic-bezier(.2, .8, .2, 1); }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes grow-y { from { transform: scaleY(0); } }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .welcome::after, .live-dot::after, .breathe { animation: none; } }

/* ---------- 退回理由（审核中心）：常用理由点一下，可以补一句 ---------- */
.reject-box { margin: 0 0 16px; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--bad) 35%, var(--line)); border-radius: 14px; background: var(--bad-soft); }
.rb-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 12px; color: var(--bad-text); }
.rb-head b { color: var(--text); font-size: 15px; }
.reason-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.rc { position: relative; cursor: pointer; }
.rc input { position: absolute; opacity: 0; pointer-events: none; }
.rc span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel);
  color: var(--text-2); font-size: 13.5px; transition: border-color .15s, background .15s, color .15s; }
.rc:hover span { border-color: color-mix(in srgb, var(--bad) 45%, var(--line-2)); }
.rc input:checked + span { border-color: var(--bad); background: var(--bad); color: #fff; }
.rc input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.reject-box textarea { width: 100%; margin-bottom: 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel);
  color: var(--text); font: inherit; resize: vertical; }

/* 审核中心列表：缩略图（有图用图、有附件写类型、都没有用类型图标） */
.ib-thumb { display: grid; width: 52px; height: 52px; flex: none; place-items: center; overflow: hidden; border-radius: 12px; object-fit: cover;
  border: 1px solid var(--line); background: var(--panel-2); }
.ib-thumb.file { position: relative; color: var(--c1); background: color-mix(in srgb, var(--c1) 12%, var(--panel)); }
.ib-thumb.file .i { width: 22px; height: 22px; }
.ib-thumb.file b { position: absolute; bottom: 3px; right: 4px; font-size: 9.5px; font-weight: 700; }
.ico-tile.ib-thumb .i { width: 22px; height: 22px; }

/* ---------- 个人库（2026-11-10）：左边像 Obsidian 的文件夹树（笔记挂在文件夹下），右边卡片缩略图／列表／看全文 ---------- */
.split.pn { grid-template-columns: 290px minmax(0, 1fr); min-height: 620px; overflow: clip; }
.vault { border-right: 1px solid var(--line); background: var(--panel-2); }
.vault-in { position: sticky; top: 64px; max-height: calc(100vh - 72px); overflow-y: auto; padding: 14px 8px 18px; scrollbar-width: thin; }
.vault-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 8px 10px; color: var(--muted); font-size: 12.5px;
  font-weight: 600; letter-spacing: .04em; }
.vt-tool { display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.vt-tool:hover { background: var(--hover); color: var(--text); }
.vt-tool .i { width: 16px; height: 16px; }
.vt-find { display: flex; align-items: center; gap: 8px; height: 36px; margin: 0 4px 10px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 9px;
  background: var(--panel); color: var(--muted); }
.vt-find:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.vt-find .i { width: 15px; height: 15px; flex: none; }
.vt-find input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: 13.5px var(--font); }
.vt-sep { height: 1px; margin: 8px 6px; background: var(--line); }
.vt-row { display: flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 6px 0 4px; border-radius: 8px; color: var(--text-2); font-size: 13.5px; }
.vt-row:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.vt-row.on { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.vt-row.vt-top { gap: 9px; padding-left: 8px; }
.vt-link { display: flex; flex: 1; min-width: 0; align-items: center; gap: 8px; align-self: stretch; color: inherit; }
.vt-link:hover { text-decoration: none; }
.vt-name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.vt-ic { display: inline-grid; flex: none; place-items: center; color: var(--muted); background: none; }
.vt-ic .i { width: 16px; height: 16px; }
.vt-note .vt-ic .i { width: 15px; height: 15px; }
.vt-row.on .vt-ic { color: var(--accent); }
.vt-n { flex: none; min-width: 18px; color: var(--muted); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.vt-caret { display: grid; width: 22px; height: 22px; flex: none; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent;
  color: var(--muted); cursor: pointer; }
.vt-caret:hover { background: var(--press); color: var(--text); }
.vt-caret .i { width: 14px; height: 14px; transition: transform .15s ease; }
.vt-folder.open > .vt-row .vt-caret .i, .vault.finding .vt-folder.found > .vt-row .vt-caret .i { transform: rotate(90deg); }
.vt-kids { display: none; margin-left: 14px; padding-left: 6px; border-left: 1px solid var(--line); }
.vt-folder.open > .vt-kids, .vault.finding .vt-folder.found > .vt-kids { display: block; }
.vt-kids .vt-note { padding-left: 8px; gap: 8px; }
.vt-more, .vt-empty { display: block; padding: 4px 10px 6px; color: var(--muted); font-size: 12.5px; }
.vault .vt-off { display: none !important; }

.pn-bar { display: flex; align-items: center; gap: 10px; padding: 14px 20px 0; }
.pn-head { padding: 14px 20px 4px; }
.pn-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; color: var(--muted); font-size: 12.5px; }
.pn-crumbs a { color: var(--muted); }
.pn-crumbs a:hover { color: var(--accent); }
.pn-crumbs .i { width: 13px; height: 13px; opacity: .7; }
.pn-head h2 { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 0; font-size: 21px; letter-spacing: -.01em; }
.pn-head h2 em { color: var(--muted); font-size: 13px; font-style: normal; font-weight: 500; }
.pn-folders { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 20px 2px; }
.pn-folder { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 12px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--panel-2); color: var(--text-2); font-size: 13.5px; transition: border-color .15s, background .15s, transform .15s; }
.pn-folder:hover { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); text-decoration: none; transform: translateY(-1px); }
.pn-folder .i { width: 16px; height: 16px; color: var(--c4); }
.pn-folder b { font-weight: 600; }
.pn-folder em { color: var(--muted); font-size: 12px; font-style: normal; }
.pn-filters { padding: 12px 20px 4px; }
.seg-ic a { width: 34px; justify-content: center; padding: 0; }
.seg-ic .i { width: 16px; height: 16px; }

.pn-grid { columns: 4 210px; column-gap: 14px; padding: 12px 20px 24px; }
.pn-card { display: flex; flex-direction: column; min-width: 0; margin: 0 0 14px; overflow: hidden; break-inside: avoid; border: 1px solid var(--line);
  border-radius: 14px; background: var(--panel); color: var(--text); transition: border-color .18s, box-shadow .18s, transform .18s; }
.pn-card:hover { border-color: var(--accent-line); box-shadow: 0 10px 28px -12px rgba(16, 24, 40, .28); text-decoration: none; transform: translateY(-2px); }
.pn-card[hidden] { display: none; }
.pn-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.pn-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pn-card:hover .pn-cover img { transform: scale(1.04); }
.pn-count { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 999px;
  background: rgba(17, 19, 24, .62); color: #fff; font-size: 12px; backdrop-filter: blur(4px); }
.pn-count .i { width: 13px; height: 13px; }
.pn-kind { display: flex; align-items: center; gap: 7px; margin: 12px 13px 0; padding: 0; background: none; font-size: 12.5px; }
.pn-kind .i { width: 15px; height: 15px; }
.pn-kind b { font-weight: 600; }
.pn-kind em { color: var(--muted); font-style: normal; }
.pn-doc { border-top: 3px solid color-mix(in srgb, var(--c7) 55%, var(--line)); }
.pn-doc:has(.t1) { border-top-color: color-mix(in srgb, var(--c1) 55%, var(--line)); }
.pn-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 10px 13px 12px; }
.pn-title { display: -webkit-box; overflow: hidden; font-size: 14.5px; font-weight: 600; line-height: 1.45; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.pn-path { display: flex; align-items: center; gap: 5px; min-width: 0; color: var(--muted); font-size: 12px; }
.pn-path .i { width: 13px; height: 13px; flex: none; }
.pn-path span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pn-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding-top: 4px; }
.pn-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--hover); color: var(--text-2); font-size: 12px; }
.pn-time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.pn-mini { width: 36px; height: 36px; flex: none; border: 1px solid var(--line); border-radius: 9px; object-fit: cover; }

.pn-note { max-width: 860px; padding: 16px 28px 34px; animation: fade .25s ease; }
.pn-note h2 { margin: 6px 0 10px; font-size: 24px; line-height: 1.35; letter-spacing: -.01em; }
.pn-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pn-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 12px 0 16px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 13px; }
.pn-meta em { margin-right: 6px; color: var(--muted); font-style: normal; }
.pn-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 18px 0 4px; }
.pn-shot { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); }
.pn-shot a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--hover); }
.pn-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pn-shot a:hover img { transform: scale(1.04); }
.pn-shot figcaption { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; color: var(--text-2); font-size: 12.5px; line-height: 1.55; }
.pn-shot .pn-tags { margin: 0; }
.pn-files { display: grid; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.pn-files li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); font-size: 13.5px; }
.pn-files li .i { width: 16px; height: 16px; color: var(--c1); }
.pn-files li span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pn-files li em { color: var(--muted); font-size: 12px; font-style: normal; }
.pn-text { margin-top: 18px; color: var(--text); font-size: 15px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .split.pn { grid-template-columns: minmax(0, 1fr); }
  .vault { border-right: 0; border-bottom: 1px solid var(--line); }
  .vault-in { position: static; max-height: 320px; }
  .pn-note { padding: 14px 16px 28px; }
}
@media (prefers-reduced-motion: reduce) { .pn-card, .pn-cover img, .pn-shot img, .pn-note { transition: none; animation: none; } }

/* ---------- 公共知识库 → 分类目录（2026-11-10）：和个人库同一套树和卡片，多了勾选批量挪、分类操作、最近调整 ---------- */
.vt-ic.t1, .vt-ic.t2, .vt-ic.t3, .vt-ic.t4, .vt-ic.t7, .vt-ic.t8 { background: none; }
.vt-note-tip { display: flex; gap: 6px; margin: 14px 6px 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.vt-note-tip .i { width: 13px; height: 13px; flex: none; margin-top: 2px; }
.cat-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 18px; padding-top: 18px; }
.cat-desc { margin: 6px 0 0; color: var(--text-2); font-size: 13.5px; }
.cat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cat-actions form { display: inline-flex; margin: 0; }
.pn-folder.empty { opacity: .62; }
.pn-folder .vt-ic .i { width: 16px; height: 16px; }
.check-all { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--panel);
  color: var(--text-2); font-size: 13px; white-space: nowrap; cursor: pointer; }  /* 勾选框旁边写「全选」：光一个框看不出是干什么的 */
.check-all input { margin: 0; }
.check-all input, .cc-pick input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.cat-bulk { position: sticky; top: 64px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 8px 20px 0; box-shadow: var(--shadow); }
.cat-bulk select { min-width: 240px; }
.cat-card { position: relative; }
.cc-pick { position: absolute; top: 9px; left: 9px; z-index: 2; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 88%, transparent); box-shadow: 0 1px 3px rgba(16, 24, 40, .18); opacity: 0; transition: opacity .15s; cursor: pointer; }
.cat-card:hover .cc-pick, .cc-pick:has(input:checked), .cc-pick:has(input:focus-visible) { opacity: 1; }
.cat-card:has(.cc-pick input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.cat-card.pn-doc .cc-pick { top: 8px; left: auto; right: 9px; }
a.pn-title { color: var(--text); }
a.pn-title:hover { color: var(--accent); text-decoration: none; }
.pn-excerpt { display: -webkit-box; overflow: hidden; color: var(--text-2); font-size: 12.5px; line-height: 1.6; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.pn-src { overflow: hidden; color: var(--muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; max-width: 60%; }
.cat-pager { padding: 0 20px 18px; }
.cat-history { padding: 0 20px 20px; }
.cat-log { display: grid; gap: 8px; margin: 0; padding: 4px 4px 2px; list-style: none; }
.cat-log li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 13px; }
.cat-log li b { font-weight: 600; }
.cat-log li span:last-child { color: var(--text-2); }
.grow { flex: 1; }
.cat-head > .grow { min-width: 260px; }
.vt-ic.t1 { color: var(--c1); } .vt-ic.t2 { color: var(--c2); } .vt-ic.t3 { color: var(--c3); } .vt-ic.t4 { color: var(--c4); }
.vt-ic.t7 { color: var(--c7); } .vt-ic.t8 { color: var(--c8); }
.cat-search { max-width: 360px; min-width: 200px; }
.cat-search input[type=search] { width: 100%; }
.pn-filters .cat-search:only-child { max-width: 560px; }
.shelf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; padding: 12px 20px 8px; }
.shelf-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel);
  transition: border-color .18s, box-shadow .18s, transform .18s; }
.shelf-card:hover { border-color: var(--accent-line); box-shadow: 0 12px 30px -16px rgba(16, 24, 40, .3); transform: translateY(-2px); }
.sh-head { display: flex; align-items: flex-start; gap: 12px; color: var(--text); }
.sh-head:hover { text-decoration: none; }
.sh-head .ico-tile { width: 42px; height: 42px; flex: none; border-radius: 12px; }
.sh-head .ico-tile .i { width: 21px; height: 21px; }
.sh-text { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.sh-text b { font-size: 16px; }
.sh-text span { color: var(--text-2); font-size: 12.5px; line-height: 1.5; }
.sh-n { color: var(--text); font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.sh-n small { margin-left: 2px; color: var(--muted); font-size: 12px; font-weight: 500; }
.sh-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sh-strip img { width: 100%; aspect-ratio: 1; border-radius: 9px; object-fit: cover; background: var(--panel-2); }
.sh-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.sh-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--hover); color: var(--text-2);
  font-size: 12.5px; }
.sh-chip:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.sh-chip em { color: var(--muted); font-style: normal; font-size: 11.5px; }
.sec-head { display: flex; align-items: center; gap: 8px; padding: 18px 20px 0; color: var(--text); font-size: 14.5px; }
.sec-head .i { width: 16px; height: 16px; color: var(--muted); }

/* ---------- 人员卡片（2026-11-10）：头像、额度圆环、关键数字；左上角勾选批量改 ---------- */
.pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.pp-card { position: relative; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: var(--shadow);
  transition: border-color .18s, box-shadow .18s, transform .18s; }
.pp-card:hover { border-color: var(--accent-line); box-shadow: 0 12px 30px -16px rgba(16, 24, 40, .3); transform: translateY(-2px); }
.pp-card:has(.cc-pick input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.pp-card .cc-pick { top: 12px; left: 12px; }
.pp-card:hover .cc-pick, .pp-card .cc-pick:has(input:checked) { opacity: 1; }
.pp-card.off { opacity: .72; }
.pp-main { display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 14px; color: var(--text); }
.pp-main:hover { text-decoration: none; }
.pp-top { display: flex; align-items: center; gap: 12px; }
.pp-name { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.pp-name b { font-size: 16px; }
.pp-name > span { overflow: hidden; color: var(--text-2); font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; }
.pp-unlimited { display: flex; flex-direction: column; align-items: flex-end; font-weight: 650; }
.pp-unlimited em { color: var(--muted); font-size: 11.5px; font-style: normal; font-weight: 500; }
.pp-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pp-stats span { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.pp-stats b { font-size: 18px; font-variant-numeric: tabular-nums; }
.pp-stats em { color: var(--muted); font-size: 11.5px; font-style: normal; }
.pp-foot { display: flex; align-items: center; gap: 8px; }

/* ---------- 公共知识库 → 图片库（2026-11-10）：瀑布流卡片（描述、标签）、筛选、看大图改标签；标签词表（合并、上级、拆开、AI 建议） ---------- */
.il-bar { margin-bottom: 14px; }
.il-search-c { margin-bottom: 10px; }
.ilc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.ilc-tags { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.ilc { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel);
  color: var(--text-2); font-size: 13.5px; white-space: nowrap; }
.ilc:hover { border-color: var(--accent-line); color: var(--text); text-decoration: none; }
.ilc.on { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.ilc em { color: var(--muted); font-size: 12px; font-style: normal; }
.ilc .i { width: 14px; height: 14px; }
.ilc-sep { width: 1px; height: 20px; margin: 0 4px; background: var(--line-2); }
.il-sum-c { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 4px 0 12px; color: var(--text-2); font-size: 13.5px; }
.il-sum-c b { color: var(--text); }
.ilc-body { padding: 16px; }
.ilc-grid { columns: 5 210px; column-gap: 14px; }
.ilc-card { display: flex; flex-direction: column; margin: 0 0 14px; overflow: hidden; break-inside: avoid; border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel); color: var(--text); transition: border-color .18s, box-shadow .18s, transform .18s; }
.ilc-card:hover { border-color: var(--accent-line); box-shadow: 0 10px 28px -12px rgba(16, 24, 40, .28); text-decoration: none; transform: translateY(-2px); }
.ilc-pic { position: relative; display: block; background: var(--panel-2); }
.ilc-pic img { display: block; width: 100%; height: auto; }
.ilc-flag { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(17, 19, 24, .66); color: #fff; font-size: 11.5px; }
.ilc-body2 { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; }
.ilc-body2 b { display: -webkit-box; overflow: hidden; font-size: 13.5px; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ilc-desc { display: -webkit-box; overflow: hidden; color: var(--text-2); font-size: 12.5px; line-height: 1.6; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.ilc-desc.muted { color: var(--muted); }
.ilc-body2 .ilc-tags { display: flex; flex-wrap: wrap; gap: 5px; overflow: visible; padding: 0; }
.ilc-meta { color: var(--muted); font-size: 12px; }
.ilc-detail { display: grid; grid-template-columns: minmax(0, 1fr) 400px; overflow: hidden; }
.ilc-stage { display: grid; min-height: 560px; place-items: center; background: #0b0c0f; }
.ilc-stage img { max-width: 100%; max-height: 78vh; object-fit: contain; }
.ilc-detail-info { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; border-left: 1px solid var(--line); }
.ilc-detail-info h2 { margin: 8px 0 0; font-size: 19px; line-height: 1.4; }
.ilc-detail-info > .btn:first-child { align-self: flex-start; }
.ilc-desc-big { margin: 4px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.75; }
.ilc-detail-info .block-title { margin-top: 12px; }
.ilc-tagform { display: flex; gap: 8px; }
.ilc-tagform input { height: 38px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--panel); color: var(--text); font: inherit; }
.ilc-text { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.ilc-url code { word-break: break-all; }
.ilc-sim { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ilc-sim img { width: 100%; aspect-ratio: 1; border-radius: 9px; object-fit: cover; }
.ilv-sugg { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ilv-sugg li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ilv-sugg li .i { width: 15px; height: 15px; color: var(--muted); }
.ilv-names { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.ilv-alias { display: inline-flex; align-items: center; gap: 2px; height: 26px; margin: 2px 4px 2px 0; padding: 0 2px 0 9px; border-radius: 999px; background: var(--hover);
  color: var(--text-2); font-size: 12.5px; }
.ilv-alias form { display: inline-flex; }
.ilv-x { display: grid; width: 22px; height: 22px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.ilv-x:hover { background: var(--bad-soft); color: var(--bad); }
.ilv-x .i { width: 12px; height: 12px; }
.ilv-parent input { width: 150px; height: 32px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; }
@media (max-width: 900px) { .ilc-detail { grid-template-columns: minmax(0, 1fr); } .ilc-stage { min-height: 300px; } .ilc-detail-info { border-left: 0; } }

/* ---------- 公共知识库 → 知识图谱：关系网（2026-11-11，和网站同一套画法；颜色 3 组：地方 c1、机构 c2、事情 c3，组里用形状分类型） ---------- */
.kn-graph .card-head .tools { gap: 8px; }
.kn-graph .card-head .search { width: 240px; }
.kn-graph .card-head .search input { width: 100%; }
.kn-stage { position: relative; height: clamp(440px, 62vh, 680px); overflow: hidden; border-top: 1px solid var(--line); background-color: var(--panel);
  background-image: radial-gradient(var(--line-2) 1px, transparent 1.2px); background-size: 24px 24px; }
.kn-canvas { position: absolute; inset: 0; }
.kg-t0, .kg-t2, .kg-t5 { --kc: var(--c1); }
.kg-t1, .kg-t4 { --kc: var(--c2); }
.kg-t3, .kg-t6, .kg-t7, .kg-t8 { --kc: var(--c3); }
.kg-t9 { --kc: var(--c-other); }
.kg-dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--kc, var(--c-other)); vertical-align: 0; }
.kg-dot.kg-t2, .kg-dot.kg-t4, .kg-dot.kg-t6 { width: 9px; height: 9px; border-radius: 2px; }
.kg-dot.kg-t5, .kg-dot.kg-t7 { width: 11px; height: 11px; border-radius: 0; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.kg-dot.kg-t8 { width: 11px; height: 11px; border-radius: 0; clip-path: polygon(50% 4%, 100% 94%, 0 94%); }
.kg-svg { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.kg-svg.panning { cursor: grabbing; }
.kg-link { stroke: var(--line-2); stroke-width: 1.2px; }
.kg-edge.strong .kg-link { stroke-width: 2px; }
.kg-edge.mention .kg-link { stroke-width: 1px; }
.kg-rl { display: none; fill: var(--muted); font-family: var(--font); font-size: var(--kg-fs, 13px); paint-order: stroke; stroke: var(--panel);
  stroke-width: var(--kg-halo, 4px); stroke-linejoin: round; pointer-events: none; }
.kg-edge.lit .kg-link { stroke: var(--text-2); stroke-opacity: .7; }
.kg-edge.lit .kg-rl { display: block; }
.kg-svg.many .kg-edge.lit .kg-rl, .kg-svg.intro .kg-node text, .kg-svg.intro .kg-rl { display: none; }
.kg-node { cursor: pointer; outline: none; }
.kg-hit { fill: transparent; }
.kg-node.has-page .kg-hit { stroke: var(--kc); stroke-opacity: .45; stroke-width: 1.5px; }
.kg-mark { fill: var(--kc, var(--c-other)); stroke: var(--panel); stroke-width: 2px; stroke-linejoin: round; transition: stroke .12s; }
.kg-node text { fill: var(--text-2); font-family: var(--font); font-size: var(--kg-fs, 13px); dominant-baseline: hanging; paint-order: stroke; stroke: var(--panel);
  stroke-width: var(--kg-halo, 4px); stroke-linejoin: round; pointer-events: none; }
.kg-node.quiet text { display: none; }
.kg-node.lit text, .kg-node.picked text { display: block; }
.kg-node.focus text, .kg-node.picked text { fill: var(--text); font-weight: 700; }
.kg-node:hover .kg-mark, .kg-node:focus-visible .kg-mark { stroke: var(--text); }
.kg-node.picked .kg-mark { stroke: var(--text); stroke-width: 3px; }
.kg-node, .kg-edge { transition: opacity .15s; }
.kg-svg.dimmed .kg-node:not(.lit) { opacity: .2; }
.kg-svg.dimmed .kg-edge:not(.lit) { opacity: .1; }
.kg-none { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); }
.kn-zoom { position: absolute; bottom: 12px; left: 12px; z-index: 3; display: flex; flex-direction: column; gap: 2px; padding: 4px; border: 1px solid var(--line-2);
  border-radius: 11px; background: var(--panel); box-shadow: var(--shadow); }
.kn-zoom .icon-btn { width: 34px; height: 34px; }
.kn-pop { position: absolute; z-index: 4; display: flex; flex-direction: column; gap: 2px; max-width: 260px; padding: 9px 12px; border: 1px solid var(--line-2);
  border-radius: 10px; background: var(--panel); box-shadow: var(--shadow-lg); font-size: 12.5px; pointer-events: none; }
.kn-pop b { font-size: 14px; }
.kn-pop-type { display: flex; align-items: center; gap: 6px; color: var(--text-2); }
.kn-panel { position: absolute; top: 12px; right: 12px; bottom: 12px; z-index: 5; display: flex; flex-direction: column; gap: 8px; width: 320px; overflow-y: auto;
  padding: 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow-lg); }
.kn-panel h3 { margin: 0; padding-right: 30px; font-size: 17px; }
.kn-panel p { margin: 0; }
.kn-x { position: absolute; top: 8px; right: 8px; font-size: 20px; }
.kn-type { align-self: flex-start; gap: 6px; }
.kn-sum { color: var(--text-2); font-size: 13.5px; line-height: 1.7; }
.kn-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.kn-loading { position: absolute; top: 50%; left: 50%; z-index: 2; padding: 8px 16px; border-radius: 999px; background: var(--panel-2); color: var(--muted); transform: translate(-50%, -50%); }
.kn-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 10px 18px 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); }
.kn-lg { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.kn-lg b { margin-right: 2px; color: var(--muted); font-weight: 600; }
.kn-lg .kg-dot { margin-left: 6px; }
@media (max-width: 900px) {
  .kn-graph .card-head .search { width: 100%; }
  .kn-stage { height: 60vh; min-height: 380px; }
  .kn-panel { top: auto; left: 8px; right: 8px; width: auto; max-height: 60%; }
}
@media (prefers-reduced-motion: reduce) { .kg-node, .kg-edge { transition: none; } }

/* 核实与复核（2026-11-12） */
.verify-cycles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; margin-bottom: 8px; }
.gd-facts.vf b { white-space: normal; overflow-wrap: anywhere; }
.gd-facts .sub { color: var(--muted); font-size: 12px; font-style: normal; }
.gd-facts.vf { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
/* 审核中心：投稿的模板、技能包（2026-11-12） */
.kv-list { display: grid; gap: 6px; }
.kv-r { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.6; }
.kv-r span { color: var(--muted); }
.kv-r b { font-weight: 500; overflow-wrap: anywhere; }
