/* =====================================================================
   HosurOnline · Education Horoscope Report · A4 32-page print/PDF layout
   ===================================================================== */
@font-face { font-family: "HO Tamil"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/noto-sans-tamil-tamil-400-normal.woff2") format("woff2"); unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC; }
@font-face { font-family: "HO Tamil"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/noto-sans-tamil-tamil-600-normal.woff2") format("woff2"); unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC; }
@font-face { font-family: "HO Tamil"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/noto-sans-tamil-tamil-700-normal.woff2") format("woff2"); unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC; }
@font-face { font-family: "HO Tamil"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/noto-sans-tamil-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "HO Tamil"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/noto-sans-tamil-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "HO Tamil"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/noto-sans-tamil-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@page { size: A4 portrait; margin: 0; }

.report {
  --crimson: #7C1D1D; --crimson-2: #9F1239; --gold: #B45309; --gold-tint: #E6D5B8; --green: #166534;
  --ivory: #FDF8EE; --ink: #1F2937; --muted: #4B5563; --zebra: #FAF7F2; --line: #E5E0D5;
  font-family: "HO Tamil", "Noto Sans Tamil", "Latha", "Nirmala UI", "Segoe UI", system-ui, sans-serif;
  color: var(--ink); font-size: 9.5pt; line-height: 1.55;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
  width: 210mm; margin: 0 auto;
}
.report *, .report *::before, .report *::after { box-sizing: border-box; }
.report[lang="ta"] { font-size: 9.2pt; line-height: 1.6; }
.report[lang="en"] { font-size: 10pt; line-height: 1.62; }
.report[lang="en"] .tbl { font-size: 8.8pt; }

/* ---------- Page container ---------- */
.pdf-page {
  width: 210mm; height: 297mm; padding: 13mm 15mm 18mm 15mm; position: relative; overflow: hidden;
  background: #FFFFFF; page-break-after: always; break-after: page; margin: 0 0 8mm 0;
}
.pdf-page:last-child { page-break-after: auto; break-after: auto; margin-bottom: 0; }
.pdf-page::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3.2mm;
  background: linear-gradient(90deg, var(--crimson) 0%, var(--crimson-2) 35%, var(--gold) 70%, #CA8A04 100%); }
.pdf-page::after { content: ""; position: absolute; left: 6mm; right: 6mm; top: 6mm; bottom: 5mm; border: 0.6pt solid var(--gold-tint); border-radius: 2mm; pointer-events: none; }
.pg-body { height: 100%; overflow: hidden; position: relative; z-index: 1; }

.pg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4mm; border-bottom: 1.5px solid var(--crimson);
  padding-bottom: 1.4mm; margin-bottom: 3.2mm; font-size: 7.8pt; color: var(--muted); }
.ph-sec { font-weight: 700; color: var(--crimson); text-transform: none; }
.ph-brand { white-space: nowrap; }

.pg-foot { position: absolute; bottom: 7mm; left: 15mm; right: 15mm; z-index: 2; border-top: 1px solid #D1D5DB; padding-top: 4px;
  display: flex; align-items: center; gap: 4mm; font-size: 7.2pt; color: var(--muted); }
.pf-logo .flogo { height: 22px; width: auto; display: block; }
.pf-note { flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-note b { color: var(--ink); }
.pf-page { white-space: nowrap; font-weight: 700; color: var(--crimson); }

/* ---------- Typography ---------- */
.sec-h1 { font-size: 16pt; line-height: 1.25; color: var(--crimson); margin: 0 0 1mm; font-weight: 700; }
.sec-sub { margin: 0 0 3mm; color: var(--muted); font-size: 9pt; }
.mini-h { font-size: 10.5pt; color: var(--crimson); margin: 3mm 0 1.5mm; font-weight: 700; display: flex; align-items: center; gap: 2mm; }
.mini-h::before { content: ""; width: 3mm; height: 3mm; background: var(--gold); transform: rotate(45deg); flex: none; }
.para { margin: 0 0 2.6mm; }
.para h3 { font-size: 10.5pt; margin: 0 0 1mm; color: var(--crimson); font-weight: 700; padding-left: 2.6mm; border-left: 3px solid var(--gold); line-height: 1.3; }
.para p { margin: 0; text-align: justify; hyphens: auto; }
.small { font-size: 8.2pt; color: var(--muted); }
.legend { font-size: 7.6pt; color: var(--muted); margin: 1mm 0 2.5mm; }
.center { text-align: center; }
.cols2 { column-count: 2; column-gap: 6mm; column-fill: balance; }
.cols2 > * { break-inside: avoid; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; margin-bottom: 3mm; align-items: start; }
.grid-1-2 { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 4mm; margin-bottom: 3mm; align-items: center; }

/* ---------- Cards & callouts ---------- */
.card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 2.5mm; padding: 2.6mm 3mm; margin-bottom: 3mm; box-shadow: 0 0.4mm 0 rgba(180, 83, 9, 0.08); }
.card-h { font-size: 9.8pt; margin: 0 0 1.5mm; color: var(--crimson); font-weight: 700; }
.gauge-card { background: linear-gradient(180deg, #FFFBF2, #FFFFFF); text-align: center; }
.callout { background: var(--ivory); border: 1px solid var(--gold-tint); border-left: 4px solid var(--gold); border-radius: 2mm; padding: 2.4mm 3.2mm; margin: 0 0 3mm; }
.callout h3 { margin: 0 0 1mm; font-size: 10.2pt; color: var(--crimson); }
.callout p { margin: 0; text-align: justify; }
.callout.warn { border-left-color: #DC2626; background: #FEF2F2; border-color: #FECACA; }
.callout.good-box { border-left-color: #059669; background: #ECFDF5; border-color: #A7F3D0; }
.focus-box { border-left-color: var(--crimson); }
.note { background: linear-gradient(90deg, #FFFBEB, #FFFFFF); border: 1px dashed #F59E0B; border-radius: 2mm; padding: 2mm 3mm; font-size: 8.4pt; color: #78350F; margin-top: 2mm; text-align: justify; }

/* ---------- Tables ---------- */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 8.4pt; margin: 0 0 3mm; border: 1px solid var(--line); border-radius: 2mm; overflow: hidden; }
.tbl th { background: linear-gradient(180deg, var(--crimson), #6A1717); color: #FFF; text-align: left; font-weight: 600; padding: 4px 6px; font-size: 8pt; line-height: 1.3; }
.tbl td { padding: 3.2px 6px; border-top: 1px solid #EFE9DD; vertical-align: middle; line-height: 1.35; }
.tbl tbody tr:nth-child(even) td { background: var(--zebra); }
.tbl tr.hl td { background: #FEF3C7 !important; font-weight: 600; }
.tbl small { color: var(--muted); font-size: 7.2pt; }
.tbl-panch td:nth-child(odd) { width: 21%; color: var(--crimson); }
.tbl-planets td, .tbl-planets th { padding: 3.6px 5px; }
.tbl-dasa td, .tbl-dasa th { padding: 3px 6px; }
.tbl-verify td { font-weight: 600; }
.tbl-score td { padding-top: 2.4px; padding-bottom: 2.4px; }
.tbl-score td:first-child { font-weight: 700; color: var(--crimson); width: 8mm; }
.dot { background: var(--c, #9CA3AF); display: inline-block; width: 2.6mm; height: 2.6mm; border-radius: 50%; margin-right: 1.6mm; vertical-align: -0.3mm; }

.hbar { display: inline-block; width: 22mm; height: 2.6mm; background: #F3F4F6; border-radius: 2mm; vertical-align: middle; overflow: hidden; margin-right: 1.5mm; }
.hbar i { display: block; height: 100%; border-radius: 2mm; background: var(--c, #9CA3AF); }
.pc { color: var(--c, inherit); }
.hv { font-size: 8pt; }

.badge { display: inline-block; padding: 0.4mm 2.2mm; border-radius: 3mm; font-size: 7.6pt; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.b-good { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; }
.b-mid { background: #FEF3C7; color: #92400E; border: 1px solid #FCD34D; }
.b-bad { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.b-none { background: #F3F4F6; color: #4B5563; border: 1px solid #E5E7EB; }

/* ---------- Lists ---------- */
.ticks, .crosses, .steps, .checklist { margin: 0 0 3mm; padding: 0; list-style: none; }
.ticks li, .crosses li, .checklist li { position: relative; padding-left: 5.5mm; margin-bottom: 1.2mm; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #059669; font-weight: 700; }
.crosses li::before { content: "!"; position: absolute; left: 0.8mm; top: 0; color: #DC2626; font-weight: 700; }
.steps { counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding-left: 8mm; margin-bottom: 1.4mm; min-height: 5mm; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: 0.2mm; width: 5.2mm; height: 5.2mm; border-radius: 50%;
  background: var(--crimson); color: #FFF; font-size: 7.6pt; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.checklist li { padding: 1mm 2mm 1mm 8mm; border: 1px solid var(--line); border-radius: 1.6mm; background: #FFFFFF; }
.checklist li::before { content: "☐"; position: absolute; left: 2.2mm; top: 1.3mm; color: var(--crimson); font-size: 10pt; }

/* ---------- Charts (SVG text styling) ---------- */
.si-chart, .gauge, .bars, .radar, .meter, .series, .dasa-tl, .cols, .donut { display: block; width: 100%; height: auto; }
.chart-box { max-width: 88mm; margin: 0 auto; }
.charts { align-items: center; }
.si-pl { font-size: 13px; font-weight: 700; }
.si-rasi { font-size: 8.5px; fill: #A8957A; }
.si-title { font-size: 15px; font-weight: 700; fill: #7C1D1D; }
.si-center { font-size: 11px; fill: #374151; }
.g-score { font-size: 46px; font-weight: 700; }
.g-label { font-size: 14px; font-weight: 700; fill: #7C1D1D; }
.g-tick { font-size: 10px; fill: #6B7280; }
.b-label { font-size: 12px; fill: #1F2937; font-weight: 600; }
.b-val { font-size: 11px; fill: #374151; font-weight: 600; }
.b-tick { font-size: 9px; fill: #9CA3AF; }
.r-label { font-size: 12px; font-weight: 700; fill: #7C1D1D; }
.r-val { font-size: 10px; font-weight: 700; fill: #1F2937; }
.m-title { font-size: 12px; font-weight: 700; fill: #7C1D1D; }
.m-zone { font-size: 10.5px; fill: #374151; }
.m-val { font-size: 12px; font-weight: 700; fill: #7C1D1D; }
.s-title { font-size: 12px; font-weight: 700; fill: #7C1D1D; }
.s-tick { font-size: 9px; fill: #6B7280; }
.dt-name { font-size: 11px; font-weight: 700; fill: #FFFFFF; }
.dt-age { font-size: 10px; fill: #4B5563; }
.c-val { font-size: 14px; font-weight: 700; fill: #1F2937; }
.c-label { font-size: 11px; fill: #374151; font-weight: 600; }
.d-val { font-size: 30px; font-weight: 700; }
.d-label { font-size: 11px; fill: #4B5563; font-weight: 600; }
.tl-card { padding-bottom: 1mm; }
.gauge-card .gauge { max-width: 52mm; margin: 0 auto; }
.donut-row .donut { max-width: 38mm; margin: 0 auto; }
.verdict .donut { max-width: 28mm; }
.series { max-height: 52mm; }

/* ---------- Question pages ---------- */
.q-head { display: flex; gap: 3.5mm; align-items: stretch; margin-bottom: 3mm; }
.q-num { flex: none; width: 23mm; border-radius: 2.5mm; background: linear-gradient(160deg, var(--crimson), #4C0F0F); color: #FFF;
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; font-size: 10.5pt; text-align: center; line-height: 1.25; padding: 2mm 1mm; }
.q-num small { display: block; margin-top: 1mm; font-size: 7.6pt; font-weight: 600; background: rgba(255,255,255,0.18); padding: 0.4mm 2mm; border-radius: 2mm; }
.q-titles h1 { margin: 0; font-size: 14.5pt; color: var(--crimson); line-height: 1.25; }
.q-quote { margin: 1mm 0 0; font-size: 9pt; color: var(--muted); font-style: italic; }
.primary-flag { display: inline-block; margin-top: 1mm; font-size: 7.6pt; font-weight: 700; color: #92400E; background: #FEF3C7; padding: 0.3mm 2mm; border-radius: 2mm; }

.verdict { display: grid; grid-template-columns: 30mm 1fr; gap: 3mm; align-items: center; border-radius: 2.5mm; padding: 2.6mm 3mm; margin-bottom: 3mm; border: 1px solid; }
.verdict.v-good { background: #F0FDF4; border-color: #86EFAC; }
.verdict.v-mid { background: #FFFBEB; border-color: #FCD34D; }
.verdict.v-bad { background: #FEF2F2; border-color: #FCA5A5; }
.v-label { font-size: 10pt; color: var(--crimson); margin-bottom: 1mm; }
.v-body p { margin: 0; text-align: justify; }

.decision { display: flex; justify-content: space-between; align-items: center; gap: 3mm; padding: 2.4mm 4mm; border-radius: 2.5mm; margin-bottom: 3mm; color: #FFF; }
.decision span { font-size: 8.4pt; opacity: 0.92; }
.decision b { font-size: 12pt; text-align: right; }
.d-good { background: linear-gradient(90deg, #065F46, #059669); }
.d-mid { background: linear-gradient(90deg, #92400E, #D97706); }
.d-bad { background: linear-gradient(90deg, #7C1D1D, #DC2626); }

.stream-card { border: 1px solid var(--line); border-radius: 2.2mm; padding: 2mm 3mm; margin-bottom: 2mm; background: #FFFFFF; border-left: 4px solid; }
.stream-card.s0 { border-left-color: #059669; background: #F0FDF4; }
.stream-card.s1 { border-left-color: #2563EB; }
.stream-card.s2 { border-left-color: #D97706; }
.stream-card h4 { margin: 0 0 0.8mm; font-size: 10pt; color: var(--crimson); display: flex; justify-content: space-between; }
.stream-card h4 span { color: #059669; }
.stream-card p { margin: 0 0 0.6mm; font-size: 8.4pt; }

.remedy { display: flex; gap: 3mm; align-items: flex-start; background: linear-gradient(90deg, #FFF7ED, #FFFFFF); border: 1px solid #FED7AA; border-radius: 2.5mm; padding: 2.4mm 3mm; margin-bottom: 2.6mm; }
.rm-icon { font-size: 16pt; line-height: 1; }
.remedy h4 { margin: 0 0 0.6mm; font-size: 9.8pt; color: #9A3412; }
.remedy p { margin: 0; font-size: 8.8pt; text-align: justify; }

.st-row { display: flex; align-items: center; gap: 2mm; margin: 1.6mm 0; }
.st-rank { flex: none; width: 5.5mm; height: 5.5mm; border-radius: 50%; background: var(--crimson); color: #FFF; font-weight: 700; font-size: 8pt; display: flex; align-items: center; justify-content: center; }
.st-name { flex: 1; font-weight: 600; font-size: 9pt; }

/* ---------- Cover & back ---------- */
.pg-cover, .pg-back { padding: 10mm; }
.pg-cover::after, .pg-back::after { display: none; }
.cover-frame, .back-frame { height: calc(100% - 9mm); border: 2.2mm double var(--gold); border-radius: 4mm; padding: 2mm; background:
  radial-gradient(circle at 50% 38%, #FFF8E6 0%, #FFFFFF 60%); }
.cover-in { height: 100%; border: 0.8mm solid var(--crimson); border-radius: 3mm; padding: 6mm 9mm; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cover-logo .hlogo { height: 15mm; width: auto; }
.cover-om { margin-top: 2mm; color: var(--gold); font-weight: 700; font-size: 10pt; letter-spacing: 0.2mm; }
.cover-title { margin: 3mm 0 1mm; font-size: 21pt; line-height: 1.3; color: var(--crimson); font-weight: 700; }
.cover-sub { margin: 0 0 2mm; color: var(--muted); font-size: 9.2pt; }
.cover-emblem .vel { width: 118mm; height: auto; display: block; margin: 0 auto; }
.cover-card { width: 100%; margin-top: 2mm; border: 1px solid var(--gold-tint); border-radius: 3mm; overflow: hidden; background: #FFFFFF; text-align: left; }
.cc-head { background: linear-gradient(90deg, var(--crimson), var(--gold)); color: #FFF; font-weight: 700; padding: 1.8mm 4mm; font-size: 10pt; }
.cover-tbl { width: 100%; border-collapse: collapse; font-size: 8.8pt; }
.cover-tbl th { width: 36%; text-align: left; color: var(--crimson); padding: 1.3mm 4mm; font-weight: 600; background: var(--ivory); border-bottom: 1px solid #F1E7D3; }
.cover-tbl td { padding: 1.3mm 4mm; border-bottom: 1px solid #F1E7D3; font-weight: 600; }
.cover-method { margin-top: auto; font-size: 8pt; color: var(--muted); }

.back-frame { display: flex; flex-direction: column; align-items: center; padding: 8mm 10mm; text-align: center; }
.back-title { margin: 4mm 0 5mm; font-size: 17pt; color: var(--crimson); }
.back-cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: 6mm; text-align: left; width: 100%; }
.back-side { display: flex; flex-direction: column; align-items: center; gap: 6mm; }
.stamp { width: 62mm; border: 1.2mm double var(--crimson); border-radius: 50% / 40%; padding: 6mm 4mm; text-align: center; color: var(--crimson); transform: rotate(-4deg); background: #FFF8F8; }
.st-ring { font-weight: 700; font-size: 9pt; border-bottom: 1px dashed var(--crimson); padding-bottom: 1.5mm; margin-bottom: 2mm; }
.st-body { font-size: 8.6pt; line-height: 1.5; color: #4C0F0F; }
.flogo-big { width: 52mm; height: auto; }
.back-blessing { margin-top: auto; font-size: 10.5pt; color: var(--gold); font-weight: 700; max-width: 150mm; }
.back-url { font-size: 8.6pt; color: var(--muted); margin: 2mm 0 0; }

/* ---------- Screen preview ---------- */
@media screen {
  .report-viewport { overflow-x: auto; overflow-y: visible; background: #E9E4DA; padding: 6mm 0; border-radius: 3mm; }
  .report { zoom: var(--rz, 1); }
  .pdf-page { box-shadow: 0 2mm 6mm rgba(60, 30, 10, 0.18); margin: 0 auto 8mm; }
}

/* ---------- Print ---------- */
@media print {
  html, body { margin: 0 !important; padding: 0 !important; background: #FFFFFF !important; }
  .no-print, .ho-topbar-strip, body > header, .ho-breadcrumb-bar, .ho-sidebar-stack, .ho-ad-label, #edu-form, .report-toolbar, .alert { display: none !important; }
  html.printing body > *:not(#report) { display: none !important; }
  .ho-page-shell, .ho-main-grid, .ho-content-box, .report-viewport, .elements_desc { display: block !important; margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; background: none !important; width: auto !important; max-width: none !important; }
  .report { zoom: 1 !important; margin: 0 !important; }
  .pdf-page { margin: 0 !important; box-shadow: none !important; }
}

/* ---- Print colour guard (generated) ----
   Bootstrap 3's print CSS sets `* { background: transparent !important; color: #000 !important }`.
   These !important copies (higher specificity) keep the report's colours in the PDF.
   If you change colours above, update the matching line here too. */
@media print {
  html .report, html .report * { color: inherit !important; }
  html .report { color: var(--ink) !important; }
  html .pdf-page { background: #FFFFFF !important; }
  html .pdf-page::before { background: linear-gradient(90deg, var(--crimson) 0%, var(--crimson-2) 35%, var(--gold) 70%, #CA8A04 100%) !important; }
  html .pg-head { color: var(--muted) !important; }
  html .ph-sec { color: var(--crimson) !important; }
  html .pg-foot { color: var(--muted) !important; }
  html .pf-note b { color: var(--ink) !important; }
  html .pf-page { color: var(--crimson) !important; }
  html .sec-h1 { color: var(--crimson) !important; }
  html .sec-sub { color: var(--muted) !important; }
  html .mini-h { color: var(--crimson) !important; }
  html .mini-h::before { background: var(--gold) !important; }
  html .para h3 { color: var(--crimson) !important; }
  html .small { color: var(--muted) !important; }
  html .legend { color: var(--muted) !important; }
  html .card { background: #FFFFFF !important; box-shadow: 0 0.4mm 0 rgba(180, 83, 9, 0.08) !important; }
  html .card-h { color: var(--crimson) !important; }
  html .gauge-card { background: linear-gradient(180deg, #FFFBF2, #FFFFFF) !important; }
  html .callout { background: var(--ivory) !important; }
  html .callout h3 { color: var(--crimson) !important; }
  html .callout.warn { background: #FEF2F2 !important; }
  html .callout.good-box { background: #ECFDF5 !important; }
  html .note { background: linear-gradient(90deg, #FFFBEB, #FFFFFF) !important; color: #78350F !important; }
  html .tbl th { background: linear-gradient(180deg, var(--crimson), #6A1717) !important; color: #FFF !important; }
  html .tbl tbody tr:nth-child(even) td { background: var(--zebra) !important; }
  html .tbl small { color: var(--muted) !important; }
  html .tbl-panch td:nth-child(odd) { color: var(--crimson) !important; }
  html .tbl-score td:first-child { color: var(--crimson) !important; }
  html .dot { background: var(--c, #9CA3AF) !important; }
  html .hbar { background: #F3F4F6 !important; }
  html .hbar i { background: var(--c, #9CA3AF) !important; }
  html .pc { color: var(--c, inherit) !important; }
  html .b-good { background: #D1FAE5 !important; color: #065F46 !important; }
  html .b-mid { background: #FEF3C7 !important; color: #92400E !important; }
  html .b-bad { background: #FEE2E2 !important; color: #991B1B !important; }
  html .b-none { background: #F3F4F6 !important; color: #4B5563 !important; }
  html .ticks li::before { color: #059669 !important; }
  html .crosses li::before { color: #DC2626 !important; }
  html .steps li::before { background: var(--crimson) !important; color: #FFF !important; }
  html .checklist li { background: #FFFFFF !important; }
  html .checklist li::before { color: var(--crimson) !important; }
  html .q-num { background: linear-gradient(160deg, var(--crimson), #4C0F0F) !important; color: #FFF !important; }
  html .q-num small { background: rgba(255,255,255,0.18) !important; }
  html .q-titles h1 { color: var(--crimson) !important; }
  html .q-quote { color: var(--muted) !important; }
  html .primary-flag { color: #92400E !important; background: #FEF3C7 !important; }
  html .verdict.v-good { background: #F0FDF4 !important; }
  html .verdict.v-mid { background: #FFFBEB !important; }
  html .verdict.v-bad { background: #FEF2F2 !important; }
  html .v-label { color: var(--crimson) !important; }
  html .decision { color: #FFF !important; }
  html .d-good { background: linear-gradient(90deg, #065F46, #059669) !important; }
  html .d-mid { background: linear-gradient(90deg, #92400E, #D97706) !important; }
  html .d-bad { background: linear-gradient(90deg, #7C1D1D, #DC2626) !important; }
  html .stream-card { background: #FFFFFF !important; }
  html .stream-card.s0 { background: #F0FDF4 !important; }
  html .stream-card h4 { color: var(--crimson) !important; }
  html .stream-card h4 span { color: #059669 !important; }
  html .remedy { background: linear-gradient(90deg, #FFF7ED, #FFFFFF) !important; }
  html .remedy h4 { color: #9A3412 !important; }
  html .st-rank { background: var(--crimson) !important; color: #FFF !important; }
  html .cover-frame, html .back-frame { background: radial-gradient(circle at 50% 38%, #FFF8E6 0%, #FFFFFF 60%) !important; }
  html .cover-om { color: var(--gold) !important; }
  html .cover-title { color: var(--crimson) !important; }
  html .cover-sub { color: var(--muted) !important; }
  html .cover-card { background: #FFFFFF !important; }
  html .cc-head { background: linear-gradient(90deg, var(--crimson), var(--gold)) !important; color: #FFF !important; }
  html .cover-tbl th { color: var(--crimson) !important; background: var(--ivory) !important; }
  html .cover-method { color: var(--muted) !important; }
  html .back-title { color: var(--crimson) !important; }
  html .stamp { color: var(--crimson) !important; background: #FFF8F8 !important; }
  html .st-body { color: #4C0F0F !important; }
  html .back-blessing { color: var(--gold) !important; }
  html .back-url { color: var(--muted) !important; }
  html .report .pdf-page, html .report .pdf-page::before { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}
