/* ============================================================================================================
   Platform/trust page kit (shared by platform, platform-intelligence, platform-investigation, platform-remediation
   and trust; copied into each page file at build time). Background layers, product-UI illustration primitives,
   marquee. Navy/teal only; crimson only for risk. No amber or yellow anywhere.
   ============================================================================================================ */

/* ------------------------------------------------------------ product UI primitives */
.ui { position: relative; background: linear-gradient(180deg, var(--navy-850), var(--navy-900)); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--e1); color: var(--ink-200); font: 400 var(--fs-sm)/1.4 var(--display); text-align: left; }
.ui-bar { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--navy-950) 55%, transparent); white-space: nowrap; }
.ui-bar .dots { display: flex; gap: 6px; margin-right: 4px; }
.ui-bar .dots i { width: 8px; height: 8px; border-radius: var(--r-full); background: var(--line); }
.ui-bar .t { font: 600 var(--fs-xs)/1 var(--display); color: var(--ink-50); }
.ui-bar .crumb { font: 400 var(--fs-xs)/1 var(--mono); color: var(--ink-400); overflow: hidden; text-overflow: ellipsis; }
.ui-bar .end { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: var(--r-xs); border: 1px solid var(--line); font: 500 var(--fs-xs)/1.2 var(--mono); letter-spacing: var(--tr-label); color: var(--ink-200); white-space: nowrap; }
.chip.ok { color: var(--teal-300); border-color: var(--teal-a40); background: var(--teal-a06); }
.chip.risk { color: var(--red-300); border-color: color-mix(in srgb, var(--red-500) 60%, transparent); background: color-mix(in srgb, var(--red-500) 12%, transparent); }
.chip.dash { border-style: dashed; color: var(--ink-200); }
.spark { fill: none; stroke: var(--teal-400); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark.risk { stroke: var(--red-400); }
.area { fill: var(--teal-a12); stroke: none; }

/* PAGE 03 · Threat Intelligence. H2 · Console (rollout step 3): the skeleton (hero heading, stage, callouts, step cards,
   close) is in core (system.css). Here: the streaming "Alert context" view on the hero stage (four signal panes feed
   the shared context strip under them, which feeds the finding on the right; numbered marks match the callouts) and the
   live context graph on the attack-path stage. */
.i-ui { font-size: var(--fs-sm); }
.i-ui .live-pill { display: inline-flex; }
.i-board { --cols: repeat(4, minmax(0, 1fr)) minmax(0, 1.15fr); position: relative; display: grid; grid-template-columns: var(--cols); grid-template-rows: auto auto; column-gap: 14px; row-gap: 44px; padding: 18px; }
/* Performance (owner, 25 Nov 2026: "Yes, do both"): the moving packets draw on their own GPU layer, so they no longer
   repaint the hero (glow, grid, shadows) on every frame. The hero pulses and the sparkline dash are still (below). */
.sig-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; will-change: transform; }
.sig-links path { fill: none; stroke: var(--teal-a40); stroke-width: 1.2; }
.sig-links path.adv { stroke: color-mix(in srgb, var(--red-500) 45%, transparent); }
.sig-links circle { fill: var(--teal-300); filter: drop-shadow(0 0 6px var(--teal-a60)); }
.sig-links circle.adv { fill: var(--red-300); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--red-300) 60%, transparent)); }
.i-pane, .i-find, .ctx { position: relative; z-index: 1; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--navy-900); }
.i-pane { padding: 12px 14px 14px; }
.i-ph { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; white-space: nowrap; }
.i-ph b { flex: none; font: 600 var(--fs-xs)/1 var(--display); color: var(--ink-50); }
.i-ph .crumb { min-width: 0; overflow: hidden; text-overflow: ellipsis; font: 400 var(--fs-xs)/1 var(--mono); color: var(--ink-400); }
.sig-dot { flex: none; width: 7px; height: 7px; border-radius: var(--r-full); background: var(--teal-400); }
.sig-dot.r { background: var(--red-500); }
/* The status dots and the dashed sparkline are static (owner, 25 Nov 2026): the pulses and the moving dash repainted
   the hero on every display refresh. Their resting state is the one reduced motion always showed. */
.live-line { stroke-dasharray: 6 3; }
.i-spark { display: block; width: 100%; height: 72px; overflow: visible; }
.i-axis { display: flex; justify-content: space-between; margin: 6px 0 0; font: 400 var(--fs-xs)/1 var(--mono); color: var(--ink-400); }
.i-list, .i-files { display: grid; margin: 0; padding: 0; list-style: none; }
.i-list li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line); font-size: var(--fs-xs); line-height: 1.3; color: var(--ink-200); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.i-list li:first-child { border-top: 0; padding-top: 0; }
.i-list li::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: var(--r-xs); background: var(--teal-400); }
.i-list li.r { color: var(--ink-50); }
.i-list li.r::before { background: var(--red-500); }
.i-files li { display: flex; gap: 8px; align-items: center; min-width: 0; padding: 7px 0; border-top: 1px solid var(--line); font: 400 var(--fs-xs)/1.3 var(--mono); color: var(--ink-200); white-space: nowrap; }
.i-files li:first-child { border-top: 0; padding-top: 0; }
.i-files li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.i-files i { flex: none; width: 18px; height: 18px; display: grid; place-items: center; border-radius: var(--r-xs); background: var(--navy-800); font: 600 var(--fs-xs)/1 var(--mono); font-style: normal; }
.adv { margin: 0 0 10px; font-size: var(--fs-xs); line-height: 1.45; color: var(--ink-50); }
.i-find { grid-column: 5; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; border-color: var(--teal-a40); background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); transition: box-shadow var(--dur-slow); }
.i-find.hit { box-shadow: 0 0 0 4px var(--teal-a12); transition: none; }
.i-find .kind { font: 500 var(--fs-xs)/1 var(--mono); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--ink-400); }
.i-find b { font: 600 var(--fs-lg)/1.2 var(--display); color: var(--ink-50); }
.i-links { align-self: stretch; display: grid; margin: 6px 0 auto; padding: 0; list-style: none; }
.i-links li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--ink-50); white-space: nowrap; }
.i-links span { color: var(--ink-400); }
.i-find .chip { margin-top: 18px; }
.i-find .await { font: 400 var(--fs-xs)/1.2 var(--mono); color: var(--ink-400); }
.ctx { grid-column: 1 / span 4; grid-row: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 14px; padding: 34px 10px 10px; background: color-mix(in srgb, var(--navy-950) 55%, transparent); }
.ctx-k { position: absolute; top: 12px; left: 14px; margin: 0; font: 500 var(--fs-xs)/1 var(--mono); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--teal-300); }
.ctx-feed { display: contents; }
.ctx-feed li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--navy-900); font: 400 var(--fs-xs)/1.2 var(--mono); color: var(--ink-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color var(--dur-slow), border-color var(--dur-slow), background var(--dur-slow); }
.ctx-feed li i { flex: none; width: 6px; height: 6px; border-radius: var(--r-full); background: var(--teal-400); }
.ctx-feed li i.r { background: var(--red-500); }
.ctx-feed li.hit { color: var(--ink-50); border-color: var(--teal-a60); background: var(--teal-a12); transition: none; }
/* numbered notes: a small index square on the view, the matching note under it (the /solutions/online-shops/ idiom) */
.i-mark { position: absolute; z-index: 2; top: -9px; right: -9px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: var(--r-xs);
  border: 1px solid var(--teal-a60); background: color-mix(in srgb, var(--teal-400) 24%, var(--navy-900)); color: var(--teal-300); font: 600 var(--fs-xs)/1 var(--mono); font-style: normal; }
.i-mark::before { content: attr(data-n); }

/* ------------------------------------------------------------ graph (signature) */
.graph { position: relative; border: 1px solid var(--line); border-radius: var(--r-md); background: linear-gradient(180deg, color-mix(in srgb, var(--navy-850) 97%, transparent), color-mix(in srgb, var(--navy-950) 97%, transparent)); overflow: hidden; box-shadow: var(--e1); }
.graph-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--navy-950) 50%, transparent); }
.gb-t { display: flex; align-items: center; gap: 10px; }
.gb-t .dots { display: flex; gap: 6px; } .gb-t .dots i { width: 8px; height: 8px; border-radius: var(--r-full); background: var(--line); }
.gb-t b { font: 600 var(--fs-sm)/1 var(--display); }
.gb-t .crumb { font: 400 var(--fs-xs)/1 var(--mono); color: var(--ink-400); }
.live-pill i { display: block; width: 7px; height: 7px; border-radius: var(--r-full); background: var(--teal-400); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font: 500 var(--fs-xs)/1 var(--mono); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--ink-400); }
.legend li { display: flex; align-items: center; gap: 7px; }
.sw { width: 18px; height: 10px; border-radius: var(--r-xs); border: 1.5px solid var(--teal-400); }
.sw.suspected { border: 1.5px dashed var(--ink-200); }
.sw.verified { background: var(--teal-400); }
.graph-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.graph-canvas { position: relative; padding: 30px 24px; min-height: 360px; background: radial-gradient(60% 70% at 50% 50%, var(--teal-a06), transparent 70%), repeating-linear-gradient(0deg, var(--grid) 0 1px, transparent 1px 36px), repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px 36px); }
.edges { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.edges line { stroke: color-mix(in srgb, var(--teal-400) 70%, transparent); stroke-width: 1.4; }
.edges line.suspected { stroke: var(--ink-200); stroke-dasharray: 5 5; opacity: 0.7; }
.edges line.verified { stroke: var(--teal-400); opacity: 1; }
.edges text { font: 500 var(--fs-xs)/1 var(--mono); fill: var(--ink-200); letter-spacing: var(--tr-label); paint-order: stroke; stroke: var(--navy-900); stroke-width: 6px; stroke-linejoin: round; }
.edges circle { fill: var(--teal-300); filter: drop-shadow(0 0 5px color-mix(in srgb, var(--teal-300) 90%, transparent)); }
.edges circle.sus { fill: var(--ink-200); filter: none; }
/* Performance (25 Nov 2026): the signal dots and node rings draw on this layer above the nodes (graph script), so the
   browser moves them without redrawing the page under them. */
.edges.edges-ov { z-index: 1; will-change: transform; }
/* Performance (25 Nov 2026, measured in the owner's Chrome at 150%): this page uses the core colour tokens with their
   values written as plain rgba()/rgb(). The core tokens are color-mix() values, which resolve to color(srgb ...), and
   Chrome then blends every gradient that uses them in Oklab, a slower drawing path; with plain values it blends in
   sRGB. The colours are the same (teal-400 #5fe3d6, ink-200 #b9c8d8, navy-950 #0a1120); the fades to transparent
   come out the same. On this machine it cut the slowest scroll frames on this page by about a third. */
:root {
  --teal-a06: rgba(95, 227, 214, 0.06); --teal-a12: rgba(95, 227, 214, 0.12); --teal-a24: rgba(95, 227, 214, 0.24);
  --teal-a40: rgba(95, 227, 214, 0.4); --teal-a60: rgba(95, 227, 214, 0.6);
  --grid: rgba(185, 200, 216, 0.04); --line: rgba(185, 200, 216, 0.14);
  --pt-950: rgb(13.4, 25.4, 39.28); --pt-900: rgb(15.95, 31.7, 44.74);
}
.gnodes { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: 1fr 1fr; gap: 64px 14px; height: 100%; min-height: 300px; }
.gnodes li { display: flex; align-items: center; }
.gnodes li:nth-child(1) { grid-area: 2 / 1; } .gnodes li:nth-child(2) { grid-area: 1 / 2; } .gnodes li:nth-child(3) { grid-area: 2 / 3; }
.gnodes li:nth-child(4) { grid-area: 1 / 4; } .gnodes li:nth-child(5) { grid-area: 2 / 5; }
.gnode { position: relative; width: 100%; text-align: left; padding: 12px 12px 14px; border-radius: var(--r-md); border: 1.5px solid var(--teal-a60); background: var(--navy-800); color: var(--ink-50); cursor: pointer; font: inherit; transition: border-color var(--dur-slow), background var(--dur-slow), box-shadow var(--dur-slow); }
.gnode .kind { display: block; font: 500 var(--fs-xs)/1 var(--mono); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--ink-400); }
.gnode b { display: block; margin-top: 8px; font: 500 var(--fs-sm)/1.25 var(--display); }
.gnode:hover { background: var(--navy-800); }
.gnode[aria-pressed="true"] { box-shadow: 0 0 0 4px var(--teal-a24); background: var(--navy-700); }
.gnode.ping { box-shadow: 0 0 0 3px var(--teal-a24); transition: none; }
.gnode.risk { border-color: color-mix(in srgb, var(--red-500) 75%, transparent); }
.gnode.risk[aria-pressed="true"] { box-shadow: 0 0 0 4px color-mix(in srgb, var(--red-500) 20%, transparent); }
.gnode.finding[data-state="suspected"] { border-style: dashed; border-color: var(--ink-200); }
.gnode.finding[data-state="verified"] { border-color: var(--teal-400); background: linear-gradient(180deg, var(--teal-a24), var(--navy-800)); }
.gnode.finding b::after { content: 'suspected'; display: block; margin-top: 6px; font: 500 var(--fs-xs)/1 var(--mono); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--ink-200); }
.gnode.finding[data-state="verified"] b::after { content: 'verified'; color: var(--teal-300); }
.ripple { position: absolute; inset: -2px; border-radius: var(--r-md); border: 2px solid var(--teal-400); pointer-events: none; }
.evidence { padding: 22px 20px; border-left: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--navy-700) 45%, transparent), color-mix(in srgb, var(--navy-900) 40%, transparent)); }
.ev-k { font: 500 var(--fs-xs)/1 var(--mono); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--ink-400); }
.ev-title { margin-top: 12px; }
.ev-rows { margin: 16px 0 0; display: grid; gap: 12px; }
.ev-rows div { padding-top: 12px; border-top: 1px solid var(--line); }
.ev-rows dt { font: 500 var(--fs-xs)/1 var(--mono); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--ink-400); }
.ev-rows dd { margin: 6px 0 0; color: var(--ink-200); font-size: var(--fs-md); line-height: 1.45; }
.state { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: var(--r-xs); font: 500 var(--fs-xs)/1 var(--mono); letter-spacing: var(--tr-label); text-transform: uppercase; border: 1px solid; }
.state.observed { color: var(--teal-300); border-color: var(--teal-a40); }
.state.suspected { color: var(--ink-200); border-style: dashed; border-color: color-mix(in srgb, var(--ink-200) 50%, transparent); }
.state.verified { color: var(--navy-950); background: var(--teal-400); border-color: var(--teal-400); }
.state.exposure { color: var(--red-300); border-color: color-mix(in srgb, var(--red-500) 60%, transparent); background: color-mix(in srgb, var(--red-500) 12%, transparent); }
.ev-toggle { margin-top: 20px; }
.seg { position: relative; display: inline-flex; margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r-full); padding: 3px; }
.seg button { position: relative; z-index: 1; border: 0; background: none; color: var(--ink-200); font: 500 var(--fs-sm)/1 var(--display); padding: 8px 14px; border-radius: var(--r-full); cursor: pointer; transition: color var(--dur-slow), background var(--dur-slow); }
.seg button[aria-pressed="true"] { background: var(--teal-a12); color: var(--ink-50); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1279px) {
  .i-board { column-gap: 12px; }
  .i-pane { padding: 12px 12px 14px; }
  .i-ph .crumb { display: none; }
  .ctx-feed li { white-space: normal; overflow-wrap: anywhere; }
}
@media (max-width: 1023px) {   /* hero: the finding moves under the context strip */
  .i-board { --cols: repeat(4, minmax(0, 1fr)); row-gap: 36px; }
  .i-find { grid-column: 1 / -1; grid-row: 3; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; }
  .i-find b { font-size: var(--fs-md); }
  .i-links { display: none; }
  .i-find .chip { margin: 0 0 0 auto; }
}
@media (max-width: 1023px) {
  .graph-body { grid-template-columns: minmax(0, 1fr); }
  .evidence { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 767px) {
  /* hero view by content: telemetry and the advisory, their two context entries, the finding */
  .i-board { --cols: repeat(2, minmax(0, 1fr)); column-gap: 10px; row-gap: 28px; padding: 12px; }
  .i-board [data-src="inv"], .i-board [data-src="files"] { display: none; }
  .ctx { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; padding: 30px 8px 8px; }
  .ctx-k { top: 10px; left: 10px; }
  .i-find { padding: 12px 14px; }
  .i-find .kind { display: none; }
  .i-spark { height: 44px; }
  .gnodes { grid-template-columns: 1fr; grid-template-rows: none; gap: 38px; min-height: 0; }
  .gnodes li { grid-area: auto !important; }
  .gnodes li:nth-child(even) { padding-left: 36px; }
  .graph-canvas { padding: 22px 16px; }
}

/* ------------------------------------------------------------ review 2: proof line (C13), related links (E3) */

@media (max-width: 479px) {   /* C14: one breadcrumb line; the current page truncates */
  .breadcrumbs li { flex: none; white-space: nowrap; }
  .breadcrumbs li:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 479px) {
  .ctx-feed li { white-space: normal; overflow-wrap: anywhere; }
}
/* B5 (review 3): at 375 px the title bar squeezed its title. The bar keeps its title and status, the crumb gives way. */
.ui-bar .t, .ui-bar .end { flex: none; }
.ui-bar .crumb { flex: 0 1 auto; min-width: 0; }

/* site-wide revision: the hero drawing lays out at ~900 px and scales into the split hero column */
.duo-art.i-stage { --duo-zoom: .8; --duo-w: 900px; }

/* ---- Copy round, 25 Nov 2026 (owner: "i want the answers i chose...fix if it cut off"): the chosen labels in the
   product drawings wrap to a second line instead of being cut with an ellipsis, and tab rows wrap. Same fonts, colors
   and spacing; no text is shortened. ---- */
.ui-row > *, .ui-top .t, .ui-file, .ui-meta > *, .ui-tile .k, .ui-tile .ui-sub, .ui-row .ui-chip, .ui-body > .ui-chip,
.row b, .row .m, .d-tr b, .d-tr .m, .sg-log b, .rp-stats span, .rp-s, .i-ph .crumb, .ctx-feed li, .i-files li span,
.ev-list li > span:nth-child(2), .hit span, .ui-bar .crumb, .tile .l, .tri-row b, .cl-row b, .cl-crumb {
  white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; min-width: 0; }
.ui-tabs, .cb-tabs { flex-wrap: wrap; row-gap: 8px; }
.cb-tabs span { white-space: normal; }
.ui-row .ui-chip, .ui-body > .ui-chip { max-width: 100%; }
