/* ============================================================================
   Vibe Dashboard v2 — My network screen
   Ported from _specs/dashboard-v2-ref.vibe/Vibe Dashboard.dc.html
   (data-screen-label="My network"). Builds on styles/v2-shell.css's shared kit
   (.v2-card, .v2-card-head, .v2-stat-grid/.v2-stat-card, .v2-empty/.v2-loading/
   .v2-error) — screen-specific chrome only lives here.

   The referral graph (NetworkGraph in src/dashboard/network.jsx) is the
   existing D3 force-graph — its markup/classNames/interaction logic are
   UNCHANGED. The second half of this file only re-points their colors/fonts/
   radii at v2 tokens; it loads after styles/dashboard.css so equal-specificity
   selectors here win the cascade.
   ============================================================================ */

/* ---- header ---- */
.net-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.net-head-title { font-size: 30px; font-weight: 700; letter-spacing: -.6px; color: var(--v-text); }
.net-head-sub { font-size: 14.5px; color: var(--v-text-2); margin-top: 5px; }
.net-head-total { text-align: right; flex-shrink: 0; }
.net-head-total-value { font-size: 20px; font-weight: 700; color: var(--v-text); font-variant-numeric: tabular-nums; margin-top: 2px; }

/* ---- level stat cards (built on .v2-stat-grid/.v2-stat-card) ---- */
.net-lvl-l1 { color: var(--v-link); }
.net-lvl-l2 { color: var(--v-link-hover); }
.net-lvl-l3 { color: var(--v-text-3); }
.v2-stat-card-value.is-zero { color: var(--v-text-3); }
.net-stat-unit { font-size: 13px; font-weight: 400; color: var(--v-text-2); }
.net-stat-pts { font-size: 13px; font-weight: 600; color: var(--v-green); font-variant-numeric: tabular-nums; }
.net-stat-pts.is-zero, .net-stat-pts.is-muted { color: var(--v-text-3); font-weight: 400; }

/* ---- referral network card ---- */
.net-card-head-copy { display: flex; flex-direction: column; gap: 3px; }
.net-card-sub { font-size: 12.5px; color: var(--v-text-2); }
.net-card-body { padding: 18px 22px; }

.net-mode-toggle {
  display: inline-flex;
  flex-shrink: 0;
  gap: 3px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--v-border);
  background: var(--v-elevated);
}
.net-mode-btn {
  min-width: 64px;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--v-text-2);
  font-family: var(--v-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.net-mode-btn.active { color: var(--v-text); background: var(--v-blue); }
.net-mode-btn:focus-visible { outline: 2px solid var(--v-blue); outline-offset: 2px; }

/* ---- tree list ---- */
.net-tree-wrap { display: flex; flex-direction: column; gap: 4px; }
.net-tree-root-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid var(--v-border-blue);
  background: var(--v-blue-tint);
}
.net-tree-avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 13px;
  color: var(--v-text);
  background: var(--v-inset);
}
.net-tree-avatar.is-root { width: 36px; height: 36px; border-radius: 9px; font-size: 15px; color: var(--v-white); background: var(--v-avatar); } /* D24: amber root tile, same fill as the mock's wallet-footer avatar */
.net-tree-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.net-tree-handle-row { display: flex; align-items: center; gap: 8px; }
.net-tree-handle { font-size: 13.5px; font-weight: 600; color: var(--v-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.net-tree-below-badge {
  font-family: var(--v-font-mono);
  font-size: 10px;
  color: var(--v-link-hover);
  border: 1px solid color-mix(in srgb, var(--v-link-hover) 30%, transparent);
  border-radius: var(--v-r-badge);
  padding: 2px 6px;
  white-space: nowrap;
}
/* OB-gamma-referral-graph: edge-source tag for on-chain (rflCode) referrals.
   Same shape as the below badge, Ivy amber instead of link blue. */
.net-tree-onchain-tag {
  font-family: var(--v-font-mono);
  font-size: 10px;
  color: var(--v-amber);
  border: 1px solid color-mix(in srgb, var(--v-amber) 35%, transparent);
  border-radius: var(--v-r-badge);
  padding: 2px 6px;
  white-space: nowrap;
}
.net-sources-note {
  font-family: var(--v-font-mono);
  font-size: 11px;
  color: var(--v-text-2);
  margin-top: 8px;
}
.net-sources-note strong { color: var(--v-amber); font-weight: 600; }
.net-tree-meta { font-size: 12px; color: var(--v-text-2); }
.net-tree-root-row .net-tree-meta { font-family: var(--v-font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.net-tree-points { margin-left: auto; flex-shrink: 0; font-family: var(--v-font-mono); font-size: 13px; font-weight: 600; color: var(--v-green); font-variant-numeric: tabular-nums; }
.net-tree-points.is-zero { color: var(--v-text-2); font-weight: 400; }

.net-tree-root, .net-tree-kids { list-style: none; margin: 0; padding: 0; }
.net-tree-root { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.net-tree-kids {
  margin: 8px 0 0 17px;
  padding-left: 18px;
  border-left: 1px solid var(--v-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.net-tree-node { margin: 0; }
.net-tree-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--v-border-soft);
  background: var(--v-elevated);
}
.net-tree-row.has-kids { border-color: var(--v-border); }
.net-tree-toggle {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--v-link);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--v-font);
}
.net-tree-toggle:hover { background: var(--v-border-soft); }
.net-tree-toggle:focus-visible { outline: 2px solid var(--v-blue); outline-offset: 2px; }

/* ---------------------------------------------------------------------------
   Referral graph (D3) — chrome only. All interaction/layout logic lives in
   NetworkGraph (src/dashboard/network.jsx); classNames below are unchanged
   from the legacy port — these rules just re-point colors/fonts/radii at the
   v2 token palette.
   --------------------------------------------------------------------------- */
.ref-graph-wrap {
  border: 1px solid var(--v-border);
  border-radius: var(--v-r-card);
  /* VIB-392: background-color + background-image, never the `background`
     shorthand — the shorthand resets background-image/size and that is what
     wiped the 24px radial dot grid the legacy rule sets in dashboard.css.
     B2: ground is the dedicated graph token (darker than the card well) with
     the dot grid re-declared here so it survives on the non-fullscreen canvas
     too — the shorthand below on .graph-fullscreen-surface still wipes it
     there on purpose (fullscreen keeps its own ::before grid). */
  background-color: var(--v-graph-ground);
  background-image: radial-gradient(circle, var(--v-grid-dot) 1px, transparent 1px);
  background-size: 24px 24px;
  /* L52: the inline graph is static and fullscreen pans a viewBox camera, so
     the wrap no longer scrolls itself. Kept as a guard: if the wrap ever
     scrolls again, overshooting its edge must not chain the scroll up to
     .v2-main and slide the page under the cards. Desktop too, not only the
     <=900px shell. */
  overscroll-behavior: contain;
}
/* VIB-392: fullscreen no longer scrolls — the camera is the SVG's viewBox
   origin, so the wrap must not show (or offer) scrollbars. */
.ref-graph-wrap.graph-fullscreen-surface { overflow: hidden; scrollbar-width: none; }
.ref-graph-wrap.graph-fullscreen-surface::-webkit-scrollbar { display: none; }

/* Fullscreen carries BOTH classes on the one element (network.jsx: "ref-graph-wrap"
   + " graph-fullscreen-surface"), so this shorthand deliberately resets the dot
   grid above — same as the legacy rule in dashboard.css. That reset is wanted
   here and only here; do not re-introduce the shorthand on .ref-graph-wrap. */
.graph-fullscreen-surface { border: 0; border-radius: 0; background: transparent; }
.ref-graph-wrap:focus-visible { box-shadow: inset 0 0 0 2px var(--v-link); }

.graph-toolbar,
.ref-graph-wrap:not(.graph-fullscreen-surface) .graph-toolbar {
  background: var(--v-surface);
  border-bottom: 1px solid var(--v-border-soft);
}
/* B3: pills/control groups sit on the well (--v-elevated), not the inset
   surface, with the softer well border — the legacy rule (dashboard.css) also
   carries its own height/padding/radius/backdrop-filter/typography, which
   survived the v2 port untouched; re-declared here per mock (padding 9px 14px,
   radius 10, dot 7px, Poppins 700 15px value + mono 10px label). */
.graph-stat-pill,
.graph-control-group {
  height: auto;
  border: 1px solid var(--v-border-well);
  background: var(--v-elevated);
  backdrop-filter: none;
  color: var(--v-text-2);
}
.graph-stat-pill {
  min-height: 44px; /* keeps the toolbar — and so the .ref-graph-wrap box the camera math reads — at its 135e545 height */
  padding: 9px 14px;
  border-radius: 10px;
  font-family: var(--v-font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.graph-stat-pill b {
  color: var(--v-text);
  font-family: var(--v-font-nav);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
}
.graph-stat-dot { width: 7px; height: 7px; background: var(--v-text-3); }
.graph-control-group { padding: 4px; border-radius: 10px; }
.graph-seg, .graph-tbtn {
  height: auto;
  padding: 7px 12px;
  border-radius: 7px;
  font-family: var(--v-font-nav);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  color: var(--v-text-2);
}
.graph-icbtn { width: 30px; height: 30px; border-radius: 7px; font-size: 17px; font-weight: 400; color: var(--v-text-table); }
.graph-zoomval { min-width: 50px; font-family: var(--v-font-nav); font-size: 13px; font-weight: 600; color: var(--v-text); }
.graph-depth-trigger { font-family: var(--v-font-nav); color: var(--v-text-2); }
.graph-seg:hover, .graph-tbtn:hover, .graph-icbtn:hover { color: var(--v-text); }
.graph-seg:focus-visible, .graph-tbtn:focus-visible, .graph-icbtn:focus-visible { outline: 2px solid var(--v-link); outline-offset: 2px; }
.graph-seg.on { color: var(--v-text); background: var(--v-blue); }
.graph-depth-controls .graph-tbtn.on { color: var(--v-link); background: var(--v-blue-tint); }
.graph-reset-layout:hover { color: var(--v-text); border-color: var(--v-border); }
.graph-kbd-hint { color: var(--v-text-3); font-family: var(--v-font); }
.graph-kbd-hint kbd { font-family: var(--v-font-mono); color: var(--v-text-2); background: var(--v-border-soft); border-color: var(--v-border); }

.graph-depth-menu { border: 1px solid var(--v-border); background: var(--v-surface); }
.graph-depth-opt { color: var(--v-text-2); background: var(--v-inset); border-color: var(--v-border); font-family: var(--v-font-mono); }
.graph-depth-opt:hover { border-color: var(--v-link); color: var(--v-text); }
.graph-depth-opt.on { background: var(--v-blue-tint); border-color: var(--v-link); color: var(--v-text); }

/* B4: MAKE IT FULLSCREEN moved to its own row under the toolbar (network.jsx)
   — outlined magenta button, transparent ground. */
/* B4: sibling row below .ref-graph-wrap — never inside it (the wrap box feeds
   the camera math: viewport measure and fit). */
.graph-fullscreen-row { display: flex; padding: 12px 0 0; }
.graph-fullscreen-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--v-border-pink);
  background: transparent;
  color: var(--v-pink);
  font-family: var(--v-font-nav);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .02em;
  padding: 11px 18px;
  border-radius: 10px;
  cursor: pointer;
}
.graph-fullscreen-btn svg { width: 15px; height: 15px; }
.graph-fullscreen-btn:hover { background: color-mix(in srgb, var(--v-pink) 10%, transparent); }
.graph-fullscreen-btn:focus-visible { outline: 2px solid var(--v-pink); outline-offset: 2px; }

/* edges — v4 magenta stroke (#E93BD0). VIB-392: the re-skin's base
   stroke-opacity .35 multiplied with the legacy `.graph-links path.dim
   { opacity: .2 }` (dashboard.css), so hovering a card faded every other edge
   to ~7% — effectively invisible. The base stroke is opaque again and the
   dim state is raised to .45, so focus dims the rest instead of erasing it. */
/* B5: mock stroke-opacity 0.7. .dim stays a separate `opacity` layer (not
   `stroke-opacity`, so it doesn't multiply against the value above) at .45,
   per the VIB-392 fix noted below. */
.graph-links path { stroke: var(--v-magenta); stroke-opacity: .7; }
.graph-links path.focused { stroke: var(--v-magenta); stroke-opacity: .7; }
.graph-links path.dim { opacity: .45; }

/* node accent — VIB-392: the re-skin collapsed all 16 levels onto one cyan,
   which is what made a deep downline read as an undifferentiated blob. The
   per-level --graph-l0..l15 palette (defined on body.dash in dashboard.css)
   is restored; .graph-avatar/.graph-badge-direct/.graph-handle/.graph-expander
   all read --graph-accent, so this drives every node-scoped accent. */
.graph-node.level-0 { --graph-accent: var(--graph-l0); }
.graph-node.level-1 { --graph-accent: var(--graph-l1); }
.graph-node.level-2 { --graph-accent: var(--graph-l2); }
.graph-node.level-3 { --graph-accent: var(--graph-l3); }
.graph-node.level-4 { --graph-accent: var(--graph-l4); }
.graph-node.level-5 { --graph-accent: var(--graph-l5); }
.graph-node.level-6 { --graph-accent: var(--graph-l6); }
.graph-node.level-7 { --graph-accent: var(--graph-l7); }
.graph-node.level-8 { --graph-accent: var(--graph-l8); }
.graph-node.level-9 { --graph-accent: var(--graph-l9); }
.graph-node.level-10 { --graph-accent: var(--graph-l10); }
.graph-node.level-11 { --graph-accent: var(--graph-l11); }
.graph-node.level-12 { --graph-accent: var(--graph-l12); }
.graph-node.level-13 { --graph-accent: var(--graph-l13); }
.graph-node.level-14 { --graph-accent: var(--graph-l14); }
.graph-node.level-15 { --graph-accent: var(--graph-l15); }
.graph-node.root { --graph-accent: var(--v-magenta); }

/* B7: child card ground/border. B6: root card fill is a gradient — CSS
   gradients don't apply to SVG rect fills, so network.jsx declares a static
   <linearGradient id="graph-root-grad"> (stops read the tokens below) and the
   root card references it via fill: url(#…). */
.graph-card-bg { fill: var(--v-elevated); stroke: var(--v-border-card-dark); }
.graph-node.root .graph-card-bg { fill: url(#graph-root-grad); stroke: var(--v-border-violet); }
.graph-root-grad-stop-1 { stop-color: var(--v-violet-card-1); }
.graph-root-grad-stop-2 { stop-color: var(--v-violet-card-2); }
.graph-avatar.root { fill: var(--v-magenta); }
.graph-avatar.child { fill: var(--v-cyan); }
.graph-avatar-letter { fill: var(--v-bg); font-family: var(--v-font-nav); }
.graph-handle, .graph-points, .graph-points-value, .graph-points-suffix, .graph-you, .graph-badge-text {
  font-family: var(--v-font-nav);
}
/* B6/B7: handle colour, root vs child — overrides the legacy
   `fill: var(--graph-accent)` (dashboard.css), which stays in effect for the
   avatar/badge/expander per-level palette this row does not touch. */
.graph-node.root .graph-handle { fill: var(--v-pink-soft); }
.graph-node:not(.root) .graph-handle { fill: var(--v-cyan-soft); }
.graph-node.root .graph-you { fill: var(--v-violet-muted); }
/* B6: root sub-label "YOUR NETWORK" is mono 9.5px, letter-spacing 1.6px (mock). */
.graph-you { font-family: var(--v-font-mono); font-size: 9.5px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; }
.graph-points-value { fill: var(--v-text); }
.graph-points-suffix, .graph-you { fill: var(--v-text-2); }
.graph-badge-codes { fill: var(--v-inset); }
.graph-badge-text { fill: var(--v-text); }
/* direct-badge bg is the bright cyan accent — dark text for contrast (same
   convention as .graph-avatar-letter on colored avatars). */
.graph-badge-text-direct { fill: var(--v-bg); }
.graph-expander circle { fill: var(--v-inset); stroke: var(--v-border); }
.graph-expander text { fill: var(--v-text-2); font-family: var(--v-font-nav); }

/* legend + minimap */
.graph-legend { border: 1px solid var(--v-border); background: var(--v-surface); }
.graph-legend-item { color: var(--v-text-2); font-family: var(--v-font-mono); }
.graph-legend-item.house { color: var(--v-magenta); }
/* VIB-392: legend swatches follow the restored per-level palette, so the
   legend and the cards agree again. */
.graph-legend-item.l1 { color: var(--graph-l1); }
.graph-legend-item.l2 { color: var(--graph-l2); }
.graph-legend-item.l3 { color: var(--graph-l3); }
.graph-legend-item.l4 { color: var(--graph-l4); }
.graph-legend-item.l5 { color: var(--graph-l5); }
.graph-legend-item.l6 { color: var(--graph-l6); }
.graph-legend-item.l7 { color: var(--graph-l7); }
.graph-legend-item.l8 { color: var(--graph-l8); }
.graph-legend-item.l9 { color: var(--graph-l9); }
.graph-legend-item.l10 { color: var(--graph-l10); }
.graph-legend-item.l11 { color: var(--graph-l11); }
.graph-legend-item.l12 { color: var(--graph-l12); }
.graph-legend-item.l13 { color: var(--graph-l13); }
.graph-legend-item.l14 { color: var(--graph-l14); }
.graph-legend-item.l15 { color: var(--graph-l15); }

.graph-minimap { border: 1px solid var(--v-border); background: var(--v-elevated); }
.graph-minimap:focus { outline-color: var(--v-link); }
.mm-edge { stroke: var(--v-magenta); stroke-opacity: .4; }
.mm-view { fill: var(--v-blue-tint); stroke: var(--v-link); }
.mm-node { fill: var(--v-cyan); }
.mm-node.level-0 { fill: var(--v-magenta); }

/* focus drawer */
.graph-focus-drawer { border-left: 1px solid var(--v-border); background: var(--v-surface); }
.graph-drawer-close { border: 1px solid var(--v-border); background: var(--v-inset); color: var(--v-text-2); }
.graph-drawer-avatar { color: var(--v-cyan); border-color: color-mix(in srgb, var(--v-cyan) 55%, transparent); background: var(--v-blue-tint); }
.graph-drawer-avatar.root { color: var(--v-magenta); border-color: var(--v-border-magenta); background: var(--v-magenta-tint); }
.graph-drawer-handle { color: var(--v-text); font-family: var(--v-font); }
.graph-drawer-name { color: var(--v-text-2); }
.graph-drawer-level { background: var(--v-blue-tint); color: var(--v-link); font-family: var(--v-font-mono); }
.graph-drawer-grid div, .graph-drawer-parent, .graph-child-row {
  border: 1px solid var(--v-border);
  background: var(--v-inset);
}
.graph-drawer-grid span, .graph-drawer-section-title { color: var(--v-text-2); font-family: var(--v-font-mono); }
.graph-drawer-grid strong { color: var(--v-text); font-family: var(--v-font); }
.graph-drawer-parent { color: var(--v-text-2); }
.graph-child-row span { color: var(--v-cyan); background: var(--v-blue-tint); }
.graph-child-row strong { color: var(--v-text); }
.graph-child-row em { color: var(--v-text-2); font-style: normal; }

.graph-fallback { color: var(--v-text-2); font-family: var(--v-font); }

/* ---------------------------------------------------------------------------
   Mobile flat list (MobileNetworkList, src/dashboard/network.jsx) — the TREE
   view under F1 ⭐ (the list is the mobile default; GRAPH opens the
   fullscreen graph). Read-only: no expand/collapse/zoom. Mounted on mobile
   viewports only, so these rules never touch desktop. Root + indented
   children follow the mock's tree metrics (P-NW-4, M:1339–1390).
   --------------------------------------------------------------------------- */
.net-mobile-list { display: flex; flex-direction: column; gap: 8px; }
.net-mobile-root-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid var(--v-border-blue);
  background: var(--v-blue-tint);
}
.net-mobile-rows { display: flex; flex-direction: column; gap: 8px; padding-left: 18px; border-left: 1px solid var(--v-border); margin-left: 17px; }
.net-mobile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--v-border-soft);
  background: var(--v-tile);
}
.net-mobile-avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--v-font-nav);
  font-weight: 600;
  font-size: 13px;
  color: var(--v-text-table);
  background: var(--v-inset);
}
/* Root avatar: 36px orange tile, white initial (mock M:1340). */
.net-mobile-avatar.is-root { width: 36px; height: 36px; border-radius: 9px; font-size: 15px; color: var(--v-white); background: var(--v-avatar); }
.net-mobile-row-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.net-mobile-row-head { display: flex; align-items: center; gap: 8px; }
.net-mobile-root-row .net-mobile-handle { font-size: 14px; }
.net-mobile-handle { font-size: 13.5px; font-weight: 600; color: var(--v-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.net-mobile-root-sub { font-family: var(--v-font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--v-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.net-mobile-root-pts { flex-shrink: 0; font-family: var(--v-font-mono); font-size: 13px; color: var(--v-text-2); font-variant-numeric: tabular-nums; }
.net-mobile-below-badge {
  flex-shrink: 0;
  font-family: var(--v-font-mono);
  font-size: 10px;
  color: var(--v-link-hover);
  border: 1px solid color-mix(in srgb, var(--v-link-hover) 30%, transparent);
  border-radius: var(--v-r-badge);
  padding: 2px 6px;
  white-space: nowrap;
}
.net-mobile-row-meta { font-size: 12px; color: var(--v-text-2); }
.net-mobile-row-points { flex-shrink: 0; font-family: var(--v-font-mono); font-size: 13px; font-weight: 600; color: var(--v-green); font-variant-numeric: tabular-nums; }
.net-mobile-row-points.is-zero { color: var(--v-text-2); font-weight: 400; }

/* P-NW-1 / P-NW-2: the level stats render ABOVE the card as ONE bordered
   3-col grid (mock M:1305–1321) — repeat(3) with internal border-left
   dividers, 18px 20px cells, 28px values + 13px units, 13px green pts.
   Double-class specificity beats the shell's ≤900 two-card rule (H1)
   whichever file loads last. MobileLevelCards is gone from the card. */
@media (max-width: 760px) {
  .v2-stat-grid.net-level-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--v-border); background: var(--v-surface); border-radius: var(--v-r-card); overflow: hidden; }
  .net-level-summary .v2-stat-card { min-width: 0; gap: 6px; padding: 18px 20px; border: 0; border-radius: 0; background: transparent; }
  .net-level-summary .v2-stat-card:nth-child(n+2) { border-left: 1px solid var(--v-border-soft); }
  .net-level-summary .v2-stat-card-label { font-family: var(--v-font-mono); font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; }
  .net-level-summary .v2-stat-card-value { font-size: 28px; line-height: 1; }
  /* P-NW-5: the card head sits INSIDE the card padding (22px, 16px margin,
     no divider — mock M:1323–1333); the toggle keeps uppercase mono with an
     amber active tab. Scoped to .net-card so no other page moves. */
  .net-card > .v2-card-head { border-bottom: 0; padding: 22px 22px 0; margin-bottom: 16px; }
  .net-card > .net-card-body { padding: 0 22px 22px; }
  .net-card .net-mode-btn.active { color: var(--v-bg); background: var(--v-amber); }
}

/* ---- fullscreen graph mode — chrome adapted minimally to v2 tokens. No v2
   mock covers this state (the design ref only shows the windowed graph card);
   flagged as needing a dedicated design pass rather than inventing a new
   fullscreen layout. ---- */
.graph-modal { background: var(--v-bg); }
.graph-modal::before { background-image: radial-gradient(circle, var(--v-border-soft) 1px, transparent 1.5px); }
.graph-modal::after { background: linear-gradient(180deg, var(--v-bg) 0%, color-mix(in srgb, var(--v-bg) 86%, transparent) 38%, transparent 100%); }
/* B8: minimal violet adaptation only — the rest of fullscreen is unchanged,
   pending its own design pass (see mock-inventory §5 item 13). */
.graph-modal-kicker { color: var(--v-violet); font-family: var(--v-font-mono); }
.graph-modal-title { color: var(--v-text); font-family: var(--v-font); }
.graph-modal-subtitle { color: var(--v-text-2); }
.graph-exit { border-color: var(--v-border-violet-soft); background: transparent; color: var(--v-violet-text); font-family: var(--v-font-nav); }
.graph-exit:hover { background: color-mix(in srgb, var(--v-violet) 12%, transparent); }
