/* The client portal. A frame (side bar, top bar, footer) around a work
   area, all dark unless the user chose light (the server puts the theme's
   class on <html>): navy in the dark theme, light surfaces with a subtle
   border in the light one, the brand gradient only as accents. No scripts
   and no inline styles: the CSP allows neither, so every state is a class.
   The admin pages have their own stylesheets; nothing here reaches them. */

@font-face { font-family: "Geist"; src: url("fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("fonts/dm-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("fonts/dm-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  /* The frame, dark: the website's navy */
  --f-bg: #0a0f1f;
  --f-bg2: #080c19;
  --f-line: #222c4a;
  --f-line-strong: #5f6fa6;
  --f-text: #eef1f8;
  --f-body: #c5cce0;
  --f-muted: #9aa5c2;
  --f-accent: #8fb6ff;
  --f-hover: #121a31;
  --f-current: #18233f;
  --f-track: #162039;
  --f-knob: #8fb6ff;
  --f-knob-icon: #0a0f1f;
  --f-shadow: 0 12px 32px rgba(0, 0, 0, .5);
  --g1: #2178b7;
  --g2: #2e489f;
  --g3: #784d9f;
  --g4: #e074ae;
  /* The work area, dark */
  --bg: #0a0f1f;
  --surface: #10172b;
  --surface-2: #162039;
  --line: #243052;
  --line-strong: #5f6fa6;
  --text: #eef1f8;
  --body: #c5cce0;
  --muted: #9aa5c2;
  --accent: #8fb6ff;
  --accent-soft: #15213f;
  --btn-a: #2a68c4;
  --btn-b: #6a4bb0;
  --danger: #b42318;
  --pass: #5fd4a0;
  --pass-bg: #0f2a22;
  --pass-mark: #3cc48a;
  --fail: #ff9b91;
  --fail-bg: #34161a;
  --fail-mark: #f2766b;
  --review: #f3c063;
  --review-bg: #2f2512;
  --review-mark: #e7ad3d;
  --resub: #b9a6ff;
  --resub-bg: #221d3d;
  --info: #a9c4ff;
  --info-bg: #15213f;
  --neutral: #b8c0d4;
  --neutral-bg: #1b2440;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  /* Accents for marks, gauges and charts; never text on their own, but
     ok-text and amber-text, made for it */
  --v-cyan: #22d3ee;
  --v-blue: #3b82f6;
  --v-violet: #a78bfa;
  --v-pink: #f472b6;
  --v-green: #34d399;
  --v-amber: #fbbf24;
  --v-coral: #fb7185;
  --v-indigo: #818cf8;
  --ok-text: #5fe0ad;
  --amber-text: #fbbf24;
  /* Cards: the menu's groups and Home's */
  --card: #0f1730;
  --card-2: #141e3c;
  --card-line: #23315c;
  --card-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .6);
  /* A count where work waits: amber, or pink for links */
  --pill-warn-bg: #f59e0b;
  --pill-warn-fg: #1a1205;
  --pill-hot-bg: #f472b6;
  --pill-hot-fg: #2a0a1a;
  /* The channels in Home's chart */
  --c-portal: #22d3ee;
  --c-api: #a78bfa;
  --c-link: #f472b6;
  --c-other: #8b95b0;
  --font: "DM Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "Cascadia Mono", Consolas, "SF Mono", monospace;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --hit: 44px;
  --bar-h: 72px;
  /* The blue side bar, the phone menu and the band */
  --side-bg: #0a3d91;
  --side-text: #ffffff;
  --side-label: #a9ccf5;
  --side-hover: #1f4f9c;
  --side-current: #2e5aa3;
  --side-focus: #ffffff;
  --side-hot-bg: #f9a8d4;
  --side-hot-fg: #3b0a24;
  --band-a: #0a3d91;
  --band-b: #1565c0;
  --band-muted: #d6e6fa;
  color-scheme: dark;
}
:root.light {
  /* The frame, light: white bars, a pale footer, a subtle border */
  --f-bg: #ffffff;
  --f-bg2: #eef2f8;
  --f-line: #dfe5ee;
  --f-line-strong: #77849a;
  --f-text: #0a1f45;
  --f-body: #2f3b52;
  --f-muted: #536b8a;
  --f-accent: #1565c0;
  --f-hover: #f0f4fa;
  --f-current: #e9f0fd;
  --f-track: #eef2f8;
  --f-knob: #1565c0;
  --f-knob-icon: #ffffff;
  --f-shadow: 0 12px 32px rgba(16, 24, 40, .16);
  /* The work area */
  --bg: #f4f7fc;
  --surface: #ffffff;
  --surface-2: #ebf3ff;
  --line: #d0e2f0;
  --line-strong: #7088a8;
  --text: #0a1f45;
  --body: #1f3557;
  --muted: #536b8a;
  --accent: #1565c0;
  --accent-soft: #ebf3ff;
  --btn-a: #0a3d91;
  --btn-b: #1565c0;
  --danger: #b42318;
  --pass: #127556;
  --pass-bg: #e6f5ef;
  --pass-mark: #198a66;
  --fail: #a32d2d;
  --fail-bg: #fdecec;
  --fail-mark: #a32d2d;
  --review: #8a5a12;
  --review-bg: #fdf3e3;
  --review-mark: #ba7517;
  --resub: #5a3ca6;
  --resub-bg: #efeafc;
  --info: #0a3d91;
  --info-bg: #ebf3ff;
  --neutral: #3e4a60;
  --neutral-bg: #edf0f5;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06);
  --v-cyan: #0891b2;
  --v-blue: #2563eb;
  --v-violet: #7c3aed;
  --v-pink: #db2777;
  --v-green: #059669;
  --v-amber: #d97706;
  --v-coral: #e11d48;
  --v-indigo: #4f46e5;
  --ok-text: #047857;
  --amber-text: #b45309;
  --card: #ffffff;
  --card-2: #f3f6fb;
  --card-line: #e0e6f0;
  --card-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 26px -16px rgba(16, 24, 40, .22);
  --pill-warn-bg: #f59e0b;
  --pill-warn-fg: #1a1205;
  --pill-hot-bg: #be185d;
  --pill-hot-fg: #ffffff;
  --c-portal: #0891b2;
  --c-api: #7c3aed;
  --c-link: #db2777;
  --c-other: #6b7590;
  /* The blue side bar, the phone menu and the band */
  --side-bg: #0a3d91;
  --side-text: #ffffff;
  --side-label: #a9ccf5;
  --side-hover: #1f4f9c;
  --side-current: #2e5aa3;
  --side-focus: #ffffff;
  --side-hot-bg: #f9a8d4;
  --side-hot-fg: #3b0a24;
  --band-a: #0a3d91;
  --band-b: #1565c0;
  --band-muted: #d6e6fa;
  color-scheme: light;
}
/* The role's colours, a cue only (the server checks what each may do): cyan
   to blue for a member, violet to pink for a client admin. Verisafe's staff
   have their own console. Without one-blue the buttons, the language pill
   and the pager take the role's pair; ra and rb mark the current page,
   icons and edges. */
.role-member { --ra: var(--v-cyan); --rb: var(--v-blue); }
.role-admin { --ra: var(--v-violet); --rb: var(--v-pink); }
:root:not(.one-blue) .role-member { --btn-a: #0e7490; --btn-b: #1d4ed8; }
:root:not(.one-blue) .role-admin { --btn-a: #6d28d9; --btn-b: #be185d; }
.role-member, .role-admin { --rsoft: color-mix(in srgb, var(--ra) 14%, transparent); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--body); font: 14px/1.5 var(--font); }
h1, h2, h3, h4 { color: var(--text); letter-spacing: -.01em; }
h1 { font-size: 30px; line-height: 36px; margin: 0 0 var(--s1); font-weight: 700; }
h2 { font-size: 20px; line-height: 26px; margin: var(--s6) 0 var(--s3); font-weight: 700; }
h3 { font-size: 15px; line-height: 22px; margin: 0 0 var(--s3); font-weight: 600; }
p { margin: 0 0 var(--s3); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
b, strong { color: var(--text); font-weight: 600; }
code { font-family: var(--mono); font-size: 12.5px; color: var(--text); background: var(--surface-2); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.subtle { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.wrap { overflow-wrap: anywhere; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 30; background: var(--surface); color: var(--text); padding: 8px 12px; border-radius: var(--r-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.anchor { scroll-margin-top: var(--s4); }

/* Proportional bars without inline styles: a fixed width scale, rounded to
   5 % by the server (the dashboard's quota). Charts are server-drawn SVG. */
.bar { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--g1), var(--g3)); }
.bar.warn > i { background: var(--review-mark); }
.bar.bad > i { background: var(--fail-mark); }
.w0 { width: 0%; } .w5 { width: 5%; } .w10 { width: 10%; } .w15 { width: 15%; } .w20 { width: 20%; }
.w25 { width: 25%; } .w30 { width: 30%; } .w35 { width: 35%; } .w40 { width: 40%; } .w45 { width: 45%; }
.w50 { width: 50%; } .w55 { width: 55%; } .w60 { width: 60%; } .w65 { width: 65%; } .w70 { width: 70%; }
.w75 { width: 75%; } .w80 { width: 80%; } .w85 { width: 85%; } .w90 { width: 90%; } .w95 { width: 95%; }
.w100 { width: 100%; }

/* Logo and wordmark */
.logo { display: block; height: 26px; width: auto; }
.wordmark { display: inline-flex; align-items: baseline; color: var(--f-text); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.wordmark .v { background: linear-gradient(135deg, var(--g1), var(--g3) 60%, var(--g4)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* The frame. Links and focus in the bars and the footer use the frame's own
   accent; the blue side bar and phone menu get theirs after the menu's rules. */
.topbar, .pfoot, .solo-tools { --accent: var(--f-accent); color: var(--f-body); }
.shell { flex: 1 0 auto; display: grid; grid-template-columns: 264px minmax(0, 1fr); }
/* The side bar stays in view as the page scrolls: it sticks in its own
   column, as tall as the screen or the page if that's shorter, so its foot
   is always at the bottom; a long menu scrolls inside it. */
.side { position: sticky; top: 0; align-self: start; height: min(100vh, 100%); overflow-y: auto; padding: 0 0 8px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; min-height: var(--hit); padding: 0 8px; text-decoration: none; }
.brand small { color: var(--f-muted); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
/* The logo on a white band as tall as the top bar, in either theme; its
   focus ring inside it, where the page's edge and the blue would hide it */
.side .brand { display: flex; min-height: var(--bar-h); padding: 0 22px; border-bottom: 1px solid var(--f-line); }
.side .brand:focus-visible { outline-offset: -4px; border-radius: 0; }
/* The foot: the organization and, with the tools in the menu, Sign out */
.side-foot { display: flex; align-items: center; gap: 10px; padding: 12px 10px 4px; border-top: 1px solid var(--side-hover); color: var(--side-label); }
.side .side-foot { margin: auto 14px 0; }
.menu-pop .side-foot { margin-top: 12px; }
.foot-org { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; margin: 0; font-size: 13px; line-height: 1.35; }
.foot-org .ic { flex: none; width: 18px; height: 18px; }
.side-foot .signout { flex: none; display: flex; }
/* The menu: a card per group, its title with the group's icon */
.side nav, .menu-pop nav { display: grid; gap: 10px; }
.side nav { padding: 0 14px; }
.nav-card { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--r-lg); padding: 8px; }
.nav-group { display: flex; align-items: center; gap: 8px; margin: 2px 4px 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--f-muted); }
.nav-group .ic { flex: none; width: 24px; height: 24px; padding: 4px; border-radius: 7px; color: #fff; stroke-width: 2.2; }
.g-main .nav-group .ic { background: linear-gradient(135deg, #0891b2, #2563eb); }
.g-compliance .nav-group .ic { background: linear-gradient(135deg, #059669, #0891b2); }
.g-settings .nav-group .ic { background: linear-gradient(135deg, #7c3aed, #db2777); }
/* The new look on the blue bar, whichever colours the buttons take: no
   card, no group icon, the title a small-capital label */
.side .nav-card, .menu-pop .nav-card { background: none; border: 0; border-radius: 0; padding: 0; }
.side .nav-group, .menu-pop .nav-group { margin: 6px 10px; font-size: 11px; font-variant-caps: all-small-caps; text-transform: none; letter-spacing: .1em; }
.side .nav-group .ic, .menu-pop .nav-group .ic { display: none; }
.nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav a { position: relative; display: flex; align-items: center; gap: 10px; min-height: var(--hit); padding: 6px 10px; border-radius: 8px; color: var(--f-body); text-decoration: none; font-weight: 500; font-size: 13.5px; }
.nav a .ic { flex: none; width: 18px; height: 18px; color: var(--f-muted); }
.nav a .lbl { flex: 1 1 auto; min-width: 0; }
.nav a:hover { background: var(--f-hover); color: var(--f-text); }
.nav a:hover .ic { color: var(--f-text); }
.nav a[aria-current] { background: var(--rsoft); color: var(--f-text); font-weight: 600; }
.nav a[aria-current] .ic { color: var(--ra); }
.nav a[aria-current]::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 2px; background: linear-gradient(var(--ra), var(--rb)); }
/* Where work waits: a count, amber, or pink for verification links */
.nav-count { flex: none; min-width: 22px; padding: 0 7px; border-radius: 10px; font-size: 11.5px; font-weight: 700; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.nav-count.warn { background: var(--pill-warn-bg); color: var(--pill-warn-fg); }
.nav-count.hot { background: var(--pill-hot-bg); color: var(--pill-hot-fg); }
/* The blue side bar and phone menu: white text and white focus, the logo's
   band keeping the frame's. After the menu's rules, which it would tie with;
   the current entry shows by its white bar and weight, not its shade alone. */
.side, .menu-pop { --accent: var(--side-focus); background: var(--side-bg); color: var(--side-text); }
.side-logo { --accent: var(--f-accent); background: #ffffff; }
.side .nav a, .menu-pop .nav a { color: var(--side-text); }
.side .nav a .ic, .menu-pop .nav a .ic { color: var(--side-label); }
.side .nav a:hover, .menu-pop .nav a:hover { color: var(--side-text); background: var(--side-hover); }
.side .nav a:hover .ic, .menu-pop .nav a:hover .ic { color: var(--side-text); }
.side .nav a[aria-current], .menu-pop .nav a[aria-current] { color: var(--side-text); background: var(--side-current); font-weight: 600; }
.side .nav a[aria-current] .ic, .menu-pop .nav a[aria-current] .ic { color: var(--side-text); }
.side .nav a[aria-current]::before, .menu-pop .nav a[aria-current]::before { background: var(--side-text); }
.side .nav-group, .menu-pop .nav-group { color: var(--side-label); }
.side .nav-count.hot, .menu-pop .nav-count.hot { background: var(--side-hot-bg); color: var(--side-hot-fg); }
.side-foot b { color: var(--side-text); overflow-wrap: anywhere; }
.side-foot .icon-button { min-width: var(--hit); min-height: var(--hit); padding: 0; color: var(--side-text); background: transparent; border: 1px solid var(--side-label); }
.side-foot .icon-button:hover { background: var(--side-hover); border-color: var(--side-text); filter: none; }
.side-foot .icon-button .ic { width: 18px; height: 18px; }
.work { display: flex; flex-direction: column; min-width: 0; background: radial-gradient(900px 340px at 92% -8%, color-mix(in srgb, var(--rb) 11%, transparent), transparent 70%), radial-gradient(700px 300px at 18% -6%, color-mix(in srgb, var(--ra) 9%, transparent), transparent 70%), var(--bg); }
.topbar { position: relative; min-height: var(--bar-h); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); padding: 10px 24px; background: var(--f-bg); border-bottom: 1px solid var(--f-line); }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--ra), var(--rb)); }
.topbar .brand { flex-direction: row; align-items: center; padding: 0; }
.topbar .tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
.topbar button.secondary, .menu-button { background: transparent; color: var(--f-text); border-color: var(--f-line-strong); }
.topbar button.secondary:hover, .menu-button:hover { background: var(--f-hover); border-color: var(--f-text); }
/* The search box, on every signed-in page, and New verification beside it:
   they take the room the bar has */
.top-main { display: flex; align-items: center; gap: var(--s2) var(--s3); flex: 1 1 0; }
.top-search { display: flex; align-items: center; gap: 8px; flex: 1 1 240px; max-width: 880px; min-width: 200px; }
.new-button { flex: none; position: relative; }
.top-search .field { position: relative; display: flex; flex: 1 1 auto; min-width: 0; }
.top-search .field .ic { position: absolute; left: 11px; top: 50%; translate: 0 -50%; width: 17px; height: 17px; color: var(--f-muted); pointer-events: none; }
.top-search input { flex: 1 1 auto; width: 100%; min-width: 0; min-height: var(--hit); padding: 5px 10px 5px 36px; border-radius: 10px; color: var(--f-text); background: var(--f-track); border-color: var(--f-line-strong); }
.top-search input::placeholder { color: var(--f-muted); }
.top-search input:focus-visible { border-color: var(--ra); box-shadow: 0 0 0 3px var(--rsoft); }
.top-link { display: inline-flex; align-items: center; gap: 6px; min-height: var(--hit); padding: 4px 8px; border-radius: 8px; color: var(--f-text); font-size: 13.5px; font-weight: 500; text-decoration: none; }
.top-link:hover { color: var(--f-text); background: var(--f-hover); }
.top-link[aria-current] { background: var(--rsoft); }
.top-link .ic { flex: none; width: 17px; height: 17px; }
/* Who is signed in, and as what */
.who { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 260px; margin: 0 0 0 auto; color: var(--f-text); line-height: 1.2; }
.who .avatar { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); }
.who-text { display: grid; min-width: 0; }
.who-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--f-text); }
.role-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--f-muted); text-transform: capitalize; }
.role-badge .ic { flex: none; width: 12px; height: 12px; color: var(--ra); }
/* The phone menu is an HTML popover. A link to another page leaves with it;
   a link to an anchor on the page already open (Nouvelle vérification on the
   dashboard) would leave it over the page, so portal.js closes it then. */
.menu-pop { width: min(300px, 90vw); margin: var(--bar-h) 16px auto auto; padding: 12px; border: 1px solid var(--f-line); border-radius: var(--r); box-shadow: var(--f-shadow); }
.menu-pop::backdrop { background: rgba(4, 7, 15, .55); }

/* The language switch: FR | EN, a pill under the language in use. The page
   in use isn't a link. */
.lang-switch { position: relative; isolation: isolate; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 2px; border: 1px solid var(--f-line-strong); border-radius: 999px; background: var(--f-track); }
.lang-switch .pill { position: absolute; z-index: -1; top: 2px; bottom: 2px; left: 2px; width: calc(50% - 2px); border-radius: 999px; background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); }
.lang-switch.en .pill { translate: 100% 0; }
.lang-switch > a, .lang-switch > span { display: inline-flex; align-items: center; justify-content: center; min-width: var(--hit); min-height: var(--hit); padding: 2px 10px; border-radius: 999px; font: 700 12px/1 var(--font); letter-spacing: .06em; text-decoration: none; color: var(--f-body); }
.lang-switch > [aria-current] { color: #fff; }
.lang-switch > a:hover { color: var(--f-text); background: var(--f-hover); }
.lang-switch > a:focus-visible { outline-offset: 1px; border-radius: 999px; }

/* The theme switch: a track with a knob that slides under the moon (dark)
   or the sun (light); the icons stay put and the one in use sits on the
   knob. */
.theme-switch { display: inline-flex; align-items: center; min-height: var(--hit); padding: 0; border: 0; border-radius: 999px; background: none; color: var(--f-muted); text-decoration: none; cursor: pointer; }
.theme-switch:hover { background: none; filter: none; color: var(--f-text); }
.theme-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 999px; }
.theme-switch .track { position: relative; display: block; width: 54px; height: 28px; border: 1px solid var(--f-line-strong); border-radius: 999px; background: var(--f-track); }
.theme-switch:hover .track { border-color: var(--f-text); }
.theme-switch .knob { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--f-knob); box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.light .theme-switch .knob { translate: 26px 0; }
.theme-switch svg { position: absolute; top: 6px; width: 14px; height: 14px; color: var(--f-muted); }
.theme-switch .moon { left: 6px; }
.theme-switch .sun { right: 6px; }
.dark .theme-switch .moon, .light .theme-switch .sun { color: var(--f-knob-icon); }
.theme-form { display: inline-flex; }
/* Above the sign-in card */
.solo-tools { display: flex; align-items: center; justify-content: center; gap: var(--s3); }
main.page { flex: 1 0 auto; width: 100%; max-width: 1480px; padding: 24px 24px 48px; }
main.solo { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s4); padding: 40px 16px; background: radial-gradient(500px 300px at 80% 0%, rgba(120, 77, 159, .16), transparent 70%), var(--bg); }

/* Page head */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s3) var(--s5); margin-bottom: var(--s5); }
.page-head > div:first-child { min-width: 0; max-width: 100%; }
.page-head h1 { overflow-wrap: anywhere; }
.page-head p { margin: 0; }
.eyebrow { margin: 0 0 var(--s1); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.lede { color: var(--muted); max-width: 820px; margin-top: var(--s1); }
/* Lines short enough to read on a wide screen; any narrower rule still
   wins (the lede, an empty state). */
:where(main.page) p { max-width: 90ch; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: var(--hit); margin-bottom: var(--s2); font-size: 12.5px; color: var(--muted); text-decoration: none; }
.back::before { content: "\2039"; content: "\2039" / ""; font-size: 15px; }
.back:hover { color: var(--text); text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }

/* Cards, sections and grids */
.section { margin-top: var(--s6); }
.section > h2 { margin: 0 0 var(--s3); }
.panel, .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--shadow); min-width: 0; }
.panel { margin-bottom: var(--s4); }
.panel > h2, .panel > h3, .card > h2 { margin: 0 0 var(--s3); font-size: 15px; line-height: 22px; font-weight: 600; }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s1) var(--s3); margin-bottom: var(--s3); }
.panel-head h2 { margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; }
.panel-head p { margin: 0; font-size: 12.5px; color: var(--muted); }
.panel p:last-child { margin-bottom: 0; }
.grid { display: grid; gap: var(--s4); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid > .panel { margin-bottom: 0; }
.grid + .grid, .grid + .panel { margin-top: var(--s4); }
.split { display: grid; gap: var(--s4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split.wide-left { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.split > .panel, .split > .table-wrap { margin-bottom: 0; }
.upload { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--s4); margin-bottom: var(--s5); }
.upload > .panel { margin-bottom: 0; }

/* Key figures */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); gap: 10px; margin: 0 0 var(--s4); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; min-width: 0; }
.tile .label { font-size: 12px; line-height: 16px; color: var(--muted); font-weight: 600; }
.tile .value { margin-top: 2px; font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tile .sub { font-size: 12px; color: var(--muted); }
.tile .value .of { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.tile .bar { margin: 8px 0 6px; }
.tiles.figures { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
/* A tile that wants a look: an amber edge. */
.tile.needs { border-color: color-mix(in srgb, var(--review-mark) 55%, var(--line)); box-shadow: inset 3px 0 0 var(--review-mark); }
.tile.alert { border-color: color-mix(in srgb, var(--fail-mark) 55%, var(--line)); box-shadow: inset 3px 0 0 var(--fail-mark); }
.live .tiles { grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); }
.live .tile .value { font-size: 34px; }
.quota { margin: 0 0 var(--s3); }
.quota:last-child { margin-bottom: 0; }
.quota .line { display: flex; justify-content: space-between; gap: var(--s3); font-size: 13px; }

/* Charts: charts.py draws the SVG, these colour it */
svg.chart { width: 100%; height: auto; display: block; font-family: var(--font); }
svg.chart .gridline { stroke: var(--line); }
svg.chart .tick { fill: var(--muted); }
svg.chart .label { fill: var(--text); }
svg.chart .bar { fill: var(--btn-a); }
svg.chart .track { fill: var(--surface-2); }
svg.chart .mark-likely_authentic, svg.chart .mark-good { fill: var(--pass-mark); }
svg.chart .mark-needs_review, svg.chart .mark-warn { fill: var(--review-mark); }
svg.chart .mark-likely_tampered, svg.chart .mark-bad { fill: var(--fail-mark); }
svg.chart .mark-pass { fill: var(--pass-mark); }
svg.chart .mark-review { fill: var(--review-mark); }
svg.chart .mark-fail { fill: var(--fail-mark); }
svg.chart .mark-resubmit { fill: var(--resub); }
svg.chart.share { margin: 8px 0 12px; }
svg.chart.meter { height: 8px; margin: 6px 0 4px; }
svg.chart.w760 { max-width: 988px; }
.legend { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
.legend li { display: flex; align-items: center; gap: 6px; min-height: 24px; }
.legend li > a { display: inline-flex; align-items: center; min-height: var(--hit); }
.swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; background: var(--neutral); }
.swatch.likely_authentic { background: var(--pass-mark); }
.swatch.needs_review { background: var(--review-mark); }
.swatch.likely_tampered { background: var(--fail-mark); }

/* Status chips: a glyph, a word and a colour, so none depends on colour
   alone. The glyph is decoration; screen readers read the word. */
.tag { display: inline-flex; align-items: center; gap: 5px; min-height: 22px; padding: 1px 9px 1px 7px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 20px; white-space: nowrap; color: var(--neutral); background: var(--neutral-bg); border: 1px solid color-mix(in srgb, var(--neutral) 25%, transparent); }
.tag::before { content: none; width: 14px; text-align: center; font-size: 11px; font-weight: 800; }
.tag.likely_authentic, .tag.genuine, .tag.pass, .tag.delivered, .tag.webhook_delivered, .tag.live, .tag.assurance, .tag.good, .tag.portal_login { color: var(--pass); background: var(--pass-bg); border-color: color-mix(in srgb, var(--pass) 30%, transparent); }
.tag.likely_tampered, .tag.forged, .tag.fail, .tag.bad, .tag.risk, .tag.portal_login_failed { color: var(--fail); background: var(--fail-bg); border-color: color-mix(in srgb, var(--fail) 30%, transparent); }
.tag.needs_review, .tag.unsure, .tag.review, .tag.warn, .tag.pending, .tag.paused, .tag.requeued, .tag.webhook_failed, .tag.wh.failed { color: var(--review); background: var(--review-bg); border-color: color-mix(in srgb, var(--review) 30%, transparent); }
.tag.resubmit { color: var(--resub); background: var(--resub-bg); border-color: color-mix(in srgb, var(--resub) 30%, transparent); }
.tag.processing, .tag.in_progress, .tag.received, .tag.started, .tag.reviewed, .tag.concluded, .tag.dispute_opened, .tag.dispute_answered, .tag.info { color: var(--info); background: var(--info-bg); border-color: color-mix(in srgb, var(--info) 30%, transparent); }
.tag.likely_authentic::before, .tag.genuine::before, .tag.pass::before, .tag.delivered::before, .tag.webhook_delivered::before, .tag.live::before, .tag.completed::before, .tag.portal_login::before { content: "\2713"; content: "\2713" / ""; }
.tag.likely_tampered::before, .tag.forged::before, .tag.fail::before { content: "\2715"; content: "\2715" / ""; }
.tag.needs_review::before, .tag.unsure::before, .tag.review::before, .tag.warn::before { content: "\25D0"; content: "\25D0" / ""; }
.tag.resubmit::before, .tag.pending::before, .tag.requeued::before { content: "\21BB"; content: "\21BB" / ""; }
.tag.queued::before { content: "\25CB"; content: "\25CB" / ""; }
.tag.failed::before, .tag.webhook_failed::before, .tag.portal_login_failed::before, .tag.bad::before, .tag.paused::before { content: "!"; content: "!" / ""; }
.tag.revoked::before, .tag.expired::before, .tag.deleted::before { content: "\2013"; content: "\2013" / ""; }
.tag.received::before, .tag.started::before, .tag.reviewed::before, .tag.concluded::before, .tag.dispute_opened::before, .tag.dispute_answered::before, .tag.info::before { content: "\00B7"; content: "\00B7" / ""; }
.tag.api::before, .tag.portal::before, .tag.link::before { display: none; }
.tag.api, .tag.portal, .tag.link { padding-left: 9px; }
/* In progress: a dot that pulses a few times, then stays still */
.tag.processing::before, .tag.in_progress::before { content: ""; flex: none; width: 7px; height: 7px; margin: 0 3px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out 3; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; vertical-align: 1px; background: var(--pass-mark); }
.dot.live { animation: pulse 1.6s ease-in-out 3; }
@keyframes pulse { 50% { opacity: .35; } }

/* Filters as links, a count beside each */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 var(--s3); padding: 0; list-style: none; }
.chips a { display: inline-flex; align-items: center; gap: 6px; min-height: var(--hit); padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--body); font-size: 12.5px; text-decoration: none; }
.chips a:hover { border-color: var(--line-strong); color: var(--text); }
.chips a[aria-current="true"] { border-color: var(--accent); color: var(--text); font-weight: 600; box-shadow: inset 0 0 0 1px var(--accent); }
.chips b { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.chips .tag { min-height: 0; padding-top: 0; padding-bottom: 0; white-space: normal; }

/* Tables: they scroll in their own box, never the page, with a scrollbar
   that shows; a tall one scrolls down there too, its head row kept in view,
   and what gets focus is scrolled clear of that row. */
.table-wrap { position: relative; overflow: auto; max-height: min(78vh, 980px); overscroll-behavior-x: contain; scroll-padding-top: 44px; scrollbar-width: thin; scrollbar-color: var(--line-strong) var(--surface-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: var(--s4); }
.table-wrap::-webkit-scrollbar { width: 10px; height: 10px; }
.table-wrap::-webkit-scrollbar-track { background: var(--surface-2); }
.table-wrap::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; border: 2px solid var(--surface-2); }
.table-wrap:focus-visible { outline-offset: 2px; border-radius: var(--r); }
.panel .table-wrap { margin-bottom: 0; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 13px; }
thead th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); font-size: 11.5px; line-height: 16px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 600; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.ref { min-width: 19ch; max-width: 260px; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
td.detail { color: var(--muted); max-width: 520px; overflow-wrap: anywhere; }
td.wrap { overflow-wrap: anywhere; }
td code { white-space: nowrap; overflow-wrap: normal; }
td .sub { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; }
td .sub code { background: transparent; padding: 0; color: var(--muted); font-size: 12px; }
table.compact th, table.compact td { padding: 7px 12px; }
.row-link { position: relative; display: inline-flex; align-items: center; color: var(--text); font-weight: 600; text-decoration: none; }
/* The 44 px target is drawn over the cell, not made of the link's own height, so a row with a second line under its link stays short. */
.row-link::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: var(--hit); translate: 0 -50%; }
.row-link:hover { text-decoration: underline; }
.row-link + .sub { position: relative; }
.kind { width: 130px; font-weight: 600; }
.kind.risk { color: var(--fail); }
.kind.assurance { color: var(--pass); }
.kind.info { color: var(--muted); }
/* The pager under a table */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); margin: 0 0 var(--s4); font-size: 12.5px; color: var(--muted); }
.pager .where { margin: 0 auto 0 0; font-variant-numeric: tabular-nums; }
.pager .pages { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.pager .pages a, .pager .pages span { display: inline-flex; align-items: center; justify-content: center; min-width: var(--hit); min-height: var(--hit); padding: 4px 9px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--text); background: var(--surface); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.pager .pages a:hover { background: var(--surface-2); }
.pager .pages .now { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); }
.pager .pages .off span { color: var(--muted); border-color: var(--line); background: transparent; }
.pager .pages .gap { min-width: 16px; text-align: center; }
.pager .jump { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pager .jump label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.pager .jump input { width: 5.5em; min-height: var(--hit); padding: 4px 8px; }
.pager .form-note { flex: 1 1 100%; margin: 0; }

/* Empty states */
.empty { color: var(--muted); margin: 0; }
.empty-state { text-align: center; padding: 26px 16px; color: var(--muted); }
.empty-state::before { content: ""; display: block; width: 40px; height: 40px; margin: 0 auto 10px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(135deg, color-mix(in srgb, var(--g1) 25%, transparent), color-mix(in srgb, var(--g3) 25%, transparent)); }
.empty-state p { margin: 0 auto var(--s3); max-width: 480px; }
.empty-state p:last-child { margin-bottom: 0; }

/* Notices */
.callout, .warning, p.error, .notice { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; margin: 0 0 var(--s4); background: var(--surface); color: var(--body); }
.warning, .notice { background: var(--review-bg); border-color: color-mix(in srgb, var(--review-mark) 45%, transparent); color: var(--review); }
p.error { background: var(--fail-bg); border-color: color-mix(in srgb, var(--fail-mark) 45%, transparent); color: var(--fail); }
.callout.info { background: var(--info-bg); border-color: color-mix(in srgb, var(--info) 30%, transparent); }
.callout.warning { color: var(--review); }
.callout.warning b { color: inherit; }
.callout p:last-child { margin-bottom: 0; }
.working { display: flex; align-items: center; gap: var(--s3); }

/* The final decision, for clients who get one, and the verdict */
/* A result: the score and what it says, in neutral colours (no verdict). */
.result-card { padding: 14px 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); margin: 0 0 var(--s4); }
.result-card p { margin: 0 0 6px; }
.result-card p:last-child { margin-bottom: 0; }
.result-card .score-line { font-size: 16px; line-height: 22px; color: var(--text); font-variant-numeric: tabular-nums; }
.result-card .yours { margin-top: 8px; color: var(--text); }
.decision { padding: 14px 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); margin: 0 0 var(--s4); }
.decision p { margin: 0; }
.decision .decision-name { font-size: 18px; line-height: 24px; font-weight: 700; color: var(--text); }
.decision .decision-meaning { margin-top: 2px; }
.decision .score-line, .verdict .score-line { margin-top: 8px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.decision.pass { border-color: color-mix(in srgb, var(--pass-mark) 45%, var(--line)); background: linear-gradient(90deg, var(--pass-bg), var(--surface) 70%); }
.decision.fail { border-color: color-mix(in srgb, var(--fail-mark) 45%, var(--line)); background: linear-gradient(90deg, var(--fail-bg), var(--surface) 70%); }
.decision.review { border-color: color-mix(in srgb, var(--review-mark) 45%, var(--line)); background: linear-gradient(90deg, var(--review-bg), var(--surface) 70%); }
.decision.resubmit { border-color: color-mix(in srgb, var(--resub) 45%, var(--line)); background: linear-gradient(90deg, var(--resub-bg), var(--surface) 70%); }
.decision.pass .decision-name::before { content: "\2713  "; content: "\2713  " / ""; color: var(--pass); }
.decision.fail .decision-name::before { content: "\2715  "; content: "\2715  " / ""; color: var(--fail); }
.decision.review .decision-name::before { content: "\25D0  "; content: "\25D0  " / ""; color: var(--review); }
.decision.resubmit .decision-name::before { content: "\21BB  "; content: "\21BB  " / ""; color: var(--resub); }
/* Without the final decision the verdict is the answer: the same card, its
   glyph, word and colour. */
.verdict { padding: 14px 18px; border-radius: var(--r-lg); margin: 0 0 var(--s4); border: 1px solid var(--line); background: var(--surface); }
.verdict p { margin: 0; }
.verdict .verdict-name { font-size: 18px; line-height: 24px; font-weight: 700; color: var(--text); }
.verdict .verdict-name .label { font-weight: 700; color: var(--text); }
.verdict .meaning { margin-top: 2px; max-width: 720px; }
.verdict.likely_authentic { border-color: color-mix(in srgb, var(--pass-mark) 45%, var(--line)); background: linear-gradient(90deg, var(--pass-bg), var(--surface) 70%); }
.verdict.needs_review { border-color: color-mix(in srgb, var(--review-mark) 45%, var(--line)); background: linear-gradient(90deg, var(--review-bg), var(--surface) 70%); }
.verdict.likely_tampered { border-color: color-mix(in srgb, var(--fail-mark) 45%, var(--line)); background: linear-gradient(90deg, var(--fail-bg), var(--surface) 70%); }
.verdict.likely_authentic .verdict-name::before { content: "\2713  "; content: "\2713  " / ""; color: var(--pass); }
.verdict.needs_review .verdict-name::before { content: "\25D0  "; content: "\25D0  " / ""; color: var(--review); }
.verdict.likely_tampered .verdict-name::before { content: "\2715  "; content: "\2715  " / ""; color: var(--fail); }
.plan p { max-width: 760px; }
.verdict-guide { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.verdict-guide li { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--s3); align-items: baseline; font-size: 13px; }

/* Label and value pairs */
.facts { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); margin: 0; }
.facts dt, .facts dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 12.5px; padding-right: var(--s5); }
.facts dd { color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 0; }

/* Section heads with a link, the breadcrumb */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s1) var(--s3); margin-bottom: var(--s3); }
.section-head h2 { margin: 0; }
.section-head a { display: inline-flex; align-items: center; min-height: var(--hit); font-size: 13px; font-weight: 600; }
.h-section { margin: var(--s5) 0 var(--s3); font-size: 15px; line-height: 22px; font-weight: 600; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: var(--s2); font-size: 12.5px; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: var(--hit); color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs span:last-child { color: var(--body); overflow-wrap: anywhere; }

/* This month's results broken down */
.split-card svg.chart.share { margin: 4px 0 10px; }
.tally { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tally li { display: grid; grid-template-columns: minmax(0, 1fr) auto 3.6em; align-items: center; gap: var(--s3); min-height: 30px; font-size: 13px; }
.tally .tag { justify-self: start; white-space: normal; }
.tally a { display: inline-flex; align-items: center; justify-content: flex-end; min-height: var(--hit); min-width: var(--hit); font-weight: 600; color: var(--text); }
.tally .muted { text-align: right; font-size: 12.5px; }

/* A verification still to finish: its steps, drawn on each reload */
.steps { list-style: none; margin: 0 0 var(--s3); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
.steps li { position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px 10px 34px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); font-size: 13px; }
.steps li::before { content: "\25CB"; content: "\25CB" / ""; position: absolute; left: 12px; top: 10px; width: 14px; text-align: center; font-weight: 800; color: var(--muted); }
.steps li.done::before { content: "\2713"; content: "\2713" / ""; color: var(--pass); }
.steps li.now { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.steps li.now::before { content: ""; left: 15px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-in-out 3; }
.steps li.todo b { color: var(--muted); }
.steps .note { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* Findings, grouped by how serious they are */
.findings h3.group { display: flex; align-items: center; gap: 8px; margin: var(--s4) 0 var(--s2); font-size: 12px; line-height: 16px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.findings h3.group::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--line-strong); }
.findings h3.critical::before, .findings h3.high::before { background: var(--fail-mark); }
.findings h3.medium::before, .findings h3.risk::before { background: var(--review-mark); }
.findings h3.assurance::before { background: var(--pass-mark); }
.found { margin: 0; padding: 0 0 0 34px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.found li { padding: 10px 14px 10px 4px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--text); }
.found li:last-child { border-bottom: 0; }
.found li::marker { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
ul.found { list-style: none; padding-left: 0; }
ul.found li { padding-left: 34px; position: relative; }
ul.found li::before { content: "\2713"; content: "\2713" / ""; position: absolute; left: 14px; color: var(--pass); font-weight: 800; }
.found .page { float: right; margin-left: var(--s3); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* What is kept, and until when */
/* The team's conclusion and Verisafe's opinion on a verification. */
.small-head { margin-top: var(--s4); font-size: 13px; color: var(--muted); }
.opinion.answered { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.opinion .opinion-answer { font-size: 16px; color: var(--text); }
.kept { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13px; }
.keep-copy { font-size: 13px; }
.kept + .keep-copy { margin-top: var(--s3); }
.kept li { position: relative; padding-left: 16px; }
.kept li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }

/* The live view: a row that changed since the last load keeps a mark, and
   glows once where motion is welcome */
tr.changed td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
@keyframes glow { from { background-color: color-mix(in srgb, var(--accent) 24%, transparent); } }

/* History */
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; }
.timeline li { position: relative; display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: var(--s3); padding: 0 0 12px 22px; font-size: 13px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.timeline li::after { content: ""; position: absolute; left: 8px; top: 18px; bottom: -2px; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .at { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline .at .sub { display: block; font-size: 11.5px; }
.timeline .what { min-width: 0; overflow-wrap: anywhere; }
.timeline .what .sub { display: block; font-size: 12px; color: var(--muted); }

/* Forms and buttons */
form { margin: 0; }
label { color: var(--body); }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 7px 10px; min-height: var(--hit); max-width: 100%; }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 8px; }
input[type="checkbox"], input[type="radio"] { min-height: 0; width: 16px; height: 16px; margin: 0; accent-color: var(--btn-a); }
input[type="file"] { padding: 6px; background: var(--surface-2); border-style: dashed; }
textarea { resize: vertical; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--hit); padding: 7px 14px; border-radius: 8px; border: 1px solid transparent; font: 600 13.5px/1.2 var(--font); white-space: nowrap; text-decoration: none; cursor: pointer; color: #fff; background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); }
button:hover, .button:hover { color: #fff; filter: brightness(1.08); }
button.secondary, .button.secondary { color: var(--text); background: var(--surface); border-color: var(--line-strong); }
button.secondary:hover, .button.secondary:hover { color: var(--text); background: var(--surface-2); filter: none; }
button.ghost, .button.ghost { color: var(--accent); background: transparent; }
button.ghost:hover, .button.ghost:hover { color: var(--text); background: var(--accent-soft); filter: none; }
button.danger, .button.danger { color: #fff; background: var(--danger); }
button.small, .button.small { min-height: var(--hit); padding: 4px 10px; font-size: 12.5px; }
button .ic, .button .ic { flex: none; width: 16px; height: 16px; }
form.stack { display: flex; flex-direction: column; gap: var(--s4); }
form.stack label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text); }
form.stack label input, form.stack label textarea, form.stack label select { width: 100%; font-weight: 400; }
form.stack label.choice, form.stack label.check { flex-direction: row; align-items: center; gap: var(--s2); min-height: var(--hit); font-weight: 500; color: var(--body); }
form.stack label.choice input, form.stack label.check input { width: 16px; }
form.inline, form.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s3); margin: 0; }
form.filters { margin-bottom: var(--s3); }
form.filters label, form.inline label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); min-width: 0; }
form.filters label input, form.filters label select { font-size: 13.5px; font-weight: 400; }
form.filters label.grow { flex: 1 1 220px; }
form.filters label.grow input { width: 100%; }
form.filters .filter-actions { display: flex; gap: var(--s2); align-items: center; }
form.inline label.check, form.filters label.check { flex-direction: row; align-items: center; gap: var(--s2); min-height: var(--hit); font-size: 13.5px; font-weight: 500; color: var(--body); }
.form-note { margin: var(--s2) 0 0; font-size: 12.5px; color: var(--muted); max-width: 760px; }
fieldset { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); padding: var(--s2) var(--s4) var(--s3); margin: 0; border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
/* A fieldset's box takes its widest line otherwise: a date field, a long choice. */
fieldset > * { min-width: 0; max-width: 100%; }
legend { padding: 0 6px; color: var(--text); font-weight: 600; font-size: 13px; }
.danger-zone { border-color: color-mix(in srgb, var(--fail-mark) 40%, var(--line)); }
.danger-zone > h2 { color: var(--fail); }
details { margin-top: var(--s3); }
summary { cursor: pointer; min-height: var(--hit); color: var(--accent); font-size: 13px; font-weight: 600; }
details[open] summary { margin-bottom: var(--s2); }
.narrow-only { display: none; }
details.filter-fold { margin: 0 0 var(--s4); padding: var(--s3) var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
details.filter-fold form.filters { margin: var(--s3) 0 0; }

/* Sign-in and the other pages without a session */
.solo-card { width: 100%; max-width: 400px; overflow-wrap: break-word; padding: 24px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.solo-card h1 { font-size: 21px; line-height: 28px; margin: 10px 0 2px; }
.solo-card form.stack { margin-top: var(--s4); }
.solo-card button[type="submit"] { width: 100%; }
.card-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.card-brand .wordmark { color: var(--text); }
.card-brand .role { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 0 8px; }
.narrow { max-width: 560px; }
main.solo .narrow { width: 100%; max-width: 400px; }

/* The footer at the end of every page: two short lines that wrap like
   text on a phone */
.pfoot { flex: none; padding: 11px 24px 12px; background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3), var(--g4)) top / 100% 1px no-repeat, var(--f-bg2); color: var(--f-muted); font-size: 12px; line-height: 1.5; }
.pfoot .line { display: flex; flex-wrap: wrap; align-items: center; column-gap: 0; row-gap: 2px; margin: 0; font-style: normal; }
.pfoot .line + .line { margin-top: 2px; }
.pfoot .logo { height: 16px; margin-right: 10px; }
.pfoot .wordmark { font-size: 13px; margin-right: 10px; }
.pfoot .sep { padding: 0 5px; color: var(--f-line-strong); }
.pfoot b { color: var(--f-body); font-weight: 600; }
.pfoot b.item { color: var(--f-text); }
.pfoot a { display: inline-flex; align-items: center; min-height: var(--hit); color: var(--f-body); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
.pfoot a:hover { color: var(--f-text); text-decoration-color: currentColor; }
.pfoot a[href^="tel:"] { white-space: nowrap; }
.pfoot .links { display: inline-flex; flex-wrap: wrap; gap: 0 14px; }

/* Motion: only with no preference against it. Pages cross-fade, notices
   fade in once, hover and focus ease in; nothing loops. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 200ms; }
  .side { view-transition-name: side; }
  .topbar { view-transition-name: topbar; }
  /* The switches' pill and knob slide over to where the next page has them. */
  .lang-switch .pill { view-transition-name: lang-pill; }
  .theme-switch .knob { view-transition-name: theme-knob; }
  ::view-transition-group(lang-pill), ::view-transition-group(theme-knob) { animation-duration: 240ms; animation-timing-function: ease-out; }
  .callout, .warning, p.error, .notice { transition: opacity .3s ease-out, translate .3s ease-out; }
  @starting-style {
    .callout, .warning, p.error, .notice { opacity: 0; translate: 0 -4px; }
  }
  a, button, .button, .nav a, .chips a, input, select, textarea, .theme-switch .track { transition: background-color .12s, border-color .12s, color .12s, filter .12s; }
  tr.changed td { animation: glow 1.4s ease-out 1; }
}
/* A page that reloaded itself (auto=1) pulsed on its first load already. */
.settled .dot.live, .settled .tag.processing::before, .settled .tag.in_progress::before, .settled .steps li.now::before { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .dot.live, .tag.processing::before, .tag.in_progress::before, .steps li.now::before { animation: none; }
  * { transition: none !important; }
}

/* Below 1400 px Help and Account are icons, their words for screen readers;
   below 1240 px the side bar narrows and the search and New verification get
   a row of their own, so the top bar never wraps part of its tools onto a
   second row. With Help, Account and Sign out in the bar, New verification is
   an icon too while it shares their row, and above 1400 px the name is cut
   sooner, for the same reason. Each bound is in the narrower range, so
   nothing falls between two (a width of 1400.5 px is above 1400). */
@media (max-width: 1400px) {
  .top-link .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .top-link { justify-content: center; min-width: var(--hit); padding: 7px; }
  .topbar.tools-top .new-button .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .topbar.tools-top .new-button { min-width: var(--hit); padding: 0; }
}
@media (width > 1400px) {
  .topbar:has(.top-link) .who { max-width: 220px; }
}
@media (max-width: 1240px) {
  .shell { grid-template-columns: 232px minmax(0, 1fr); }
  .topbar.tools-top .new-button .lbl { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: inherit; }
  .topbar.tools-top .new-button { min-width: 0; padding: 7px 14px; }
  .who { max-width: 200px; }
  .top-main { order: 1; flex: 1 1 100%; }
  .top-search { max-width: none; min-width: 0; }
}

/* Narrow screens: the side bar becomes the top bar's menu */
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .narrow-only { display: block; }
  .topbar .narrow-only { display: inline-flex; }
  .wide-only { display: none; }
  .topbar { padding: 10px 16px; }
  main.page { padding: 16px 16px 32px; }
  h1 { font-size: 24px; line-height: 30px; }
  body { font-size: 16px; }
  input, select, textarea { font-size: 16px; }
  /* Columns that can shrink below their content, which scrolls in its own
     box, and labels that wrap: nothing wider than the screen. */
  .upload, .grid.two, .split, .split.wide-left { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  button, .button { white-space: normal; max-width: 100%; text-align: center; }
  .facts dt { padding-bottom: 0; border-bottom: 0; }
  .facts dd { padding-top: 2px; }
  form.inline, form.filters { align-items: stretch; }
  form.inline label, form.filters label { flex: 1 1 100%; }
  form.filters .filter-actions { flex: 1 1 100%; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* The brand and the menu, who is signed in and the tools on one row, the
     search and New verification on their own. */
  .topbar { gap: var(--s2) 10px; }
  .topbar .tools { gap: var(--s2); }
  .who { max-width: 160px; }
  .top-main { order: 2; }
  .pfoot { padding: 11px 16px 12px; }
  /* A phone: no dots left at the start of a line, a gap instead. */
  .pfoot .sep { display: none; }
  .pfoot .line { column-gap: 12px; }
  .pager { gap: var(--s2); }
  .pager .where { flex: 1 1 100%; }
}
@media (max-width: 900px) { .hide-narrow { display: none; } }
/* A phone: the brand, the menu and the switches; who is signed in, Help,
   Account and Sign out, the name shortened rather than the row wrapped (the
   bar's ::before starts that row); then the search and New verification as
   an icon, its words for screen readers. */
@media (max-width: 720px) {
  .topbar { row-gap: 4px; }
  .topbar::before { content: ""; order: 1; flex: 0 0 100%; }
  .topbar .tools { display: contents; }
  .topbar .lang-switch { margin-left: auto; }
  .who { order: 1; flex: 1 1 0; max-width: none; margin-left: 0; }
  .topbar .top-link, .topbar .signout { order: 1; }
  .top-main { margin-top: 4px; }
  .new-button, .topbar.tools-top .new-button { min-width: var(--hit); padding: 0; }
  .new-button .lbl, .topbar.tools-top .new-button .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Home: the upload and what needs someone, four gauges, two charts and the
   latest verifications. Charts are server-drawn SVG (charts.py) coloured
   here; every figure they draw is on the page as text too. */
.page-head.greet h1 { font-size: 32px; line-height: 38px; }
.page-head.greet .hi { background: linear-gradient(90deg, var(--ra), var(--rb)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.live-btn { gap: 8px; }
.live-dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--v-green); }
.attn-card, .g-card, .chart-card { min-width: 0; padding: 18px 20px; background: var(--card); border: 1px solid var(--card-line); border-radius: 16px; box-shadow: var(--card-shadow); }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 14px; }
.card-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; line-height: 22px; }
.card-head h2 .ic { flex: none; width: 32px; height: 32px; padding: 7px; border-radius: 10px; color: var(--ra); background: var(--rsoft); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
/* The file field sits inside a drop area; a file dropped on the field is
   taken, without a script. With the portal's script, one dropped anywhere
   on the area is, and the area shows it's ready while one is held over it. */
.dropzone { display: grid; justify-items: center; gap: 10px; padding: 24px 16px 20px; border: 2px dashed color-mix(in srgb, var(--ra) 55%, var(--card-line)); border-radius: 14px; text-align: center; background: radial-gradient(circle at 50% 0%, var(--rsoft), transparent 72%); }
.dropzone:focus-within { border-color: var(--ra); }
form.stack .dz-title { display: block; font-size: 18px; font-weight: 700; color: var(--text); }
.dropzone input[type="file"] { width: 100%; max-width: 440px; min-height: 48px; padding: 6px; border: 1px solid var(--card-line); border-radius: 12px; background: var(--card-2); color: var(--body); font-size: 13.5px; cursor: pointer; }
.dropzone input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 0; border-radius: 9px; color: #fff; font: 600 13.5px/1.2 var(--font); background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); cursor: pointer; }
.dz-note { font-size: 12.5px; color: var(--muted); }
.dropzone.drag-over { border-style: solid; border-color: var(--ra); background: var(--rsoft); }
.dropzone p.error { margin: 0; }
/* The Quick verification band: white words and focus on Dan's blue (5.75:1
   at its light end); the button white with blue words, as the role's
   gradient would vanish on it. Under the bar, a white panel holds the rest
   in the page's own colours. */
.quick { --accent: var(--side-focus); color: var(--side-text); background: linear-gradient(135deg, var(--band-a), var(--band-b)); border-radius: var(--r-lg); padding: var(--s5); }
.quick h2, .quick .lede { color: var(--side-text); }
.quick h2 .ic { color: var(--side-text); background: rgba(255, 255, 255, .14); }
.quick .quick-bar label, .quick .quick-bar .dz-title, .quick .quick-bar .dz-note { color: var(--side-text); }
.quick .quick-bar button[type="submit"] { background: #ffffff; color: var(--band-a); }
.quick .dropzone { border-color: var(--band-muted); background: transparent; }
.quick .dropzone.drag-over { border-style: solid; border-color: var(--side-text); background: rgba(255, 255, 255, .12); }
.quick .panel { --accent: var(--f-accent); color: var(--body); background: var(--surface); border-radius: var(--r); padding: var(--s4); }
.quick .consent-mode { padding: 12px 14px; border: 1px solid var(--card-line); border-radius: 12px; background: var(--card-2); }
/* The bar: the drop area, the reference and the button on one line above
   1240 px, the drop area on a row of its own down to 900 px, then stacked.
   Its words keep the band's prefix, to outweigh form.stack's label colour
   and title size. */
.quick .card-head { margin-bottom: var(--s2); }
.quick .lede { margin: 0 0 var(--s4); }
.quick-bar { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; align-items: end; gap: var(--s3); }
.quick-bar .dropzone { justify-items: start; gap: 6px; padding: 12px 14px; text-align: left; }
.quick .quick-bar .dz-title { font-size: 15px; }
.quick .dropzone:focus-within { border-color: var(--side-text); }
.quick .quick-bar button[type="submit"]:hover { background: var(--band-muted); filter: none; }
.quick .panel > * { margin: 0; }
.quick .panel > * + * { margin-top: var(--s3); }
.quick .panel:last-child { margin-bottom: 0; }
.quick .keep-copy { font-size: 12.5px; }
.quick .panel .form-note, .quick .panel .keep-copy { max-width: 90ch; }
/* The attested fields show once that choice is made, where the browser can
   tell; elsewhere they stay shown. */
@supports selector(:has(*)) {
  .consent-mode:not(:has(input[value="attested"]:checked)) .attested { display: none; }
}
.attn-card { display: flex; flex-direction: column; }
.attn-card .card-head h2 .ic { color: var(--pill-warn-fg); background: var(--pill-warn-bg); }
.count-pill { min-width: 28px; padding: 2px 10px; border-radius: 999px; text-align: center; font-weight: 700; background: var(--pill-warn-bg); color: var(--pill-warn-fg); }
.attn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.attn-list li { --k: var(--v-indigo); display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--card-line); box-shadow: inset 3px 0 0 var(--k); }
.attn-list li.warn { --k: var(--v-amber); }
.attn-list li.hot { --k: var(--v-pink); }
.attn-list .ico .ic { display: block; width: 34px; height: 34px; padding: 7px; border-radius: 10px; color: var(--k); background: color-mix(in srgb, var(--k) 16%, transparent); }
.attn-list .txt { display: grid; min-width: 0; font-size: 14px; color: var(--text); overflow-wrap: anywhere; }
.attn-list .txt small { font-size: 12px; color: var(--muted); }
.attn-list .go { grid-column: 2; justify-self: start; display: inline-flex; align-items: center; gap: 4px; min-height: var(--hit); padding: 6px 10px; border-radius: 9px; border: 1px solid var(--card-line); background: var(--card); color: var(--text); font-weight: 600; font-size: 13px; text-decoration: none; white-space: nowrap; }
.attn-list .go .ic { width: 15px; height: 15px; color: var(--k); }
.attn-list .go:hover { color: var(--text); border-color: var(--k); }
.attn-none { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px; border-radius: 12px; background: var(--card-2); color: var(--body); }
.attn-none .ic { flex: none; width: 22px; height: 22px; color: var(--ok-text); }
/* The figures: four small cards in a row, two by two below 900 px */
.figures { margin-bottom: 18px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.kpi { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 12px 14px; background: var(--card); border: 1px solid var(--card-line); border-radius: 12px; box-shadow: var(--card-shadow); }
.kpi.reached { border-color: var(--fail-mark); }
.kpi-label { font-size: 12.5px; line-height: 18px; font-weight: 600; color: var(--muted); }
.kpi-num { display: flex; align-items: center; gap: 8px; font: 600 26px/1.15 var(--font); letter-spacing: -.01em; color: var(--text); font-variant-numeric: tabular-nums; }
.kpi-num .of { font-size: 15px; font-weight: 500; color: var(--muted); }
.kpi-num.muted { color: var(--muted); }
.kpi-sub { font-size: 12.5px; line-height: 18px; color: var(--muted); }
.kpi .bar { margin: 4px 0 2px; }
.figures > .empty { margin: 0; }
/* The gauges */
.gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.g-card { --k1: var(--v-cyan); --k2: var(--v-violet); position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; }
.g-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--k1), var(--k2)); }
.c-month.reached { --k1: var(--fail-mark); --k2: var(--fail-mark); }
.g-head { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.g-head .ic { flex: none; width: 18px; height: 18px; color: var(--k1); }
.g-big { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; font-size: 42px; line-height: 1.05; font-weight: 750; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.g-sub { margin: auto 0 0; font-size: 12.5px; color: var(--muted); }
.g-sub + .g-sub { margin-top: 2px; }
.kpi-sub.ok { color: var(--ok-text); font-weight: 600; }
.warn-txt { color: var(--amber-text); font-weight: 600; }
.bad-txt { color: var(--fail); font-weight: 600; }
.g-facts { display: grid; gap: 4px; margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--card-line); }
.g-facts div { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.g-facts dt { color: var(--muted); }
.g-facts dd { margin: 0; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }
.spark { display: block; width: 100%; height: 46px; }
.spark .line { stroke: var(--k1); }
.spark .a1 { stop-color: var(--k1); stop-opacity: .38; }
.spark .a2 { stop-color: var(--k1); stop-opacity: 0; }
.spark .end { fill: var(--k1); }
.dial { display: grid; place-items: center; width: min(164px, 100%); margin: 0 auto; }
.dial > * { grid-area: 1 / 1; }
.gauge-svg { display: block; width: 100%; height: auto; }
.gauge-svg .track { stroke: var(--card-2); }
.gauge-svg .s1 { stop-color: var(--k1); }
.gauge-svg .s2 { stop-color: var(--k2); }
.gauge-svg .tick { stroke: var(--muted); stroke-width: 1.2; opacity: .45; }
.gauge-svg .end-lbl { fill: var(--muted); font: 9px var(--font); }
.dial-num { display: grid; justify-items: center; margin: 0; translate: 0 6px; }
.dial-num b { font-size: 26px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.dial-num span { font-size: 12px; color: var(--muted); }
/* The list and the box that needs someone: stacked, then two thirds and one third above 1240 px */
.work-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; align-items: start; }
.work-row > .recent { min-width: 0; }
/* The latest verifications: the channel, the
   document type and the next step, the least needed, wait for a wider screen so the table fits its box. */
@media (max-width: 1500px) { .recent .hide-narrow { display: none; } }
@media (max-width: 1400px) { .recent .hide-mid { display: none; } }
.charts > .empty { grid-column: 1 / -1; }
@media (max-width: 1240px) { .work-row { grid-template-columns: minmax(0, 1fr); } }
/* The charts */
.charts { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; gap: 18px; margin-bottom: 18px; }
.range { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--card-line); }
.range a { display: inline-flex; align-items: center; min-height: var(--hit); padding: 3px 11px; border-radius: 7px; color: var(--muted); text-decoration: none; font-size: 12.5px; font-weight: 600; }
.range a:hover { color: var(--text); }
.range a[aria-current] { color: #fff; background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); }
.legend-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: -4px 0 10px; padding: 0; font-size: 12.5px; color: var(--body); }
.legend-chips .sw { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.legend-chips .portal .sw, .stack-svg .seg.portal { background: var(--c-portal); fill: var(--c-portal); }
.legend-chips .api .sw, .stack-svg .seg.api { background: var(--c-api); fill: var(--c-api); }
.legend-chips .link .sw, .stack-svg .seg.link { background: var(--c-link); fill: var(--c-link); }
.legend-chips .other .sw, .stack-svg .seg.other { background: var(--c-other); fill: var(--c-other); }
.trend svg { display: block; width: 100%; height: auto; }
.stack-svg .grid { stroke: var(--card-line); stroke-width: 1; }
.stack-svg .tick { fill: var(--muted); font: 11.5px var(--font); }
.stack-svg .col:hover .seg { filter: brightness(1.18) saturate(1.1); }
.narrow-only-chart { display: none; }
.as-table { margin-top: 8px; }
.as-table summary { color: var(--muted); }
.as-table .table-wrap { max-height: 320px; margin: 8px 0 0; }
.as-table tbody th { font-size: 13px; font-weight: 600; color: var(--text); text-transform: none; letter-spacing: 0; }
.ring-wrap { display: grid; place-items: center; width: min(196px, 100%); margin: 0 auto 14px; }
.ring-wrap > * { grid-area: 1 / 1; }
.ring-svg { display: block; width: 100%; height: auto; }
.ring-svg .track { stroke: var(--card-2); }
.ring-svg .seg.checked, .tally2 .checked .sw { stroke: var(--v-green); background: var(--v-green); }
.ring-svg .seg.resubmit, .tally2 .resubmit .sw { stroke: var(--v-violet); background: var(--v-violet); }
.ring-svg .seg.errors, .tally2 .errors .sw { stroke: var(--v-coral); background: var(--v-coral); }
.ring-num { display: grid; justify-items: center; margin: 0; }
.ring-num b { font-size: 30px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ring-num span { font-size: 12px; color: var(--muted); }
.tally2 { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.tally2 li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 44px; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: var(--card-2); font-size: 13.5px; }
.tally2 .sw { width: 10px; height: 10px; border-radius: 3px; }
.tally2 a { display: inline-flex; align-items: center; justify-content: flex-end; min-width: var(--hit); min-height: var(--hit); font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.tally2 small { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
/* The latest verifications: a search and a period that open the list, pills
   by state, then a box that scrolls, its head row in view */
.recent-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.recent-filters .field { position: relative; display: flex; flex: 1 1 260px; min-width: 0; max-width: 520px; }
.recent-filters .field .ic { position: absolute; left: 11px; top: 50%; translate: 0 -50%; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.recent-filters input { width: 100%; padding-left: 36px; border-radius: 10px; }
.recent-filters select { border-radius: 10px; }
.pills-note { margin: 0 0 6px; font-size: 12.5px; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.pills .pill { display: inline-flex; align-items: center; gap: 8px; min-height: var(--hit); padding: 4px 6px 4px 14px; border: 1px solid var(--card-line); border-radius: 999px; background: var(--card); color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; }
.pills .pill:hover { color: var(--text); border-color: var(--line-strong); }
.pills .pill:focus-visible { border-radius: 999px; }
.pills .n { padding: 3px 10px; border-radius: 999px; background: var(--card-2); color: var(--text); font-variant-numeric: tabular-nums; }
.recent .table-wrap { max-height: 460px; border-radius: 16px; background: var(--card); border-color: var(--card-line); box-shadow: var(--card-shadow); }
@media (max-width: 1280px) { .gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1240px) { .quick-bar { grid-template-columns: minmax(0, 1fr) auto; } .quick-bar .dropzone { grid-column: 1 / -1; } }
@media (max-width: 1100px) { .charts { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .page-head.greet h1 { font-size: 26px; line-height: 32px; }
  .quick, .attn-card, .g-card, .chart-card { padding: 16px; }
  .quick-bar { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) { .wide-only-chart { display: none; } .narrow-only-chart { display: block; } }
@media (max-width: 520px) {
  .gauges { gap: 12px; }
  .g-card { padding: 14px; }
  .g-big { font-size: 34px; }
  .dial-num b { font-size: 22px; }
}
/* Home's motion: once, on arrival, where motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .gauge-svg .val, .ring-svg .seg { animation: sweep 1.1s cubic-bezier(.2, .8, .2, 1) .15s both; }
  @keyframes sweep { from { stroke-dasharray: 0 100; } }
  .spark .line { stroke-dasharray: 100 100; animation: draw 1.3s ease-out .1s both; }
  @keyframes draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
  .spark .area, .spark .end { animation: fade .6s ease-out 1.1s both; }
  @keyframes fade { from { opacity: 0; } }
  .stack-svg .col { transform-box: fill-box; transform-origin: 50% 100%; animation: grow .8s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes grow { from { transform: scaleY(0); } }
  .quick, .attn-card, .g-card, .chart-card { animation: rise .45s ease-out both; }
  .gauges .g-card:nth-child(2) { animation-delay: 50ms; }
  .gauges .g-card:nth-child(3) { animation-delay: 100ms; }
  .gauges .g-card:nth-child(4) { animation-delay: 150ms; }
  @keyframes rise { from { opacity: 0; translate: 0 10px; } }
  .live-dot { animation: ping 1.8s ease-out 4; }
  @keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--v-green) 70%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
  .count-pill, .nav-count.warn { animation: nudge 1.6s ease-in-out .6s 3; }
  @keyframes nudge { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--pill-warn-bg) 35%, transparent); } }
  .g-card, .attn-list li { transition: transform .15s ease-out, border-color .15s; }
  .g-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--k1) 50%, var(--card-line)); }
}
/* A page that drew itself already stays still. */
.settled .gauge-svg .val, .settled .ring-svg .seg, .settled .spark .line, .settled .spark .area, .settled .spark .end,
.settled .stack-svg .col, .settled .quick, .settled .attn-card, .settled .g-card, .settled .chart-card,
.settled .live-dot, .settled .count-pill, .settled .nav-count.warn { animation: none; }

/* Usage: what Verisafe and the client agreed, then gauges and charts like
   Home's, the month day by day against the quota. */
.account-box { margin: 0 0 18px; background: var(--card); border: 1px solid var(--card-line); border-radius: 16px; box-shadow: var(--card-shadow); }
.account-box summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 48px; padding: 12px 18px; color: var(--text); font-size: 14px; font-weight: 600; list-style: none; }
.account-box summary::-webkit-details-marker { display: none; }
.account-box summary::after { content: "\25B8"; content: "\25B8" / ""; margin-left: auto; color: var(--muted); transition: rotate .15s; }
.account-box[open] summary::after { rotate: 90deg; }
.account-box summary .ic { flex: none; width: 32px; height: 32px; padding: 7px; border-radius: 10px; color: var(--ra); background: var(--rsoft); }
.account-box summary .muted { font-weight: 400; }
.account-box dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 0 32px; margin: 0; padding: 0 18px 6px; }
.account-box dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--card-line); font-size: 13.5px; }
.account-box dt { color: var(--muted); }
.account-box dd { margin: 0; color: var(--text); font-weight: 600; text-align: right; }
.account-box > p { margin: 4px 18px 14px; }
.c-day { --k1: var(--v-blue); --k2: var(--v-cyan); }
.c-day.reached { --k1: var(--fail-mark); --k2: var(--fail-mark); }
.c-received { --k1: var(--v-cyan); --k2: var(--v-blue); }
.c-errors { --k1: var(--v-coral); --k2: var(--v-amber); }
.g-big.ok-big { color: var(--ok-text); }
.chart-card.wide { margin-bottom: 18px; }
.legend-chips .used .sw { background: var(--v-cyan); }
.legend-chips .pace .sw { width: 16px; height: 0; border-radius: 0; border-top: 2px dashed var(--v-violet); vertical-align: 3px; }
.legend-chips .pace.over { color: var(--amber-text); font-weight: 600; }
.legend-chips .quota .sw { width: 16px; height: 2px; border-radius: 0; background: var(--v-amber); vertical-align: 3px; }
.cum-svg .grid { stroke: var(--card-line); stroke-width: 1; }
.cum-svg .tick { fill: var(--muted); font: 11.5px var(--font); }
.cum-svg .line { stroke: var(--v-cyan); stroke-linejoin: round; }
.cum-svg .a1 { stop-color: var(--v-cyan); stop-opacity: .32; }
.cum-svg .a2 { stop-color: var(--v-cyan); stop-opacity: 0; }
.cum-svg .pace { stroke: var(--v-violet); stroke-width: 2; stroke-dasharray: 6 5; }
.cum-svg .quota { stroke: var(--v-amber); stroke-width: 1.5; }
.cum-svg .quota-label { fill: var(--amber-text); font: 600 12.5px var(--font); }
.cum-svg .end { fill: var(--v-cyan); stroke: var(--card); stroke-width: 2; }
@media (prefers-reduced-motion: no-preference) {
  .cum-svg .line { stroke-dasharray: 100 100; animation: draw 1.3s ease-out .1s both; }
  .cum-svg .area, .cum-svg .pace, .cum-svg .end { animation: fade .6s ease-out 1.1s both; }
}
.settled .cum-svg .line, .settled .cum-svg .area, .settled .cum-svg .pace, .settled .cum-svg .end { animation: none; }

/* Help: the guide, its contents, a search, each section in a card */
.help-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 720px; margin: 0 0 18px; }
.help-search .field { position: relative; display: flex; flex: 1 1 320px; min-width: 0; }
.help-search .field .ic { position: absolute; left: 11px; top: 50%; translate: 0 -50%; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.help-search input { width: 100%; min-height: var(--hit); padding-left: 36px; border-radius: 10px; }
.help-found { margin: 0 0 18px; color: var(--text); }
.help-intro p { max-width: 80ch; }
.help-contents { margin: 0 0 18px; padding: 16px 20px; background: var(--card); border: 1px solid var(--card-line); border-radius: 16px; box-shadow: var(--card-shadow); }
.help-contents h2 { margin: 0 0 10px; font-size: 16px; }
.help-contents ol { margin: 0; padding-left: 22px; columns: 2 280px; column-gap: 32px; }
.help-contents li { break-inside: avoid; padding: 3px 0; }
.help-contents a { display: inline-flex; align-items: center; min-height: var(--hit); }
.help-section { margin: 0 0 18px; padding: 18px 22px; background: var(--card); border: 1px solid var(--card-line); border-radius: 16px; box-shadow: var(--card-shadow); scroll-margin-top: 16px; }
.help-section h2 { margin: 0 0 12px; font-size: 18px; }
.help-section p, .help-section li { max-width: 80ch; line-height: 1.6; }
.help-section ol, .help-section ul { padding-left: 22px; }
.help-section li + li { margin-top: 6px; }
.back-top { margin: 12px 0 0; font-size: 13px; }
.back-top a { display: inline-flex; align-items: center; min-height: var(--hit); }
.help-more { margin-top: 24px; }

/* Onboarding, the agreement and the notice to the person verified */
.solo-card.wide { max-width: 860px; }
.solo-card.wide button[type="submit"] { width: auto; }
.legal-text { max-height: 60vh; overflow-y: auto; padding: var(--s4); margin: var(--s4) 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); line-height: 1.55; overflow-wrap: break-word; }
.legal-text h2 { font-size: 17px; margin: var(--s4) 0 var(--s2); }
.legal-text h3 { font-size: 15px; margin: var(--s4) 0 var(--s2); }
.legal-text ul { padding-left: 20px; }
.legal-text p.l1 { margin-left: 16px; }
.legal-text p.l2 { margin-left: 32px; }
.legal-text .num { font-weight: 600; margin-right: 4px; }
.totp-qr { display: block; width: 200px; max-width: 100%; height: auto; aspect-ratio: 1; margin: var(--s4) auto; background: #fff; padding: 8px; border-radius: var(--r); }
.totp-key { font-family: var(--mono); word-break: break-all; }
.consent-box, .attested { border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3) var(--s4); display: flex; flex-direction: column; gap: var(--s3); overflow-wrap: anywhere; }
.consent-mode { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s2); }
/* The notice in a dialog over the upload form (portal.js). Nothing of the
   page shows behind it, as nothing of the client's shows on the notice's
   own page; the backdrop's colours are the themes' --bg, written out, as
   older browsers don't carry variables to it. */
.notice-dialog { width: min(860px, calc(100% - 32px)); max-width: none; max-height: calc(100% - 32px); margin: auto; padding: 24px 22px; overflow-y: auto; overflow-wrap: break-word; color: var(--body); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.notice-dialog::backdrop { background: #0a0f1f; }
.light .notice-dialog::backdrop { background: #f4f7fc; }
.notice-dialog[aria-busy="true"] { min-height: 160px; }
.notice-dialog h1 { font-size: 21px; line-height: 28px; margin: 10px 0 2px; color: var(--text); }
.notice-dialog form.stack { margin-top: var(--s4); }
/* Back to the top of the notice, from each consent box: big enough to tap. */
.consent-box > a { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: var(--hit); min-height: var(--hit); }
.qr-box { display: grid; place-items: center; padding: var(--s3); background: #ffffff; border-radius: 10px; width: max-content; max-width: 100%; }
.qr-box svg { width: 220px; height: 220px; max-width: 100%; display: block; }
.selfies { display: flex; flex-wrap: wrap; gap: var(--s3); }
.selfies img { width: 160px; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--neutral-bg); }
