/* PC Check | CyberSecInfo | MIT License */

@font-face {
  font-family: "Roboto";
  src: url("fonts/roboto-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("fonts/roboto-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("fonts/roboto-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Orbitron";
  src: url("fonts/orbitron-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Orbitron";
  src: url("fonts/orbitron-latin-900-normal.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Mono";
  src: url("fonts/atkinson-hyperlegible-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* Same palette as cybersecinfo.com/grcaudit (dark only) */
:root {
  --paper: #0a0a1a;
  --surface: #0e1022;
  --panel: #111827;
  --ink: #e5e7eb;
  --muted: #9ca3af;
  --line: #1f2937;
  --line-strong: #374151;
  --action: #22d3ee;
  --action-hover: #67e8f9;
  --action-strong: #06b6d4;
  --action-ink: #0a0a1a;
  --action-soft: rgba(34, 211, 238, 0.1);
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, 0.12);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.12);
  --risk: #f87171;
  --risk-soft: rgba(248, 113, 113, 0.12);
  --info: #9ca3af;
  --info-soft: rgba(156, 163, 175, 0.12);
  --on-status: #0a0a1a;
  --radius: 16px;
  --font: "Roboto", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --display: "Orbitron", "Roboto", ui-sans-serif, system-ui, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(1100px 520px at 50% -160px, rgba(6, 182, 212, 0.14), transparent 70%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

a { color: var(--action); text-underline-offset: 0.18em; }
a:hover { color: var(--action-hover); }

:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Bait for content blockers: in the layout (so blockers can hide it) but never visible. */
#bait { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -100px;
  background: var(--surface); color: var(--ink);
  padding: 10px 14px; border-radius: 8px; z-index: 10;
}
.skip:focus { top: 12px; }

/* Header (same as GRC Audit) */
.site-head {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(31, 41, 55, 0.7);
  background: rgba(10, 10, 26, 0.9);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.site-head-in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 4px 24px; max-width: 1152px; margin: 0 auto; padding: 10px 16px;
}
.back {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  border: 1px solid rgba(34, 211, 238, 0.4); background: rgba(34, 211, 238, 0.05);
  color: var(--action); border-radius: 999px; padding: 8px 16px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none;
}
.back:hover { background: var(--action-strong); color: #111827; }
.back svg, .site-nav svg { width: 15px; height: 15px; flex-shrink: 0; }
.site-nav { overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.site-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 10px; border-radius: 6px;
  color: #fff; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none;
}
.site-nav a:hover { color: var(--action); }
.site-nav a[aria-current="page"] { color: var(--action); }

/* Hero: banner, emblem, title, chips */
.hero { max-width: 1152px; margin: 0 auto; padding: 24px 16px 0; }
.banner {
  overflow: hidden; margin: 0 0 20px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  box-shadow: 0 0 48px -16px rgba(6, 182, 212, 0.45);
}
.banner img { display: block; width: 100%; height: auto; }
.title-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.title-brand { display: flex; align-items: center; gap: 16px; }
.emblem { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; box-shadow: 0 0 24px rgba(6, 182, 212, 0.45); }
.kicker { margin: 4px 0 0; color: var(--muted); font-size: 0.875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
  border: 1px solid rgba(34, 211, 238, 0.25); background: rgba(34, 211, 238, 0.05);
  color: #e5e7eb; border-radius: 999px; padding: 4px 12px; font-size: 0.75rem; font-weight: 500;
}

/* Layout */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-areas:
    "intro ledger"
    "checks ledger"
    "system system"
    "about .";
  column-gap: 56px;
  max-width: 1152px;
  margin: 0 auto;
  padding: 20px 16px 56px;
  align-items: start;
}
.intro { grid-area: intro; padding-bottom: 28px; }
.checks { grid-area: checks; }
/* Right column: speed test on top, outbound log below (not sticky: together they are taller than a screen) */
.side { grid-area: ledger; align-self: start; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.side .check { margin-bottom: 0; padding: 18px 18px 20px; }
.side .check-body { margin-left: 0; }
.side .gauge { max-width: 280px; }
.side .go { width: 104px; height: 104px; font-size: 1.4rem; }
.side .facts { grid-template-columns: minmax(7.5rem, max-content) minmax(0, 1fr); gap: 4px 14px; }
.about { grid-area: about; margin-top: 8px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

h1 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: 0.05em;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--action);
  text-shadow: 0 0 6px rgba(6, 182, 212, 0.55), 0 0 18px rgba(8, 145, 178, 0.35);
  margin: 0;
}
.lead { font-size: 1rem; line-height: 1.65; color: #d1d5db; max-width: 62ch; margin: 0 0 22px; }

.run { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.run-status { margin: 0; color: var(--muted); }
.run-status:empty { display: none; }

/* Shortcut to the system report: the same five devices, one tap picks it and scrolls there */
.hc-pick { margin-top: 20px; }
.hc-label { margin: 0 0 8px; color: var(--muted); font-size: 0.875rem; }
.hc-os { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hc-os-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 14px;
  border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink); font-size: 0.875rem; font-weight: 600; text-decoration: none;
}
.hc-os-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.hc-os-btn:hover, .hc-os-btn:focus-visible { border-color: var(--action); }
.hc-os-btn[data-here="true"] { border-color: var(--action); color: var(--action); }

.ledger-jump { display: none; margin-top: 16px; font-size: 0.9375rem; }
.old-browser { margin: 18px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--warn-soft); color: var(--ink); font-size: 0.9375rem; max-width: 56ch; }
.js .old-browser { display: none; }

/* Buttons */
.btn {
  font: inherit; font-weight: 700; line-height: 1.2;
  border-radius: 999px; padding: 12px 26px;
  border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--action-strong); color: var(--action-ink); }
.btn-primary:hover { background: var(--action); }
.btn-secondary { background: transparent; color: var(--action); border-color: var(--action); }
.btn-secondary:hover { background: var(--action-soft); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); padding: 10px 14px; font-size: 0.9375rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Checks */
.check {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 24px; margin-bottom: 16px;
}

.check-head {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  column-gap: 14px;
  align-items: start;
}
.mark { width: 28px; height: 28px; margin-top: 2px; color: var(--line-strong); }
.check h3 { margin: 0; font-family: var(--display); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--action); line-height: 1.3; }
.question { margin: 2px 0 0; color: var(--muted); }

.pill {
  font-size: 0.8125rem; font-weight: 700; line-height: 1.2;
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
  color: var(--muted); border: 1px dashed var(--line-strong);
}

.check[data-status="running"] .mark { color: var(--action); animation: spin 0.9s linear infinite; }
.check[data-status="running"] .pill { color: var(--action); border: 1px solid var(--action); }
.check[data-status="ok"] .mark { color: var(--ok); }
.check[data-status="ok"] .pill { color: var(--ok); background: var(--ok-soft); border: 1px solid transparent; }
.check[data-status="warn"] .mark { color: var(--warn); }
.check[data-status="warn"] .pill { color: var(--warn); background: var(--warn-soft); border: 1px solid transparent; }
.check[data-status="risk"] .mark { color: var(--risk); }
.check[data-status="risk"] .pill { color: var(--risk); background: var(--risk-soft); border: 1px solid transparent; }
.check[data-status="info"] .mark { color: var(--info); }
.check[data-status="info"] .pill { color: var(--info); background: var(--info-soft); border: 1px solid transparent; }
.check[data-status="error"] .mark { color: var(--muted); }
.check[data-status="error"] .pill { color: var(--muted); background: var(--info-soft); border: 1px solid transparent; }

@keyframes spin { to { transform: rotate(360deg); } }

.check-body { margin-left: 44px; }
.verdict { margin: 14px 0 0; font-size: 1.125rem; max-width: 60ch; }
.verdict:empty { display: none; }

.facts {
  display: grid;
  grid-template-columns: minmax(9.5rem, max-content) minmax(0, 1fr);
  gap: 6px 20px;
  margin: 14px 0 0;
  font-size: 0.9375rem;
}
.facts:empty { display: none; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.facts ul { list-style: none; margin: 0; padding: 0; }
.facts li + li { margin-top: 4px; }

.data { font-family: var(--mono); font-size: 0.9375em; }

.note { margin: 14px 0 0; font-size: 0.9375rem; color: var(--muted); max-width: 62ch; }
.note:empty { display: none; }

.fix {
  margin: 16px 0 0; padding: 12px 16px;
  border-left: 4px solid var(--info); background: var(--info-soft);
  border-radius: 0 10px 10px 0; max-width: 62ch;
}
.fix:empty { display: none; }
.check[data-status="warn"] .fix { border-left-color: var(--warn); background: var(--warn-soft); }
.check[data-status="risk"] .fix { border-left-color: var(--risk); background: var(--risk-soft); }

.pdf-hint { flex-basis: 100%; margin: 0; font-size: 0.875rem; color: var(--muted); }
.btn[hidden], .pdf-hint[hidden] { display: none; }

/* Speed test */
.speed-ui { margin: 16px 0 4px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gauge { position: relative; width: 100%; max-width: 340px; }
.gauge-svg { display: block; width: 100%; height: auto; }
.go {
  position: absolute; left: 50%; top: 55.5%; transform: translate(-50%, -50%);
  width: 128px; height: 128px; border-radius: 50%;
  border: 2px solid var(--action); background: radial-gradient(circle at 50% 40%, #0e2a3a, #0a0a1a 70%); color: var(--action);
  font: 900 1.75rem/1 var(--display); letter-spacing: 0.08em; cursor: pointer;
  box-shadow: 0 0 28px rgba(6, 182, 212, 0.45), inset 0 0 18px rgba(34, 211, 238, 0.18);
}
.go:hover { background: var(--action-strong); color: var(--action-ink); }
.go[disabled] { display: none; }
.go.again { position: static; transform: none; width: auto; height: auto; border-radius: 999px; padding: 12px 26px; font: 700 1rem/1.2 var(--font); letter-spacing: 0; margin: 4px auto 0; display: block; }
@media (max-width: 560px) { .go { width: 100px; height: 100px; font-size: 1.4rem; } }
.speed-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.speed-actions .btn[hidden] { display: none; }
.speed-warn { margin: 0; font-size: 0.875rem; color: var(--muted); text-align: center; }

/* Password form */
.pw-form { margin: 18px 0 0 44px; max-width: 32rem; }
.pw-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.pw-row { display: flex; gap: 8px; }
.pw-row input {
  flex: 1; min-width: 0;
  font: inherit; padding: 11px 13px;
  border: 2px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--ink);
}
.pw-row input:focus-visible { outline-offset: 0; border-color: var(--action); }
.pw-hint { margin: 8px 0 14px; font-size: 0.9375rem; color: var(--muted); }
.pw-error { margin: -6px 0 12px; color: var(--risk); font-weight: 700; font-size: 0.9375rem; }
.pw-error:empty { display: none; }

/* Hash strip: the k-anonymity picture */
.hash { margin: 16px 0 0; }
.hash[hidden] { display: none; }
.hash-code {
  margin: 0;
  font-family: var(--mono); font-size: 1.0625rem;
  letter-spacing: 0.08em; line-height: 2; word-break: break-all;
}
.hash-out { background: var(--action); color: var(--action-ink); padding: 3px 5px; border-radius: 5px; margin-right: 4px; white-space: nowrap; }
.hash-kept { color: var(--line-strong); word-break: break-all; line-break: anywhere; }
.hash-code { overflow-wrap: anywhere; line-break: anywhere; }
.hash-legend { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 4px 0 0; font-size: 0.875rem; color: var(--muted); }
.hash-legend span::before {
  content: ""; display: inline-block; width: 0.75em; height: 0.75em;
  margin-right: 7px; border-radius: 2px; vertical-align: -0.05em;
}
.hash-legend .k-out::before { background: var(--action); }
.hash-legend .k-kept::before { border: 1.5px solid var(--line-strong); }
.hash-caption { margin: 8px 0 0; font-size: 0.9375rem; color: var(--muted); max-width: 62ch; }

/* Outbound ledger */
.ledger {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
}
.ledger h2 { font-family: var(--display); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--action); line-height: 1.3; margin: 0; }
.ledger-count { margin: 4px 0 14px; color: var(--muted); font-size: 0.9375rem; }
.ledger-empty { margin: 0 0 4px; color: var(--muted); }
.ledger-empty[hidden] { display: none; }
.ledger-list { list-style: none; margin: 0; padding: 0; }
.ledger-item { padding: 12px 8px; margin: 0 -8px; border-top: 1px solid var(--line); border-radius: 8px; }
.ledger-item:first-child { border-top: 0; padding-top: 6px; }
.ledger-item.is-new { animation: arrive 1.8s ease-out; }
@keyframes arrive { from { background: var(--action-soft); } to { background: transparent; } }
.ledger-time { display: block; font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ledger-host { font-weight: 700; word-break: break-all; }
.ledger-purpose { margin: 2px 0 0; font-size: 0.9375rem; }
.ledger-sent { margin: 6px 0 0; font-size: 0.9375rem; color: var(--muted); }
.ledger-sent .data {
  color: var(--ink); background: var(--action-soft);
  padding: 1px 6px; border-radius: 4px; margin-left: 4px; word-break: break-all;
}
.ledger-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }

/* System report (Windows reports read on this device) */
.system {
  grid-area: system; min-width: 0; margin: 24px 0 16px; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.system h2 { font-family: var(--display); font-size: 1.15rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--action); margin: 0; }
.system-lead { margin: 6px 0 0; color: var(--muted); max-width: 72ch; }
.sys-banner { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--action-soft); border: 1px solid rgba(34, 211, 238, 0.25); }
.sys-banner:empty { display: none; }
.sys-glyph { width: 26px; height: 26px; flex-shrink: 0; color: var(--action); }
/* Five buttons: three columns on phones, five from 600 px */
.sys-os { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; }
@media (min-width: 600px) { .sys-os { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.sys-os-btn {
  display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px 8px; min-height: 44px; min-width: 0;
  font: inherit; font-weight: 700; padding: 8px 10px; border-radius: 22px; cursor: pointer; text-align: center; overflow-wrap: break-word;
  background: transparent; color: var(--ink); border: 2px solid var(--line-strong);
}
.sys-os-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.sys-os-btn:hover { border-color: var(--action); }
.sys-os-btn[aria-pressed="true"] { background: var(--action-strong); color: var(--action-ink); border-color: var(--action-strong); }
/* Narrow cells: the glyph sits above the label */
@media (max-width: 599px) { .sys-os-btn { flex-direction: column; padding: 6px 4px; font-size: 0.9375rem; border-radius: 16px; } }
.sys-steps[hidden], .sys-results[hidden] { display: none; }

.sys-step-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sys-step { display: flex; flex-direction: column; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.sys-step h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 0; font-size: 1rem; }
.sys-step-no { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--action-strong); color: var(--action-ink); font: 700 0.9rem/1 var(--display); }
.sys-optional { font-weight: 400; font-size: 0.875rem; color: var(--muted); }
.sys-how { margin: 10px 0 12px; padding-left: 20px; font-size: 0.9375rem; flex: 1; }
.sys-how li + li { margin-top: 6px; }
.sys-how code, .sys-how kbd { font-family: var(--mono); font-size: 0.875em; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 5px; padding: 0 5px; overflow-wrap: anywhere; }
.sys-cmd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 0; }
.sys-cmd code { display: block; flex: 1 1 12rem; min-width: 0; padding: 6px 8px; word-break: break-all; }
.sys-copy { padding: 6px 12px; font-size: 0.875rem; min-height: 36px; }
/* Linux: one column of paste boxes, each with its read-only command */
.sys-paste-list { grid-template-columns: minmax(0, 1fr); }
.sys-linux .sys-cmd code { font-family: var(--mono); font-size: 0.875rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 5px; overflow-wrap: anywhere; }
/* Mac: two file steps; the folder paths sit inside the sentence with their copy buttons */
.sys-mac .sys-step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sys-mac .sys-cmd code { font-family: var(--mono); font-size: 0.875rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 5px; overflow-wrap: anywhere; }
.sys-path { display: inline-flex; vertical-align: middle; max-width: 100%; margin: 4px 0; }
.sys-path code { flex: 0 1 auto; }
.sys-mac-phone { margin: 14px 0 0; }
.sys-mac-phone[hidden] { display: none; }
/* iPhone: three steps; the battery field is 16 px or more so iOS Safari does not zoom in on focus */
.sys-field-label { display: block; margin: 0 0 6px; font-size: 0.9375rem; font-weight: 700; }
.sys-number { display: block; width: 6em; max-width: 100%; min-height: 44px; padding: 8px 10px; font: inherit; font-size: max(1rem, 16px); border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); }
.sys-number:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; border-color: var(--action); }
.sys-ios .sys-actions .btn { min-height: 44px; }
/* Android: four steps in two columns; the Developer options reminder sits with the results */
.sys-android .sys-step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sys-android .sys-actions .btn { min-height: 44px; }
.sys-reminder { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--action-soft); border: 1px solid rgba(34, 211, 238, 0.25); max-width: 80ch; font-size: 0.9375rem; }
.sys-what { margin: 8px 0 0; font-size: 0.9375rem; max-width: 80ch; }
.sys-readonly { margin: 8px 0 0; font-size: 0.875rem; color: var(--ok); }
.sys-note { margin: 6px 0 0; font-size: 0.875rem; color: var(--muted); max-width: 80ch; }
.sys-paste-label { margin: 12px 0 6px; font-size: 0.875rem; font-weight: 700; }
.sys-paste { display: block; width: 100%; max-width: 100%; min-height: 8rem; margin: 0; padding: 8px 10px; resize: vertical; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font: 0.8125rem/1.45 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.sys-paste:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; border-color: var(--action); }
.sys-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.sys-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 84px; padding: 12px; text-align: center; cursor: pointer;
  border: 2px dashed var(--line-strong); border-radius: 10px; color: var(--action);
}
.sys-drop:hover, .sys-drop.is-over { border-color: var(--action); background: var(--action-soft); }
.sys-file:focus-visible + .sys-drop { outline: 3px solid var(--action); outline-offset: 2px; }
.sys-drop-main { font-weight: 700; }
.sys-drop-sub { font-size: 0.875rem; color: var(--muted); }
.sys-msg { margin: 10px 0 0; font-size: 0.9375rem; }
.sys-msg:empty { display: none; }
.sys-step[data-state="ok"] { border-color: rgba(52, 211, 153, 0.5); }
.sys-step[data-state="ok"] .sys-msg { color: var(--ok); }
.sys-step[data-state="error"] { border-color: rgba(248, 113, 113, 0.5); }
.sys-step[data-state="error"] .sys-msg { color: var(--risk); }
.sys-step[data-state="reading"] .sys-msg { color: var(--muted); }
.sys-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 20px 0 0; }
.sys-status { margin: 0; color: var(--muted); }
.sys-status:empty { display: none; }
.sys-privacy { margin: 10px 0 0; font-size: 0.875rem; color: var(--muted); }

.sys-results { margin: 24px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.sys-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.sys-ring {
  --score: 0; --ring: var(--ok);
  position: relative; flex-shrink: 0; width: 132px; height: 132px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: conic-gradient(var(--ring) calc(var(--score) * 1%), var(--line-strong) 0);
}
.sys-ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--surface); }
.sys-ring > span { position: relative; }
.sys-ring[data-band="warn"] { --ring: var(--warn); }
.sys-ring[data-band="risk"] { --ring: var(--risk); }
.sys-score { font: 900 2.2rem/1 var(--display); color: var(--ink); }
.sys-score-of { font-size: 0.8125rem; color: var(--muted); }
.sys-summary-text { flex: 1 1 16rem; min-width: 0; }
.sys-summary-text h3 { margin: 0; font-family: var(--display); font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--action); }
.sys-verdict { margin: 6px 0 0; font-size: 1.125rem; }
.sys-date { margin: 4px 0 0; font-size: 0.875rem; color: var(--muted); }
.sys-subtitle { margin: 24px 0 10px; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sys-none { margin: 0; color: var(--ok); }
.sys-findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sys-finding { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--info); }
.sys-finding[data-severity="warn"] { border-left-color: var(--warn); }
.sys-finding[data-severity="risk"] { border-left-color: var(--risk); }
.sys-finding[data-severity="ok"] { border-left-color: var(--ok); }
.sys-finding[data-severity="ok"] .sys-mark, .sys-finding[data-severity="ok"] .sys-sev { color: var(--ok); }
.sys-mark { width: 24px; height: 24px; margin-top: 2px; color: var(--info); }
.sys-finding[data-severity="warn"] .sys-mark { color: var(--warn); }
.sys-finding[data-severity="risk"] .sys-mark { color: var(--risk); }
.sys-finding-title { margin: 0; font-weight: 700; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.sys-sev { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.sys-finding[data-severity="warn"] .sys-sev { color: var(--warn); }
.sys-finding[data-severity="risk"] .sys-sev { color: var(--risk); }
.sys-detail { margin: 6px 0 0; font-size: 0.9375rem; color: var(--muted); max-width: 80ch; }
.sys-fix { margin: 8px 0 0; font-size: 0.9375rem; max-width: 80ch; }
.sys-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 10px; margin: 0; }
.sys-tile { min-width: 0; padding: 12px 14px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); }
.sys-tile dt { font-size: 0.8125rem; color: var(--muted); }
.sys-tile dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.sys-ai { margin: 8px 0 0; }
.sys-ai-disclosure { margin: 0; padding: 12px 16px; border-left: 4px solid var(--info); background: var(--info-soft); border-radius: 0 10px 10px 0; max-width: 72ch; }
.sys-ai-disclosure:focus { outline: none; }
.sys-ai-label { margin: 14px 0 6px; font-size: 0.875rem; color: var(--muted); }
.sys-ai-summary { margin: 0; max-height: 18rem; overflow: auto; padding: 12px 14px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); font: 0.8125rem/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.sys-ai-actions { display: flex; flex-wrap: wrap; gap: 10px 12px; margin: 14px 0 0; }
.sys-ai-error { margin: 10px 0 0; color: var(--risk); max-width: 72ch; }
.sys-ai-error:empty { display: none; }
.sys-ai-text { margin: 16px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--action); max-width: 80ch; }
.sys-ai-text:focus { outline: none; }
.sys-ai-text p { margin: 0; }
.sys-ai-text p + p { margin-top: 10px; }
.sys-ai-by { margin: 8px 0 0; font-size: 0.875rem; color: var(--muted); max-width: 80ch; }

/* About and footer */
.about h2 { font-family: var(--display); font-size: 1rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--action); margin: 0 0 12px; }
.about p { margin: 0 0 12px; color: var(--muted); }
.about .credits { font-size: 0.9375rem; }

.foot { max-width: 1152px; margin: 0 auto; padding: 0 16px 40px; color: var(--muted); font-size: 0.9375rem; }
.foot p { margin: 0; border-top: 1px solid var(--line); padding-top: 18px; }

/* Small screens */
@media (max-width: 899px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "checks" "ledger" "system" "about";
    padding: 12px 16px 40px;
  }
  .site-nav { width: 100%; }
  .side { margin-top: 36px; }
  .sys-step-list, .sys-mac .sys-step-list, .sys-android .sys-step-list { grid-template-columns: minmax(0, 1fr); }
  .ledger-jump { display: inline-block; }
  .intro { padding-bottom: 28px; }
  .foot { padding: 0 16px 32px; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .lead { font-size: 1.0625rem; }
  .check-head { grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; }
  .pill { grid-column: 2; justify-self: start; margin-top: 10px; }
  .check-body,
  .pw-form { margin-left: 40px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .facts dd { margin-bottom: 8px; }
  .run .btn-primary { width: 100%; }
  .system { padding: 18px 16px; }
  .sys-actions .btn-primary { width: 100%; }
  .sys-ring { width: 112px; height: 112px; }
}

@media (prefers-reduced-motion: reduce) {
  .check[data-status="running"] .mark { animation: none; }
  .ledger-item.is-new { animation: none; }
}

/* PDF report: built at click time, shown only when printing */
.report[hidden] { display: none; }
@media print {
  @page { size: A4; margin: 16mm 14mm; }
  body { background: #fff !important; color: #111; }
  body > *:not(.report) { display: none !important; }
  .report, .report[hidden] { display: block !important; font: 11pt/1.45 "Roboto", Arial, sans-serif; color: #111; }
  .report-head { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid #06b6d4; padding-bottom: 10px; margin-bottom: 14px; }
  .report-head img { width: 56px; height: 56px; border-radius: 50%; }
  .report h1 { font: 900 20pt/1.1 "Orbitron", Arial, sans-serif; color: #0e7490; text-shadow: none; margin: 0; text-transform: uppercase; }
  .report-meta { margin: 2px 0 0; color: #555; font-size: 9.5pt; word-break: break-all; }
  .report-check { break-inside: avoid; border: 1px solid #d1d5db; border-left: 4px solid #06b6d4; border-radius: 6px; padding: 8px 12px; margin: 0 0 10px; }
  .report-check h2 { font: 700 12pt/1.3 "Roboto", Arial, sans-serif; margin: 0; display: flex; justify-content: space-between; gap: 12px; }
  .report-pill { font-size: 9.5pt; color: #0e7490; }
  .report-check[data-status="risk"] .report-pill { color: #b42318; }
  .report-check[data-status="warn"] .report-pill { color: #8f5400; }
  .report-check p { margin: 4px 0 0; }
  .report-check dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 14px; margin: 6px 0 0; font-size: 9.5pt; }
  .report-check dt { color: #555; }
  .report-check dd { margin: 0; word-break: break-word; }
  .report-fix { font-size: 9.5pt; color: #333; }
  .report-sys { break-inside: auto; }
  .report-check h3 { font: 700 10.5pt/1.3 "Roboto", Arial, sans-serif; margin: 10px 0 0; }
  .report-findings { margin: 4px 0 0; padding-left: 18px; font-size: 10pt; }
  .report-findings li { break-inside: avoid; margin: 0 0 6px; }
  .report-ledger { break-inside: avoid; font-size: 9pt; margin: 8px 0 0; padding-left: 18px; }
  .report-foot { margin-top: 14px; padding-top: 8px; border-top: 1px solid #d1d5db; color: #555; font-size: 9pt; }
}
