/* ==========================================================================
   sai.css  ·  Source Intelligence product design system  ·  Tender Audit
   Plain CSS. No build step. No external URLs. Fonts and images are local.
   Rules of the system:
     1. White ground, cool-grey bands, navy ink. Blue is for action and emphasis only.
     2. Numbers are the hero. Every derived number has a "how we got this" disclosure.
     3. No inline styles and no inline scripts anywhere (the app runs a strict CSP).
        Anything data-driven is an attribute: SVG geometry, <progress value>, data-*.
   Contents
     01 fonts            08 pills, tabs, seg     15 finding + evidence   22 landing pieces
     02 tokens           09 cards, stat tiles    16 charts
     03 base             10 working disclosure   17 sliders
     04 type             11 tables, ledger       18 callouts, empty
     05 layout           12 forms, stepper       19 loading, progress
     06 buttons, links   13 plans                20 toasts, modal
     07 shells           14 upload, checklist    21 admin review
     24 later pieces: five years, forecast levers, roadmap rows, ledger states, review desk, payment
     25 utilities (last, so a utility wins over a component)
   ========================================================================== */

/* 01 fonts --------------------------------------------------------------- */
@font-face{ font-family:'Inter'; font-style:normal; font-weight:300 700; font-display:swap;
  src:url(../fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face{ font-family:'Inter'; font-style:normal; font-weight:300 700; font-display:swap;
  src:url(../fonts/inter-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face{ font-family:'Playfair Display'; font-style:italic; font-weight:400 900; font-display:swap;
  src:url(../fonts/playfair-italic-latin.woff2) format('woff2'); }

/* 02 tokens -------------------------------------------------------------- */
:root{
  /* ink and grounds */
  --ink:#0A1130; --ink-2:#2A3150; --muted:#5A6175; --faint:#8B91A3;
  --white:#FFFFFF; --grey:#F3F5F8; --grey-2:#E9EDF3; --grey-3:#D5DAE5; --wash:#FAFBFD;
  --line:#E4E8F5; --line-2:#D3D9EA; --line-3:#B9C1D6;
  /* blue: action and emphasis only */
  --blue:#1F48FF; --blue-2:#1A3CD6; --sky:#7FA0FF;
  --tint-1:#EEF4FF; --tint-2:#E4EDFF; --tint-3:#D6E2FF;
  /* semantic: small pills and figures only */
  --amber:#B54708; --amber-bg:#FFF4E5;
  --red:#B42318;   --red-bg:#FEECEB;
  --green:#067647; --green-bg:#E7F6EC;
  /* chart ramp: one hue, validated light to dark (leak 1 to 4, or bucket 1 to 3) */
  --c-1:#0A1130; --c-2:#1F48FF; --c-3:#6485FF; --c-4:#98B0FF; --c-context:#C5CCDB;
  /* type */
  --font:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  --serif:'Playfair Display',Georgia,serif;
  --mono:ui-monospace,'SF Mono',Menlo,Consolas,monospace;
  /* shape */
  --r-xs:6px; --r-sm:8px; --r-md:10px; --r-lg:14px; --r-xl:16px; --r-2xl:24px;
  --sh-1:0 1px 2px rgba(10,17,48,.04);
  --sh-2:0 1px 2px rgba(10,17,48,.04),0 14px 30px -18px rgba(10,17,48,.16);
  --sh-3:0 1px 2px rgba(10,17,48,.04),0 22px 44px -22px rgba(10,17,48,.22);
  --ring:0 0 0 3px rgba(31,72,255,.16);
  /* motion */
  --ease:cubic-bezier(.22,.61,.36,1); --fast:150ms; --med:200ms;
  /* layout */
  --gutter:clamp(20px,5vw,56px); --pad:clamp(20px,3.2vw,40px);
  --rail:264px; --topbar:64px; --tabbar:64px;
}

/* 03 base ---------------------------------------------------------------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
html,body{ overflow-x:clip; }
body{ margin:0; background:var(--white); color:var(--ink); font-family:var(--font); font-size:16px; line-height:1.55;
  letter-spacing:-.006em; font-synthesis:none; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
h1,h2,h3,h4,h5,p,figure,blockquote,dl,dd{ margin:0; }
h1,h2,h3,h4,h5{ font-weight:650; letter-spacing:-.02em; line-height:1.2; }
:where(ul[class],ol[class]){ list-style:none; margin:0; padding:0; }
img,svg{ display:block; max-width:100%; }
img{ height:auto; }
a{ color:inherit; text-decoration:none; }
button,input,select,textarea{ font:inherit; color:inherit; letter-spacing:inherit; }
button{ cursor:pointer; }
table{ border-collapse:collapse; }
code,kbd,samp{ font-family:var(--mono); font-size:.92em; }
::selection{ background:var(--tint-3); color:var(--ink); }
:focus-visible{ outline:2px solid var(--blue); outline-offset:2px; border-radius:4px; }
[hidden]{ display:none !important; }
summary{ cursor:pointer; }
summary::-webkit-details-marker{ display:none; }

/* 04 type ---------------------------------------------------------------- */
.display{ font-size:clamp(38px,4.5vw,62px); line-height:1.04; font-weight:650; letter-spacing:-.035em; }
.title{ font-size:clamp(28px,3.1vw,42px); line-height:1.08; font-weight:650; letter-spacing:-.035em; }
.page-title{ font-size:clamp(26px,2.4vw,32px); line-height:1.12; font-weight:650; letter-spacing:-.03em; }
.section-title{ font-size:20px; line-height:1.25; font-weight:650; letter-spacing:-.022em; }
.card-title{ font-size:16.5px; line-height:1.3; font-weight:620; letter-spacing:-.015em; }
.lede{ font-size:clamp(17px,1.35vw,19px); line-height:1.6; color:var(--muted); max-width:60ch; }
.soft{ color:var(--faint); }                    /* second sentence of a headline */
.muted{ color:var(--muted); }
.small{ font-size:14px; line-height:1.5; }
.xsmall{ font-size:12.5px; line-height:1.5; }
.strong{ font-weight:600; }
.mono{ font-family:var(--mono); font-size:.9em; letter-spacing:0; }
.num{ font-variant-numeric:tabular-nums; }
.nowrap{ white-space:nowrap; }
.measure{ max-width:62ch; }
/* the one Playfair accent word a page may carry (optional; the wordmark is the main use) */
.accent{ font-family:var(--serif); font-style:italic; font-weight:600; letter-spacing:-.02em; color:var(--blue); }

/* the rule-and-label eyebrow, as on the website */
.eyebrow{ display:flex; align-items:center; gap:12px; margin:0 0 20px; font-size:13px; line-height:1.4; font-weight:600; letter-spacing:.01em; color:var(--ink); }
.eyebrow::before{ content:""; flex:none; width:22px; height:2px; background:var(--blue); }
.eyebrow b{ color:var(--blue); font-weight:600; }
.eyebrow--tight{ margin-bottom:12px; }
.band--ink .eyebrow,.panel-ink .eyebrow{ color:#fff; }
.band--ink .eyebrow::before,.panel-ink .eyebrow::before{ background:var(--sky); }
.band--ink .eyebrow b,.panel-ink .eyebrow b{ color:var(--sky); }

/* 05 layout -------------------------------------------------------------- */
.wrap{ width:100%; max-width:1240px; margin-inline:auto; padding-inline:var(--gutter); }
.wrap--narrow{ max-width:920px; }
.band{ padding-block:clamp(64px,8vw,120px); }
.band--tight{ padding-block:clamp(40px,5vw,72px); }
.band--flush-top{ padding-top:0; }
.band--grey{ background:var(--grey); }
.band--ink{ background:var(--ink); color:#fff; }
.band--ink .lede,.band--ink .muted{ color:rgba(255,255,255,.74); }
.sec-head{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(24px,5vw,72px); align-items:end; margin-bottom:clamp(36px,4.5vw,64px); }
.sec-head .lede{ max-width:46ch; }
.sec-head--stack{ grid-template-columns:minmax(0,1fr); gap:20px; max-width:720px; }
.grid{ display:grid; gap:24px; }
.grid--tight{ gap:16px; }
.grid.grid--stretch{ align-items:stretch; }
.grid-2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.grid-3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.grid-4{ grid-template-columns:repeat(4,minmax(0,1fr)); }
.grid-main{ grid-template-columns:minmax(0,2fr) minmax(0,1fr); align-items:start; }
.grid-side{ grid-template-columns:minmax(0,1fr) 380px; align-items:start; }
.stack{ display:flex; flex-direction:column; gap:16px; }
.stack-1{ gap:8px; } .stack-2{ gap:16px; } .stack-3{ gap:24px; } .stack-4{ gap:32px; } .stack-5{ gap:48px; } .stack-6{ gap:64px; }
.row{ display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.row--between{ justify-content:space-between; }
.row--top{ align-items:flex-start; }
.row--base{ align-items:baseline; }
.row--end{ justify-content:flex-end; }
.row--nowrap{ flex-wrap:nowrap; }
.grow{ flex:1 1 0; min-width:0; }
.divider{ border:0; border-top:1px solid var(--line); margin:0; }
@media (max-width:1100px){ .grid-4{ grid-template-columns:repeat(2,minmax(0,1fr)); } .grid-main,.grid-side{ grid-template-columns:minmax(0,1fr); } }
@media (max-width:860px){ .sec-head{ grid-template-columns:minmax(0,1fr); gap:16px; } .grid-3,.grid-2{ grid-template-columns:minmax(0,1fr); } }
@media (max-width:560px){ .grid-4{ grid-template-columns:minmax(0,1fr); } .grid{ gap:16px; } }

/* 06 buttons, links ------------------------------------------------------ */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:0 20px; border:1px solid transparent; border-radius:var(--r-md);
  font-size:15px; font-weight:600; line-height:1; letter-spacing:-.005em; white-space:nowrap; cursor:pointer; text-decoration:none;
  transition:background var(--fast) var(--ease),color var(--fast) var(--ease),border-color var(--fast) var(--ease),box-shadow var(--fast) var(--ease); }
.btn .ico{ width:18px; height:18px; }
.btn--primary{ background:var(--ink); border-color:var(--ink); color:#fff; }
.btn--primary:hover{ background:#1B2552; border-color:#1B2552; }
.btn--secondary{ background:#fff; border-color:rgba(10,17,48,.18); color:var(--ink); }
.btn--secondary:hover{ background:var(--grey); border-color:rgba(10,17,48,.3); }
.btn--quiet{ background:transparent; color:var(--ink-2); padding-inline:12px; }
.btn--quiet:hover{ background:var(--grey); color:var(--ink); }
.btn--light{ background:#fff; border-color:#fff; color:var(--ink); }
.btn--light:hover{ background:var(--tint-1); border-color:var(--tint-1); }
.btn--ghost-light{ background:transparent; border-color:rgba(255,255,255,.28); color:#fff; }
.btn--ghost-light:hover{ background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.5); }
.btn--danger{ background:#fff; border-color:rgba(180,35,24,.35); color:var(--red); }
.btn--danger:hover{ background:var(--red-bg); }
.btn--sm{ min-height:36px; padding:0 14px; font-size:14px; border-radius:9px; }
.btn--lg{ min-height:52px; padding:0 26px; font-size:16px; border-radius:12px; }
.btn--block{ width:100%; }
.btn--icon{ width:40px; min-height:40px; padding:0; }
.btn:disabled,.btn[aria-disabled="true"]{ opacity:.45; cursor:not-allowed; }
.btn .arrow{ display:inline-block; transition:transform var(--fast) var(--ease); }
.btn:hover .arrow{ transform:translateX(3px); }
.btn.is-loading{ position:relative; color:transparent; pointer-events:none; }
.btn.is-loading::after{ content:""; position:absolute; width:16px; height:16px; border-radius:50%; border:2px solid rgba(255,255,255,.35); border-top-color:#fff; animation:sai-spin .7s linear infinite; }
.btn--secondary.is-loading::after{ border-color:var(--tint-3); border-top-color:var(--blue); }
.btn-row{ display:flex; flex-wrap:wrap; align-items:center; gap:12px 20px; }

.link{ color:var(--blue); font-weight:500; text-decoration:underline; text-decoration-color:rgba(31,72,255,.3); text-underline-offset:3px; transition:text-decoration-color var(--fast); }
.link:hover{ text-decoration-color:var(--blue); }
.arrow-link{ display:inline-flex; align-items:center; gap:6px; font-size:14.5px; font-weight:600; color:var(--blue); }
.arrow-link::after{ content:"\2192"; font-weight:500; transition:transform var(--fast) var(--ease); }
.arrow-link:hover::after{ transform:translateX(3px); }
.band--ink .arrow-link,.panel-ink .arrow-link{ color:#fff; }

/* one stroke weight for every icon */
.ico{ width:20px; height:20px; flex:none; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.ico--sm{ width:16px; height:16px; }
.ico--lg{ width:24px; height:24px; }
.icon-tile{ display:grid; place-items:center; flex:none; width:40px; height:40px; border-radius:10px; background:var(--grey); color:var(--ink); }
.icon-tile--blue{ background:var(--tint-1); color:var(--blue); }
.icon-tile--lg{ width:56px; height:56px; border-radius:14px; }
.icon-tile--lg .ico{ width:26px; height:26px; }
.num-tile{ display:grid; place-items:center; flex:none; width:34px; height:34px; border-radius:9px; background:var(--grey); font-size:14px; font-weight:650; font-variant-numeric:tabular-nums; color:var(--ink); }
.num-tile--ink{ background:var(--ink); color:#fff; }
.num-tile--line{ background:#fff; box-shadow:inset 0 0 0 1px var(--line-2); }
.avatar{ display:grid; place-items:center; flex:none; width:32px; height:32px; border-radius:50%; background:var(--ink); color:#fff; font-size:11.5px; font-weight:600; letter-spacing:.02em; }

/* 07 shells -------------------------------------------------------------- */
/* 07a marketing header and footer */
.site-header{ position:sticky; top:0; z-index:50; background:#fff; border-bottom:1px solid var(--line); }
.site-header-in{ position:relative; display:flex; align-items:center; gap:24px; height:68px; max-width:1240px; margin-inline:auto; padding-inline:var(--gutter); }
.brand{ display:flex; align-items:center; gap:14px; flex:none; }
.brand img{ width:164px; height:auto; }
.brand-product{ padding-left:14px; border-left:1px solid var(--line-2); font-size:14px; font-weight:600; line-height:20px; white-space:nowrap; }
.site-nav{ display:flex; align-items:center; gap:28px; margin-left:auto; }
.site-nav a{ position:relative; padding-block:6px; font-size:14.5px; font-weight:500; color:var(--ink-2); }
.site-nav a::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:1px; background:var(--ink); transform:scaleX(0); transform-origin:left; transition:transform var(--med) var(--ease); }
.site-nav a:hover::after,.site-nav a[aria-current="page"]::after{ transform:scaleX(1); }
.site-header-cta{ display:flex; align-items:center; gap:8px; flex:none; }
.nav-toggle{ display:none; align-items:center; justify-content:center; width:40px; height:40px; border:0; border-radius:10px; background:none; color:var(--ink); }
.nav-toggle:hover{ background:var(--grey); }
.site-header--plain .site-header-in{ justify-content:space-between; }
@media (max-width:900px){
  .site-nav{ display:none; position:absolute; top:68px; left:0; right:0; flex-direction:column; align-items:stretch; gap:0; margin:0; padding:8px var(--gutter) 16px; background:#fff; border-bottom:1px solid var(--line); box-shadow:0 24px 40px -28px rgba(10,17,48,.3); }
  .site-nav.is-open{ display:flex; }
  .site-nav a{ padding:14px 0; border-bottom:1px solid var(--line); font-size:16px; }
  .site-nav a:last-child{ border-bottom:0; }
  .site-nav a::after{ display:none; }
  .site-header-cta{ margin-left:auto; }
  .nav-toggle{ display:inline-flex; }
}
@media (max-width:560px){ .brand img{ width:138px; } .brand-product{ display:none; } .site-header-in{ gap:12px; height:60px; } .site-nav{ top:60px; } }

.site-footer{ background:var(--ink); color:rgba(255,255,255,.72); padding-block:56px 40px; font-size:14px; }
.site-footer-in{ display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr); gap:40px; }
.site-footer img{ width:170px; }
.site-footer p{ margin-top:16px; max-width:38ch; line-height:1.6; }
.site-footer h4{ font-size:13px; font-weight:600; color:#fff; margin-bottom:12px; letter-spacing:0; }
.site-footer li{ padding:5px 0; }
.site-footer a{ color:rgba(255,255,255,.78); transition:color var(--fast); }
.site-footer a:hover{ color:#fff; }
.site-footer-base{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px 24px; margin-top:48px; padding-top:20px; border-top:1px solid rgba(255,255,255,.12); font-size:13px; color:rgba(255,255,255,.56); }
@media (max-width:760px){ .site-footer-in{ grid-template-columns:minmax(0,1fr); gap:28px; } }

/* 07b app shell: left rail, calm top bar, phone bottom bar */
.app{ display:grid; grid-template-columns:var(--rail) minmax(0,1fr); min-height:100vh; background:var(--grey); }
.rail{ background:#fff; border-right:1px solid var(--line); }
.rail-in{ position:sticky; top:0; display:flex; flex-direction:column; height:100vh; padding:22px 16px 16px; overflow-y:auto; }
.rail-brand{ display:block; padding:2px 8px 0; }
.rail-brand img{ width:152px; }
.rail-product{ display:flex; align-items:center; gap:10px; margin-top:12px; font-size:13px; font-weight:600; color:var(--ink); }
.rail-product::before{ content:""; width:18px; height:2px; background:var(--blue); }
.rail-nav{ display:grid; gap:2px; margin-top:32px; }
.rail-label{ margin:20px 0 6px; padding:0 12px; font-size:12px; font-weight:600; color:var(--faint); }
.rail-link{ display:flex; align-items:center; gap:12px; min-height:40px; padding:0 12px; border-radius:10px; font-size:14.5px; font-weight:500; color:var(--ink-2);
  transition:background var(--fast) var(--ease),color var(--fast) var(--ease); }
.rail-link .ico{ color:var(--muted); transition:color var(--fast); }
.rail-link:hover{ background:var(--grey); color:var(--ink); }
.rail-link[aria-current="page"]{ background:var(--tint-1); color:var(--ink); font-weight:600; }
.rail-link[aria-current="page"] .ico{ color:var(--blue); }
.rail-count{ margin-left:auto; font-size:12px; font-weight:600; color:var(--muted); font-variant-numeric:tabular-nums; }
.rail-done{ margin-left:auto; color:var(--green); }
.rail-foot{ display:grid; gap:8px; margin-top:auto; padding-top:24px; }
.rail-plan{ display:grid; gap:8px; padding:14px; border-radius:12px; background:var(--grey); font-size:13px; line-height:1.4; }
.rail-plan b{ font-size:13.5px; font-weight:600; }
.rail-plan span{ color:var(--muted); }
.rail-account{ display:flex; align-items:center; gap:10px; padding:8px; border-radius:10px; transition:background var(--fast); }
.rail-account:hover{ background:var(--grey); }
.rail-account b{ display:block; font-size:13.5px; font-weight:600; line-height:1.3; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rail-account small{ display:block; font-size:12px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rail-account > span{ min-width:0; }

.app-main{ display:flex; flex-direction:column; min-width:0; }
.topbar{ position:sticky; top:0; z-index:40; display:flex; align-items:center; gap:16px; height:var(--topbar); padding-inline:var(--pad); background:#fff; border-bottom:1px solid var(--line); }
.topbar-brand{ display:none; align-items:center; gap:10px; font-size:14.5px; font-weight:600; }
.topbar-brand img{ width:26px; height:26px; }
.topbar-title{ font-size:14.5px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.topbar-right{ display:flex; align-items:center; gap:20px; margin-left:auto; font-size:13.5px; color:var(--muted); white-space:nowrap; }
.topbar-right a:hover{ color:var(--ink); }
.topbar-saved{ display:inline-flex; align-items:center; gap:6px; }
.topbar-saved .ico{ width:16px; height:16px; color:var(--green); }

.page-head{ background:#fff; border-bottom:1px solid var(--line); padding:32px var(--pad) 0; }
.page-head--plain{ padding-bottom:32px; }
.page-in{ max-width:1200px; margin-inline:auto; }
.page-head-row{ display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:space-between; gap:20px 24px; }
.page-meta{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 14px; margin-top:10px; font-size:14.5px; color:var(--muted); }
.page-meta .sep{ width:3px; height:3px; border-radius:50%; background:var(--grey-3); }
.page-actions{ display:flex; flex-wrap:wrap; gap:10px; }
.page-head .tabs{ margin-top:28px; }
.page-body{ flex:1; padding:32px var(--pad) 96px; }
.page-section + .page-section{ margin-top:40px; }
.page-section[id],.band[id],.guarantee[id]{ scroll-margin-top:88px; }
.page-section-head{ display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:8px 24px; margin-bottom:16px; }
.page-section-head .eyebrow{ margin:0; }
.page-section-head p{ font-size:14px; color:var(--muted); }

.tabbar{ display:none; position:fixed; left:0; right:0; bottom:0; z-index:45; grid-template-columns:repeat(5,minmax(0,1fr)); gap:2px;
  padding:6px 8px calc(6px + env(safe-area-inset-bottom)); background:#fff; border-top:1px solid var(--line); }
.tabbar-link{ display:grid; justify-items:center; gap:3px; padding:6px 2px 4px; border:0; border-radius:10px; background:none; font-size:11px; font-weight:500; line-height:1.2; color:var(--muted); }
.tabbar-link .ico{ width:22px; height:22px; }
.tabbar-link[aria-current="page"]{ color:var(--ink); font-weight:600; }
.tabbar-link[aria-current="page"] .ico{ color:var(--blue); }
.scrim{ position:fixed; inset:0; z-index:60; background:rgba(10,17,48,.45); animation:sai-fade var(--med) var(--ease); }
.bottom-sheet{ position:fixed; left:0; right:0; bottom:0; z-index:61; max-height:82vh; overflow-y:auto; padding:10px 16px calc(20px + env(safe-area-inset-bottom)); background:#fff; border-radius:20px 20px 0 0; box-shadow:0 -24px 48px -24px rgba(10,17,48,.35); animation:sai-rise var(--med) var(--ease); }
.bottom-sheet-grip{ width:36px; height:4px; margin:0 auto 12px; border-radius:999px; background:var(--grey-3); }
.bottom-sheet .rail-link{ min-height:48px; font-size:15.5px; }
@media (max-width:1023px){
  .app{ grid-template-columns:minmax(0,1fr); }
  .rail{ display:none; }
  .tabbar{ display:grid; }
  .topbar{ height:56px; }
  .topbar-brand{ display:flex; }
  .topbar-title{ display:none; }
  .page-head{ padding-top:24px; }
  .page-body{ padding-top:24px; padding-bottom:calc(var(--tabbar) + 56px); }
}
@media (max-width:560px){ .topbar-right .hide-sm{ display:none; } .page-actions{ width:100%; } .page-actions .btn{ flex:1; } }

/* 08 pills, tabs, segmented --------------------------------------------- */
.pill{ display:inline-flex; align-items:center; gap:6px; height:22px; padding:0 8px; border-radius:6px; background:var(--grey); color:var(--ink-2); font-size:11.5px; font-weight:620; line-height:1; letter-spacing:0; white-space:nowrap; }
.pill--blue{ background:var(--tint-1); color:var(--blue-2); }
.pill--green{ background:var(--green-bg); color:var(--green); }
.pill--amber{ background:var(--amber-bg); color:var(--amber); }
.pill--red{ background:var(--red-bg); color:var(--red); }
.pill--ink{ background:var(--ink); color:#fff; }
.pill--line{ background:#fff; box-shadow:inset 0 0 0 1px var(--line-2); color:var(--muted); }
.pill--dot::before{ content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
.pill--lg{ height:26px; padding:0 10px; border-radius:7px; font-size:12.5px; }
.pill .ico{ width:12px; height:12px; stroke-width:2; }
.status-dot{ display:inline-flex; align-items:center; gap:8px; font-size:13.5px; font-weight:500; }
.status-dot::before{ content:""; width:8px; height:8px; border-radius:50%; background:var(--faint); }
.status-dot--ok::before{ background:#12A26B; }
.status-dot--warn::before{ background:#E08A1E; }
.status-dot--down::before{ background:#D4402F; }

.tabs{ display:flex; gap:28px; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.tabs::-webkit-scrollbar{ display:none; }
.tabs--line{ border-bottom:1px solid var(--line); }
.tab{ position:relative; flex:none; display:inline-flex; align-items:center; gap:6px; padding:0 0 14px; border:0; background:none; font-size:14.5px; font-weight:500; color:var(--muted); white-space:nowrap; cursor:pointer; transition:color var(--fast) var(--ease); }
.tab::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:2px; border-radius:2px 2px 0 0; background:var(--blue); transform:scaleX(0); transition:transform var(--med) var(--ease); }
.tab:hover{ color:var(--ink); }
.tab[aria-current="page"],.tab[aria-selected="true"]{ color:var(--ink); }
.tab[aria-current="page"]::after,.tab[aria-selected="true"]::after{ transform:scaleX(1); }
.tab-count{ display:inline-grid; place-items:center; min-width:20px; height:18px; padding:0 6px; border-radius:999px; background:var(--grey); font-size:11.5px; font-weight:600; color:var(--muted); font-variant-numeric:tabular-nums; }
.tab[aria-current="page"] .tab-count,.tab[aria-selected="true"] .tab-count{ background:var(--tint-2); color:var(--blue-2); }
@media (max-width:640px){ .tabs{ gap:22px; margin-inline:calc(var(--pad) * -1); padding-inline:var(--pad); } }

.seg{ display:inline-flex; gap:2px; padding:3px; border-radius:11px; background:var(--grey-2); max-width:100%; overflow-x:auto; scrollbar-width:none; }
.seg::-webkit-scrollbar{ display:none; }
.seg-item{ flex:none; display:inline-flex; align-items:center; gap:6px; height:32px; padding:0 12px; border:0; border-radius:8px; background:none; font-size:13.5px; font-weight:500; color:var(--muted); white-space:nowrap; cursor:pointer; transition:background var(--fast),color var(--fast); }
.seg-item:hover{ color:var(--ink); }
.seg-item[aria-pressed="true"],.seg-item[aria-current="true"]{ background:#fff; color:var(--ink); font-weight:600; box-shadow:0 1px 2px rgba(10,17,48,.1); }
.seg-item b{ font-weight:600; color:var(--faint); font-variant-numeric:tabular-nums; }
.filter-row{ display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-bottom:24px; }
.filter-row .select{ width:auto; min-width:180px; height:38px; font-size:14px; }

/* 09 cards and stat tiles ------------------------------------------------ */
.card{ background:#fff; border:1px solid var(--line); border-radius:var(--r-xl); box-shadow:var(--sh-1); }
.card--pad{ padding:24px; }
.card--raised{ box-shadow:var(--sh-2); }
.card--grey{ background:var(--grey); border-color:transparent; box-shadow:none; }
.card-head{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 16px; padding:20px 24px 0; }
.card-head p{ flex-basis:100%; font-size:14px; color:var(--muted); }
.card-body{ padding:20px 24px 24px; }
.card-foot{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; padding:14px 24px; border-top:1px solid var(--line); font-size:13.5px; color:var(--muted); }
.panel-ink{ background:var(--ink); color:#fff; border-radius:var(--r-2xl); padding:clamp(28px,5vw,64px); }
.panel-ink p{ color:rgba(255,255,255,.74); }

.stat{ display:flex; flex-direction:column; background:#fff; border:1px solid var(--line); border-radius:var(--r-xl); box-shadow:var(--sh-1); padding:22px 24px 0; }
.stat--flat{ padding-bottom:22px; }
.stat-top{ display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:22px; }
.stat-label{ font-size:14px; font-weight:600; color:var(--ink-2); }
.stat-value{ margin-top:16px; font-size:clamp(34px,3.1vw,44px); line-height:1; font-weight:650; letter-spacing:-.04em; font-variant-numeric:tabular-nums; color:var(--ink); }
.stat-value small{ margin-left:6px; font-size:15px; font-weight:500; letter-spacing:-.005em; color:var(--muted); }
.stat-value--confirm{ font-size:22px; letter-spacing:-.02em; color:var(--amber); }
.stat-sub{ flex:1 0 auto; margin-top:10px; font-size:14px; line-height:1.45; color:var(--muted); }   /* grows, so tiles in a row keep their disclosures in line */
.stat .working{ margin:20px -24px 0; border-top:1px solid var(--line); }
.stat--sm .stat-value{ font-size:28px; letter-spacing:-.03em; margin-top:10px; }

/* the fact strip: a quiet row of small figures */
.facts{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); background:var(--grey); border-radius:var(--r-xl); padding:8px 12px; }
.facts--white{ background:#fff; border:1px solid var(--line); box-shadow:var(--sh-1); }
.facts > div{ padding:20px 22px; }
.facts > div + div{ border-left:1px solid rgba(10,17,48,.08); }
.facts b{ display:block; font-size:clamp(24px,2.4vw,32px); line-height:1.05; font-weight:650; letter-spacing:-.035em; font-variant-numeric:tabular-nums; }
.facts span{ display:block; margin-top:8px; font-size:13.5px; line-height:1.45; color:var(--muted); }
.facts--3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
@media (max-width:760px){
  .facts,.facts--3{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .facts > div{ padding:16px 14px; }
  .facts > div:nth-child(odd){ border-left:0; }
  .facts > div:nth-child(n+3){ border-top:1px solid rgba(10,17,48,.08); }
}

.mini-facts{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; border:1px solid var(--line); border-radius:12px; background:var(--line); overflow:hidden; }
.mini-facts > div{ padding:12px 14px; background:#fff; }
.mini-facts dt{ font-size:12.5px; color:var(--muted); }
.mini-facts dd{ margin-top:2px; font-size:20px; font-weight:650; letter-spacing:-.025em; font-variant-numeric:tabular-nums; }
.guarantee-strip{ display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.3fr); align-items:center; gap:20px 48px; padding:22px 24px; }
.guarantee-strip-text{ display:grid; grid-template-columns:auto minmax(0,1fr); gap:14px; align-items:start; }
.guarantee-strip-text h2{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; }
.guarantee-strip-text p{ margin-top:4px; font-size:14px; line-height:1.5; color:var(--muted); }
.guarantee-strip .legend{ margin-top:12px; }
@media (max-width:960px){ .guarantee-strip{ grid-template-columns:minmax(0,1fr); } }

/* icon rows: the website's capability list, used for changes, stages, next steps */
.rows > li,.rows > div{ display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:16px; align-items:start; padding:18px 0; border-bottom:1px solid var(--line); }
.rows > :first-child{ padding-top:0; }
.rows > :last-child{ border-bottom:0; padding-bottom:0; }
.rows-title{ display:block; font-size:15.5px; font-weight:620; letter-spacing:-.012em; line-height:1.35; }
.rows-desc{ display:block; margin-top:4px; font-size:14px; line-height:1.5; color:var(--muted); }
.rows-meta{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:10px; }
.rows-aside{ text-align:right; white-space:nowrap; }
.rows-aside b{ display:block; font-size:17px; font-weight:650; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.rows-aside small{ display:block; font-size:12.5px; color:var(--muted); }
@media (max-width:640px){ .rows > li,.rows > div{ grid-template-columns:auto minmax(0,1fr); } .rows-aside{ grid-column:2; text-align:left; display:flex; align-items:baseline; gap:8px; } }

/* 10 "how we got this" --------------------------------------------------- */
.working > summary{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 24px; font-size:13.5px; font-weight:600; color:var(--ink-2); list-style:none; border-radius:0 0 var(--r-xl) var(--r-xl); transition:background var(--fast),color var(--fast); }
.working > summary::after,.finding > summary::after,.disclose > summary::after{ content:""; flex:none; width:8px; height:8px; margin:-3px 3px 0 0; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); transition:transform var(--med) var(--ease); }
.working[open] > summary::after,.finding[open] > summary::after,.disclose[open] > summary::after{ transform:rotate(-135deg) translate(-3px,-3px); }
.working > summary:hover{ background:var(--wash); color:var(--ink); }
.working[open] > summary{ color:var(--ink); border-radius:0; }
.working-body{ display:grid; gap:14px; padding:2px 24px 22px; font-size:13.5px; animation:sai-fade var(--med) var(--ease); }
.working--box{ border:1px solid var(--line); border-radius:12px; background:#fff; }
.working--box > summary{ padding:12px 16px; border-radius:12px; }
.working--box .working-body{ padding:2px 16px 16px; }
.working--bare > summary{ padding:0; justify-content:flex-start; gap:10px; color:var(--blue); border-radius:4px; }
.working--bare > summary:hover{ background:none; color:var(--blue-2); }
.working--bare .working-body{ padding:12px 0 0; }
.formula{ padding:12px 14px; border-radius:10px; background:var(--grey); font-family:var(--mono); font-size:12.5px; line-height:1.65; letter-spacing:0; color:var(--ink-2); overflow-wrap:anywhere; }
.formula b{ font-weight:600; color:var(--ink); }
.formula small{ display:block; font-size:11.5px; color:var(--muted); }
.kv > div{ display:flex; justify-content:space-between; align-items:baseline; gap:16px; padding:8px 0; border-bottom:1px solid var(--line); font-size:13.5px; }
.kv > div:last-child{ border-bottom:0; }
.kv dt{ min-width:0; color:var(--muted); }
.kv dt code,.kv dt .mono{ margin-right:8px; color:var(--faint); }
.kv dd{ flex:none; font-weight:560; text-align:right; font-variant-numeric:tabular-nums; }
.kv--rows > div{ align-items:flex-start; padding:10px 0; }
.kv dt small{ display:block; margin-top:3px; font-size:12.5px; line-height:1.45; color:var(--faint); overflow-wrap:anywhere; }
.kv--total > div:last-child{ border-top:1px solid var(--line-2); margin-top:-1px; }
.kv--total > div:last-child dt,.kv--total > div:last-child dd{ color:var(--ink); font-weight:650; }
.source{ display:grid; grid-template-columns:auto minmax(0,1fr); align-items:start; gap:8px; font-size:12.5px; line-height:1.5; color:var(--muted); }
.source .ico{ margin-top:2px; }
.source code{ font-size:11.5px; color:var(--ink-2); }
.tag-source{ display:inline-flex; align-items:center; height:20px; padding:0 7px; border-radius:5px; font-size:11px; font-weight:600; background:var(--grey); color:var(--muted); white-space:nowrap; }
.tag-source--yours{ background:var(--tint-1); color:var(--blue-2); }
.tag-source--assume{ background:var(--amber-bg); color:var(--amber); }
.disclose > summary{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 0; font-size:14.5px; font-weight:600; list-style:none; }
.disclose{ border-bottom:1px solid var(--line); }
.disclose-body{ padding:0 0 18px; font-size:14.5px; color:var(--ink-2); animation:sai-fade var(--med) var(--ease); }

/* 11 tables and ledger --------------------------------------------------- */
.table-card{ background:#fff; border:1px solid var(--line); border-radius:var(--r-xl); box-shadow:var(--sh-1); overflow:hidden; }
.table-scroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
.table{ width:100%; font-size:14.5px; }
.table th{ padding:14px 16px; border-bottom:1px solid var(--line); background:#fff; text-align:left; font-size:12.5px; font-weight:600; color:var(--muted); white-space:nowrap; }
.table td{ padding:15px 16px; border-bottom:1px solid var(--line); vertical-align:middle; }
.table tbody tr:last-child td{ border-bottom:0; }
.table th:first-child,.table td:first-child{ padding-left:24px; }
.table th:last-child,.table td:last-child{ padding-right:24px; }
.table .num{ text-align:right; white-space:nowrap; }
.table tbody tr{ transition:background var(--fast); }
.table tbody tr:hover{ background:var(--wash); }
.table td b,.table .strong{ font-weight:600; }
.table td small{ display:block; font-size:13px; color:var(--muted); }
.table .table-total td{ background:var(--grey); font-weight:650; }
.table .table-total:hover td{ background:var(--grey); }
.table--compact th{ padding-block:10px; }
.table--compact td{ padding-block:10px; font-size:13.5px; }
.table-note{ padding:12px 24px 16px; font-size:13px; color:var(--muted); border-top:1px solid var(--line); }
@media (max-width:640px){
  .table--stack thead{ position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .table--stack tr{ display:block; padding:14px 20px; border-bottom:1px solid var(--line); }
  .table--stack tbody tr:last-child{ border-bottom:0; }
  .table--stack td,.table--stack td:first-child,.table--stack td:last-child{ display:flex; justify-content:space-between; align-items:baseline; gap:16px; padding:4px 0; border:0; text-align:right; }
  .table--stack td::before{ content:attr(data-label); flex:none; font-size:13px; font-weight:500; color:var(--muted); text-align:left; }
  .table--stack td:first-child{ padding-bottom:8px; font-size:15.5px; font-weight:620; text-align:left; }
  .table--stack td:first-child::before{ content:none; }
  .table--stack .table-total{ background:var(--grey); }
}

.ledger{ background:#fff; border:1px solid var(--line); border-radius:var(--r-xl); box-shadow:var(--sh-1); overflow:hidden; }
.ledger-head,.ledger-row{ display:grid; grid-template-columns:76px minmax(0,1.7fr) 56px minmax(0,.8fr) 112px 104px 16px; align-items:center; gap:16px; padding:14px 24px; }
.ledger-head{ padding-block:12px; border-bottom:1px solid var(--line); font-size:12.5px; font-weight:600; color:var(--muted); }
.ledger-row{ border-bottom:1px solid var(--line); transition:background var(--fast); }
.ledger-row:last-child{ border-bottom:0; }
a.ledger-row:hover{ background:var(--wash); }
.ledger-ref{ font-family:var(--mono); font-size:12.5px; color:var(--muted); }
.ledger-name{ min-width:0; }
.ledger-name b{ display:block; font-size:14.5px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ledger-name small{ display:block; font-size:13px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ledger-year,.ledger-files{ font-size:13.5px; color:var(--muted); font-variant-numeric:tabular-nums; }
.ledger-value{ text-align:right; font-size:15px; font-weight:600; font-variant-numeric:tabular-nums; }
.ledger-chev{ color:var(--faint); }
.ledger-chev .ico{ width:16px; height:16px; }
@media (max-width:860px){
  .ledger-head{ display:none; }
  .ledger-row{ grid-template-columns:minmax(0,1fr) auto; gap:6px 16px; padding:14px 20px; }
  .ledger-ref{ grid-column:1; grid-row:1; }
  .ledger-name{ grid-column:1; grid-row:2; }
  .ledger-year,.ledger-chev{ display:none; }
  .ledger-files{ grid-column:1; grid-row:3; }
  .ledger-value{ grid-column:2; grid-row:2; }
  .ledger-outcome{ grid-column:2; grid-row:1; justify-self:end; }
}

/* 12 forms ---------------------------------------------------------------- */
.field{ display:grid; gap:6px; align-content:start; }
.label{ display:flex; justify-content:space-between; gap:12px; font-size:13.5px; font-weight:600; color:var(--ink); }
.label .opt{ font-weight:450; color:var(--muted); }
.hint{ font-size:13px; line-height:1.45; color:var(--muted); }
.input,.select,.textarea{ display:block; width:100%; height:44px; padding:0 14px; background:#fff; border:1px solid var(--line-2); border-radius:var(--r-md); font-size:15px; color:var(--ink);
  -webkit-appearance:none; appearance:none; transition:border-color var(--fast) var(--ease),box-shadow var(--fast) var(--ease); }
.textarea{ height:auto; min-height:112px; padding:12px 14px; line-height:1.5; resize:vertical; }
.input::placeholder,.textarea::placeholder{ color:var(--faint); }
.input:hover,.select:hover,.textarea:hover{ border-color:var(--line-3); }
.input:focus,.select:focus,.textarea:focus{ outline:0; border-color:var(--blue); box-shadow:var(--ring); }
.select{ padding-right:40px; background-image:url(../img/chevron-down.svg); background-repeat:no-repeat; background-position:right 14px center; background-size:12px 12px; cursor:pointer; }
.input[aria-invalid="true"],.select[aria-invalid="true"],.textarea[aria-invalid="true"]{ border-color:var(--red); }
.input[aria-invalid="true"]:focus{ box-shadow:0 0 0 3px rgba(180,35,24,.14); }
.input:disabled,.select:disabled{ background:var(--grey); color:var(--muted); cursor:not-allowed; }
.field-error{ display:flex; align-items:center; gap:6px; font-size:13px; color:var(--red); }
.field-error .ico{ width:14px; height:14px; }
.input-group{ display:flex; align-items:stretch; height:44px; background:#fff; border:1px solid var(--line-2); border-radius:var(--r-md); overflow:hidden; transition:border-color var(--fast),box-shadow var(--fast); }
.input-group:hover{ border-color:var(--line-3); }
.input-group:focus-within{ border-color:var(--blue); box-shadow:var(--ring); }
.input-group .input{ flex:1; min-width:0; height:auto; border:0; border-radius:0; box-shadow:none; }
.input--num{ text-align:right; font-variant-numeric:tabular-nums; -moz-appearance:textfield; }
.input--num::-webkit-outer-spin-button,.input--num::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.affix{ display:grid; place-items:center; flex:none; padding:0 12px; background:var(--grey); font-size:14px; font-weight:500; color:var(--muted); white-space:nowrap; }
.affix--pre{ border-right:1px solid var(--line); }
.affix--post{ border-left:1px solid var(--line); }
.input-group--sm{ height:36px; }
.input-group--sm .input{ font-size:14px; padding:0 10px; }
.form-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 16px; }
.field--full{ grid-column:1 / -1; }
.fieldset{ border:0; margin:0; padding:0; min-width:0; }
.fieldset > legend{ padding:0; margin-bottom:10px; font-size:13.5px; font-weight:600; }
@media (max-width:640px){ .form-grid{ grid-template-columns:minmax(0,1fr); } }

/* radio cards and checkbox cards */
.choices{ display:grid; gap:12px; }
.choices--2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.choices--3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.choice{ position:relative; display:block; cursor:pointer; }
.choice input{ position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; }
.choice-body{ display:flex; align-items:flex-start; gap:14px; height:100%; padding:16px 18px; background:#fff; border:1px solid var(--line-2); border-radius:var(--r-lg);
  transition:border-color var(--fast) var(--ease),background var(--fast) var(--ease),box-shadow var(--fast) var(--ease); }
.choice:hover .choice-body{ border-color:var(--line-3); }
.choice input:checked + .choice-body{ border-color:var(--blue); background:var(--tint-1); box-shadow:inset 0 0 0 1px var(--blue); }
.choice input:focus-visible + .choice-body{ outline:2px solid var(--blue); outline-offset:2px; }
.choice-mark{ flex:none; width:20px; height:20px; margin-top:2px; border:1.5px solid var(--line-3); border-radius:50%; background:#fff; transition:border var(--fast) var(--ease),background var(--fast); }
.choice input:checked + .choice-body .choice-mark{ border:6px solid var(--blue); }
.choice-mark--check{ border-radius:6px; background-position:center; background-repeat:no-repeat; background-size:12px 12px; }
.choice input:checked + .choice-body .choice-mark--check{ border:1.5px solid var(--blue); background-color:var(--blue); background-image:url(../img/check-white.svg); }
.choice-text{ flex:1; min-width:0; }
.choice-title{ display:block; font-size:15px; font-weight:600; line-height:1.35; }
.choice-desc{ display:block; margin-top:3px; font-size:13.5px; line-height:1.45; color:var(--muted); }
.choice-aside{ flex:none; margin-left:auto; text-align:right; }
.choice-price{ display:block; font-size:20px; font-weight:650; line-height:1.2; letter-spacing:-.025em; font-variant-numeric:tabular-nums; }
.choice-aside small{ display:block; font-size:12px; color:var(--muted); }
@media (max-width:760px){ .choices--2,.choices--3{ grid-template-columns:minmax(0,1fr); } }

/* chips: short single or multi answers */
.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{ position:relative; cursor:pointer; }
.chip input{ position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; }
.chip span{ display:inline-flex; align-items:center; gap:8px; height:38px; padding:0 14px; background:#fff; border:1px solid var(--line-2); border-radius:var(--r-md); font-size:14.5px; font-weight:500; white-space:nowrap;
  transition:border-color var(--fast),background var(--fast),box-shadow var(--fast); }
.chip:hover span{ border-color:var(--line-3); }
.chip input:checked + span{ border-color:var(--blue); background:var(--tint-1); box-shadow:inset 0 0 0 1px var(--blue); font-weight:600; }
.chip input:focus-visible + span{ outline:2px solid var(--blue); outline-offset:2px; }
.chip--quiet span{ border-style:dashed; color:var(--muted); }

/* checkbox and plain radio */
.check{ display:flex; align-items:flex-start; gap:12px; font-size:14.5px; line-height:1.45; cursor:pointer; }
.check input{ -webkit-appearance:none; appearance:none; flex:none; display:grid; place-items:center; width:20px; height:20px; margin:1px 0 0; background:#fff center / 12px 12px no-repeat; border:1.5px solid var(--line-3); border-radius:6px; cursor:pointer;
  transition:border var(--fast) var(--ease),background-color var(--fast); }
.check input:hover{ border-color:var(--muted); }
.check input:checked{ border-color:var(--blue); background-color:var(--blue); background-image:url(../img/check-white.svg); }
.check input[type="radio"]{ border-radius:50%; }
.check input[type="radio"]:checked{ border:6px solid var(--blue); background:#fff; }
.check a{ color:var(--blue); text-decoration:underline; text-underline-offset:3px; }

/* multi-step form */
.stepper{ display:flex; align-items:center; counter-reset:sai-step; }
.stepper li{ display:flex; align-items:center; gap:10px; flex:1 1 auto; min-width:0; font-size:13.5px; font-weight:500; color:var(--muted); white-space:nowrap; }
.stepper li::before{ counter-increment:sai-step; content:counter(sai-step); display:grid; place-items:center; flex:none; width:26px; height:26px; border:1.5px solid var(--line-2); border-radius:50%; background:#fff center / 12px 12px no-repeat; font-size:12.5px; font-weight:600; font-variant-numeric:tabular-nums; }
.stepper li::after{ content:""; flex:1; min-width:16px; height:2px; margin:0 12px 0 2px; border-radius:2px; background:var(--line); }
.stepper li:last-child{ flex:none; }
.stepper li:last-child::after{ display:none; }
.stepper li.is-done{ color:var(--ink); }
.stepper li.is-done::before{ content:""; border-color:var(--ink); background-color:var(--ink); background-image:url(../img/check-white.svg); }
.stepper li.is-done::after{ background:var(--ink); }
.stepper li.is-current{ color:var(--ink); font-weight:600; }
.stepper li.is-current::before{ border-color:var(--blue); color:var(--blue); box-shadow:0 0 0 4px var(--tint-2); }
@media (max-width:760px){ .stepper li span{ display:none; } .stepper li.is-current span{ display:inline; } .stepper li::after{ margin-inline:8px; } }
.form-card{ background:#fff; border:1px solid var(--line); border-radius:var(--r-xl); box-shadow:var(--sh-2); }
.form-card-head{ padding:28px 32px 0; }
.form-card-body{ display:grid; gap:28px; padding:28px 32px 32px; }
.form-section > h3{ font-size:16.5px; font-weight:620; letter-spacing:-.015em; margin-bottom:4px; }
.form-section > p{ font-size:14px; color:var(--muted); margin-bottom:16px; }
.form-actions{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; padding:18px 32px; border-top:1px solid var(--line); background:var(--wash); border-radius:0 0 var(--r-xl) var(--r-xl); }
.form-saved{ display:inline-flex; align-items:center; gap:8px; flex:1 1 220px; max-width:44ch; font-size:13px; line-height:1.45; color:var(--muted); }
.form-actions .btn{ flex:none; }
.form-actions .btn--primary{ margin-left:auto; }
.form-saved .ico{ width:15px; height:15px; color:var(--green); }
@media (max-width:640px){ .form-card-head{ padding:22px 20px 0; } .form-card-body{ padding:22px 20px 24px; } .form-actions{ padding:16px 20px; } .form-actions .btn--primary{ width:100%; } }

/* 13 plans --------------------------------------------------------------- */
.plans{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; align-items:stretch; }
.plan{ position:relative; display:flex; flex-direction:column; padding:28px; background:#fff; border:1px solid var(--line); border-radius:var(--r-xl); }
.plan--featured{ border:1.5px solid var(--ink); box-shadow:var(--sh-3); }
.plan-flag{ position:absolute; top:-12px; left:28px; height:24px; padding:0 10px; }
.plan-name{ font-size:19px; font-weight:650; letter-spacing:-.022em; }
.plan-for{ margin-top:6px; font-size:14.5px; line-height:1.45; color:var(--muted); min-height:42px; }
.plan-price{ display:flex; align-items:baseline; gap:8px; margin-top:22px; }
.plan-price b{ font-size:48px; line-height:1; font-weight:650; letter-spacing:-.045em; font-variant-numeric:tabular-nums; }
.plan-price span{ font-size:14px; font-weight:500; color:var(--muted); }
.plan-note{ margin-top:8px; font-size:13px; color:var(--muted); }
.plan .ticks{ flex:1; margin-top:22px; padding-top:6px; border-top:1px solid var(--line); }
.plan .btn{ width:100%; margin-top:24px; }
.ticks li{ position:relative; padding:9px 0 9px 26px; border-bottom:1px solid var(--line); font-size:14.5px; line-height:1.45; }
.ticks li:last-child{ border-bottom:0; }
.ticks li::before{ content:""; position:absolute; left:3px; top:15px; width:10px; height:6px; border-left:1.75px solid var(--blue); border-bottom:1.75px solid var(--blue); transform:rotate(-45deg); }
.ticks li b{ font-weight:600; }
.ticks--plain li{ border-bottom:0; padding-block:5px; }
.ticks--plain li::before{ top:11px; }
.band--ink .ticks li,.panel-ink .ticks li{ border-color:rgba(255,255,255,.12); color:rgba(255,255,255,.86); }
.band--ink .ticks li::before,.panel-ink .ticks li::before{ border-color:var(--sky); }
@media (max-width:960px){ .plans{ grid-template-columns:minmax(0,1fr); } .plan-for{ min-height:0; } .plan--featured{ order:-1; } }

/* order summary (start and pay) */
.summary{ background:#fff; border:1px solid var(--line); border-radius:var(--r-xl); box-shadow:var(--sh-2); overflow:hidden; }
.summary-head{ padding:22px 24px 0; }
.summary-body{ padding:16px 24px 22px; }
.summary-total{ display:flex; justify-content:space-between; align-items:baseline; gap:16px; padding:16px 24px; background:var(--grey); font-weight:650; }
.summary-total b{ font-size:26px; letter-spacing:-.03em; font-variant-numeric:tabular-nums; }
.summary-foot{ padding:18px 24px 22px; font-size:13.5px; color:var(--muted); }

/* 14 upload and checklist ------------------------------------------------ */
.dropzone{ display:grid; justify-items:center; gap:8px; padding:36px 24px; border:1.5px dashed #B9C6F2; border-radius:var(--r-xl); background:#FAFBFF; text-align:center;
  transition:border-color var(--fast) var(--ease),background var(--fast) var(--ease); }
.dropzone.is-dragover{ border-color:var(--blue); border-style:solid; background:var(--tint-1); }
.dropzone b{ margin-top:8px; font-size:15.5px; font-weight:600; }
.dropzone p{ max-width:46ch; font-size:13.5px; line-height:1.5; color:var(--muted); }
.dropzone .btn{ margin-top:8px; }
.dropzone input[type="file"]{ position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.dropzone--sm{ gap:6px; padding:22px 20px; }
.dropzone--sm b{ margin-top:4px; font-size:14.5px; }
.files{ display:grid; gap:8px; }
.file{ display:grid; grid-template-columns:40px minmax(0,1fr) auto; align-items:center; gap:4px 14px; padding:12px 14px; background:#fff; border:1px solid var(--line); border-radius:12px; }
.file-icon{ display:grid; place-items:center; width:40px; height:40px; border-radius:10px; background:var(--grey); font-family:var(--mono); font-size:10px; font-weight:600; letter-spacing:.02em; color:var(--ink-2); grid-row:1 / span 2; }
.file-name{ font-size:14px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.file-meta{ grid-column:2; font-size:12.5px; color:var(--muted); }
.file-state{ grid-column:3; grid-row:1 / span 2; display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:500; color:var(--muted); white-space:nowrap; }
.file-state .ico{ width:16px; height:16px; }
.file .bar{ grid-column:2 / -1; margin-top:6px; }
.file.is-read .file-state{ color:var(--green); }
.file.is-error{ border-color:#F0C4BF; }
.file.is-error .file-state,.file.is-error .file-meta{ color:var(--red); }
.file-remove{ display:grid; place-items:center; width:28px; height:28px; border:0; border-radius:8px; background:none; color:var(--faint); }
.file-remove:hover{ background:var(--grey); color:var(--ink); }
@media (max-width:560px){ .file{ grid-template-columns:40px minmax(0,1fr); } .file-state{ grid-column:2; grid-row:auto; } }

.checklist-item{ display:grid; grid-template-columns:32px minmax(0,1fr) auto; align-items:start; gap:6px 16px; padding:20px 0; border-bottom:1px solid var(--line); }
.checklist-item:first-child{ padding-top:0; }
.checklist-item:last-child{ border-bottom:0; padding-bottom:0; }
.checklist-mark{ display:grid; place-items:center; width:32px; height:32px; border:1.5px solid var(--line-2); border-radius:50%; background:#fff; font-size:13px; font-weight:600; color:var(--muted); font-variant-numeric:tabular-nums; }
.checklist-mark .ico{ width:16px; height:16px; stroke-width:2; }
.checklist-title{ display:block; font-size:16px; font-weight:620; letter-spacing:-.012em; line-height:1.4; }
.checklist-desc{ display:block; margin-top:2px; font-size:14px; line-height:1.5; color:var(--muted); }
.checklist-side{ display:flex; align-items:center; gap:12px; padding-top:3px; }
.checklist-item.is-done .checklist-mark{ border-color:var(--ink); background:var(--ink); color:#fff; }
.checklist-item.is-current .checklist-mark{ border-color:var(--blue); color:var(--blue); box-shadow:0 0 0 4px var(--tint-2); }
.checklist-item.is-waiting .checklist-title{ color:var(--muted); font-weight:560; }
@media (max-width:640px){ .checklist-item{ grid-template-columns:32px minmax(0,1fr); } .checklist-side{ grid-column:2; padding-top:8px; } }

/* a quiet vertical track: status of an audit, activity, stages */
.track{ position:relative; display:grid; gap:18px; }
.track li{ position:relative; display:grid; grid-template-columns:18px minmax(0,1fr) auto; gap:12px; align-items:start; font-size:14px; line-height:1.4; }
.track li::before{ content:""; width:10px; height:10px; margin:5px 4px 0; border:1.5px solid var(--line-3); border-radius:50%; background:#fff; z-index:1; }
.track li::after{ content:""; position:absolute; left:8.25px; top:19px; bottom:-21px; width:1.5px; background:var(--line); }
.track li:last-child::after{ display:none; }
.track li.is-done::before{ border-color:var(--ink); background:var(--ink); }
.track li.is-done::after{ background:var(--ink); }
.track li.is-current::before{ border-color:var(--blue); background:var(--blue); box-shadow:0 0 0 4px var(--tint-2); }
.track b{ display:block; font-weight:600; }
.track span{ display:block; font-size:13px; color:var(--muted); }
.track time,.track .track-when{ font-size:12.5px; color:var(--muted); white-space:nowrap; font-variant-numeric:tabular-nums; }

/* timeline: a line of steps (website flow); goes vertical on phones */
.timeline{ position:relative; display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:28px; padding-top:6px; }
.timeline::before{ content:""; position:absolute; left:8px; right:8px; top:14px; height:2px; background:rgba(10,17,48,.12); }
.tl-step{ position:relative; padding-top:36px; }
.tl-step::before{ content:""; position:absolute; left:0; top:0; width:18px; height:18px; border:2px solid var(--ink); border-radius:50%; background:#fff; }
.tl-step.is-done::before{ background:var(--ink); }
.tl-step.is-current::before{ border-color:var(--blue); box-shadow:0 0 0 4px var(--tint-2); }
.tl-step.is-weak::before{ border-color:var(--amber); background:var(--amber-bg); }
.tl-when{ display:block; margin-bottom:6px; font-size:12.5px; font-weight:600; color:var(--blue); }
.tl-title{ display:block; font-size:16px; font-weight:620; letter-spacing:-.015em; line-height:1.3; }
.tl-desc{ display:block; margin-top:6px; font-size:14px; line-height:1.5; color:var(--muted); }
.tl-step .pill{ margin-top:10px; }
.timeline--v{ grid-auto-flow:row; gap:26px; padding:0 0 0 34px; }
.timeline--v::before{ left:8px; right:auto; top:6px; bottom:6px; width:2px; height:auto; }
.timeline--v .tl-step{ padding-top:0; }
.timeline--v .tl-step::before{ left:-34px; top:2px; }
@media (max-width:860px){
  .timeline{ grid-auto-flow:row; gap:26px; padding:0 0 0 34px; }
  .timeline::before{ left:8px; right:auto; top:6px; bottom:6px; width:2px; height:auto; }
  .tl-step{ padding-top:0; }
  .tl-step::before{ left:-34px; top:2px; }
}
/* numbered steps on a navy band */
.steps{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; counter-reset:sai-n; }
.step{ padding:26px 24px 26px; border:1px solid rgba(255,255,255,.1); border-radius:var(--r-lg); background:rgba(255,255,255,.05); }
.step::before{ counter-increment:sai-n; content:"0" counter(sai-n); display:block; font-size:13px; font-weight:600; color:var(--sky); font-variant-numeric:tabular-nums; }
.step h3{ margin-top:14px; font-size:19px; font-weight:620; letter-spacing:-.02em; color:#fff; }
.step p{ margin-top:10px; font-size:14.5px; line-height:1.55; color:rgba(255,255,255,.74); }
.step-when{ display:block; margin-top:16px; font-size:12.5px; color:rgba(255,255,255,.52); }
.steps--light .step{ background:#fff; border-color:var(--line); }
.steps--light .step::before{ color:var(--blue); }
.steps--light .step h3{ color:var(--ink); }
.steps--light .step p{ color:var(--muted); }
.steps--light .step-when{ color:var(--faint); }
@media (max-width:860px){ .steps{ grid-template-columns:minmax(0,1fr); } }

/* 15 finding card and evidence viewer ----------------------------------- */
.finding{ background:#fff; border:1px solid var(--line); border-radius:var(--r-xl); box-shadow:var(--sh-1); overflow:hidden; }
.finding > summary{ display:grid; grid-template-columns:minmax(0,1fr) auto 16px; align-items:center; gap:20px; padding:18px 24px; list-style:none; transition:background var(--fast); }
.finding > summary:hover{ background:var(--wash); }
.finding[open] > summary{ border-bottom:1px solid var(--line); }
.finding[open] > summary:hover{ background:#fff; }
.finding > summary::after{ color:var(--faint); margin:-3px 3px 0 0; }
.finding-kicker{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; margin-bottom:8px; font-size:12.5px; color:var(--muted); }
.finding-kicker code{ font-size:12px; color:var(--ink-2); }
.finding-title{ display:block; font-size:16.5px; font-weight:620; letter-spacing:-.015em; line-height:1.35; }
.finding-amount{ text-align:right; white-space:nowrap; }
.finding-amount b{ display:block; font-size:22px; font-weight:650; line-height:1.15; letter-spacing:-.03em; font-variant-numeric:tabular-nums; }
.finding-amount small{ display:block; font-size:12.5px; color:var(--muted); }
.finding-amount--confirm b{ font-size:14px; letter-spacing:0; font-weight:600; color:var(--amber); }
.finding-body{ display:grid; grid-template-columns:minmax(0,1.12fr) minmax(0,1fr); animation:sai-fade var(--med) var(--ease); }
.finding-evidence{ padding:24px; background:var(--grey); border-right:1px solid var(--line); }
.finding-evidence > * + *{ margin-top:16px; }
.finding-detail{ display:grid; align-content:start; gap:24px; padding:24px 28px 28px; }
.finding-block h4{ margin-bottom:8px; font-size:12.5px; font-weight:600; letter-spacing:0; color:var(--muted); }
.finding-block p{ font-size:14.5px; line-height:1.6; color:var(--ink-2); }
.finding-block p + p{ margin-top:8px; }
.finding-do{ padding:16px 18px; border-radius:12px; background:var(--tint-1); }
.finding-do h4{ color:var(--blue-2); }
.finding-do p{ color:var(--ink); }
.finding-foot{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 16px; padding:13px 24px; border-top:1px solid var(--line); font-size:13px; color:var(--muted); }
.reviewed{ display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:500; color:var(--ink-2); }
.reviewed .ico{ width:16px; height:16px; color:var(--green); stroke-width:2; }
.findings{ display:grid; gap:12px; }
@media (max-width:1180px){ .finding-body{ grid-template-columns:minmax(0,1fr); } .finding-evidence{ border-right:0; border-bottom:1px solid var(--line); } }
@media (max-width:640px){
  .finding > summary{ grid-template-columns:minmax(0,1fr) 16px; gap:10px 12px; padding:16px 18px; }
  .finding-amount{ grid-column:1; grid-row:2; display:flex; align-items:baseline; gap:8px; text-align:left; }
  .finding > summary::after{ grid-column:2; grid-row:1; }
  .finding-evidence{ padding:14px; }
  .finding-detail{ padding:20px 18px 22px; }
  .finding-foot{ padding:12px 18px; }
}

.finding-main{ display:block; min-width:0; }
.leak-summary{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.25fr); align-items:center; gap:28px 56px; padding:28px; }
.leak-summary .meter{ padding:2px 0; border-radius:6px; transition:color var(--fast); }
.leak-summary a.meter:hover .meter-name{ color:var(--blue); }
.meter-name > b{ display:inline-block; width:20px; color:var(--blue); font-weight:600; }
@media (max-width:960px){ .leak-summary{ grid-template-columns:minmax(0,1fr); padding:22px 20px; } }
/* group header for a leak */
.leak-head{ display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:16px 20px; align-items:start; margin-bottom:16px; }
.leak-head h2{ font-size:22px; font-weight:650; letter-spacing:-.025em; line-height:1.2; }
.leak-head p{ margin-top:6px; max-width:64ch; font-size:14.5px; line-height:1.5; color:var(--muted); }
.leak-sums{ display:flex; flex-wrap:wrap; gap:8px 24px; justify-content:flex-end; text-align:right; }
.leak-sums div b{ display:block; font-size:20px; font-weight:650; letter-spacing:-.025em; font-variant-numeric:tabular-nums; line-height:1.2; }
.leak-sums div span{ display:block; font-size:12.5px; color:var(--muted); }
@media (max-width:760px){ .leak-head{ grid-template-columns:auto minmax(0,1fr); } .leak-sums{ grid-column:1 / -1; justify-content:flex-start; text-align:left; } }

.evidence{ margin:0; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:var(--sh-2); overflow:hidden; }
.evidence-bar{ display:flex; align-items:baseline; gap:10px; padding:10px 14px; border-bottom:1px solid var(--line); font-size:12.5px; }
.sheet-code{ flex:none; font-family:var(--mono); font-size:11.5px; font-weight:500; letter-spacing:0; color:var(--blue); white-space:nowrap; }
.evidence-name{ min-width:0; font-weight:560; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.evidence-page{ flex:none; margin-left:auto; font-family:var(--mono); font-size:11.5px; color:var(--muted); white-space:nowrap; }
.evidence-view{ position:relative; background:#fff; }
.evidence-view img{ display:block; width:100%; height:auto; }
.evidence-marks{ position:absolute; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none; }
.evidence-marks rect{ fill:rgba(31,72,255,.10); stroke:var(--blue); stroke-width:2; }
.evidence-marks circle{ fill:var(--blue); stroke:#fff; stroke-width:2; }
.evidence-marks text{ fill:#fff; font-family:var(--font); font-size:11px; font-weight:600; text-anchor:middle; }
.evidence-zoom{ padding:12px 14px 14px; border-top:1px solid var(--line); background:var(--wash); }
.evidence-zoom figcaption,.evidence-zoom-cap{ display:flex; align-items:center; gap:8px; margin-bottom:8px; font-size:12px; font-weight:600; color:var(--muted); }
.evidence-zoom .evidence-view{ border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.evidence-foot{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 12px; padding:9px 14px; border-top:1px solid var(--line); font-size:12px; color:var(--muted); }
.evidence-foot code{ font-size:11.5px; overflow-wrap:anywhere; }
.evidence-foot a{ color:var(--blue); font-weight:600; white-space:nowrap; }
.mark-key{ display:inline-grid; place-items:center; width:18px; height:18px; border-radius:50%; background:var(--blue); color:#fff; font-size:11px; font-weight:600; font-style:normal; vertical-align:1px; }

/* 16 charts ---------------------------------------------------------------- */
.chart{ margin:0; }
.chart-head{ display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:8px 16px; margin-bottom:16px; }
.chart-title{ font-size:14.5px; font-weight:600; }
.chart-sub{ font-size:13px; color:var(--muted); }
.chart svg{ display:block; width:100%; overflow:visible; }
.chart text{ font-family:var(--font); font-size:12px; fill:var(--muted); font-variant-numeric:tabular-nums; }
.chart .c-val{ fill:var(--ink); font-size:12.5px; font-weight:600; }
.chart .c-strong{ fill:var(--ink); font-weight:600; }
.c-grid{ stroke:var(--line); stroke-width:1; shape-rendering:crispEdges; }
.c-axis{ stroke:var(--line-3); stroke-width:1; shape-rendering:crispEdges; }
.c-zero{ stroke:var(--line-3); stroke-width:1; shape-rendering:crispEdges; }
.c-1{ fill:var(--c-1); } .c-2{ fill:var(--c-2); } .c-3{ fill:var(--c-3); } .c-4{ fill:var(--c-4); } .c-context{ fill:var(--c-context); }
.c-gap{ fill:#fff; }
.c-line{ fill:none; stroke:var(--blue); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; vector-effect:non-scaling-stroke; }
.c-dot{ fill:var(--blue); stroke:#fff; stroke-width:2; }
.c-hit{ outline:none; cursor:default; }
.c-band{ fill:rgba(10,17,48,0); transition:fill var(--fast); }
.c-hit:hover .c-band,.c-hit:focus-visible .c-band{ fill:rgba(10,17,48,.04); }
.legend{ display:flex; flex-wrap:wrap; gap:6px 18px; font-size:13px; color:var(--ink-2); }
.legend li,.legend span{ display:inline-flex; align-items:center; gap:8px; }
.legend i{ flex:none; width:10px; height:10px; border-radius:3px; background:var(--c-context); }
.legend .k-1{ background:var(--c-1); } .legend .k-2{ background:var(--c-2); } .legend .k-3{ background:var(--c-3); } .legend .k-4{ background:var(--c-4); }
.legend .k-line{ width:14px; height:2px; border-radius:2px; background:var(--blue); }
.legend b{ font-weight:600; font-variant-numeric:tabular-nums; color:var(--ink); }
.legend--col{ flex-direction:column; gap:0; }
.legend--col li{ justify-content:space-between; gap:16px; padding:8px 0; border-bottom:1px solid var(--line); }
.legend--col li:last-child{ border-bottom:0; }
.legend--col li > span{ gap:10px; }
.chart-table{ margin-top:14px; border-top:1px solid var(--line); }
.chart-table > summary{ display:inline-flex; align-items:center; gap:8px; padding:12px 0 0; font-size:13px; font-weight:600; color:var(--blue); list-style:none; }
.chart-table[open] > summary{ margin-bottom:10px; }
.chart-table .table th:first-child,.chart-table .table td:first-child{ padding-left:0; }
.chart-table .table th:last-child,.chart-table .table td:last-child{ padding-right:0; }
/* thin segmented bar (one whole in parts) */
.segbar{ display:block; width:100%; height:10px; border-radius:999px; overflow:hidden; background:var(--grey-2); }
.segbar svg{ display:block; width:100%; height:100%; }
.c-fee{ fill:var(--muted); }
/* meter rows: a name, a bar, a figure */
.meters{ display:grid; gap:14px; }
.meter{ display:grid; grid-template-columns:104px minmax(0,1fr) minmax(56px,auto); align-items:center; gap:16px; font-size:14px; }
.meters--long .meter{ grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(32px,auto); }
.meters--flush{ gap:0; }
.meters--2 .meter{ grid-template-columns:104px minmax(0,1fr); }
.meter-name{ min-width:0; font-weight:560; }
.meter-name small{ display:block; margin-top:2px; font-size:12.5px; font-weight:400; line-height:1.5; color:var(--muted); }
.meter-fig{ min-width:56px; text-align:right; font-weight:600; font-variant-numeric:tabular-nums; }
@media (max-width:640px){ .meters--long .meter{ grid-template-columns:minmax(0,1fr) auto; gap:6px 16px; } .meters--long .meter .bar{ grid-column:1 / -1; grid-row:2; } .meter{ grid-template-columns:84px minmax(0,1fr) minmax(56px,auto); gap:12px; } }
/* tooltip (ui.js) */
.tip{ position:fixed; z-index:90; max-width:260px; padding:8px 10px; border-radius:8px; background:var(--ink); color:#fff; font-size:12.5px; line-height:1.4; font-variant-numeric:tabular-nums; pointer-events:none; box-shadow:0 12px 24px -12px rgba(10,17,48,.5); }
.tip b{ font-weight:600; }

/* forecast: three cases side by side */
.cases{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.case{ padding:18px 20px 20px; border:1px solid var(--line); border-radius:var(--r-lg); background:#fff; }
.case--base{ border:1.5px solid var(--ink); }
.case-name{ display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:13.5px; font-weight:600; }
.case-value{ margin-top:12px; font-size:clamp(24px,2.2vw,30px); font-weight:650; letter-spacing:-.035em; line-height:1.05; font-variant-numeric:tabular-nums; }
.case-value.is-neg{ color:var(--red); }
.case-sub{ margin-top:6px; font-size:13px; color:var(--muted); }
.case .kv{ margin-top:14px; border-top:1px solid var(--line); }
@media (max-width:860px){ .cases{ grid-template-columns:minmax(0,1fr); } }

/* roadmap stages */
.stages{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.stage{ display:flex; flex-direction:column; padding:22px; border:1px solid var(--line); border-radius:var(--r-lg); background:#fff; }
.stage--first{ border:1.5px solid var(--ink); }
.stage-n{ font-size:12.5px; font-weight:600; color:var(--blue); }
.stage-name{ margin-top:10px; font-size:20px; font-weight:650; letter-spacing:-.025em; }
.stage-desc{ margin-top:6px; font-size:14.5px; line-height:1.5; color:var(--muted); }
.stage-evidence{ margin-top:16px; padding:12px 14px; border-radius:10px; background:var(--grey); font-size:13.5px; line-height:1.5; color:var(--ink-2); }
.stage-evidence b{ display:block; margin-bottom:2px; font-size:12px; font-weight:600; color:var(--muted); }
.stage-price{ margin-top:auto; padding-top:16px; font-size:14px; color:var(--muted); }
.stage-price b{ font-size:22px; font-weight:650; letter-spacing:-.03em; color:var(--ink); font-variant-numeric:tabular-nums; }
.stage .btn{ margin-top:16px; }
@media (max-width:960px){ .stages{ grid-template-columns:minmax(0,1fr); } }

/* 17 sliders --------------------------------------------------------------- */
.slider{ display:grid; gap:8px; }
.slider-head{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.slider-label{ font-size:14px; font-weight:600; }
.slider-value{ font-size:18px; font-weight:650; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.slider-foot{ display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:12px; color:var(--faint); font-variant-numeric:tabular-nums; }
.range{ --fill:50%; -webkit-appearance:none; appearance:none; display:block; width:100%; height:24px; margin:0; background:transparent; cursor:pointer; }
.range:focus{ outline:0; }
.range::-webkit-slider-runnable-track{ height:6px; border-radius:999px; background:linear-gradient(to right,var(--blue) 0,var(--blue) var(--fill),var(--grey-2) var(--fill),var(--grey-2) 100%); }
.range::-moz-range-track{ height:6px; border-radius:999px; background:var(--grey-2); }
.range::-moz-range-progress{ height:6px; border-radius:999px; background:var(--blue); }
.range::-webkit-slider-thumb{ -webkit-appearance:none; width:20px; height:20px; margin-top:-7px; border:1.5px solid var(--blue); border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(10,17,48,.18); transition:box-shadow var(--fast) var(--ease); }
.range::-moz-range-thumb{ width:18px; height:18px; border:1.5px solid var(--blue); border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(10,17,48,.18); }
.range:hover::-webkit-slider-thumb,.range:focus-visible::-webkit-slider-thumb{ box-shadow:0 0 0 5px rgba(31,72,255,.16),0 1px 3px rgba(10,17,48,.18); }
.range:focus-visible::-moz-range-thumb{ box-shadow:0 0 0 5px rgba(31,72,255,.16); }

/* 18 callouts and empty states ------------------------------------------ */
.callout{ display:grid; grid-template-columns:auto minmax(0,1fr); align-items:start; gap:4px 12px; padding:14px 16px; border-radius:12px; background:var(--grey); font-size:14.5px; line-height:1.5; color:var(--ink-2); }
.callout > .ico{ margin-top:1px; color:var(--ink-2); }
.callout b,.callout strong{ font-weight:600; color:var(--ink); }
.callout > div > * + *{ margin-top:4px; }
.callout--blue{ background:var(--tint-1); }
.callout--blue > .ico{ color:var(--blue); }
.callout--amber{ background:var(--amber-bg); }
.callout--amber > .ico{ color:var(--amber); }
.callout--green{ background:var(--green-bg); }
.callout--green > .ico{ color:var(--green); }
.callout--line{ background:#fff; border:1px solid var(--line); }
.callout--error{ background:#fff; border:1px solid #F0C4BF; }
.callout--error > .ico,.callout--error b{ color:var(--red); }
.callout .row{ margin-top:10px; }

.empty{ display:grid; justify-items:center; gap:8px; padding:56px 24px; text-align:center; }
.empty h3{ margin-top:12px; font-size:18px; font-weight:650; letter-spacing:-.02em; }
.empty p{ max-width:44ch; font-size:14.5px; line-height:1.55; color:var(--muted); }
.empty .btn{ margin-top:14px; }
.empty--sm{ padding:32px 20px; }
.ghost-rows{ display:grid; gap:8px; width:min(360px,100%); margin-bottom:8px; }
.ghost-rows i{ display:grid; grid-template-columns:44px 1fr 64px; gap:12px; align-items:center; height:44px; padding:0 14px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.ghost-rows i::before,.ghost-rows i::after{ content:""; height:8px; border-radius:4px; background:var(--grey-2); }
.ghost-rows i::after{ grid-column:3; }
.ghost-rows i:nth-child(2){ opacity:.66; }
.ghost-rows i:nth-child(3){ opacity:.33; }

/* 19 loading and progress ------------------------------------------------ */
.spinner{ display:inline-block; flex:none; width:16px; height:16px; border:2px solid var(--tint-3); border-top-color:var(--blue); border-radius:50%; animation:sai-spin .7s linear infinite; }
.spinner--lg{ width:28px; height:28px; border-width:2.5px; }
.skeleton{ display:block; border-radius:8px; background:var(--grey-2); animation:sai-pulse 1.4s ease-in-out infinite; }
.skeleton--line{ height:12px; }
.skeleton--title{ width:40%; height:20px; }
.skeleton--num{ width:56%; height:40px; border-radius:10px; }
.skeleton--w60{ width:60%; } .skeleton--w80{ width:80%; } .skeleton--w30{ width:30%; }
.bar{ -webkit-appearance:none; appearance:none; display:block; width:100%; height:6px; border:0; border-radius:999px; background:var(--grey-2); color:var(--blue); overflow:hidden; }
.bar::-webkit-progress-bar{ background:var(--grey-2); border-radius:999px; }
.bar::-webkit-progress-value{ background:var(--blue); border-radius:999px; transition:width var(--med) var(--ease); }
.bar::-moz-progress-bar{ background:var(--blue); border-radius:999px; }
.bar--ink::-webkit-progress-value{ background:var(--ink); } .bar--ink::-moz-progress-bar{ background:var(--ink); }
.bar--sky::-webkit-progress-value{ background:var(--c-4); } .bar--sky::-moz-progress-bar{ background:var(--c-4); }
.bar--green::-webkit-progress-value{ background:#12A26B; } .bar--green::-moz-progress-bar{ background:#12A26B; }
.bar--sm{ height:4px; } .bar--lg{ height:8px; }
.progress{ display:grid; gap:8px; }
.progress-top{ display:flex; justify-content:space-between; align-items:baseline; gap:12px; font-size:13.5px; }
.progress-top b{ font-weight:600; }
.progress-top span{ color:var(--muted); font-variant-numeric:tabular-nums; }
/* the "with Francesco for review" panel */
.review-wait{ display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:32px; align-items:center; padding:32px; }
@media (max-width:860px){ .review-wait{ grid-template-columns:minmax(0,1fr); padding:24px 20px; } }

/* 20 toasts and modal ---------------------------------------------------- */
.toasts{ position:fixed; right:24px; bottom:24px; z-index:80; display:grid; gap:10px; width:min(380px,calc(100vw - 32px)); }
.toasts--static{ position:static; width:auto; max-width:380px; }
.toast{ display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:start; gap:12px; padding:14px 14px 14px 16px; border-radius:12px; background:var(--ink); color:#fff; font-size:14px; line-height:1.45; box-shadow:0 18px 40px -16px rgba(10,17,48,.5); animation:sai-rise var(--med) var(--ease); }
.toast > .ico{ width:18px; height:18px; margin-top:1px; color:var(--sky); }
.toast--ok > .ico{ color:#6EE0A8; }
.toast--warn > .ico{ color:#FFB86B; }
.toast span{ color:rgba(255,255,255,.72); }
.toast a{ color:#fff; font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.toast-close{ display:grid; place-items:center; width:24px; height:24px; border:0; border-radius:6px; background:none; color:rgba(255,255,255,.6); }
.toast-close:hover{ background:rgba(255,255,255,.1); color:#fff; }
.toast-close .ico{ width:14px; height:14px; }
.toast.is-leaving{ opacity:0; transform:translateY(6px); transition:opacity var(--med),transform var(--med); }
@media (max-width:1023px){ .toasts{ left:16px; right:16px; bottom:calc(var(--tabbar) + 16px); width:auto; } .toasts--static{ left:auto; right:auto; } }

.modal{ width:min(520px,calc(100vw - 32px)); max-height:calc(100vh - 48px); padding:0; border:0; border-radius:20px; background:#fff; color:var(--ink); box-shadow:0 40px 80px -30px rgba(10,17,48,.5); overflow:auto; }
.modal::backdrop{ background:rgba(10,17,48,.45); }
.modal[open]{ animation:sai-rise var(--med) var(--ease); }
.modal[open]:not(.modal--static){ display:flex; flex-direction:column; overflow:hidden; }   /* the body scrolls, the head and the buttons stay put */
.modal > form{ display:flex; flex-direction:column; flex:1; min-height:0; }
.modal-head{ flex:none; display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:24px 24px 0; }
.modal-title{ font-size:20px; font-weight:650; letter-spacing:-.022em; line-height:1.25; }
.modal-title:focus{ outline:0; }
.modal-body{ display:grid; gap:16px; min-height:0; overflow-y:auto; padding:10px 24px 24px; font-size:15px; line-height:1.55; color:var(--ink-2); }
.modal--wide .modal-body{ gap:20px; padding-top:20px; }
.modal-foot{ flex:none; }
.modal-foot{ display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; padding:16px 24px; border-top:1px solid var(--line); background:var(--wash); }
.modal--wide{ width:min(680px,calc(100vw - 32px)); }
.modal--static{ position:static; display:block; margin:0; box-shadow:var(--sh-3); border:1px solid var(--line); }
@media (max-width:640px){ dialog.modal:not(.modal--static){ width:100%; max-width:none; margin:auto 0 0; border-radius:20px 20px 0 0; } .modal-foot .btn{ flex:1; } }

/* 21 admin review -------------------------------------------------------- */
.review-list{ background:#fff; border:1px solid var(--line); border-radius:var(--r-xl); box-shadow:var(--sh-1); overflow:hidden; }
.review{ display:grid; grid-template-columns:148px minmax(0,1fr) 150px 148px; align-items:start; gap:20px; padding:20px 24px; border-bottom:1px solid var(--line); }
.review:last-child{ border-bottom:0; }
.review-thumb{ position:relative; border:1px solid var(--line); border-radius:8px; overflow:hidden; background:var(--grey); }
.review-thumb img{ display:block; width:100%; height:auto; }
.review-kicker{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; margin-bottom:8px; font-size:12.5px; color:var(--muted); }
.review-kicker code{ font-size:12px; color:var(--ink-2); }
.review-title{ font-size:15.5px; font-weight:620; letter-spacing:-.012em; line-height:1.35; }
.review-text{ margin-top:6px; font-size:14px; line-height:1.5; color:var(--muted); }
.review-rule{ margin-top:10px; font-family:var(--mono); font-size:11.5px; color:var(--faint); }
.review-amount .label{ margin-bottom:6px; font-size:12.5px; color:var(--muted); }
.review-actions{ display:grid; gap:8px; }
.review.is-confirmed{ background:#FCFEFD; }
.review.is-aside .review-title,.review.is-aside .review-text{ color:var(--faint); }
.review.is-aside .review-thumb{ opacity:.5; }
.review-state{ display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600; }
.review-state .ico{ width:16px; height:16px; stroke-width:2; }
.review-state--ok{ color:var(--green); }
.review-state--aside{ color:var(--muted); }
@media (max-width:1100px){ .review{ grid-template-columns:112px minmax(0,1fr); } .review-amount,.review-actions{ grid-column:2; } .review-actions{ grid-auto-flow:column; justify-content:start; } }
@media (max-width:560px){ .review{ grid-template-columns:minmax(0,1fr); padding:18px 20px; } .review-thumb{ max-width:180px; } .review-amount,.review-actions{ grid-column:1; } }
.release-bar{ position:sticky; bottom:16px; z-index:30; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 24px; margin-top:24px; padding:14px 14px 14px 24px; border-radius:var(--r-xl); background:var(--ink); color:#fff; box-shadow:0 24px 48px -20px rgba(10,17,48,.55); }
.release-bar p{ font-size:14.5px; color:rgba(255,255,255,.74); }
.release-bar b{ color:#fff; font-weight:600; }
@media (max-width:1023px){ .release-bar{ bottom:calc(var(--tabbar) + 12px); } }

/* 22 landing pieces ------------------------------------------------------ */
.hero{ padding-block:clamp(48px,7vw,104px) clamp(56px,7vw,104px); }
.hero-grid{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.05fr); gap:clamp(40px,6vw,88px); align-items:center; }
.hero h1{ max-width:15ch; }
.hero .lede{ max-width:46ch; margin-top:24px; }
.hero .btn-row{ margin-top:34px; }
.hero-note{ max-width:46ch; margin-top:20px; font-size:14px; line-height:1.55; color:var(--muted); }
.hero-art{ position:relative; padding-bottom:72px; }
.hero-art .evidence{ width:90%; box-shadow:var(--sh-3); }
.hero-art .shot{ position:absolute; right:0; bottom:0; width:min(336px,56%); }
.hero-cap{ max-width:44ch; margin:18px 0 0 auto; font-size:13.5px; line-height:1.5; color:var(--muted); text-align:right; }
@media (max-width:960px){
  .hero-grid{ grid-template-columns:minmax(0,1fr); }
  .hero-art{ padding-bottom:0; }
  .hero-art .evidence{ width:auto; }
  .hero-art .shot{ position:relative; width:auto; margin:-36px 14px 0; }
  .hero-cap{ margin:16px 0 0; text-align:left; }
}
/* shot: a small product card used as a marketing visual (the website's mock cards) */
.shot{ background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--sh-3); overflow:hidden; font-size:13.5px; line-height:1.45; color:var(--ink); }
.shot--flat{ box-shadow:var(--sh-1); }
.shot-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; border-bottom:1px solid var(--line); }
.shot-head b{ display:block; font-size:13.5px; font-weight:620; }
.shot-head small{ display:block; margin-top:1px; font-size:11.5px; font-weight:450; color:var(--muted); }
.shot-body{ padding:14px 16px 16px; }
.shot-body > * + *{ margin-top:12px; }
.shot-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 16px; border-bottom:1px solid var(--line); }
.shot-row:last-child{ border-bottom:0; }
.shot-row span{ color:var(--muted); }
.shot-row b{ font-weight:600; font-variant-numeric:tabular-nums; text-align:right; }
.shot-row--total{ background:var(--grey); }
.shot-foot{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:11px 16px; border-top:1px solid var(--line); font-size:12px; color:var(--muted); }
.shot-foot b{ font-size:17px; font-weight:650; letter-spacing:-.02em; color:var(--ink); font-variant-numeric:tabular-nums; }
.shot .formula{ font-size:11.5px; padding:9px 11px; border-radius:8px; }
.shot-title{ font-size:14.5px; font-weight:620; letter-spacing:-.012em; line-height:1.35; }

/* the four leaks */
.leaks{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.leak{ display:flex; flex-direction:column; padding:clamp(22px,2.4vw,30px); background:#fff; border-radius:var(--r-xl); }
.leak-n{ font-size:13px; font-weight:600; color:var(--blue); font-variant-numeric:tabular-nums; }
.leak h3{ margin-top:10px; font-size:clamp(20px,1.8vw,23px); font-weight:650; letter-spacing:-.025em; line-height:1.2; }
.leak p{ margin-top:10px; font-size:14.5px; line-height:1.55; color:var(--muted); }
.leak .vg{ margin-top:auto; }
.leak p + .vg{ margin-top:22px; }
.leak-plus{ display:grid; grid-template-columns:auto minmax(0,1fr); gap:16px; align-items:center; margin-top:20px; padding:20px clamp(22px,2.4vw,30px); background:#fff; border-radius:var(--r-xl); }
.leak-plus b{ font-weight:620; }
.leak-plus p{ font-size:15px; color:var(--muted); }
@media (max-width:860px){ .leaks{ grid-template-columns:minmax(0,1fr); } }
/* vignettes: tiny pieces of the product that show a leak */
.vg{ display:grid; gap:0; padding:6px 14px; border:1px solid var(--line); border-radius:12px; background:var(--wash); font-size:13px; }
.vg-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px solid var(--line); }
.vg-row:last-child{ border-bottom:0; }
.vg-row span{ min-width:0; color:var(--ink-2); }
.vg-row b{ flex:none; font-weight:600; font-variant-numeric:tabular-nums; }
.vg-row small{ display:block; font-size:11.5px; color:var(--muted); }
.vg-row--gap span{ color:var(--ink); font-weight:600; }
.vg-row .bar{ flex:1; max-width:46%; }
.vg-row code{ font-size:11.5px; color:var(--muted); }

/* what you get */
.feature{ display:flex; flex-direction:column; }
.feature-visual{ display:grid; align-content:center; height:324px; padding:20px; border-radius:var(--r-xl); background:var(--grey); overflow:hidden; }
.feature h3{ margin-top:22px; font-size:21px; font-weight:650; letter-spacing:-.025em; }
.feature p{ margin-top:8px; font-size:15px; line-height:1.55; color:var(--muted); }
.feature .ticks{ margin-top:12px; }
/* proof lines */
.proof{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; border-top:1px solid var(--line-2); }
.proof > div{ padding:24px 28px 4px 0; }
.proof > div + div{ padding-left:28px; border-left:1px solid var(--line-2); }
.proof b{ display:block; font-size:clamp(26px,2.6vw,36px); font-weight:650; letter-spacing:-.035em; line-height:1.05; font-variant-numeric:tabular-nums; }
.proof span{ display:block; margin-top:10px; font-size:14.5px; line-height:1.5; color:var(--muted); }
@media (max-width:860px){ .proof{ grid-template-columns:minmax(0,1fr); } .proof > div,.proof > div + div{ padding:20px 0; border-left:0; border-bottom:1px solid var(--line-2); } .proof > div:last-child{ border-bottom:0; } }
/* guarantee */
.guarantee{ display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); gap:clamp(28px,5vw,72px); align-items:center; padding:clamp(28px,4vw,56px); background:#fff; border:1px solid var(--line); border-radius:var(--r-2xl); }
.guarantee blockquote{ font-size:clamp(22px,2.3vw,30px); font-weight:620; letter-spacing:-.028em; line-height:1.22; }
.guarantee p{ margin-top:16px; font-size:15px; color:var(--muted); max-width:52ch; }
@media (max-width:860px){ .guarantee{ grid-template-columns:minmax(0,1fr); } }
.cta-final{ text-align:center; }
.cta-final .title{ max-width:20ch; margin-inline:auto; }
.cta-final .lede{ margin:20px auto 0; max-width:52ch; }
.cta-final .btn-row{ justify-content:center; margin-top:32px; }
.cta-final .eyebrow{ justify-content:center; }

/* start page */
.start-page{ min-height:calc(100vh - 68px); }
.start{ display:grid; grid-template-columns:minmax(0,1fr) 400px; gap:clamp(24px,4vw,56px); align-items:start; }
.start-side{ position:sticky; top:92px; display:grid; gap:16px; }
@media (max-width:1020px){ .start{ grid-template-columns:minmax(0,1fr); } .start-side{ position:static; } }

/* 24 later pieces: five years, forecast, roadmap, tenders, review desk, payment ---------- */
/* a stat tile for a row of four: the figure steps down one size */
.stat--md .stat-value{ font-size:clamp(28px,2.4vw,34px); letter-spacing:-.035em; }
.stat-value .unit{ margin-left:6px; font-size:15px; font-weight:500; letter-spacing:-.005em; color:var(--muted); }
.stat-note{ margin-top:12px; padding-top:12px; border-top:1px solid var(--line); font-size:13.5px; line-height:1.5; color:var(--ink-2); }
.stat-note b{ font-weight:600; color:var(--ink); }
/* breadcrumb above a page title (admin, one tender) */
.crumb{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; margin-bottom:10px; font-size:13px; color:var(--muted); }
.crumb a{ transition:color var(--fast); }
.crumb a:hover{ color:var(--ink); }
.crumb i{ font-style:normal; color:var(--grey-3); }
.tabbar--4{ grid-template-columns:repeat(4,minmax(0,1fr)); }
/* a table cell that is still to confirm, and a quiet second line in a cell */
.table .is-na{ color:var(--faint); }
.table-key{ display:flex; flex-wrap:wrap; gap:6px 18px; padding:12px 24px 0; font-size:12.5px; color:var(--muted); }

/* forecast: what a case changes, and the lever cards */
.case-chips{ display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.case-chips .pill{ font-weight:560; }
.lever{ display:flex; flex-direction:column; }
.lever .card-body{ display:grid; gap:16px; align-content:start; flex:1; }
.lever-n{ font-size:12.5px; font-weight:600; color:var(--blue); }
.lever-fig{ display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px; }
.lever-fig b{ font-size:26px; font-weight:650; letter-spacing:-.03em; line-height:1.1; font-variant-numeric:tabular-nums; }
.lever-fig span{ font-size:13.5px; color:var(--muted); }
.lever-split{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.lever-split > div{ padding:14px 16px; border:1px solid var(--line); border-radius:12px; }
.lever-split .lever-fig b{ font-size:22px; }
.lever-or{ align-self:center; justify-self:center; font-size:12px; font-weight:600; color:var(--faint); }
.lever-split--or{ grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:stretch; }
.lever-three{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px; border:1px solid var(--line); border-radius:12px; background:var(--line); overflow:hidden; }
.lever-three > div{ padding:14px 16px; background:#fff; }
.lever-three .pill{ margin-bottom:10px; }
.lever-three b{ display:block; font-size:20px; font-weight:650; letter-spacing:-.025em; line-height:1.15; font-variant-numeric:tabular-nums; }
.lever-three span{ display:block; margin-top:4px; font-size:12.5px; line-height:1.4; color:var(--muted); }
.lever-three span.pill{ display:inline-flex; margin-top:0; font-size:11.5px; line-height:1; }
.lever-three .pill--red{ color:var(--red); } .lever-three .pill--amber{ color:var(--amber); }
.lever-three i,.lever-split span[data-fc]{ font-style:normal; font-variant-numeric:tabular-nums; }
@media (max-width:640px){ .lever-split,.lever-split--or,.lever-three{ grid-template-columns:minmax(0,1fr); } .lever-or{ justify-self:start; } }
.inputs-grid{ gap:24px 48px; align-items:start; }
.inputs-title{ margin-bottom:8px; font-size:12.5px; font-weight:600; letter-spacing:0; color:var(--muted); }
.sliders{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:26px 36px; }
@media (max-width:760px){ .sliders{ grid-template-columns:minmax(0,1fr); gap:22px; } }

/* roadmap: one full row a stage */
.road{ display:grid; gap:16px; }
.road-stage{ display:grid; grid-template-columns:292px minmax(0,1fr) minmax(0,1fr); background:#fff; border:1px solid var(--line); border-radius:var(--r-xl); box-shadow:var(--sh-1); overflow:hidden; }
.road-stage--first{ border:1.5px solid var(--ink); box-shadow:var(--sh-2); }
.road-id{ display:flex; flex-direction:column; padding:24px; background:var(--wash); border-right:1px solid var(--line); }
.road-id .stage-name{ font-size:22px; }
.road-id .stage-price{ margin-top:auto; padding-top:20px; }
.road-id .btn{ margin-top:14px; }
.road-col{ display:grid; align-content:start; gap:20px; padding:24px; min-width:0; }
.road-col + .road-col{ border-left:1px solid var(--line); }
.road-block h4{ margin-bottom:8px; font-size:12.5px; font-weight:600; letter-spacing:0; color:var(--muted); }
.road-block p{ font-size:14.5px; line-height:1.55; color:var(--ink-2); }
.road-block p + p{ margin-top:8px; }
.road-block .formula + p,.road-block p + .formula,.road-block .kv + p{ margin-top:10px; }
.road-facts{ display:grid; gap:10px; }
.road-facts li{ display:grid; gap:4px; font-size:14.5px; line-height:1.5; color:var(--ink-2); }
.road-facts .tag-source{ justify-self:start; }
.road-joins{ display:grid; gap:0; }
.road-joins li{ display:grid; grid-template-columns:24px minmax(0,1fr); gap:10px; padding:9px 0; border-bottom:1px solid var(--line); font-size:14px; line-height:1.45; }
.road-joins li:last-child{ border-bottom:0; }
.road-joins i{ font-style:normal; font-size:12.5px; font-weight:600; color:var(--blue); font-variant-numeric:tabular-nums; }
.road-joins b{ font-weight:600; }
.road-joins span{ display:block; color:var(--muted); font-size:13.5px; }
/* the eight steps of a quote, with the steps a system takes over picked out */
.proc-strip{ display:flex; flex-wrap:wrap; gap:6px; counter-reset:sai-proc; }
.proc-strip li{ counter-increment:sai-proc; display:inline-flex; align-items:center; gap:6px; height:26px; padding:0 9px; border-radius:7px; box-shadow:inset 0 0 0 1px var(--line-2); font-size:12.5px; font-weight:500; color:var(--muted); white-space:nowrap; }
.proc-strip li::before{ content:counter(sai-proc); font-size:11px; font-weight:600; color:var(--faint); font-variant-numeric:tabular-nums; }
.proc-strip li.is-on{ background:var(--tint-1); box-shadow:inset 0 0 0 1px var(--blue); color:var(--ink); font-weight:600; }
.proc-strip li.is-on::before{ color:var(--blue); }
@media (max-width:1180px){
  .road-stage{ grid-template-columns:minmax(0,1fr); }
  .road-id{ border-right:0; border-bottom:1px solid var(--line); }
  .road-col + .road-col{ border-left:0; border-top:1px solid var(--line); }
}
@media (max-width:640px){ .road-id,.road-col{ padding:20px; } }
.panel-ink--row{ display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:20px 40px; padding:clamp(24px,3.4vw,40px); border-radius:var(--r-xl); }
.panel-ink--row h2{ font-size:clamp(20px,2vw,26px); font-weight:650; letter-spacing:-.025em; line-height:1.2; color:#fff; }
.panel-ink--row p{ margin-top:8px; max-width:62ch; font-size:15px; line-height:1.55; }
@media (max-width:760px){ .panel-ink--row{ grid-template-columns:minmax(0,1fr); } .panel-ink--row .btn{ width:100%; } }

/* your tenders: year groups, file states on a row, and the open tender */
.ledger-group{ display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:4px 16px; padding:10px 24px; background:var(--wash); border-bottom:1px solid var(--line); font-size:13px; color:var(--muted); }
.ledger-group b{ font-size:14px; font-weight:650; color:var(--ink); font-variant-numeric:tabular-nums; }
.fstate{ display:inline-flex; align-items:center; gap:7px; min-width:0; font-size:13.5px; color:var(--ink-2); white-space:nowrap; }
.fstate .ico{ width:15px; height:15px; color:var(--muted); }
.fstate .spinner{ width:13px; height:13px; }
.fstate--read .ico{ color:var(--green); stroke-width:2; }
.fstate--none{ color:var(--faint); }
.fstate--error{ color:var(--red); }
.fstate--error .ico{ color:var(--red); }
.ledger-files .bar{ margin-top:6px; max-width:120px; }
.ledger-row.is-open{ background:var(--wash); border-bottom-color:transparent; }
.ledger-row.is-open .ledger-chev .ico{ transform:rotate(90deg); }
.ledger-open{ display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:24px 32px; padding:8px 24px 28px; background:var(--wash); border-bottom:1px solid var(--line); }
.ledger-open h3{ font-size:15px; font-weight:620; letter-spacing:-.012em; margin-bottom:10px; }
.ledger-open .kv > div{ font-size:14px; }
.need{ display:grid; gap:8px; margin-top:4px; }
.need li{ display:grid; grid-template-columns:18px minmax(0,1fr); gap:10px; align-items:start; font-size:14px; line-height:1.45; color:var(--ink-2); }
.need li::before{ content:""; width:14px; height:14px; margin-top:3px; border:1.5px solid var(--line-3); border-radius:50%; background:#fff center / 9px 9px no-repeat; }
.need li.is-done::before{ border-color:var(--ink); background-color:var(--ink); background-image:url(../img/check-white.svg); }
.need small{ display:block; font-size:12.5px; color:var(--muted); }
@media (max-width:1100px){ .ledger-open{ grid-template-columns:minmax(0,1fr); } }
@media (max-width:860px){ .ledger-group{ padding:10px 20px; } .ledger-open{ padding:4px 20px 24px; } .ledger-row.is-open .ledger-files{ grid-column:1 / -1; } }
.search{ position:relative; flex:1 1 200px; max-width:300px; }
.search .ico{ position:absolute; left:12px; top:50%; width:16px; height:16px; margin-top:-8px; color:var(--faint); pointer-events:none; }
.search .input{ height:38px; padding-left:36px; font-size:14px; }
.filter-row .push{ margin-left:auto; }
@media (max-width:640px){ .search{ max-width:none; flex-basis:100%; } .filter-row .push{ margin-left:0; } }

/* admin: the review desk. A queue on the left, one finding on the right. */
.desk-grid{ display:grid; grid-template-columns:minmax(300px,372px) minmax(0,1fr); gap:24px; align-items:start; }
.queue{ position:sticky; top:calc(var(--topbar) + 16px); display:flex; flex-direction:column; max-height:calc(100vh - var(--topbar) - 128px); background:#fff; border:1px solid var(--line); border-radius:var(--r-xl); box-shadow:var(--sh-1); overflow:hidden; }
.queue-head{ display:grid; gap:12px; padding:16px 16px 12px; border-bottom:1px solid var(--line); }
.queue-head .row{ gap:8px; }
.queue-head .seg{ align-self:start; }
.queue-list{ overflow-y:auto; overscroll-behavior:contain; }
.queue-label{ position:sticky; top:0; z-index:1; display:flex; justify-content:space-between; gap:12px; padding:8px 16px; background:var(--wash); border-bottom:1px solid var(--line); font-size:12px; font-weight:600; color:var(--muted); }
.queue-item{ display:grid; grid-template-columns:18px minmax(0,1fr) auto; gap:4px 10px; align-items:start; width:100%; padding:12px 16px; border:0; border-bottom:1px solid var(--line); background:#fff; text-align:left; transition:background var(--fast); }
.queue-item:hover{ background:var(--wash); }
.queue-item[aria-current="true"]{ background:var(--tint-1); box-shadow:inset 0 0 0 1.5px var(--blue); }
.queue-mark{ display:grid; place-items:center; width:18px; height:18px; margin-top:1px; border:1.5px solid var(--line-3); border-radius:50%; color:#fff; }
.queue-mark .ico{ width:11px; height:11px; stroke-width:2.5; }
.queue-item.is-confirmed .queue-mark{ border-color:var(--green); background:var(--green); }
.queue-item.is-aside .queue-mark{ border-color:var(--grey-3); background:var(--grey-2); color:var(--muted); }
.queue-kicker{ display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; font-size:12px; color:var(--muted); }
.queue-kicker code{ font-size:11.5px; color:var(--ink-2); }
.queue-title{ display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; margin-top:4px; font-size:13.5px; font-weight:560; line-height:1.4; color:var(--ink); }
.queue-item.is-aside .queue-title{ color:var(--faint); font-weight:500; }
.queue-reason{ display:block; margin-top:3px; font-size:12.5px; line-height:1.4; color:var(--muted); }
.queue-amt{ font-size:13.5px; font-weight:600; font-variant-numeric:tabular-nums; white-space:nowrap; }
.queue-amt--confirm{ font-size:12px; color:var(--amber); }
.desk{ background:#fff; border:1px solid var(--line); border-radius:var(--r-xl); box-shadow:var(--sh-1); }
.desk-head{ border-radius:var(--r-xl) var(--r-xl) 0 0; }
.desk-head{ display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px 20px; align-items:start; padding:20px 24px; border-bottom:1px solid var(--line); }
.desk-head h2{ margin-top:8px; font-size:19px; font-weight:650; letter-spacing:-.02em; line-height:1.3; }
.desk-nav{ display:flex; align-items:center; gap:6px; font-size:13px; color:var(--muted); white-space:nowrap; }
.desk-body{ display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); }
.desk-evidence{ display:grid; align-content:start; gap:16px; padding:24px; background:var(--grey); border-right:1px solid var(--line); }
.desk-form{ display:grid; align-content:start; gap:20px; padding:24px; }
.desk-engine{ padding:14px 16px; border:1px solid var(--line); border-radius:12px; background:var(--wash); }
.desk-engine h4{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:6px; font-size:12.5px; font-weight:600; letter-spacing:0; color:var(--muted); }
.desk-engine p{ font-size:14px; line-height:1.5; color:var(--ink-2); }
.desk-engine code{ font-size:11.5px; color:var(--faint); }
.desk-form .form-grid{ gap:16px 12px; }
.desk-form .textarea{ min-height:84px; font-size:14.5px; }
.desk-form .input,.desk-form .select{ font-size:14.5px; }
.desk-foot{ position:sticky; bottom:92px; z-index:20; display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:14px 24px; border-top:1px solid var(--line); background:var(--wash); border-radius:0 0 var(--r-xl) var(--r-xl); box-shadow:0 -10px 24px -18px rgba(10,17,48,.28); }   /* stays in reach, just above the release bar */
.desk-foot .push{ margin-left:auto; }
.desk-keys{ font-size:12.5px; color:var(--muted); }
.btn .kbd{ margin-left:2px; }
.kbd{ display:inline-grid; place-items:center; min-width:20px; height:20px; padding:0 5px; border:1px solid var(--line-2); border-bottom-width:2px; border-radius:5px; background:#fff; font-family:var(--mono); font-size:11px; color:var(--ink-2); }
.aside-form{ display:grid; gap:14px; padding:18px 24px 20px; border-top:1px solid var(--line); background:#fff; border-radius:0 0 var(--r-xl) var(--r-xl); animation:sai-fade var(--med) var(--ease); }
.aside-form h3{ font-size:15px; font-weight:620; letter-spacing:-.012em; }
@media (max-width:1640px){ .desk-body{ grid-template-columns:minmax(0,1fr); } .desk-evidence{ border-right:0; border-bottom:1px solid var(--line); } }
@media (max-width:1100px){
  .desk-grid{ grid-template-columns:minmax(0,1fr); }
  .desk{ order:-1; }
  .queue{ position:static; max-height:460px; }
  .desk-foot{ position:static; box-shadow:none; }
}
@media (max-width:640px){
  .desk-head{ grid-template-columns:minmax(0,1fr); padding:18px 18px 16px; }
  .desk-evidence{ padding:14px; }
  .desk-form{ padding:20px 18px; }
  .desk-foot{ padding:14px 18px; }
  .desk-foot .btn{ flex:1 1 auto; }
  .desk-foot .push{ margin-left:0; }
  .desk-keys{ display:none; }
  .aside-form{ padding:18px; }
}
.release-bar .btn[aria-disabled="true"]{ opacity:.5; }
.release-bar small{ display:block; margin-top:2px; font-size:13px; color:rgba(255,255,255,.6); }

/* payment: how to pay, and a payment that has not cleared */
.choice-ico{ display:grid; place-items:center; flex:none; width:40px; height:40px; border-radius:10px; background:var(--grey); color:var(--ink); transition:background var(--fast),color var(--fast); }
.choice input:checked + .choice-body .choice-ico{ background:#fff; color:var(--blue); }
.choice-next{ display:block; margin-top:10px; padding-top:10px; border-top:1px solid var(--line); font-size:13px; line-height:1.5; color:var(--muted); }
.choice input:checked + .choice-body .choice-next{ border-top-color:var(--tint-3); color:var(--ink-2); }
.choice-next b{ font-weight:600; color:var(--ink-2); }
.pay-state{ display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); background:#fff; border:1px solid var(--line); border-radius:var(--r-xl); box-shadow:var(--sh-2); overflow:hidden; }
.pay-state-main{ padding:32px; }
.pay-state-main h1,.pay-state-main h2{ margin-top:20px; font-size:clamp(22px,2.2vw,28px); font-weight:650; letter-spacing:-.028em; line-height:1.15; }
.pay-state-main p{ margin-top:12px; max-width:48ch; font-size:15.5px; line-height:1.6; color:var(--ink-2); }
.pay-state-main .btn-row{ margin-top:24px; gap:10px; }
.pay-state-main p.xsmall{ margin-top:18px; font-size:13px; line-height:1.55; color:var(--muted); }
.pay-state-side{ display:grid; align-content:start; gap:20px; padding:32px; background:var(--wash); border-left:1px solid var(--line); }
.pay-state-side h3{ font-size:12.5px; font-weight:600; letter-spacing:0; color:var(--muted); }
.icon-tile--amber{ background:var(--amber-bg); color:var(--amber); }
.icon-tile--green{ background:var(--green-bg); color:var(--green); }
.icon-tile--red{ background:var(--red-bg); color:var(--red); }
@media (max-width:860px){ .pay-state{ grid-template-columns:minmax(0,1fr); } .pay-state-side{ border-left:0; border-top:1px solid var(--line); } .pay-state-main,.pay-state-side{ padding:24px 20px; } }

/* 25 utilities ----------------------------------------------------------- */
.sr-only{ position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.mt-0{ margin-top:0; } .mt-1{ margin-top:8px; } .mt-2{ margin-top:16px; } .mt-3{ margin-top:24px; } .mt-4{ margin-top:32px; } .mt-5{ margin-top:48px; } .mt-6{ margin-top:64px; }
.mb-0{ margin-bottom:0; } .mb-1{ margin-bottom:8px; } .mb-2{ margin-bottom:16px; } .mb-3{ margin-bottom:24px; } .mb-4{ margin-bottom:32px; }
.text-right{ text-align:right; } .text-center{ text-align:center; }
.w-full{ width:100%; }
.c-ink{ color:var(--ink); } .c-blue{ color:var(--blue); } .c-green{ color:var(--green); } .c-amber{ color:var(--amber); } .c-red{ color:var(--red); }
.show-sm{ display:none; }
@media (max-width:640px){ .hide-sm{ display:none !important; } .show-sm{ display:initial; } }
@media (max-width:1023px){ .hide-md{ display:none !important; } }

@keyframes sai-spin{ to{ transform:rotate(360deg); } }
@keyframes sai-pulse{ 0%,100%{ opacity:1; } 50%{ opacity:.55; } }
@keyframes sai-fade{ from{ opacity:0; } to{ opacity:1; } }
@keyframes sai-rise{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }
@media (prefers-reduced-motion:reduce){ *,*::before,*::after{ animation-duration:.01ms !important; transition-duration:.01ms !important; scroll-behavior:auto !important; } }
@media print{ .rail,.topbar,.tabbar,.site-header,.site-footer,.toasts{ display:none !important; } .app{ display:block; background:#fff; } .page-body{ padding:0; } }
