  /* A persistent, indeterminate scan state: elapsed time is real, steps are illustrative. */
  .progress { display: none; max-width: 680px; margin: 32px auto 0; padding: 32px 24px 24px;
    border: 1px solid color-mix(in srgb, var(--sv-brand) 25%, var(--sv-border));
    border-radius: calc(var(--sv-radius) + 8px); background: var(--sv-surface); box-shadow: var(--sv-shadow-lg); text-align: center; }
  .progress.on { display: block; animation: rise .3s var(--sv-ease) both; }
  .scan-orbit { position: relative; display: grid; place-items: center; width: 80px; height: 80px; margin: 0 auto 20px;
    border-radius: 50%; background: color-mix(in srgb, var(--sv-brand) 7%, var(--sv-surface)); color: var(--sv-brand); }
  .scan-orbit::before, .scan-orbit::after { content: ""; position: absolute; inset: 0; border: 3px solid color-mix(in srgb, var(--sv-brand) 14%, transparent); border-radius: 50%; }
  .scan-orbit::after { border-color: transparent; border-top-color: var(--sv-brand); border-right-color: var(--sv-brand-2); animation: orbit 1.25s linear infinite; }
  .scan-orbit svg { width: 30px; height: 30px; }
  @keyframes orbit { to { transform: rotate(360deg); } }
  .progress h2 { font-size: clamp(19px, 3vw, 24px); letter-spacing: -.035em; line-height: 1.4; margin: 0 0 8px; overflow-wrap: anywhere; }
  .progress .status { color: var(--sv-ink-2); font-size: 14px; min-height: 3em; display: grid; place-items: center; }
  .progress-note { font-size: 13px; color: var(--sv-ink-2); margin: 16px 0 0; }
  .progress-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--sv-border); padding-top: 16px; margin-top: 24px; font-size: 12px; color: var(--sv-ink-2); }
  .live-state { display: inline-flex; align-items: center; gap: 7px; }
  .live-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sv-brand); }
  .elapsed { font-variant-numeric: tabular-nums; }
  .bar { height: 4px; max-width: 280px; margin: 16px auto 0; border-radius: 99px; background: var(--sv-surface-2); overflow: hidden; }
  .bar > i { display: block; height: 100%; width: 0%; border-radius: 99px; background: var(--sv-brand-grad); transition: width .3s; }
  @keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(320%); } }

  .errbox {
    max-width: 560px; margin: 28px auto 0; padding: 15px 18px; border-radius: var(--sv-radius);
    background: var(--sv-leak-bg); color: var(--sv-leak); border: 1px solid color-mix(in srgb, var(--sv-leak) 28%, transparent);
    display: none; font-size: 14px;
  }
  .errbox.on { display: block; }

  /* ---------- Results ---------- */
  .results { margin: 30px 0 80px; display: none; }
  .results.on { display: block; animation: rise .4s var(--sv-ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

  .section-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sv-ink-3); margin: 0 0 12px 2px; }

  /* Overall hero card */
  .overall {
    display: flex; align-items: center; gap: clamp(18px, 4vw, 34px); flex-wrap: wrap;
    background: var(--sv-surface); border: 1px solid var(--sv-border); border-radius: 22px;
    box-shadow: var(--sv-shadow-lg); padding: clamp(22px, 4vw, 32px); margin-bottom: 22px;
  }
  .ring { position: relative; flex: none; width: 128px; height: 128px; }
  .ring svg { transform: rotate(-90deg); display: block; }
  .ring .rval { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
  .ring .rnum { font-family: var(--sv-font-display); font-weight: 800; font-size: 38px; letter-spacing: -.02em; line-height: 1; }
  .ring .rpct { font-size: 15px; font-weight: 700; color: var(--sv-ink-3); margin-left: 1px; }
  .overall .ometa { flex: 1; min-width: 240px; }
  .overall .grade-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .overall .glabel { font-family: var(--sv-font-display); font-weight: 800; font-size: clamp(22px, 3.6vw, 28px); letter-spacing: -.02em; }
  .overall .gpill { font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; color: #fff; }
  .overall .otgt { color: var(--sv-ink-2); font-size: 14.5px; margin-top: 6px; word-break: break-all; }
  .overall .exec { font-size: 15px; color: var(--sv-ink); margin: 12px 0 0; max-width: 64ch; line-height: 1.55; }
  .overall .ocounts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
  .chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 650; background: var(--sv-surface-2); color: var(--sv-ink-2); }
  .chip .dot { width: 8px; height: 8px; border-radius: 99px; }
  .chip.z { opacity: .45; }

  /* Category score grid */
  .cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 13px; margin-bottom: 26px; }
  .catcard {
    display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
    background: var(--sv-surface); border: 1px solid var(--sv-border); border-radius: var(--sv-radius);
    box-shadow: var(--sv-shadow); padding: 15px 16px; cursor: pointer;
    transition: transform .12s var(--sv-ease), box-shadow .15s var(--sv-ease), border-color .15s var(--sv-ease);
  }
  .catcard:hover { transform: translateY(-2px); box-shadow: var(--sv-shadow-lg); border-color: color-mix(in srgb, var(--sv-brand) 35%, var(--sv-border)); }
  .catcard.clean .cstat { color: var(--sv-safe); }

  /* Technology panel */
  .techpanel { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
  .techchip {
    display: inline-flex; align-items: center; padding: 7px 13px; border-radius: 99px; font-size: 13px; font-weight: 600;
    background: var(--sv-surface); border: 1px solid var(--sv-border); color: var(--sv-ink-2); box-shadow: var(--sv-shadow);
  }

  /* What-we-checked list */
  .checked { padding: 14px 18px; border-top: 1px solid var(--sv-border); background: color-mix(in srgb, var(--sv-safe) 4%, transparent); }
  .checked-h { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--sv-ink-3); margin-bottom: 9px; }
  .checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 7px 18px; }
  .checklist li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--sv-ink-2); }
  .checklist .tick { color: var(--sv-safe); flex: none; margin-top: 2px; }
  .dcount.clear { background: color-mix(in srgb, var(--sv-safe) 14%, transparent); color: var(--sv-safe); }
  .catcard .mini { flex: none; width: 52px; height: 52px; position: relative; }
  .catcard .mini svg { transform: rotate(-90deg); display: block; }
  .catcard .mini .mnum { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 750; font-size: 14px; font-variant-numeric: tabular-nums; }
  .catcard .ctext { min-width: 0; }
  .catcard .cname { font-weight: 680; font-size: 14.5px; letter-spacing: -.01em; display: flex; align-items: center; gap: 7px; }
  .catcard .cicon { display: inline-flex; color: var(--sv-brand); flex: none; }
  .catcard .cicon svg { width: 17px; height: 17px; }
  .catcard .cstat { font-size: 12.5px; color: var(--sv-ink-3); margin-top: 2px; }

  /* AI fix prompt */
  .aifix {
    background: var(--sv-surface); border: 1px solid var(--sv-border); border-radius: 18px;
    box-shadow: var(--sv-shadow); padding: 20px clamp(16px, 3vw, 22px); margin-bottom: 26px;
  }
  .aifix .ahead { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
  .aifix .ahead .ai-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--sv-brand-grad); color: #fff; font-size: 16px; flex: none; }
  .aifix h3 { margin: 0; font-size: 17px; font-weight: 720; letter-spacing: -.01em; }
  .aifix .asub { color: var(--sv-ink-3); font-size: 13px; margin: 0 0 14px 40px; }
  .aifix .promptbox { position: relative; }
  .aifix pre {
    margin: 0; font-family: var(--sv-mono); font-size: 12.5px; line-height: 1.6; color: var(--sv-ink);
    background: var(--sv-surface-2); border: 1px solid var(--sv-border); border-radius: 12px;
    padding: 14px 16px; white-space: pre-wrap; word-break: break-word; overflow: hidden;

  }
  .aifix .actions { display: flex; gap: 10px; margin-top: 13px; flex-wrap: wrap; }
  .aifix .abtn { height: 40px; padding: 0 16px; border-radius: 10px; font-size: 14px; font-weight: 620; cursor: pointer; border: 1px solid var(--sv-border); background: var(--sv-surface); color: var(--sv-ink); transition: filter .12s var(--sv-ease), background .12s; }
  .aifix .abtn:hover { background: var(--sv-surface-2); }
  .aifix .abtn.primary { background: var(--sv-brand-grad); color: #fff; border: 0; }
  .aifix .abtn.primary:hover { filter: brightness(1.06); }
  .aifix .abtn.ok { color: var(--sv-safe); border-color: color-mix(in srgb, var(--sv-safe) 40%, transparent); }

  /* Detailed findings */
  .detail { background: var(--sv-surface); border: 1px solid var(--sv-border); border-radius: var(--sv-radius); box-shadow: var(--sv-shadow); margin-bottom: 13px; overflow: hidden; scroll-margin-top: 72px; }
  .detail > summary { list-style: none; cursor: pointer; padding: 16px 18px; display: flex; align-items: center; gap: 13px; user-select: none; }
  .detail > summary::-webkit-details-marker { display: none; }
  .detail .dicon { display: inline-flex; align-items: center; justify-content: center; width: 24px; color: var(--sv-brand); flex: none; }
  .detail .dicon svg { width: 20px; height: 20px; }
  .detail .dmeta { flex: 1; min-width: 0; }
  .detail .dname { font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; }
  .detail .dscore { font-size: 12.5px; color: var(--sv-ink-3); margin-top: 1px; }
  .detail .dcount { flex: none; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 680; }
  .detail .chev { color: var(--sv-ink-3); transition: transform .18s var(--sv-ease); flex: none; }
  .detail[open] .chev { transform: rotate(90deg); }
  .detail .findings { border-top: 1px solid var(--sv-border); }

  .finding { padding: 15px 18px; border-top: 1px solid var(--sv-border); }
  .finding:first-child { border-top: 0; }
  .finding .fhead { display: flex; align-items: flex-start; gap: 10px; }
  .prompt-source { margin-top: 14px; overflow-wrap: anywhere; }
  .prompt-source summary { cursor: pointer; }
  #rescanPanel { overflow-wrap: anywhere; }
  #rescanPanel[hidden] { display: none; }
  @media (max-width: 560px) { .finding .fhead { flex-direction: column; } }
  .sev { flex: none; padding: 3px 9px; border-radius: 7px; font-size: 10.5px; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; margin-top: 1px; }
  .finding .ftitle { font-weight: 640; font-size: 14.5px; letter-spacing: -.005em; }
  .finding .fdetail { color: var(--sv-ink-2); font-size: 13.5px; margin-top: 6px; }
  .finding .ffix { margin-top: 9px; padding: 9px 12px; border-radius: var(--sv-radius-sm);
    background: color-mix(in srgb, var(--sv-safe) 9%, transparent); border: 1px solid color-mix(in srgb, var(--sv-safe) 20%, transparent); font-size: 13px; }
  .finding .ffix b { color: var(--sv-safe); font-weight: 700; }
  .finding .fev { margin-top: 8px; font-family: var(--sv-mono); font-size: 11.5px; color: var(--sv-ink-3); background: var(--sv-surface-2); padding: 7px 10px; border-radius: var(--sv-radius-sm); overflow-x: auto; white-space: pre-wrap; word-break: break-all; }

  .sev-critical { background: var(--sv-leak-bg); color: var(--sv-leak); }
  .sev-high     { background: var(--sv-leak-bg); color: var(--sv-leak); }
  .sev-medium   { background: var(--sv-warn-bg); color: var(--sv-warn); }
  .sev-low      { background: var(--sv-warn-bg); color: var(--sv-warn); }
  .sev-info     { background: var(--sv-surface-2); color: var(--sv-ink-2); }

  .engines-note { text-align: center; color: var(--sv-ink-3); font-size: 12.5px; margin-top: 20px; }
  footer { text-align: center; color: var(--sv-ink-3); font-size: 13px; padding: 30px 16px 54px; border-top: 1px solid var(--sv-border); }
  footer a { color: var(--sv-ink-2); }
  footer .legal { margin: 12px auto 0; max-width: 640px; font-size: 12px; line-height: 1.6; }
  .consent { font-size: 12.5px; color: var(--sv-ink-3); margin: 10px 0 0; }
  .consent a { color: var(--sv-ink-2); }

  .results { margin-top: 36px; scroll-margin-top: 98px; }
  .report-heading, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
  .report-heading h2 { font-size: clamp(23px, 4vw, 30px); font-weight: 650; letter-spacing: -.04em; margin: 0; }
  .section-label { font-size: 10px; letter-spacing: .12em; color: var(--sv-ink-2); margin: 0 0 10px; }
  .report-tag { font-size: 11px; color: var(--sv-ink-2); background: var(--sv-surface); border: 1px solid var(--sv-border); padding: 7px 11px; border-radius: 99px; }
  .overall { border-radius: calc(var(--sv-radius) + 8px); padding: 32px; gap: 32px; margin-bottom: 40px; box-shadow: var(--sv-shadow); position: relative; overflow: hidden; }
  .overall::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--sv-brand-grad); }
  .score-block { text-align: center; padding: 12px 32px 12px 0; border-right: 1px solid var(--sv-border); }
  .ring { margin: auto; }
  .ring .rnum { font-size: 40px; font-weight: 650; letter-spacing: -.045em; }
  .ring .rpct { display: block; margin-top: 6px; font-size: 12px; font-weight: 500; color: var(--sv-ink-2); }
  .score-caption { font-weight: 600; font-size: 13px; margin-top: 14px; }
  .coverage-list { margin: 6px 0; padding-left: 16px; line-height: 1.5; overflow-wrap: anywhere; }
  .score-hint { font-size: 11px; color: var(--sv-ink-2); margin-top: 3px; }
  .overall .ometa { min-width: 0; flex-basis: 260px; }
  .overall .glabel { font-weight: 650; letter-spacing: -.035em; }
  .overall .gpill { border: 1px solid currentColor; background: var(--sv-surface); font-size: 11px; }
  .overall .otgt { font-size: 12px; margin-top: 8px; overflow-wrap: anywhere; word-break: normal; }
  .overall .exec { font-size: 15px; line-height: 1.8; margin-top: 18px; overflow-wrap: anywhere; }
  .counts-label { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--sv-ink-2); margin-top: 22px; }
  .overall .ocounts { margin-top: 9px; }
  .chip { font-size: 11px; border: 1px solid var(--sv-border); background: var(--sv-surface); padding: 5px 9px; }
  .chip .dot { width: 6px; height: 6px; }
  .chip.z { opacity: 1; background: var(--sv-surface-2); }
  .chip.z .dot { background: var(--sv-border) !important; }
  .section-heading h2 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -.03em; }
  .section-heading p { margin: 6px 0 0; font-size: 13px; color: var(--sv-ink-2); }
  .score-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: -4px 0 18px; font-size: 11px; color: var(--sv-ink-2); }
  .score-legend span { display: inline-flex; align-items: center; gap: 6px; }
  .score-legend i { width: 6px; height: 6px; border-radius: 50%; }
  .legend-safe { background: var(--sv-safe); } .legend-warn { background: var(--sv-warn); } .legend-leak { background: var(--sv-leak); }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 32px; }
  .catcard { padding: 20px 16px; gap: 12px; min-height: 106px; color: var(--sv-ink); box-shadow: none; }
  .catcard:hover { box-shadow: var(--sv-shadow); }
  .catcard .cname { font-size: 13px; font-weight: 600; gap: 6px; line-height: 1.5; }
  .catcard .cicon svg { width: 15px; height: 15px; }
  .catcard .cstat { margin-top: 5px; font-size: 11px; color: var(--sv-ink-2); }
  .catcard .mnum { font-weight: 650; }
  .techpanel { margin-bottom: 36px; }
  .techchip { font-family: var(--sv-mono); font-size: 11px; padding: 6px 10px; border-radius: var(--sv-radius-sm); box-shadow: none; overflow-wrap: anywhere; max-width: 100%; }
  .aifix { padding: 26px; border-radius: calc(var(--sv-radius) + 4px); border-color: color-mix(in srgb, var(--sv-brand) 25%, var(--sv-border)); background: linear-gradient(120deg, color-mix(in srgb, var(--sv-brand) 5%, transparent), transparent 65%), var(--sv-surface); box-shadow: none; margin-bottom: 40px; }
  .aifix .ahead { gap: 12px; margin-bottom: 8px; }
  .aifix .ahead .ai-ic { width: 36px; height: 36px; background: color-mix(in srgb, var(--sv-brand) 12%, var(--sv-surface)); color: var(--sv-brand); }
  .aifix h3 { font-size: 19px; font-weight: 650; letter-spacing: -.025em; }
  .aifix .asub { margin: 0 0 20px 48px; color: var(--sv-ink-2); line-height: 1.7; }
  .aifix pre { font-size: 12px; padding: 14px 16px; }
  .aifix .fade { height: 28px; }
  .aifix .abtn { font-size: 12px; min-height: 44px; border-radius: var(--sv-radius-sm); }
  .aifix .abtn.primary.ok { background: var(--sv-safe-bg); color: var(--sv-safe); }
  .detail { box-shadow: none; margin-bottom: 10px; scroll-margin-top: 96px; }
  .detail > summary { padding: 20px; transition: background .2s; }
  .detail > summary:hover, .detail[open] > summary { background: color-mix(in srgb, var(--sv-brand) 3%, var(--sv-surface)); }
  .detail .dicon { width: 36px; height: 36px; border-radius: 10px; background: color-mix(in srgb, var(--sv-brand) 7%, var(--sv-surface)); }
  .detail .dname { font-size: 14px; font-weight: 600; }
  .detail .dscore { font-size: 11px; color: var(--sv-ink-2); margin-top: 4px; }
  .detail .dcount { font-size: 11px; }
  .finding { padding: 24px; overflow-wrap: anywhere; }
  .finding .fhead { gap: 14px; }
  .finding .ftitle { font-size: 14px; line-height: 1.65; }
  .finding .fdetail { font-size: 13px; line-height: 1.8; }
  .finding .ffix { padding: 12px 14px; margin-top: 14px; font-size: 13px; line-height: 1.75; }
  .finding .fev { margin-top: 12px; padding: 10px 12px; color: var(--sv-ink-2); line-height: 1.7; }
  .checked { padding: 20px 24px; }
  .checked-h { color: var(--sv-ink-2); font-size: 10px; letter-spacing: .07em; }
  .checked.passed .checked-h { color: var(--sv-safe); }
  .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
  .checklist li { font-size: 12px; line-height: 1.7; }
  .engines-note { font-size: 11px; color: var(--sv-ink-2); margin-top: 24px; }
  footer { font-size: 11px; color: var(--sv-ink-2); line-height: 1.8; }
  @media (max-width: 850px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 560px) {
    .wrap { padding-inline: 16px; }
    .hdr { padding: 12px 16px; gap: 10px; }
    .hdr .logo { height: 22px; }
    .hdr a.nav { font-size: 11px; }
    .hero { padding-top: 40px; }
    .hero p.sub { font-size: 14px; line-height: 1.8; }
    form.scan { flex-direction: column; }
    .btn { width: 100%; }
    .report-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .report-tag { font-size: 10px; }
    .overall { padding: 26px 20px; gap: 24px; flex-direction: column; align-items: stretch; }
    .score-block { border-right: 0; border-bottom: 1px solid var(--sv-border); padding: 0 0 24px; }
    .overall .ometa { flex-basis: auto; }
    .overall .exec { font-size: 14px; }
    .cat-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .catcard { min-height: 88px; padding: 16px; gap: 16px; }
    .catcard .cname { font-size: 14px; }
    .catcard .cstat { font-size: 12px; }
    .aifix { padding: 20px 16px; }
    .aifix .asub { margin-left: 0; }
    .detail > summary { padding: 16px 12px; gap: 9px; }
    .detail .dicon { width: 28px; background: none; }
    .detail .dname { font-size: 13px; }
    .detail .dcount { padding: 4px 7px; }
    .finding { padding: 20px 16px; }
    .finding .fhead { flex-wrap: wrap; gap: 8px; }
    .finding .fhead > div { flex-basis: 100% !important; }
    .checked { padding: 20px 16px; }
    .checklist { grid-template-columns: minmax(0, 1fr); }
    .progress { padding: 28px 16px 20px; }
    .progress-foot { font-size: 10px; gap: 8px; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  }

  /* report share / export actions */
  .repactions { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
  .repbtn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 10px; font-size: 14px; font-weight: 620; cursor: pointer; border: 1px solid var(--sv-border); background: var(--sv-surface); color: var(--sv-ink); text-decoration: none; transition: background .12s var(--sv-ease), filter .12s; }
  .repbtn:hover { background: var(--sv-surface-2); text-decoration: none; }
  .repbtn.primary { background: var(--sv-brand-grad); color: #04201d; border: 0; }
  .repbtn.primary:hover { filter: brightness(1.06); }
  .repbtn.ok { color: var(--sv-safe); border-color: color-mix(in srgb, var(--sv-safe) 40%, transparent); }
  /* shared / finished report view (/r/<id>): show ONLY the report + a way back.
     Hide the scan hero (holds the form, trust row, checks-strip) and all marketing chrome. */
  body.shared .hero { display: none; }
  body.shared .landing-nav,
  body.shared .developer-link,
  body.shared footer { display: none; }
  body.shared .results { margin-top: 24px; }
  /* "back to start" link in the header, only on a report page */
  .back-to-start { display: none; }
  body.shared .back-to-start { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 15px; border: 1px solid var(--sv-border); border-radius: 11px; font-size: 14px; font-weight: 620; color: var(--sv-ink); background: var(--sv-surface); text-decoration: none; }
  body.shared .back-to-start:hover { background: var(--sv-surface-2); text-decoration: none; }
  /* "scan another site" row under the report */
  .report-foot { display: none; }
  body.shared .report-foot { display: flex; justify-content: center; margin: 40px 0 72px; }
  body.shared .report-foot a { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 12px; background: var(--sv-brand-2); color: #0B0E13; font-weight: 650; font-size: 15px; text-decoration: none; }
  body.shared .report-foot a:hover { filter: brightness(1.06); }
  /* print / PDF export: show only the report, on a light background.
     .report-foot/.back-to-start MUST be hidden here too — a PDF (/r/<id>?print=1
     carries both .shared and .printing) must not include the "Scan another site" button. */
  body.printing .hdr, body.printing .hero, body.printing footer, body.printing .repactions,
  body.printing .report-foot, body.printing .back-to-start, body.printing .progress { display: none !important; }
  body.printing .results { display: block !important; margin-top: 0 !important; }
  @media print { .hdr, .hero, footer, .repactions, .report-foot, .back-to-start, .progress { display: none !important; } .results { display: block !important; } }

  .oplat { margin-top: 8px; color: var(--sv-ink-2); font-size: 13px; overflow-wrap: anywhere; }
  .oplat details { margin-top: 6px; font-size: 12px; }
  .oplat summary { cursor: pointer; }
  .oplat ul { padding-left: 20px; }
  .fhow { margin-top: 8px; color: var(--sv-ink-2); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
  .lockchip { display: inline-block; margin-top: 5px; padding: 2px 7px; border: 1px solid var(--sv-border); border-radius: var(--sv-radius-sm); background: var(--sv-surface-2); color: var(--sv-ink-2); font-size: 11px; }
  .ctrlscore { flex: 0 1 180px; text-align: center; color: var(--sv-ink-2); font-size: 12px; overflow-wrap: anywhere; }
  .ctrlscore strong { display: block; color: var(--sv-ink); font-size: 28px; }
  .ctrlscore p { margin: 6px 0 0; line-height: 1.5; }
  .fixgroup-h { margin: 16px 0 8px; font-size: 13px; color: var(--sv-ink-2); overflow-wrap: anywhere; }
  @media (max-width: 600px) { .ctrlscore { flex-basis: auto; } }
  /* consent */
  form.scan { flex-wrap: wrap; }
  .consent-row { flex-basis: 100%; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--sv-ink-2); }
  .consent-row input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--sv-brand); cursor: pointer; }
  .consent-row label { cursor: pointer; }
  .consent-row a { color: var(--sv-brand); text-decoration: underline; text-underline-offset: .18em; }
  .consent-msg { grid-column: 2; margin: 0; color: var(--sv-leak); font-weight: 600; font-size: 13.5px; }
  .consent-msg:empty { display: none; }
  .scan-note { margin: 14px 0 0; font-size: 13px; color: var(--sv-ink-2); }
  .scan-note span { color: var(--sv-brand); margin-right: 4px; }
  .rescan-consent { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start; flex-basis: 100%; max-width: 720px; font-size: 13px; line-height: 1.55; color: var(--sv-ink-2); margin: 4px 0 0; }
  .rescan-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--sv-brand); }
  .rescan-consent a { color: var(--sv-brand); text-decoration: underline; }

/* Ungraded states carry text status, never a completed score ring. */
.score-status { color:var(--sv-ink-2); max-width:24rem; overflow-wrap:anywhere; }
.diagnostic-score { color:var(--sv-ink-2); font-size:13px; max-width:24rem; }
.verdict-note, .finding a { overflow-wrap:anywhere; }
@media (max-width:600px) { .score-status, .diagnostic-score { max-width:100%; } }
