/* REST API map (TW-4305, media/rest-map.js). Theme: VS Code variables, with
   literal fallbacks for a host without them (the standalone map.html, TW-4307).
   Method pills keep Swagger UI's method colors, like the "Related operations"
   block, so a GET reads the same in both views. */
.rm-root {
  --rm-bg: var(--vscode-editor-background, #ffffff);
  --rm-fg: var(--vscode-editor-foreground, #1f1f1f);
  --rm-panel: var(--vscode-sideBar-background, var(--vscode-editorWidget-background, #f3f3f3));
  --rm-border: var(--vscode-editorWidget-border, var(--vscode-panel-border, #d4d4d4));
  --rm-focus: var(--vscode-focusBorder, #0078d4);
  --rm-muted: var(--vscode-descriptionForeground, #5c5c5c);
  --rm-link: var(--vscode-textLink-foreground, #0066bf);
  --rm-node: var(--vscode-editorWidget-background, #ffffff);
  --rm-hover: var(--vscode-list-hoverBackground, #e8e8e8);
  --rm-dep: var(--vscode-charts-purple, #b5338a);
  --rm-mark: var(--vscode-editor-findMatchHighlightBackground, rgba(234, 92, 0, .33));
  --rm-grid: var(--vscode-editorIndentGuide-background1, var(--vscode-editorIndentGuide-background, rgba(128, 128, 128, .18)));
  --rm-input-bg: var(--vscode-input-background, #ffffff);
  --rm-input-fg: var(--vscode-input-foreground, inherit);
  --rm-input-border: var(--vscode-input-border, var(--rm-border));
  --rm-btn-bg: var(--vscode-button-secondaryBackground, #e5e5e5);
  --rm-btn-fg: var(--vscode-button-secondaryForeground, #1f1f1f);
  --rm-btn-hover: var(--vscode-button-secondaryHoverBackground, #d5d5d5);
  --rm-shadow: 0 2px 10px var(--vscode-widget-shadow, rgba(0, 0, 0, .16));
  --rm-mono: var(--vscode-editor-font-family, ui-monospace, Consolas, monospace);
  --rm-m-get: #61affe; --rm-m-post: #49cc90; --rm-m-put: #fca130; --rm-m-delete: #f93e3e; --rm-m-patch: #50e3c2;
  background: var(--rm-bg); color: var(--rm-fg);
  font: 13px/1.4 var(--vscode-font-family, system-ui, "Segoe UI", sans-serif);
}
.rm-root *, .rm-root *::before, .rm-root *::after { box-sizing: border-box; }
.rm-root button:focus-visible, .rm-root input:focus-visible, .rm-root summary:focus-visible {
  outline: 1px solid var(--rm-focus); outline-offset: 1px;
}

.rm-frame { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; min-width: 0; overflow: hidden; }
.rm-toolbar {
  display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: space-between;
  padding: 6px 8px; background: var(--rm-panel); border-bottom: 1px solid var(--rm-border);
}
.rm-search { flex: 1 1 220px; min-width: 0; display: flex; align-items: center; gap: 8px; }
.rm-q {
  flex: 1; min-width: 0; padding: 4px 8px; font: inherit; border-radius: 2px;
  background: var(--rm-input-bg); color: var(--rm-input-fg); border: 1px solid var(--rm-input-border);
}
.rm-qcount { color: var(--rm-muted); white-space: nowrap; font-size: 12px; }
.rm-tools { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.rm-btn {
  padding: 3px 10px; font: inherit; cursor: pointer; border-radius: 2px;
  background: var(--rm-btn-bg); color: var(--rm-btn-fg); border: 1px solid transparent;
}
.rm-btn:hover { background: var(--rm-btn-hover); }
.rm-btn.rm-sq { width: 26px; padding: 3px 0; }
/* TW-4440: the pop-out button, icon-only, as tall as its text neighbours, a little apart from the zoom group. */
.rm-btn.rm-pop { display: inline-flex; align-items: center; justify-content: center; align-self: stretch; margin-left: 6px; }
.rm-btn.rm-pop svg { display: block; }
.rm-zlvl { min-width: 42px; text-align: center; color: var(--rm-muted); font-size: 12px; font-variant-numeric: tabular-nums; }

.rm-body { position: relative; flex: 1; min-height: 0; display: flex; }
.rm-stage { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; }
.rm-view {
  position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; outline: none;
  background-image: radial-gradient(var(--rm-grid) 1px, transparent 1px); background-size: 20px 20px;
}
.rm-view.rm-panning { cursor: grabbing; }
.rm-world { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; }
/* Stacking: containment edges < dependency lines < node cards < parameter chips. */
.rm-edges, .rm-deps, .rm-chips { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.rm-edges { z-index: 1; }
.rm-deps { z-index: 2; }
.rm-chips { z-index: 4; }
.rm-edges path { fill: none; stroke-linecap: round; }
.rm-deps path.rm-dl { fill: none; stroke: var(--rm-dep); stroke-width: 2.2; stroke-dasharray: 7 5; marker-end: url(#rm-arrow); }
.rm-arrowhead { fill: var(--rm-dep); }
/* Chips sit on an opaque background, so a line or label under them never shows through. */
.rm-chips .rm-plab rect { fill: var(--rm-bg); stroke: var(--rm-dep); stroke-width: 1; }
.rm-chips .rm-plab text { font: 600 11px var(--vscode-font-family, system-ui, sans-serif); fill: var(--rm-dep); }
.rm-chips.rm-nolab .rm-plab { display: none; }
/* Hover: a wide invisible hit line per dependency; chips are hoverable too. */
.rm-deps path.rm-dhit { fill: none; stroke: transparent; stroke-width: 12; pointer-events: stroke; cursor: default; }
.rm-chips .rm-plab { pointer-events: auto; cursor: default; }
.rm-deps path.rm-dcase, .rm-chips .rm-hotline path.rm-dcase { fill: none; pointer-events: none; stroke: var(--rm-bg); stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; }
.rm-deps path.rm-dl, .rm-deps path.rm-dcase, .rm-chips .rm-plab { transition: opacity 100ms; }
.rm-hotmode .rm-deps path.rm-dcase:not(.rm-hot), .rm-hotmode .rm-deps path.rm-dl:not(.rm-hot),.rm-hotmode .rm-chips .rm-plab:not(.rm-hot) { opacity: .3; }
.rm-deps path.rm-dl.rm-dl-inf { stroke-dasharray: 1.5 5; stroke-linecap: round; opacity: .6; }
.rm-chips .rm-hotline path.rm-dl.rm-dl-inf { stroke-dasharray: 1.5 5; stroke-linecap: round; }
.rm-lg-inf path { opacity: .6; }
.rm-lg-tog { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.rm-lg-tog input { margin: 0; accent-color: var(--rm-dep); }
.rm-inf-tag { color: var(--vscode-descriptionForeground, inherit); font-style: italic; }
.rm-chips .rm-hotline path.rm-dl { fill: none; stroke: var(--rm-dep); stroke-width: 3.2; stroke-dasharray: 7 5; marker-end: url(#rm-arrow); }
.rm-chips .rm-plab.rm-hot rect { stroke-width: 2; }
/* Panning never selects text; a plain click or a drag on text still does. */
.rm-panning, .rm-panning * { user-select: none; -webkit-user-select: none; }
.rm-nodes { position: absolute; left: 0; top: 0; z-index: 3; }
/* While an operation is selected, what is not on its dependency path steps back. */
.rm-n, .rm-edges path { transition: opacity 120ms; }
/* Dim the content, not the card: the background stays opaque, so lines
   behind a dimmed card stay hidden. */
.rm-n > * { transition: opacity 120ms; }
.rm-focus .rm-n:not(.rm-rel) > * { opacity: .35; }.rm-focus .rm-edges path:not(.rm-rel) { opacity: .35; }

/* Nodes */
.rm-n {
  position: absolute; margin: 0; font: inherit; color: var(--rm-fg); text-align: left;
  background: var(--rm-node); border: 1px solid var(--rm-border); border-left: 4px solid var(--rm-c, var(--rm-border));
  border-radius: 7px; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; padding: 0 8px;
}
button.rm-n { cursor: pointer; flex-direction: row; align-items: center; gap: 6px; }
button.rm-n:hover { background: var(--rm-hover); }
.rm-n.rm-rootn { border-left-width: 1px; align-items: center; text-align: center; background: var(--rm-panel); box-shadow: var(--rm-shadow); cursor: default; }
.rm-rt { font-weight: 600; font-size: 13px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.rm-rs { color: var(--rm-muted); font-size: 11px; margin-top: 2px; }
.rm-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.rm-grp .rm-nm { font-weight: 500; }
.rm-cnt { color: var(--rm-muted); font-size: 11px; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.rm-chev { color: var(--rm-muted); font-size: 10px; width: 10px; flex: 0 0 auto; }
.rm-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--rm-c); flex: 0 0 auto; border: 1px solid rgba(128, 128, 128, .35); }
.rm-n.rm-res { padding: 4px 8px; gap: 3px; justify-content: flex-start; cursor: default; }
/* The label line above the pills: one line, never under or over a pill. */
.rm-sg { display: block; flex: 0 0 auto; height: 16px; max-width: 100%; font: 11px/16px var(--rm-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-n.rm-hit { border-color: var(--rm-focus); }
.rm-cat.rm-hit, .rm-grp.rm-hit { box-shadow: 0 0 0 1px var(--rm-focus); }
.rm-root mark { background: var(--rm-mark); color: inherit; border-radius: 2px; padding: 0 1px; }

/* Method pills */
.rm-pills { display: flex; flex: 0 0 auto; gap: 4px; flex-wrap: wrap; }
.rm-pill, .rm-mp {
  display: inline-block; flex: 0 0 auto; height: 16px; border: 0; border-radius: 3px; padding: 0; margin: 0;
  font: 700 9.5px/16px system-ui, "Segoe UI", sans-serif; letter-spacing: .02em; text-align: center; color: #111;
  background: var(--rm-pc, #999);
}
.rm-pill { cursor: pointer; }
.rm-m-GET { --rm-pc: var(--rm-m-get); width: 32px; }
.rm-m-POST { --rm-pc: var(--rm-m-post); width: 38px; }
.rm-m-PUT { --rm-pc: var(--rm-m-put); width: 32px; }
.rm-m-DELETE { --rm-pc: var(--rm-m-delete); width: 50px; }
.rm-m-PATCH { --rm-pc: var(--rm-m-patch); width: 42px; }
.rm-pill.rm-depr { text-decoration: line-through; opacity: .75; }
.rm-pill.rm-dim { opacity: .4; }
.rm-pill.rm-hit { box-shadow: 0 0 0 2px var(--rm-mark); }
.rm-pill:hover { filter: brightness(1.08); }
.rm-pill.rm-src { outline: 2px dashed var(--rm-dep); outline-offset: 1px; opacity: 1; }
.rm-pill.rm-sel { outline: 2px solid var(--rm-focus); outline-offset: 2px; opacity: 1; }

/* Legend, stats */
.rm-legend {
  position: absolute; left: 8px; bottom: 8px; z-index: 4; font-size: 12px;
  background: var(--rm-panel); border: 1px solid var(--rm-border); border-radius: 6px; box-shadow: var(--rm-shadow);
  max-width: min(300px, calc(100% - 16px));
}
.rm-legend-h { display: block; width: 100%; padding: 5px 10px; background: none; border: 0; color: var(--rm-fg); font: 600 12px var(--vscode-font-family, sans-serif); cursor: pointer; text-align: left; }
.rm-legend-b { display: grid; gap: 4px; padding: 2px 10px 8px; max-height: 260px; overflow: auto; }
.rm-legend.rm-closed .rm-legend-b { display: none; }
.rm-lg-row { display: flex; align-items: center; gap: 6px; }
.rm-lg-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.rm-lg-line { width: 30px; height: 8px; flex: 0 0 auto; }
.rm-lg-dep path { stroke: var(--rm-dep); }
.rm-lg-mp { display: flex; gap: 4px; flex-wrap: wrap; }
.rm-stats {
  position: absolute; right: 8px; bottom: 6px; z-index: 2; padding: 1px 6px; border-radius: 4px;
  color: var(--rm-muted); font-size: 11px; background: var(--rm-bg); opacity: .92; pointer-events: none;
}
.rm-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--rm-muted); z-index: 3; }
.rm-empty[hidden], .rm-drawer[hidden] { display: none; }

/* Drawer: a side panel that shrinks the map; a bottom sheet in a narrow frame. */
.rm-drawer {
  flex: 0 0 340px; width: 340px; min-height: 0; z-index: 6;
  display: flex; flex-direction: column;
  background: var(--rm-panel); border-left: 1px solid var(--rm-border);
  box-shadow: -2px 0 8px var(--vscode-widget-shadow, rgba(0, 0, 0, .12));
}
.rm-frame.rm-sheet .rm-drawer {
  position: absolute; left: 0; right: 0; bottom: 0; width: auto; flex: none; max-height: 45%;
  border-left: 0; border-top: 1px solid var(--rm-border); border-radius: 10px 10px 0 0; box-shadow: var(--rm-shadow);
}
.rm-dh { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px 6px; flex: 0 0 auto; }
.rm-path { flex: 1; min-width: 0; font: 12px/1.35 var(--rm-mono); overflow-wrap: anywhere; }
.rm-dnavs { display: flex; gap: 2px; flex: 0 0 auto; padding-right: 8px; margin-right: 2px; border-right: 1px solid var(--rm-border, rgba(128,128,128,.35)); }
.rm-dnav { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; background: none; border: 0; border-radius: 4px; color: var(--rm-muted); cursor: pointer; padding: 0; }
.rm-dnav:hover:not(:disabled) { color: var(--rm-fg); background: var(--vscode-toolbar-hoverBackground, rgba(128,128,128,.18)); }
.rm-dnav:disabled { opacity: .35; cursor: default; }
.rm-dclose { background: none; border: 0; color: var(--rm-muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 4px; }
.rm-dclose:hover { color: var(--rm-fg); }
.rm-dbody { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 8px 12px 12px; }
.rm-dsum { font-size: 14px; font-weight: 600; margin: 2px 0 4px; }
.rm-dmeta { display: flex; flex-direction: column; gap: 3px; margin-bottom: 16px; color: var(--rm-muted); font-size: 12px; }
.rm-dmeta code { font: 12px var(--rm-mono); color: var(--rm-fg); overflow-wrap: anywhere; }
.rm-dcat { display: inline-flex; align-items: center; gap: 6px; color: var(--rm-fg); }
.rm-dsec + .rm-dsec { margin-top: 14px; }
.rm-dsec h3 { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--rm-muted); font-weight: 600; }
.rm-dlist { margin: 0; padding: 0; display: grid; gap: 6px; }
.rm-dcap { margin: 0 0 6px; font-size: 12px; color: var(--rm-muted); }
.rm-ccard {
  display: grid; gap: 3px; width: 100%; padding: 6px 8px; text-align: left; font: inherit; color: var(--rm-fg);
  background: var(--rm-bg); border: 1px solid var(--rm-border); border-radius: 6px; cursor: pointer;
}
.rm-ccard:hover, .rm-ccard.rm-hl { background: var(--rm-hover); border-color: var(--rm-focus); }
.rm-ccard.rm-hl { box-shadow: 0 0 0 1px var(--rm-dep); }
.rm-cc1 { display: flex; gap: 6px; align-items: flex-start; min-width: 0; }
.rm-cc1 .rm-mp { margin-top: 1px; }
.rm-cnum {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--rm-dep); color: var(--rm-dep); font: 600 11px/1 var(--vscode-font-family, sans-serif); font-variant-numeric: tabular-nums;
}
.rm-cs { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.rm-cc2 { display: flex; flex-wrap: wrap; column-gap: 8px; align-items: baseline; padding-left: 56px; min-width: 0; }
.rm-numd .rm-cc2 { padding-left: 80px; }
.rm-cpars { flex: 0 1 auto; min-width: 0; color: var(--rm-muted); }
.rm-par { font: 600 12px var(--rm-mono); color: var(--rm-dep); white-space: nowrap; }
.rm-ub-s { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
.rm-ub-id { flex: 0 1 auto; color: var(--rm-muted); font: 11px var(--rm-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Used-by rows (owner pick C, 2026-11-23): the operationId gets its own line under the summary, aligned past the 50px pill + 6px gap. */
.rm-plink .rm-ub-id { order: 3; flex: 0 0 100%; padding-left: 56px; box-sizing: border-box; line-height: 14px; }
.rm-drawer .rm-mp:not(.rm-mpath) { width: 50px; }
.rm-hp { color: var(--rm-dep); font-weight: 600; }
.rm-plink {
  width: 100%; display: flex; flex-wrap: wrap; gap: 0 6px; align-items: flex-start; padding: 3px 4px; text-align: left; cursor: pointer;
  background: none; color: var(--rm-fg); border: 0; border-radius: 4px; font: inherit;
}
.rm-plink:hover { background: var(--rm-hover); }
.rm-bytag { border: 1px solid var(--rm-border); border-radius: 5px; background: var(--rm-bg); }
.rm-bytag summary { cursor: pointer; padding: 4px 8px; display: flex; gap: 8px; }
.rm-tg { flex: 1; font-weight: 500; }
.rm-bytag ul { list-style: none; margin: 0; padding: 2px 6px 6px; display: grid; gap: 2px; }
.rm-dnone { color: var(--rm-muted); font-size: 12px; }

/* Path / category focus (TW-4426): resource cards and legend rows are focus targets */
.rm-n.rm-res[data-res] { cursor: pointer; }
.rm-n.rm-res[data-res]:hover { background: var(--rm-hover); border-color: var(--rm-focus); }
.rm-n.rm-res.rm-pf { box-shadow: 0 0 0 2px var(--rm-focus); }
.rm-n.rm-rootn { cursor: pointer; }
.rm-lg-cat { cursor: pointer; padding: 1px 4px; margin: 0 -4px; border-radius: 4px; }
.rm-lg-cat:hover { background: var(--rm-hover); }
/* Clickable chips: a dashed-line parameter chip selects the source operation */
.rm-chips .rm-plab { cursor: pointer; }
.rm-chips .rm-plab text { text-decoration: underline; }
.rm-chips .rm-plab:hover rect { fill: var(--rm-hover); }
.rm-deps path.rm-dhit { cursor: pointer; }
.rm-dsec h3 code { font: 600 12px var(--rm-mono); background: none; padding: 0; color: var(--rm-dep); text-transform: none; letter-spacing: 0; }
.rm-mpath { width: auto; padding: 0 6px; background: var(--rm-muted); color: var(--rm-bg); }
.rm-pops .rm-plink { align-items: flex-start; }
.rm-pops-s { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
/* Styled tooltip */
.rm-tip[hidden] { display: none; }
.rm-tip { position: fixed; z-index: 60; max-width: min(360px, calc(100vw - 12px)); padding: 6px 9px; background: var(--rm-panel); color: var(--rm-fg); border: 1px solid var(--rm-border); border-radius: 6px; box-shadow: var(--rm-shadow); font: 12px/1.4 var(--vscode-font-family, system-ui, sans-serif); pointer-events: none; }
.rm-tip1 { display: flex; align-items: center; gap: 6px; }
.rm-tip-p { font: 12px/1.35 var(--rm-mono); overflow-wrap: anywhere; }
.rm-tip2 { margin-top: 3px; color: var(--rm-muted); }
/* Minimap (opt-in) */
.rm-mm { position: absolute; right: 10px; bottom: 10px; z-index: 3; border: 1px solid var(--rm-border); border-radius: 6px; background: var(--rm-panel); opacity: .96; cursor: pointer; touch-action: none; box-shadow: var(--rm-shadow); }
.rm-mm[hidden] { display: none; }
.rm-stats { left: 96px; right: auto; bottom: 12px; }
.rm-legend:not(.rm-closed) ~ .rm-stats { display: none; }

/* Status strip (adapter.statusStrip): legend, stats and minimap under the canvas, never over it */
.rm-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.rm-main > .rm-stage { flex: 1 1 0; min-height: 0; }
.rm-strip { flex: 0 0 auto; border-top: 1px solid var(--rm-border); background: var(--rm-panel); font-size: 12px; }
.rm-strip [hidden] { display: none !important; }
.rm-strip-bar { display: flex; align-items: center; gap: 12px; height: 28px; box-sizing: border-box; padding: 0 12px; color: var(--rm-muted); }
.rm-strip-btn { order: 0; display: inline-flex; align-items: center; gap: 6px; padding: 2px 6px; font: 12px var(--vscode-font-family, sans-serif); color: var(--rm-muted); background: none; border: 1px solid transparent; border-radius: 4px; cursor: pointer; }
.rm-strip-btn:hover { background: var(--rm-hover); color: var(--rm-fg); }
.rm-sw { display: inline-flex; gap: 2px; }
.rm-sw i { width: 3px; height: 10px; border-radius: 1px; background: var(--rm-c); }
.rm-chev { font-size: 12px; line-height: 1; }
.rm-strip .rm-stats { order: 1; position: static; left: auto; right: auto; bottom: auto; padding: 0; background: none; opacity: 1; font-size: 12px; color: var(--rm-muted); pointer-events: auto; }
/* "Ctrl + scroll to zoom" at the strip's right end. Never cut off: a strip under 520 px (or a touch
   screen) drops it, and the stats line stays on one line. */
.rm-strip { container-type: inline-size; }
.rm-strip .rm-stats { white-space: nowrap; }
.rm-zoom-hint { order: 2; margin-left: auto; white-space: nowrap; color: var(--rm-muted); }
.rm-zoom-hint kbd { display: inline-block; padding: 0 5px; font: 11px/16px var(--vscode-font-family, sans-serif); color: var(--rm-fg); background: var(--rm-hover); border: 1px solid var(--rm-border); border-radius: 3px; }
@container (max-width: 519px) { .rm-zoom-hint { display: none; } }
@media (hover: none) { .rm-zoom-hint { display: none; } }
.rm-lgpop { position: absolute; left: 8px; bottom: 8px; z-index: 5; width: 300px; max-width: calc(100% - 16px); max-height: calc(100% - 16px); overflow: auto; display: block; padding: 10px 12px; font-size: 12px; background: var(--rm-panel); border: 1px solid var(--rm-border); border-radius: 8px; box-shadow: var(--rm-shadow); }
.rm-lgpop[hidden] { display: none; }
.rm-sl-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.rm-sl-eye { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--rm-muted); }
.rm-sl-t { font-size: 14px; font-weight: 600; }
.rm-sl-x { width: 24px; height: 24px; line-height: 1; font-size: 18px; color: var(--rm-muted); background: none; border: 0; border-radius: 4px; cursor: pointer; }
.rm-sl-x:hover { background: var(--rm-hover); color: var(--rm-fg); }
.rm-sl-body { display: flex; flex-direction: column; gap: 12px; }
.rm-sl-l { display: grid; gap: 10px; }
.rm-sl-r { flex: 1 1 0; min-width: 0; }
.rm-sl-key { display: flex; align-items: flex-start; gap: 8px; }
.rm-sl-key .rm-lg-line { margin-top: 6px; }
.rm-sl-key span strong { display: block; font-size: 12px; }
.rm-sl-key small { display: block; font-size: 11px; color: var(--rm-muted); }
.rm-sl-kl { flex: 0 0 auto; font-size: 12px; font-weight: 600; margin-right: 4px; }
.rm-sl-key .rm-lg-mp { flex: 1 1 0; }
.rm-sl-ch { display: flex; align-items: center; gap: 6px; }
.rm-sl-cl { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--rm-muted); }
.rm-sl-n { font-size: 10px; padding: 0 6px; border-radius: 8px; background: var(--rm-hover); color: var(--rm-muted); }
.rm-sl-hint { margin: 2px 0 6px; font-size: 11px; color: var(--rm-muted); }
.rm-sl-grid { display: grid; grid-template-columns: 1fr; gap: 6px; }
.rm-sl-tile { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 8px; font: 12px var(--vscode-font-family, sans-serif); color: var(--rm-fg); text-align: left; cursor: pointer; border: 0; border-left: 3px solid var(--rm-c); border-radius: 4px; background: color-mix(in srgb, var(--rm-c) 10%, var(--rm-bg)); }
.rm-sl-tile:hover, .rm-sl-tile:focus-visible { background: color-mix(in srgb, var(--rm-c) 18%, var(--rm-bg)); }
.rm-sl-tile:focus-visible { outline: 1px solid var(--rm-focus); }
.rm-sl-nm { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-sl-ct { flex: 0 0 auto; font-size: 11px; color: var(--rm-muted); font-variant-numeric: tabular-nums; }
.rm-sl-ar { flex: 0 0 auto; color: var(--rm-muted); }

/* Operation drawer header: summary left, actions right; ID + breadcrumbs below */
.rm-dtop { display: flex; align-items: flex-start; gap: 8px; margin: 2px 0 4px; }
.rm-dtop .rm-dsum { flex: 1 1 auto; min-width: 0; margin: 2px 0 0; }
.rm-dacts { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.rm-dicon { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border-radius: 4px; border: 1px solid var(--rm-border); background: var(--rm-btn-bg); color: var(--rm-btn-fg); cursor: pointer; }
.rm-dicon:hover { background: var(--rm-btn-hover); }
.rm-cwhy { padding-left: 80px; font-size: 11px; color: var(--rm-muted); overflow-wrap: anywhere; }
.rm-cwhy code { font: 11px var(--rm-mono); color: var(--rm-dep); }
/* No sideways scroll: every level of the used-by rows may shrink */
.rm-dsec, .rm-dlist, .rm-bytag, .rm-bytag ul, .rm-bytag li, .rm-plink, .rm-ccard, .rm-bytag summary, .rm-dmeta { min-width: 0; }
.rm-tg { min-width: 0; overflow-wrap: anywhere; }
.rm-ub-s { min-width: 0; }

/* Breadcrumbs end with the operationId: crumbs muted, the ID in text colour + mono (owner pick A, 2026-11-23).
   A segment moves to the next line whole; it wraps inside only when it is longer than the line. */
.rm-dmeta .rm-dcat { display: block; color: var(--rm-muted); line-height: 18px; }
.rm-dmeta .rm-dseg { display: inline-block; max-width: 100%; }
.rm-dmeta .rm-dseg .rm-dot { vertical-align: -1px; margin-right: 6px; }
.rm-dmeta .rm-dop { font: 12px var(--rm-mono); color: var(--rm-fg); overflow-wrap: anywhere; }
