/* BEGIN @securelyn/ui site.css (generated: do not edit; edit packages/ui/src/site.css and run `pnpm --filter @securelyn/ui sync:site`) */
/* @securelyn/ui site.css: canonical base for every static Securelyn site (scan, disclose, portal, aware, ready, intel, comms).
   Do not edit the copy inside apps/<app>/web/styles.css. Edit this file, then run `pnpm --filter @securelyn/ui sync:site`.
   Colours are HSL triplets used as hsl(var(--name)); values come from tokens.css, with the light-theme AA fixes from
   apps/web/docs/palette-proposal.md (see packages/ui/docs/site-css.md). Text pairs are checked by site-css.test.ts.

   RHYTHM RULE (the only vertical-spacing mechanism): a container's children are separated by margin-block-start on the
   FOLLOWING sibling only. Nothing sets margin-block-end. Headings, p, ul, ol, dl, pre, table, figure, form all start at 0. */
:root {
  color-scheme: light dark;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radius: 0.625rem;

  /* One spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  /* The single gap between page sections (before an h2 / section / hero follower) */
  --section-gap: clamp(var(--space-6), 1.25rem + 3vw, var(--space-7));

  /* Fluid type scale */
  --step--1: clamp(0.85rem, 0.83rem + 0.1vw, 0.9rem);
  --step-0: 1rem;
  --step-1: clamp(1.125rem, 1.07rem + 0.3vw, 1.25rem);
  --step-2: clamp(1.35rem, 1.2rem + 0.75vw, 1.6rem);
  --step-3: clamp(1.75rem, 1.35rem + 2vw, 2.5rem);

  --control-h: 2.75rem;
  --measure: 52rem;
  --measure-wide: 72rem;

  /* Colour: light */
  --background: 210 20% 98%;
  --foreground: 220 25% 10%;
  --card: 0 0% 100%;
  --secondary: 215 25% 93%;
  --muted-foreground: 215 15% 40%;
  --border: 215 20% 88%;
  --control: 215 15% 42%;
  --primary: 190 95% 42%;
  --link: 190 95% 28%;
  --link-foreground: 0 0% 100%;
  --ring: 190 95% 28%;
  --danger: 0 72% 40%;
  --danger-foreground: 0 0% 100%;
  --warn: 38 90% 28%;
  --ok: 145 80% 25%;
  --info: 215 20% 34%;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: 222 35% 5%;
    --foreground: 210 20% 92%;
    --card: 222 30% 8%;
    --secondary: 222 25% 14%;
    --muted-foreground: 215 15% 62%;
    --border: 222 20% 22%;
    --control: 215 15% 55%;
    --primary: 175 95% 50%;
    --link: 175 95% 50%;
    --link-foreground: 222 35% 5%;
    --ring: 175 95% 50%;
    --danger: 0 90% 75%;
    --danger-foreground: 222 35% 5%;
    --warn: 45 90% 62%;
    --ok: 145 70% 60%;
    --info: 215 20% 72%;
  }
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-block: var(--space-8); }
body { margin: 0; background: hsl(var(--background)); color: hsl(var(--foreground)); font: var(--step-0)/1.6 var(--font); }
:where(h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, pre, figure, blockquote, table, form, fieldset, hr) { margin: 0; }
img, svg, video { max-width: 100%; height: auto; }
a { color: hsl(var(--link)); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid hsl(var(--ring)); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: hsl(var(--link)); color: hsl(var(--link-foreground)); padding: var(--space-2) var(--space-4); z-index: 100; }
.skip:focus { left: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
p, li, dd, dt, summary, .notice, td, th { overflow-wrap: anywhere; }

/* Type. Headings carry no bottom margin; the following sibling owns the gap. */
h1, h2, h3, h4 { line-height: 1.2; text-wrap: balance; }
h1 { font-size: var(--step-3); line-height: 1.15; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); }
.lead { font-size: var(--step-1); color: hsl(var(--muted-foreground)); }
.muted { color: hsl(var(--muted-foreground)); }
.small, .hint { font-size: var(--step--1); }
.hint { color: hsl(var(--muted-foreground)); }
code, .marker { font-family: var(--mono); font-size: 0.9em; background: hsl(var(--secondary)); padding: 0.1rem 0.3rem; border-radius: 4px; }
pre { font-family: var(--mono); font-size: 0.9em; white-space: pre-wrap; overflow-wrap: anywhere; background: hsl(var(--secondary)); padding: var(--space-3); border-radius: var(--radius); }
pre code { background: none; padding: 0; }
ul, ol { padding-inline-start: var(--space-5); }
dt { font-weight: 700; }
dd { margin-inline-start: 0; }
strong, b { font-weight: 700; }

/* Layout */
.wrap { max-width: var(--measure); margin-inline: auto; padding-inline: var(--space-4); }
.wrap.wide { max-width: var(--measure-wide); }
main { padding-block: var(--space-6) var(--section-gap); }
header.site { border-bottom: 1px solid hsl(var(--border)); }
header.site .wrap { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); align-items: center; justify-content: space-between; padding-block: var(--space-3); }
.brand { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; font-weight: 700; color: hsl(var(--foreground)); text-decoration: none; }
.brand svg { width: 1.5rem; height: 1.5rem; flex: none; color: hsl(var(--link)); }
nav ul, footer.site ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); }
ul.plain, ol.plain { list-style: none; padding: 0; }
nav a { display: inline-flex; align-items: center; min-height: 44px; }
nav a[aria-current="page"] { font-weight: 700; }
footer.site { border-top: 1px solid hsl(var(--border)); padding-block: var(--space-5); color: hsl(var(--muted-foreground)); font-size: var(--step--1); }
footer.site .wrap { display: flex; flex-direction: column; gap: var(--space-2); }
footer.site a { display: inline-flex; align-items: center; min-height: 44px; }
footer.site p a { min-height: 0; display: inline; }

/* Vertical rhythm. Containers listed here stack their children; zero specificity so any class can override. */
:where(main, section, article, aside, .stack, .hero, form, fieldset, dl, dialog, details > div) >
  :where(:not([hidden], script, template, style, .sr-only, .hp, :empty)) ~
  :where(:not([hidden], script, template, style, .sr-only, .hp, :empty)) { margin-block-start: var(--space-4); }
:where(main, section, article, aside, .stack, .hero, form, fieldset, dl, dialog, details > div) > :where(* ~ h3, * ~ h4) { margin-block-start: var(--space-5); }
:where(main, .stack) > :where(* ~ h2, * ~ section:not(.card), * ~ .section, * ~ hr, .hero + *) { margin-block-start: var(--section-gap); }
:where(h1, h2, h3, h4) + :where(*) { margin-block-start: var(--space-2); }
:where(* ~ .hint) { margin-block-start: var(--space-2); }
:where(h1) + :where(.lead) { margin-block-start: var(--space-3); }
:where(dt) + :where(dd) { margin-block-start: var(--space-1); }
:where(dd) + :where(dt) { margin-block-start: var(--space-3); }
:where(li) ~ :where(li) { margin-block-start: var(--space-1); }
:where(.notice, .field, .card) > :where(:not([hidden], .sr-only, .hp, :empty)) ~ :where(:not([hidden], .sr-only, .hp, :empty)) { margin-block-start: var(--space-2); }
:where(.card) > :where(:not([hidden], .sr-only, .hp, :empty)) ~ :where(:not([hidden], .sr-only, .hp, :empty)) { margin-block-start: var(--space-3); }
:where(details + details, .card + .card, .finding + .finding) { margin-block-start: var(--space-2); }
.field.check > * ~ * { margin-block-start: 0; }
.stack-sm > * ~ * { margin-block-start: var(--space-2); }
.stack-lg > * ~ * { margin-block-start: var(--space-5); }
nav li ~ li, footer.site li ~ li, .plain > li ~ li { margin-block-start: 0; }

/* Hero: same rhythm, larger lead. No extra padding: main already owns the top gap. */
.hero > .lead { max-width: 40rem; }

/* Rows and groups (gap owns spacing; children carry no margin) */
.row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: flex-end; }
.row > .grow { flex: 1 1 14rem; }
.actions, .page-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.cols { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 48rem) {
  .cols { grid-template-columns: repeat(2, 1fr); }
  .cols.three { grid-template-columns: repeat(3, 1fr); }
}

/* Forms: every control is 44px tall; .field is label + control + hint/error */
label, legend { display: block; font-weight: 600; padding: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
input[type=text], input[type=email], input[type=url], input[type=search], input[type=password], input[type=tel], input[type=number], input[type=month], input[type=date], select, textarea {
  display: block; width: 100%; max-width: 100%; min-height: var(--control-h); padding: 0.5rem 0.8rem; font: inherit; color: inherit;
  background: hsl(var(--card)); border: 2px solid hsl(var(--control)); border-radius: var(--radius);
}
textarea { min-height: 8rem; resize: vertical; }
input[type=file] { display: block; width: 100%; min-height: var(--control-h); font: inherit; padding-block: var(--space-2); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: hsl(var(--danger)); }
.err { color: hsl(var(--danger)); font-weight: 600; }
.req { font-weight: 400; color: hsl(var(--muted-foreground)); }
.check { display: flex; gap: var(--space-3); align-items: flex-start; }
.check input { flex: none; width: 1.25rem; height: 1.25rem; margin: 0.35rem 0 0; accent-color: hsl(var(--link)); }
.check label { font-weight: 400; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: var(--space-2);
  min-height: 44px; padding: 0.5rem 1.25rem; font: inherit; font-weight: 600; line-height: 1.2; cursor: pointer; text-decoration: none;
  border-radius: var(--radius); border: 2px solid hsl(var(--link)); background: hsl(var(--link)); color: hsl(var(--link-foreground));
}
.btn.secondary { background: transparent; color: hsl(var(--link)); }
.btn.danger { background: hsl(var(--danger)); border-color: hsl(var(--danger)); color: hsl(var(--danger-foreground)); }
.btn.small { font-size: var(--step--1); padding-inline: var(--space-3); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }
.linklike { font: inherit; background: none; border: 0; padding: var(--space-2); min-height: 44px; color: hsl(var(--link)); text-decoration: underline; cursor: pointer; }

/* Notice, card, pill, details, table */
.notice { border: 1px solid hsl(var(--border)); border-inline-start: 6px solid hsl(var(--info)); border-radius: var(--radius); padding: var(--space-3) var(--space-4); background: hsl(var(--secondary)); }
.notice.error { border-color: hsl(var(--danger)); }
.notice.draft { border-color: hsl(var(--warn)); font-weight: 600; }
.notice.ok { border-color: hsl(var(--ok)); }
.notice.warn { border-color: hsl(var(--warn)); }
.card { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: var(--space-4) var(--space-5); }
.pill { display: inline-block; font-size: var(--step--1); font-weight: 700; line-height: 1.5; padding: 0 var(--space-3); border-radius: 99px; border: 2px solid currentColor; color: hsl(var(--link)); white-space: nowrap; }
.pill.pass, .pill.ok { color: hsl(var(--ok)); }
.pill.warn { color: hsl(var(--warn)); }
.pill.fail, .pill.error { color: hsl(var(--danger)); }
.pill.info, .pill.unknown { color: hsl(var(--info)); }
details { border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--card)); }
details > summary { cursor: pointer; font-weight: 600; padding: var(--space-3) var(--space-4); min-height: 44px; }
details > div { padding: 0 var(--space-4) var(--space-4); }
table { border-collapse: collapse; width: 100%; }
caption { text-align: start; font-weight: 600; padding-block: var(--space-2); }
th, td { text-align: start; padding: var(--space-2) var(--space-3); border-bottom: 1px solid hsl(var(--border)); vertical-align: top; }
th { font-size: var(--step--1); color: hsl(var(--muted-foreground)); }
.tablewrap, .scroll-x { overflow-x: auto; }
.tablewrap:focus-visible { outline: 3px solid hsl(var(--ring)); outline-offset: 2px; }
.empty { color: hsl(var(--muted-foreground)); text-align: center; padding: var(--space-6) var(--space-4); border: 1px dashed hsl(var(--border)); border-radius: var(--radius); }
dialog { border: 2px solid hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--background)); color: hsl(var(--foreground)); width: min(32rem, calc(100vw - 2rem)); padding: var(--space-5); }
dialog::backdrop { background: rgb(0 0 0 / 0.6); }

/* Narrow screens: actions stack full width so the tap target is the whole row */
@media (max-width: 40rem) {
  .actions .btn, .page-actions .btn, .row .btn { flex: 1 1 100%; }
  .card { padding: var(--space-4); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media print {
  :root { --background: 0 0% 100%; --foreground: 0 0% 0%; --card: 0 0% 100%; --secondary: 0 0% 95%; --muted-foreground: 0 0% 25%; --link: 0 0% 0%; }
  header.site nav, .skip, .btn, .actions, .page-actions, .hide-print, dialog { display: none !important; }
  .card, details, tr { break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
/* END @securelyn/ui site.css */

/* Scan extras. The base (reset, header/footer, buttons, forms, notice, card, pill, details, table) is generated from
   @securelyn/ui site.css above. Grade colours are scan-only tokens; all pairs are >= 4.5:1 on background, card and secondary. */
:root {
  --grade-a: 145 80% 25%;
  --grade-b: 86 100% 21%;
  --grade-c: 42 100% 24%;
  --grade-d: 24 100% 31%;
  --grade-f: 0 72% 40%;
  --grade-unknown: 215 15% 40%;
  --radius-lg: 1rem;
  --header-h: 3.5rem;
  --gutter: clamp(var(--space-4), 3vw, var(--space-6));
  --glow: 0.1;
  --shadow: 0 1px 2px hsl(var(--foreground) / 0.06), 0 14px 32px -18px hsl(var(--foreground) / 0.2);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --grade-a: 145 70% 60%;
    --grade-b: 80 66% 56%;
    --grade-c: 45 90% 62%;
    --grade-d: 28 100% 65%;
    --grade-f: 0 90% 75%;
    --grade-unknown: 215 15% 62%;
    --glow: 0.16;
    --shadow: 0 1px 0 hsl(0 0% 100% / 0.04) inset, 0 18px 40px -22px hsl(0 0% 0% / 0.8);
  }
}

/* ---- Shell: full-width header, content in the middle, footer pinned to the bottom of short pages --------------------
   Vertical rule of this file: the only gaps between blocks are the shared rhythm (margin-block-start on the following
   sibling), --section-gap between sections, and one --section-gap of padding at the end of main. Nothing else adds space. */
html { scroll-padding-block: calc(var(--header-h) + var(--space-4)) 7rem; }
body {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: radial-gradient(60rem 30rem at 72% -8rem, hsl(var(--primary) / var(--glow)), transparent 70%) top center / 100% 34rem no-repeat, hsl(var(--background));
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; width: 100%; padding-block: var(--space-6) var(--section-gap); }
h1 { letter-spacing: -0.03em; }
h2 { letter-spacing: -0.02em; }
h3 { letter-spacing: -0.01em; }

header.site {
  position: sticky; top: 0; z-index: 40;
  background: hsl(var(--background) / 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
}
header.site .wrap {
  max-width: none; flex-wrap: nowrap; gap: var(--space-3); padding-block: 0; padding-inline: var(--gutter); min-height: var(--header-h);
}
.brand { flex: none; gap: 0.5rem; font-size: 1.0625rem; letter-spacing: -0.01em; }
.brand-sub { font-weight: 500; color: hsl(var(--muted-foreground)); }
header.site nav ul { flex-wrap: nowrap; gap: var(--space-1); }
header.site nav a {
  padding-inline: 0.75rem; border-radius: 99px; text-decoration: none; white-space: nowrap; font-weight: 500;
  color: hsl(var(--muted-foreground));
}
header.site nav a[aria-current="page"] { color: hsl(var(--foreground)); background: hsl(var(--secondary)); font-weight: 600; }
@media (hover: hover) { header.site nav a:hover { color: hsl(var(--foreground)); background: hsl(var(--secondary)); } }
/* Narrow screens: the two extra links drop out (the brand is the home link and securelyn.in is in the footer), so the bar stays on one line. */
@media (max-width: 30rem) {
  .nav-wide { display: none; }
  header.site nav a { padding-inline: 0.625rem; }
}
@media (max-width: 24rem) {
  .brand-sub { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-transparency: reduce) { header.site { background: hsl(var(--background)); -webkit-backdrop-filter: none; backdrop-filter: none; } }

footer.site { background: hsl(var(--card)); }
footer.site .wrap { max-width: none; padding-inline: var(--gutter); }
@media (min-width: 48rem) {
  footer.site .wrap { flex-direction: row; justify-content: space-between; align-items: center; gap: var(--space-5); }
}

/* ---- Home: hero, how it works, lists ------------------------------------------------------------------------------- */
.hero h1 { font-size: clamp(2.25rem, 1.4rem + 4vw, 3.75rem); line-height: 1.04; letter-spacing: -0.035em; }
.hero .lead { font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem); }
.hero.split { display: grid; gap: var(--space-6); }
.hero.split > * ~ * { margin-block-start: 0; }
@media (min-width: 64rem) {
  .hero.split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-7); align-items: center; }
}
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tags > li { margin: 0; border: 1px solid hsl(var(--border)); border-radius: 99px; background: hsl(var(--card)); padding: 0 var(--space-3); font-size: var(--step--1); font-weight: 600; }
.cols > *, .grid > * { margin-block-start: 0; }
.cols > .card, .grid > .card { height: 100%; }
section > h2 + :where(.cols, .grid, .card, details, .host, ul.top) { margin-block-start: var(--space-4); }
.how > li { position: relative; }
.num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: hsl(var(--link)); color: hsl(var(--link-foreground)); font-weight: 700; font-size: var(--step--1); }
.mark { list-style: none; padding: 0; }
.mark > li { position: relative; padding-inline-start: 1.75rem; }
.mark > li ~ li { margin-block-start: var(--space-2); }
.mark > li::before { content: "\2713"; content: "\2713" / ""; position: absolute; inset-inline-start: 0; font-weight: 700; color: hsl(var(--ok)); }
.mark.never > li::before { content: "\2715"; content: "\2715" / ""; color: hsl(var(--danger)); }
.cta-card { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-5); align-items: center; justify-content: space-between; }
.cta-card > * { margin: 0; }
.cta-card > :first-child { flex: 1 1 18rem; }
.toc { display: block; }
.toc ul { gap: var(--space-1) var(--space-2); }
.toc a { padding-inline: 0.875rem; border: 1px solid hsl(var(--border)); border-radius: 99px; background: hsl(var(--card)); text-decoration: none; font-weight: 600; }
.stat { font-size: var(--step-2); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: hsl(var(--link)); }

/* ---- Surfaces ------------------------------------------------------------------------------------------------------- */
.card { border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: var(--space-5); }
.notice { border-radius: var(--radius); }
details { border-radius: var(--radius-lg); }
details > summary { border-radius: var(--radius-lg); }
.btn { border-radius: 99px; padding-inline: 1.5rem; }
input[type=text], input[type=email], input[type=url] { border-radius: 0.75rem; }
@media (prefers-reduced-motion: no-preference) {
  .btn, .linklike { transition: transform 140ms var(--ease-out), background-color 140ms var(--ease-out), color 140ms var(--ease-out); }
  .btn:active { transform: scale(0.97); }
  header.site nav a, .toc a { transition: background-color 140ms var(--ease-out), color 140ms var(--ease-out); }
}
@media (hover: hover) { .btn:not([disabled]):hover { filter: brightness(1.08); } .btn.secondary:not([disabled]):hover { background: hsl(var(--secondary)); filter: none; } }

/* ---- Progress ------------------------------------------------------------------------------------------------------- */
.steps { list-style: none; padding: 0; }
.steps > li { display: flex; gap: var(--space-3); align-items: center; padding-block: var(--space-3); margin: 0; border-bottom: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); }
.steps > li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps li[data-done="true"] { color: hsl(var(--foreground)); }
.tick { width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid hsl(var(--control)); display: inline-grid; place-items: center; flex: none; font-size: 0.9rem; }
.steps li[data-done="true"] .tick { background: hsl(var(--ok)); border-color: hsl(var(--ok)); color: hsl(var(--background)); }
.bar { height: 0.6rem; background: hsl(var(--secondary)); border: 1px solid hsl(var(--border)); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: hsl(var(--link)); width: 0; transition: width 0.3s; border-radius: 99px; }

/* ---- Report ---------------------------------------------------------------------------------------------------------- */
h1 + .summary { margin-block-start: var(--space-4); }
.summary { display: flex; flex-wrap: wrap; gap: var(--space-5); align-items: center; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: var(--space-5); }
.grade { width: 6.5rem; height: 6.5rem; border-radius: 50%; border: 6px solid currentColor; display: grid; place-items: center; font-size: 3.25rem; font-weight: 800; letter-spacing: -0.04em; flex: none; background: color-mix(in srgb, currentColor 9%, transparent); }
.grade[data-grade="A"] { color: hsl(var(--grade-a)); }
.grade[data-grade="B"] { color: hsl(var(--grade-b)); }
.grade[data-grade="C"] { color: hsl(var(--grade-c)); }
.grade[data-grade="D"] { color: hsl(var(--grade-d)); }
.grade[data-grade="F"] { color: hsl(var(--grade-f)); }
.grade[data-grade="?"] { color: hsl(var(--grade-unknown)); }
.pill.kev { color: hsl(var(--danger)); }
details.finding > summary { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
section > h2 + :where(details, .host) { margin-block-start: var(--space-3); }
.cve { border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: var(--space-3) var(--space-4); }
.cve > * ~ * { margin-block-start: var(--space-1); }
.cve ~ .cve { margin-block-start: var(--space-2); }
.cve-id { font-weight: 700; }
.top { border: 1px solid hsl(var(--border)); border-radius: var(--radius-lg); background: hsl(var(--card)); padding: 0 var(--space-4); box-shadow: var(--shadow); }
.top > li { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); align-items: center; margin: 0; padding-block: var(--space-3); border-bottom: 1px solid hsl(var(--border)); }
.top > li:last-child { border-bottom: 0; }

/* The action bar sticks to the bottom of the window while the report scrolls and rests at the end of main, so it needs no reserved padding. */
.cta-bar {
  position: sticky; bottom: var(--space-3); z-index: 20; margin-block-start: var(--space-5);
  background: hsl(var(--card) / 0.92); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid hsl(var(--border)); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: var(--space-3) var(--space-4);
}
.cta-bar .wrap { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: center; justify-content: space-between; padding: 0; max-width: none; }

/* Narrow screens: a bar stuck over the page would cover rows and focused controls (WCAG 2.4.11), so it flows at the end of the page. */
@media (max-width: 40rem) {
  .cta-bar { position: static; }
  .cta-bar .actions, .cta-bar .actions .btn { width: 100%; }
  .grade { width: 5rem; height: 5rem; font-size: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) { .bar > span { transition: none; } }
@media (prefers-reduced-transparency: reduce) { .cta-bar { background: hsl(var(--card)); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* Phase Y: deep-check option, counts strip, fact lists, hosts, sources.
   Spacing follows the shared rhythm (margin-block-start on the following sibling only) and --section-gap; nothing here adds a bottom margin. */
.summary > * { min-width: 0; }
.summary > .stack-sm { flex: 1 1 12rem; }
.deep > .check ~ .check { margin-block-start: var(--space-3); }
.deep .hint { display: block; }
.counts { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.counts > li { margin: 0; border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--card)); padding: 0 var(--space-3); font-size: var(--step--1); white-space: nowrap; }
.counts .fail strong { color: hsl(var(--danger)); }
.counts .warn strong { color: hsl(var(--warn)); }
.counts .pass strong { color: hsl(var(--ok)); }
.counts .info strong, .counts .unknown strong { color: hsl(var(--info)); }
.chips { display: inline-flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); }
.facts { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: var(--space-2) var(--space-4); }
.facts > dt, .facts > dd { margin: 0; }
.host { border: 1px solid hsl(var(--border)); border-radius: var(--radius-lg); background: hsl(var(--card)); padding: var(--space-3) var(--space-4); }
.host > h3 { font-size: var(--step-0); }
.sources > li { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); align-items: center; padding-block: var(--space-1); }
.tls-wait { padding-inline-start: var(--space-3); border-inline-start: 4px solid hsl(var(--border)); }
@media (max-width: 40rem) {
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .facts > dd + dt { margin-block-start: var(--space-2); }
}
@media (max-width: 40rem) { .card { padding: var(--space-4); } }
.skip { min-height: 44px; display: inline-flex; align-items: center; border-radius: 0 0 var(--radius) 0; }
.cols:not(.three) > :last-child:nth-child(odd):not(:first-child) { grid-column: 1 / -1; }
.notice > h1 { font-size: var(--step-2); }
