/* NODAL run assessment.
   Look: Linear (near-black, hairline borders, wireframe grid, quiet motion), square-cornered.
   Type: Anduril's pairing with free stand-ins - Inter Tight for Helvetica Now Display,
   Share Tech Mono for Elios (the uppercase technical labels). */
:root {
  --sans: "Inter Tight", "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Share Tech Mono", "Elios", ui-monospace, monospace;
  --bg: #08090a; --card: #0f1011; --card-2: #141516; --fill: #1b1c1f; --fill-2: #121315;
  --ink: #f7f8f8; --ink-2: #8a8f98; --ink-3: #62666d; --sep: #23252a; --sep-2: #2e3036;
  --left: #2997ff; --right: #c46ac7;
  --green: #4cb782; --yellow: #f2c94c; --red: #eb5757;
  --accent: #5e6ad2; --tick: #3a3d44; --glow: rgba(255,255,255,.05);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f4f4f5; --card: #ffffff; --card-2: #fafafa; --fill: #ececee; --fill-2: #f6f6f7;
  --ink: #0f1011; --ink-2: #62666d; --ink-3: #8a8f98; --sep: #e2e2e5; --sep-2: #d4d4d8;
  --left: #0071e3; --right: #a550a7;
  --green: #28a745; --yellow: #e0a800; --red: #ff3b30;
  --accent: #5e6ad2; --tick: #c8c8cd; --glow: rgba(94,106,210,.06);
  color-scheme: light;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; font-size: 15px; line-height: 1.45; letter-spacing: -0.005em; overflow: hidden; }
button { font-family: inherit; color: inherit; }
.grow { flex: 1; }
.muted { color: var(--ink-2); } .small { font-size: 13px; }
.k-l { color: var(--left); } .k-r { color: var(--right); }
.lab { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.lab.dim { color: var(--ink-3); }
.shell { height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3 { font-family: var(--sans); margin: 0; letter-spacing: -0.025em; font-weight: 500; }

/* ---------------------------------------------------------------- header */
.top { flex: none; height: 56px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 24px; border-bottom: 1px solid var(--sep); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px); z-index: 5; }
.brand { display: flex; align-items: center; gap: 14px; }
.wm { height: 12px; }
:root:not([data-theme="light"]) .wm.light, [data-theme="light"] .wm.dark { display: none; }
.brand-sep { width: 1px; height: 16px; background: var(--sep-2); }
.brand-title { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.tabs { display: flex; gap: 4px; position: relative; }
.tabs button { border: 0; background: none; font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 8px 14px; cursor: pointer; transition: color .2s; position: relative; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs .bar { position: absolute; bottom: -9px; height: 1px; background: var(--ink); transition: left .35s cubic-bezier(.16,1,.3,1), width .35s cubic-bezier(.16,1,.3,1); }
.seg { display: inline-flex; border: 1px solid var(--sep-2); }
.seg button { border: 0; background: transparent; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); padding: 6px 11px; cursor: pointer; transition: background .2s, color .2s; }
.seg button + button { border-left: 1px solid var(--sep-2); }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.btn { border: 1px solid var(--sep-2); background: transparent; font-size: 13.5px; font-weight: 500; height: 32px; padding: 0 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.btn:hover { border-color: var(--ink-3); background: var(--fill-2); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--ink) 88%, var(--bg)); }
.iconbtn { width: 32px; height: 32px; border: 1px solid var(--sep-2); background: transparent; cursor: pointer; font-size: 14px; }
.roundbtn { width: 34px; height: 34px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); cursor: pointer; font-size: 11px; }
.link { border: 0; background: none; color: var(--ink-2); cursor: pointer; padding: 0; transition: color .2s; }
.link:hover { color: var(--ink); }
.pill { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border: 1px solid; white-space: nowrap; }
.pill.demo { color: var(--yellow); border-color: color-mix(in srgb, var(--yellow) 45%, transparent); }
button:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

/* status: colour + icon + word */
.status { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px 3px 4px; border: 1px solid; white-space: nowrap; }
.status i { width: 15px; height: 15px; display: inline-grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 700; font-family: var(--sans); color: var(--bg); }
.status.green { color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, transparent); background: color-mix(in srgb, var(--green) 8%, transparent); } .status.green i { background: var(--green); }
.status.yellow { color: var(--yellow); border-color: color-mix(in srgb, var(--yellow) 40%, transparent); background: color-mix(in srgb, var(--yellow) 8%, transparent); } .status.yellow i { background: var(--yellow); }
.status.red { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); background: color-mix(in srgb, var(--red) 9%, transparent); } .status.red i { background: var(--red); }
.ic { width: 24px; height: 24px; display: grid; place-items: center; color: var(--bg); font-weight: 700; font-size: 12px; flex: none; }
.ic.red { background: var(--red); } .ic.yellow { background: var(--yellow); } .ic.green { background: var(--green); }
.ic.sm { width: 16px; height: 16px; font-size: 9px; }

/* ------------------------------------------------- panels (wireframe boxes) */
.view { flex: 1; min-height: 0; overflow-y: auto; }
.panel, .card { background: var(--card); border: 1px solid var(--sep); position: relative; }
.panel::before, .card::before { content: ""; position: absolute; inset: -1px; pointer-events: none; z-index: 1;
  background:
    linear-gradient(var(--tick), var(--tick)) top left / 9px 1px no-repeat, linear-gradient(var(--tick), var(--tick)) top left / 1px 9px no-repeat,
    linear-gradient(var(--tick), var(--tick)) top right / 9px 1px no-repeat, linear-gradient(var(--tick), var(--tick)) top right / 1px 9px no-repeat,
    linear-gradient(var(--tick), var(--tick)) bottom left / 9px 1px no-repeat, linear-gradient(var(--tick), var(--tick)) bottom left / 1px 9px no-repeat,
    linear-gradient(var(--tick), var(--tick)) bottom right / 9px 1px no-repeat, linear-gradient(var(--tick), var(--tick)) bottom right / 1px 9px no-repeat; }
.panel::after, .card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 45%); }
.panel:hover::after, .card:hover::after { opacity: 1; }
.ph { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--sep); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 20px 6px; }
.eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.lead { font-size: 17px; color: var(--ink-2); margin: 8px 0 0; line-height: 1.45; }
.chev { color: var(--ink-3); font-size: 18px; line-height: 1; transition: transform .25s, color .2s; }

/* Linear-style reveal: staggered rise, fade and un-blur when a view opens */
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.view.enter .rv { animation: rise .7s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i, 0) * 55ms); }
@media (prefers-reduced-motion: reduce) { .view.enter .rv { animation: none; } }
.still .view.enter .rv { animation: none; } .still * { transition: none !important; }

/* ------------------------------------------------------------- overview */
.ov3 { height: 100%; min-height: 660px; display: grid; grid-template-columns: 320px minmax(0, 1fr) 380px; gap: 0; }
.ov3 > .panel { border-top: 0; border-bottom: 0; }
.ov3 > .panel:first-child { border-left: 0; }
.ov3 > .panel:last-child { border-right: 0; }
.rail { overflow-y: auto; display: flex; flex-direction: column; }
.scorebox { padding: 22px 20px 22px; border-bottom: 1px solid var(--sep); }
.bignum { display: flex; align-items: baseline; gap: 6px; }
.bignum .n { font-size: 84px; font-weight: 300; line-height: .9; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.bignum .of { font-family: var(--mono); font-size: 14px; color: var(--ink-3); }
.scorebar { height: 3px; background: var(--fill); margin: 16px 0 14px; position: relative; overflow: hidden; }
.scorebar i { position: absolute; left: 0; top: 0; bottom: 0; transition: width 1.4s cubic-bezier(.16,1,.3,1); }
.scorebox h1 { font-size: 24px; line-height: 1.2; margin-top: 12px; }
.scorebox p { color: var(--ink-2); font-size: 15px; margin: 6px 0 0; }
.sttile { border-bottom: 1px solid var(--sep); padding: 14px 18px 10px; cursor: pointer; transition: background .2s; }
.sttile:hover { background: var(--fill-2); }
.sttop { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stv { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.stv .n { font-size: 30px; font-weight: 400; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stv .n.pair { font-size: 24px; }
.stv .u { font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; }
.stv .c { font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; margin-left: auto; white-space: nowrap; }
.sttile canvas { display: block; width: 100%; height: 66px; margin-top: 8px; }
.stage { overflow: hidden; background-color: var(--bg);
  background-image: linear-gradient(var(--sep) 1px, transparent 1px), linear-gradient(90deg, var(--sep) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center center; }
.stage::after { display: none; }
.stage .vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 70% at 62% 50%, transparent 35%, var(--bg) 100%); }
.stage > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#cvLines { pointer-events: none; z-index: 2; }
.callouts { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.callout { position: absolute; width: 270px; pointer-events: auto; background: color-mix(in srgb, var(--card) 90%, transparent); border: 1px solid var(--sep-2); padding: 11px 13px 12px; backdrop-filter: blur(8px); cursor: pointer; transition: border-color .25s, transform .35s cubic-bezier(.16,1,.3,1); }
.callout:hover { border-color: var(--ink-3); transform: translateX(3px); }
.callout .ch { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.callout .t { font-size: 16px; font-weight: 500; line-height: 1.25; margin-top: 9px; letter-spacing: -0.015em; }
.callout .live { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); margin-top: 8px; display: flex; justify-content: space-between; border-top: 1px solid var(--sep); padding-top: 7px; }
.callout .live b { color: var(--ink); font-weight: 400; }
.hud { position: absolute; top: 18px; right: 22px; text-align: right; pointer-events: none; z-index: 3; }
.hudv { font-size: 34px; font-weight: 300; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.transport { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--sep); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); z-index: 4; }
.scrub { position: relative; flex: 1; height: 26px; cursor: pointer; min-width: 120px; }
.scrub .track { position: absolute; left: 0; right: 0; top: 12px; height: 1px; background: var(--sep-2); }
.scrub .bands i { position: absolute; height: 3px; }
.scrub .bands i.l { top: 6px; background: var(--left); opacity: .75; }
.scrub .bands i.r { top: 17px; background: var(--right); opacity: .75; }
.scrub .head { position: absolute; top: 2px; width: 1px; height: 22px; background: var(--ink); }
.takeaway { display: grid; grid-template-columns: 24px 1fr 14px; gap: 14px; align-items: start; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--sep); background: none; padding: 16px 18px; cursor: pointer; transition: background .2s; }
.takeaway:hover { background: var(--fill-2); }
.takeaway:hover .chev { color: var(--ink); transform: translateX(2px); }
.takeaway .t { font-size: 17px; font-weight: 500; line-height: 1.28; letter-spacing: -0.015em; }
.takeaway .s { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }
.area { display: grid; grid-template-columns: 1fr 90px 30px 12px; gap: 12px; align-items: center; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--sep); background: none; padding: 13px 18px; cursor: pointer; font-size: 15px; transition: background .2s; }
.area:hover { background: var(--fill-2); }
.area .nm { display: flex; align-items: center; gap: 10px; }
.area .meter { height: 3px; background: var(--fill); position: relative; }
.area .meter i { position: absolute; left: 0; top: 0; bottom: 0; transition: width 1.2s cubic-bezier(.16,1,.3,1); }
.area .n { font-family: var(--mono); font-size: 13px; text-align: right; color: var(--ink-2); }
.sq { width: 8px; height: 8px; flex: none; }
.sq.green { background: var(--green); } .sq.yellow { background: var(--yellow); } .sq.red { background: var(--red); }
.tipcard { position: absolute; z-index: 6; width: 260px; background: var(--card); border: 1px solid var(--sep-2); padding: 12px 14px; pointer-events: none; font-size: 14px; }

/* -------------------------------------------------------------- findings */
.article { max-width: 980px; margin: 0 auto; padding: 44px 24px 90px; }
.page-title { font-size: 56px; font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.fgroup { margin-top: 44px; }
.fgroup > h2 { display: flex; align-items: center; gap: 12px; font-size: 24px; margin-bottom: 16px; }
.fcard { display: grid; grid-template-columns: 250px 1fr; margin-bottom: 14px; }
.fcard .fig { position: relative; background: var(--fill-2); min-height: 300px; border-right: 1px solid var(--sep); }
.fcard .fig canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fbody { padding: 24px 28px; }
.fbody h3 { font-size: 26px; font-weight: 500; line-height: 1.15; margin: 14px 0 4px; letter-spacing: -0.03em; }
.fbody .who { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.fbody .saw { font-size: 17px; margin: 14px 0 0; line-height: 1.5; }
.fbody h4 { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin: 18px 0 4px; }
.fbody p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink); }
.fbody .todo { border-left: 2px solid var(--accent); background: var(--fill-2); padding: 12px 14px; margin-top: 16px; font-size: 16px; }
.fbody .todo b { display: block; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.fbody .link { margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.fbody .link:hover { color: var(--ink); }
.goodlist { display: flex; flex-wrap: wrap; gap: 8px; }
.goodlist .status { font-size: 11.5px; padding: 6px 10px 6px 6px; cursor: pointer; }

/* ------------------------------------------------------------ parameters */
.pp { max-width: 1480px; margin: 0 auto; padding: 24px; display: grid; grid-template-columns: minmax(460px, 0.95fr) minmax(0, 1.05fr); gap: 16px; align-items: start; }
.sec { margin-bottom: 10px; }
.sec-head { display: grid; grid-template-columns: 58px 1fr auto 18px; gap: 16px; align-items: center; width: 100%; border: 0; background: none; text-align: left; padding: 14px 18px; cursor: pointer; transition: background .2s; position: relative; z-index: 2; }
.sec-head:hover { background: var(--fill-2); }
.sec-head canvas { width: 58px; height: 58px; }
.sec-head h3 { font-size: 20px; font-weight: 500; }
.sec-head .about { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.sec.open .sec-head .chev { transform: rotate(90deg); color: var(--ink); }
.sec[aria-current="true"] { border-color: var(--ink-3); }
.sec-body { border-top: 1px solid var(--sep); position: relative; z-index: 2; }
.row { display: grid; grid-template-columns: 18px 1fr 150px 100px; gap: 12px; align-items: center; width: 100%; border: 0; border-bottom: 1px solid var(--sep); background: none; text-align: left; padding: 11px 18px; cursor: pointer; transition: background .2s; }
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--fill-2); }
.row[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: inset 2px 0 0 var(--accent); }
.row .nm { font-size: 15px; font-weight: 500; line-height: 1.25; }
.row .nm small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; margin-top: 3px; }
.row canvas { width: 150px; height: 24px; }
.row .v { font-family: var(--mono); font-size: 13px; text-align: right; white-space: nowrap; }
.pp-detail { position: sticky; top: 0; display: flex; flex-direction: column; gap: 12px; }
.dcard { padding: 20px 22px 18px; }
.dcard h2 { font-size: 30px; font-weight: 500; margin: 12px 0 2px; line-height: 1.12; letter-spacing: -0.035em; }
.dfig { position: relative; height: 360px; margin: 16px -22px 0; background: var(--fill-2); border-top: 1px solid var(--sep); border-bottom: 1px solid var(--sep);
  background-image: linear-gradient(var(--sep) 1px, transparent 1px), linear-gradient(90deg, var(--sep) 1px, transparent 1px); background-size: 40px 40px; }
.dfig canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.dfig .cap { position: absolute; left: 16px; bottom: 10px; right: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.vals { display: flex; gap: 34px; margin-top: 18px; flex-wrap: wrap; }
.vals .v { font-size: 34px; font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: -0.035em; line-height: 1.05; margin: 3px 0 7px; }
.vals .l { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.dprose p { font-size: 16px; margin: 4px 0 0; line-height: 1.55; }
.dprose h4 { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin: 18px 0 0; }
.subcard { padding: 16px 18px; }
.subcard h4 { margin: 0 0 10px; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.subcard canvas { width: 100%; display: block; position: relative; z-index: 2; }
.subcard p { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-2); }

/* ---------------------------------------------------------------- curves */
.cv { max-width: 1640px; margin: 0 auto; padding: 24px; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; min-height: 100%; }
.cv-side { display: flex; flex-direction: column; gap: 12px; }
.mini { height: 340px; overflow: hidden; background-image: linear-gradient(var(--sep) 1px, transparent 1px), linear-gradient(90deg, var(--sep) 1px, transparent 1px); background-size: 34px 34px; }
.mini canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mini-cap { position: absolute; left: 14px; top: 12px; right: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); z-index: 2; }
.legend { padding: 16px; }
.leg { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 9px; }
.sw { width: 20px; height: 2px; }
.sw.l { background: var(--left); } .sw.r { background: var(--right); } .sw.band { height: 10px; background: color-mix(in srgb, var(--green) 25%, transparent); }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; margin-top: 12px; cursor: pointer; }
.cv-grid { display: grid; grid-template-columns: 64px repeat(3, minmax(0, 1fr)); grid-template-rows: 28px repeat(4, minmax(180px, 1fr)); gap: 10px; }
.gh { display: flex; align-items: end; justify-content: center; font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.gr { display: flex; align-items: center; justify-content: flex-end; font-family: var(--mono); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.tile { background: var(--card); border: 1px solid var(--sep); position: relative; overflow: hidden; transition: border-color .2s; }
.tile:hover { border-color: var(--sep-2); }
.tile .tt { position: absolute; left: 12px; top: 9px; font-size: 13px; font-weight: 500; pointer-events: none; }
.tile .tp { position: absolute; right: 12px; top: 10px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; pointer-events: none; }
.tile canvas { position: absolute; left: 0; right: 0; top: 28px; bottom: 0; width: 100%; height: calc(100% - 28px); cursor: crosshair; }

/* ---------------------------------------------------------------- report */
.report-view { background: var(--fill-2); }
.report-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 24px; border-bottom: 1px solid var(--sep); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); }
.pages { padding: 28px 0 80px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.page { width: 210mm; height: 297mm; background: #fff; color: #0f1011; position: relative; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 18px 50px rgba(0,0,0,.35); font-family: var(--sans);
  --bg: #ffffff; --card: #ffffff; --card-2: #fafafa; --fill: #ececee; --fill-2: #f6f6f7; --ink: #0f1011; --ink-2: #62666d; --ink-3: #8a8f98; --sep: #e2e2e5; --sep-2: #d4d4d8;
  --left: #0071e3; --right: #a550a7; --green: #28a745; --yellow: #e0a800; --red: #ff3b30; --tick: #c8c8cd; }
.page .ph2 { display: flex; align-items: center; gap: 10px; height: 14mm; padding: 0 14mm; border-bottom: 1px solid #e2e2e5; }
.page .ph2 img { height: 9px; }
.page .body { padding: 8mm 14mm 0; }
.page .pf { position: absolute; left: 14mm; right: 14mm; bottom: 7mm; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 8.5px; letter-spacing: .06em; text-transform: uppercase; color: #8a8f98; }
.page h1 { font-size: 46px; font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.page h2 { font-size: 26px; font-weight: 500; letter-spacing: -0.035em; margin: 0 0 3mm; }
.page p, .page li { font-size: 10.5px; line-height: 1.5; color: #3a3d44; margin: 0; }
.page .lab { font-size: 8.5px; color: #62666d; }
.page canvas { display: block; }
.page .status { font-size: 8.5px; padding: 1px 5px 1px 2px; } .page .status i { width: 11px; height: 11px; font-size: 7px; color: #fff; }
.page .stamp { display: inline-block; border: 1px solid #b08800; color: #8a6a00; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; padding: 3px 8px; text-transform: uppercase; }
.page.cover { background: #08090a; color: #f7f8f8;
  --bg: #08090a; --card: #08090a; --ink: #f7f8f8; --ink-2: #8a8f98; --ink-3: #62666d; --sep: #23252a; --left: #2997ff; --right: #c46ac7; --green: #4cb782; --yellow: #f2c94c; --red: #eb5757; }
.page.cover .body { padding: 20mm 18mm 0; }
.page.cover h1 { color: #f7f8f8; font-size: 64px; }
.kv { display: grid; grid-template-columns: 34mm 1fr; row-gap: 2.6mm; font-size: 11px; }
.kv .k { font-family: var(--mono); color: #62666d; letter-spacing: .08em; text-transform: uppercase; font-size: 9px; padding-top: 2px; }
.srow { display: grid; grid-template-columns: 46mm 1fr; gap: 6mm; padding: 2.4mm 0; border-bottom: 1px solid #ececee; break-inside: avoid; }
.srow .t { font-size: 12.5px; font-weight: 500; letter-spacing: -0.01em; color: #0f1011; }
.srow .d { font-size: 9px; color: #62666d; margin-top: 1px; line-height: 1.4; }
.rtable { width: 100%; border-collapse: collapse; font-size: 9.5px; }
.rtable th { text-align: left; font-family: var(--mono); font-weight: 400; color: #62666d; letter-spacing: .07em; text-transform: uppercase; font-size: 8px; border-bottom: 1px solid #d4d4d8; padding: 1.8mm 1.5mm; }
.rtable td { border-bottom: 1px solid #ececee; padding: 1mm 1.5mm; vertical-align: middle; line-height: 1.25; }
.rtable td.num { text-align: right; white-space: nowrap; font-family: var(--mono); font-size: 9.5px; }
.rtable tr.grp td { font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; color: #0f1011; padding-top: 2.6mm; text-transform: uppercase; border-bottom: 1px solid #d4d4d8; }
.legendrow { display: flex; gap: 6mm; font-family: var(--mono); font-size: 8.5px; letter-spacing: .05em; text-transform: uppercase; color: #62666d; align-items: center; margin: 2mm 0 3mm; }
.rbox { border: 1px solid #e2e2e5; position: relative; }

/* tooltip + toast */
.tip { position: fixed; z-index: 30; pointer-events: none; background: var(--card); border: 1px solid var(--sep-2); padding: 8px 11px; font-size: 13px; line-height: 1.5; white-space: nowrap; }
.toast { position: fixed; z-index: 40; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; font-size: 13.5px; }

/* print */
@page { size: A4; margin: 0; }
body.printmode { overflow: visible; background: #fff; }
body.printmode .top, body.printmode .report-bar, body.printmode .view:not(.report-view) { display: none !important; }
body.printmode .shell { height: auto; display: block; }
body.printmode .report-view { display: block !important; background: #fff; overflow: visible; }
body.printmode .pages { padding: 0; gap: 0; display: block; }
body.printmode .page { box-shadow: none; break-after: page; }
@media print {
  body { overflow: visible; background: #fff; }
  .top, .report-bar, .view:not(.report-view) { display: none !important; }
  .shell { height: auto; display: block; }
  .report-view { display: block !important; overflow: visible; }
  .pages { padding: 0; gap: 0; display: block; }
  .page { box-shadow: none; break-after: page; }
}

/* =================================================================== NODAL LAB
   A sidebar of movements (Linear-style), a home grid, and the run app's
   workspace generalised to any movement. */
.labroot { height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.side { border-right: 1px solid var(--sep); background: var(--card); display: flex; flex-direction: column; min-height: 0; }
.side .brandbox { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 18px; border-bottom: 1px solid var(--sep); cursor: pointer; flex: none; }
.side .brandbox .labtag { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--ink); border: 1px solid var(--sep-2); padding: 2px 6px; }
.side nav { flex: 1; overflow-y: auto; padding: 8px 0 16px; }
.side .cat { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 16px 18px 6px; }
.side .mv { display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; align-items: center; width: 100%; border: 0; background: none; text-align: left; padding: 7px 18px; font-size: 14px; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s; position: relative; }
.side .mv:hover { background: var(--fill-2); color: var(--ink); }
.side .mv[aria-current="true"] { color: var(--ink); background: var(--fill-2); }
.side .mv[aria-current="true"]::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; background: var(--ink); }
.side .mv .n { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.side .foot { border-top: 1px solid var(--sep); padding: 12px 18px; display: flex; gap: 8px; align-items: center; flex: none; }
.mainc { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.mtop { flex: none; height: 56px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 22px; border-bottom: 1px solid var(--sep); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px); z-index: 5; }
.crumb { display: flex; align-items: center; gap: 10px; min-width: 0; }
.crumb .lab { white-space: nowrap; }
.crumb .mvname { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* home */
.home { max-width: 1480px; margin: 0 auto; padding: 46px 32px 90px; }
.home h1 { font-size: 76px; font-weight: 500; letter-spacing: -0.055em; line-height: .95; }
.home .sub { font-size: 19px; color: var(--ink-2); margin-top: 14px; max-width: 64ch; }
.home .strip { display: flex; gap: 0; margin-top: 28px; border: 1px solid var(--sep); width: fit-content; }
.home .strip div { padding: 10px 18px; border-right: 1px solid var(--sep); }
.home .strip div:last-child { border-right: 0; }
.home .strip b { display: block; font-size: 26px; font-weight: 300; letter-spacing: -0.03em; }
.home .cathd { display: flex; align-items: baseline; gap: 12px; margin: 46px 0 14px; }
.home .cathd h2 { font-size: 24px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.mcard { cursor: pointer; display: flex; flex-direction: column; transition: border-color .25s, transform .35s cubic-bezier(.16,1,.3,1); }
.mcard:hover { border-color: var(--sep-2); transform: translateY(-2px); }
.mcard .fig { position: relative; height: 190px; border-bottom: 1px solid var(--sep); background-color: var(--fill-2);
  background-image: linear-gradient(var(--sep) 1px, transparent 1px), linear-gradient(90deg, var(--sep) 1px, transparent 1px); background-size: 28px 28px; }
.mcard .fig canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mcard .fig .score { position: absolute; right: 10px; top: 10px; z-index: 2; }
.mcard .bd { padding: 14px 16px 16px; position: relative; z-index: 2; }
.mcard h3 { font-size: 19px; font-weight: 500; }
.mcard p { margin: 6px 0 12px; color: var(--ink-2); font-size: 14px; line-height: 1.45; min-height: 40px; }
.mcard .meta { display: flex; justify-content: space-between; gap: 8px; align-items: center; }

/* overview additions */
.ballinset { position: absolute; right: 16px; bottom: 74px; width: 300px; height: 190px; z-index: 4; background: color-mix(in srgb, var(--card) 92%, transparent); border: 1px solid var(--sep-2); }
.ballinset canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ktile { border-bottom: 1px solid var(--sep); padding: 14px 18px 12px; cursor: pointer; transition: background .2s; }
.ktile:hover { background: var(--fill-2); }
.ktile canvas { display: block; width: 100%; height: 30px; margin-top: 8px; }
.ktile .stv .n.pair { font-size: 24px; }

/* ball view */
.bv { max-width: 1480px; margin: 0 auto; padding: 24px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-auto-rows: min-content; gap: 12px; }
.bv .card { min-height: 0; }
.bv .cv1 { height: 470px; } .bv .cv2 { height: 290px; } .bv .cv3 { height: 300px; }
.bv canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.shots { width: 100%; border-collapse: collapse; font-size: 14px; position: relative; z-index: 2; }
.shots th { font-family: var(--mono); font-weight: 400; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); text-align: right; padding: 10px 14px; border-bottom: 1px solid var(--sep); }
.shots th:first-child, .shots td:first-child { text-align: left; }
.shots td { padding: 9px 14px; border-bottom: 1px solid var(--sep); text-align: right; font-variant-numeric: tabular-nums; }
.shots tr { cursor: pointer; } .shots tr:hover td { background: var(--fill-2); }
.shots tr[aria-selected="true"] td { background: color-mix(in srgb, var(--accent) 14%, transparent); }

/* curves: any number of graphs */
.cv-grid.auto { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 250px; }
.scrub .bands i.ev { top: 3px; width: 1px; height: 20px; background: var(--ink-3); }
body.printmode .side, body.printmode .mtop { display: none !important; }
body.printmode .labroot, body.printmode .mainc { display: block; height: auto; }
@media print { .side, .mtop { display: none !important; } .labroot, .mainc { display: block; height: auto; } }
