/* HyphenHW V5 bridge — brings the older pages (sample report, legal pages, sign-in, BoM check) onto the V5 look
   without rewriting them: V5 palette and type on top of hhw.css / light.css / the check page's own tokens,
   rounder cards and pill buttons, and room for the floating V5 menu. Load it last. */
:root{
  color-scheme:dark;
  /* hhw.css names */
  --bg:#090B0F;--bg2:#0F1319;--s1:#141920;--s2:#1B222B;--s3:#222A35;--line:rgba(255,255,255,.11);--line2:rgba(255,255,255,.07);
  --ink:#F2F4F7;--ink2:#A2ABB8;--ink3:#6B7482;--amber:#FF9A3D;--red:#F26B60;--blue:#6BA6E8;--green:#46C28E;--violet:#A891F0;
  /* check.html names */
  --bg-2:#0F1319;--surface:#141920;--surface-2:#1B222B;--line-soft:rgba(255,255,255,.07);--ink-2:#A2ABB8;--ink-3:#6B7482;
  --amber-ink:#FF9A3D;--btn-ink:#1A0E02;--tint-1:rgba(255,255,255,.02);--hdr-bg:rgba(9,11,15,.8);
  --serif:"Instrument Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  --sans:"Instrument Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  --r-card:20px;
}
html[data-theme="light"]{
  color-scheme:light;
  --bg:#EDEFF3;--bg2:#E2E6EC;--s1:#FFFFFF;--s2:#F4F5F8;--s3:#E6E9EE;--line:rgba(14,17,22,.12);--line2:rgba(14,17,22,.07);
  --ink:#0E1116;--ink2:#5B6370;--ink3:#7C8592;--amber:#E8730C;--red:#D2463B;--blue:#2F6FB5;--green:#1F8A5F;--violet:#6A4FC4;
  --bg-2:#E2E6EC;--surface:#FFFFFF;--surface-2:#F4F5F8;--line-soft:rgba(14,17,22,.07);--ink-2:#5B6370;--ink-3:#7C8592;
  --amber-ink:#C25F06;--btn-ink:#FFFFFF;--tint-1:rgba(14,17,22,.015);--hdr-bg:rgba(245,246,248,.82);
}
body.v5b{background:var(--bg);color:var(--ink);font-family:var(--sans);padding-top:84px}
body.v5b h1,body.v5b h2,body.v5b .h1,body.v5b .h2{font-family:var(--sans);font-weight:600;letter-spacing:-.035em;line-height:1.08}
body.v5b h1{font-size:clamp(30px,4.2vw,48px)}
body.v5b h2{font-size:clamp(20px,2.2vw,26px);letter-spacing:-.025em}
body.v5b h3{font-weight:600;letter-spacing:-.01em}
/* the old header is replaced by the V5 menu */
body.v5b header.top,body.v5b > header:not(.nav5){display:none}
/* cards, panels and inputs: V5 radii and quiet edges */
body.v5b .card,body.v5b .authcard,body.v5b .panel,body.v5b .box,body.v5b .kpi,body.v5b .scope,body.v5b .drop,body.v5b .tblwrap,body.v5b .banner{border-radius:var(--r-card)}
body.v5b .authcard,body.v5b .card,body.v5b .kpi{background:var(--s1);border-color:var(--line);box-shadow:0 1px 0 rgba(255,255,255,.03) inset,0 20px 50px -34px rgba(0,0,0,.6)}
html[data-theme="light"] body.v5b .authcard,html[data-theme="light"] body.v5b .card,html[data-theme="light"] body.v5b .kpi{box-shadow:0 20px 50px -36px rgba(20,30,50,.28)}
body.v5b input,body.v5b select,body.v5b textarea{border-radius:12px}
body.v5b .btn,body.v5b button.btn,body.v5b a.btn{border-radius:999px;padding:9px 18px;font-weight:500;transition:transform .14s cubic-bezier(.23,1,.32,1),background-color .16s ease}
body.v5b .btn:active{transform:scale(.97)}
body.v5b .btn:not(.ghost):not(.btn-ghost){color:var(--btn-ink,#1A0E02)}
body.v5b .btn.ghost,body.v5b .btn-ghost{background:transparent;color:var(--ink);border-color:var(--line)}
/* eyebrows: V5 pill instead of the old letter-spaced orange line */
body.v5b .eyebrow,body.v5b .authcard .eb{display:inline-flex;align-items:center;gap:8px;font:500 .8rem var(--sans);letter-spacing:0;text-transform:none;color:var(--ink2);
  background:var(--s1);padding:6px 14px;border-radius:999px;box-shadow:0 0 0 1px var(--line2) inset;margin-bottom:14px}
body.v5b .eyebrow::before,body.v5b .authcard .eb::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--amber);flex:none}
body.v5b .eyebrow::after{display:none}
/* legal pages: their three-page switcher becomes a pill row above the text */
.legalnav{display:flex;gap:4px;justify-content:center;flex-wrap:wrap;margin:8px auto 24px;padding:5px;width:fit-content;max-width:100%;border-radius:999px;background:var(--s1);box-shadow:0 0 0 1px var(--line2) inset}
.legalnav a{padding:8px 16px;border-radius:999px;text-decoration:none;color:var(--ink2);font-size:.92rem}
.legalnav a[aria-current="page"]{background:var(--ink);color:var(--bg)}
@media (max-width:560px){body.v5b{padding-top:76px}}

/* the page's own .theme-btn rules (hhw.css, light.css, the check page) would turn the day/night switch back into the
   old round icon button; restate the switch at higher specificity */
body.v5b .nav5 .tgl{display:block;position:relative;width:54px;height:30px;margin:0 0 0 12px;padding:0;border:0;border-radius:999px;background:#1C2531;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);color:inherit;transition:background-color .45s ease}
body.v5b .nav5 .tgl svg{display:block;position:absolute;top:8px;transition:opacity .3s ease}
body.v5b .nav5 .tgl .sun{left:8px;color:#fff;opacity:0}body.v5b .nav5 .tgl .moon{right:8px;color:#AEBBCB;opacity:1}
html[data-theme="light"] body.v5b .nav5 .tgl{background:#F2924F;box-shadow:none;border:0}
html[data-theme="light"] body.v5b .nav5 .tgl .sun{opacity:1}html[data-theme="light"] body.v5b .nav5 .tgl .moon{opacity:0}
body.v5b .nav5 .tgl:hover{border:0}
@media (max-width:420px){body.v5b .nav5 .tgl{width:46px;height:26px;margin-left:6px}body.v5b .nav5 .tgl svg{top:6px}body.v5b .nav5 .tgl .sun{left:6px}body.v5b .nav5 .tgl .moon{right:6px}}
@media (prefers-reduced-motion:reduce){body.v5b .nav5 .tgl,body.v5b .nav5 .tgl svg{transition:none}}
/* BoM check: segmented filter and status chips readable in both themes */
body.v5b .seg{border-radius:999px;border-color:var(--line)}
body.v5b .seg button{color:var(--ink-2)}
body.v5b .seg button[aria-pressed="true"]{background:var(--ink);color:var(--bg)}
