/* 产品验收面板（#/panel/<需求 id>，static/brief-panel.js）。灰色调为主，品牌紫只用在对应关系虚线和选中态（同 unslop 规则）。 */
.bp-page { max-width: 100%; min-width: 0; }
.bp-page > a.muted { display: inline-block; margin-bottom: 8px; }
.bp-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.bp-title { flex: 1; min-width: 0; }
.bp-title h1 { font-size: 20px; line-height: 1.4; margin: 0; color: var(--t1); overflow-wrap: anywhere; }
.bp-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; color: var(--t3); font-size: 12px; }
.bp-summary { margin: 0 0 12px; color: var(--t2); max-width: 900px; }
.bp-errs { margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.bp-empty { max-width: 640px; margin-top: 12px; }
.bp-empty p { margin: 8px 0 0; }

.bp-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 12px; }
.bp-lanes { display: flex; gap: 6px; flex-wrap: wrap; }
.bp-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--ctl-line, var(--line)); background: var(--surface); color: var(--t3); font-size: 12px; cursor: pointer; }
.bp-chip i { width: 8px; height: 8px; border-radius: 50%; opacity: .35; }
.bp-chip em { font-style: normal; color: var(--t3); font-size: 11px; }
.bp-chip.on { color: var(--t1); background: var(--neutral-bg); border-color: transparent; }
.bp-chip.on i { opacity: 1; }
.bp-chip:hover { border-color: var(--ctl-line-hover, var(--line)); }
.bp-chip:focus-visible, .bp-node:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.bp-legend { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.bp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bp-leg-edge { stroke: var(--t3); stroke-width: 1.5; }
.bp-leg-link { stroke: var(--brand); stroke-width: 1.5; stroke-dasharray: 4 3; }

.bp-scroll { overflow: auto; border: 1px solid var(--hairline); border-radius: 12px; background: var(--page); max-height: calc(100vh - 220px); min-height: 200px; }
.bp-canvas { position: relative; min-width: 100%; }
.bp-none { padding: 24px; }
.bp-lane-bg { position: absolute; left: 0; right: 0; border-bottom: 1px dashed var(--line); pointer-events: none; }
.bp-lane-bg:last-of-type { border-bottom: 0; }
.bp-lane-label { position: sticky; left: 0; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: 12px; font-weight: 600; color: var(--t2); background: var(--page); border-radius: 0 8px 8px 0; z-index: 3; }
.bp-lane-label i, .bp-lb-lane i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.bp-node { position: absolute; width: 204px; padding: 10px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; box-shadow: var(--shadow-sm); cursor: zoom-in; z-index: 2; transition: box-shadow .15s, opacity .15s, border-color .15s; }
.bp-node:hover { box-shadow: var(--shadow-hover); border-color: var(--ctl-line-hover, var(--line)); }
.bp-node.bp-noshot { cursor: pointer; border-style: dashed; }
.bp-node-head { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 8px; }
.bp-node-head b { flex: 1; min-width: 0; font-size: 13px; line-height: 1.4; color: var(--t1); overflow-wrap: anywhere; }
.bp-status { flex: none; font-size: 11px; line-height: 18px; padding: 0 6px; border-radius: 6px; background: var(--neutral-bg); color: var(--t2); font-weight: 500; }
.bp-thumb { display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; overflow: hidden; background: var(--neutral-bg); }
.bp-phone .bp-thumb { width: 100px; height: 208px; border-radius: 16px; border: 3px solid var(--t1); }
.bp-desktop .bp-thumb { width: 100%; height: 124px; border-radius: 6px; border: 1px solid var(--line); }
.bp-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.bp-desktop .bp-thumb img { object-fit: contain; }
.bp-key { display: block; margin: 0 0 8px; padding: 8px; border-radius: 6px; background: var(--neutral-bg); font-size: 12px; overflow-wrap: anywhere; }
.bp-expect { font-size: 12px; line-height: 1.5; color: var(--t2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bp-entry { margin-top: 6px; font-size: 11px; line-height: 1.45; color: var(--t3); overflow-wrap: anywhere; }
.bp-entry::before { content: "入口 · "; }

.bp-wires { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 1; overflow: visible; }
.bp-edge { fill: none; stroke: var(--t3); stroke-width: 1.5; }
.bp-arrowhead { fill: var(--t3); }
.bp-link { fill: none; stroke: var(--brand); stroke-width: 1.5; stroke-dasharray: 5 4; opacity: .55; }
.bp-edge-label { position: absolute; transform: translate(-50%, -50%); z-index: 4; width: max-content; max-width: 124px; padding: 1px 8px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 11px; line-height: 16px; color: var(--t2); text-align: center; overflow-wrap: anywhere; pointer-events: none; }
.bp-link-badge { position: absolute; transform: translate(-50%, -50%); z-index: 4; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 1.5px dashed var(--brand); color: var(--brand); font-size: 11px; font-weight: 700; line-height: 17px; text-align: center; cursor: help; }
.bp-dim .bp-node:not(.hl) { opacity: .35; }
.bp-dim .bp-edge:not(.hl), .bp-dim .bp-link:not(.hl) { opacity: .15; }
.bp-dim .bp-edge-label:not(.hl) { opacity: .3; }
.bp-node.hl { border-color: var(--brand); }
.bp-edge.hl { stroke: var(--t1); stroke-width: 2; }
.bp-link.hl { opacity: 1; stroke-width: 2; }
.bp-edge-label.hl { color: var(--t1); border-color: var(--t3); }

.bp-section { margin-top: 20px; }
.bp-section h2 { font-size: 15px; margin: 0 0 8px; color: var(--t1); }
.bp-section h3 { font-size: 13px; margin: 0 0 8px; color: var(--t1); }
.bp-section ul { margin: 0; padding-left: 18px; color: var(--t2); font-size: 13px; line-height: 1.6; }
.bp-section li + li { margin-top: 4px; }
.bp-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bp-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bp-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bp-links li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--hairline); cursor: pointer; font-size: 13px; }
.bp-links li.hl, .bp-links li:hover { border-color: var(--brand); }
.bp-link-chain { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.bp-link-chain b { font-weight: 600; color: var(--t1); }
.bp-arrow { color: var(--brand); }
.bp-link-note { color: var(--t2); flex-basis: 100%; padding-left: 30px; }
.bp-link-no { display: inline-block; width: 20px; height: 20px; border-radius: 50%; border: 1.5px dashed var(--brand); color: var(--brand); font-size: 11px; font-weight: 700; line-height: 17px; text-align: center; flex: none; }

.bp-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(9, 9, 11, .72); display: flex; align-items: center; justify-content: center; padding: 24px; }
.bp-lightbox[hidden] { display: none; }
body.bp-lb-open { overflow: hidden; }
.bp-lb-inner { display: flex; gap: 20px; max-width: min(1200px, 100%); max-height: 100%; background: var(--surface); border-radius: 14px; padding: 16px; box-shadow: var(--shadow-pop); }
.bp-lb-img { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; background: var(--neutral-bg); border-radius: 10px; overflow: hidden; }
.bp-lb-img img { display: block; max-width: 100%; max-height: calc(100vh - 80px); object-fit: contain; }
.bp-lb-img.phone img { max-height: calc(100vh - 80px); width: auto; }
.bp-lb-img.desktop { flex: 1 1 auto; }
.bp-lb-noshot { padding: 40px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.bp-lb-side { flex: 0 0 300px; min-width: 0; overflow-y: auto; max-height: calc(100vh - 80px); font-size: 13px; color: var(--t2); }
.bp-lb-side h2 { font-size: 17px; line-height: 1.4; margin: 6px 0 12px; color: var(--t1); }
.bp-lb-side p { margin: 0 0 12px; line-height: 1.6; }
.bp-lb-side ul { margin: 0 0 12px; padding-left: 0; list-style: none; }
.bp-lb-side li { margin-bottom: 6px; }
.bp-lb-lane { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--t3); }
.bp-lb-k { font-size: 11px; color: var(--t3); margin-bottom: 2px; }
.bp-lb-nav { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.bp-lb-nav .grow { flex: 1; }

/* 场景（用户状态分支）与页面状态变体 */
.bp-scenes { margin: 0 0 12px; }
.bp-scenes-k { font-size: 12px; color: var(--t3); align-self: center; margin-right: 2px; }
.bp-scene-cond { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--hairline); font-size: 13px; color: var(--t2); }
.bp-scene-cond b { color: var(--t1); }
.bp-node.bp-out { opacity: .25; }
.bp-edge.bp-out { opacity: .12; }
.bp-edge-label.bp-out { opacity: .25; }
.bp-variant-on, .bp-variant-n { font-size: 11px; line-height: 18px; margin: -4px 0 6px; color: var(--t2); }
.bp-variant-on { color: var(--brand); font-weight: 600; }
.bp-vtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }

/* 截图模式（?clean=1）：去掉顶栏和导航，画布整张展开，便于整页截预览图 */
body.bp-clean .topbar, body.bp-clean .modnav { display: none !important; }
body.bp-clean .workspace { display: block; height: auto; overflow: visible; }
body.bp-clean #app.module { padding: 20px 24px; overflow: visible; }
.bp-clean-page .bp-scroll { max-height: none; overflow: visible; width: max-content; min-width: 100%; }

@media (max-width: 900px) {
  .bp-grid3, .bp-grid2 { grid-template-columns: 1fr; }
  .bp-lb-inner { flex-direction: column; overflow-y: auto; }
  .bp-lb-side { flex: none; max-height: none; }
  .bp-lb-img img, .bp-lb-img.phone img { max-height: 60vh; }
  .bp-scroll { max-height: 70vh; }
}
@media (max-width: 600px) {
  .bp-lightbox { padding: 8px; }
  .bp-legend { display: none; }
}

/* ---------------------------------------------------------------- 新版产品验收说明页面（2026-11-17）
 * 结论卡 → 完整演示 → 目录 → 用户怎么走 / 功能说明 / 在哪配置 / 验收清单。灰色为主，品牌紫只用在选中的情况和章节悬停。 */
.bpv { max-width: none; }   /* 页面铺满可用宽度；长段落单独限制行宽 */
.bpv-eyebrow { font-size: 12px; color: var(--t3); margin-bottom: 2px; }
.bpv h2 { font-size: 17px; margin: 0; color: var(--t1); }
.bpv h3 { font-size: 14px; margin: 0; color: var(--t1); }
.bpv-pill { display: inline-block; padding: 0 8px; border-radius: 999px; font-size: 12px; line-height: 20px; font-weight: 500; white-space: nowrap; vertical-align: 1px; }
.bpv-pill.ok { background: var(--success-bg); color: var(--success); }
.bpv-pill.warn { background: var(--warn-bg); color: var(--warn); }
.bpv-pill.bad { background: var(--danger-bg); color: var(--danger); }
.bpv-pill.skip, .bpv-pill.none { background: var(--neutral-bg); color: var(--t3); }

.bpv-verdict > *, .bpv-feat > *, .bpv-hero > * { min-width: 0; }
.bpv-verdict { margin-top: 12px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 18px; display: grid; gap: 16px; }
.bpv-lead { margin: 0; font-size: 16px; line-height: 1.65; color: var(--t1); max-width: 75em; }
.bpv-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--neutral-bg); }
.bpv-bar span { display: block; }
.bpv-bar .b-ok, .bpv-legend i.b-ok { background: var(--success); }
.bpv-bar .b-ok2, .bpv-legend i.b-ok2 { background: color-mix(in srgb, var(--success) 55%, var(--surface)); }
.bpv-bar .b-warn, .bpv-legend i.b-warn { background: var(--warn); }
.bpv-bar .b-skip, .bpv-legend i.b-skip { background: var(--t3); }
.bpv-bar .b-bad, .bpv-legend i.b-bad { background: var(--danger); }
.bpv-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 13px; color: var(--t2); font-variant-numeric: tabular-nums; }
.bpv-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }
.bpv-ends { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 8px; }
.bpv-end { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; border: 1px solid var(--hairline); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.bpv-end b { color: var(--t1); }
.bpv-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.bpv-box { border-radius: 10px; padding: 12px 14px; background: var(--neutral-bg); }
.bpv-box.todo { background: var(--warn-bg); }
.bpv-box h3 { margin-bottom: 6px; }
.bpv-box ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.6; color: var(--t2); }
.bpv-box li + li { margin-top: 3px; }
.bpv-box p { margin: 0; }

.bpv-hero { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 16px; }
.bpv-hero.none { grid-template-columns: 1fr; }
.bpv-hero video, .bpv-player video { width: 100%; max-height: 72vh; border-radius: 10px; background: #000; aspect-ratio: 16 / 9; display: block; }
.bpv-hero h3 { margin-bottom: 8px; }
.bpv-chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 13px; }
.bpv-chapters button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 10px; width: 100%; padding: 5px 8px; border-radius: 8px; color: var(--t2); }
.bpv-chapters button:hover, .bpv-chapters button:focus-visible { background: var(--neutral-bg); color: var(--t1); }
.bpv-chapters .t, .bpv-clip, .bpv .n { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--t3); }
.bpv-chapters .t { min-width: 40px; }
.bpv-novideo { border: 1px dashed var(--line); border-radius: 10px; padding: 14px; color: var(--t3); font-size: 13px; }

.bpv-toc { position: sticky; top: 0; z-index: 6; margin-top: 18px; padding: 8px 0; background: var(--page); border-bottom: 1px solid var(--hairline); display: flex; gap: 6px; overflow-x: auto; }
.bpv-toc button { flex: none; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--ctl-line, var(--line)); background: var(--surface); color: var(--t2); font-size: 13px; cursor: pointer; }
.bpv-toc button:hover, .bpv-toc button:focus-visible { color: var(--t1); border-color: var(--ctl-line-hover, var(--line)); }
.bpv-sec { margin-top: 28px; scroll-margin-top: 56px; }
.bpv-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 12px; }
.bpv-sec-head p { margin: 0; font-size: 13px; max-width: 75em; }
.bp-embedded .bp-toolbar { margin-top: 0; }

.bpv-feats { display: grid; gap: 14px; }
.bpv-feat { background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 16px; display: grid; gap: 14px; min-width: 0; }
.bpv-q { font-size: 17px !important; line-height: 1.45; }
.bpv-ans { margin: 4px 0 0; font-size: 14px; color: var(--t2); max-width: 75em; }
.bpv-stage { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.bpv-now { margin: 6px 0 0; font-size: 13px; color: var(--t2); }
.bpv-now b { color: var(--t1); margin-right: 4px; }
.bpv-cases { display: grid; gap: 8px; }
.bpv-case { box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--page); }
.bpv-case:hover { border-color: var(--ctl-line-hover, var(--line)); }
.bpv-case:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.bpv-case.on { border-color: var(--brand); background: var(--brand-soft, var(--neutral-bg)); }
.bpv-shot { display: block; width: 56px; height: 100px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); cursor: zoom-in; }
.bpv-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.bpv-noshot { width: 56px; height: 100px; border-radius: 6px; border: 1px dashed var(--line); display: grid; place-items: center; font-size: 11px; color: var(--t3); text-align: center; }
.bpv-case-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bpv-who { font-size: 14px; font-weight: 500; color: var(--t1); overflow-wrap: anywhere; }
.bpv-sees { font-size: 13px; color: var(--t2); overflow-wrap: anywhere; }
.bpv-res { font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.bpv-res.go { background: var(--success-bg); color: var(--success); }
.bpv-res.stop { background: var(--danger-bg); color: var(--danger); }
.bpv-res.mid { background: var(--neutral-bg); color: var(--t2); }
.bpv-sup { border-left: 3px solid var(--warn); background: var(--warn-bg); padding: 8px 12px; border-radius: 0 8px 8px 0; font-size: 13px; color: var(--t1); }
.bpv-sup s { color: var(--t3); }
.bpv-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--t1); }
.bpv-meta .k { color: var(--t3); }
.bpv-dev { font-size: 12.5px; color: var(--t2); }
.bpv-dev summary { cursor: pointer; color: var(--t3); }
.bpv-dev[open] summary { margin-bottom: 8px; }
.bpv-dev ul { margin: 6px 0 0; padding-left: 18px; }
.bpv-dev ul.bpv-devchecks { list-style: none; padding-left: 0; display: grid; gap: 4px; }
.bpv-dev code { font-size: 12px; }

.bpv-tbl { overflow-x: auto; border: 1px solid var(--hairline); border-radius: 10px; background: var(--surface); }
.bpv-tbl table { border-collapse: collapse; width: 100%; font-size: 13px; min-width: 640px; }
.bpv-dev .bpv-tbl table { min-width: 520px; font-size: 12.5px; }
.bpv-tbl th, .bpv-tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--hairline); vertical-align: top; color: var(--t2); }
.bpv-tbl th { font-weight: 500; color: var(--t3); background: var(--page); font-size: 12px; white-space: nowrap; }
.bpv-tbl tr:last-child td { border-bottom: 0; }
.bpv-tbl td b { color: var(--t1); font-weight: 600; }
.bpv-go { color: var(--t1); text-decoration: underline; text-decoration-color: var(--line); white-space: nowrap; }
.bpv-go:hover { text-decoration-color: currentColor; }

.bpv-groups { display: grid; gap: 12px; }
.bpv-group { background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; padding: 12px 14px; }
.bpv-group h3 { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.bpv-items { margin-top: 8px; display: grid; gap: 8px; }
.bpv-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; font-size: 13.5px; color: var(--t1); align-items: start; }
.bpv-item > span:nth-child(2) { overflow-wrap: anywhere; }
.bpv-how { grid-column: 2; font-size: 12.5px; color: var(--t3); }

@media (max-width: 760px) {
  .bpv-hero, .bpv-stage { grid-template-columns: 1fr; }
  .bpv-verdict, .bpv-feat, .bpv-hero { padding: 14px; }
  .bpv-q { font-size: 16px !important; }
  .bpv-case { grid-template-columns: 48px minmax(0, 1fr); }
  .bpv-case .bpv-res { grid-column: 2; justify-self: start; }
  .bpv-shot, .bpv-noshot { width: 48px; height: 86px; }
}
body.bp-clean .bpv-toc { position: static; }

/* ---- 「用户怎么走」画布：拖动平移、滚轮 / 捏合缩放、右上角缩放与全屏按钮（static/brief-panel.js） */
.bp-stage { position: relative; }
.bp-scroll.bp-pz { position: relative; overflow: hidden; max-height: none; height: clamp(360px, 70vh, 960px); touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.bp-scroll.bp-pz.dragging { cursor: grabbing; }
.bp-scroll.bp-pz.dragging .bp-node { cursor: grabbing; }
.bp-pz .bp-canvas { position: absolute; left: 0; top: 0; min-width: 0; transform-origin: 0 0; will-change: transform; }
.bp-pz .bp-lane-label { position: absolute; left: 0; }
.bp-pz img { -webkit-user-drag: none; user-select: none; }
.bp-zoombar { position: absolute; top: 10px; right: 10px; z-index: 8; display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow-sm); }
.bp-zb { height: 28px; min-width: 28px; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: var(--t2); font-size: 13px; cursor: pointer; }
.bp-zb:hover { background: var(--neutral-bg); color: var(--t1); }
.bp-zb:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.bp-zb-level { min-width: 44px; text-align: center; font-size: 12px; color: var(--t3); font-variant-numeric: tabular-nums; }
.bp-pz-hint { position: absolute; left: 12px; bottom: 8px; z-index: 8; pointer-events: none; padding: 2px 8px; border-radius: 8px; background: color-mix(in srgb, var(--surface) 85%, transparent); }
.bp-stage:fullscreen { background: var(--page); padding: 0; }
.bp-stage:fullscreen .bp-scroll.bp-pz { height: 100vh; border: 0; border-radius: 0; }
.bp-stage.bp-fs { position: fixed; inset: 0; z-index: 900; background: var(--page); }
.bp-stage.bp-fs .bp-scroll.bp-pz { height: 100%; border: 0; border-radius: 0; }
body.bp-fs-open { overflow: hidden; }
@media (max-width: 600px) {
  .bp-scroll.bp-pz { height: 64vh; }
  .bp-zb[data-z="fit"] { font-size: 12px; padding: 0 6px; }
  .bp-pz-hint { display: none; }
}
.bp-stage.bp-fs { z-index: 2147483000; }
body.bp-fs-open .bp-lightbox { z-index: 2147483001; }

/* ---- 画布新排版（11-17）：只画主流程；对应关系虚线默认隐藏，选中 / 悬停卡片或「显示全部对应关系」才显示 */
.bp-link { display: none; }
.bp-link.on, .bp-links-all .bp-link { display: inline; }
.bp-link.on { opacity: .9; stroke-width: 2; }
.bp-link-badge { display: none; }
.bp-link-badge.on, .bp-links-all .bp-link-badge { display: block; }
.bp-edge { stroke-linejoin: round; }
.bp-focus .bp-node:not(.rel) { opacity: .3; }
.bp-focus .bp-edge:not(.hl) { opacity: .15; }
.bp-focus .bp-edge-label:not(.hl), .bp-focus .bp-back:not(.hl) { opacity: .3; }
.bp-node.sel { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.bp-focus .bp-node.rel:not(.sel) { border-color: var(--ctl-line-hover, var(--line)); }
.bp-node .bp-thumb { cursor: zoom-in; }
.bp-node { cursor: pointer; }
.bp-back { position: absolute; z-index: 4; box-sizing: border-box; padding: 1px 8px; border-radius: 10px; border: 1px dashed var(--line); background: var(--surface); color: var(--t2); font-size: 11px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.bp-back:hover, .bp-back.hl { color: var(--t1); border-color: var(--t3); }
.bp-back:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.bp-node.bp-flash { animation: bpFlash 1.5s ease-out; }
@keyframes bpFlash { 0%, 35% { box-shadow: 0 0 0 4px var(--brand); border-color: var(--brand); } 100% { box-shadow: var(--shadow-sm); } }
@media (prefers-reduced-motion: reduce) { .bp-node.bp-flash { animation: none; border-color: var(--brand); } }
.bp-zb.on { background: var(--neutral-bg); color: var(--t1); }
.bp-zb-sep { width: 1px; height: 18px; background: var(--hairline); margin: 0 2px; }
.bp-minimap { position: absolute; right: 10px; bottom: 10px; z-index: 8; overflow: hidden; border: 1px solid var(--hairline); border-radius: 6px; background: var(--surface); box-shadow: var(--shadow-sm); cursor: pointer; touch-action: none; }
.bp-minimap[hidden] { display: none; }
.bp-minimap i { position: absolute; opacity: .5; border-radius: 1px; }
.bp-mm-view { position: absolute; border: 1.5px solid var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); border-radius: 2px; pointer-events: none; }
@media (max-width: 600px) {
  .bp-zb[data-z="links"] { font-size: 11px; padding: 0 6px; }
  .bp-zoombar { flex-wrap: wrap; max-width: calc(100% - 20px); justify-content: flex-end; }
}
