/* Bleed memory panel (6 Oct): Settings → Memory and "Watching for you" (bleed-memory.js).
   It sits inside the settings sheet's own .jp-set / .jp-row / .jp-seg / .jp-set-action
   (jbot.css) and adds only what those lack. Every colour is a token from app.css §0, so
   light and dark are the same rules (the network's cream room is the one pair of its own).
   Kind is a shape and a tone together; status is never colour alone: dashed is tentative,
   struck through is superseded, a warning mark is disputed, a dotted ring is unlinked. Motion is opacity only and is dropped for reduced motion. */

.bm { --bm-well: var(--canvas); }
.bm button, .bm-full button { line-height: 1.3; box-shadow: none; }
.bm .jp-row { border-top: 0; padding-top: 0; }
.bm .jp-row-note[hidden] { display: none; }
.bm .jp-switch[aria-checked="mixed"] { opacity: .5; cursor: default; }
.bm .jp-set-action, .bm-full .jp-set-action { min-height: 32px; }
.bm-slot { margin-top: 6px; }
.bm-parked { margin: 0; padding: 14px; border: 1px dashed var(--rule2); border-radius: var(--r); font: 12.5px/1.5 var(--text); color: var(--soft); text-align: center; }

/* kind marks: one shape, one tone */
.bm-glyph { flex: none; width: 14px; height: 14px; fill: currentColor; stroke: currentColor; stroke-width: 0; color: var(--muted); }
.bm-glyph.k-account { color: var(--accent); }
.bm-glyph.k-preference { color: var(--plum); }
.bm-glyph.k-statement { color: var(--soft); }
.bm-glyph.k-decision { color: var(--amber); }
.bm-glyph.k-task { color: var(--teal); }
.bm-glyph.k-entity { color: var(--sage); }
.bm-glyph.k-conversation { color: var(--info); }

/* the tools: view, search, full view; then kind chips and status */
.bm-panel { display: grid; gap: 12px; }
.bm-tools { display: grid; gap: 8px; }
.bm-tools[hidden], .bm-banner[hidden] { display: none; }
.bm-tools-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bm-views { flex: none; }
.bm-search { position: relative; flex: 1 1 180px; display: block; }
.bm-search .icon { position: absolute; left: 11px; top: 50%; width: 14px; height: 14px; margin-top: -7px; color: var(--muted); pointer-events: none; }
.bm-search-input { width: 100%; min-height: 36px; padding: 6px 12px 6px 32px; font: 13px var(--text); border-radius: 999px; }
.bm-chips { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 6px; }
.bm-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 11px; border: 1px solid var(--rule2); border-radius: 999px; background: var(--paper); color: var(--soft); font: 500 12px var(--text); white-space: nowrap; }
.bm-chip:hover { border-color: var(--gold-line); background: var(--accent2); color: var(--accent3); }
.bm-chip.on, .bm-chip.on:hover { border-color: var(--solid); background: var(--solid); color: var(--on-solid); }
.bm-chip.on .bm-glyph { color: currentColor; }
.bm-chip-n { font-variant-numeric: tabular-nums; opacity: .7; }
.bm-status { flex: none; min-height: 32px; padding: 4px 30px 4px 12px; font: 500 12px var(--text); border-radius: 999px; }
.bm-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 12px; border-radius: var(--r); background: var(--accent2); font: 12.5px/1.4 var(--text); color: var(--ink2); }
.bm-link { display: inline-flex; align-items: center; gap: 5px; padding: 3px 6px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--accent3); font: 600 12px var(--text); }
.bm-link:hover { background: var(--accent2); color: var(--accent3); }
.bm-link .icon { width: 13px; height: 13px; }

/* honest states */
.bm-state { display: grid; justify-items: center; gap: 10px; padding: 28px 16px; border: 1px dashed var(--rule2); border-radius: var(--r-lg); text-align: center; color: var(--soft); }
.bm-state p { margin: 0; font: 500 13.5px/1.5 var(--text); color: var(--ink2); max-width: 44ch; }
.bm-state .bm-hint { font-weight: 400; font-size: 12.5px; color: var(--soft); }
.bm-state.loading p { color: var(--muted); font-weight: 400; }
.bm-state.small { padding: 14px; justify-items: start; text-align: left; border-radius: var(--r); }
.bm-state.small p { font-size: 12.5px; font-weight: 400; color: var(--soft); max-width: none; }
.bm-state.warn p { color: var(--warn); font-weight: 500; }

/* the network: one canvas for the links, marks and labels; the legend, the note and the
   zoom buttons sit over it; the items themselves are a hidden list of real buttons. The
   canvas reads these tokens, so the room is cream in light and warm black in dark. */
.bm-net { --bm-net-bg: #f8f5ee; --bm-net-line: #8d877c; position: relative; height: clamp(320px, 52vh, 460px); border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--bm-net-bg); overflow: hidden; overflow: clip; isolation: isolate; font: 12px/1.4 var(--text); }
:root[data-theme="dark"] .bm-net { --bm-net-bg: #171614; --bm-net-line: #8f8a80; }
.bm-net-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.bm-net.over .bm-net-canvas { cursor: pointer; }
.bm-net.drag .bm-net-canvas { cursor: grabbing; }
.bm-net-list { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); list-style: none; white-space: nowrap; }
.bm-net-node { width: 1px; height: 1px; padding: 0; border: 0; outline: 0; }
.bm-net-wait { display: grid; place-items: center; color: var(--muted); }
.bm-net-wait span { font: 12.5px var(--text); animation: bm-pulse 1.4s ease-in-out infinite; }
@keyframes bm-pulse { 50% { opacity: .45; } }
.bm-net-legend { position: absolute; top: 10px; right: 10px; z-index: 2; max-width: calc(100% - 20px); max-height: calc(100% - 20px); overflow-y: auto; scrollbar-width: none; border: 1px solid var(--rule); border-radius: var(--r); background: color-mix(in srgb, var(--paper) 90%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: var(--shadow-1); color: var(--ink2); }
.bm-net-legend summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 9px 7px 11px; border-radius: var(--r); font: 600 10px/1.2 var(--text); letter-spacing: .18em; text-transform: uppercase; color: var(--soft); cursor: pointer; list-style: none; -webkit-user-select: none; user-select: none; }
.bm-net-legend summary::-webkit-details-marker { display: none; }
.bm-net-legend summary::before, .bm-net-legend summary::marker { content: none; display: none; }
.bm-net-legend summary .icon { width: 12px; height: 12px; color: var(--muted); transition: transform .2s var(--ease); }
.bm-net-legend[open] summary .icon { transform: rotate(180deg); }
.bm-net-legend summary:hover { color: var(--ink); }
.bm-net-keys { display: grid; gap: 4px; margin: 0; padding: 7px 12px 8px 11px; border-top: 1px solid var(--rule); list-style: none; }
.bm-net-keys.two { grid-template-columns: auto auto; gap: 4px 14px; }
.bm-net-keys.two .bm-glyph { margin: 0; }
.bm-net-keys.two li { gap: 6px; }
.bm-net-keys li { display: flex; align-items: center; gap: 8px; font: 11.5px/1.3 var(--text); white-space: nowrap; }
.bm-net-keys .bm-glyph { width: 12px; height: 12px; margin: 0 4px; }
.bm-net-key { flex: none; position: relative; width: 20px; height: 12px; }
.bm-net-key[class*="ln-"]::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; border-top: 1.5px solid var(--bm-net-line); }
.bm-net-key.ln-typed::after { content: ""; position: absolute; right: -1px; top: 2.5px; border: solid transparent; border-width: 3.2px 0 3.2px 6px; border-left-color: var(--bm-net-line); }
.bm-net-key.ln-loose::before { opacity: .4; border-top-width: 1px; }
.bm-net-key.ln-retired::before { border-top-style: dashed; opacity: .75; }
.bm-net-key[class*="rg-"]::before { content: ""; position: absolute; left: 4px; top: 0; width: 12px; height: 12px; border: 1.3px dashed var(--ink2); border-radius: 50%; }
.bm-net-key.rg-disputed::before { border: 1.6px solid var(--warn); }
.bm-net-key.rg-disputed::after { content: "!"; position: absolute; left: 13px; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--warn); color: var(--bm-net-bg); font: 700 8px/9px var(--text); text-align: center; }
.bm-net-key.rg-unlinked::before { border: 1.6px dotted var(--muted); }
.bm-net-size { margin: 0; padding: 7px 11px 8px; border-top: 1px solid var(--rule); font: 500 11px/1.3 var(--text); color: var(--soft); white-space: nowrap; }
.bm-net-note { position: absolute; left: 10px; bottom: 10px; z-index: 2; max-width: calc(100% - 68px); margin: 0; padding: 5px 10px; border: 1px solid var(--rule); border-radius: 999px; background: color-mix(in srgb, var(--paper) 90%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 500 11.5px/1.35 var(--text); color: var(--ink2); font-variant-numeric: tabular-nums; }
.bm-net-note[hidden] { display: none; }
.bm-net-ctls { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: grid; border: 1px solid var(--rule2); border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow-1); overflow: hidden; }
.bm-net .bm-net-ctl { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--soft); }
.bm-net-ctl + .bm-net-ctl { border-top: 1px solid var(--rule); }
.bm-net-ctl .icon { width: 15px; height: 15px; }
.bm-net-ctl:hover { background: var(--accent2); color: var(--accent3); }
.bm-net-ctl:focus-visible { outline-offset: -2px; }
.bm-net-tip { position: absolute; left: 0; top: 0; z-index: 3; display: grid; gap: 2px; max-width: min(260px, calc(100% - 16px)); padding: 8px 11px 9px; border: 1px solid var(--rule2); border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow-2); pointer-events: none; font: 11.5px/1.4 var(--text); color: var(--soft); }
.bm-net-tip[hidden] { display: none; }
.bm-net-tip strong { font: 600 12.5px/1.35 var(--text); color: var(--ink); overflow-wrap: anywhere; }
.bm-net-tip-kind { display: flex; align-items: center; gap: 6px; color: var(--ink2); }
.bm-net-tip-kind .bm-glyph { width: 11px; height: 11px; }
.bm-net-tip-n { color: var(--muted); font-variant-numeric: tabular-nums; }

/* the tree: lines in SVG underneath, the items as real buttons on top */
.bm-main { display: grid; gap: 12px; }
.bm-view { display: grid; gap: 8px; align-content: start; }
.bm-port { position: relative; display: flex; overflow: auto; max-height: 440px; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--bm-well); scrollbar-color: var(--rule2) transparent; overscroll-behavior: contain; }
.bm-canvas { position: relative; flex: none; margin: auto; }
.bm-edges, .bm-edge-labels { position: absolute; inset: 0; overflow: visible; }
.bm-edge-labels { pointer-events: none; z-index: 2; }
.bm-edge { fill: none; stroke: var(--rule2); stroke-width: 1.25; transition: stroke .15s; }
.bm-edge.cross { stroke-width: 1; }
.bm-edge.quiet:not(.on) { visibility: hidden; }
.bm-edge.on { stroke: var(--accent); stroke-width: 1.75; }
.bm-edge-hit { fill: none; stroke: transparent; stroke-width: 12; pointer-events: stroke; }
.bm-arrow { fill: var(--muted); }
.bm-arrow.on { fill: var(--accent); }
.bm-edge-label { font: 600 10.5px var(--text); fill: var(--accent3); stroke: var(--bm-well); stroke-width: 5px; stroke-linejoin: round; paint-order: stroke; dominant-baseline: middle; opacity: 0; transition: opacity .15s; }
.bm-edge-label.on { opacity: 1; }
.bm-node { position: absolute; z-index: 1; display: flex; align-items: center; justify-content: flex-start; gap: 8px; height: 40px; padding: 0 10px; border: 1px solid var(--rule2); border-radius: 12px; background: var(--paper); color: var(--ink); font: 500 12px var(--text); text-align: left; }
.bm-node:hover { border-color: var(--gold-line); background: var(--paper); color: var(--ink); }
.bm-node:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; z-index: 3; }
.bm-node-label { flex: 1 1 auto; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; line-height: 1.25; overflow-wrap: anywhere; }
.bm-node .icon { flex: none; width: 13px; height: 13px; color: var(--warn); }
.bm-node-more { flex: none; padding: 1px 6px; border-radius: 999px; background: var(--bg2); color: var(--soft); font: 600 10.5px/1.4 var(--text); font-variant-numeric: tabular-nums; }
.bm-node.centre { justify-content: center; border-color: var(--solid); background: var(--solid); color: var(--on-solid); font-weight: 600; }
.bm-node.centre:hover { background: var(--solid); color: var(--on-solid); }
.bm-node.centre .bm-node-label { flex: 0 1 auto; }
.bm-node.centre .bm-glyph { color: currentColor; }
.bm-node.sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--gold-soft); }
.bm-node.centre.sel { box-shadow: 0 0 0 3px var(--gold-line); }
.bm-node.st-tentative { border-style: dashed; border-color: var(--muted); }
.bm-node.st-superseded { color: var(--muted); background: transparent; }
.bm-node.st-superseded .bm-node-label { text-decoration: line-through; }
.bm-node.st-superseded .bm-glyph { opacity: .55; }
.bm-node.st-disputed { border-color: var(--warn); }
.bm-more { position: absolute; z-index: 1; display: block; height: 22px; padding: 0 10px; border: 0; background: transparent; color: var(--soft); font: 500 11px var(--text); text-align: left; text-decoration: underline; text-decoration-color: var(--rule2); text-underline-offset: 3px; }
.bm-more.left { text-align: right; }
.bm-more:hover { background: transparent; color: var(--accent3); }
.bm-count { margin: 0; font: 12px/1.5 var(--text); color: var(--soft); }
.bm-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; font: 11.5px/1.6 var(--text); color: var(--soft); }
.bm-legend li { display: inline-flex; align-items: center; gap: 6px; }
.bm-legend .bm-glyph { width: 12px; height: 12px; }
.bm-key { display: inline-block; width: 22px; height: 12px; border: 1px solid var(--rule2); border-radius: 999px; font: 600 9px/10px var(--text); text-align: center; color: var(--muted); }
.bm-key.st-tentative { border-style: dashed; border-color: var(--muted); }
.bm-key.st-superseded { border-color: transparent; text-decoration: line-through; }
.bm-key-warn .icon { width: 13px; height: 13px; color: var(--warn); }

/* the list: the same items, in reading order */
.bm-list, .bm-conns, .bm-w, .bm-w-fired { margin: 0; padding: 0; list-style: none; }
.bm-list { border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--paper); overflow: hidden; }
.bm-list li + li { border-top: 1px solid var(--rule); }
.bm-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 0; background: transparent; text-align: left; }
.bm-item:hover { background: var(--paper2); }
.bm-item:focus-visible { outline-offset: -2px; }
.bm-item.sel { background: var(--accent2); box-shadow: inset 3px 0 0 var(--accent); }
.bm-item-text { display: grid; gap: 1px; }
.bm-item-text strong { font: 600 13px/1.35 var(--text); overflow-wrap: anywhere; }
.bm-item-text span { font: 11.5px/1.4 var(--text); color: var(--soft); }
.bm-item.st-superseded strong { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.bm-tag { display: inline-flex; align-items: center; gap: 4px; flex: none; min-height: 20px; padding: 0 8px; border: 1px solid var(--rule2); border-radius: 999px; background: var(--paper); color: var(--soft); font: 600 10.5px/1 var(--text); letter-spacing: .02em; white-space: nowrap; }
.bm-tag .icon { width: 11px; height: 11px; }
.bm-tag.st-tentative { border-style: dashed; border-color: var(--muted); }
.bm-tag.st-superseded { text-decoration: line-through; color: var(--muted); }
.bm-tag.st-disputed, .bm-tag.w-fired { border-color: color-mix(in srgb, var(--warn) 45%, var(--rule2)); color: var(--warn); }
.bm-tag.st-active, .bm-tag.w-active { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, var(--rule2)); }
.bm-tag.origin { background: var(--bg); border-color: var(--rule); color: var(--ink2); }

/* an item's details */
.bm-details { display: grid; gap: 12px; align-content: start; padding: 16px; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--paper); }
.bm-details.bm-none { padding: 12px 14px; border-style: dashed; background: transparent; }
.bm-details:empty { display: none; }
.bm-details-hint { margin: 0; font: 12.5px/1.5 var(--text); color: var(--soft); }
.bm-details-hint.warn { color: var(--warn); }
.bm-d-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bm-d-kind { display: inline-flex; align-items: center; gap: 7px; }
.bm-d-kind .eyebrow { color: var(--accent3); }
.bm-d-close { margin: -6px -6px -6px 0; }
.bm-d-title { margin: -4px 0 0; font: 500 22px/1.2 var(--display); letter-spacing: -.005em; overflow-wrap: anywhere; }
.bm-d-title.st-superseded { text-decoration: line-through; color: var(--soft); }
.bm-d-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bm-d-detail { margin: 0; font: 13.5px/1.55 var(--text); color: var(--ink2); }
.bm-d-note { display: flex; gap: 7px; align-items: flex-start; margin: 0; font: 12px/1.5 var(--text); color: var(--soft); }
.bm-d-note.warn { color: var(--warn); }
.bm-d-note .icon, .bm-err .icon { flex: none; width: 14px; height: 14px; margin-top: 2px; }
.bm-d-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 14px; margin: 0; font: 12.5px/1.45 var(--text); }
.bm-d-facts dt { color: var(--soft); }
.bm-d-facts dd { margin: 0; color: var(--ink); }
.bm-d-block { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--rule); }
.bm-d-block > .eyebrow { color: var(--muted); }
.bm-d-dim { margin: 0; font: 12px/1.5 var(--text); color: var(--soft); }
.bm-d-ref, .bm-d-chat { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font: 13px/1.4 var(--text); }
.bm-d-chat .icon { width: 14px; height: 14px; color: var(--info); }
.bm-d-source { display: grid; gap: 8px; }
.bm-d-source blockquote { margin: 0; padding: 8px 12px; border-left: 2px solid var(--gold-line); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--bg); font: italic 500 15px/1.45 var(--display); color: var(--ink2); overflow-wrap: anywhere; }
.bm-conns { display: grid; gap: 4px; }
.bm-conn { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; width: 100%; padding: 7px 10px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); text-align: left; }
.bm-conn:hover { border-color: var(--gold-line); background: var(--accent2); }
.bm-conn-text { display: grid; gap: 0; }
.bm-conn-rel { font: 11px/1.4 var(--text); color: var(--soft); }
.bm-conn strong { font: 600 12.5px/1.35 var(--text); overflow-wrap: anywhere; }
.bm-conn.st-superseded strong { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.bm-d-actions { padding-top: 12px; border-top: 1px solid var(--rule); }
.bm-step { display: grid; gap: 8px; margin-top: 10px; padding: 12px; border: 1px solid var(--rule2); border-radius: var(--r); background: var(--bg); }
.bm-step.danger { border-color: color-mix(in srgb, var(--stop) 35%, var(--rule2)); background: color-mix(in srgb, var(--stop) 6%, var(--paper)); }
.bm-step p, .bm-step label { margin: 0; font: 12.5px/1.5 var(--text); color: var(--ink2); }
.bm-scopes { display: flex; flex-wrap: wrap; gap: 6px; }
.bm-form { display: grid; gap: 10px; }
.bm-field { display: grid; gap: 4px; }
.bm-field > span { font: 600 11.5px var(--text); color: var(--soft); }
.bm-input { width: 100%; padding: 8px 10px; font: 13px/1.5 var(--text); border-radius: var(--r); }
.bm-err { display: flex; gap: 7px; align-items: flex-start; margin: 0; font: 500 12.5px/1.5 var(--text); color: var(--stop); }

/* clear durable memory: its own row, apart from the items */
.bm-clear { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); }
.bm-clear[hidden] { display: none; }
.bm-clear > .bm-step, .bm-clear > .bm-err { grid-column: 1 / -1; margin-top: 0; }

/* the full view: the same panel in a large dialog, the details beside the graph */
.bm-full { position: fixed; inset: 0; z-index: 115; display: grid; place-items: center; padding: 20px; background: color-mix(in srgb, var(--night) 55%, transparent); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); color: var(--ink); font: 14px/1.55 var(--text); animation: bm-fade .2s ease-out both; }
@keyframes bm-fade { from { opacity: 0; } to { opacity: 1; } }
.bm-full-card { --bm-well: var(--canvas); display: flex; flex-direction: column; width: min(1320px, 100%); height: min(900px, 100%); border: 1px solid var(--rule2); border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--shadow-3); overflow: hidden; }
.bm-full-head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 22px 14px; border-bottom: 1px solid var(--rule); }
.bm-full-head .eyebrow { display: block; margin-bottom: 2px; color: var(--accent3); }
.bm-full-head h3 { margin: 0; font: 500 26px/1.1 var(--display); letter-spacing: -.005em; }
.bm-panel.full { flex: 1; min-height: 0; padding: 14px 22px 20px; overflow-y: auto; }
.bm-panel.full .bm-port { max-height: none; min-height: 280px; }
.bm-panel.full.split { display: flex; flex-direction: column; overflow: hidden; }
.bm-panel.full.split .bm-main { flex: 1; grid-template-columns: minmax(0, 1fr) 372px; grid-template-rows: minmax(0, 1fr); gap: 16px; min-height: 0; }
.bm-panel.full.split .bm-view { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.bm-panel.full.split .bm-view.is-graph { overflow: visible; }
.bm-panel.full .bm-net { height: clamp(360px, 64vh, 680px); }
.bm-panel.full.split .bm-port, .bm-panel.full.split .bm-net { flex: 1 1 auto; height: auto; min-height: 0; }
.bm-panel.full.split .bm-view > :not(.bm-port, .bm-net) { flex: none; }
.bm-panel.full.split .bm-details { overflow-y: auto; min-height: 0; scrollbar-color: var(--rule2) transparent; }
.bm-panel.full.split .bm-list { align-self: start; }
.bm-panel.full.split .bm-state { align-self: start; }

/* watching for you */
.bm-watching .bm-w-sub { margin: 18px 0 8px; }
.bm-w { display: grid; gap: 8px; }
.bm-w-item { display: grid; gap: 7px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--paper); }
.bm-w-item.st-cancelled, .bm-w-item.st-expired { background: transparent; }
.bm-w-item.st-cancelled .bm-w-top strong { text-decoration: line-through; color: var(--soft); }
.bm-w-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.bm-w-top strong { display: inline-flex; align-items: baseline; gap: 7px; font: 600 13.5px/1.35 var(--text); overflow-wrap: anywhere; }
.bm-w-top strong .bm-glyph { align-self: center; }
.bm-w-cond { margin: 0; font: 12.5px/1.5 var(--text); color: var(--ink2); }
.bm-w-facts { display: flex; flex-wrap: wrap; gap: 2px 16px; font: 12px/1.5 var(--text); color: var(--ink2); }
.bm-w-fact > span { margin-right: 5px; color: var(--soft); }
.bm-w-fired { display: grid; gap: 4px; padding: 8px 10px; border-radius: var(--r); background: var(--bg); }
.bm-w-fired li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font: 12.5px/1.5 var(--text); }

@media (max-width: 640px) {
  .bm-full { padding: 0; }
  .bm-full-card { width: 100%; height: 100%; border: 0; border-radius: 0; }
  .bm-full-head { padding: 14px 16px 12px; }
  .bm-panel.full { padding: 12px 16px 20px; }
  .bm-full-btn { flex: 1 1 100%; justify-content: center; }
  .bm-clear { grid-template-columns: minmax(0, 1fr); }
  .bm-clear > button { justify-self: start; }
  .bm-port { max-height: 400px; }
  .bm-net { height: clamp(320px, 52vh, 420px); }
  .bm-net .bm-net-ctl { width: 38px; height: 38px; }
  .bm-chip, .bm-status { min-height: 34px; }
  .bm-chips { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; margin: -3px; padding: 3px; scrollbar-width: none; }
  .bm-chip { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bm-full { animation: none; }
  .bm-edge, .bm-edge-label { transition: none; }
  .bm-net-wait span { animation: none; }
  .bm-net-legend summary .icon { transition: none; }
}
