/* ===== Inline report: web-only layout on top of report.css ==============
 *
 * Scoped under .report-inline. Do NOT add global selectors here — they
 * would leak into /check/, /about/, /pricing/ etc.
 */

/* ---- 0. Public page reset after report.css -----------------------------
 * report.css is shared with PDF rendering and contains global html/body/h*
 * rules. The inline fragment is loaded inside public pages, so we restore
 * the public shell before scoping report-specific styling below.
 */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text-primary);
  background: var(--bg-page);
  overflow-wrap: break-word;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

/* ---- 1. Wrapper & typography scale ------------------------------------ */
.report-inline {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 18px 72px;
  font-family: var(--font-body, "Manrope", sans-serif);
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text);
  background: transparent;
  overflow-x: hidden;
}
/* Kill mid-word breaks anywhere in the inline report. Russian words
   otherwise got chopped (e.g. "Наруш/ений", "Юридически/е документы").
   overflow-wrap: normal = never break inside a word on overflow.
   Text may overflow its container rather than fragment — that's a
   layout problem to solve by widening the column, not by chopping
   syllables. Explicit exception: long URLs / code get `.break-any`. */
.report-inline,
.report-inline *,
.report-inline .label,
.report-inline .title,
.report-inline .value,
.report-inline .body,
.report-inline td,
.report-inline th,
.report-inline li,
.report-inline p {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}
.report-inline .break-any,
.report-inline .url,
.report-inline code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.report-inline h1 { font-size: 40px; }
.report-inline h2 { font-size: 24px; margin-bottom: 20px; }
.report-inline h3 { font-size: 18px; font-weight: 800; }
.report-inline .report-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--color-border);
}
.report-inline .report-section:last-child { border-bottom: none; }
.report-inline .report-section-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 24px;
}

/* Neutralize PDF page break / paper look */
.report-inline .page,
.report-inline .report-section { page-break-after: auto; }

/* ---- 2. Component size bumps relative to report.css defaults ---------- */
.report-inline .icon { width: 22px; height: 22px; }
.report-inline .icon-sm { width: 18px; height: 18px; }
.report-inline .icon-lg { width: 30px; height: 30px; }

.report-inline .summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 0.9fr) minmax(0, 1.38fr) minmax(0, 1.08fr);
  gap: 12px;
}
.report-inline .summary-card {
  min-height: 164px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  padding: 26px 28px 22px;
  border: 1.2px solid var(--color-warn);
  border-radius: 8px;
  background: #fff;
}
.report-inline .summary-risk-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}
.report-inline .summary-label {
  color: #111;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
}
.report-inline .summary-value {
  margin-top: 18px;
  color: var(--color-warn);
  font-size: 32px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.report-inline .summary-risk-value {
  font-size: 32px;
}
.report-inline .summary-hint {
  margin: 24px 0 0;
  color: #8d8d8d;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}
.report-inline .summary-risk-icon {
  width: 42px;
  height: 42px;
  color: var(--color-warn);
}
.report-inline .summary-risk-icon .icon {
  width: 42px;
  height: 42px;
}
.report-inline .summary-fines-card {
  min-width: 0;
}
.report-inline .summary-fines-value {
  display: grid;
  gap: 8px;
  color: #e66a00;
  font-size: 32px;
  line-height: 1.16;
  overflow-wrap: anywhere;
}
.report-inline .summary-gauge-card {
  justify-content: center;
  align-items: stretch;
  padding: 20px 24px 20px;
}
.report-inline .summary-gauge-wrap {
  display: flex;
  justify-content: center;
}
.report-inline .summary-gauge {
  width: min(100%, 220px);
  height: 102px;
  overflow: visible;
}
.report-inline .summary-gauge-track,
.report-inline .summary-gauge-active {
  stroke-width: 6;
}
.report-inline .summary-gauge-track {
  stroke: #e9e9e9;
}
.report-inline .summary-gauge-active {
  stroke: #f06a00;
}
.report-inline .summary-gauge-labels {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: -2px;
  color: #8c8c8c;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
}
.report-inline .summary-gauge-labels .active {
  color: #111;
}
.report-inline .hero-footnote {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: #8c8c8c;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.report-inline .profile-strip {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  padding: 18px;
  border: 1px solid #d1d1d1;
  border-radius: 8px;
  background: #fff;
}
.report-inline .profile-strip-item {
  min-width: 0;
  display: grid;
  grid-template-rows: 30px auto;
  row-gap: 4px;
  align-content: start;
  padding: 0 18px;
  border-left: 1px solid #d1d1d1;
}
.report-inline .profile-strip-item:first-child {
  border-left: 0;
  padding-left: 0;
}
.report-inline .profile-strip-item:last-child {
  padding-right: 0;
}
.report-inline .profile-strip .label {
  color: #8d8d8d;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
}
.report-inline .profile-strip .value {
  margin-top: 0;
  color: #111;
  font-size: 14px;
  line-height: 1.43;
  font-weight: 800;
}
.report-inline .profile-strip .value.positive {
  color: var(--color-pass);
}
.report-inline .profile-strip .value.negative {
  color: #8d8d8d;
}

/* Fines table: fixed column ratios + reasonable body font + keep price
   column on a single line instead of letting it blow up to hero-size. */
.report-inline .fines-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.report-inline .fines-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}
.report-inline .fines-table th,
.report-inline .fines-table td {
  padding: 12px 14px;
  vertical-align: top;
  word-break: normal;
  overflow-wrap: break-word;
}
.report-inline .fines-table th {
  font-weight: 700;
  color: var(--color-text-muted);
  font-size: 12px;
  white-space: nowrap;
}
.report-inline .fines-table td.fine-amount {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-fail);
  white-space: nowrap;
  text-align: right;
}
.report-inline .fines-table .fine-note {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--color-text-muted);
  white-space: normal;
}
/* Column widths — law wide, koap/org/count compact, price right-aligned */
.report-inline .fines-table col.col-law     { width: 34%; }
.report-inline .fines-table col.col-koap    { width: 16%; }
.report-inline .fines-table col.col-org     { width: 20%; }
.report-inline .fines-table col.col-count   { width: 10%; }
.report-inline .fines-table col.col-amount  { width: 20%; }
.report-inline .fines-total-bar { font-size: 12px; }
.report-inline .fines-total-bar .total { font-size: 14px; }
.report-inline .action-pill { font-size: 12px; }

/* Action card: lock grid ratios so the pink "Потенциальный штраф"
   column is identical across all 5 cards. Base report.css uses
   `40px 2fr 1fr 2fr` which lets the nowrap price stretch its column.
   We use minmax(0, Nfr) + fixed fine column to keep it consistent. */
.report-inline .action-card {
  padding: 0;
  border-radius: 12px;
  margin-bottom: 14px;
  grid-template-columns: 64px minmax(0, 2.2fr) 250px minmax(0, 2fr);
  align-items: stretch;
}
.report-inline .action-num {
  width: auto; height: auto;
  border-radius: 0;
  background: var(--color-fail); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800;
  min-height: 100%;
}
.report-inline .action-cell { padding: 16px 18px; min-width: 0; }
.report-inline .action-cell .title {
  font-size: 12px; font-weight: 700; color: var(--color-text);
  margin-bottom: 8px;
}
.report-inline .action-cell .body {
  font-size: 14px; color: var(--color-text-muted); line-height: 1.45;
}
.report-inline .action-cell.fine-cell { background: var(--color-fail-bg); }
.report-inline .action-cell.fine-cell .amount {
  color: var(--color-fail); font-weight: 700; font-size: 15px;
  white-space: normal;  /* allow the price to wrap if narrow */
  overflow-wrap: break-word;
}
.report-inline .action-cell.fine-cell .fine-note {
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.45;
}
.report-inline .action-cell.fine-cell .fine-article {
  margin-top: 8px;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.35;
}

.report-inline .status-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  padding: 18px 20px;
}

.report-inline .finding {
  grid-template-columns: 30px minmax(0, 1.15fr) minmax(0, 1fr) minmax(200px, 250px);
  gap: 18px;
  padding: 20px;
  border-radius: 12px;
  align-items: start;
}
.report-inline .finding-icon-circle {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--color-muted-bg);
}
.report-inline .finding-icon-circle.status-FAIL { background: var(--color-fail-bg); }
.report-inline .finding-icon-circle.status-WARNING { background: var(--color-warn-bg); }
.report-inline .finding-icon-circle.status-INSUFFICIENT_DATA,
.report-inline .finding-icon-circle.status-AI_FLAG_REQUIRING_REVIEW { background: var(--color-info-bg); }
.report-inline .finding-icon-circle .icon { width: 18px; height: 18px; }

.report-inline .finding-fine-box {
  display: inline-block;
  background: var(--color-fail-bg);
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 12px;
}
.report-inline .finding-fine-box .label {
  color: var(--color-fail);
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 2px;
}
.report-inline .finding-fine-box .amount {
  font-size: 14px;
  color: var(--color-text);
}

.report-inline .finding-facts {
  border-left: 1px solid var(--color-border);
  padding-left: 18px;
}
.report-inline .finding-facts:not(:has(.facts-title)) {
  border-left: 0;
  padding-left: 0;
}
.report-inline .finding-facts .facts-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.report-inline .finding-facts .evidence-list { margin: 0; }
.report-inline .evidence-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 9px;
  font-size: 14px;
  line-height: 1.43;
}
.report-inline .evidence-list .ev-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 1px;
}
.report-inline .evidence-list .ev-ok { color: var(--color-pass); }
.report-inline .evidence-list .ev-no { color: var(--color-text-faint); }

.report-inline .group-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-fail);
  font-weight: 700;
}
.report-inline .group-count-warn { color: var(--color-warn); }
.report-inline .group-count .icon { width: 16px; height: 16px; }

@media (max-width: 1023px) {
  .report-inline .finding {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .report-inline .finding-facts {
    border-left: 0;
    padding-left: 0;
  }
}
.report-inline .sec-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.report-inline .sec-card { padding: 14px; border-radius: 10px; }

/* Passed-summary: stat on top (full width), chips in 4-col grid below.
   Layout is flex-based to avoid conflicts with the 5-col grid
   defined in base report.css. Chips use auto-fit so they gracefully
   collapse to 2 cols on narrow screens without us hand-coding
   breakpoints. */
.report-inline .passed-summary {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  gap: 14px;
  margin-bottom: 20px;
}
.report-inline .passed-summary > .passed-stat {
  align-self: flex-start;
  min-width: 260px;
  padding: 14px 18px;
}
.report-inline .passed-summary > .passed-chips {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px;
  width: 100%;
}
@media (max-width: 720px) {
  .report-inline .passed-summary > .passed-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
.report-inline .passed-chip {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--color-pass-bg);
  border: 1px solid transparent;
  display: grid;
  grid-template-columns: 24px 1fr;
  grid-template-rows: auto auto auto;
  gap: 4px 10px;
  align-items: center;
}
.report-inline .passed-chip .icon { grid-row: 1 / 3; align-self: start; }
.report-inline .passed-chip .label {
  font-size: 14px;
  color: var(--color-text);
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
  line-height: 1.3;
}
.report-inline .passed-chip .ratio {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-pass);
}
.report-inline .passed-table .passed-category .icon {
  display: inline-block;
}
.report-inline .passed-chip .progress-bar { grid-column: 1 / -1; margin-top: 4px; }
.report-inline .progress-bar {
  height: 6px; background: rgba(46,158,95,.15);
  border-radius: 3px; overflow: hidden; margin-top: 6px;
}
.report-inline .progress-fill {
  height: 100%; background: var(--color-pass);
  width: 0%;
  transition: width 900ms cubic-bezier(.2,.7,.2,1);
}

/* ---- Status legend: colored pills + description (Figma «Статусы проверок») */
.report-inline .status-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 24px;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
}
@media (max-width: 1024px) {
  .report-inline .status-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.report-inline .status-legend-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.report-inline .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.report-inline .status-pill .icon { width: 16px; height: 16px; flex: 0 0 auto; }
.report-inline .status-legend-item .desc {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.45;
}
.report-inline .status-pill.status-fail { background: var(--color-fail-bg); color: var(--color-fail); }
.report-inline .status-pill.status-warn { background: var(--color-warn-bg); color: var(--color-warn); }
.report-inline .status-pill.status-partial { background: #E7F6F7; color: #009FB1; }
.report-inline .status-pill.status-info { background: var(--color-info-bg); color: var(--color-info); }
.report-inline .status-pill.status-nodata { background: var(--color-muted-bg); color: var(--color-text); }
.report-inline .status-pill.status-muted { background: var(--color-muted-bg); color: var(--color-text-muted); }

.report-inline .group-header .group-meta .title { font-size: 18px; }
.report-inline .group-header .group-meta .desc { font-size: 12px; line-height: 1.45; }
.report-inline .group-header .group-count { font-size: 14px; }

.report-inline .finding-body .title { font-size: 18px; }
.report-inline .finding-body .reason {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.report-inline .finding-fine-badge { font-size: 12px; }
.report-inline .evidence-list {
  font-size: 14px;
  line-height: 1.5;
}
.report-inline .finding-aside {
  font-size: 14px;
  line-height: 1.43;
}
.report-inline .text-expand-block {
  display: block;
}
.report-inline .text-expand-block .text-preview {
  margin: 0;
}
.report-inline .text-expand-block:has(details.text-expand[open]) .text-preview {
  display: none;
}
.report-inline details.text-expand {
  margin-top: 6px;
}
.report-inline details.text-expand[open] {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0;
}
.report-inline details.text-expand summary {
  order: 2;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: var(--color-accent, #2563eb);
  font-size: 12px;
  font-weight: 700;
  list-style: none;
  text-decoration: none;
}
.report-inline details.text-expand summary:hover {
  text-decoration: underline;
}
.report-inline details.text-expand summary:focus {
  outline: none;
}
.report-inline details.text-expand summary:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-accent, #2563eb) 35%, transparent);
  outline-offset: 2px;
  border-radius: 4px;
}
.report-inline details.text-expand summary::-webkit-details-marker {
  display: none;
}
.report-inline details.text-expand summary .less {
  display: none;
}
.report-inline details.text-expand[open] summary .more {
  display: none;
}
.report-inline details.text-expand[open] summary .less {
  display: inline;
}
.report-inline details.text-expand[open] summary {
  margin-top: 2px;
  margin-bottom: 0;
}
.report-inline details.text-expand p {
  order: 1;
  margin: 0;
  white-space: pre-wrap;
}
.report-inline .finding-status-pill { font-size: 12px; }

.report-inline .sec-archive-toggle { font-size: 14px; }
.report-inline .sec-hero .text .title,
.report-inline .gap-hero .text .title { font-size: 14px; }
.report-inline .sec-hero .text .desc { font-size: 14px; line-height: 1.43; }
.report-inline .sec-hero .level .label { font-size: 12px; }
.report-inline .sec-hero .level .value,
.report-inline .gap-hero .level .value { font-size: 18px; }
.report-inline .sec-card-header .title { font-size: 14px; }
.report-inline .sec-chip { font-size: 12px; }
.report-inline .sec-list,
.report-inline .sec-rec {
  font-size: 14px;
  line-height: 1.43;
}
.report-inline .sec-more { font-size: 12px; }

.report-inline .passed-stat .label { font-size: 14px; font-weight: 700; }
.report-inline .passed-table {
  font-size: 14px;
  line-height: 1.43;
}

.report-inline .gap-card .title { font-size: 14px; }
.report-inline .gap-card .sub,
.report-inline .gap-card .gap-item,
.report-inline .gap-card .gap-extra,
.report-inline .gap-card .registry-check-help {
  font-size: 14px;
  line-height: 1.5;
}
.report-inline .gap-card .sub { margin-bottom: 14px; }
.report-inline .gap-card .registry-check-help { margin-top: 14px; }
.report-inline .tab { font-size: 14px; }

.report-inline .next-section-title { font-size: 24px; margin: 24px 0 16px; }
.report-inline .next-card { padding: 16px; border-radius: 12px; margin-bottom: 12px; }
.report-inline .next-card .body .title { font-size: 14px; }
.report-inline .next-card .body .desc {
  font-size: 14px;
  line-height: 1.5;
}

.report-inline .disclaimer {
  padding: 16px; background: var(--color-muted-bg);
  border-radius: 10px; color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.55;
}

/* ---- 3. Reveal-on-scroll animations ----------------------------------- */
.report-inline .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(.2,.7,.2,1);
}
.report-inline .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.report-inline .stagger-item {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease, transform 500ms cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--stagger-index, 0) * 80ms);
}
.report-inline .stagger-item.is-visible {
  opacity: 1;
  transform: none;
}

/* Fallback: if JS is disabled, show everything immediately. */
.no-js .report-inline .reveal,
.no-js .report-inline .stagger-item {
  opacity: 1 !important;
  transform: none !important;
}

/* The hero is always visible — it's above the fold. */
.report-inline .report-hero { opacity: 1; transform: none; }

/* ---- 4. Toolbar (sticky download buttons) ---------------------------- */
.report-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 16px;
  margin: 0 auto 16px;
  max-width: 1040px;
  background: var(--color-card-bg, #fff);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.report-toolbar .target-url {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}
.report-toolbar .toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---- 5. Skeleton while fragment is loading --------------------------- */
.report-skeleton {
  max-width: 1040px;
  margin: 24px auto;
  padding: 32px 16px;
  color: var(--text-muted, #888);
  text-align: center;
  font-size: 14px;
}

/* ---- 6. Mobile breakpoint (≤ 768px) ---------------------------------- */
@media (max-width: 768px) {
  .report-inline { padding: 18px 12px 52px; font-size: 14px; }
  .report-inline h1 { font-size: 24px; }
  .report-inline h2,
  .report-inline .report-section-title { font-size: 22px; }

  .report-inline .summary-grid {
    grid-template-columns: 1fr;
  }

  .report-inline .summary-card {
    min-height: auto;
    padding: 22px;
  }

  .report-inline .summary-fines-value {
    font-size: 28px;
    white-space: normal;
  }

  .report-inline .summary-gauge {
    width: min(100%, 220px);
    height: 104px;
  }

  .report-inline .profile-strip {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    overflow: hidden;
  }

  .report-inline .profile-strip-item {
    padding: 16px;
    border-left: 0;
    border-top: 1px solid #d1d1d1;
  }

  .report-inline .profile-strip-item:first-child {
    padding-left: 16px;
  }

  .report-inline .profile-strip-item:last-child {
    padding-right: 16px;
  }

  .report-inline .profile-strip-item:nth-child(1),
  .report-inline .profile-strip-item:nth-child(2) {
    border-top: 0;
  }

  .report-inline .profile-strip-item:nth-child(odd) {
    border-right: 1px solid #d1d1d1;
  }

  .report-inline .profile-strip-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .report-inline .status-legend { grid-template-columns: 1fr; }
  .report-inline .sec-cards { grid-template-columns: 1fr; }
  /* passed-summary already flex-column so chips wrap naturally via auto-fit */

  .report-inline .action-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
  }
  .report-inline .action-num {
    grid-row: auto;
    grid-column: 1;
    width: 36px;
    height: 36px;
    min-height: 0;
    margin: 14px 16px 2px;
    border-radius: 999px;
    font-size: 17px;
  }
  .report-inline .action-cell {
    grid-column: 1;
    width: 100%;
    padding: 12px 16px;
    box-sizing: border-box;
  }
  .report-inline .action-cell.fine-cell {
    grid-column: 1;
    padding-left: 16px;
    border-top: 1px solid rgba(220, 53, 69, 0.12);
    border-bottom: 1px solid rgba(220, 53, 69, 0.12);
  }

  .report-inline .next-card {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }
  .report-inline .next-card .icon-wrap {
    display: none;
  }
  .report-inline .next-card .num {
    grid-column: 1;
    grid-row: 1;
    width: 32px;
    height: 32px;
  }
  .report-inline .next-card .body {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .report-inline .finding {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .report-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .report-toolbar .target-url { text-align: center; }
}

/* ---- Hero download row (under the score card, primary position) ----- */
.report-inline .hero-downloads {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 18px 0 8px;
}
.report-inline .hero-downloads .btn { min-width: 160px; }

/* URL header rendered by progress.html outside the fragment */
.report-url-header {
  padding: 14px 18px;
  margin-bottom: 24px;
  border: 1px solid var(--color-border, #E5E7EB);
  border-radius: 10px;
  background: #FAFAFA;
  font-size: 14px;
  color: #555;
  text-align: center;
}
.report-url-header strong { color: #1A1A1A; font-weight: 700; }

/* ---- Download footer (mirrors the sticky toolbar at the top) --------- */
.report-inline .report-download-footer { border-bottom: none; }
.report-inline .download-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #FAFAFA;
}
.report-inline .download-footer-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
}
.report-inline .download-footer-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---- Example page: report preview header ----------------------------- */
.example-report-hero {
  padding: clamp(72px, 8vw, 104px) 0 0;
}

.example-report-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(32px, 6vw, 80px);
  padding-bottom: clamp(44px, 5vw, 60px);
  border-bottom: 1px solid #e6e6e6;
}

.example-report-copy {
  min-width: 0;
}

.example-report-title {
  margin: 0;
  font-family: var(--font-heading, "Manrope", sans-serif);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #000;
}

.example-report-sub {
  max-width: 34rem;
  margin: clamp(28px, 3vw, 36px) 0 0;
  color: #8a8a8a;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.55;
  font-weight: 700;
}

.example-report-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 8px;
}

.example-report-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 164px;
  height: 38px;
  padding: 0 24px;
  border: 1px solid #d7d7d7;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 0.875rem;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

.example-report-tab.is-active {
  border-color: #000;
  background: #000;
  color: #fff;
}

.example-report-body {
  padding: clamp(36px, 4vw, 48px) 0 4rem;
}

.example-report-body .report-inline {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 980px) {
  .example-report-head {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .example-report-tabs {
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  .example-report-hero {
    padding-top: 56px;
  }

  .example-report-title {
    font-size: 2rem;
  }

  .example-report-tabs {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .example-report-tab {
    width: 100%;
    min-width: 0;
  }
}

/* ---- Demo CTA: text + illustration (mirrors Figma «окончание») -------- */
.report-demo-cta-section {
  padding-top: var(--section-py-lg);
  padding-bottom: var(--section-py-lg);
}
.report-demo-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  max-width: var(--container-max, 1196px);
  margin: 0 auto;
  padding: 0 16px;
}
.report-demo-cta-body { flex: 1 1 0; min-width: 0; max-width: 620px; }
.report-demo-cta-title { margin: 0; }
.report-demo-cta-title .accent-text { color: var(--accent, #e70f18); }
.report-demo-cta-sub { margin: 1.5rem 0 0; max-width: 560px; }
.report-demo-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}
.report-demo-cta-art {
  flex: 0 0 auto;
  width: clamp(280px, 38%, 480px);
}
.report-demo-cta-art img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}
@media (max-width: 860px) {
  .report-demo-cta {
    flex-direction: column-reverse;
    align-items: flex-start;
    text-align: left;
    gap: 28px;
  }
  .report-demo-cta-art { width: clamp(220px, 70%, 360px); align-self: center; }
}

/* ---- 7. Respect prefers-reduced-motion -------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .report-inline .reveal,
  .report-inline .stagger-item,
  .report-inline .gauge-needle,
  .report-inline .progress-fill {
    transition: none !important;
  }
  .report-inline .reveal,
  .report-inline .stagger-item {
    opacity: 1;
    transform: none;
  }
}

/* ---- 8. Guide typography: override report.css weights (kit: Bold/ExtraBold only) */
.report-inline .sec-chip,
.report-inline .finding-status-pill,
.report-inline .finding-fine-badge,
.report-inline .passed-table .status-ok,
.report-inline .sec-archive-toggle,
.report-inline .status-legend-item .label,
.report-inline .action-pill {
  font-weight: 700;
}
.report-inline .finding-body .title,
.report-inline .group-header .group-meta .title,
.report-inline h1, .report-inline h2 {
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* ---- 9. Passed checks: visible rationale and neutral supporting facts --- */
.report-inline .passed-check-title {
  color: var(--color-text);
  font-weight: 700;
}
.report-inline .passed-check-reason {
  margin-top: 4px;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.report-inline .passed-evidence {
  margin-top: 8px;
}
.report-inline .passed-evidence summary {
  width: fit-content;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.report-inline .passed-evidence summary:focus-visible {
  outline: 2px solid var(--color-info);
  outline-offset: 3px;
  border-radius: 3px;
}
.report-inline .passed-facts {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}
.report-inline .passed-fact {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.report-inline .passed-fact-marker {
  color: #8A8A8A;
  line-height: 1.45;
}
.report-inline .passed-evidence-count {
  margin: 8px 0 0;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.45;
}
.report-inline .passed-truncation {
  margin: 10px 0 0;
  color: var(--color-text-muted);
  font-size: 12px;
}

@media (max-width: 640px) {
  .report-inline .passed-summary > .passed-stat {
    align-self: stretch;
    min-width: 0;
  }
  .report-inline .passed-table,
  .report-inline .passed-table tbody,
  .report-inline .passed-table tr,
  .report-inline .passed-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .report-inline .passed-table {
    table-layout: fixed;
  }
  .report-inline .passed-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .report-inline .passed-table tr {
    margin-bottom: 10px;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 9px;
  }
  .report-inline .passed-table td {
    min-width: 0;
    padding: 4px 0;
    border: 0;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  .report-inline .passed-table td::before {
    display: block;
    margin-bottom: 2px;
    color: var(--color-text-muted);
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
  }
  .report-inline .passed-table .passed-category {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .report-inline .passed-table .passed-category .icon {
    margin-right: 0;
  }
  .report-inline .passed-table .passed-category::before {
    content: none;
  }
}

/* ---- 10. Explicit report presentation states -------------------------- */
.report-inline .summary-grid.report-state-clean .summary-card {
  border-color: #cfe3d5;
}
.report-inline .summary-grid.report-state-clean .summary-risk-card {
  background: var(--color-pass-bg);
}
.report-inline .summary-grid.report-state-clean .summary-risk-value,
.report-inline .summary-grid.report-state-clean .summary-risk-icon,
.report-inline .summary-grid.report-state-clean > .summary-card:nth-child(2) .summary-value {
  color: var(--color-pass);
}
