:root {
  color-scheme: light dark;
  --bg: #F5F7F5;
  --surface: #FFFFFF;
  --surface-2: #EEF3F0;
  --ink: #0F1F1A;
  --muted: #52625C;
  --line: #DFE6E2;
  --brand: #0B5D4B;
  --brand-strong: #0B5D4B;
  --on-brand: #FFFFFF;
  --gold: #E3A92F;
  --pos: #11704F;
  --neg: #B42318;
  --warn: #B7791F;
  --focus: #1F6FEB;
  --seg-1: #0B5D4B; --seg-2: #2E8B74; --seg-3: #6BB9A3; --seg-4: #E3A92F;
  --wa: #25D366; --on-wa: #052E16;
  --input-border: #B9C5BF;
  --shadow: 0 1px 2px rgba(16, 32, 27, .06), 0 8px 24px rgba(16, 32, 27, .06);
  --font: system-ui, -apple-system, "SF Arabic", "Geeza Pro", "Dubai", "Segoe UI", "Noto Sans Arabic UI", "Noto Sans Arabic", Tahoma, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C1512; --surface: #141F1B; --surface-2: #1B2924; --ink: #E7EFEB; --muted: #9DB0A8; --line: #26352F;
    --brand: #3DBE98; --brand-strong: #0F5A48; --gold: #F0BE55; --pos: #5FD3A8; --neg: #FF8B7E; --warn: #E9B44C; --focus: #79A8FF;
    --seg-1: #3DBE98; --seg-2: #2E8B74; --seg-3: #8FD3BF; --seg-4: #F0BE55;
    --input-border: #3A4D45;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-bottom: 72px; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--bg); }
html[lang="ar"] body { line-height: 1.75; }
h1, h2, h3 { line-height: 1.3; margin: 0; }
h2 { font-size: 1.375rem; font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 700; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
button { font: inherit; color: inherit; }
small { font-size: .8125rem; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -48px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* Bilingual prose blocks: show only the active language. */
html[lang="ar"] .en, html[lang="en"] .ar { display: none; }

/* Top bar + compact hero */
.topbar { background: var(--brand-strong); color: var(--on-brand); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-brand); text-decoration: none; font-weight: 700; font-size: 1.125rem; }
.brand-mark { width: 30px; height: 30px; }
.brand-mark rect { fill: rgba(255, 255, 255, .14); }
.brand-mark path { fill: none; stroke: var(--gold); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.lang-btn {
  font-size: .9375rem; color: var(--on-brand); background: transparent; min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; padding: 6px 16px; cursor: pointer;
  transition: background-color .12s ease-out;
}
.lang-btn:hover { background: rgba(255, 255, 255, .12); }

.hero { color: var(--on-brand); background: var(--brand-strong); padding: 12px 0 24px; }
.hero h1 { font-size: 1.625rem; font-weight: 800; }
.hero-sub { margin: 4px 0 12px; font-size: 1rem; opacity: .92; }
.badges { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.badges li { flex: none; font-size: .8125rem; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); }
.badges li::before { content: "✓"; color: var(--gold); font-weight: 700; margin-inline-end: 6px; }
@media (min-width: 960px) {
  .hero { padding: 24px 0 32px; }
  .hero h1 { font-size: 2.25rem; }
  .hero-sub { font-size: 1.125rem; }
}

/* Layout */
.layout { display: grid; gap: 16px; margin-top: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 20px; }
@media (min-width: 960px) {
  .layout { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); align-items: start; gap: 24px; margin-top: 24px; }
  .card { padding: 28px; }
}

/* Form */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { display: block; float: none; padding: 0; width: 100%; font-weight: 700; font-size: 1.125rem; margin-bottom: 10px; }
.q { margin-bottom: 32px; }
.q:last-of-type { margin-bottom: 24px; }
.sub { margin-top: 16px; }
.sub legend { font-size: .9375rem; font-weight: 600; color: var(--muted); }
.field { margin-bottom: 16px; min-width: 0; }
.field > label, .q.field > label { display: block; font-weight: 700; font-size: 1.125rem; margin-bottom: 8px; }
.refine .field > label, .refine legend { font-size: 1rem; font-weight: 600; }
.row { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .row { grid-template-columns: 1fr 1fr; } }

input[type="text"], select {
  font: inherit; color: var(--ink); width: 100%; min-height: 48px;
  padding: 10px 12px; background: var(--surface); border: 1.5px solid var(--input-border); border-radius: 10px;
  transition: border-color .12s ease-out, box-shadow .12s ease-out;
  font-variant-numeric: tabular-nums;
}
input[type="text"]:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 45%, transparent); }
[aria-invalid="true"] { border-color: var(--neg) !important; }
.affix { position: relative; }
.affix input { padding-inline-end: 64px; }
.cur, .cur-d { position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); font-size: .875rem; font-weight: 600; color: var(--muted); pointer-events: none; }
.hint { margin: 6px 0 0; font-size: .875rem; color: var(--muted); }
.err { margin: 6px 0 0; font-size: .875rem; color: var(--neg); font-weight: 600; }
.soft { margin: 6px 0 0; font-size: .875rem; color: var(--warn); font-weight: 600; }
.err:empty, .soft:empty, .echo:empty, .hint:empty { display: none; }

/* Radio cards: native radios inside labels, so arrow keys and screen readers work unchanged. */
.cards { display: grid; gap: 8px; }
.cards.two { grid-template-columns: 1fr 1fr; }
.rc {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; padding-inline-end: 44px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer;
  transition: border-color .12s ease-out, background-color .12s ease-out;
}
.rc.big { min-height: 64px; justify-content: center; padding-inline-end: 14px; font-size: 1.125rem; }
.rc input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.rc:hover { border-color: var(--input-border); }
.rc:has(:checked) { border: 2px solid var(--brand); background: var(--surface-2); padding: 9px 13px; padding-inline-end: 43px; }
.rc.big:has(:checked) { padding-inline-end: 13px; }
.rc:has(:checked)::after {
  content: "✓"; position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%);
  color: var(--brand); font-weight: 800;
}
.rc:has(:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.rc-text { display: grid; }
.rc-title { font-weight: 700; }
.rc-sub { font-size: .875rem; color: var(--muted); }
.more-btn {
  margin-top: 8px; min-height: 48px; width: 100%; background: none; border: 1.5px dashed var(--line); border-radius: 16px;
  color: var(--brand); font-weight: 600; cursor: pointer; text-align: start; padding: 0 14px;
}
#x-more { margin-top: 8px; }
.callout-ok { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--pos); font-size: .9375rem; font-weight: 600; }
.callout-ok.caveat { color: var(--ink); font-weight: 500; }

.chips-radio { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-r { position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 6px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; }
.chip-r input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.chip-r small { color: var(--muted); }
.chip-r:has(:checked) { border: 2px solid var(--brand); background: var(--surface-2); padding: 5px 13px; font-weight: 600; }
.chip-r:has(:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

details.mini { margin-top: 8px; font-size: .875rem; }
details.mini summary { color: var(--brand); cursor: pointer; display: inline-flex; align-items: center; min-height: 32px; }
details.mini p { margin: 4px 0 0; color: var(--muted); }

/* Dates: day / month / year boxes */
.dates { display: grid; gap: 0 16px; }
.date-row { display: flex; gap: 8px; align-items: stretch; }
.date-row .dd { width: 4.5ch; flex: none; box-sizing: content-box; text-align: center; padding-inline: 10px; }
.date-row .mm { flex: 1 1 auto; min-width: 0; }
.date-row .yy { width: 6ch; flex: none; box-sizing: content-box; text-align: center; padding-inline: 10px; }
.echo { margin: 6px 0 0; font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; position: relative;
  border: 0; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-size: .8125rem; cursor: pointer;
}
/* Pads the tap area to 44px without making the chip look bigger. */
.chip::before { content: ""; position: absolute; inset: -6px 0; }
.chip.today { align-self: center; flex: none; }
.chip.today.on { background: var(--brand); color: var(--surface); }
.chip.assume::after { content: "✎"; font-size: .75rem; color: var(--muted); }

/* Segmented control */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; }
.seg label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 9px; cursor: pointer; font-weight: 600; text-align: center; padding: 4px 8px; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.seg label:has(:checked) { background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.seg label:has(:focus-visible) { outline: 3px solid var(--focus); outline-offset: 1px; }
#n-partial { margin-top: 16px; }

/* Make it more accurate */
.refine { border-top: 1px solid var(--line); padding-top: 8px; }
.refine > summary { cursor: pointer; min-height: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-weight: 700; color: var(--brand); list-style: none; }
.refine > summary::-webkit-details-marker { display: none; }
.refine > summary::before { content: "+"; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: var(--surface-2); transition: transform .15s; }
.refine[open] > summary::before { transform: rotate(45deg); }
.refine-hint { font-weight: 600; font-size: .875rem; color: var(--pos); font-variant-numeric: tabular-nums; }
.refine-body { padding-top: 12px; }

/* Result card */
.result h2 { font-size: 1.125rem; margin-bottom: 12px; }
.result h2:focus { outline: none; }
.banner { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: .9375rem; }
.empty-title { margin: 0 0 12px; font-size: 1.125rem; font-weight: 700; }
.ghosts { list-style: none; margin: 0; padding: 0; }
.ghost { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; color: var(--muted); }
.ghost + .ghost { border-top: 1px solid var(--line); }
.ghost-bar { width: 60px; height: 12px; border-radius: 999px; background: var(--surface-2); }
.need { margin: 12px 0 0; font-size: .9375rem; color: var(--muted); }
.linkish { background: none; border: 0; padding: 0; color: var(--brand); text-decoration: underline; cursor: pointer; min-height: 32px; font-weight: 600; }
.dim-msg { margin: 0 0 12px; font-weight: 600; color: var(--neg); }
.gen-err { margin: 0 0 12px; font-weight: 600; color: var(--neg); }
.res.dim { opacity: .4; pointer-events: none; }

.hero-card { view-transition-name: total; background: var(--brand-strong); color: var(--on-brand); border-radius: 16px; padding: 18px 20px; }
.hero-card.neg { background: var(--neg); }
@media (prefers-color-scheme: dark) { .hero-card.neg { background: #8E1D14; } }
.hero-label { margin: 0; font-size: 1rem; opacity: .92; }
.hero-amt { margin: 2px 0; line-height: 1.1; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.amount { font-size: clamp(2.5rem, 11vw, 3.5rem); font-weight: 800; font-variant-numeric: tabular-nums; }
.hero-amt .cur { position: static; transform: none; color: inherit; font-size: 1.25rem; font-weight: 700; }
.hero-reason { margin: 4px 0 0; font-weight: 600; }
.hero-sub { margin: 6px 0 0; font-size: .875rem; opacity: .9; font-variant-numeric: tabular-nums; }

.summary { margin: 14px 0; font-size: 1.0625rem; }
.insight { margin: 10px 0; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-inline-start: 3px solid var(--brand); border-radius: 12px; }
.insight.neg { border-inline-start-color: var(--neg); }
.insight p { margin: 0; }
.insight .foot { margin-top: 4px; }
.insight b { font-variant-numeric: tabular-nums; }
b.pos, .pos { color: var(--pos); }
b.neg, .neg .amt, .delta.neg { color: var(--neg); }
.tbtn { margin-top: 8px; background: none; border: 0; padding: 0; min-height: 44px; color: var(--brand); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.foot { font-size: .8125rem; color: var(--muted); margin: 8px 0 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }

.bar { display: flex; gap: 2px; height: 12px; border-radius: 999px; overflow: hidden; margin: 12px 0; }
.seg-1 { background: var(--seg-1); } .seg-2 { background: var(--seg-2); } .seg-3 { background: var(--seg-3); } .seg-4 { background: var(--seg-4); }
.bar .seg { min-width: 6px; }

.lines { list-style: none; margin: 8px 0; padding: 0; }
.line + .line { border-top: 1px solid var(--line); }
.line summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 0; cursor: pointer; list-style: none; }
.line summary::-webkit-details-marker { display: none; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 999px; }
.lbl { flex: 1; display: grid; font-weight: 600; min-width: 0; }
.lbl small { color: var(--neg); font-weight: 600; }
.amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.line.zero .lbl, .line.zero .amt { color: var(--muted); font-weight: 500; }
.line.zero .dot { opacity: .35; }
.chev { flex: none; width: 8px; height: 8px; border-inline-end: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; margin-inline: 4px; }
.chev:dir(rtl) { transform: rotate(45deg); }
.line details[open] .chev { transform: rotate(45deg); }
.line details[open] .chev:dir(rtl) { transform: rotate(-45deg); }
.maths { padding: 0 20px 12px; font-size: .9375rem; }
.maths p { margin: 0; overflow-wrap: anywhere; }
.mlabel { font-size: .8125rem; color: var(--muted); font-weight: 700; }
.src { display: inline-block; margin-top: 6px !important; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); font-size: .8125rem; color: var(--muted); }

.trust { margin: 8px 0 0; font-size: .8125rem; color: var(--muted); }
.warn { margin: 16px 0; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-inline-start: 3px solid var(--warn); border-radius: 12px; font-size: .9375rem; }
.warn h3 { font-size: 1rem; margin-bottom: 4px; }
.warn ul { margin: 0; padding-inline-start: 18px; }
.warn li + li { margin-top: 4px; }
.warn .src { margin-top: 2px; }
.warn details summary { cursor: pointer; color: var(--brand); font-weight: 600; margin-top: 6px; min-height: 32px; }

.compare { margin: 20px 0; }
.compare h3 { margin-bottom: 8px; }
.cmp { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cmp-row {
  width: 100%; display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; min-height: 48px; padding: 8px 12px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; text-align: start;
  transition: border-color .12s ease-out;
}
.cmp-row:hover { border-color: var(--input-border); }
.cmp-row.mine { border: 2px solid var(--brand); background: var(--surface-2); }
.cmp-title { font-weight: 600; }
.cmp-total { font-variant-numeric: tabular-nums; font-weight: 700; }
.delta { font-size: .875rem; font-variant-numeric: tabular-nums; min-width: 5.5em; text-align: end; color: var(--muted); }
.delta.pos { color: var(--pos); }
.compare details summary { cursor: pointer; color: var(--brand); font-weight: 600; margin: 8px 0; min-height: 32px; }

.share { margin: 20px 0; }
.wa {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: 12px;
  background: var(--wa); color: var(--on-wa); font-weight: 800; font-size: 1.0625rem; text-decoration: none;
}
.wa-ico { width: 24px; height: 24px; }
.share-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 6px 10px; border-radius: 12px;
  font-weight: 600; font-size: .875rem; cursor: pointer; text-decoration: none; text-align: center; white-space: nowrap;
  border: 1.5px solid var(--line); color: var(--ink); background: var(--surface); transition: background-color .12s ease-out;
}
.btn:hover { background: var(--surface-2); }

.next { margin: 20px 0 0; padding: 16px; border-radius: 12px; background: var(--surface-2); }
.next h3 { margin-bottom: 8px; }
.next ol { margin: 0; padding-inline-start: 22px; }
.next li + li { margin-top: 6px; }
.next b { font-variant-numeric: tabular-nums; }
.notes summary { cursor: pointer; color: var(--brand); font-weight: 600; margin-top: 10px; min-height: 32px; }
.notes ul { margin: 4px 0 0; padding-inline-start: 18px; font-size: .9375rem; }
.print-only { display: none; }

/* One disclosure chevron for every expander (the line list draws its own .chev span; refine uses "+") */
.faq summary, .warn summary, .compare summary, .notes summary, details.mini summary { list-style: none; }
.faq summary::-webkit-details-marker, .warn summary::-webkit-details-marker, .compare summary::-webkit-details-marker,
.notes summary::-webkit-details-marker, details.mini summary::-webkit-details-marker { display: none; }
.faq summary::after, .warn summary::after, .compare summary::after, .notes summary::after, details.mini summary::after {
  content: ""; display: inline-block; flex: none; width: 7px; height: 7px; margin-inline-start: 10px; vertical-align: .15em;
  border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s;
}
:is(.faq, .warn, .compare, .notes, details.mini) summary:dir(rtl)::after { transform: rotate(45deg); }
:is(.faq, .warn, .compare, .notes) details[open] > summary::after, details.notes[open] > summary::after, details.mini[open] > summary::after { transform: rotate(45deg); }
:is(.faq, .warn, .compare) details[open] > summary:dir(rtl)::after, details.notes[open] > summary:dir(rtl)::after, details.mini[open] > summary:dir(rtl)::after { transform: rotate(-45deg); }
.faq summary { display: flex; align-items: center; justify-content: space-between; }

/* Sticky total bar: bottom bar on mobile, floating pill on desktop */
.sticky {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 20; height: calc(56px + env(safe-area-inset-bottom)); padding: 0 16px env(safe-area-inset-bottom);
  display: flex; align-items: center; gap: 10px; border: 0; background: var(--brand-strong); color: var(--on-brand); cursor: pointer;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .15); transform: translateY(110%); visibility: hidden;
  transition: transform .16s ease-out, visibility .16s;
}
.sticky.on { transform: none; visibility: visible; }
.sticky-label { flex: 1; text-align: start; font-size: .9375rem; }
.sticky-amt { font-weight: 800; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.sticky svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 960px) {
  .sticky { inset-inline: auto; inset-inline-end: 24px; bottom: 24px; width: 380px; height: 56px; padding: 0 18px; border-radius: 16px; }
}

/* Support: coffee + sponsor, quiet */
.support { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 760px) { .support { grid-template-columns: 1fr 1fr; } }
.sponsor, .coffee { border-radius: 16px; padding: 18px 20px; }
.sponsor { border: 1.5px dashed var(--input-border); }
.eyebrow { margin: 0; font-size: .8125rem; font-weight: 700; color: var(--muted); }
.sponsor-body, .coffee-body { margin: 6px 0 10px; color: var(--muted); }
.link { font-weight: 600; }
.coffee { background: var(--surface); border: 1px solid var(--line); }
.coffee-btn { border-color: var(--gold); }

/* FAQ + disclaimer */
.faq { margin-top: 40px; }
.faq h2, .disclaimer h2 { margin-bottom: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 600; min-height: 48px; }
.faq details p { margin: 0; padding: 0 16px 16px; color: var(--muted); }
.disclaimer { margin-top: 32px; }
.disclaimer p { margin: 0; padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); border-inline-start: 3px solid var(--warn); }
.footer { margin-top: 48px; padding: 24px 0 88px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.footer p { margin: 0; }

::view-transition-group(*) { animation-duration: .2s; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

@media print {
  @page { margin: 14mm; }
  :root { color-scheme: light; --ink: #000; --muted: #444; --surface: #fff; --surface-2: #f2f2f2; --line: #bbb; --brand-strong: #fff; --on-brand: #000; }
  body { background: #fff; font-size: 11pt; }
  .skip, .lang-btn, .badges, .hero-sub, .support, .faq, .footer, form, .sticky, .share, .tbtn, .chips, .banner, .compare, noscript { display: none !important; }
  .topbar, .hero { background: none; color: #000; padding: 0 0 8px; }
  .brand { color: #000; }
  .hero h1 { font-size: 15pt; }
  .layout { display: block; margin: 0; }
  .card { box-shadow: none; border: 0; padding: 0; }
  .result { position: static; max-height: none; overflow: visible; }
  .print-only { display: grid; }
  .print-inputs { grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0 0 12px; }
  .print-inputs dd { margin: 0; }
  .hero-card { border: 2px solid #000; }
  .line, .next { break-inside: avoid; }
  .chev { display: none; }
}
