/* Self-hosted IBM Plex fonts (strict font-src 'self') */
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/plexsans-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/plexsans-600.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/plexmono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/plexmono-500.woff2') format('woff2'); }

/* ============================================================
   Quantum Radar — design tokens (mirror of REDLINES.md §1)
   ============================================================ */
:root {
  --canvas: #F3F5F7; --surface: #FFFFFF; --surface-tint: #F8FAFC;
  --rule: #D5DCE4; --rule-strong: #B8C4D0; --rule-hover: #9DABB9;
  --ink: #141C24; --muted: #52606F;
  --accent: #1D5BD6; --accent-hover: #1A51BF; --accent-press: #16469F;
  --accent-soft: #EBF2FF; --accent-ring: rgba(29, 91, 214, 0.14);
  --pqc: #137A5B; --pqc-soft: #E8F6F1; --pqc-rule: #A9D9C8;
  --transitional: #B45309; --transitional-soft: #FEF4E6; --transitional-rule: #F2CB94;
  --classical: #B91C1C; --classical-soft: #FDECEC; --classical-rule: #F1B9B9;
  --none: #788593; --none-soft: #F1F4F7; --none-rule: #D5DCE4;
  --font-sans: 'IBM Plex Sans', 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --shadow-field: 0 1px 2px rgba(20, 28, 36, 0.06);
  --shadow-focus: 0 0 0 4px var(--accent-ring);
  --shadow-pop: 0 8px 24px rgba(20, 28, 36, 0.12), 0 1px 2px rgba(20, 28, 36, 0.06);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --container: 1200px;
}

/* ============================================================
   Product UI — scoped under .qr, laid out by container queries
   ============================================================ */
html, body {
  margin: 0; padding: 0; min-height: 100%;
  background: var(--canvas); color: var(--ink);
  font: 400 14px/20px var(--font-sans); -webkit-font-smoothing: antialiased;
}
.qr { container: page / inline-size; position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip;
  background: var(--canvas); color: var(--ink); font: 400 14px/20px var(--font-sans); -webkit-font-smoothing: antialiased; text-align: left; }
*, *::before, *::after { box-sizing: border-box; }
.qr > main { flex: 1; }
.qr :where(button, input, textarea, select) { font: inherit; color: inherit; margin: 0; }
.qr :where(h1, h2, h3, p) { margin: 0; }
.qr a { color: inherit; }
.qr :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Parent containers draw the clean focus ring for pills, paste box, and search inputs (REDLINES §15 #11) */
.qr .qr-field input:focus-visible,
.qr .qr-paste textarea:focus-visible,
.qr .qr-search input:focus-visible { outline: none; }
.qr .mono, .qr code { font-family: var(--font-mono); font-size: inherit; }
.qr .num { font-variant-numeric: tabular-nums; }
.qr .muted { color: var(--muted); }
.qr [hidden] { display: none !important; }
.qr-wrap { width: min(var(--container), calc(100% - 64px)); margin-inline: auto; }

/* State colours */
.qr .st-pqc { color: var(--pqc); } .qr .st-transitional { color: var(--transitional); }
.qr .st-classical { color: var(--classical); } .qr .st-none { color: var(--muted); } .qr .st-failed { color: var(--classical); }
.qr .r-pqc { stroke: var(--pqc); } .qr .r-transitional { stroke: var(--transitional); } .qr .r-classical { stroke: var(--classical); }
.qr .r-none { stroke: var(--none); } .qr .r-failed { stroke: var(--classical); }
.qr .qr-ring .r-none, .qr .qr-ring .r-failed { stroke-dasharray: 0.01 5.4; }
.qr .qr-seal .r-none, .qr .qr-seal .r-failed { stroke-dasharray: 2 3.2; }
.qr .qr-sg { width: 8px; height: 8px; flex: none; display: block; }

/* Badges */
.qr-badge { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px 0 6px; border-radius: 2px;
  border: 1px solid; font: 600 12px/18px var(--font-sans); white-space: nowrap; flex: none; }
.qr-badge.lg { height: 24px; padding: 0 9px 0 8px; gap: 6px; font-size: 13px; line-height: 22px; }
.qr-badge.lg .qr-sg { width: 10px; height: 10px; }
.qr-badge.st-pqc { background: var(--pqc-soft); border-color: var(--pqc-rule); }
.qr-badge.st-transitional { background: var(--transitional-soft); border-color: var(--transitional-rule); }
.qr-badge.st-classical { background: var(--classical-soft); border-color: var(--classical-rule); }
.qr-badge.st-none { background: var(--none-soft); border-color: var(--none-rule); }
.qr-badge.st-failed { background: var(--surface); border-color: var(--classical-rule); }
.qr-mini { display: inline-flex; align-items: center; gap: 4px; font: 500 12px/16px var(--font-sans); white-space: nowrap;
  border: 0; background: none; padding: 0; text-decoration: none; }
.qr-mini .lab { color: var(--muted); }
.qr-mini .w { display: inline-flex; align-items: center; gap: 4px; }
a.qr-mini:hover .lab, button.qr-mini:hover .lab { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.qr-dash { color: var(--muted); }

/* Top bar & unified nav (REDLINES §18.1) */
.qr-topshell { position: relative; z-index: 30; }
.qr-topshell.is-compact { position: sticky; top: 0; }
.qr-top { position: relative; z-index: 20; height: 56px; background: var(--surface); border-bottom: 1px solid var(--rule); }
.qr-top > .qr-wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.qr-brand { display: inline-flex; align-items: center; gap: 8px; flex: none; font-weight: 600; font-size: 16px; line-height: 24px;
  letter-spacing: -0.02em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.qr-brand svg { width: 24px; height: 24px; flex: none; }
.qr-nav { margin-left: auto; display: flex; align-items: stretch; height: 100%; gap: 4px; flex: none; }
.qr-nav a { position: relative; display: inline-flex; align-items: center; height: 100%; padding: 0 12px; color: var(--muted);
  font-size: 14px; line-height: 20px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.qr-nav a:hover { color: var(--ink); }
.qr-nav a.is-current { color: var(--ink); font-weight: 600; }
.qr-nav a.is-current::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--ink); border-radius: 1px; }
.qr-mobnav { display: none; }
.qr-top.is-report { flex: none; height: 64px; z-index: 30; }
.qr-top.is-report > .qr-wrap { gap: 24px; }
.qr-top.is-report .qr-brand { width: 184px; }
.qr-top .qr-fieldwrap { margin: 0; width: 600px; flex: 0 1 600px; min-width: 280px; }

/* Hero */
.qr-hero { position: relative; min-height: 424px; padding: 96px 0 40px; overflow-x: clip; }
.qr-hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent); mask-image: linear-gradient(to bottom, #000 62%, transparent); }
.qr-hero > :not(.qr-hero-bg) { position: relative; z-index: 1; }
/* Lift fieldwrap stacking context so .qr-ladder always paints cleanly above .qr-under, .qr-scope & .qr-alert */
.qr-hero > .qr-fieldwrap { z-index: 30; }
.qr-hero.is-inspect { min-height: 0; padding-bottom: 32px; }
.qr-rings { position: absolute; left: 50%; top: 204px; width: min(960px, 100cqi); height: min(960px, 100cqi);
  transform: translate(-50%, -50%); pointer-events: none; }
.qr-rings path { fill: none; stroke: var(--rule); stroke-width: 1; opacity: 0.8; }
.qr-sweep { --sw: min(920px, 100cqi); position: absolute; left: calc(50% - var(--sw) / 2); top: calc(204px - var(--sw) / 2);
  width: var(--sw); height: var(--sw); border-radius: 50%;
  pointer-events: none; opacity: 0;
  background: conic-gradient(from 0deg, rgba(29, 91, 214, 0) 0deg, rgba(29, 91, 214, 0) 300deg, rgba(29, 91, 214, 0.11) 359.4deg, rgba(29, 91, 214, 0) 360deg); }
.qr-hero.is-loaded .qr-sweep { animation: qr-sweep 1200ms var(--ease-out) 1 both; }
.qr-hero.is-probing .qr-sweep { animation: qr-spin 1600ms linear infinite; opacity: 1; }
@keyframes qr-sweep { 0% { transform: rotate(0deg); opacity: 0; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { transform: rotate(360deg); opacity: 0; } }
@keyframes qr-spin { to { transform: rotate(360deg); } }
@keyframes qr-pulse { 50% { opacity: 0.35; } }
@keyframes qr-tint { from { background-color: var(--accent-soft); } to { background-color: transparent; } }
@keyframes qr-morph { from { max-height: 56px; border-radius: 28px; } to { max-height: 260px; border-radius: 8px; } }
@keyframes qr-land { from { opacity: 0.4; } to { opacity: 1; } }

.qr-lockup { position: relative; display: flex; justify-content: center; align-items: center; gap: 14px; }
.qr-lockup svg { width: 48px; height: 48px; flex: none; }
.qr-lockup h1 { font-size: 40px; line-height: 44px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }

.qr-fieldwrap { position: relative; width: min(720px, calc(100% - 64px)); max-width: 100%; margin: 32px auto 0; }
.qr-field { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 8px 0 20px; background: var(--surface);
  border: 1px solid var(--rule-strong); border-radius: 999px; box-shadow: var(--shadow-field); transition: border-color 120ms, box-shadow 120ms; }
.qr-field:hover { border-color: var(--rule-hover); }
.qr-field:focus-within { border-color: var(--accent); box-shadow: var(--shadow-field), var(--shadow-focus); }
.qr-ficon { width: 20px; height: 20px; flex: none; }
.qr-ficon .sw { transform-origin: 16px 16px; transform-box: view-box; }
.is-probing .qr-ficon .sw { animation: qr-spin 1.6s linear infinite; }
.qr-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0;
  font: 400 18px/24px var(--font-mono); color: var(--ink); }
.qr-field input::placeholder { color: var(--muted); opacity: 1; }
.qr-tag { flex: none; display: inline-block; height: 24px; padding: 0 8px; border-radius: 2px; border: 1px solid var(--rule);
  background: var(--surface-tint); color: var(--muted); font: 400 12px/22px var(--font-mono); white-space: nowrap; }
.qr-tag.is-private { color: var(--transitional); background: var(--transitional-soft); border-color: var(--transitional-rule); }
.qr-tag.is-invalid { color: var(--classical); background: var(--classical-soft); border-color: var(--classical-rule); }
.qr-tag.is-ok { color: var(--pqc); background: var(--pqc-soft); border-color: var(--pqc-rule); }
.qr-go { flex: none; height: 40px; padding: 0 20px; border-radius: 20px; border: 0; background: var(--accent); color: #FFFFFF;
  font-weight: 600; font-size: 14px; line-height: 20px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.qr-go:hover { background: var(--accent-hover); } .qr-go:active { background: var(--accent-press); }
.qr-go:disabled { background: var(--rule); color: var(--muted); cursor: not-allowed; }
.qr-go .ico { display: none; width: 18px; height: 18px; }
.qr-field.is-compact { height: 44px; padding: 0 6px 0 16px; gap: 10px; }
.qr-field.is-compact .qr-ficon { width: 18px; height: 18px; }
.qr-field.is-compact input { font-size: 16px; }
.qr-field.is-compact .qr-go { height: 32px; padding: 0 14px; border-radius: 16px; font-size: 13px; }
.qr-willcheck { display: none; }

.qr-ladder { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; background: var(--surface);
  border: 1px solid var(--rule); border-radius: 8px; box-shadow: var(--shadow-pop); padding: 8px 0; }
.qr-hero .qr-ladder, .qr-ladder.is-inline { position: relative; top: 0; margin-top: 12px; box-shadow: var(--shadow-field); }
.qr-step { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 64px; align-items: center; gap: 0 12px; height: 36px; padding: 0 16px;
  font-size: 13px; line-height: 18px; animation: qr-land 120ms var(--ease-out); }
.qr-step .qr-sg { width: 12px; height: 12px; }
.qr-step .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr-step .res { font-family: var(--font-mono); white-space: nowrap; }
.qr-step .ms { font: 12px/16px var(--font-mono); color: var(--muted); text-align: right; }
.qr-step.is-pending { color: var(--muted); }
.qr-step.is-pending .qr-sg { opacity: 0.4; }
.qr-ladder-foot { display: flex; justify-content: flex-end; padding: 4px 16px 2px; border-top: 1px solid var(--rule); margin-top: 4px; }

.qr-under { width: min(720px, calc(100% - 64px)); max-width: 100%; margin: 16px auto 0; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 8px 16px; min-height: 28px; }
.qr-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; line-height: 18px; min-width: 0; }
.qr-chip { height: 28px; padding: 0 10px; border: 1px solid var(--rule); border-radius: 4px; background: transparent; color: var(--ink);
  font: 400 13px/26px var(--font-mono); cursor: pointer; white-space: nowrap; flex: none; }
.qr-chip:hover { background: var(--surface); border-color: var(--rule-strong); }
.qr-switch { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0; border: 0; background: transparent; color: var(--accent);
  font-weight: 500; font-size: 13px; line-height: 18px; cursor: pointer; white-space: nowrap; flex: none; }
.qr-switch:hover { text-decoration: underline; text-underline-offset: 3px; }
.qr-switch svg { width: 16px; height: 16px; }
.qr-scope { position: relative; margin: 20px auto 0; width: min(720px, calc(100% - 64px)); max-width: 100%; text-align: center; color: var(--muted); font-size: 13px; line-height: 18px; }
.qr-alert { width: min(720px, calc(100% - 64px)); max-width: 100%; margin: 12px auto 0; padding: 10px 14px; border-radius: 4px; border: 1px solid var(--classical-rule);
  background: var(--classical-soft); color: var(--classical); font-size: 13px; line-height: 18px; position: relative; overflow-wrap: break-word; }
.qr-alert.is-warn { border-color: var(--transitional-rule); background: var(--transitional-soft); color: var(--transitional); }
.qr-modal .qr-alert, .qr-sec .qr-alert, .qr-iresult .qr-alert { width: 100%; max-width: none; margin: 0; }
.qr-sec .qr-alert { margin-top: 12px; }

/* Inspect */
.qr-paste { position: relative; width: min(720px, calc(100% - 64px)); max-width: 100%; margin: 32px auto 0; background: var(--surface); border: 1px solid var(--rule-strong);
  border-radius: 8px; box-shadow: var(--shadow-field); overflow: hidden; animation: qr-morph 180ms var(--ease-out); }
.qr-paste:focus-within { border-color: var(--accent); box-shadow: var(--shadow-field), var(--shadow-focus); }
.qr-paste textarea { display: block; width: 100%; height: 200px; min-height: 200px; resize: vertical; border: 0; outline: 0; background: transparent;
  padding: 16px 20px; font: 13px/20px var(--font-mono); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; overflow: auto; }
.qr-paste textarea::placeholder { color: var(--muted); opacity: 1; }
.qr-redacted { height: 200px; padding: 16px 20px; font: 13px/20px var(--font-mono); color: var(--muted); }
.qr-redacted p + p { margin-top: 8px; font-family: var(--font-sans); }
.qr-paste-foot { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 8px 0 12px; border-top: 1px solid var(--rule); }
.qr-paste-foot .grow { flex: 1; }
.qr-btn { height: 32px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--rule-strong); background: var(--surface); color: var(--ink);
  font-size: 13px; line-height: 18px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.qr-btn:hover { background: var(--surface-tint); }
.qr-btn svg { width: 16px; height: 16px; flex: none; }
.qr-btn.is-primary { background: var(--accent); border-color: var(--accent); color: #FFFFFF; font-weight: 600; }
.qr-btn.is-primary:hover { background: var(--accent-hover); }
.qr-btn.is-danger { background: var(--classical); border-color: var(--classical); color: #FFFFFF; font-weight: 600; }
.qr-btn.is-danger:hover { opacity: 0.92; }
.qr-btn.is-sm { height: 28px; padding: 0 10px; font-size: 12px; line-height: 16px; }
.qr-btn.is-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.qr-btn.is-ghost:hover { background: var(--surface); border-color: var(--rule); color: var(--ink); }
.qr-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.qr-samples { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--muted); font-size: 13px; line-height: 18px; min-width: 0; }
.qr-linkbtn { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 500; font-size: 13px; line-height: 18px; cursor: pointer; white-space: nowrap; }
.qr-linkbtn:hover { text-decoration: underline; text-underline-offset: 3px; }
.qr-guarantee { position: relative; width: min(720px, calc(100% - 64px)); max-width: 100%; margin: 16px auto 0; padding: 12px 16px; background: var(--surface-tint);
  border: 1px solid var(--rule); border-radius: 4px; font-size: 13px; line-height: 20px; }
.qr-guarantee p + p { margin-top: 4px; }
.qr-guarantee strong { font-weight: 600; }
.qr-net { display: flex; align-items: center; gap: 8px; margin-top: 8px; font: 12px/16px var(--font-mono); color: var(--muted); }
.qr-net.is-bad { color: var(--classical); } .qr-net.is-bad .qr-dot { background: var(--classical); }
.qr-hero.is-inspect .qr-paste,
.qr-hero.is-inspect .qr-under,
.qr-hero.is-inspect .qr-scope { width: min(840px, calc(100% - 64px)); }
.qr-iresult { width: min(840px, calc(100% - 64px)); margin: 8px auto 0; padding-bottom: 64px; }
.qr-iresult .qr-etable { table-layout: auto; }
.qr-iresult .qr-etable th { width: auto !important; }
.qr-iresult .qr-etable td { white-space: normal; overflow-wrap: break-word; padding-top: 8px; padding-bottom: 8px; height: auto; }
.qr-iresult .qr-etable td.v { white-space: nowrap; }
.qr-ihead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.qr-ihead p { font-size: 16px; line-height: 24px; max-width: 640px; }
.qr-ihead .acts { display: flex; gap: 8px; flex: none; }

/* Index & Underline View Switch (REDLINES §12.1) */
.qr-index { padding-bottom: 64px; scroll-margin-top: 16px; }
.qr-ih-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.qr-ih h2 { font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.01em; }
.qr-ih p { margin-top: 4px; color: var(--muted); }
.qr-tabs { display: flex; align-items: flex-end; gap: 24px; flex: none; }
.qr-tab { position: relative; height: 32px; padding: 0 2px; border: 0; background: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; font: 600 14px/20px var(--font-sans); color: var(--muted); white-space: nowrap; }
.qr-tab .n { font-weight: 400; font-variant-numeric: tabular-nums; color: var(--muted); }
.qr-tab:hover { color: var(--ink); }
.qr-tab[aria-selected="true"] { color: var(--ink); }
.qr-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); border-radius: 1px; }

/* Sweep strip & Sparklines (REDLINES §12.2) */
.qr-strip { margin-top: 16px; display: grid; grid-template-columns: 1.2fr 2.4fr 2.4fr 3fr 3fr; height: 40px; background: var(--surface);
  border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.qr-cell { display: flex; align-items: center; gap: 8px; padding: 0 16px; border-left: 1px solid var(--rule); white-space: nowrap; min-width: 0;
  font-size: 13px; line-height: 18px; overflow: hidden; }
.qr-cell:first-child { border-left: 0; }
.qr-cell .k { font-size: 12px; line-height: 16px; color: var(--muted); }
.qr-cell .v { font-weight: 600; font-variant-numeric: tabular-nums; }
.qr-cell .v.mono { font-weight: 500; }
.qr-cell .st-ago { display: none; }
.qr-cell.is-click { cursor: pointer; }
.qr-cell.is-click:hover { background: var(--surface-tint); }
.qr-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pqc); flex: none; }
.qr-dot.is-sweeping { background: var(--accent); animation: qr-pulse 1.2s ease-in-out infinite; }
.qr-dot.is-stale { background: var(--transitional); }
.qr-dot.is-degraded { background: var(--classical); }
.qr-cd { width: 16px; height: 16px; flex: none; transform: rotate(-90deg); }
.qr-cd circle { fill: none; stroke-width: 2; }
.qr-cd .t { stroke: var(--rule); }
.qr-cd .a { stroke: var(--accent); stroke-dasharray: 40.84; stroke-dashoffset: var(--off, 0); }
.qr-bar { width: 64px; height: 4px; border-radius: 2px; background: var(--rule); overflow: hidden; flex: none; }
.qr-bar i { display: block; height: 100%; width: calc(var(--fill, 0) * 100%); background: currentColor; border-radius: 2px; }
.qr-spark { width: 80px; height: 16px; flex: none; display: block; overflow: visible; }
.qr-spark polyline { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.qr-spark circle { fill: currentColor; }

.qr-controls { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 16px; }
.qr-pills { display: flex; flex: 1 1 680px; min-width: 0; gap: 8px; flex-wrap: wrap; scrollbar-width: none; }
.qr-pill { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink);
  font-size: 13px; line-height: 18px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: none; }
.qr-pill .n { font-size: 12px; line-height: 16px; color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.qr-pill:hover { border-color: var(--rule-strong); }
.qr-pill[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.qr-pill[aria-checked="true"] .n { color: rgba(255, 255, 255, 0.72); }
.qr-filter { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: none; }
.qr-count { font-size: 12px; line-height: 16px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.qr-search { position: relative; display: block; width: 288px; }
.qr-search svg { position: absolute; left: 10px; top: 8px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.qr-search input { width: 100%; height: 32px; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); padding: 0 10px 0 32px;
  font-size: 13px; line-height: 18px; outline: 0; }
.qr-search input::placeholder { color: var(--muted); opacity: 1; }
.qr-search input:focus { border-color: var(--accent); box-shadow: var(--shadow-focus); }

.qr-tablewrap { margin-top: 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; overflow-x: clip; }
.qr-table, .qr-etable, .qr-ctable { width: 100%; border-collapse: collapse; table-layout: fixed; }
.qr-table th, .qr-etable th, .qr-ctable th { height: 36px; padding: 0 12px; background: var(--surface-tint); border-bottom: 1px solid var(--rule);
  font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr-table thead th, .qr-ctable thead th { position: sticky; top: 0; z-index: 3; box-shadow: inset 0 -1px 0 var(--rule); }
.qr-table thead th:first-child, .qr-ctable thead th:first-child { border-top-left-radius: 3px; }
.qr-table thead th:last-child, .qr-ctable thead th:last-child { border-top-right-radius: 3px; }
.qr-table th button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; max-width: 100%; overflow: hidden; }
.qr-table th button > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.qr-table th button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.qr-table th[aria-sort] button { color: var(--ink); }
.qr-table th .chev { width: 8px; height: 8px; opacity: 0.45; flex: none; }
.qr-table th[aria-sort] .chev { opacity: 1; }
.qr-table th[aria-sort="descending"] .chev { transform: rotate(180deg); }
.qr-table th.k-t, .qr-table td.t { text-align: right; }
.qr-table th.k-g { width: 40px; } .qr-table th.k-p { width: 232px; } .qr-table th.k-c { width: 112px; }
.qr-table th.k-k { width: 280px; } .qr-table th.k-s { width: 280px; } .qr-table th.k-f { width: 136px; }
.qr-table th.k-t { width: 88px; } .qr-table th.k-o { width: 32px; }
.qr-table td, .qr-ctable td { height: 52px; padding: 0 12px; border-top: 1px solid var(--rule); vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr-table tbody tr:first-child td, .qr-ctable tbody tr:first-child td { border-top: 0; }
.qr-table tbody tr, .qr-ctable tbody tr { cursor: pointer; }
.qr-table tbody tr:hover, .qr-ctable tbody tr:hover { background: var(--surface-tint); }
.qr-table tbody tr:focus-visible, .qr-ctable tbody tr:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.qr-table tbody tr.is-updated, .qr-ctable tbody tr.is-updated { animation: qr-tint 600ms ease-in; }
.qr-table td.g, .qr-ctable td.g { padding: 0 4px 0 16px; }
.qr-table td.g svg, .qr-ctable td.g svg { width: 20px; height: 20px; display: block; }
.qr-prov-name { display: flex; align-items: center; min-width: 0; }
.qr-prov a { display: block; font-weight: 500; text-decoration: none; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.qr-prov a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* 6px cobalt changed dot with 24x24 hit area (REDLINES §12.5) */
.qr-chg-dot { flex: none; width: 24px; height: 24px; margin: -2px 0 -2px 2px; border: 0; padding: 0; background: transparent;
  display: inline-grid; place-items: center; cursor: pointer; border-radius: 50%; }
.qr-chg-dot i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: block; }
.qr-chg-dot:hover { background: var(--accent-soft); }
.qr-prov .host { display: block; font: 12px/16px var(--font-mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.qr-prov .catl { display: none; font-family: var(--font-sans); }
.qr-table td.c { color: var(--muted); font-size: 13px; }
.qr-alg { display: flex; align-items: center; gap: 8px; min-width: 0; }
.qr-alg code { font: 13px/18px var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
/* 2-line mixed surface KEX cell (REDLINES §15 #9) */
.qr-alg-multi { display: flex; flex-direction: column; min-width: 0; line-height: 1; }
.qr-alg-multi .l1 { display: flex; align-items: baseline; gap: 5px; font: 400 13px/18px var(--font-mono); color: var(--ink); min-width: 0; }
.qr-alg-multi .l2 { display: flex; align-items: baseline; gap: 5px; font: 400 12px/16px var(--font-mono); color: var(--muted); min-width: 0; }
.qr-alg-multi .a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.qr-alg-multi .sf { font: 400 11px/16px var(--font-sans); color: var(--muted); flex: none; }
.qr-surf { display: flex; gap: 4px; }
.qr-surf span { height: 20px; padding: 0 6px; border: 1px solid var(--rule); border-radius: 2px; font: 12px/18px var(--font-mono); color: var(--muted); }
.qr-table td.t { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.qr-table td.t.is-failed { color: var(--classical); }
.qr-table td.o, .qr-ctable td.o { padding: 0 8px 0 0; }
.qr-table td.o svg, .qr-ctable td.o svg { width: 16px; height: 16px; color: var(--muted); display: block; margin-left: auto; }
.qr-table tbody tr:hover td.o svg, .qr-ctable tbody tr:hover td.o svg { color: var(--ink); }
.qr-table td.m, .qr-ctable td.m { display: none; }
.qr-table .qr-empty td, .qr-ctable .qr-empty td { height: 120px; text-align: center; white-space: normal; color: var(--muted); cursor: default; }
.qr-table .qr-empty td p + p, .qr-ctable .qr-empty td p + p { margin-top: 8px; }
.qr-table .qr-empty .em-title, .qr-ctable .qr-empty .em-title { color: var(--ink); font-size: 14px; line-height: 20px; }
.qr-table tbody tr.qr-empty:hover, .qr-ctable tbody tr.qr-empty:hover { background: transparent; }
.qr-more { display: none; }
.qr-more-btn { width: 100%; height: 40px; margin-top: 12px; }

/* Adoption chart (REDLINES §12.3) */
.qr-chart-panel { position: relative; margin-top: 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 16px 24px; }
.qr-chart-panel.is-off { padding: 24px; min-height: 96px; display: flex; align-items: center; color: var(--muted); font-size: 13px; line-height: 18px; }
.qr-chart-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 20px; }
.qr-chart-head h3 { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.qr-range-tabs { display: flex; gap: 16px; }
.qr-range-tab { position: relative; border: 0; background: none; padding: 0 0 4px; cursor: pointer; font: 500 13px/18px var(--font-sans); color: var(--muted); }
.qr-range-tab:hover { color: var(--ink); }
.qr-range-tab[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.qr-range-tab[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); border-radius: 1px; }
.qr-chart-wrap { position: relative; margin-top: 12px; }
.qr-chart-svg { display: block; width: 100%; height: 170px; overflow: visible; }
.qr-chart-msg { position: absolute; left: 48px; right: 160px; top: 50%; transform: translateY(-58%); text-align: center;
  max-width: 520px; margin-inline: auto; font-size: 13px; line-height: 18px; color: var(--muted); pointer-events: none; }
.qr-chart-pop { position: absolute; z-index: 20; pointer-events: none; background: var(--surface); border: 1px solid var(--rule);
  border-radius: 4px; box-shadow: var(--shadow-pop); padding: 8px 12px; font-size: 13px; line-height: 18px; color: var(--ink); white-space: nowrap; }
.qr-chart-leg { display: none; }

/* Changes table columns (REDLINES §12.4) */
.qr-ctable th.c-g { width: 40px; } .qr-ctable th.c-p { width: 232px; } .qr-ctable th.c-a { width: 136px; }
.qr-ctable th.c-s { width: 96px; } .qr-ctable th.c-c { width: 432px; } .qr-ctable th.c-d { width: 232px; } .qr-ctable th.c-o { width: 32px; }
.qr-chg-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qr-chg-pair { display: flex; align-items: center; gap: 8px; min-width: 0; }
.qr-chg-arrow { color: var(--muted); font-size: 14px; line-height: 20px; flex: none; }
.qr-chg-sub { font: 400 12px/16px var(--font-mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr-chg-sub.sans { font-family: var(--font-sans); }
.qr-chg-det { display: flex; flex-direction: column; gap: 2px; }
.qr-chg-det .rel { font-size: 13px; line-height: 18px; color: var(--ink); }
.qr-chg-det .abs { font: 400 12px/16px var(--font-mono); color: var(--muted); }
.qr-chg-filterbar { margin-top: 12px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }

/* Report */
.qr-report { padding-bottom: 64px; }
.qr-rhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-top: 32px; }
.qr-host { font: 600 32px/38px var(--font-mono); letter-spacing: -0.01em; overflow-wrap: break-word; }
.qr-host.is-sans { font-family: var(--font-sans); letter-spacing: -0.02em; }
.qr-actions { display: flex; gap: 8px; flex: none; padding-top: 3px; }
.qr-mob-track { display: none; }
.qr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; margin-top: 8px; font-size: 13px; line-height: 18px; }
.qr-meta span > b { font-weight: 400; color: var(--muted); margin-right: 6px; }
.qr-lead { margin-top: 16px; max-width: 720px; font-size: 18px; line-height: 26px; }
.qr-verdict { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-top: 24px; background: var(--surface);
  border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.qr-half { min-height: 248px; padding: 28px 72px 20px 32px; border-top: 4px solid var(--sc, var(--rule)); min-width: 0; }
.qr-half.is-sig { padding: 28px 32px 20px 72px; border-left: 1px solid var(--rule); }
.qr-half.st-pqc { --sc: var(--pqc); } .qr-half.st-transitional { --sc: var(--transitional); } .qr-half.st-classical { --sc: var(--classical); }
.qr-half.st-none { --sc: var(--none); } .qr-half.st-failed { --sc: var(--classical); }
.qr .qr-half { color: var(--ink); }
.qr-axis { font-size: 14px; line-height: 20px; font-weight: 600; }
.qr-q { margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--muted); }
.qr-half .qr-badge { margin-top: 12px; }
.qr-decisive { margin-top: 10px; font: 500 24px/30px var(--font-mono); overflow-wrap: anywhere; }
.qr-explain { margin-top: 8px; max-width: 48ch; font-size: 14px; line-height: 20px; }
.qr-surfaces { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; }
.qr-seal { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; background: var(--surface);
  border: 1px solid var(--rule); display: grid; place-items: center; z-index: 1; }
.qr-seal svg { width: 72px; height: 72px; }
.qr-rbody { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 32px; margin-top: 48px; align-items: start; }
.qr-rail { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px; z-index: 10; }
.qr-rail a { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px; border-radius: 4px; border: 1px solid transparent;
  font-size: 13px; line-height: 18px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.qr-rail a:hover, .qr-rail a.is-active { background: var(--surface); border-color: var(--rule); }
.qr-rail a .c { margin-left: auto; font-size: 12px; line-height: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.qr-rail a .rg { display: inline-flex; align-items: center; flex: none; }
.qr-rail-spacer { width: 8px; height: 8px; flex: none; display: inline-block; }
.qr-rail a.qr-rawlink { margin-top: 12px; color: var(--accent); font-weight: 500; }
.qr-sec { margin-bottom: 48px; scroll-margin-top: 80px; }
.qr-sec > summary { list-style: none; cursor: default; display: block; }
.qr-sec > summary::-webkit-details-marker { display: none; }
.qr-sec h2 { display: inline; font-size: 18px; line-height: 26px; font-weight: 600; letter-spacing: -0.005em; }
.qr-sec .sum-state { display: none; }
.qr-src { margin-top: 4px; font: 12px/16px var(--font-mono); color: var(--muted); overflow-wrap: anywhere; }
.qr-sub { margin-top: 20px; font-size: 14px; line-height: 20px; font-weight: 600; }
.qr-etable-wrap { margin-top: 12px; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; overflow-x: auto; }
.qr-etable td { height: 40px; padding: 0 12px; border-top: 1px solid var(--rule); font-size: 13px; line-height: 18px; vertical-align: middle;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr-etable tbody tr:first-child td { border-top: 0; }
.qr-etable td.wrap { white-space: normal; overflow-wrap: anywhere; font-size: 12px; line-height: 16px; padding-top: 6px; padding-bottom: 6px; }
.qr-etable td.lit { font-family: var(--font-mono); }
.qr-etable tr.is-neg td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
.qr-etable .neg { font-weight: 600; }
.qr-fix { margin-top: 8px; font-size: 13px; line-height: 18px; color: var(--muted); }
.qr-fix b { color: var(--ink); font-weight: 600; }
.qr-fix code { font: 400 12px/16px var(--font-mono); color: var(--ink); background: var(--surface-tint); border: 1px solid var(--rule); border-radius: 2px; padding: 0 4px; }
.qr-actbar { display: none; }

/* Report section 6: Observed history two-lane timeline (REDLINES §12.6) */
.qr-timeline { position: relative; margin-top: 16px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; }
.qr-tl-grid { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px 0; align-items: center; }
.qr-tl-lab { font-size: 12px; line-height: 16px; color: var(--muted); }
.qr-tl-lane { position: relative; height: 10px; display: flex; gap: 1px; border-radius: 2px; overflow: hidden; background: var(--none-rule); }
.qr-tl-seg { height: 100%; min-width: 2px; }
.qr-tl-seg.st-pqc { background: var(--pqc); } .qr-tl-seg.st-transitional { background: var(--transitional); }
.qr-tl-seg.st-classical { background: var(--classical); } .qr-tl-seg.st-none { background: var(--none-rule); }
.qr-tl-axis { grid-column: 2; display: flex; justify-content: space-between; margin-top: 4px; font: 400 11px/16px var(--font-mono); color: var(--muted); }
.qr-tl-note { margin: 12px 0 16px; font-size: 13px; line-height: 18px; color: var(--muted); }

/* API Reference View (REDLINES §13) */
.qr-api { padding-bottom: 64px; }
.qr-api-rail .qr-api-grp { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); margin: 16px 0 4px 8px; }
.qr-api-rail .qr-api-grp:first-child { margin-top: 0; }
.qr-api-rail a { font-family: var(--font-mono); font-size: 13px; line-height: 18px; height: 32px; padding: 0 8px; border-radius: 0;
  border: 0; border-left: 2px solid transparent; overflow: hidden; text-overflow: ellipsis; gap: 6px; }
.qr-api-rail a .qr-rail-m { font-size: 10px; line-height: 14px; color: var(--muted); flex: none; }
.qr-api-rail a .qr-rail-p { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.qr-api-rail a.is-active { border-left-color: var(--accent); background: transparent; font-weight: 500; }
.qr-api-rail a:hover { background: var(--surface); }
.qr-api-jump { display: none; }
.qr-contract { margin-top: 12px; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.qr-contract-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); border-top: 1px solid var(--rule); }
.qr-contract-row:first-child { border-top: 0; }
.qr-contract-k { padding: 12px 16px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink); background: var(--surface-tint); border-right: 1px solid var(--rule); }
.qr-contract-v { padding: 12px 16px; font-size: 14px; line-height: 20px; color: var(--ink); }
.qr-contract-v code { font: 400 12px/18px var(--font-mono); background: var(--surface-tint); border: 1px solid var(--rule); border-radius: 2px; padding: 0 4px; white-space: nowrap; }
.qr-ep { margin-top: 48px; scroll-margin-top: 80px; }
.qr-ep-head { display: flex; align-items: center; gap: 10px; min-height: 32px; flex-wrap: wrap; }
.qr-http-method { height: 24px; padding: 0 6px; border-radius: 2px; border: 1px solid var(--rule); background: var(--surface-tint);
  font: 500 12px/22px var(--font-mono); color: var(--ink); flex: none; }
.qr-ep-path { font: 500 18px/24px var(--font-mono); color: var(--ink); overflow-wrap: anywhere; }
.qr-ep-path .qp { color: var(--muted); font-weight: 400; }
.qr-store-tag { margin-left: auto; height: 24px; padding: 0 8px; border-radius: 2px; border: 1px solid var(--rule); background: var(--surface-tint);
  font: 500 12px/22px var(--font-sans); color: var(--ink); white-space: nowrap; }
.qr-ep-desc { margin-top: 8px; max-width: 720px; font-size: 16px; line-height: 24px; color: var(--ink); }
.qr-codebox { position: relative; margin-top: 12px; background: var(--surface-tint); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.qr-codebox-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.qr-codebox pre { margin: 0; font: 400 13px/20px var(--font-mono); color: var(--ink); white-space: pre; overflow-x: auto; flex: 1; min-width: 0; }
.qr-codebox-acts { display: flex; gap: 8px; flex: none; }
.qr-resp { border-top: 1px solid var(--rule); background: var(--surface); }
.qr-resp-bar { padding: 6px 16px; border-bottom: 1px solid var(--rule); background: var(--surface-tint); font: 400 12px/16px var(--font-mono); color: var(--muted); }
.qr-resp-bar.is-err { color: var(--classical); }
.qr-resp-body { margin: 0; padding: 12px 16px; max-height: 320px; overflow: auto; font: 400 12px/18px var(--font-mono); color: var(--ink); white-space: pre; }
.qr-warn-banner { margin-top: 12px; padding: 12px 16px; border-radius: 4px; border: 1px solid var(--transitional-rule);
  background: var(--transitional-soft); font-size: 14px; line-height: 20px; color: var(--ink); }
.qr-badge-ctrl { margin-top: 12px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qr-badge-sel { width: 280px; height: 32px; padding: 0 10px; border: 1px solid var(--rule-strong); border-radius: 4px; background: var(--surface); font-size: 13px; }
.qr-badge-demo { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qr-badge-tile { padding: 16px; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.qr-badge-tile .cap { font-size: 12px; line-height: 16px; color: var(--muted); }
.qr-badge-tile.is-dark { background: #0D1117; border-color: #30363D; }
.qr-badge-tile.is-dark .cap { color: #8B949E; }
.qr-badge-tile img { display: block; height: 20px; width: auto; max-width: 100%; object-fit: contain; object-position: left; }

/* Footer, Toast & How-it-works Modal */
.qr-foot { border-top: 1px solid var(--rule); padding: 20px 0; color: var(--muted); font-size: 12px; line-height: 16px; }
.qr-foot .qr-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.qr-foot a { color: var(--accent); text-decoration: none; font-weight: 500; }
.qr-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.qr-toast { position: fixed; left: 50%; bottom: 24px; z-index: 40; max-width: 480px; padding: 10px 14px; border-radius: 4px;
  background: var(--ink); color: #FFFFFF; box-shadow: var(--shadow-pop); font-size: 13px; line-height: 18px;
  display: flex; align-items: center; gap: 12px;
  opacity: 0; transform: translate(-50%, 8px); pointer-events: none;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); overflow-wrap: anywhere; }
.qr-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; transition-duration: 120ms; }
.qr-toast-act { flex: none; height: 24px; padding: 0 8px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent; color: #FFFFFF; font: 600 12px/22px var(--font-sans); cursor: pointer; }
.qr-toast-act:hover { background: rgba(255, 255, 255, 0.14); }
.qr-modal-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(20, 28, 36, 0.35); display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 24px; }
.qr-modal { width: min(560px, 100%); max-width: 100%; max-height: 85vh; overflow: auto; background: var(--surface); border: 1px solid var(--rule);
  border-radius: 8px; box-shadow: var(--shadow-pop); padding: 24px; }
.qr-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.qr-modal-head h2 { font-size: 18px; line-height: 26px; font-weight: 600; }
.qr-modal p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 20px; }
.qr-modal-form { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.qr-modal-field { display: flex; flex-direction: column; gap: 4px; }
.qr-modal-field label { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); }
.qr-modal-field input { height: 38px; padding: 0 12px; border: 1px solid var(--rule-strong); border-radius: 4px; background: var(--surface); font: 400 14px/20px var(--font-mono); color: var(--ink); outline: 0; }
.qr-modal-field input:focus { border-color: var(--accent); box-shadow: var(--shadow-focus); }
.qr .qr-modal-field input:focus-visible { outline: none; }
.qr-modal-foot { margin-top: 4px; display: flex; justify-content: flex-end; gap: 8px; }
.qr-custom-tag { margin-left: 6px; padding: 0 5px; height: 18px; border-radius: 2px; border: 1px solid var(--rule); background: var(--surface-tint); color: var(--muted); font: 500 11px/16px var(--font-sans); flex: none; }
.qr-table tbody tr { contain: layout style; }
.qr-table tbody tr.qr-vspacer, .qr-table tbody tr.qr-vspacer:hover { background: transparent; border: 0; cursor: default; pointer-events: none; contain: none; }
.qr-table tbody tr.qr-vspacer td { padding: 0; border: 0; height: auto; }

/* ---------- Scope row, selects, direction & mixed-edges glyphs (§16.2, §17.1, §18.2) ---------- */
.qr .st-ink { color: var(--ink); }
.qr-dg { width: 12px; height: 12px; flex: none; display: block; }
.qr-mg { width: 8px; height: 8px; flex: none; display: inline-block; vertical-align: middle; }
.qr-mg.is-10 { width: 10px; height: 10px; }
.qr-scope-row { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.qr-scope-row.is-index { margin-top: 24px; }
.qr-sel-grp { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; color: var(--muted); flex: none; }
.qr-select { width: 156px; height: 32px; padding: 0 10px; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface);
  color: var(--ink); font-size: 13px; line-height: 18px; font-weight: 400; cursor: pointer; }
.qr-select:hover { border-color: var(--rule-strong); }
.qr-select:focus { border-color: var(--accent); box-shadow: var(--shadow-focus); outline: none; }
.qr-select.is-active { border-color: var(--ink); font-weight: 500; }
.qr-select.is-wide { width: 224px; }
.qr-scope-row .qr-search { flex: 1 1 180px; min-width: 156px; max-width: 280px; width: auto; }
.qr-scope-row > .qr-count { margin-left: auto; }
.qr-scope-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.qr-mixed-pill { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink);
  font-size: 13px; line-height: 18px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: none; }
.qr-mixed-pill .mx-ic { display: inline-flex; color: var(--transitional); }
.qr-mixed-pill .n { font-size: 12px; line-height: 16px; color: var(--muted); font-weight: 400; }
.qr-mixed-pill:hover { border-color: var(--rule-strong); }
.qr-mixed-pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.qr-mixed-pill[aria-pressed="true"] .mx-ic,
.qr-mixed-pill[aria-pressed="true"] .n { color: #FFFFFF; }

/* Mixed edges tag on index & vendor rows (§17.1) */
.qr-kex-wrap { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qr-kex-sub { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12px; line-height: 16px; }
.qr-mixed-tag { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px 0 5px; border-radius: 2px;
  border: 1px solid var(--transitional-rule); background: var(--surface); color: var(--transitional);
  font: 500 12px/18px var(--font-sans); white-space: nowrap; flex: none; }
.qr-mob-mx { display: none; margin-left: 6px; vertical-align: middle; }

/* ---------- PQC Progress page (§16) ---------- */
.qr-prog-page { padding: 32px 0 64px; }
.qr-page-h1 { font-size: 32px; line-height: 38px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.qr-page-sub { margin-top: 6px; max-width: 720px; font-size: 16px; line-height: 24px; color: var(--muted); }
.qr-prog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.qr-prog-tabs { display: flex; align-items: flex-end; gap: 24px; flex: none; }

/* 6-cell Summary strip = direction filter (§16.2) */
.qr-prog-strip { margin-top: 20px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.qr-prog-cell { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 88px; padding: 14px 16px;
  border-left: 1px solid var(--rule); text-align: left; background: transparent; border-top: 0; border-right: 0; border-bottom: 0; min-width: 0; }
.qr-prog-cell:first-child { border-left: 0; }
.qr-prog-cell .k { font-size: 12px; line-height: 16px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr-prog-cell .v { display: inline-flex; align-items: center; gap: 6px; font-size: 24px; line-height: 30px; font-weight: 600; color: var(--ink); }
.qr-prog-cell .v.st-pqc { color: var(--pqc); }
.qr-prog-cell .v.st-classical { color: var(--classical); }
.qr-prog-cell .v.st-transitional { color: var(--transitional); }
.qr-prog-cell .v.muted { color: var(--muted); }
.qr-prog-cell .sub { font-size: 12px; line-height: 16px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr-prog-cell.is-btn { cursor: pointer; transition: background-color 120ms; }
.qr-prog-cell.is-btn:hover { background: var(--surface-tint); }
.qr-prog-cell.is-btn.is-pressed { background: var(--surface-tint); }
.qr-prog-cell.is-btn.is-pressed .k { color: var(--ink); font-weight: 500; }
.qr-prog-cell.is-up.is-pressed { box-shadow: inset 0 -2px 0 var(--pqc); }
.qr-prog-cell.is-down.is-pressed { box-shadow: inset 0 -2px 0 var(--classical); }
.qr-prog-cell.is-alg.is-pressed { box-shadow: inset 0 -2px 0 var(--ink); }
.qr-prog-cell.is-mixed.is-pressed { box-shadow: inset 0 -2px 0 var(--transitional); }
.qr-prog-additions { margin-top: 8px; font-size: 12px; line-height: 16px; color: var(--muted); }

/* Two-panel progress chart (§16.3) */
.qr-prog-chart { position: relative; margin-top: 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 12px 0 8px; }
.qr-prog-chart.is-off { padding: 24px; min-height: 96px; display: flex; align-items: center; color: var(--muted); font-size: 13px; }
.qr-prog-chart:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.qr-prog-svgwrap { position: relative; }
.qr-prog-svg { display: block; width: 100%; height: auto; overflow: visible; }
.qr-chart-hit { fill: transparent; cursor: crosshair; }
.qr-prog-sparse { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 24px; text-align: center;
  font-size: 13px; line-height: 18px; color: var(--muted); pointer-events: none; }
.qr-prog-pop { position: absolute; top: 44px; left: calc(var(--pop-x, 50%) + 12px); width: 280px; z-index: 25; pointer-events: none;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; box-shadow: var(--shadow-pop); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px; }
.qr-prog-pop.is-left { left: auto; right: calc(100% - var(--pop-x, 50%) + 12px); }
.qr-pop-time { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink); }
.qr-pop-share { font-size: 13px; line-height: 18px; }
.qr-pop-counts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; line-height: 18px; font-weight: 600; }
.qr-pop-none { font-size: 12px; line-height: 16px; }
.qr-pop-cat { font-size: 12px; line-height: 16px; margin-top: 2px; }
.qr-pop-rule { border: 0; border-top: 1px solid var(--rule); margin: 4px 0; }
.qr-pop-names { font-size: 12px; line-height: 16px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qr-pop-cta { font-size: 12px; line-height: 16px; color: var(--accent); font-weight: 500; margin-top: 2px; }
.qr-prog-pop-mob { display: none; }
.qr-prog-mob-stat { display: none; }
.qr-prog-sigline { margin-top: 12px; font-size: 13px; line-height: 18px; color: var(--muted); }
.qr-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Feed header & bucket filter chip (§16.3 / §16.5) */
.qr-feed-head { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.qr-feed-head h2 { font-size: 18px; line-height: 26px; font-weight: 600; color: var(--ink); }
.qr-feed-cnt { margin-left: auto; font-size: 13px; line-height: 18px; color: var(--muted); }
.qr-feed-head .qr-linkbtn:last-child { margin-left: auto; }
.qr-feed-cnt + .qr-linkbtn { margin-left: 0; }
.qr-bchip { height: 24px; padding: 0 8px; border-radius: 4px; border: 1px solid var(--rule); background: var(--surface);
  font-size: 12px; line-height: 16px; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.qr-bchip:hover { border-color: var(--rule-strong); background: var(--surface-tint); }

/* Redesigned Changes feed table (§16.5) */
.qr-ftable { width: 100%; border-collapse: collapse; table-layout: fixed; }
.qr-ftable thead th { height: 36px; padding: 0 12px; background: var(--surface-tint); border-bottom: 1px solid var(--rule);
  font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr-ftable th.c-dir { width: 136px; }
.qr-ftable th.c-ep { width: 288px; }
.qr-ftable th.c-chg { width: 424px; }
.qr-ftable th.c-ven { width: 168px; }
.qr-ftable th.c-time { width: 152px; }
.qr-ftable th.c-o { width: 32px; }
.qr-ftable.is-vendor th.c-ep { width: 320px; }
.qr-ftable.is-vendor th.c-chg { width: 512px; }
.qr-ftable.is-vendor th.c-time { width: 200px; }
.qr-ftable td { height: 52px; padding: 0 12px; border-top: 1px solid var(--rule); vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr-ftable tbody tr:not(.qr-day):not(.qr-empty) { cursor: pointer; }
.qr-ftable tbody tr:not(.qr-day):not(.qr-empty):hover { background: var(--surface-tint); }
.qr-ftable tbody tr:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.qr-ftable tbody tr.is-regressed td:first-child { box-shadow: inset 2px 0 0 var(--classical); }
.qr-ftable tbody tr.is-updated { animation: qr-tint 600ms ease-in; }
.qr-ftable td.f-mob { display: none; }
.qr-ftable td.o { padding: 0 8px 0 0; }
.qr-ftable td.o svg { width: 16px; height: 16px; color: var(--muted); display: block; margin-left: auto; }
.qr-ftable tbody tr:hover td.o svg { color: var(--ink); }
.qr-ftable .qr-empty td { height: 120px; text-align: center; white-space: normal; color: var(--muted); }
.qr-ftable .qr-empty .em-title { color: var(--ink); font-size: 14px; line-height: 20px; }
.qr-ftable .qr-empty p + p { margin-top: 8px; }

.qr-day th { height: 40px; padding: 0 16px; background: var(--surface-tint); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-weight: 600; text-align: left; }
.qr-ftable tbody tr.qr-day:first-child th { border-top: 0; }
.qr-day-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.qr-day-lbl { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink); }
.qr-day-cnt { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; line-height: 16px; font-weight: 600; }
.qr-day-cnt > span { display: inline-flex; align-items: center; gap: 4px; }

.qr-dir { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; font-weight: 600; white-space: normal; }
.qr-chg-axis { font-size: 12px; line-height: 16px; color: var(--muted); font-weight: 500; flex: none; }
.qr-ven-cell { display: flex; flex-direction: column; min-width: 0; }
.qr-ven-cell .vn { font-size: 13px; line-height: 18px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.qr-ven-cell .vc { font-size: 12px; line-height: 16px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.qr-ftime { display: flex; flex-direction: column; }
.qr-ftime .t1 { font-size: 13px; line-height: 18px; color: var(--ink); }
.qr-ftime .t2 { font-size: 12px; line-height: 16px; color: var(--muted); }
.qr-batch-title { display: block; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); }
.qr-prov .host.sans { font-family: var(--font-sans); }
.qr-batch-chev { all: unset; display: inline-grid; place-items: center; width: 24px; height: 24px; cursor: pointer; margin-left: auto; color: var(--muted); }
.qr-batch-chev svg { width: 16px; height: 16px; transform: rotate(90deg); transition: transform 150ms var(--ease-out); }
.qr-batch-row.is-open .qr-batch-chev svg { transform: rotate(-90deg); }
.qr-batch-child td { height: 44px; background: var(--surface-tint); }
.qr-batch-child td.f-ep { position: relative; padding-left: 28px; }
.qr-batch-child td.f-ep::before { content: ""; position: absolute; left: 16px; top: 0; bottom: 0; width: 1px; background: var(--rule); }
.qr-fm-l1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; line-height: 16px; }
.qr-fm-l2 { margin-top: 4px; font-size: 15px; line-height: 20px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.qr-mob-pair { margin-top: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; min-width: 0; overflow: hidden; }
.qr-mob-alg { font-size: 12px; line-height: 16px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ---------- Report Mixed Edges (#edges, §17.2) ---------- */
.qr-meta-link { color: var(--ink); text-decoration: none; }
.qr-meta-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.qr-meta-link b { font-weight: 400; color: var(--muted); margin-right: 6px; }
.qr-decisive-sub { font: 400 14px/20px var(--font-sans); color: var(--muted); }
.qr-src.sans { font-family: var(--font-sans); }
.qr-edges-callout { margin-top: 12px; padding: 16px 20px; border-radius: 4px; background: var(--transitional-soft); border: 1px solid var(--transitional-rule); }
.qr-ec-title { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--ink); }
.qr-ec-body { margin-top: 6px; max-width: 720px; font-size: 14px; line-height: 20px; color: var(--ink); }
.qr-ec-body code { font-size: 13px; }
.qr-ec-fix { margin-top: 8px; max-width: 720px; font-size: 14px; line-height: 20px; color: var(--ink); }
.qr-edge-ip, .qr-edge-net, .qr-edge-kex, .qr-edge-seen { display: flex; flex-direction: column; min-width: 0; }
.qr-edge-ip .ip-l1 { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: 13px; line-height: 18px; color: var(--ink); }
.qr-edge-ip .ip-l2, .qr-edge-net .n2, .qr-edge-kex .k2, .qr-edge-seen .s2 { font-size: 12px; line-height: 16px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.qr-edge-net .n1, .qr-edge-kex .k1, .qr-edge-seen .s1 { font-size: 13px; line-height: 18px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.qr-edge-meas { font: 600 12px/16px var(--font-sans); color: var(--ink); flex: none; }
.qr-edge-sw { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; margin-bottom: 6px; font-size: 12px; line-height: 16px; }
.qr-edge-tabs { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.qr-edge-tab { position: relative; height: 32px; padding: 0 2px; border: 0; background: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; color: var(--muted); }
.qr-edge-tab:hover { color: var(--ink); }
.qr-edge-tab[aria-selected="true"] { color: var(--ink); font-weight: 500; }
.qr-edge-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); border-radius: 1px; }
.qr-edge-ip .ip-grp { font-weight: 500; }
.qr-edges-callout .qr-ec-body + .qr-ec-title { margin-top: 12px; }

/* ---------- Report: Subdomains and redundancy (#sec-ct, REDLINES §20.3) ---------- */
.qr-ct-run { margin-top: 12px; }
.qr-ct-note { margin-top: 12px; max-width: 720px; font-size: 13px; line-height: 18px; color: var(--muted); }
.qr-ct-meta { margin-top: 16px; }
.qr-ct-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 6px 0; }
.qr-ct-cell .c1 { font-size: 13px; line-height: 18px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.qr-ct-cell .c2 { font-size: 12px; line-height: 16px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.qr-ct-cell .c2.is-flags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.qr-ct-cell > .qr-mixed-tag { align-self: flex-start; }
.qr-flag { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 2px; border: 1px solid var(--rule-strong);
  background: var(--surface-tint); font: 500 12px/18px var(--font-sans); color: var(--ink); white-space: nowrap; }

/* ---------- Vendors directory & Vendor deep-dive (§18.3, §18.4) ---------- */
.qr-vpage { padding: 32px 0 64px; }
.qr-vtable { width: 100%; border-collapse: collapse; table-layout: fixed; }
.qr-vtable th { height: 36px; padding: 0 12px; background: var(--surface-tint); border-bottom: 1px solid var(--rule);
  font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr-vtable th button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; max-width: 100%; overflow: hidden; }
.qr-vtable th button > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.qr-vtable th button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.qr-vtable th[aria-sort] button { color: var(--ink); }
.qr-vtable th .chev { width: 8px; height: 8px; opacity: 0.45; flex: none; }
.qr-vtable th[aria-sort] .chev { opacity: 1; }
.qr-vtable th[aria-sort="descending"] .chev { transform: rotate(180deg); }
.qr-vtable th.v-g { width: 40px; } .qr-vtable th.v-p { width: 240px; } .qr-vtable th.v-n { width: 96px; text-align: right; }
.qr-vtable th.v-k { width: 336px; } .qr-vtable th.v-s { width: 120px; } .qr-vtable th.v-c { width: 112px; }
.qr-vtable th.v-mx { width: 112px; } .qr-vtable th.v-ch { width: 112px; } .qr-vtable th.v-o { width: 32px; }
.qr-vtable td { height: 52px; padding: 0 12px; border-top: 1px solid var(--rule); vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr-vtable tbody tr:first-child td { border-top: 0; }
.qr-vtable tbody tr:not(.qr-empty) { cursor: pointer; }
.qr-vtable tbody tr:not(.qr-empty):hover { background: var(--surface-tint); }
.qr-vtable tbody tr:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.qr-vtable td.g { padding: 0 4px 0 16px; }
.qr-vtable td.g svg { width: 20px; height: 20px; display: block; }
.qr-vtable td.vn { text-align: right; font-size: 13px; }
.qr-vtable td.vm { display: none; }
.qr-vtable td.o { padding: 0 8px 0 0; }
.qr-vtable td.o svg { width: 16px; height: 16px; color: var(--muted); display: block; margin-left: auto; }
.qr-vtable tbody tr:hover td.o svg { color: var(--ink); }
.qr-vtable .qr-empty td { height: 120px; text-align: center; white-space: normal; color: var(--muted); }
.qr-vkex { display: flex; align-items: center; gap: 12px; }
.qr-vkex .vpct { width: 56px; text-align: right; font-size: 14px; line-height: 20px; font-weight: 600; flex: none; }
.qr-vkex .vcnt { font-size: 12px; line-height: 16px; }
.qr-vbar { width: 160px; height: 6px; border-radius: 3px; background: var(--rule); overflow: hidden; display: flex; flex: none; }
.qr-vbar.is-mob { width: 64px; height: 4px; border-radius: 2px; }
.qr-vbar .b-pqc { width: var(--pqc-w, 0%); height: 100%; background: var(--pqc); display: block; }
.qr-vbar .b-trans { width: var(--trans-w, 0%); height: 100%; background: var(--transitional); display: block; }
.qr-vcls-link { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--classical); text-decoration: none; }
.qr-vcls-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.qr-vmixed { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; }
.qr-vchg { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; font-weight: 600; }
.qr-vchg > span { display: inline-flex; align-items: center; gap: 3px; }
.qr-vfoot { height: 48px; padding: 0 16px; border-top: 1px solid var(--rule); display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.qr-vfoot a { color: var(--accent); font-weight: 500; text-decoration: none; }
.qr-vfoot a:hover { text-decoration: underline; text-underline-offset: 3px; }

.qr-crumb { font-size: 13px; line-height: 18px; color: var(--ink); margin-bottom: 8px; }
.qr-crumb a { color: var(--muted); text-decoration: none; }
.qr-crumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.qr-rhead.is-vendor { padding-top: 0; }
.qr-vreadiness .qr-half { min-height: 216px; }
.qr-vpct-lg { margin-top: 14px; font-size: 40px; line-height: 44px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.qr-vbar-lg { margin-top: 16px; width: 100%; height: 8px; border-radius: 4px; background: var(--none-rule); overflow: hidden; display: flex; }
.qr-vbar-lg .b-pqc { width: var(--pqc-w, 0%); height: 100%; background: var(--pqc); display: block; }
.qr-vbar-lg .b-trans { width: var(--trans-w, 0%); height: 100%; background: var(--transitional); display: block; }
.qr-vbar-lg .b-cls { width: var(--cls-w, 0%); height: 100%; background: var(--classical); display: block; }
.qr-vcounts { margin-top: 12px; font-size: 13px; line-height: 18px; color: var(--muted); }
.qr-vcounts strong { font-weight: 600; color: var(--ink); }

.qr-vsub-sec { margin-top: 48px; scroll-margin-top: 80px; }
.qr-vsub-sec.is-tight { margin-top: 24px; }
.qr-vsub-h { display: flex; align-items: center; gap: 8px; font-size: 18px; line-height: 26px; font-weight: 600; color: var(--ink); }
.qr-vsub-h .cnt { font-weight: 400; color: var(--muted); }
.qr-vsub-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.qr-vsub-table th { height: 36px; padding: 0 12px; background: var(--surface-tint); border-bottom: 1px solid var(--rule);
  font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); text-align: left; }
.qr-vsub-table th.s-svc { width: 240px; } .qr-vsub-table th.s-host { width: 400px; }
.qr-vsub-table th.s-alg { width: 280px; } .qr-vsub-table th.s-since { width: 248px; } .qr-vsub-table th.s-o { width: 32px; }
.qr-vsub-table td { height: 44px; padding: 0 12px; border-top: 1px solid var(--rule); font-size: 13px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr-vsub-table tbody tr:first-child td { border-top: 0; }
.qr-vsub-table tbody tr { cursor: pointer; }
.qr-vsub-table tbody tr:hover { background: var(--surface-tint); }
.qr-vsub-table tbody tr:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.qr-vsub-table td.o { padding: 0 8px 0 0; }
.qr-vsub-table td.o svg { width: 16px; height: 16px; color: var(--muted); display: block; margin-left: auto; }
.qr-vsub-foot { height: 40px; padding: 0 16px; border-top: 1px solid var(--rule); display: flex; align-items: center; }
.qr-vstate-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.qr-vstate-bar h2 { font-size: 18px; line-height: 26px; font-weight: 600; margin-right: 8px; }
.qr-vpills { display: flex; flex-wrap: wrap; gap: 8px; }
.qr-vstate-bar .qr-search { margin-left: auto; width: 280px; }
.qr-foot-links { display: inline-flex; gap: 16px; }
.qr-accent-link { color: var(--accent); text-decoration: none; }
.qr-accent-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.qr-actbar.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Laptop: 1024–1279 ---------- */
@container page (max-width: 1279px) {
  .qr-strip { grid-template-columns: repeat(6, 1fr); height: auto; }
  .qr-cell { min-height: 40px; padding: 6px 12px; }
  .qr-cell.c-status { grid-column: span 2; border-left: 0; }
  .qr-cell.c-last { grid-column: span 2; }
  .qr-cell.c-next { grid-column: span 2; }
  .qr-cell.c-kex { grid-column: span 3; border-left: 0; border-top: 1px solid var(--rule); }
  .qr-cell.c-sig { grid-column: span 3; border-top: 1px solid var(--rule); }
  .qr-table th.k-c, .qr-table td.c, .qr-table th.k-o, .qr-table td.o { display: none; }
  .qr-table th.k-g { width: 40px; }
  .qr-table th.k-p { width: calc((100% - 244px) * 0.31); }
  .qr-table th.k-k { width: calc((100% - 244px) * 0.35); }
  .qr-table th.k-s { width: calc((100% - 244px) * 0.34); }
  .qr-table th.k-f { width: 108px; }
  .qr-table th.k-t { width: 96px; }
  .qr-ctable th.c-s, .qr-ctable td.cs, .qr-ctable th.c-o, .qr-ctable td.o { display: none; }
  .qr-ctable th.c-g { width: 40px; }
  .qr-ctable th.c-p { width: calc((100% - 40px) * 0.23); }
  .qr-ctable th.c-a { width: calc((100% - 40px) * 0.14); }
  .qr-ctable th.c-c { width: calc((100% - 40px) * 0.42); }
  .qr-ctable th.c-d { width: calc((100% - 40px) * 0.21); }
  .qr-etable { table-layout: auto; }
  .qr-etable th { width: auto !important; }
  .qr-etable td { white-space: normal; overflow-wrap: break-word; padding-top: 8px; padding-bottom: 8px; height: auto; }
  .qr-etable td.v { white-space: nowrap; }
  .qr-prov .catl { display: inline; }
  .qr-search { width: 288px; }
  .qr-controls { flex-wrap: wrap; row-gap: 12px; }
  .qr-top.is-report .qr-fieldwrap { width: 440px; flex: 0 1 440px; }
  .qr-top.is-report .qr-brand { width: auto; }
  .qr-select { width: 138px; }
  .qr-select.is-wide { width: 188px; }
  .qr-prog-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qr-prog-cell:nth-child(4) { border-left: 0; }
  .qr-prog-cell:nth-child(n+4) { border-top: 1px solid var(--rule); }
  .qr-ftable th.c-ven, .qr-ftable td.f-ven { display: none; }
  .qr-ftable th.c-dir, .qr-ftable.is-vendor th.c-dir { width: 120px; }
  .qr-ftable th.c-ep, .qr-ftable.is-vendor th.c-ep { width: calc((100% - 276px) * 0.39); }
  .qr-ftable th.c-chg, .qr-ftable.is-vendor th.c-chg { width: calc((100% - 276px) * 0.61); }
  .qr-ftable th.c-time, .qr-ftable.is-vendor th.c-time { width: 124px; }
  .qr-ftable th.c-o, .qr-ftable.is-vendor th.c-o { width: 32px; }
  .qr-vsub-table th.s-svc { width: calc((100% - 32px) * 0.22); }
  .qr-vsub-table th.s-host { width: calc((100% - 32px) * 0.35); }
  .qr-vsub-table th.s-alg { width: calc((100% - 32px) * 0.24); }
  .qr-vsub-table th.s-since { width: calc((100% - 32px) * 0.19); }
  .qr-vsub-table th.s-o { width: 32px; }
  .qr-vtable th.v-s, .qr-vtable td.vs { display: none; }
  .qr-vtable th.v-g { width: 40px; }
  .qr-vtable th.v-p { width: calc((100% - 456px) * 0.45); }
  .qr-vtable th.v-n { width: 76px; }
  .qr-vtable th.v-k { width: calc((100% - 456px) * 0.55); }
  .qr-vtable th.v-c { width: 84px; }
  .qr-vtable th.v-mx { width: 84px; }
  .qr-vtable th.v-ch { width: 140px; }
  .qr-vtable th.v-o { width: 32px; }
  .qr-vbar { width: 100px; }
  .qr-rbody { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .qr-rail { flex-direction: row; flex-wrap: wrap; top: 64px; z-index: 15; padding: 8px 0; background: var(--canvas); border-bottom: 1px solid var(--rule); }
  .qr-rail a.qr-rawlink { margin: 0 0 0 auto; }
  .qr-api-rail { display: none; }
  .qr-api-jump { display: block; margin-top: 16px; }
  .qr-api-jump select { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--rule-strong); border-radius: 4px; background: var(--surface); font-size: 14px; }
}
/* ---------- Tablet: 640–1023 ---------- */
@container page (max-width: 1023px) {
  .qr-top > .qr-wrap { gap: 12px; }
  .qr-nav { gap: 0; }
  .qr-nav a { padding: 0 8px; font-size: 13px; }
  .qr-nav a.is-current::after { left: 8px; right: 8px; }
  .qr-top.is-report > .qr-wrap { gap: 12px; }
  .qr-top.is-report .qr-fieldwrap { flex: 1; min-width: 220px; width: auto; }
  .qr-scope-row .qr-search { max-width: none; }
  .qr-scope-right { width: 100%; margin-left: 0; justify-content: space-between; }
  .qr-table th, .qr-table td { padding: 0 8px; }
  .qr-table td.g { padding: 0 2px 0 10px; }
  .qr-table th.k-f, .qr-table td.f { display: none; }
  .qr-table th.k-g { width: 32px; }
  .qr-table th.k-p { width: calc((100% - 108px) * 0.32); }
  .qr-table th.k-k { width: calc((100% - 108px) * 0.36); }
  .qr-table th.k-s { width: calc((100% - 108px) * 0.32); }
  .qr-table th.k-t { width: 76px; }
  .qr-table .qr-alg { gap: 6px; }
  .qr-table .qr-badge { padding: 0 5px; gap: 4px; font-size: 11px; }
  .qr-vtable th.v-mx, .qr-vtable td.vmx, .qr-vtable th.v-ch, .qr-vtable td.vch { display: none; }
  .qr-vtable th.v-p { width: calc((100% - 232px) * 0.44); }
  .qr-vtable th.v-k { width: calc((100% - 232px) * 0.56); }
  .qr-badge-demo { grid-template-columns: 1fr; }
}
/* ---------- Mobile: < 640 ---------- */
@container page (max-width: 639px) {
  .qr-wrap { width: calc(100% - 32px); }
  .qr-topshell.is-compact { position: relative; }
  .qr-top { height: 52px; }
  .qr-top > .qr-wrap { gap: 12px; }
  .qr-top .qr-nav { display: none; }
  .qr-top.is-report { height: 56px; }
  .qr-top.is-report .qr-brand span { display: none; }
  .qr-top.is-report .qr-fieldwrap { flex: 1; min-width: 0; width: auto; }
  .qr-mobnav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: 44px; background: var(--surface); border-bottom: 1px solid var(--rule); }
  .qr-mobnav a { position: relative; display: flex; align-items: center; justify-content: center; height: 44px;
    font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; }
  .qr-mobnav a.is-current { color: var(--ink); font-weight: 600; }
  .qr-mobnav a.is-current::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); }
  .qr-mob-mx { display: inline-flex; }
  .qr-scope-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .qr-sel-grp { width: 100%; justify-content: space-between; }
  .qr-select { flex: 1; width: auto; height: 44px; font-size: 15px; }
  .qr-scope-row .qr-search { width: 100%; }
  .qr-scope-right { margin-left: 0; justify-content: space-between; }
  .qr-mixed-pill { height: 36px; }
  .qr-prog-page { padding: 20px 0 32px; }
  .qr-page-h1 { font-size: 24px; line-height: 30px; }
  .qr-page-sub { font-size: 14px; line-height: 20px; }
  .qr-prog-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .qr-prog-tabs { width: 100%; gap: 0; border-bottom: 1px solid var(--rule); }
  .qr-prog-tabs .qr-tab { flex: 1; justify-content: center; height: 44px; }
  .qr-prog-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qr-prog-cell { min-height: 76px; padding: 10px 12px; border-left: 1px solid var(--rule); }
  .qr-prog-cell:nth-child(odd) { border-left: 0; }
  .qr-prog-cell:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .qr-prog-cell .v { font-size: 20px; line-height: 26px; }
  .qr-prog-mob-stat { display: block; padding: 0 12px 6px; font-size: 12px; line-height: 16px; color: var(--muted); }
  .qr-prog-pop { display: none !important; }
  .qr-prog-pop-mob { display: flex; flex-direction: column; gap: 4px; margin: 8px 12px 4px; padding: 12px; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface-tint); }
  .qr-pop-btn { margin-top: 8px; height: 44px; width: 100%; }
  .qr-ftable thead { display: none; }
  .qr-ftable, .qr-ftable tbody { display: block; }
  .qr-ftable tbody tr { display: block; border-top: 1px solid var(--rule); }
  .qr-ftable tbody tr:first-child { border-top: 0; }
  .qr-ftable tbody tr.qr-day { display: block; }
  .qr-ftable tbody tr.qr-day th { display: block; height: 36px; line-height: 36px; padding: 0 12px; }
  .qr-ftable td { display: none; }
  .qr-ftable td.f-mob { display: block; height: auto; min-height: 84px; padding: 12px 16px; border: 0; white-space: normal; }
  .qr-ftable tbody tr.is-regressed td.f-mob { box-shadow: inset 2px 0 0 var(--classical); }
  .qr-ftable tbody tr.qr-batch-child td.f-mob { background: var(--surface-tint); padding-left: 28px; }
  .qr-vpage { padding: 20px 0 32px; }
  .qr-vpage.has-actbar { padding-bottom: 0; }
  .qr-vpage.has-actbar > .qr-wrap { padding-bottom: 16px; }
  .qr-vtable thead { display: none; }
  .qr-vtable, .qr-vtable tbody { display: block; }
  .qr-vtable tbody tr { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 0 12px; min-height: 76px; padding: 12px 16px; border-top: 1px solid var(--rule); }
  .qr-vtable tbody tr:first-child { border-top: 0; }
  .qr-vtable td { display: none; height: auto; padding: 0; border: 0; }
  .qr-vtable td.g, .qr-vtable td.vp { display: block; }
  .qr-vtable td.g svg { width: 24px; height: 24px; }
  .qr-vtable td.vm { display: block; }
  .qr-vm-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
  .qr-vm-r .vpct { font-size: 16px; line-height: 24px; font-weight: 600; }
  .qr-vsub-table thead { display: none; }
  .qr-vsub-table, .qr-vsub-table tbody, .qr-vsub-table tr, .qr-vsub-table td { display: block; }
  .qr-vsub-table tr { padding: 10px 14px; border-top: 1px solid var(--rule); }
  .qr-vsub-table tbody tr:first-child { border-top: 0; }
  .qr-vsub-table td { height: auto; padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere; }
  .qr-vsub-table td.vs-svc { font-weight: 500; }
  .qr-vsub-table td.vs-host, .qr-vsub-table td.vs-alg, .qr-vsub-table td.vs-since { font-size: 12px; color: var(--muted); }
  .qr-vsub-table td.o { display: none; }
  .qr-vstate-bar { flex-direction: column; align-items: stretch; }
  .qr-vstate-bar .qr-search { margin-left: 0; width: 100%; }
  .qr-edges-callout { padding: 12px 16px; }
  .qr-ct-cell { padding: 0; }
  .qr-ct-cell .c1, .qr-ct-cell .c2 { white-space: normal; overflow-wrap: anywhere; }
  .qr-ct-run { width: 100%; height: 40px; }
  .qr-field.is-compact { height: 40px; }
  .qr-field.is-compact .qr-tag { display: none; }
  .qr-field.is-compact .qr-go { width: 32px; padding: 0; }
  .qr-hero { min-height: 0; padding: 40px 0 32px; }
  .qr-rings { top: 122px; }
  .qr-sweep { top: calc(122px - var(--sw) / 2); }
  .qr-lockup { gap: 10px; }
  .qr-lockup svg { width: 32px; height: 32px; }
  .qr-lockup h1 { font-size: 28px; line-height: 34px; }
  .qr-fieldwrap { margin-top: 24px; width: 100%; }
  .qr-hero .qr-fieldwrap, .qr-hero .qr-paste, .qr-hero .qr-under, .qr-hero .qr-guarantee, .qr-hero .qr-alert, .qr-hero .qr-scope, .qr-hero .qr-willcheck,
  .qr-hero.is-inspect .qr-paste, .qr-hero.is-inspect .qr-under, .qr-hero.is-inspect .qr-scope { width: calc(100% - 32px); }
  .qr-field { height: 52px; padding: 0 6px 0 16px; gap: 10px; }
  .qr-field .qr-ficon { width: 18px; height: 18px; }
  .qr-field input { font-size: 16px; }
  .qr-field .qr-tag { display: none; }
  .qr-go { width: 40px; padding: 0; }
  .qr-go .lbl { display: none; } .qr-go .ico { display: block; }
  .qr-willcheck { display: block; position: relative; margin: 8px auto 0; font-size: 12px; line-height: 16px; color: var(--muted); min-height: 16px; }
  .qr-under { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 8px; margin-top: 12px; }
  .qr-try { width: calc(100% + 32px); flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .qr-chip { height: 36px; line-height: 34px; }
  .qr-switch { height: 44px; align-self: flex-start; }
  .qr-scope { margin-top: 4px; text-align: left; }
  .qr-paste { margin-top: 24px; }
  .qr-paste textarea { height: 196px; min-height: 196px; padding: 12px 14px; }
  .qr-redacted { height: 196px; padding: 12px 14px; }
  .qr-samples { gap: 8px 12px; }
  .qr-iresult { width: calc(100% - 32px); padding-bottom: 32px; }
  .qr-ihead { flex-direction: column; align-items: stretch; }
  .qr-ihead .acts .qr-btn { flex: 1; min-width: 0; height: 40px; }
  .qr-ihead .acts .qr-btn:disabled { display: none; }
  .qr-index { padding-bottom: 32px; }
  .qr-ih-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .qr-ih h2 { font-size: 20px; line-height: 28px; }
  .qr-ih p { font-size: 13px; line-height: 18px; }
  .qr-tabs { width: 100%; gap: 0; border-bottom: 1px solid var(--rule); }
  .qr-tab { flex: 1; justify-content: center; height: 44px; }
  .qr-strip { grid-template-columns: 1fr 1fr; height: auto; }
  .qr-cell { padding: 8px 12px; min-height: 44px; border-left: 0; flex-wrap: wrap; gap: 2px 8px; }
  .qr-cell.c-status, .qr-cell.c-next, .qr-cell.c-kex, .qr-cell.c-sig { grid-column: auto; }
  .qr-cell.c-last { display: none; }
  .qr-cell.c-next, .qr-cell.c-sig { border-left: 1px solid var(--rule); }
  .qr-cell.c-kex, .qr-cell.c-sig { border-top: 1px solid var(--rule); min-height: 52px; }
  .qr-cell .st-ago { display: block; width: 100%; font-size: 12px; line-height: 16px; color: var(--muted); font-weight: 400; white-space: normal; }
  .qr-cell .qr-bar { width: 48px; }
  .qr-spark { width: 48px; height: 12px; }
  .qr-controls { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 12px; margin-top: 16px; }
  .qr-pills { flex: 0 0 auto; flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
  .qr-pill { height: 36px; }
  .qr-filter { margin-left: 0; gap: 8px; }
  .qr-search { width: auto; flex: 1; min-width: 0; }
  .qr-filter .qr-btn { height: 44px; flex: none; }
  .qr-search input { height: 44px; font-size: 16px; }
  .qr-search svg { top: 14px; }
  .qr-count { display: none; }
  .qr-table thead, .qr-ctable thead { display: none; }
  .qr-table, .qr-table tbody, .qr-ctable, .qr-ctable tbody { display: block; }
  .qr-table tbody tr, .qr-ctable tbody tr { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 0 12px; min-height: 72px;
    padding: 0 16px; border-top: 1px solid var(--rule); }
  .qr-table tbody tr:first-child, .qr-ctable tbody tr:first-child { border-top: 0; }
  .qr-table td, .qr-ctable td { display: none; height: auto; padding: 0; border: 0; }
  .qr-table td.g, .qr-table td.p, .qr-ctable td.g, .qr-ctable td.p { display: block; padding: 0; }
  .qr-table td.g svg, .qr-ctable td.g svg { width: 24px; height: 24px; }
  .qr-table td.m, .qr-ctable td.m { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
  .qr-prov a { font-size: 15px; line-height: 20px; }
  .qr-prov .catl { display: none; }
  .qr-table.is-collapsed tbody tr:nth-child(n+13) { display: none; }
  .qr-table tbody tr.qr-vspacer { display: block !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; }
  .qr-table tbody tr.qr-vspacer td { display: block !important; padding: 0 !important; border: 0 !important; }
  .qr-table .qr-empty, .qr-ctable .qr-empty { display: block !important; }
  .qr-table .qr-empty td, .qr-ctable .qr-empty td { display: block; height: auto; padding: 24px 12px; }
  .qr-more { display: flex; width: 100%; height: 44px; margin-top: 12px; }
  .qr-more-btn { height: 44px; }
  .qr-chart-panel { padding: 12px; }
  .qr-chart-svg { height: 112px; }
  .qr-chart-msg { left: 16px; right: 16px; }
  .qr-chart-leg { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; font-size: 12px; line-height: 16px; }
  .qr-chart-leg span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
  .qr-chart-leg i { width: 12px; height: 2px; display: inline-block; }
  .qr-chart-leg b { font-weight: 600; font-variant-numeric: tabular-nums; }
  .qr-report { padding-bottom: 0; }
  .qr-report > .qr-wrap { padding-bottom: 16px; }
  .qr-rhead { padding-top: 24px; align-items: center; gap: 12px; }
  .qr-host { font-size: 24px; line-height: 30px; min-width: 0; }
  .qr-actions { display: none; }
  .qr-mob-track { display: inline-flex; flex: none; }
  .qr-meta { gap: 4px 16px; font-size: 12px; line-height: 16px; }
  .qr-lead { font-size: 16px; line-height: 24px; }
  .qr-verdict { grid-template-columns: minmax(0, 1fr); }
  /* REDLINES §15 #3: 36px bottom padding on transport half clears the 56px seal */
  .qr-half { min-height: 0; padding: 20px 16px 36px; border-left: 0; }
  .qr-half.is-sig { min-height: 0; padding: 36px 16px 20px; border-left: 0; }
  .qr-seal { position: relative; left: auto; top: auto; margin: -28px auto -28px; width: 56px; height: 56px; }
  .qr-seal svg { width: 44px; height: 44px; }
  .qr-decisive { font-size: 20px; line-height: 26px; }
  .qr-explain { max-width: none; }
  .qr-rbody { margin-top: 24px; gap: 0; }
  .qr-rail { display: none; }
  .qr-sec { margin-bottom: 0; border-top: 1px solid var(--rule); }
  .qr-sec > summary { display: flex; align-items: center; gap: 8px; min-height: 52px; cursor: pointer; }
  .qr-sec > summary h2 { font-size: 16px; line-height: 24px; }
  .qr-sec > summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
    transform: rotate(45deg); margin: -4px 4px 0 4px; flex: none; }
  .qr-sec[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
  .qr-sec .sum-state { display: inline-flex; margin-left: auto; }
  .qr-sec .qr-src { margin-top: 0; }
  .qr-sec .qr-fix { margin-bottom: 16px; }
  /* REDLINES §15 #4: one bordered list with hairline rows, NOT separate rounded cards */
  .qr-etable-wrap { margin: 8px 0 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
  .qr-etable thead { display: none; }
  .qr-etable, .qr-etable tbody, .qr-etable tr, .qr-etable td { display: block; }
  .qr-etable tr { position: relative; background: transparent; border: 0; border-top: 1px solid var(--rule); border-radius: 0; padding: 12px; margin-bottom: 0; }
  .qr-etable tbody tr:first-child { border-top: 0; }
  .qr-etable tr.is-neg { box-shadow: inset 2px 0 0 var(--accent); }
  .qr-etable tr.is-neg td:first-child { box-shadow: none; }
  .qr-etable td, .qr-etable td.wrap { height: auto; border: 0; padding: 0; white-space: normal; overflow-wrap: anywhere; font-size: 12px; line-height: 18px; overflow: visible; }
  .qr-etable td:first-child { font: 500 13px/18px var(--font-mono); padding-right: 112px; margin-bottom: 2px; }
  .qr-etable td.v { position: absolute; top: 10px; right: 12px; }
  .qr-etable td[data-label]:not(:first-child):not(.v)::before { content: attr(data-label) "  "; color: var(--muted); font-family: var(--font-sans); }
  .qr-etable td.empty { display: none; }
  .qr-tl-grid { grid-template-columns: 1fr; gap: 6px; }
  .qr-tl-axis { grid-column: 1; }
  .qr-contract-row { grid-template-columns: 1fr; }
  .qr-contract-k { border-right: 0; border-bottom: 1px solid var(--rule); padding: 8px 12px; }
  .qr-contract-v { padding: 10px 12px; }
  .qr-codebox-top { flex-direction: column; }
  .qr-codebox-acts .qr-btn { height: 40px; }
  .qr-badge-sel { width: 100%; height: 44px; }
  .qr-actbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; position: sticky; bottom: 0; z-index: 10;
    padding: 10px 12px; background: var(--surface); border-top: 1px solid var(--rule); }
  .qr-actbar .qr-btn { height: 40px; padding: 0 4px; font-size: 12px; }
  .qr-foot .qr-wrap { flex-direction: column; align-items: flex-start; gap: 4px; }
  .qr-modal-backdrop { padding: 16px; }
  .qr-modal { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .qr-sweep { display: none; }
  .qr *, .qr *::before, .qr *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
