/* Map engine styles, shared by every Practical SWE 101 map.
   Boxes are themed by kind through --n-* tokens: a kind sets its colors once,
   and every state (hover, selected, highlighted, done, modes) reads them. */
  :root {
    --paper: #F1F0EC; --ink: #641E28; --ink-soft: rgba(100,30,40,.68); --ink-faint: rgba(100,30,40,.44);
    --card: #FFFFFF; --sunk: #E8E6E0; --burgundy: #9B3741; --burgundy-hover: #AA4650; --on-burgundy: #FFF5F7;
    --border: rgba(100,30,40,.14); --divider: rgba(100,30,40,.09); --pill: #F5E1E4; --ok: #2E7D46;
    --req: #9B3741; --dep: #2F6B5E; --fb: #A86F12; --ctx: rgba(100,30,40,.34);
    --test: #2F67A8; --test-bg: #E6EEF8; --copy-bg: #F1F8F4; --copy: #5E9E83; --copy-ink: #3D7D61; --copy-lit: #DCEFE5;
    --shadow-pop: 0 18px 50px rgba(100,30,40,.16), 0 2px 8px rgba(100,30,40,.08);
    --display: "Fraunces", Georgia, serif; --body: "Inter", system-ui, -apple-system, sans-serif;
  }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
    --paper: #1A1214; --ink: #F2E3E5; --ink-soft: rgba(242,227,229,.7); --ink-faint: rgba(242,227,229,.45);
    --card: #251A1D; --sunk: #2E2124; --burgundy: #C9606B; --burgundy-hover: #D6737D; --on-burgundy: #1A1214;
    --border: rgba(242,227,229,.15); --divider: rgba(242,227,229,.08); --pill: #3A2428; --ok: #5DBB7A;
    --req: #D06E78; --dep: #5FAE9C; --fb: #D9A548; --ctx: rgba(242,227,229,.35); --test: #7FA9E0; --test-bg: #1C2A3D; --copy-bg: #17241F; --copy: #7CC3A2; --copy-ink: #8FD3B3; --copy-lit: #1F3A2E;
    --shadow-pop: 0 18px 50px rgba(0,0,0,.5); color-scheme: dark; } }
  :root[data-theme="dark"] {
    --paper: #1A1214; --ink: #F2E3E5; --ink-soft: rgba(242,227,229,.7); --ink-faint: rgba(242,227,229,.45);
    --card: #251A1D; --sunk: #2E2124; --burgundy: #C9606B; --burgundy-hover: #D6737D; --on-burgundy: #1A1214;
    --border: rgba(242,227,229,.15); --divider: rgba(242,227,229,.08); --pill: #3A2428; --ok: #5DBB7A;
    --req: #D06E78; --dep: #5FAE9C; --fb: #D9A548; --ctx: rgba(242,227,229,.35); --test: #7FA9E0; --test-bg: #1C2A3D; --copy-bg: #17241F; --copy: #7CC3A2; --copy-ink: #8FD3B3; --copy-lit: #1F3A2E;
    --shadow-pop: 0 18px 50px rgba(0,0,0,.5); color-scheme: dark; }

  * { box-sizing: border-box; }
  html, body { margin: 0; background: var(--paper); color: var(--ink); }
  body { font: 400 14px/1.5 var(--body); -webkit-font-smoothing: antialiased; padding-inline: 16px; }
  header { max-width: 1640px; margin: 0 auto; padding-block: 20px 6px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
  h1 { margin: 0; font: 500 22px/1.2 var(--display); letter-spacing: -0.01em; }
  header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .back { color: var(--ink); opacity: .6; font-size: 13px; font-weight: 600; text-decoration: none; }
  .back:hover { opacity: 1; }
  h1 em { font-style: italic; font-weight: 400; color: var(--burgundy); }
  .env { position: absolute; z-index: 3; display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: var(--card); }
  .env button { border: 0; background: none; cursor: pointer; font: 600 12.5px var(--body); color: var(--ink-soft); padding: 6px 14px; border-radius: 999px; display: inline-flex; gap: 7px; align-items: center; }
  .env button i { width: 8px; height: 8px; border-radius: 50%; background: var(--burgundy); }
  .env button i.dot-test { background: var(--test); }
  .env button i.own { background: transparent; border: 2px solid var(--ink); width: 9px; height: 9px; border-radius: 2px; }
  .env button i.cpy { background: var(--copy-bg); border: 1.5px dashed var(--copy); width: 9px; height: 9px; border-radius: 2px; }
  .env button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
  .env button[aria-pressed="true"] i.own, .env button[aria-pressed="true"] i.cpy { border-color: currentColor; background: transparent; }
  .env button.tone-copy { color: var(--copy-ink); }
  .env button.tone-copy[aria-pressed="true"] { background: var(--copy-ink); color: var(--card); }
  .layout { max-width: 1640px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; padding-block: 6px 24px; align-items: start; }
  .layout.folded { grid-template-columns: minmax(0, 1fr) 0; gap: 0; }
  .layout.folded .wrap { width: 100%; max-width: 1240px; margin-inline: auto; }
  body.folded header, body.folded .orig, body.folded .for-agents { max-width: 1240px; }
  .layout.folded aside.col { display: none; }
  .fold { border: 0; background: none; cursor: pointer; color: var(--ink-faint); font: 600 12px var(--body); padding: 4px 6px; border-radius: 4px; display: inline-flex; align-items: center; gap: 6px; }
  .fold:hover { color: var(--ink); background: var(--paper); }
  .fold::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); }
  .reopen { position: fixed; top: 16px; right: 16px; z-index: 20; display: none; align-items: center; gap: 10px; border: 1px solid var(--border); background: var(--card); color: var(--ink);
    border-radius: 999px; padding: 8px 14px 8px 12px; cursor: pointer; font: 600 13px var(--body); box-shadow: 0 6px 20px rgba(100,30,40,.10); }
  .reopen::before { content: ""; width: 6px; height: 6px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
  .reopen span { color: var(--ink-faint); font-weight: 500; font-variant-numeric: tabular-nums; }
  .layout.folded ~ .reopen { display: inline-flex; }
  .wrap { position: relative; min-width: 0; }
  .scroll { overflow-x: auto; }
  svg#map { display: block; width: 100%; min-width: 820px; height: auto; font-family: var(--body); user-select: none; }

  /* zones */
  .zone { fill: rgba(100,30,40,.022); stroke: var(--ink-faint); stroke-width: 1; stroke-dasharray: 4 5; }
  .zlabel { font: 600 10px var(--body); letter-spacing: 1.6px; text-transform: uppercase; fill: var(--ink-faint); paint-order: stroke; stroke: var(--paper); stroke-width: 6px; stroke-linejoin: round; }

  /* edges */
  .edge { fill: none; stroke-width: 1.7; transition: opacity 220ms, stroke-width 180ms; stroke-linejoin: round; }
  .edge.req { stroke: var(--req); } .edge.dep { stroke: var(--dep); stroke-dasharray: 7 5; }
  .edge.fb { stroke: var(--fb); stroke-dasharray: 2 5; stroke-linecap: round; stroke-width: 2.1; } .edge.ctx { stroke: var(--ctx); stroke-dasharray: 3 4; }
  .elabel { font: 500 11.5px var(--body); paint-order: stroke; stroke: var(--paper); stroke-width: 5px; stroke-linejoin: round; transition: opacity 220ms; opacity: 0; pointer-events: none; }
  .focus .elabel.near, .touring .elabel.on { opacity: 1; }
  .elabel.req { fill: var(--req); } .elabel.dep { fill: var(--dep); } .elabel.fb { fill: var(--fb); } .elabel.ctx { fill: var(--ink-faint); }

  /* nodes: each kind sets its tokens once */
  .node {
    --n-fill: var(--card); --n-stroke: var(--border); --n-width: 1; --n-dash: none;
    --n-ink: var(--ink); --n-tool: var(--ink-faint); --n-logo: var(--ink);
    --n-accent: var(--burgundy); --n-lit: var(--pill);
    cursor: pointer; outline: none; transition: opacity 220ms;
  }
  .node.actor { --n-fill: var(--sunk); }
  .node.kind-owner { --n-stroke: var(--ink); --n-width: 1.7; }
  .node.kind-copy {
    --n-fill: var(--copy-bg); --n-stroke: var(--copy); --n-width: 1.5; --n-dash: 5 4;
    --n-ink: var(--copy-ink); --n-tool: var(--copy-ink); --n-logo: var(--copy);
    --n-accent: var(--copy-ink); --n-lit: var(--copy-lit);
  }
  .node.done { --n-stroke: var(--ok); --n-width: 1.4; }

  .node .lift { transition: transform 200ms cubic-bezier(.2,.8,.2,1); transform-box: fill-box; transform-origin: center; }
  .node .box { fill: var(--n-fill); stroke: var(--n-stroke); stroke-width: var(--n-width); stroke-dasharray: var(--n-dash);
    filter: drop-shadow(0 1px 2px rgba(100,30,40,.10)); transition: stroke 160ms, fill 200ms; }
  .node .label { font: 600 13.5px var(--body); fill: var(--n-ink); }
  .node .tool { font: 400 10.5px var(--body); fill: var(--n-tool); transition: fill 200ms; }
  .node .logo { fill: var(--n-logo); transition: fill 200ms; }
  .node .glyph { fill: none; stroke: var(--n-logo); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .node.big .label { font: 500 21px var(--display); }

  /* states */
  .node:hover .lift, .node:focus-visible .lift { transform: translateY(-2px); }
  .node:hover .box, .node:focus-visible .box { stroke: var(--n-accent); stroke-width: 1.8; }
  .node.sel .box { stroke: var(--n-accent); stroke-width: 2.4; }
  .node.lit .box { stroke: var(--n-accent); stroke-width: 2.2; fill: var(--n-lit); }

  /* done mark */
  .node .done-mark { opacity: 0; transition: opacity 200ms, transform 260ms cubic-bezier(.3,1.6,.5,1); transform-box: fill-box; transform-origin: center; transform: scale(.4); }
  .node .done-mark circle { fill: var(--ok); } .node .done-mark path { fill: none; stroke: var(--card); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .node.done .done-mark { opacity: 1; transform: none; }

  /* modes (the toggle sets data-mode on the map) */
  [data-mode="preview"] .node.env-test { --n-fill: var(--test-bg); --n-stroke: var(--test); --n-width: 1.6; --n-logo: var(--test); --n-tool: var(--test); --n-accent: var(--test); }
  [data-mode="preview"] .node.env-test .tool { font-weight: 600; }
  [data-mode="preview"] .node.env-off { --n-dash: 3 3; opacity: .32; }
  [data-mode="owners"] .node.kind-owner { --n-tool: var(--ink); }
  [data-mode="owners"] .node.kind-owner .tool, [data-mode="copies"] .node.kind-copy .tool { font-weight: 600; }
  [data-mode="owners"] .node:not(.kind-owner), [data-mode="copies"] .node:not(.kind-copy) { opacity: .16; }
  [data-mode="owners"] .edge:not(.req), [data-mode="copies"] .edge:not(.dep) { opacity: .1; }

  /* legend swatches + zone tones */
  .key .boxkey rect { fill: var(--card); stroke: var(--ink); stroke-width: 1.7; }
  .key .boxkey rect.cpy { fill: var(--copy-bg); stroke: var(--copy); stroke-width: 1.5; stroke-dasharray: 4 3; }
  .key .boxkey.copy text, .zlabel.copy { fill: var(--copy-ink); }

  /* focus states */
  .focus .node:not(.near), .focus .edge:not(.near) { opacity: .15; }
  .focus .edge.near { stroke-width: 2.6; }
  .staging .node:not(.lit) { opacity: .2; } .staging .edge { opacity: .12; }
  .touring .node:not(.on), .touring .edge:not(.on) { opacity: .15; }
  .touring .edge.on { stroke-width: 3; }
  .focus .zones, .staging .zones, .touring .zones { opacity: .5; }
  .token { stroke: var(--card); stroke-width: 2.5; }

  /* path legend + tours */
  .key text { font: 500 12px var(--body); fill: var(--ink-soft); }
  .key .item { cursor: pointer; } .key .item rect.hit { fill: transparent; }
  .key .item:hover text, .key .item.on text { fill: var(--ink); }
  .key .play { fill: currentColor; }

  /* popover */
  .pop { position: absolute; width: 340px; max-width: calc(100% - 24px); background: var(--card); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-pop);
    padding: 18px 18px 12px; opacity: 0; transform: translateY(6px) scale(.98); transition: opacity 180ms, transform 220ms cubic-bezier(.2,.8,.2,1); pointer-events: none; z-index: 5; max-height: calc(100% - 16px); overflow: auto; }
  .pop.show { opacity: 1; transform: none; pointer-events: auto; }
  .pop .head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
  .pop .marks { display: flex; gap: 6px; }
  .pop .marks svg { width: 30px; height: 30px; fill: var(--ink); }
  .pop .marks svg.g { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .pop h2 { margin: 0; font: 500 21px/1.1 var(--display); }
  .pop.kind-copy h2, .pop.kind-copy .tool { color: var(--copy-ink); }
  .pop.kind-copy .marks svg { fill: var(--copy); }
  .pop .tool { font-size: 12px; color: var(--ink-faint); margin-top: 2px; }
  .pop .x { border: 0; background: none; cursor: pointer; color: var(--ink-faint); font-size: 20px; line-height: 1; padding: 4px 6px; border-radius: 4px; }
  .pop .x:hover { background: var(--pill); color: var(--ink); }
  .pop .desc { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-soft); }
  .pop .envnote { margin: 8px 0 0; font-size: 12.5px; color: var(--test); font-weight: 600; }
  .sect { margin-top: 14px; font: 600 10.5px var(--body); letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-faint); }

  /* shared rows: checks + prompts (popover and column) */
  .checks, .prompts { list-style: none; margin: 6px 0 0; padding: 0; }
  .check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; padding: 7px 0; border-bottom: 1px solid var(--divider); }
  .check input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 1px 0 0; border: 1.5px solid var(--ink-faint); border-radius: 5px; cursor: pointer; display: grid; place-items: center; background: var(--card); transition: background 150ms, border-color 150ms; }
  .check input:checked { background: var(--ok); border-color: var(--ok); }
  .check input:checked::after { content: ""; width: 5px; height: 9px; border: solid var(--card); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
  .check .t { font-size: 13.5px; font-weight: 500; cursor: pointer; }
  .check.is-done .t { color: var(--ink-faint); text-decoration: line-through; text-decoration-color: var(--ink-faint); }
  .check .t small { display: block; font-size: 11.5px; font-weight: 400; color: var(--ink-faint); }
  .check .more { display: none; font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; line-height: 1.5; }
  .check .more b { font-weight: 600; color: var(--ink); }
  .check.open .more { display: block; }
  .check .more a.go { display: inline-block; margin-top: 4px; color: var(--burgundy); font-weight: 600; text-decoration: none; }
  .check .more a.go:hover { text-decoration: underline; }
  .prompts li { border-bottom: 1px solid var(--divider); }
  .prow { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 8px 0; }
  .peek { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; font: 500 13.5px var(--body); color: var(--ink); display: flex; gap: 8px; align-items: center; }
  .peek::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--ink-faint); border-bottom: 1.5px solid var(--ink-faint); transform: rotate(-45deg); transition: transform 160ms; flex: none; }
  .prompts li.open .peek::before { transform: rotate(45deg); }
  .copy { border: 0; cursor: pointer; background: var(--burgundy); color: var(--on-burgundy); font: 600 12px var(--body); padding: 6px 11px; border-radius: 4px; transition: background 150ms; white-space: nowrap; }
  .copy:hover { background: var(--burgundy-hover); } .copy.done { background: var(--ok); }
  .prompts li:not(.primary) .copy { background: transparent; color: var(--burgundy); box-shadow: inset 0 0 0 1px var(--border); }
  .prompts li:not(.primary) .copy:hover { background: var(--pill); }
  .prompts li:not(.primary) .copy.done { background: var(--ok); color: var(--card); box-shadow: none; }
  .prompts li.primary .peek { font-weight: 600; }
  .pbody { display: none; font-size: 12.5px; line-height: 1.55; color: var(--ink-soft); white-space: pre-wrap; max-height: 240px; overflow: auto; background: var(--paper); border-radius: 6px; padding: 10px 12px; margin: 0 0 10px; }
  .prompts li.open .pbody { display: block; }

  /* checklist column */
  aside.col { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; background: var(--card); border: 1px solid var(--border); border-radius: 12px;
    box-shadow: 0 1px 2px rgba(100,30,40,.05), 0 8px 24px rgba(100,30,40,.05); padding: 16px 14px 10px; }
  .colhead { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px 4px; }
  .colhead h2 { margin: 0; font: 500 18px var(--display); }
  .progress { display: flex; align-items: baseline; gap: 10px; padding: 4px 2px 10px; }
  .progress b { font: 500 26px/1 var(--display); font-variant-numeric: tabular-nums; }
  .progress span { font-size: 12.5px; color: var(--ink-faint); }
  .pbar { height: 4px; border-radius: 2px; background: var(--sunk); overflow: hidden; margin: 0 2px 14px; }
  .pbar i { display: block; height: 100%; width: 0; background: var(--ok); transition: width 300ms; }
  .stage { border-top: 1px solid var(--divider); }
  .shead { width: 100%; border: 0; background: none; cursor: pointer; display: grid; grid-template-columns: 26px 1fr auto 12px; gap: 10px; align-items: center; padding: 11px 4px; text-align: left; color: var(--ink); border-radius: 6px; }
  .shead:hover { background: var(--paper); }
  .shead .n { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--ink-faint); display: grid; place-items: center; font: 700 11px var(--body); color: var(--ink-soft); }
  .stage.complete .shead .n { background: var(--ok); border-color: var(--ok); color: var(--card); }
  .stage.open .shead .n, .stage.hot .shead .n { border-color: var(--burgundy); color: var(--burgundy); }
  .stage.complete.open .shead .n { color: var(--card); }
  .shead .title { font: 600 14px var(--body); }
  .shead .count { font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
  .shead .chev { width: 7px; height: 7px; border-right: 1.5px solid var(--ink-faint); border-bottom: 1.5px solid var(--ink-faint); transform: rotate(-45deg); transition: transform 160ms; }
  .stage.open .chev { transform: rotate(45deg); }
  .sbody { display: none; padding: 0 4px 14px 40px; }
  .stage.open .sbody { display: block; }
  .sbody .sect:first-child { margin-top: 2px; }

  /* tour plate */
  .plate { position: absolute; display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow-pop);
    padding: 6px 8px 6px 6px; max-width: min(460px, calc(100% - 24px)); z-index: 4; transition: left 380ms cubic-bezier(.2,.8,.2,1), top 380ms cubic-bezier(.2,.8,.2,1); }
  .plate[hidden] { display: none; }
  .plate .n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--body); color: var(--card); }
  .plate p { margin: 0; font-size: 13.5px; font-weight: 500; }
  .plate button { border: 0; background: none; cursor: pointer; color: var(--ink-faint); font-size: 15px; padding: 4px 6px; border-radius: 50%; }
  .plate button:hover { color: var(--ink); background: var(--pill); }
  .plate .ctl { display: flex; flex: none; }
  :focus-visible { outline: 2px solid var(--burgundy); outline-offset: 2px; }
  .orig { max-width: 1640px; margin: 0 auto; padding-block: 4px 12px; font-size: 12px; }
  .orig a { color: var(--ink-faint); opacity: .7; text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
  .orig a:hover { opacity: 1; color: var(--ink-soft); }
  @media (max-width: 1080px) { .layout { grid-template-columns: 1fr; } aside.col { position: static; max-height: none; } }
  /* the full text version for AI agents: in the page so any map URL works on its own, folded away for people */
  .for-agents { max-width: 1640px; margin: 0 auto; padding-block: 0 28px; font-size: 12px; color: var(--ink-faint); }
  .for-agents > summary { cursor: pointer; font-weight: 600; width: max-content; list-style: none; }
  .for-agents > summary::-webkit-details-marker { display: none; }
  .for-agents > summary::before { content: "+ "; }
  .for-agents[open] > summary::before { content: "− "; }
  .for-agents > summary:hover { color: var(--ink); }
  .agent-text { max-width: 760px; max-height: 60vh; overflow: auto; margin: 8px 0 12px; padding: 4px 18px 12px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; color: var(--ink); font-size: 13.5px; line-height: 1.55; }
  .agent-text h2 { font: 500 20px var(--display); margin: 14px 0 6px; } .agent-text h3 { font: 600 15px var(--body); margin: 16px 0 6px; }
  .agent-text h4, .agent-text h5 { font: 600 13.5px var(--body); margin: 12px 0 4px; } .agent-text blockquote { margin: 0 0 10px; padding-left: 12px; border-left: 2px solid var(--border); color: var(--ink-soft); }
  .agent-text ul, .agent-text ol { padding-left: 20px; } .agent-text a { color: var(--burgundy); }
  /* zooming between maps: the header and checklist hold still while the map zooms (see map.js) */
  @view-transition { navigation: auto; }
  header { view-transition-name: swe-header; }
  aside.col { view-transition-name: swe-col; }
  .reopen { view-transition-name: swe-reopen; }
  ::view-transition-group(*) { animation-duration: 900ms; animation-timing-function: cubic-bezier(.32,.72,0,1); }
  html.swe-zoom::view-transition-old(root), html.swe-zoom::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
  html.swe-zoom-out::view-transition-old(root) { z-index: 1; } /* the inner map stays on top as it shrinks away */
  /* text that changes in place fades out, then in, so two titles never overlap */
  ::view-transition-old(swe-header), ::view-transition-old(swe-col) { animation: swe-fade-out 300ms ease-in both; }
  ::view-transition-new(swe-header), ::view-transition-new(swe-col) { animation: swe-fade-in 420ms 160ms ease-out both; }
  @keyframes swe-fade-out { to { opacity: 0; } }
  @keyframes swe-fade-in { from { opacity: 0; } }
  .node.portal-in { cursor: zoom-in; } .node.portal-out { cursor: zoom-out; }
  .node .portal { transition: transform 200ms cubic-bezier(.2,.8,.2,1); transform-box: fill-box; transform-origin: center; }
  .node .portal circle { fill: var(--card); stroke: var(--n-accent); stroke-width: 1.4; }
  .node .portal path { fill: none; stroke: var(--n-accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .node:hover .portal, .node:focus-visible .portal { transform: scale(1.18); }
  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
