/* Vydno — layout and components. Tokens live in tokens.css. No inline styles anywhere (CSP). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: var(--lh-md);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }
main:focus { outline: none; }
img, svg { max-width: 100%; }
svg.chart { max-width: none; display: block; overflow: visible; }

h1, h2, h3 { margin: 0 0 var(--space-3); font-weight: var(--fw-semibold); letter-spacing: -0.01em; }
h1 { font-size: var(--fs-xl); line-height: var(--lh-xl); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-lg); line-height: var(--lh-lg); }
h3 { font-size: var(--fs-md); line-height: var(--lh-md); margin-top: var(--space-5); }
p { margin: 0 0 var(--space-3); }
ul, ol { margin: 0 0 var(--space-3); padding-left: var(--space-5); }
code, pre, .mono { font-family: var(--mono); font-size: var(--fs-xs); }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); line-height: var(--lh-sm); }
.lead { font-size: var(--fs-md); }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* focus: visible ring on every interactive element */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible {
  outline: none; box-shadow: var(--ring);
}

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 10;
  background: var(--accent); color: var(--on-accent); padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm); font-weight: var(--fw-medium); min-height: var(--tap);
  display: inline-flex; align-items: center;
}
.skip-link:focus { top: var(--space-2); }

.container { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-4); }
@media (min-width: 768px) { .container { padding: 0 var(--space-5); } }

/* header / nav */
.site-header {
  background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 5;
}
.header-inner { display: flex; align-items: center; gap: var(--space-4); min-height: 56px; flex-wrap: wrap; }
.logo {
  font-weight: var(--fw-semibold); font-size: var(--fs-md); color: var(--text); text-decoration: none;
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap);
}
.logo-mark { color: var(--accent); }
.site-nav ul { list-style: none; display: flex; gap: var(--space-1); margin: 0; padding: 0; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--space-3);
  color: var(--muted); text-decoration: none; font-size: var(--fs-sm); font-weight: var(--fw-medium);
  border-radius: var(--radius-sm);
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.logout { margin-left: auto; }

.site-footer { border-top: 1px solid var(--border); margin-top: var(--space-7); padding: var(--space-5) 0; }
.footer-inner p { margin: 0 0 var(--space-1); font-size: var(--fs-sm); }

/* page structure */
main.container { padding-top: var(--space-5); }
.page-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: var(--space-4); margin-bottom: var(--space-5);
}
.page-head p { margin: 0; }
.head-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.section { margin: var(--space-6) 0; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-5);
}
.section.card { padding: var(--space-5); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0; margin: 0 0 var(--space-3); font-size: var(--fs-sm); }
.breadcrumbs li + li::before { content: "/"; color: var(--muted); margin-right: var(--space-2); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current] { color: var(--text); }
.run-line { font-size: var(--fs-sm); }
.inline-h { display: inline; margin: 0; }
.empty-state { text-align: center; padding: var(--space-6); }

/* flash messages */
.flash {
  border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); margin: 0 0 var(--space-4);
  border: 1px solid transparent; font-size: var(--fs-sm);
}
ul.flash { padding-left: var(--space-6); }
.flash-success { background: var(--success-soft); color: var(--success); border-color: currentColor; }
.flash-danger { background: var(--danger-soft); color: var(--danger); border-color: currentColor; }
.flash-warning { background: var(--warning-soft); color: var(--warning); border-color: currentColor; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--tap); padding: 0 var(--space-4); border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-medium); line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); color: var(--text); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-danger { color: var(--danger); border-color: currentColor; }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn-sm { padding: 0 var(--space-3); }
.btn[hidden] { display: none; }

/* badges */
.badge {
  display: inline-flex; align-items: center; padding: 0 var(--space-2); border-radius: 999px;
  font-size: var(--fs-xs); line-height: 22px; font-weight: var(--fw-medium);
  border: 1px solid currentColor; white-space: nowrap; vertical-align: middle;
}
.badge-success { color: var(--success); background: var(--success-soft); }
.badge-warning { color: var(--warning); background: var(--warning-soft); }
.badge-danger { color: var(--danger); background: var(--danger-soft); }
.badge-info { color: var(--info); background: var(--info-soft); }
.badge-neutral { color: var(--muted); background: var(--surface); }
h1 .badge { font-size: var(--fs-sm); line-height: 24px; }

/* forms */
.stack > * + * { margin-top: var(--space-4); }
.field { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.field.narrow { max-width: 320px; }
.field label, fieldset legend { font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.hint { font-size: var(--fs-xs); line-height: var(--lh-xs); color: var(--muted); margin: 0; }
input[type="text"], input[type="password"], input[type="number"], input[type="url"], input:not([type]),
select, textarea {
  font: inherit; font-size: var(--fs-sm); color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  min-height: var(--tap); padding: var(--space-2) var(--space-3); width: 100%;
}
textarea { min-height: 88px; resize: vertical; }
input[aria-invalid="true"] { border-color: var(--danger); }
input[type="checkbox"] { width: 20px; height: 20px; margin: 12px; accent-color: var(--accent); flex: none; }
.input-num { max-width: 120px; font-variant-numeric: tabular-nums; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); margin: 0 0 var(--space-4); }
.grid-form { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: end; margin: var(--space-4) 0; }
.field-wide { grid-column: 1 / -1; }
.form-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.grid-form .form-actions { align-self: end; }
.check, .check-row { display: flex; align-items: center; flex-wrap: wrap; }
.check-row { gap: var(--space-4); }
.check label { min-height: var(--tap); display: inline-flex; align-items: center; padding-right: var(--space-2); }
.inline-form { display: inline; margin: 0; }
.alias-form { display: flex; gap: var(--space-2); align-items: center; min-width: 280px; }
.add-form { border-top: 1px solid var(--border); padding-top: var(--space-4); }

.model-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0 var(--space-4); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.model-list li { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 0; }
.model-list label { min-height: var(--tap); display: flex; align-items: center; font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.model-list .small { grid-column: 2; line-height: var(--lh-xs); font-size: var(--fs-xs); }
.model-cost { color: var(--accent); font-variant-numeric: tabular-nums; }

.estimate { border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); margin: var(--space-4) 0; background: var(--accent-soft); }
.estimate.is-over { border-left-color: var(--danger); background: var(--danger-soft); }
.estimate-title { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .04em; font-weight: var(--fw-semibold); margin: 0 0 var(--space-1); }
.estimate-total { font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.estimate .over { display: block; color: var(--danger); font-weight: var(--fw-medium); }
.estimate .muted { margin: var(--space-2) 0 0; }

/* login / error */
.login-card, .error-card { max-width: 440px; margin: var(--space-7) auto; }
.error-code { margin-bottom: var(--space-1); font-size: var(--fs-sm); }

/* dashboard */
.cards { list-style: none; padding: 0; margin: 0 0 var(--space-6); display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.category-card { display: flex; flex-direction: column; gap: var(--space-2); }
.card-title { font-size: var(--fs-lg); margin: 0; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-head p { margin: 0; }
.card-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: auto; padding-top: var(--space-3); }
.trend { display: flex; align-items: center; gap: var(--space-3); }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-3) var(--space-4); margin: var(--space-2) 0; }
.kpi dt { font-size: var(--fs-xs); color: var(--muted); line-height: var(--lh-xs); }
.kpi dd { margin: 0; }
.kpi-value { font-size: var(--fs-lg); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.kpi-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: var(--space-5) 0; }
.kpi-card p { margin: 0 0 var(--space-2); }
.kpi-label { font-size: var(--fs-sm); color: var(--muted); font-weight: var(--fw-medium); }
.kpi-big { font-size: 40px; line-height: 48px; font-weight: var(--fw-semibold); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi-name { font-size: var(--fs-xl); line-height: var(--lh-xl); }
.kpi-range { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-2); }

.metric-help { display: grid; gap: var(--space-2) var(--space-5); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); font-size: var(--fs-sm); line-height: var(--lh-sm); margin: 0 0 var(--space-4); }
.metric-help dt { font-weight: var(--fw-semibold); }
.metric-help dd { margin: 0; color: var(--muted); }
.cond-hint { color: var(--muted); font-size: var(--fs-sm); }

/* tabs */
.tabs { border-bottom: 1px solid var(--border); margin: var(--space-4) 0 var(--space-3); }
.tabs ul { list-style: none; display: flex; gap: var(--space-1); margin: 0; padding: 0; overflow-x: auto; }
.tabs a {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--space-4);
  color: var(--muted); text-decoration: none; font-weight: var(--fw-medium); font-size: var(--fs-sm);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

/* tables */
.table-wrap { overflow: auto; max-height: 75vh; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: var(--space-3); }
table.data { border-collapse: separate; border-spacing: 0; width: 100%; font-size: var(--fs-sm); line-height: var(--lh-sm); }
table.data caption { caption-side: top; text-align: left; padding: var(--space-3) var(--space-4); color: var(--muted); font-size: var(--fs-xs); line-height: var(--lh-xs); }
table.data th, table.data td { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
table.data thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); font-weight: var(--fw-semibold); font-size: var(--fs-xs); line-height: var(--lh-xs); white-space: nowrap; box-shadow: inset 0 -1px 0 var(--border-strong); }
table.data tbody th { font-weight: var(--fw-medium); white-space: nowrap; }
table.data tbody tr:last-child > * { border-bottom: 0; }
table.data tfoot th, table.data tfoot td { border-top: 1px solid var(--border-strong); border-bottom: 0; color: var(--muted); font-size: var(--fs-xs); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data .pooled { border-left: 1px solid var(--border-strong); }
tr.is-focal > th { color: var(--accent); }
tr.is-off > * { color: var(--muted); }
tr.is-current > th { box-shadow: inset 3px 0 0 var(--accent); }
.focal-mark { color: var(--accent); }
.links { white-space: nowrap; }

.heat-table td.heat { min-width: 84px; }
.heat-table td.heat span { display: block; }
.heat-table .v { font-weight: var(--fw-semibold); font-size: var(--fs-sm); }
.heat-table .ci, .heat-table .rk, .heat-table .mrr { font-size: var(--fs-xs); line-height: 16px; }
.heat-table .rk { white-space: nowrap; }
.heat-table td:last-child { border-left: 1px solid var(--border-strong); }
.heat-0 { background: var(--heat-0-bg); color: var(--heat-0-fg); }
.heat-1 { background: var(--heat-1-bg); color: var(--heat-1-fg); }
.heat-2 { background: var(--heat-2-bg); color: var(--heat-2-fg); }
.heat-3 { background: var(--heat-3-bg); color: var(--heat-3-fg); }
.heat-4 { background: var(--heat-4-bg); color: var(--heat-4-fg); }
td.empty { color: var(--muted); }

.samples-table td { max-width: 360px; }
.brand-list { margin: 0; padding-left: var(--space-4); }
.brand-list .off-set { color: var(--muted); }
pre.raw { white-space: pre-wrap; word-break: break-word; background: var(--surface-2); color: var(--text); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); margin: var(--space-2) 0 0; max-width: 480px; }
.prompt-text { margin: var(--space-2) 0 0; max-width: 560px; white-space: normal; }

/* details */
details > summary { cursor: pointer; min-height: 32px; display: list-item; color: var(--accent); }
details > summary:hover { color: var(--accent-hover); }
.data-details { margin: var(--space-2) 0 var(--space-4); font-size: var(--fs-sm); }
.data-details .table-wrap { margin-top: var(--space-2); }
.section > details > summary { color: var(--text); }

/* charts */
.chart-wrap { overflow-x: auto; padding: var(--space-3) 0; }
.chart text { fill: var(--text); font-family: var(--font); }
.chart .c-track { fill: var(--chart-track); }
.chart .bar--set .c-bar { fill: var(--chart-set); }
.chart .bar--focal .c-bar { fill: var(--chart-focal); }
.chart .bar--focal .c-label { font-weight: var(--fw-semibold); }
.chart .bar--discovered .c-bar { fill: var(--chart-discovered); }
.chart .c-line { stroke: var(--accent); }
.chart .c-dot { fill: var(--accent); }
.chart .c-base { stroke: var(--border-strong); }
.chart .c-range { fill: var(--chart-range); }
.chart .c-point { fill: var(--chart-focal); }
.chart .c-badge { fill: var(--chart-badge); stroke: var(--border-strong); }
.chart .c-badge-text { fill: var(--muted); }
.legend { font-size: var(--fs-xs); line-height: var(--lh-xs); }

/* insights */
.insights { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; gap: var(--space-2); }
.insight { display: flex; gap: var(--space-3); align-items: baseline; padding: var(--space-3) var(--space-4); border: 1px solid var(--border); border-left-width: 3px; border-radius: var(--radius-sm); background: var(--surface); }
.insight-tag { flex: none; font-size: var(--fs-xs); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: .04em; min-width: 88px; }
.insight-success { border-left-color: var(--success); } .insight-success .insight-tag { color: var(--success); }
.insight-warning { border-left-color: var(--warning); } .insight-warning .insight-tag { color: var(--warning); }
.insight-danger { border-left-color: var(--danger); } .insight-danger .insight-tag { color: var(--danger); }
.insight-info { border-left-color: var(--info); } .insight-info .insight-tag { color: var(--info); }

/* run progress */
.progress-row { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-3); }
progress { appearance: none; -webkit-appearance: none; width: min(480px, 100%); height: 10px; border: 0; border-radius: 999px; background: var(--surface-2); overflow: hidden; color: var(--accent); }
progress::-webkit-progress-bar { background: var(--surface-2); border-radius: 999px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; transition: width .3s ease; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 999px; }
.progress-text { margin: 0; font-variant-numeric: tabular-nums; }
.pagination { display: flex; align-items: center; gap: var(--space-3); justify-content: center; margin: var(--space-3) 0; }

.share { margin-top: var(--space-5); }
.share label { display: block; font-size: var(--fs-sm); font-weight: var(--fw-medium); margin-bottom: var(--space-1); }
.share-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.share-row input { flex: 1 1 320px; font-family: var(--mono); font-size: var(--fs-xs); }

/* report */
.report-head { margin: var(--space-4) 0 var(--space-5); }
.eyebrow { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: var(--fw-semibold); margin-bottom: var(--space-2); }
.method ul, ul.method { padding-left: var(--space-5); }
.method li { margin-bottom: var(--space-1); }
.report-head h1 { font-size: 32px; line-height: 40px; max-width: 24em; }
.verdict { font-size: var(--fs-lg); line-height: var(--lh-lg); font-weight: var(--fw-medium); margin: 0 0 var(--space-3); padding-left: var(--space-3); border-left: 3px solid var(--info); max-width: 48em; }
.verdict-success { border-left-color: var(--success); }
.verdict-warning { border-left-color: var(--warning); }
.verdict-danger { border-left-color: var(--danger); }
.report-actions { margin: var(--space-3) 0 0; }
.prose { max-width: 48em; }

/* «Головне»: severity-coloured left border, no icons */
.callouts { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.callout { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--info); border-radius: var(--radius); padding: var(--space-4) var(--space-5); }
.callout p { margin: 0; max-width: 56em; }
.callout strong { display: block; font-weight: var(--fw-semibold); margin-bottom: var(--space-1); }
.callout-success { border-left-color: var(--success); }
.callout-warning { border-left-color: var(--warning); }
.callout-danger { border-left-color: var(--danger); }

/* «Де вас видно»: 4-step verbal scale, colour only through classes */
.scale-table td { min-width: 96px; }
.scale-table td.scale .w { font-weight: var(--fw-medium); }
.scale-table td.scale .v { font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.scale-table td:last-child { border-left: 1px solid var(--border-strong); }
.scale-0 { background: var(--scale-0-bg); color: var(--scale-0-fg); }
.scale-1 { background: var(--scale-1-bg); color: var(--scale-1-fg); }
.scale-2 { background: var(--scale-2-bg); color: var(--scale-2-fg); }
.scale-3 { background: var(--scale-3-bg); color: var(--scale-3-fg); }

/* «План дій» and «Пакети» */
.plan { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); }
.action-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-3); }
.action-head h3 { margin: 0; font-size: var(--fs-lg); line-height: var(--lh-lg); }
.action-n { color: var(--muted); font-variant-numeric: tabular-nums; }
.action-dl { display: grid; gap: var(--space-2) var(--space-5); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0; font-size: var(--fs-sm); line-height: var(--lh-sm); }
.action-dl dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: var(--fw-semibold); }
.action-dl dd { margin: 0; }
.offers { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.offer-card { display: flex; flex-direction: column; gap: var(--space-2); }
.offer-card h3 { margin: 0; }
.offer-card p { margin: 0; }
.offer-price { font-weight: var(--fw-semibold); font-size: var(--fs-lg); line-height: var(--lh-lg); }
.offer-card .cta { margin-top: auto; align-self: flex-start; }

/* expert appendix */
.expert > summary { color: var(--text); }
.expert[open] > summary { margin-bottom: var(--space-4); }
.expert-defs dt { font-family: var(--font); }

@media (max-width: 599px) {
  .report-head h1 { font-size: 26px; line-height: 32px; }
  h1 { font-size: 24px; line-height: 32px; }
  .card, .section.card { padding: var(--space-4); }
  .logout { margin-left: 0; }
  .insight { flex-direction: column; gap: var(--space-1); }
  .kpi-big { font-size: 32px; line-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  :root { --canvas: #fff; --surface: #fff; color-scheme: light; }
  body { font-size: 11pt; background: #fff; color: #111827; }
  .site-header, .site-footer, .site-nav, .skip-link, .btn, .cta, form, .tabs, .data-details summary,
  .report-actions { display: none !important; }
  .table-wrap { overflow: visible; max-height: none; border: 0; }
  table.data thead th { position: static; }
  .card, .callout, .action-card, .offer-card, .kpi-card, .table-wrap, svg.chart { break-inside: avoid; border-color: #ccc; }
  h2, h3 { break-after: avoid; }
  #plan, #expert { break-before: page; }
  details { display: block; }
  a { color: inherit; text-decoration: none; }
  a[href]::after { content: none !important; }
  .heat-table td.heat, td.scale, .callout, .verdict { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* print the expert appendix even when it is closed (browsers with ::details-content) */
@media print { #expert::details-content { content-visibility: visible; display: block; } }
