/* Интерфейс проверки ПО. Без внешних шрифтов, скриптов и CDN — работает в закрытом контуре. */

:root {
  color-scheme: light dark;
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --border: #e2e6ee;
  --text: #0f1729;
  --muted: #5d687c;
  --accent: #3455d6;
  --accent-hover: #2842b3;
  --accent-weak: #e9eeff;
  --red: #c4261d;     --red-bg: #fdeeec;     --red-line: #f6c7c2;
  --orange: #b4500a;  --orange-bg: #fff3e3;  --orange-line: #fbd9aa;
  --yellow: #8a6500;  --yellow-bg: #fff8d9;  --yellow-line: #f2e08c;
  --green: #0b7a47;   --green-bg: #e7f7ee;   --green-line: #b8e5cd;
  --blue: #1d5fd1;    --blue-bg: #eaf2ff;    --blue-line: #c3d8fb;
  --grey: #4b5568;    --grey-bg: #eef0f5;    --grey-line: #d9dde6;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 41, .05), 0 6px 20px rgba(15, 23, 41, .05);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1118;
    --surface: #151b25;
    --surface-2: #1a212d;
    --border: #283142;
    --text: #e8ecf3;
    --muted: #9aa5b8;
    --accent: #7f9bff;
    --accent-hover: #a2b6ff;
    --accent-weak: #1d2745;
    --red: #ff8a80;     --red-bg: #3a1a1a;     --red-line: #66302d;
    --orange: #ffb067;  --orange-bg: #38250f;  --orange-line: #66431c;
    --yellow: #f1d065;  --yellow-bg: #342c0c;  --yellow-line: #5c4e16;
    --green: #5bd49a;   --green-bg: #11301f;   --green-line: #1f5a3b;
    --blue: #8db6ff;    --blue-bg: #14264a;    --blue-line: #274a85;
    --grey: #b4bccb;    --grey-bg: #222a38;    --grey-line: #36415a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 6px; }

/* ---------- каркас ---------- */
.container { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--text); text-decoration: none; }
.brand svg { color: var(--accent); }
.brand small { color: var(--muted); font-weight: 450; margin-left: 2px; }
main { padding: 28px 0 56px; }
.footer { padding: 8px 0 40px; color: var(--muted); font-size: 13px; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 24px;
}
.card + .card, .stack > * + * { margin-top: 16px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h3 { font-size: 18px; }
.section-head .sub { color: var(--muted); font-size: 13px; }

/* ---------- кнопки и поля ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  padding: 9px 14px; border-radius: 10px; cursor: pointer; font-weight: 550; line-height: 1.2;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--border) 60%, var(--muted)); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
@media (prefers-color-scheme: dark) { .btn.primary { color: #0b1020; } }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.small { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn svg { flex: none; }

input[type="text"], input[type="password"], select {
  min-height: 44px;
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
input[type="text"]:focus, input[type="password"]:focus, select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
label.field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
label.check { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 14px; color: var(--text); }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }

/* ---------- форма поиска ---------- */
.hero { padding: 30px 28px 24px; }
.hero h1 { font-size: 26px; }
.hero .lead { color: var(--muted); margin-top: 6px; max-width: 62ch; }
.search-row { display: flex; gap: 10px; margin-top: 20px; }
.search-input { position: relative; flex: 1; }
.search-input svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-input input { height: 52px; padding-left: 44px; font-size: 16px; }
.search-row .btn.primary { height: 52px; padding: 0 24px; font-size: 16px; }
details.adv { margin-top: 14px; }
details.adv > summary { cursor: pointer; color: var(--muted); font-size: 14px; list-style: none; display: inline-flex; align-items: center; gap: 6px; user-select: none; }
details.adv > summary::-webkit-details-marker { display: none; }
details.adv > summary svg { transition: transform .15s; }
details.adv[open] > summary svg { transform: rotate(90deg); }
.adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 14px; align-items: end; }
.adv-checks { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; grid-column: 1 / -1; }
.recent { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.recent .label { color: var(--muted); font-size: 13px; }
.recent-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface-2); font-size: 13px; color: var(--text);
}
.recent-chip:hover { border-color: var(--accent); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grey); flex: none; }
.dot.red { background: var(--red); } .dot.orange { background: var(--orange); } .dot.green { background: var(--green); }
.dot.yellow { background: var(--yellow); } .dot.blue { background: var(--blue); } .dot.grey { background: var(--grey); }
.hero-links { margin-top: 12px; font-size: 13px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.hero-links button { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font-size: 13px; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- чипы ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 550;
  border: 1px solid var(--grey-line); background: var(--grey-bg); color: var(--grey); white-space: nowrap; line-height: 1.6;
}
.chip.red { background: var(--red-bg); color: var(--red); border-color: var(--red-line); }
.chip.orange { background: var(--orange-bg); color: var(--orange); border-color: var(--orange-line); }
.chip.yellow { background: var(--yellow-bg); color: var(--yellow); border-color: var(--yellow-line); }
.chip.green { background: var(--green-bg); color: var(--green); border-color: var(--green-line); }
.chip.blue { background: var(--blue-bg); color: var(--blue); border-color: var(--blue-line); }
.chip.solid.red { background: var(--red); color: #fff; border-color: var(--red); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
@media (prefers-color-scheme: dark) { .chip.solid.red { color: #2b0a07; } }

.tone-red { --tone: var(--red); --tone-bg: var(--red-bg); --tone-line: var(--red-line); }
.tone-orange { --tone: var(--orange); --tone-bg: var(--orange-bg); --tone-line: var(--orange-line); }
.tone-yellow { --tone: var(--yellow); --tone-bg: var(--yellow-bg); --tone-line: var(--yellow-line); }
.tone-green { --tone: var(--green); --tone-bg: var(--green-bg); --tone-line: var(--green-line); }
.tone-blue { --tone: var(--blue); --tone-bg: var(--blue-bg); --tone-line: var(--blue-line); }
.tone-grey { --tone: var(--grey); --tone-bg: var(--grey-bg); --tone-line: var(--grey-line); }

/* ---------- загрузка ---------- */
.loading { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading h3 { font-size: 17px; }
.loading .chips { margin-top: 10px; }
.loading .src { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.loading .src::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
.loading .src:nth-child(2)::before { animation-delay: .2s; } .loading .src:nth-child(3)::before { animation-delay: .4s; }
.loading .src:nth-child(4)::before { animation-delay: .6s; } .loading .src:nth-child(5)::before { animation-delay: .8s; }
@keyframes pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .spinner, .loading .src::before { animation: none; } html { scroll-behavior: auto; } }

#status:not(:empty), #report:not(:empty) { margin-top: 16px; }

/* ---------- сообщения ---------- */
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--tone-line); background: var(--tone-bg); color: var(--text); }
.callout > svg { flex: none; color: var(--tone); margin-top: 2px; }
.callout .title { font-weight: 650; color: var(--tone); }
.callout ul { margin: 6px 0 0; padding-left: 18px; }
.callout .actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.demo-banner { margin-bottom: 16px; }

/* ---------- итог ---------- */
.summary { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; border-left: 6px solid var(--tone); padding: 24px 26px; }
.summary-icon { width: 58px; height: 58px; border-radius: 16px; background: var(--tone-bg); color: var(--tone); display: grid; place-items: center; }
.eyebrow { color: var(--muted); font-size: 13px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.summary h2 { font-size: 26px; margin-top: 4px; overflow-wrap: anywhere; }
.verdict { display: inline-flex; margin-top: 10px; font-size: 14px; font-weight: 650; padding: 4px 12px; border-radius: 999px; background: var(--tone-bg); color: var(--tone); border: 1px solid var(--tone-line); }
.headline { margin-top: 12px; font-size: 16px; }
.summary h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 18px 0 8px; }
.reasons { margin: 0; padding-left: 20px; display: grid; gap: 5px; }
.todo { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: todo; }
.todo li { counter-increment: todo; display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.todo li::before { content: counter(todo); width: 24px; height: 24px; border-radius: 50%; background: var(--tone-bg); color: var(--tone); font-weight: 700; font-size: 13px; display: grid; place-items: center; border: 1px solid var(--tone-line); }
.prio-block { text-align: center; min-width: 128px; align-self: start; padding: 10px 14px; border-radius: 14px; background: var(--tone-bg); border: 1px solid var(--tone-line); }
.prio-block .letter { font-size: 44px; font-weight: 750; line-height: 1; color: var(--tone); }
.prio-block .cap { font-weight: 650; margin-top: 6px; }
.prio-block .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.actions-bar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin: 14px 0 0; }

/* ---------- плитки ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.kpi .label { color: var(--muted); font-size: 12.5px; }
.kpi .value { font-size: 22px; font-weight: 700; margin-top: 4px; color: var(--tone, var(--text)); letter-spacing: -.01em; }
.kpi .hint { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* ---------- навигация ---------- */
.nav { position: sticky; top: 56px; z-index: 15; margin: 18px 0 0; padding: 8px 0; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.nav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; width: max-content; max-width: 100%; }
.nav a { padding: 7px 14px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 550; font-size: 14px; white-space: nowrap; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--accent-weak); color: var(--accent); }
.nav .count { margin-left: 6px; font-size: 12px; background: var(--surface-2); padding: 1px 7px; border-radius: 999px; color: var(--muted); }

/* ---------- уязвимости ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filter { border: 1px solid var(--border); background: var(--surface-2); border-radius: 999px; padding: 5px 12px; cursor: pointer; font-size: 13px; font-weight: 550; color: var(--muted); }
.filter[aria-pressed="true"] { background: var(--accent-weak); border-color: var(--accent); color: var(--accent); }
.legend { margin: 0 0 14px; font-size: 13px; }
.legend > summary { cursor: pointer; color: var(--muted); }
.legend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin-top: 10px; }
.legend-grid > div { border: 1px solid var(--tone-line); background: var(--tone-bg); border-radius: 10px; padding: 10px 12px; }
.legend-grid b { color: var(--tone); }
.vuln-list { display: grid; gap: 10px; }
.vuln { border: 1px solid var(--border); border-left: 5px solid var(--tone, var(--grey)); border-radius: 12px; background: var(--surface); }
.vuln[open] { box-shadow: var(--shadow); }
.vuln > summary { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; padding: 14px 16px; cursor: pointer; list-style: none; align-items: start; }
.vuln > summary::-webkit-details-marker { display: none; }
.vuln > summary:hover { background: var(--surface-2); border-radius: 12px; }
.pill { display: inline-grid; place-items: center; height: 30px; min-width: 46px; padding: 0 10px; border-radius: 9px; font-weight: 750; background: var(--tone-bg); color: var(--tone); border: 1px solid var(--tone-line); }
.vuln .ids { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-family: var(--mono); font-size: 13px; font-weight: 600; }
.vuln .title { margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.vuln[open] .title { display: block; -webkit-line-clamp: unset; }
.vuln .chips { margin-top: 8px; }
.score { text-align: center; min-width: 64px; }
.score .n { font-size: 20px; font-weight: 750; color: var(--tone); line-height: 1.1; }
.score .l { font-size: 11.5px; color: var(--muted); }
.vuln-body { padding: 4px 18px 18px 18px; border-top: 1px solid var(--border); column-width: 320px; column-gap: 36px; }
.vuln-body > div { break-inside: avoid; padding: 14px 0 6px; }
.vuln-body > .full { column-span: all; }
.vuln-body h5 { margin: 0 0 7px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.vuln-body ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
dl.facts .meter { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: var(--grey); }
dl.facts .meter.red { background: var(--red); } dl.facts .meter.orange { background: var(--orange); } dl.facts .meter.green { background: var(--green); }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.empty svg { color: var(--tone); }
.empty b { display: block; color: var(--text); font-size: 16px; margin: 8px 0 4px; }

/* ---------- срок поддержки ---------- */
.lc-banner { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--tone-line); background: var(--tone-bg); }
.lc-banner svg { color: var(--tone); flex: none; }
.lc-banner b { color: var(--tone); font-size: 16px; }
.timeline { margin: 26px 8px 28px; }
.tl-track { position: relative; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--green-line) 0 var(--eol), var(--red-line) var(--eol) 100%); }
.tl-mark { position: absolute; top: -6px; width: 2px; height: 20px; background: var(--text); border-radius: 2px; }
.tl-mark span { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12px; color: var(--muted); }
.tl-mark.up span { top: -22px; }
.tl-mark.eol { background: var(--red); } .tl-mark.today { background: var(--accent); }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 24px; margin-top: 8px; }
.facts-grid .k { color: var(--muted); font-size: 12.5px; }
.facts-grid .v { font-weight: 500; overflow-wrap: anywhere; }

/* ---------- российский контур ---------- */
.ru-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.ru-item { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: var(--surface-2); }
.ru-item h4 { font-size: 14px; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ru-item .big { font-size: 17px; font-weight: 650; }
.ru-item ul { margin: 6px 0 0; padding-left: 18px; }
.ru-item.tone-red, .ru-item.tone-orange { background: var(--tone-bg); border-color: var(--tone-line); }
.ru-item .chip { white-space: normal; border-radius: 10px; }
.ru-item dl.facts { grid-template-columns: 1fr; gap: 0; }
.ru-item dl.facts dt { font-size: 12.5px; }
.ru-item dl.facts dd { margin: 0 0 9px; font-weight: 550; }

/* ---------- рекомендации ---------- */
.recs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rec { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.rec .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--tone-bg); color: var(--tone); display: grid; place-items: center; }
.rec .kind { font-size: 12.5px; font-weight: 650; color: var(--tone); text-transform: uppercase; letter-spacing: .04em; }
.rec .due { margin-top: 6px; font-size: 13px; color: var(--muted); }
.rec .basis { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ---------- источники ---------- */
.table-wrap { overflow-x: auto; }
table.sources { width: 100%; border-collapse: collapse; font-size: 14px; }
table.sources th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--border); }
table.sources td { padding: 11px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.sources tr:last-child td { border-bottom: 0; }
.disclaimer { margin-top: 14px; color: var(--muted); font-size: 13px; }
pre.json { margin: 12px 0 0; max-height: 520px; overflow: auto; padding: 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; font: 12.5px/1.5 var(--mono); white-space: pre-wrap; word-break: break-word; }

/* ---------- распознавание ---------- */
.alt-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.alt { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.alt .name { font-weight: 600; }

/* ---------- адаптив ---------- */
@media (max-width: 760px) {
  .container { padding: 0 14px; }
  .hero { padding: 22px 18px 18px; }
  .hero h1 { font-size: 22px; }
  .search-row { flex-direction: column; }
  .search-row .btn.primary { width: 100%; }
  .summary { grid-template-columns: auto 1fr; gap: 14px 16px; padding: 20px 18px; }
  .summary-icon { width: 48px; height: 48px; }
  .summary-main { grid-column: 1 / -1; grid-row: 2; }
  .prio-block { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; text-align: left; display: flex; gap: 12px; align-items: center; padding: 8px 14px; }
  .prio-block .letter { font-size: 32px; }
  dl.facts { grid-template-columns: 1fr; gap: 0; }
  dl.facts dt { margin-top: 8px; font-size: 12.5px; }
  .vuln > summary { grid-template-columns: 1fr auto; }
  .vuln > summary .pill { grid-column: 1; justify-self: start; }
  .vuln > summary > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .loading { grid-template-columns: auto 1fr; }
  .loading .btn { grid-column: 1 / -1; }
  .card { padding: 18px 16px; }
}

/* ---------- печать / PDF ---------- */
@media print {
  :root { --bg: #fff; --shadow: none; }
  body { background: #fff; color: #000; font-size: 12px; }
  .topbar, #search, #authbox, .nav, .actions-bar, .filters, .hero-links, .footer, #status .btn, .vuln > summary::after { display: none !important; }
  .card, .kpi, .vuln { box-shadow: none; }
  .summary, .kpi, .vuln, .rec, .ru-item, .lc-banner { break-inside: avoid; }
  .vuln-body { display: grid; }
  a { color: inherit; text-decoration: none; }
}
