/* 本体全景图（#/ontomap），web/onto-panorama.js */
.pano { --pano-ink: #1f2733; --pano-mute: #6b7380; --pano-line: #e4e7ec; --pano-bg: #fbfbfa; --pano-accent: #2f5d8a;
  display: flex; flex-direction: column; height: calc(100vh - 150px); min-height: 560px; background: var(--pano-bg);
  border: 1px solid var(--pano-line); border-radius: 12px; overflow: hidden; color: var(--pano-ink); }
.pano-embed { height: 100vh; min-height: 0; border: 0; border-radius: 0; }
html.pkn-embed .route-body:has(.pano) { padding: 0; }
.pano-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px;
  border-bottom: 1px solid var(--pano-line); background: #fff; flex-wrap: wrap; }
.pano-stats { display: flex; gap: 22px; flex-wrap: wrap; }
.pano-stat { display: inline-flex; align-items: baseline; gap: 6px; font-size: 13px; color: var(--pano-mute); }
.pano-stat b { font-size: 22px; font-weight: 650; color: var(--pano-ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.pano-tools { display: flex; gap: 8px; align-items: center; }
.pano-seg { display: inline-flex; border: 1px solid var(--pano-line); border-radius: 8px; overflow: hidden; }
.pano-seg button { border: 0; background: #fff; padding: 5px 12px; font-size: 13px; color: var(--pano-mute); cursor: pointer; }
.pano-seg button.on { background: var(--pano-accent); color: #fff; }
.pano-search { width: 170px; padding: 5px 10px; border: 1px solid var(--pano-line); border-radius: 8px; font-size: 13px; }
.pano-search.miss { border-color: #c0573f; }
.pano-fit { padding: 5px 12px; border: 1px solid var(--pano-line); border-radius: 8px; background: #fff; font-size: 13px; cursor: pointer; }
.pano-stage { position: relative; flex: 1; min-height: 0; }
.pano-svg { width: 100%; height: 100%; display: block; cursor: grab; user-select: none; font-family: inherit; }
.pano-svg:active { cursor: grabbing; }
.pano-svg .band0 { fill: #fff; }
.pano-svg .band1 { fill: #f6f7f8; }
.pano-svg .band-name { font-size: 13px; font-weight: 600; fill: #8a919c; letter-spacing: .04em; }
.pano-svg .col-bg { opacity: .55; }
.pano-svg .col-name { font-size: 16px; font-weight: 650; }
.pano-svg .col-sub { font-size: 11px; fill: #7a828e; }
.pano-svg .proc { cursor: pointer; }
.pano-svg .proc-name { font-size: 11.5px; fill: #3b4350; }
.pano-svg .proc-steps { font-size: 10.5px; fill: #8a919c; font-variant-numeric: tabular-nums; }
.pano-svg .proc.on rect { stroke: var(--pano-accent); stroke-width: 1.6; }
.pano-svg .arc { fill: none; stroke: #98a6b8; stroke-opacity: .45; stroke-linecap: round; }
.pano-svg .node { cursor: pointer; transition: opacity .15s; }
.pano-svg .node .tile { stroke-width: 1; }
.pano-svg .node-name { fill: #26303c; }
.pano-svg .node.major .node-name { font-weight: 600; }
.pano-svg .node-badge { font-size: 10.5px; fill: #6b7380; font-variant-numeric: tabular-nums; }
.pano-svg .ok-dot { fill: #3c8a5a; }
.pano-svg .node:hover .tile { stroke: var(--pano-accent); }
.pano-svg .more { cursor: pointer; }
.pano-svg .more-txt { font-size: 12px; font-weight: 600; }
.pano-svg .rule-total { font-size: 13px; font-weight: 600; }
.pano-svg .rule-kind { font-size: 11px; fill: #5d6572; }
.pano-svg .sys { fill: #fff; stroke: #cfd5dd; }
.pano-svg .sys-txt { font-size: 11px; fill: #4b5260; }
.pano-svg.dim .node:not(.on), .pano-svg.dim .proc:not(.on), .pano-svg.dim .more:not(.on) { opacity: .16; }
.pano-svg.dim .arc { stroke-opacity: .12; }
.pano-svg .node.on .tile { stroke: var(--pano-accent); stroke-width: 1.6; }
.pano-svg .node.focus .tile { stroke: #c0573f; stroke-width: 2.4; }
.pano-svg .more.on rect { stroke: var(--pano-accent); stroke-width: 2; }
.pano-svg .hl-edge { fill: none; stroke: var(--pano-accent); stroke-width: 1.8; stroke-opacity: .8; pointer-events: none; }
.pano-svg .hl-edge.hover { stroke-opacity: .55; }
.pano-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: #5d6572; background: #fff;
  padding: 6px 16px; border-top: 1px solid var(--pano-line); }
.pano-legend .lg { display: inline-flex; align-items: center; gap: 5px; }
.pano-legend .muted { color: #8a919c; }
.pano-legend i { display: inline-block; width: 16px; height: 10px; border-radius: 3px; border: 1px solid #b8c0cb; background: #fff; }
.pano-legend .lg-major { background: #dde5ef; border-color: #5f7a99; width: 22px; height: 12px; }
.pano-legend .lg-ok { background: #3c8a5a; border: 0; width: 7px; height: 7px; border-radius: 50%; }
.pano-legend .lg-prop { border-color: #cfd5dd; }
.pano-legend .lg-arc { border: 0; border-top: 3px solid #98a6b8; border-radius: 6px 6px 0 0; height: 6px; }
.pano-drawer { position: absolute; top: 10px; right: 10px; bottom: 10px; width: 340px; max-width: calc(100% - 20px); overflow: auto;
  background: #fff; border: 1px solid var(--pano-line); border-radius: 12px; box-shadow: 0 8px 28px rgba(20,30,45,.12); padding: 16px 18px; font-size: 13px; }
.pano-drawer[hidden] { display: none; }
.pano-drawer h3 { margin: 4px 0 6px; font-size: 18px; }
.pano-drawer h4 { margin: 14px 0 6px; font-size: 12px; color: #8a919c; font-weight: 600; letter-spacing: .04em; }
.pd-close { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 20px; cursor: pointer; color: #8a919c; }
.pd-kicker { font-size: 12px; color: #8a919c; }
.pd-desc { color: #4b5260; line-height: 1.55; margin: 0; }
.pd-nums { display: flex; gap: 16px; margin-top: 10px; }
.pd-nums span { display: inline-flex; align-items: baseline; gap: 4px; color: #6b7380; }
.pd-nums b { font-size: 18px; color: var(--pano-ink); }
.pd-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.pd-tags span { background: #f2f4f7; border-radius: 6px; padding: 2px 7px; font-size: 12px; color: #3b4350; }
.pd-tags .muted, .pano-drawer .muted { color: #8a919c; background: none; }
.pd-rels, .pd-rules { list-style: none; padding: 0; margin: 0; }
.pd-rels li, .pd-rules li { padding: 4px 0; border-bottom: 1px dashed #edf0f3; line-height: 1.45; }
.pd-rels a { color: var(--pano-accent); text-decoration: none; margin-right: 6px; }
.pd-dir { color: #8a919c; margin-right: 6px; }
.pd-links { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.pd-links a { padding: 6px 12px; border: 1px solid var(--pano-accent); border-radius: 8px; color: var(--pano-accent); text-decoration: none; font-size: 13px; }
@media (max-width: 900px) { .pano-stat b { font-size: 18px; } .pano-stats { gap: 14px; } .pano-drawer { width: 300px; } }
