/* ============ 标智 BidPilot · 界面原型样式 ============ */
* { box-sizing: border-box; }

:root {
  --bg: #f4f6fb;
  --panel: #fff;
  --ink: #0f172a;
  --ink2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e6e9f0;
  --line2: #eef1f6;
  --brand: #1f4fd8;
  --brand2: #3b74f5;
  --brand-ink: #1739a8;
  --brand-soft: #edf2ff;
  --ok: #06875b;
  --ok-soft: #e6f7ef;
  --warn: #b76e00;
  --warn-soft: #fff5e0;
  --bad: #cf2b21;
  --bad-soft: #feeceb;
  --violet: #6a3fc9;
  --violet-soft: #f3eeff;
  --cyan: #0b6f8f;
  --cyan-soft: #e6f6fb;
  --r: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 1px 3px rgba(15, 23, 42, .05), 0 14px 30px -22px rgba(15, 23, 42, .5);
}

html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 13px/1.65 "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #cbd3e1; border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 顶栏 ---------- */
.topbar {
  height: 56px; display: flex; align-items: center; gap: 14px; padding: 0 16px;
  background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14.5px; letter-spacing: .3px; }
.logo {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, #1f4fd8, #5d8dff);
  display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800;
  box-shadow: 0 4px 10px -4px rgba(31, 79, 216, .8);
}
.brand small { display: block; font-size: 10px; font-weight: 500; color: var(--faint); letter-spacing: 1.4px; line-height: 1; margin-top: 2px; }
.top-sep { width: 1px; height: 20px; background: var(--line); margin: 0 2px; }
.top-search {
  display: flex; align-items: center; gap: 7px; width: 300px; height: 32px; padding: 0 10px;
  background: #f6f8fc; border: 1px solid transparent; border-radius: 8px; color: var(--faint); font-size: 12.5px;
}
.top-search:hover { border-color: var(--line); }
.top-space { flex: 1; }
.top-item { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 9px; border-radius: 8px; color: var(--muted); font-size: 12.5px; cursor: pointer; }
.top-item:hover { background: #f5f7fb; color: var(--ink2); }
.dot-live { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(6, 135, 91, .12); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #334155, #64748b); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.proto-tag { font-size: 10.5px; color: var(--brand-ink); background: var(--brand-soft); border: 1px solid #d6e0ff; padding: 1px 7px; border-radius: 20px; letter-spacing: .5px; }

/* ---------- 框架 ---------- */
.shell { display: flex; min-height: calc(100vh - 56px); }
.sidebar {
  width: 214px; flex: 0 0 214px; background: #fff; border-right: 1px solid var(--line);
  padding: 14px 10px 18px; position: sticky; top: 56px; height: calc(100vh - 56px);
  display: flex; flex-direction: column; overflow: auto;
}
.nav-label { font-size: 10.5px; color: var(--faint); letter-spacing: 1.2px; padding: 12px 10px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px;
  color: var(--ink2); cursor: pointer; font-size: 13px; white-space: nowrap;
}
.nav-item svg { color: var(--faint); flex: none; }
.nav-item:hover { background: #f6f8fc; }
.nav-item:hover svg { color: var(--ink2); }
.nav-item.active { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.nav-item.active svg { color: var(--brand); }
.nav-badge { margin-left: auto; font-size: 10.5px; background: #f1f3f9; color: var(--muted); border-radius: 20px; padding: 0 6px; min-width: 18px; text-align: center; }
.nav-item.active .nav-badge { background: #dfe7ff; color: var(--brand-ink); }
.side-foot { margin-top: auto; padding: 10px; border-radius: 10px; background: linear-gradient(160deg, #f7f9ff, #eef3ff); border: 1px solid #e2e9fd; }
.side-foot b { display: block; font-size: 12px; color: var(--brand-ink); margin-bottom: 2px; }
.side-foot span { font-size: 11px; color: var(--muted); line-height: 1.5; }

.main { flex: 1; min-width: 0; height: calc(100vh - 56px); overflow: auto; padding: 20px 24px 46px; }
.main.flush { padding: 0; overflow: hidden; }

/* ---------- 页头 ---------- */
.crumb { font-size: 12px; color: var(--faint); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.crumb b { color: var(--muted); font-weight: 500; }
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.page-head h1 { font-size: 19px; margin: 0 0 3px; font-weight: 650; letter-spacing: .2px; display: flex; align-items: center; gap: 9px; }
.page-head .sub { font-size: 12.5px; color: var(--muted); }
.page-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border: 1px solid var(--line); background: #fff; border-radius: 8px; font-size: 12.5px;
  color: var(--ink2); cursor: pointer; white-space: nowrap; transition: .14s;
}
.btn:hover { border-color: #cfd7e6; background: #fbfcfe; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 14px -8px rgba(31, 79, 216, .9); }
.btn.primary:hover { background: #1a45c0; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { background: #f4f6fb; color: var(--ink2); }
.btn.sm { height: 27px; padding: 0 9px; font-size: 12px; border-radius: 7px; }
.btn.danger { color: var(--bad); border-color: #f6cfcc; background: #fffafa; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- 通用块 ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line2); }
.card-head h3 { margin: 0; font-size: 13.5px; font-weight: 650; }
.card-head .hint { font-size: 11.5px; color: var(--faint); }
.card-head .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.card-body { padding: 14px 16px; }
.card-body.flush { padding: 0; }
.grid { display: grid; gap: 14px; }
.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)); }
.row { display: flex; align-items: center; gap: 8px; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.tiny { font-size: 11.5px; }
.mono { font-family: "Cascadia Mono", Consolas, "SF Mono", monospace; font-size: 12px; }

/* ---------- KPI ---------- */
.kpi { padding: 14px 16px; }
.kpi .lab { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi .val { font-size: 26px; font-weight: 680; letter-spacing: -.4px; line-height: 1.25; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .val small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.kpi .trend { font-size: 11.5px; margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.up { color: var(--ok); } .down { color: var(--bad); }
.kpi-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; margin-left: auto; }

/* ---------- 标签 ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.b-ok { background: var(--ok-soft); color: var(--ok); }
.b-warn { background: var(--warn-soft); color: var(--warn); }
.b-bad { background: var(--bad-soft); color: var(--bad); }
.b-info { background: var(--brand-soft); color: var(--brand-ink); }
.b-violet { background: var(--violet-soft); color: var(--violet); }
.b-gray { background: #f1f3f8; color: var(--muted); }
.b-cyan { background: var(--cyan-soft); color: var(--cyan); }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 5px; background: #f4f6fb; border: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.chip.on { background: var(--brand-soft); border-color: #d3dfff; color: var(--brand-ink); }
.kbd { font-size: 10.5px; padding: 1px 5px; border-radius: 4px; background: #f1f3f8; color: var(--muted); border: 1px solid var(--line); }

/* ---------- 进度 ---------- */
.bar { height: 6px; border-radius: 20px; background: #eef1f7; overflow: hidden; }
.row > .bar { flex: 1 1 auto; min-width: 28px; }
.bar > i { display: block; height: 100%; border-radius: 20px; background: linear-gradient(90deg, #3b74f5, #1f4fd8); }
.bar.ok > i { background: linear-gradient(90deg, #16b981, #06875b); }
.bar.warn > i { background: linear-gradient(90deg, #f7b955, #dc8a00); }
.bar.bad > i { background: linear-gradient(90deg, #f27a72, #cf2b21); }
.bar.sm { height: 4px; }

/* ---------- 表格 ---------- */
table.tb { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.tb th {
  text-align: left; font-weight: 600; color: var(--muted); background: #fafbfe;
  padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 11.5px; letter-spacing: .3px; white-space: nowrap;
}
table.tb td { padding: 10px 12px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
table.tb tbody tr:hover { background: #fbfcff; }
table.tb tr.total td { background: #fafbfe; font-weight: 650; border-top: 1px solid var(--line); }
table.tb .num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.center { text-align: center; }

/* ---------- 项目卡片 ---------- */
.pcard { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: .16s; }
.pcard:hover { border-color: #c9d6f7; box-shadow: 0 6px 20px -14px rgba(31, 79, 216, .6); transform: translateY(-1px); }
.pcard .t { font-size: 13.5px; font-weight: 650; line-height: 1.45; }
.pcard .meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11.5px; color: var(--faint); }
.pcard .foot { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--muted); }
.dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .6; }

/* ---------- 环形图 ---------- */
.donut { position: relative; width: 118px; height: 118px; flex: none; }
.donut::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--brand) 0 var(--p), #eef1f8 var(--p) 100%);
  -webkit-mask: none;
}
.donut .hole { position: absolute; inset: 14px; background: #fff; border-radius: 50%; display: grid; place-items: center; text-align: center; }
.donut .hole b { display: block; font-size: 21px; font-weight: 700; line-height: 1.15; letter-spacing: -.5px; }
.donut .hole span { display: block; font-size: 10.5px; color: var(--faint); line-height: 1.2; margin-top: 1px; }
.donut.sm { width: 84px; height: 84px; }
.donut.sm .hole { inset: 10px; }
.donut.sm .hole b { font-size: 15px; }

/* ---------- 流水线 ---------- */
.flow { display: flex; align-items: stretch; gap: 0; padding: 16px 6px 4px; }
.flow-step { flex: 1; position: relative; padding: 0 10px; text-align: center; min-width: 0; }
.flow-line { position: absolute; top: 15px; left: 50%; right: -50%; height: 2px; background: var(--line); z-index: 0; }
.flow-step:last-child .flow-line { display: none; }
.flow-line.done { background: #9fc0ff; }
.flow-node {
  position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; margin: 0 auto 7px;
  display: grid; place-items: center; background: #fff; border: 2px solid var(--line);
  color: var(--faint); font-size: 12px; font-weight: 700;
}
.flow-step.done .flow-node { background: var(--ok); border-color: var(--ok); color: #fff; }
.flow-step.cur .flow-node { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 4px rgba(31, 79, 216, .14); }
.flow-step.wait .flow-node { background: #fbfcfe; }
.flow-name { font-size: 12px; color: var(--ink2); font-weight: 500; }
.flow-step.cur .flow-name { color: var(--brand-ink); font-weight: 650; }
.flow-step.wait .flow-name { color: var(--faint); }
.flow-time { font-size: 10.5px; color: var(--faint); margin-top: 1px; }
.flow-gate { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: 9.5px; color: var(--warn); background: var(--warn-soft); border: 1px solid #ffe4b8; border-radius: 20px; padding: 0 5px; white-space: nowrap; }

/* ---------- 日志 ---------- */
.log { background: #0e1729; border-radius: 10px; padding: 10px 12px; font-family: "Cascadia Mono", Consolas, monospace; font-size: 11.5px; line-height: 1.85; color: #b9c6dd; height: 176px; overflow: hidden; }
.log .t { color: #61708c; margin-right: 8px; }
.log .ok { color: #6ee7a8; }
.log .run { color: #7fb2ff; }
.log .wrn { color: #fcd34d; }
.log .lv { color: #c4b5fd; }

/* ---------- 风险项 ---------- */
.risk { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.risk:last-child { border-bottom: 0; }
.risk .ico { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; flex: none; margin-top: 1px; }
.risk .tt { font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.risk .dd { font-size: 11.5px; color: var(--muted); line-height: 1.55; }

/* ---------- 分栏（解析页） ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 14px; align-items: start; }
.docview { background: #eef1f7; border-radius: 10px; padding: 14px; height: calc(100vh - 236px); overflow: auto; }
.page-sheet { background: #fff; box-shadow: 0 2px 10px rgba(15, 23, 42, .1); border-radius: 3px; padding: 30px 34px; font-family: "SimSun", "Songti SC", serif; font-size: 12.5px; line-height: 2; color: #26303f; }
.page-sheet h4 { font-family: "SimHei", "Microsoft YaHei", sans-serif; font-size: 13.5px; margin: 16px 0 8px; }
.page-sheet p { margin: 6px 0; }
.page-sheet .hl-star { background: #fff1d6; border-bottom: 1.5px solid #f0b44a; padding: 0 1px; }
.page-sheet .hl-ok { background: #e3f6ec; border-bottom: 1.5px solid #55c08b; padding: 0 1px; }
.page-sheet .pgno { text-align: center; color: #9aa5b5; font-size: 10px; margin-top: 22px; font-family: sans-serif; }
.docbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 12px; font-size: 12px; }

/* ---------- 要素列表 ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 0 8px; border-bottom: 1px solid var(--line); }
.tab { padding: 9px 9px; font-size: 12px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab:hover { color: var(--ink2); }
.tab.on { color: var(--brand-ink); font-weight: 600; border-bottom-color: var(--brand); }
.tab .n { font-size: 10.5px; background: #f1f3f9; border-radius: 20px; padding: 0 5px; margin-left: 4px; }
.tab.on .n { background: var(--brand-soft); }

.req { padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 8px; background: #fff; }
.req:hover { border-color: #cdd8f2; }
.req .top { display: flex; align-items: flex-start; gap: 7px; }
.req .txt { font-size: 12.5px; line-height: 1.6; flex: 1; }
.req .src { font-size: 11px; color: var(--faint); margin-top: 5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.req .star { color: #b45309; background: #fff3d6; border: 1px solid #f6d79a; border-radius: 4px; font-size: 10.5px; padding: 0 4px; font-weight: 700; }
.req .tri { color: #7c3aed; background: #f3eeff; border: 1px solid #ddd0fb; border-radius: 4px; font-size: 10.5px; padding: 0 4px; font-weight: 700; }
.conf { font-size: 10.5px; padding: 0 5px; border-radius: 4px; background: #f1f3f8; color: var(--muted); }
.conf.hi { background: var(--ok-soft); color: var(--ok); }
.conf.lo { background: var(--warn-soft); color: var(--warn); }

/* ---------- 大纲树 ---------- */
.tree { padding: 6px 4px; }
.tnode { display: flex; align-items: center; gap: 7px; padding: 7px 8px; border-radius: 7px; cursor: pointer; font-size: 12.5px; }
.tnode:hover { background: #f7f9fd; }
.tnode.on { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.tnode .caret { color: var(--faint); display: grid; place-items: center; width: 14px; }
.tnode .lvl1 { font-weight: 650; }
.tnode .wt { margin-left: auto; font-size: 10.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.tnode .stw { width: 5px; height: 5px; border-radius: 50%; }
.children { margin-left: 17px; border-left: 1px dashed var(--line); padding-left: 5px; }

/* ---------- 编辑器 ---------- */
.editor { display: grid; grid-template-columns: 244px minmax(0, 1fr) 336px; height: 100%; }
.ed-side { background: #fff; border-right: 1px solid var(--line); overflow: auto; }
.ed-right { background: #fff; border-left: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.ed-canvas { background: #e9edf5; overflow: auto; padding: 20px 24px 60px; }
.paper { background: #fff; max-width: 780px; margin: 0 auto; box-shadow: 0 4px 24px -8px rgba(15, 23, 42, .18); border-radius: 2px; padding: 46px 58px 64px; }
.paper .doc-title { font-family: "SimHei", "Microsoft YaHei", sans-serif; font-size: 19px; text-align: center; margin: 0 0 6px; letter-spacing: 1px; }
.paper .doc-sub { text-align: center; color: #8a94a6; font-size: 11px; font-family: sans-serif; letter-spacing: 2px; margin-bottom: 22px; }
.paper h2 { font-family: "SimHei", "Microsoft YaHei", sans-serif; font-size: 15px; margin: 22px 0 10px; }
.paper h3 { font-family: "SimHei", "Microsoft YaHei", sans-serif; font-size: 13.5px; margin: 16px 0 8px; }
.paper p { font-family: "SimSun", "Songti SC", serif; font-size: 13px; line-height: 2.05; text-indent: 2em; margin: 0 0 6px; color: #1f2937; text-align: justify; }
.paper .cite { font-family: sans-serif; font-size: 10px; color: var(--brand-ink); background: var(--brand-soft); border: 1px solid #d8e2ff; border-radius: 4px; padding: 0 4px; margin-left: 2px; vertical-align: 1px; cursor: pointer; }
.paper .flag { background: #fff6d8; border-bottom: 1px dashed #e8b64a; }
.paper table { width: 100%; border-collapse: collapse; margin: 10px 0; font-family: "SimSun", serif; font-size: 11.5px; }
.paper table th, .paper table td { border: 1px solid #c9cfda; padding: 5px 7px; }
.paper table th { background: #f4f6fa; font-weight: 600; }
.paper .cap { text-align: center; font-size: 11px; color: #6b7280; font-family: sans-serif; margin: 4px 0 12px; }
.ed-toolbar { display: flex; align-items: center; gap: 2px; padding: 7px 10px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.tool { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; color: var(--muted); cursor: pointer; }
.tool:hover { background: #f2f5fa; color: var(--ink); }
.tool.on { background: var(--brand-soft); color: var(--brand); }
.bubble { position: absolute; right: 0; top: 40px; display: flex; gap: 2px; background: #101828; color: #fff; border-radius: 8px; padding: 4px; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .5); font-size: 11.5px; }
.bubble span { padding: 3px 8px; border-radius: 5px; cursor: pointer; }
.bubble span:hover { background: rgba(255, 255, 255, .14); }

/* ---------- 右侧面板 ---------- */
.panel-tabs { display: flex; border-bottom: 1px solid var(--line); padding: 0 8px; }
.panel-tabs .tab { flex: 1; text-align: center; font-size: 12px; padding: 10px 4px; }
.panel-body { padding: 12px; overflow: auto; flex: 1; }
.msg { display: flex; gap: 8px; margin-bottom: 12px; }
.msg .who { width: 22px; height: 22px; border-radius: 6px; flex: none; display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.msg.ai .who { background: linear-gradient(135deg, #1f4fd8, #5d8dff); color: #fff; }
.msg.me .who { background: #eef1f7; color: var(--muted); }
.msg .bub { background: #f6f8fc; border-radius: 8px; padding: 8px 10px; font-size: 12px; line-height: 1.65; color: var(--ink2); }
.msg.me .bub { background: var(--brand-soft); color: var(--brand-ink); }
.asset { display: flex; gap: 9px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 8px; cursor: pointer; }
.asset:hover { border-color: #c9d6f7; background: #fbfcff; }
.asset .thumb { width: 44px; height: 34px; border-radius: 6px; background: #eef2ff; display: grid; place-items: center; color: var(--brand); flex: none; }
.asset .at { font-size: 12px; font-weight: 600; line-height: 1.45; }
.asset .am { font-size: 10.5px; color: var(--faint); margin-top: 2px; display: flex; gap: 6px; }

/* ---------- 合规 ---------- */
.chk { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 8px; background: #fff; }
.chk .ic { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-top: 1px; }
.chk.pass .ic { background: var(--ok-soft); color: var(--ok); }
.chk.warn .ic { background: var(--warn-soft); color: var(--warn); }
.chk.fail .ic { background: var(--bad-soft); color: var(--bad); }
.chk .tt { font-size: 12.5px; font-weight: 600; }
.chk .dd { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.6; }
.chk .act { margin-left: auto; flex: none; }

/* ---------- 导出预览 ---------- */
.cover { width: 100%; aspect-ratio: 1 / 1.414; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 26px -16px rgba(15, 23, 42, .6); padding: 22px 18px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cover .m1 { font-family: "SimHei", sans-serif; font-size: 13px; letter-spacing: 4px; color: #1f2937; }
.cover .line { width: 36px; height: 2px; background: #1f4fd8; margin: 10px 0 14px; }
.cover .m2 { font-family: "SimHei", sans-serif; font-size: 15px; font-weight: 700; line-height: 1.7; color: #0f172a; }
.cover .m3 { font-size: 9.5px; color: #64748b; margin-top: 8px; }
.cover .seal { width: 52px; height: 52px; border: 2px solid #cf2b21; border-radius: 50%; color: #cf2b21; display: grid; place-items: center; font-size: 8px; margin-top: auto; opacity: .75; transform: rotate(-8deg); font-weight: 700; line-height: 1.2; }
.cover .date { font-size: 9px; color: #64748b; margin-top: 8px; }

/* ---------- 知识库 ---------- */
.kcat { padding: 13px 14px; cursor: pointer; transition: .15s; }
.kcat:hover { border-color: #c9d6f7; transform: translateY(-1px); }
.kcat .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; }
.kcat .n { font-size: 13px; font-weight: 650; margin-top: 9px; }
.kcat .d { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.kcat .b { font-size: 11px; color: var(--faint); margin-top: 8px; display: flex; align-items: center; gap: 5px; }

/* ---------- 弹窗 ---------- */
.overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .42); backdrop-filter: blur(2px); z-index: 90; display: grid; place-items: center; padding: 24px; }
.modal { width: 620px; max-width: 100%; max-height: 92vh; background: #fff; border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .55); overflow: hidden; display: flex; flex-direction: column; }
.modal-head { padding: 16px 20px 12px; display: flex; align-items: center; flex: none; }
.modal-head h2 { margin: 0; font-size: 15px; font-weight: 650; }
.modal-body { padding: 4px 20px 18px; overflow: auto; }
.modal-foot { padding: 12px 20px; border-top: 1px solid var(--line2); display: flex; align-items: center; gap: 8px; background: #fbfcfe; flex: none; }
.drop { border: 1.5px dashed #c3d0ee; background: #f8faff; border-radius: 11px; padding: 22px; text-align: center; }
.drop .ic { width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; margin: 0 auto 8px; color: var(--brand); }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 5px; }
.input { height: 34px; border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; padding: 0 10px; font-size: 12.5px; color: var(--ink2); background: #fff; }
.input.ph { color: var(--faint); }
.seg { display: inline-flex; background: #f2f4f9; border-radius: 8px; padding: 2px; gap: 2px; }
.seg span { padding: 5px 10px; border-radius: 6px; font-size: 12px; color: var(--muted); cursor: pointer; }
.seg span.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 600; }

/* ---------- 其它 ---------- */
.hr { height: 1px; background: var(--line2); margin: 12px 0; }
.sect-title { font-size: 12px; font-weight: 650; color: var(--ink2); display: flex; align-items: center; gap: 7px; margin: 16px 0 9px; }
.sect-title:first-child { margin-top: 0; }
.note { background: #f7f9ff; border: 1px solid #e1e9ff; border-radius: 9px; padding: 10px 12px; font-size: 11.5px; color: #3b4a6b; line-height: 1.65; }
.note b { color: var(--brand-ink); }
.legend { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--muted); }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 4px; }
.hstack { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.empty { padding: 40px; text-align: center; color: var(--faint); font-size: 12.5px; }
.pill-row { display: flex; gap: 6px; flex-wrap: wrap; }
.codeblock {
  background: #0e1729; color: #b9c6dd; border-radius: 9px; padding: 10px 12px;
  font-family: "Cascadia Mono", Consolas, "SF Mono", monospace;
  font-size: 10.5px; line-height: 1.75; overflow: auto; max-height: 214px; white-space: pre;
}
.topnav-link { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; cursor: pointer; }
