/* ============================================================================================================
   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; }
.ui-body { padding: 14px; }
.ui-h { display: flex; align-items: baseline; gap: 10px; font: 600 var(--fs-sm)/1.2 var(--display); color: var(--ink-50); }
.ui-h span { font: 400 var(--fs-xs)/1 var(--display); color: var(--ink-400); }
.rows { display: grid; margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: color-mix(in srgb, var(--navy-950) 25%, transparent); min-width: 0; }
.row + .row { border-top: 1px solid var(--line); }
.row b { font-weight: 500; color: var(--ink-50); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.row .end { margin-left: auto; display: flex; gap: 8px; align-items: center; flex: none; }
.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); }
.btn-ui { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); font: 500 var(--fs-xs)/1 var(--display); color: var(--ink-50); white-space: nowrap; }
.sev { width: 8px; height: 8px; border-radius: var(--r-xs); flex: none; background: var(--ink-400); }
.sev.crit { background: var(--red-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red-500) 25%, transparent); }
.sev.high { background: var(--red-400); }
.sev.ok { background: var(--teal-400); }
.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); }
.spark.dim { stroke: color-mix(in srgb, var(--ink-200) 45%, transparent); }
.area { fill: var(--teal-a12); stroke: none; }
.ver { font: 400 var(--fs-xs)/1 var(--mono); color: var(--ink-200); }

/* PAGE 04 · Incident Investigation. H2 · Console (rollout step 3): the skeleton (hero heading, stages, callouts,
   close) is in core (system.css). Here: the three case views, each on its own stage at 722 px (the approved mockup):
   the timeline (hero), the asset map (light section) and the evidence (navy section). */
.v-stage { --art-w: 722px; }

/* the alert that opens the investigation, at the top of the timeline view */
.tl-alert { margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--teal-a40); border-radius: var(--r-md); background: linear-gradient(180deg, var(--navy-700), var(--navy-850)); }
.al-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; }
.al-top b { margin-right: auto; font-weight: 600; color: var(--ink-50); font-size: var(--fs-sm); }
.al-m { margin: 8px 0 0; font: 400 var(--fs-xs)/1.4 var(--mono); color: var(--ink-400); }

/* stage views */
.tl-chart { position: relative; margin-top: 4px; }
.tl-chart svg { display: block; width: 100%; height: 160px; overflow: visible; }
.gridl line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mk { position: absolute; top: 0; bottom: 0; display: flex; align-items: flex-start; padding-left: 8px; border-left: 1px dashed color-mix(in srgb, var(--teal-400) 70%, transparent); font: 500 var(--fs-xs)/1.2 var(--mono); color: var(--teal-300); white-space: nowrap; }
.mk i { position: absolute; left: -4px; bottom: -4px; width: 7px; height: 7px; border-radius: var(--r-full); background: var(--teal-400); }
.mk.r { border-left-color: color-mix(in srgb, var(--red-400) 80%, transparent); color: var(--red-300); padding-top: 16px; }
.mk.r i { background: var(--red-400); }
.tl-axis { display: flex; justify-content: space-between; margin-top: 6px; font: 400 var(--fs-xs)/1 var(--mono); color: var(--ink-400); }
.tl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.tl-grid .rows { margin-top: 0; }
.fx { width: 18px; height: 18px; flex: none; display: grid; place-items: center; border-radius: var(--r-xs); background: var(--navy-800); font: 600 var(--fs-xs)/1 var(--mono); color: var(--ink-200); }
.asset-ws { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.amap { position: relative; height: 270px; margin: 14px; border-radius: var(--r-md); background: radial-gradient(60% 60% at 50% 50%, var(--teal-a12), transparent 70%); }
.amap-l { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.amap-l path { fill: none; stroke: var(--teal-400); stroke-width: 1.3; opacity: 0.65; vector-effect: non-scaling-stroke; }
.an { position: absolute; transform: translate(-50%, -50%); padding: 8px 11px; border: 1px solid var(--teal-a40); border-radius: var(--r-md); font-size: var(--fs-xs); background: var(--navy-800); color: var(--ink-50); white-space: nowrap; }
.an.main { border-color: var(--teal-400); background: linear-gradient(180deg, var(--teal-a24), var(--navy-800)); font-weight: 500; box-shadow: none; }
.an.risk { border-color: color-mix(in srgb, var(--red-500) 75%, transparent); }
.linked { padding: 14px; border-left: 1px solid var(--line); }
.evrows { margin: 0; display: grid; }
.evrows div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.evrows div:first-child { border-top: 0; }
.evrows dt { font-size: var(--fs-sm); color: var(--ink-200); }
.evrows dd { margin: 0; }
.st { display: inline-flex; padding: 4px 9px; border-radius: var(--r-xs); font: 500 var(--fs-xs)/1 var(--mono); letter-spacing: var(--tr-label); text-transform: uppercase; border: 1px solid; white-space: nowrap; }
.st.obs { color: var(--teal-300); border-color: var(--teal-a40); }
.st.hyp { color: var(--ink-200); border-style: dashed; border-color: color-mix(in srgb, var(--ink-200) 50%, transparent); }
.seg-meter i.on { border-style: solid; border-color: color-mix(in srgb, var(--red-500) 55%, transparent); background: color-mix(in srgb, var(--red-500) 30%, transparent); }
.signif { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: color-mix(in srgb, var(--navy-950) 35%, transparent); }
.seg-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 12px; }
.seg-meter i { height: 8px; border-radius: var(--r-xs); border: 1px dashed var(--line-strong); }
.seg-lab { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 6px; font: 400 var(--fs-xs)/1 var(--mono); color: var(--ink-400); }

@media (max-width: 767px) {
  .al-top b { flex: 1 1 calc(100% - 24px); margin-right: 0; }
  .tl-grid, .asset-ws { grid-template-columns: minmax(0, 1fr); }
  .linked { border-left: 0; border-top: 1px solid var(--line); }
  .amap { height: 230px; }
  .an { font-size: var(--fs-xs); padding: 7px 9px; }
  .mk { font-size: var(--fs-xs); }
  .mk.r { padding-left: 0; padding-right: 8px; border-left: 0; border-right: 1px dashed color-mix(in srgb, var(--red-500) 70%, transparent); transform: translateX(-100%); }   /* the label sits left of its line, inside the view */
  .mk.r i { left: auto; right: -4px; }
  .evrows div { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ------------------------------------------------------------ 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; }
}

/* site-wide revision: the hero timeline at 90% in the split hero column */
.duo-art.v-stage { --duo-zoom: .9; }

/* ---- 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%; }
