/* ============================================================
   运维智能体 · 手机端演示（H5）
   手机优先；桌面打开时自动包一层手机外框，方便投屏演示
   ============================================================ */

:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --ink: #0f1b2d;
  --ink-2: #33445c;
  --muted: #7c8a9c;
  --faint: #a3b0c0;
  --line: #e6ecf4;
  --line-2: #d8e3f0;

  --accent: #0ea5e9;
  --accent-2: #22d3ee;
  --deep: #0369a1;
  --soft: #eaf7ff;
  --soft-line: #bfe5fb;

  --nav: #0a1526;
  --nav-2: #10233c;
  --nav-text: rgba(214, 231, 248, 0.78);

  --green: #047857; --green-soft: #ecfdf5; --green-line: #b7ebd2;
  --red: #b91c1c; --red-soft: #fef2f2; --red-line: #fbcfcf;
  --amber: #b45309; --amber-soft: #fffbeb; --amber-line: #fbe3b3;

  --r: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(15,27,45,.04), 0 8px 22px -14px rgba(15,27,45,.28);
  --tab-h: 56px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button { font: inherit; color: inherit; border: none; background: none; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
p { margin: 0 0 10px; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding-left: 18px; }
li { margin-bottom: 4px; }
.mono { font-family: "SFMono-Regular", Consolas, monospace; font-size: .86em; }

/* ---------- 手机外框（仅桌面） ---------- */
.app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
@media (min-width: 560px) {
  body {
    display: grid;
    place-items: center;
    background:
      radial-gradient(900px 520px at 20% -10%, rgba(34,211,238,.16), transparent 60%),
      radial-gradient(700px 420px at 100% 100%, rgba(99,102,241,.14), transparent 60%),
      #0b1626;
  }
  .app {
    width: 420px;
    height: min(872px, calc(100vh - 48px));
    min-height: 0;
    border-radius: 40px;
    border: 9px solid #0a1526;
    box-shadow: 0 40px 90px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(148,197,255,.14);
  }
}

/* ---------- 通用 ---------- */
.screen { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 14px calc(var(--tab-h) + 22px); }
.scroll.no-tab { padding-bottom: 22px; }

.topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.topbar h1 { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.topbar .sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.topbar .grow { flex: 1; min-width: 0; }
.topbar .back {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: #f1f5fa; flex: 0 0 auto; font-size: 17px; color: var(--ink-2);
}
.topbar .back:active { background: #e6edf6; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px; margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.card.flat { box-shadow: none; }
.card-t { font-size: 13px; font-weight: 650; margin: 0 0 8px; display: flex; align-items: center; gap: 6px; }
.card-t .hint-x { font-weight: 400; font-size: 11px; color: var(--muted); margin-left: auto; }
.note { font-size: 11.5px; color: var(--muted); line-height: 1.65; }
.note b { color: var(--ink-2); }

.tag {
  display: inline-block; padding: 1px 7px; border-radius: 999px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .04em;
  background: #eef3f9; color: var(--muted); border: 1px solid transparent;
  vertical-align: 1px;
}
.tag.pass { background: var(--green-soft); color: var(--green); border-color: var(--green-line); }
.tag.reject { background: var(--red-soft); color: var(--red); border-color: var(--red-line); }
.tag.review { background: var(--amber-soft); color: var(--amber); border-color: var(--amber-line); }
.tag.clause { background: var(--soft); color: var(--deep); border-color: var(--soft-line); }

.btn {
  display: block; width: 100%; padding: 13px;
  border-radius: 12px; font-size: 15px; font-weight: 650;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff; box-shadow: 0 8px 20px -10px rgba(2,132,199,.8);
}
.btn:active { transform: translateY(1px); }
.btn.ghost { background: #fff; color: var(--deep); border: 1px solid var(--soft-line); box-shadow: none; }
.btn.sm { padding: 9px; font-size: 13px; border-radius: 10px; }

/* ---------- 登录 ---------- */
.login {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 32px 26px; color: #eaf4ff;
  background:
    radial-gradient(520px 380px at 12% 0%, rgba(34,211,238,.22), transparent 62%),
    radial-gradient(460px 340px at 100% 100%, rgba(99,102,241,.22), transparent 60%),
    linear-gradient(165deg, #0a1526, #0d1f36 60%, #0a1526);
}
.login .mark {
  width: 56px; height: 56px; border-radius: 17px;
  display: grid; place-items: center; font-size: 26px; font-weight: 700;
  background: linear-gradient(140deg, #22d3ee, #0ea5e9); color: #04202f;
  box-shadow: 0 12px 30px -12px rgba(34,211,238,.8);
  margin-bottom: 18px;
}
.login h1 { margin: 0; font-size: 25px; letter-spacing: -.02em; }
.login .sl { font-size: 12.5px; color: var(--nav-text); margin: 6px 0 30px; }
.login .fld { margin-bottom: 12px; }
.login .fld label { display: block; font-size: 11px; color: rgba(190,214,240,.7); margin-bottom: 5px; }
.login .fld input {
  width: 100%; padding: 13px 14px; border-radius: 12px;
  border: 1px solid rgba(148,197,255,.22);
  background: rgba(255,255,255,.07); color: #eaf4ff; font-size: 15px;
}
.login .fld input:focus { outline: none; border-color: rgba(34,211,238,.7); background: rgba(255,255,255,.11); }
.login .btn { margin-top: 8px; }
.login .hint { font-size: 11.5px; color: rgba(170,199,230,.65); margin-top: 14px; text-align: center; }
.login .hint code { color: #67e8f9; }
.login .foot { margin-top: 34px; font-size: 10.5px; color: rgba(150,180,215,.5); text-align: center; }

/* ---------- 底部 Tab ---------- */
.tabbar {
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  flex: 0 0 auto;
  z-index: 30;
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 10px; color: var(--faint);
  position: relative;
}
.tab svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab.on { color: var(--accent); }
.tab.on::before {
  content: ""; position: absolute; top: 0; width: 22px; height: 2.5px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}
.tab .dot { position: absolute; top: 9px; right: calc(50% - 15px); width: 6px; height: 6px; border-radius: 50%; background: #f97316; }

/* ---------- 对话 ---------- */
.hello {
  border-radius: var(--r); padding: 14px; margin-bottom: 12px;
  background: linear-gradient(150deg, #0d2135, #11304c); color: #e6f3ff;
  box-shadow: 0 14px 30px -20px rgba(10,21,38,.9);
}
.hello b { font-size: 14.5px; }
.hello p { font-size: 11.5px; color: rgba(206,228,248,.8); margin-top: 6px; line-height: 1.7; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 9px 13px; border-radius: 999px;
  background: #fff; border: 1px solid var(--soft-line); color: var(--deep);
  font-size: 12px; max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chip:active { background: var(--soft); }

.msg { display: flex; flex-direction: column; margin-bottom: 14px; }
.msg.me { align-items: flex-end; }
.msg .who { font-size: 10px; color: var(--faint); margin-bottom: 4px; padding: 0 4px; }
.bubble {
  max-width: 88%; padding: 11px 13px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2); line-height: 1.72;
  box-shadow: 0 1px 2px rgba(15,27,45,.03);
}
.msg.me .bubble {
  background: linear-gradient(135deg, #0ea5e9, #0284c7); color: #fff;
  border-color: transparent; border-bottom-right-radius: 5px;
}
.bubble.typing { color: var(--muted); font-size: 12.5px; }

.vcard {
  margin-top: 9px; border-radius: 12px; border: 1px solid var(--line);
  background: #fbfdff; overflow: hidden;
}
.vcard .vh { display: flex; align-items: center; gap: 7px; padding: 9px 11px; border-bottom: 1px solid var(--line); }
.vcard .vh b { font-size: 12px; font-weight: 650; flex: 1; line-height: 1.45; }
.vcard .vb { padding: 9px 11px; font-size: 11.5px; color: var(--ink-2); }
.vcard .vf { display: flex; gap: 6px; padding: 8px 11px; border-top: 1px solid var(--line); background: #fff; }

.composer {
  display: flex; gap: 8px; align-items: flex-end;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  flex: 0 0 auto;
}
.composer textarea {
  flex: 1; resize: none; border: 1px solid var(--line-2); border-radius: 12px;
  padding: 10px 12px; font-size: 13.5px; background: #f8fbff; max-height: 92px;
}
.composer textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.composer .send {
  width: 44px; height: 42px; border-radius: 12px; flex: 0 0 auto;
  background: linear-gradient(135deg,#0ea5e9,#0284c7); color: #fff;
  font-size: 12px; font-weight: 650;
}
.composer .send:disabled { background: #dbe6f2; color: #9fb0c4; }

/* ---------- 批次 ---------- */
.bcard { cursor: pointer; }
.bcard .bh { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.bcard .bh .id { font-size: 10px; color: var(--faint); font-family: "SFMono-Regular", Consolas, monospace; }
.bcard .bh .tag { margin-left: auto; }
.bcard .bt { font-size: 13.5px; font-weight: 620; line-height: 1.45; }
.bcard .bm { font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.bstats { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: 11px; }
.bstats div { background: #f7faff; border-radius: 9px; padding: 7px 8px; }
.bstats b { display: block; font-size: 16px; line-height: 1.2; }
.bstats span { font-size: 9.5px; color: var(--muted); }
.bstats .p b { color: var(--green); }
.bstats .r b { color: var(--red); }
.bstats .w b { color: var(--amber); }

.segs { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.segs::-webkit-scrollbar { display: none; }
.seg {
  flex: 0 0 auto; padding: 7px 12px; border-radius: 999px; font-size: 12px;
  background: #fff; border: 1px solid var(--line); color: var(--muted);
}
.seg.on { background: var(--nav); border-color: var(--nav); color: #fff; font-weight: 600; }

.item {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 10px;
  padding: 12px 13px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 8px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(15,27,45,.03);
}
.item:active { background: #fbfdff; }
.item .t { font-size: 13px; font-weight: 600; line-height: 1.45; }
.item .m { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.item .clc { font-size: 9.5px; color: var(--faint); font-family: "SFMono-Regular", Consolas, monospace; }

/* ---------- 单册证据链 ---------- */
.vbanner {
  border-radius: var(--r); padding: 14px; margin-bottom: 12px;
  border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow);
}
.vbanner .row { display: flex; align-items: center; gap: 8px; }
.vbanner .big { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.vbanner .meta { font-size: 10.5px; color: var(--muted); margin-top: 6px; }
.vbanner.pass { background: linear-gradient(150deg,#f0fdf7,#fff 65%); border-color: var(--green-line); }
.vbanner.reject { background: linear-gradient(150deg,#fff5f5,#fff 65%); border-color: var(--red-line); }
.vbanner.review { background: linear-gradient(150deg,#fffbf0,#fff 65%); border-color: var(--amber-line); }

.facts2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 10px 0 4px; }
.facts2 div { font-size: 11.5px; }
.facts2 label { display: block; font-size: 9.5px; color: var(--faint); }
.facts2 span { color: var(--ink-2); }

.rail { position: relative; padding-left: 18px; }
.rail::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(180deg, var(--soft-line), #eef3f9);
}
.stage { position: relative; margin-bottom: 10px; }
.stage::before {
  content: ""; position: absolute; left: -16px; top: 15px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #fff; border: 2px solid var(--accent);
}
.stage.hit::before { border-color: var(--red); }
.stage .box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; }
.stage .st { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.stage .st b { font-size: 12px; font-weight: 650; }
.stage .st span { font-size: 10.5px; color: var(--deep); margin-left: auto; text-align: right; }
.stage .txt { font-size: 11.5px; color: var(--ink-2); line-height: 1.7; }
.stage ul { margin: 6px 0 0; padding-left: 15px; }
.stage li { font-size: 11px; color: var(--ink-2); line-height: 1.65; margin-bottom: 3px; }
.stage .src { font-size: 9.5px; color: var(--faint); margin-top: 6px; }

.actions { display: flex; gap: 8px; margin-top: 4px; }
.actions .btn { flex: 1; }

/* ---------- 书单 ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 12px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; }
.kpi label { font-size: 10px; color: var(--muted); }
.kpi b { display: block; font-size: 21px; line-height: 1.35; letter-spacing: -.02em; }
.kpi i { display: block; font-style: normal; font-size: 9.5px; color: var(--faint); }

.src {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 12px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 8px;
}
.src .ico {
  width: 32px; height: 32px; border-radius: 9px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: var(--soft); color: var(--deep); border: 1px solid var(--soft-line);
}
.src b { display: block; font-size: 12.5px; font-weight: 620; line-height: 1.4; }
.src small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.src .r { margin-left: auto; text-align: right; flex: 0 0 auto; }
.src .r em { font-style: normal; display: block; font-size: 14px; font-weight: 700; color: var(--deep); font-family: "SFMono-Regular", Consolas, monospace; }
.src .r span { font-size: 9px; color: var(--faint); }

/* ---------- 设备 ---------- */
.tk {
  background: #fff; border: 1px solid var(--line); border-radius: 13px;
  padding: 12px 13px; margin-bottom: 9px; border-left: 3px solid var(--soft-line);
  box-shadow: 0 1px 2px rgba(15,27,45,.03);
}
.tk.late { border-left-color: #ef4444; }
.tk .th { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.tk .th .id { font-size: 9.5px; color: var(--faint); font-family: "SFMono-Regular", Consolas, monospace; margin-right: auto; }
.tk .sla { font-size: 9.5px; color: var(--muted); font-family: "SFMono-Regular", Consolas, monospace; }
.tk .sla.late { color: var(--red); }
.tk .dev { font-size: 13.5px; font-weight: 630; }
.tk .dev small { display: block; font-size: 10.5px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.tk .quote { font-size: 11.5px; color: var(--ink-2); margin: 8px 0; padding: 8px 10px; background: #f8fbff; border-radius: 8px; line-height: 1.6; }
.tk .ai { display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: var(--muted); flex-wrap: wrap; }
.tk .ai .lv { padding: 1px 6px; border-radius: 5px; background: var(--soft); color: var(--deep); font-weight: 700; }
.tk .ai b { color: var(--deep); }

.tl { list-style: none; padding: 0; margin: 0; }
.tl li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 11px; }
.tl li:last-child { border-bottom: none; }
.tl .t { color: var(--faint); font-family: "SFMono-Regular", Consolas, monospace; font-size: 9.5px; }
.tl .x { color: var(--ink-2); line-height: 1.6; }
.tl .w { color: var(--deep); font-weight: 600; }

/* ---------- 扫码上报 ---------- */
.scan-head {
  border-radius: var(--r); padding: 14px; margin-bottom: 12px; color: #eaf6ff;
  background: linear-gradient(150deg, #0d2135, #12334f);
}
.scan-head b { font-size: 16px; }
.scan-head p { font-size: 11px; color: rgba(206,228,248,.78); margin-top: 3px; }
.slabel { font-size: 11.5px; font-weight: 650; margin: 14px 0 7px; display: flex; align-items: center; gap: 6px; }
.slabel em { font-style: normal; font-size: 9.5px; color: var(--red); background: var(--red-soft); padding: 1px 6px; border-radius: 999px; }
.slabel i { font-style: normal; color: var(--faint); font-weight: 400; font-size: 10px; margin-left: auto; }
.shotbox {
  border: 1.5px dashed var(--line-2); border-radius: 12px; background: #fafcff;
  height: 132px; display: grid; place-items: center; text-align: center; color: var(--muted);
}
.shotbox .plus { font-size: 26px; color: var(--faint); line-height: 1; }
.shotbox i { font-style: normal; font-size: 11px; display: block; margin-top: 6px; }
.shotbox.filled { border-style: solid; border-color: var(--soft-line); background: #0f1b2d; color: #cfe6f8; }
.shotbox .fake { font-size: 12px; }
.shotbox .fake small { display: block; font-size: 10px; color: #7fb6d8; margin-top: 4px; font-family: "SFMono-Regular", Consolas, monospace; }
.syms { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sym {
  padding: 11px 8px; border-radius: 11px; border: 1px solid var(--line);
  background: #fff; font-size: 12px; color: var(--ink-2);
}
.sym.on { border-color: var(--accent); background: var(--soft); color: var(--deep); font-weight: 650; }
.sinput {
  width: 100%; border: 1px solid var(--line-2); border-radius: 11px;
  padding: 11px 12px; font-size: 13px; background: #fff; resize: none;
}
.sinput:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,165,233,.1); }

.done { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 26px; }
.done .ok {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  font-size: 30px; color: #fff; margin-bottom: 16px;
  background: linear-gradient(140deg,#10b981,#059669);
  box-shadow: 0 14px 30px -12px rgba(5,150,105,.7);
}
.done h3 { margin: 0 0 6px; font-size: 18px; }
.done p { font-size: 12.5px; color: var(--muted); }
.done .box { width: 100%; margin: 18px 0 12px; }
.done .box div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 12px; }
.done .box div:last-child { border-bottom: none; }
.done .box span { color: var(--muted); }

/* ---------- 我的 ---------- */
.me-card { display: flex; align-items: center; gap: 12px; }
.me-card .av {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(140deg,#22d3ee,#0ea5e9); color: #04202f; font-weight: 700; font-size: 17px;
}
.me-card b { font-size: 15px; }
.me-card small { display: block; font-size: 11px; color: var(--muted); }
.rows { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 12px; }
.row-i { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.row-i:last-child { border-bottom: none; }
.row-i span { color: var(--muted); margin-left: auto; font-size: 12px; }

.toast {
  position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%);
  background: rgba(15,27,45,.92); color: #fff; font-size: 12.5px;
  padding: 9px 16px; border-radius: 999px; z-index: 100; white-space: nowrap;
  animation: tin .2s ease;
}
@keyframes tin { from { opacity: 0; transform: translate(-50%, 6px); } }

.page-in { animation: pin .18s ease; }
@keyframes pin { from { opacity: .4; transform: translateX(14px); } }

@media (max-width: 360px) {
  body { font-size: 14px; }
  .grid2 { gap: 7px; }
}

/* ============================================================
   运维智能体 · 追加组件
   ============================================================ */

.tag.warn { background: var(--amber-soft); color: var(--amber); border-color: var(--amber-line); }
.tag.info { background: var(--soft); color: var(--deep); border-color: var(--soft-line); }
.tag.purple { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }

.quote {
  font-size: 12px; color: var(--ink-2); line-height: 1.7;
  background: #f8fbff; border-radius: 9px; padding: 9px 11px;
}

/* 五级阶梯 */
.ladder { margin-top: 2px; }
.ladder .lv {
  display: grid; grid-template-columns: 32px 1fr; gap: 9px; align-items: start;
  padding: 9px 0; border-bottom: 1px dashed var(--line);
}
.ladder .lv:last-child { border-bottom: none; }
.ladder .k {
  font-style: normal; font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10.5px; font-weight: 700; color: var(--deep);
  background: var(--soft); border: 1px solid var(--soft-line); border-radius: 6px;
  height: 20px; display: grid; place-items: center; margin-top: 1px;
}
.ladder .m b { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 620; }
.ladder .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ladder .pp { flex: 0 0 auto; }
.ladder .pp {
  font-style: normal; font-size: 9.5px; font-weight: 700; color: var(--deep);
  background: var(--soft); border-radius: 999px; padding: 1px 6px;
}
.ladder .m small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }

/* 14 天柱状 */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 58px; margin-top: 6px; }
.bars i {
  flex: 1; min-height: 4px; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #22d3ee, #0ea5e9);
}
.barx { display: flex; justify-content: space-between; font-size: 9px; color: var(--faint); margin-top: 6px; }

/* 迷你待办 */
.mini {
  padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: 7px; background: #fbfdff; cursor: pointer;
}
.mini:active { background: var(--soft); }
.mini b { display: block; font-size: 12.5px; font-weight: 620; }
.mini small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }

/* 普通列表 */
ul.plain, ol.plain { margin: 0; }
ul.plain { list-style: none; padding-left: 0; }
ul.plain li {
  font-size: 11.5px; color: var(--ink-2); line-height: 1.7;
  margin-bottom: 5px; padding-left: 12px; position: relative;
}
ul.plain li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent-2);
}
ol.plain { padding-left: 17px; }
ol.plain li { font-size: 11.5px; color: var(--ink-2); line-height: 1.75; margin-bottom: 5px; }

/* 责任矩阵 */
.matrix { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.matrix:last-child { border-bottom: none; }
.matrix b { display: block; font-size: 12px; font-weight: 620; }
.matrix span { font-size: 11.5px; color: var(--deep); }
.matrix em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 6px; }
.matrix small { display: block; font-size: 10px; color: var(--faint); margin-top: 2px; }

/* 初判块 */
.aibox { background: #f7faff; border-radius: 9px; padding: 9px 11px; }
.ailine { display: flex; font-size: 11.5px; padding: 3px 0; }
.ailine b { width: 66px; font-weight: 400; color: var(--muted); flex: 0 0 auto; }
.ailine span { color: var(--ink-2); font-weight: 600; }

/* 二维码 */
.qrbox {
  width: 92px; height: 92px; flex: 0 0 auto; padding: 7px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
}
.qr { width: 100%; height: 100%; fill: #0f1b2d; display: block; }

/* ---------- 并入提示 ---------- */
.merged {
  display: block; margin: 14px 0 0; padding: 8px 12px; border-radius: 9px;
  font-size: 10.5px; line-height: 1.5; text-decoration: none; text-align: center;
  color: #0b6ea8; background: #eaf4fd; border: 1px solid #d3e6f8;
}
.merged em { font-style: normal; font-weight: 700; }
.ommerge {
  display: flex; align-items: center; gap: 6px; flex: 0 0 auto;
  padding: 6px 14px; font-size: 10px; color: #5b7893;
  background: #eef6fd; border-bottom: 1px solid #dbe9f6;
}
.ommerge span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ommerge a { margin-left: auto; flex: 0 0 auto; color: #0b6ea8; font-weight: 650; text-decoration: none; }
