:root {
  --checkup-red: rgba(239, 68, 68, 0.96);
  --checkup-orange: rgba(251, 191, 36, 0.92);
  --checkup-yellow: rgba(250, 204, 21, 0.92);
  --checkup-green: rgba(16, 185, 129, 0.92);
}

.checkup-sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkup-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkup-action {
  padding: 10px 14px;
}

.checkup-muted {
  opacity: 0.88;
}

.checkup-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 820px) {
  .checkup-hero-grid { grid-template-columns: 1fr; }
}
.checkup-hero-grid--single {
  grid-template-columns: 1fr;
}

.checkup-hero-card {
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 12px 12px 10px;
}
html[data-theme="light"] .checkup-hero-card {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.03);
}

.checkup-summary {
  border-radius: 14px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
.checkup-summary__title {
  font-weight: 950;
  letter-spacing: 0.01em;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  line-height: 1.18;
}

.checkup-summary__titleRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.checkup-zone {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  width: fit-content;
}
html[data-theme="light"] .checkup-zone {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.03);
}
.checkup-zone-dot {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  opacity: 0.28;
  transform: scale(0.94);
  transition: transform 0.18s, opacity 0.18s, box-shadow 0.18s;
}
.checkup-zone-dot.is-active {
  opacity: 1;
  transform: scale(1.14);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.26),
    0 0 0 2px rgba(255, 255, 255, 0.10) inset;
}
html[data-theme="light"] .checkup-zone-dot.is-active {
  box-shadow:
    0 12px 26px rgba(15, 23, 42, 0.12),
    0 0 0 2px rgba(15, 23, 42, 0.08) inset;
}

/* Stronger "lit" glow by zone */
.checkup-zone-dot--stable.is-active { box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.28) inset, 0 0 22px rgba(16, 185, 129, 0.28), 0 12px 26px rgba(0,0,0,0.24); }
.checkup-zone-dot--attention.is-active { box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.26) inset, 0 0 22px rgba(250, 204, 21, 0.24), 0 12px 26px rgba(0,0,0,0.24); }
.checkup-zone-dot--imbalance.is-active { box-shadow: 0 0 0 2px rgba(79, 140, 255, 0.26) inset, 0 0 22px rgba(79, 140, 255, 0.24), 0 12px 26px rgba(0,0,0,0.24); }
.checkup-zone-dot--risk.is-active { box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.26) inset, 0 0 22px rgba(251, 191, 36, 0.24), 0 12px 26px rgba(0,0,0,0.24); }
.checkup-zone-dot--critical.is-active { box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.26) inset, 0 0 22px rgba(239, 68, 68, 0.24), 0 12px 26px rgba(0,0,0,0.24); }
.checkup-summary__kicker--prof {
  margin-top: 2px;
  margin-bottom: 8px;
}
.checkup-prof {
  margin: 2px 0 12px;
}
.checkup-prof__grid {
  display: grid;
  grid-template-columns: minmax(7.75rem, max-content) 1fr;
  gap: 9px 12px;
  align-items: center;
}
.checkup-prof__label {
  font-size: 13px;
  font-weight: 950;
  color: rgba(214, 226, 245, 0.9);
  line-height: 1.2;
}
.checkup-prof__track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
}
.checkup-prof__chunk {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.14);
}
.checkup-prof-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  box-sizing: border-box;
}
.checkup-prof-dot--empty {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.checkup-prof-dot--good,
.checkup-prof-dot--ideal {
  background: #22c55e;
  border: 1px solid rgba(21, 128, 61, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.checkup-prof-dot--red {
  background: #ef4444;
  border: 1px solid rgba(185, 28, 28, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.checkup-prof-dot--orange {
  background: #f59e0b;
  border: 1px solid rgba(180, 83, 9, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.checkup-prof__hint {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 650;
  color: rgba(180, 205, 245, 0.78);
}
.checkup-prof__legend {
  font-weight: 650;
}
html[data-theme="light"] .checkup-prof__label {
  color: rgba(15, 23, 42, 0.82);
}
html[data-theme="light"] .checkup-prof__chunk {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.04);
}
html[data-theme="light"] .checkup-prof-dot--empty {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.18);
}
html[data-theme="light"] .checkup-prof__hint {
  color: rgba(15, 23, 42, 0.62);
}
.checkup-summary__kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(180, 205, 245, 0.86);
}
.checkup-summary__kicker--signal {
  margin-top: 12px;
}
.checkup-signal-tip {
  position: relative;
  margin: 0;
}
.checkup-summary__signal-only {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(214, 226, 245, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 12px 12px;
}
.checkup-signal-tip__btn {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin-top: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(214, 226, 245, 0.92);
  font-size: 15px;
  font-weight: 900;
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.checkup-signal-tip__btn:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
}
.checkup-signal-tip__btn:focus-visible {
  outline: 2px solid rgba(79, 140, 255, 0.65);
  outline-offset: 2px;
}
.checkup-signal-tip__panel {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 18, 32, 0.96);
  color: rgba(214, 226, 245, 0.9);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.checkup-signal-tip--hero {
  position: relative;
  flex: 0 0 auto;
  align-self: center;
  margin-top: 0;
}
.checkup-signal-tip__panel--hero {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  margin-top: 0;
  width: min(380px, calc(100vw - 28px));
  max-width: none;
  z-index: 40;
}
@media (max-width: 520px) {
  .checkup-signal-tip__panel--hero {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: min(360px, calc(100vw - 24px));
  }
}
.checkup-signal-tip__panel[hidden] {
  display: none !important;
}
.checkup-signal-tip__lead {
  margin: 0 0 8px;
}
.checkup-signal-tip__vars {
  margin: 0 0 8px;
}
.checkup-signal-tip__list {
  margin: 0 0 8px;
  padding-left: 1.15em;
}
.checkup-signal-tip__list li {
  margin: 4px 0;
}
.checkup-signal-tip__note {
  margin: 0;
  opacity: 0.92;
  font-size: 12.5px;
  font-weight: 600;
}
html[data-theme="light"] .checkup-summary__kicker {
  color: rgba(15, 23, 42, 0.62);
}
html[data-theme="light"] .checkup-summary__signal-only {
  color: rgba(15, 23, 42, 0.78);
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.02);
}
html[data-theme="light"] .checkup-signal-tip__btn {
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(15, 23, 42, 0.04);
  color: rgba(15, 23, 42, 0.82);
}
html[data-theme="light"] .checkup-signal-tip__btn:hover {
  background: rgba(15, 23, 42, 0.07);
  border-color: rgba(15, 23, 42, 0.22);
}
html[data-theme="light"] .checkup-signal-tip__panel {
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.98);
  color: rgba(15, 23, 42, 0.82);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}
.checkup-summary__text {
  color: rgba(214, 226, 245, 0.88);
  font-size: 16px;
  line-height: 1.55;
}
.checkup-summary__meta {
  opacity: 0.85;
}
html[data-theme="light"] .checkup-summary__text {
  color: rgba(15, 23, 42, 0.78);
}

.checkup-summary--critical { border-color: rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.09); }
.checkup-summary--risk { border-color: rgba(251, 191, 36, 0.30); background: rgba(251, 191, 36, 0.10); }
.checkup-summary--attention { border-color: rgba(250, 204, 21, 0.26); background: rgba(250, 204, 21, 0.08); }
.checkup-summary--stable { border-color: rgba(16, 185, 129, 0.28); background: rgba(16, 185, 129, 0.08); }
.checkup-summary--imbalance { border-color: rgba(79, 140, 255, 0.30); background: rgba(79, 140, 255, 0.08); }
.checkup-summary--incomplete {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(148, 163, 184, 0.08);
}
.checkup-summary__incomplete {
  margin: 4px 0 0;
}
.checkup-summary__incomplete-lead {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
  color: rgba(214, 226, 245, 0.92);
}
.checkup-summary__incomplete-meta {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: rgba(180, 205, 245, 0.82);
}
html[data-theme="light"] .checkup-summary--incomplete {
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(15, 23, 42, 0.04);
}
html[data-theme="light"] .checkup-summary__incomplete-lead {
  color: rgba(15, 23, 42, 0.82);
}
html[data-theme="light"] .checkup-summary__incomplete-meta {
  color: rgba(15, 23, 42, 0.62);
}

.checkup-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}
.checkup-summary-meta {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0;
  font-variant-numeric: tabular-nums;
}
.checkup-count {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 800;
  max-width: 100%;
}
.checkup-count__inner {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  line-height: 1.25;
  min-width: 0;
}
.checkup-count__dot {
  margin: 0 0.35em;
  opacity: 0.55;
  font-weight: 900;
}
.checkup-count__pct {
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.25;
  opacity: 0.9;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.checkup-count__ro {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.checkup-count--ro {
  padding-left: 12px;
  padding-right: 12px;
}
.checkup-count__sep {
  font-weight: 700;
  font-size: 0.9em;
  opacity: 0.72;
  margin: 0 0.06em;
}
html[data-theme="light"] .checkup-count {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.03);
}

.checkup-rs-line {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 900;
  color: rgba(245, 247, 255, 0.92);
}
.checkup-rs-line__main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.checkup-rs-line__desc {
  margin: 0;
  padding-left: calc(34px + 10px);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  color: rgba(245, 247, 255, 0.78);
}
html[data-theme="light"] .checkup-rs-line__desc {
  color: rgba(15, 23, 42, 0.72);
}
html[data-theme="light"] .checkup-rs-line {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.02);
  color: rgba(15, 23, 42, 0.90);
}
.checkup-rs-line__marker {
  flex: 0 0 auto;
  width: 34px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  font-size: 16px;
  line-height: 1;
}
html[data-theme="light"] .checkup-rs-line__marker {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.02);
}
.checkup-rs-line__badge {
  flex: 0 0 auto;
  min-width: 40px;
  height: 28px;
  padding: 0 8px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(79, 140, 255, 0.26);
  background: rgba(79, 140, 255, 0.08);
  color: rgba(214, 226, 245, 0.92);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.10em;
}
html[data-theme="light"] .checkup-rs-line__badge {
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.08);
  color: rgba(15, 23, 42, 0.78);
}
.checkup-rs-line__text {
  min-width: 0;
  flex: 1 1 auto;
}
.checkup-rs-line--pending {
  border-color: rgba(79, 140, 255, 0.22);
  background: rgba(79, 140, 255, 0.06);
}
html[data-theme="light"] .checkup-rs-line--pending {
  border-color: rgba(37, 99, 235, 0.20);
  background: rgba(37, 99, 235, 0.06);
}

.checkup-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.checkup-title {
  margin-bottom: 8px;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  line-height: 1.18;
}
.checkup-title__muted {
  opacity: 0.78;
  font-weight: 800;
}
.checkup-title--sub {
  margin-left: 22px;
  margin-top: -4px;
  font-size: 0.98rem;
  opacity: 0.92;
}

.checkup-cta {
  border: 1px solid rgba(79, 140, 255, 0.22);
  background: rgba(79, 140, 255, 0.06);
  border-radius: 14px;
  padding: 12px 12px 10px;
}
html[data-theme="light"] .checkup-cta {
  border-color: rgba(37, 99, 235, 0.20);
  background: rgba(37, 99, 235, 0.06);
}
.checkup-cta__kicker {
  margin: 0 0 4px;
}
.checkup-cta__title {
  margin: 0 0 8px;
}
.checkup-cta__text {
  margin: 0 0 10px;
  color: rgba(214, 226, 245, 0.88);
}
html[data-theme="light"] .checkup-cta__text {
  color: rgba(15, 23, 42, 0.74);
}
.checkup-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.checkup-cta__btn {
  padding: 10px 14px;
}
.checkup-cta__btn--ghost {
  opacity: 0.9;
}
.checkup-cta__hint {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 650;
  color: rgba(180, 205, 245, 0.78);
}
html[data-theme="light"] .checkup-cta__hint {
  color: rgba(15, 23, 42, 0.62);
}

/* CTA contact selector (reuse site styles, tweak spacing) */
.checkup-cta__contact {
  margin-top: 10px;
}
.checkup-cta__contact .contact-options {
  margin-top: 10px;
}
.checkup-cta__note {
  margin-top: 10px;
}

/* CTA placement inside "Состояние системы" */
.checkup-summary__cta {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}
.checkup-summary__cta .contact-selector {
  width: min(520px, 100%);
}

/* Contacts at the end: print-only */
.checkup-print-contacts {
  display: none;
}

/* ===== Print (CheckUp) ===== */
@media print {
  /* Keep colors for badges where possible */
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  html, body {
    background: #fff !important;
    color: #000 !important;
  }

  /* Header/hero: no gradients, black text */
  .calculator-hero,
  .calculator-hero__divider,
  .calculator-hero__divider--top {
    background: none !important;
    box-shadow: none !important;
    filter: none !important;
  }
  .calculator-hero h1,
  .calculator-hero__subtitle,
  .calculator-hero__tagline {
    color: #111827 !important;
    background: none !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #111827 !important;
  }

  /* Hide UI controls not needed on paper */
  .theme-toggle,
  .checkup-actions,
  .calculator-top-row .methodology-action,
  .checkup-summary__cta,
  .methodology-actions,
  .to-top,
  .to-back,
  #contact-toast {
    display: none !important;
  }

  /* Make layout compact and printer-friendly */
  .calculator-content {
    max-width: var(--calc-max) !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
  }
  .calculator-top-row {
    margin: 0 0 10px !important;
  }

  /* Cards: remove glows/shadows, keep borders */
  .card,
  .calculator-card,
  .checkup-hero-card,
  .checkup-summary,
  .checkup-signal-tip__panel,
  .checkup-signal-only,
  .checkup-rs-line {
    box-shadow: none !important;
    filter: none !important;
  }
  .checkup-hero-card,
  .checkup-summary,
  .checkup-rs-line,
  .card,
  .calculator-card {
    background: #fff !important;
    border-color: #cbd5e1 !important;
    color: #000 !important;
  }

  .checkup-summary__kicker,
  .checkup-prof__label {
    color: #111827 !important;
    opacity: 1 !important;
  }
  .checkup-summary__text,
  .checkup-summary__signal-only,
  .checkup-rs-line__desc {
    color: #111827 !important;
  }

  .checkup-zone {
    border-color: #cbd5e1 !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  .checkup-zone-dot { opacity: 0.35 !important; box-shadow: none !important; }
  .checkup-zone-dot.is-active { opacity: 1 !important; transform: none !important; }

  /* Avoid cutting cards across pages */
  .checkup-card,
  .checkup-hero-card,
  .checkup-summary,
  .checkup-rs-line {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Prefer a new page per section card when it doesn't fit */
  .checkup-card { break-before: auto; }

  /* Tables readable on paper */
  .checkup-table {
    width: 100% !important;
    border-collapse: collapse;
  }
  .checkup-row td {
    border-top: 1px solid #e5e7eb;
  }

  .checkup-print-contacts {
    display: block !important;
    margin-top: 16px;
  }
  /* .checkup-print-contacts--top removed (contacts are inserted after §8.2 for print) */
  .checkup-print-contacts--after-cascade {
    margin-top: 10px !important;
    break-after: page;
    page-break-after: always;
  }
  .checkup-print-contacts,
  .checkup-print-contacts * {
    color: #111827 !important;
    text-shadow: none !important;
    box-shadow: none !important;
    filter: none !important;
  }
  .checkup-print-contacts .footer-contacts-block {
    border-color: #cbd5e1 !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  .checkup-print-contacts .footer-contacts-title {
    border-bottom-color: #e5e7eb !important;
  }
  /* Plain contacts: no card border/title, just a separator line */
  .checkup-print-contacts .footer-contacts-block--plain {
    padding: 12px 0 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
  .checkup-print-contacts .footer-contacts-block--plain::before {
    content: "";
    display: block;
    height: 2px;
    margin: 0 0 10px;
    background: linear-gradient(90deg, transparent, #111827 20%, #111827 80%, transparent);
  }
  /* Compact contacts: 2 columns × 3 rows */
  .checkup-print-contacts .footer-contacts {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 4px 18px;
    align-items: start;
  }
  .checkup-print-contacts .contact-link {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    padding: 3px 0 !important;
    background: none !important;
    color: #111827 !important;
    text-decoration: none !important;
    line-height: 1.35;
  }
  .checkup-print-contacts .contact-link span,
  .checkup-print-contacts .contact-link img {
    color: inherit !important;
  }
  .checkup-print-contacts .contact-link:hover,
  .checkup-print-contacts .contact-link:focus-visible {
    background: transparent !important;
  }

  /* Remove button shadows (Yes/No pills) on paper */
  .checkup-radio,
  .checkup-radio.is-selected,
  .checkup-radio__ui,
  .checkup-radio__label {
    box-shadow: none !important;
    filter: none !important;
    outline: none !important;
  }

  /* Keep selected answer clearly visible (filled bullet) */
  .checkup-radio__ui {
    border-color: #111827 !important;
    background: transparent !important;
  }
  .checkup-radio input:checked + .checkup-radio__ui {
    background: #111827 !important;
  }
  .checkup-tone--good input:checked + .checkup-radio__ui {
    border-color: #16a34a !important;
    background: #16a34a !important;
  }
  .checkup-tone--bad-red input:checked + .checkup-radio__ui {
    border-color: #dc2626 !important;
    background: #dc2626 !important;
  }
  .checkup-tone--bad-orange input:checked + .checkup-radio__ui {
    border-color: #d97706 !important;
    background: #d97706 !important;
  }
  .checkup-radio input:checked ~ .checkup-radio__label {
    font-weight: 900 !important;
    color: #111827 !important;
  }

  /* Show actual URLs on paper for messengers */
  .checkup-print-contacts .contact-link[href]::after {
    content: " (" attr(href) ")";
    font-size: 12px;
    font-weight: 600;
    color: #374151 !important;
  }
  .checkup-print-contacts .contact-link[href^="tel:"]::after,
  .checkup-print-contacts .contact-link[href^="mailto:"]::after {
    content: "";
  }
}

.checkup-table-wrap {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.02);
}
html[data-theme="light"] .checkup-table-wrap {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.02);
}

.checkup-table {
  width: 100%;
  border-collapse: collapse;
}
.checkup-table tbody td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
}
html[data-theme="light"] .checkup-table tbody td {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}
.checkup-table tbody tr:last-child td { border-bottom: 0; }

.checkup-col-yn, .checkup-yn {
  width: 90px;
  text-align: center;
}

.checkup-qtext {
  font-size: 14px; /* compact (smallest) */
  color: rgba(245, 247, 255, 0.92);
}
html[data-theme="light"] .checkup-qtext { color: rgba(15, 23, 42, 0.90); }

/* Text scale from ⚙️ settings: keep current size as the smallest. */
html[data-text-scale="compact"] .checkup-qtext { font-size: 14px; }
html[data-text-scale="medium"]  .checkup-qtext { font-size: 15px; }
html[data-text-scale="large"]   .checkup-qtext { font-size: 16px; }

.checkup-qline {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.checkup-sev-pill {
  flex: 0 0 auto;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 26px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
  line-height: 1;
}
.checkup-sev-pill--rs {
  width: 40px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.10em;
  border-color: rgba(79, 140, 255, 0.26);
  background: rgba(79, 140, 255, 0.08);
  color: rgba(214, 226, 245, 0.92);
}
html[data-theme="light"] .checkup-sev-pill {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.02);
}
html[data-theme="light"] .checkup-sev-pill--rs {
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.08);
  color: rgba(15, 23, 42, 0.78);
}

.checkup-radio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  min-width: 68px;
}
.checkup-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.checkup-radio__ui {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(214, 226, 245, 0.75);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0);
}
.checkup-radio__label {
  font-size: 13px;
  font-weight: 800;
  color: rgba(214, 226, 245, 0.92);
}
.checkup-radio:hover { filter: brightness(1.06); }

.checkup-tone--good {
  border-color: rgba(16, 185, 129, 0.34);
  background: rgba(16, 185, 129, 0.10);
}
.checkup-tone--bad-red {
  border-color: rgba(239, 68, 68, 0.40);
  background: rgba(239, 68, 68, 0.12);
}
.checkup-tone--bad-orange {
  border-color: rgba(251, 191, 36, 0.42);
  background: rgba(251, 191, 36, 0.12);
}

.checkup-radio.is-selected {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  outline: 1px solid rgba(255, 255, 255, 0.10);
}
.checkup-tone--good.is-selected {
  border-color: rgba(16, 185, 129, 0.62);
  background: rgba(16, 185, 129, 0.16);
}
.checkup-tone--bad-red.is-selected {
  border-color: rgba(239, 68, 68, 0.72);
  background: rgba(239, 68, 68, 0.16);
}
.checkup-tone--bad-orange.is-selected {
  border-color: rgba(251, 191, 36, 0.72);
  background: rgba(251, 191, 36, 0.16);
}

.checkup-tone--good .checkup-radio__label { color: rgba(187, 247, 208, 0.98); }
.checkup-tone--bad-red .checkup-radio__label { color: rgba(254, 226, 226, 0.98); }
.checkup-tone--bad-orange .checkup-radio__label { color: rgba(255, 237, 213, 0.98); }

.checkup-tone--good .checkup-radio__ui { border-color: rgba(16, 185, 129, 0.85); }
.checkup-tone--bad-red .checkup-radio__ui { border-color: rgba(239, 68, 68, 0.85); }
.checkup-tone--bad-orange .checkup-radio__ui { border-color: rgba(251, 191, 36, 0.85); }

.checkup-radio input:checked + .checkup-radio__ui {
  box-shadow: inset 0 0 0 4px rgba(248, 250, 252, 0.92);
}
.checkup-tone--good input:checked + .checkup-radio__ui {
  border-color: rgba(16, 185, 129, 0.95);
  box-shadow: inset 0 0 0 4px rgba(16, 185, 129, 0.92);
}
.checkup-tone--bad-red input:checked + .checkup-radio__ui {
  border-color: rgba(239, 68, 68, 0.95);
  box-shadow: inset 0 0 0 4px rgba(239, 68, 68, 0.92);
}
.checkup-tone--bad-orange input:checked + .checkup-radio__ui {
  border-color: rgba(251, 191, 36, 0.95);
  box-shadow: inset 0 0 0 4px rgba(251, 191, 36, 0.92);
}

html[data-theme="light"] .checkup-radio {
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(15, 23, 42, 0.02);
}
html[data-theme="light"] .checkup-radio__ui {
  border-color: rgba(15, 23, 42, 0.36);
}
html[data-theme="light"] .checkup-radio__label {
  color: rgba(15, 23, 42, 0.78);
}
html[data-theme="light"] .checkup-radio input:checked ~ .checkup-radio__label {
  color: rgba(15, 23, 42, 0.92);
}
html[data-theme="light"] .checkup-tone--good input:checked ~ .checkup-radio__label {
  color: rgba(5, 150, 105, 0.95);
}
html[data-theme="light"] .checkup-tone--bad-red input:checked ~ .checkup-radio__label {
  color: rgba(190, 18, 60, 0.96);
}
html[data-theme="light"] .checkup-tone--bad-orange input:checked ~ .checkup-radio__label {
  color: rgba(180, 83, 9, 0.96);
}

html[data-theme="light"] .checkup-tone--good .checkup-radio__label { color: rgba(5, 150, 105, 0.95); }
html[data-theme="light"] .checkup-tone--bad-red .checkup-radio__label { color: rgba(190, 18, 60, 0.95); }
html[data-theme="light"] .checkup-tone--bad-orange .checkup-radio__label { color: rgba(180, 83, 9, 0.95); }

@media (max-width: 720px) {
  .checkup-col-yn, .checkup-yn { width: 86px; }
  .checkup-table thead th { padding: 10px 10px; }
  .checkup-table tbody td { padding: 10px 10px; }
  .checkup-radio { min-width: 62px; padding: 7px 8px; }
}

/* Mobile: move Да/Нет under the question (no horizontal overflow). */
@media (max-width: 520px) {
  .checkup-col-yn, .checkup-yn { width: auto; }

  /* Turn each row into a small grid:
     [Question]
     [Да] [Нет]
  */
  .checkup-table,
  .checkup-table tbody {
    display: block;
    width: 100%;
  }
  .checkup-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "q q"
      "yes no";
    gap: 10px 10px;
  }
  .checkup-row td { display: block; }
  .checkup-row .checkup-q {
    grid-area: q;
    padding-bottom: 6px;
  }
  .checkup-row td.checkup-yn:nth-of-type(2) { grid-area: yes; }
  .checkup-row td.checkup-yn:nth-of-type(3) { grid-area: no; }

  .checkup-yn { text-align: left; }
  .checkup-radio {
    width: 100%;
    justify-content: center;
    min-width: 0;
  }
}

