/* kwatch dashboard: the "How it connects" picture on an issue's Impact
   tab (js/map.js, js/maplayout.js). Boxes take the level colors the rest
   of the dashboard uses and the issue's own object is outlined; the
   drawing scrolls inside its frame, never the page. Under 700px wide
   only the list of objects and connections shows. */
.map-line { margin: 0 0 8px; color: var(--text-soft); }
.map-canvas { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--bg); padding: 4px; }
.map-svg { display: block; }
.map-edge { fill: none; stroke: var(--control-border); stroke-width: 1.5; }
.map-e-calls { stroke-dasharray: 5 4; }
.map-node rect { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.map-node text { fill: var(--text); font-size: 13px; }
.map-node .map-kind { fill: var(--text-muted); font-size: 11.5px; }
.map-node.map-l-page rect { fill: var(--failing-bg); stroke: var(--failing); stroke-width: 2; }
.map-node.map-l-notify rect { fill: var(--degraded-bg); stroke: var(--degraded); stroke-width: 2; }
.map-node.map-l-digest rect { stroke: var(--control-border); stroke-width: 2; }
.map-node.map-ext rect { stroke-dasharray: 4 3; }
.map-node.map-self rect { stroke: var(--text); stroke-width: 3; }
.map-node[role="link"] { cursor: pointer; }
.map-node:focus { outline: none; }
.map-node:focus-visible rect { stroke: var(--text); stroke-width: 3.5; }
.map-more { margin-top: 10px; }
.map-more > summary { cursor: pointer; width: fit-content; color: var(--text-muted); font-size: var(--t-small); }
.map-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: var(--t-small); }
.map-list li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; min-width: 0; overflow-wrap: anywhere; }
.map-li { font-weight: 600; }
.map-li-level { font-size: var(--t-micro); color: var(--text-muted); }
.map-li-level.map-l-page { color: var(--failing); }
.map-li-level.map-l-notify { color: var(--degraded); }
.map-li-out { flex-basis: 100%; color: var(--text-muted); }
@media (max-width: 700px) {
  .map-canvas { display: none; }
  .map-more { margin-top: 0; }
  .map-more > summary { display: none; }
}
