/* ---------- design tokens ---------- */
:root {
  --red: #d52b1e;
  --red-2: #b31d12;
  --bg: #f6f7fb;
  --bg-2: #ffffff;
  --card: #ffffff;
  --text: #17202b;
  --muted: #5d6877;
  --line: #e4e7ee;
  --soft: #fdf1f0;
  --ok: #148a4a;
  --ok-bg: #e7f7ee;
  --no: #c0271c;
  --no-bg: #fdecea;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --radius: 18px;
  --road: #4a4f57;
  --grass: #cfe8c4;
  --sky: #e6f0fb; --sky-top: #bcd8f5; --island: #8fca7a;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f141a; --bg-2: #151b23; --card: #18202a; --text: #e9edf2; --muted: #9aa6b4; --line: #27313d;
    --soft: #2a1716; --ok-bg: #12301f; --no-bg: #361715; --ok: #46c27a; --no: #ff7a6e;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    --road: #3a3f47; --grass: #24402a; --sky: #1b2633; --sky-top: #0c1724; --island: #2f5a36; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f141a; --bg-2: #151b23; --card: #18202a; --text: #e9edf2; --muted: #9aa6b4; --line: #27313d;
  --soft: #2a1716; --ok-bg: #12301f; --no-bg: #361715; --ok: #46c27a; --no: #ff7a6e;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  --road: #3a3f47; --grass: #24402a; --sky: #1b2633; --sky-top: #0c1724; --island: #2f5a36; color-scheme: dark;
}
html[data-font="persian"], html[data-font="arabic"] { --font: 'Vazirmatn', Tahoma, sans-serif; }
html[data-font="pashto"] { --font: 'Noto Naskh Arabic', 'Vazirmatn', Tahoma, sans-serif; }
html[data-font="pashto"] body { line-height: 1.85; }
html[data-font="urdu"] { --font: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Vazirmatn', serif; }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
html[data-font="urdu"] body { line-height: 2.15; font-size: 15px; }
html[data-font="urdu"] h1, html[data-font="urdu"] h2, html[data-font="urdu"] h3 { line-height: 1.9; }
a { color: var(--red); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); font-size: .92em; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 70ch; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 10px; top: 10px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid #4c8bf5; outline-offset: 2px; border-radius: 6px; }

/* ---------- header ---------- */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--bg-2) 88%, transparent); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }
.logo { width: 42px; height: 42px; flex: none; display: grid; place-items: center; font-size: 24px; border-radius: 12px; background: linear-gradient(135deg, var(--red), #ff6a4d); box-shadow: 0 6px 16px rgba(213, 43, 30, .3); }
.brand-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.brand-t b { font-size: 1.08rem; }
.brand-t small { color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tools { display: flex; align-items: center; gap: 8px; }
.langs { display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-btn { border: 0; background: transparent; color: var(--text); padding: 6px 12px; border-radius: 999px; cursor: pointer; font: inherit; font-size: .86rem; white-space: nowrap; line-height: 1.6; }
.lang-btn[lang="fa"], .lang-btn[lang="ar"] { font-family: 'Vazirmatn', sans-serif; }
.lang-btn[lang="ur"] { font-family: 'Noto Nastaliq Urdu', serif; font-size: .8rem; }
.lang-btn[lang="en"], .lang-btn[lang="fr"] { font-family: 'Inter', sans-serif; }
.lang-btn[lang="ps"] { font-family: 'Noto Naskh Arabic', 'Vazirmatn', sans-serif; }
.lang-btn.on { background: var(--red); color: #fff; }
.lang-sel { display: none; font: inherit; font-family: 'Vazirmatn', 'Inter', sans-serif; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); flex: 1; min-width: 0; }
@media (max-width: 1100px) {
  .langs { display: none; }
  .lang-sel { display: block; flex: none; }
}
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; font-size: 18px; }
.menu-btn { display: none; }
.nav { max-width: 1200px; margin: 0 auto; padding: 0 12px 8px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; color: var(--muted); padding: 7px 12px; border-radius: 10px; white-space: nowrap; font-size: .92rem; font-weight: 500; }
.nav a:hover { background: var(--bg); color: var(--text); }
.nav a.active { background: var(--soft); color: var(--red); font-weight: 700; }

.provbar { background: linear-gradient(90deg, var(--red), #e8493b); color: #fff; }
.provbar-in { max-width: 1200px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .92rem; }
.provbar select { font: inherit; padding: 5px 10px; border-radius: 10px; border: 0; background: #fff; color: #17202b; max-width: 100%; }
.sos { margin-inline-start: auto; color: #fff; font-weight: 700; text-decoration: none; background: rgba(0,0,0,.18); padding: 4px 12px; border-radius: 999px; }

/* ---------- layout ---------- */
main { max-width: 1200px; margin: 0 auto; padding: 24px 16px 60px; outline: none; }
.page { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
section { margin: 0 0 36px; }
.sec-title { margin: 34px 0 14px; }
.page-head { padding: 18px 0 8px; }
.grid { display: grid; gap: 16px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.cards.rules { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); margin-top: 24px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card, .panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.panel { margin-bottom: 16px; }
.link-card { position: relative; display: block; text-decoration: none; color: var(--text); transition: transform .18s, box-shadow .18s, border-color .18s; text-align: start; font: inherit; cursor: pointer; width: 100%; }
.link-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--red) 40%, var(--line)); box-shadow: 0 12px 32px rgba(16,24,40,.12); }
.link-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.link-card .go { position: absolute; top: 18px; inset-inline-end: 18px; color: var(--red); font-weight: 700; }
html[dir="rtl"] .link-card .go { transform: scaleX(-1); }
.card-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--soft); font-size: 24px; margin-bottom: 12px; }
.card-ico.sm { width: 34px; height: 34px; font-size: 18px; border-radius: 10px; margin: 0; margin-inline-end: 10px; vertical-align: middle; }
.chip { display: inline-block; background: var(--soft); color: var(--red); padding: 3px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 20px; border-radius: 12px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s, background .15s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(213,43,30,.25); }
.btn.primary:hover { background: var(--red-2); }
.btn.ghost { background: var(--card); color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--red); color: var(--red); }
.btn.sm { padding: 8px 14px; font-size: .88rem; border-radius: 10px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.cta.center { justify-content: center; }
.cta.end { justify-content: flex-end; }
.link-btn { background: none; border: 0; color: var(--red); font: inherit; cursor: pointer; padding: 0; font-weight: 600; }
.ext { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; font-size: .92rem; margin-top: 6px; margin-inline-end: 14px; }
.ext:hover { text-decoration: underline; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; padding: 34px; border-radius: 28px; background:
  radial-gradient(circle at 85% 20%, rgba(255,106,77,.22), transparent 45%),
  radial-gradient(circle at 10% 90%, rgba(213,43,30,.12), transparent 40%), var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.badge { display: inline-block; background: var(--soft); color: var(--red); font-weight: 700; padding: 6px 14px; border-radius: 999px; font-size: .85rem; margin-bottom: 14px; }
.hero-art { position: relative; min-height: 300px; }
.maple { position: absolute; inset: 0; display: grid; place-items: center; font-size: 150px; opacity: .14; filter: saturate(1.4); }
.float { position: absolute; width: 96px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.18)); animation: bob 5s ease-in-out infinite; }
.float svg { width: 100%; display: block; }
.s1 { top: 6%; inset-inline-start: 12%; }
.s2 { top: 12%; inset-inline-end: 8%; width: 84px; animation-delay: -1.2s; }
.s3 { bottom: 10%; inset-inline-start: 20%; width: 80px; animation-delay: -2.4s; }
.s4 { bottom: 4%; inset-inline-end: 18%; width: 90px; animation-delay: -3.6s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(3deg); } }

.tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tips li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.tip-n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.nums { display: grid; gap: 10px; }
.num { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--bg); text-decoration: none; color: var(--text); }
.num b { color: var(--red); font-size: 1.15rem; min-width: 64px; font-family: 'Inter', sans-serif; }
.num span { font-size: .93rem; }

/* ---------- checklist ---------- */
.progress-wrap { margin: 8px 0 20px; }
.progress { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), #ff7a52); border-radius: 999px; transition: width .4s; }
.phase { margin-bottom: 26px; }
.phase h2 { display: flex; align-items: center; gap: 10px; }
.phase-n { width: 34px; height: 34px; border-radius: 10px; background: var(--text); color: var(--bg); display: grid; place-items: center; font-size: 1rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; transition: background .2s, border-color .2s; }
.check.on { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.check label { display: flex; gap: 14px; cursor: pointer; align-items: flex-start; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.box { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--muted); margin-top: 2px; display: grid; place-items: center; transition: .2s; }
.check.on .box { background: var(--ok); border-color: var(--ok); }
.check.on .box::after { content: '✓'; color: #fff; font-weight: 800; font-size: 16px; line-height: 1; }
.check input:focus-visible + .box { outline: 3px solid #4c8bf5; outline-offset: 2px; }
.ct { display: flex; flex-direction: column; }
.ct span { color: var(--muted); font-size: .94rem; }
.check.on .ct b { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ok) 60%, transparent); }
.check .ext { margin-inline-start: 40px; }
.prov-box { margin: 10px 0 0; margin-inline-start: 40px; padding: 12px 14px; border-radius: 12px; background: var(--soft); border: 1px dashed color-mix(in srgb, var(--red) 40%, transparent); font-size: .94rem; }

/* ---------- licence ---------- */
.prov-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.prov-head h2 { margin: 0; }
.stages { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; counter-reset: s; }
.stage { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--bg); border-radius: 14px; border: 1px solid var(--line); position: relative; }
.stage div { display: flex; flex-direction: column; }
.stage span:not(.stage-dot) { color: var(--muted); font-size: .9rem; }
.stage-dot { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #f0a500; color: #fff; display: grid; place-items: center; font-weight: 800; }
.stage:first-child .stage-dot { background: #e8493b; }
.stage.full .stage-dot { background: var(--ok); }
.links { display: flex; flex-wrap: wrap; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ''; position: absolute; top: 10px; bottom: 10px; inset-inline-start: 21px; width: 3px; background: linear-gradient(var(--red), #ffb199); border-radius: 3px; }
.timeline li { display: flex; gap: 18px; align-items: flex-start; padding: 8px 0 14px; position: relative; }
.timeline li > div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; flex: 1; box-shadow: var(--shadow); }
.timeline p { margin: 0; color: var(--muted); }
.tl-n { flex: none; width: 45px; height: 45px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; z-index: 1; box-shadow: 0 0 0 5px var(--bg); }
.dots { margin: 0; padding-inline-start: 1.2em; }
.dots li { margin-bottom: 7px; }
.dots li::marker { color: var(--red); }
.numbered { padding-inline-start: 1.4em; }
.numbered li { margin-bottom: 8px; padding-inline-start: 4px; }
.numbered li::marker { color: var(--red); font-weight: 800; }
.doc h2 { display: flex; align-items: center; }

/* ---------- signs ---------- */
.signs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.sign { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; font: inherit; color: var(--text); text-align: center; transition: transform .15s, box-shadow .15s; }
.sign:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.sign-img { width: 86px; height: 86px; display: block; }
.sign-img svg { width: 100%; height: 100%; }
.sign b { font-size: .95rem; }
.sign-d { display: none; color: var(--muted); font-size: .86rem; }
.sign.open { border-color: var(--red); background: var(--soft); }
.sign.open .sign-d { display: block; }

/* ---------- animations ---------- */
.anims { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.anim { display: flex; flex-direction: column; margin: 0; }
.stage-wrap { border-radius: 14px; overflow: hidden; background: var(--bg); }
.scene { width: 100%; height: auto; display: block; }
.scene .sky { fill: var(--sky); }
.scene .grass { fill: var(--grass); }
.scene .road { fill: var(--road); }
.lamp { fill: #3a3f47; transition: fill .3s; }
.lamp.on-r { fill: #ff3b2f; filter: drop-shadow(0 0 10px #ff3b2f); }
.lamp.on-y { fill: #ffc400; filter: drop-shadow(0 0 10px #ffc400); }
.lamp.on-g { fill: #1fd166; filter: drop-shadow(0 0 10px #1fd166); }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { fill: #3a3f47; filter: none; } }
.lamp-arrow { opacity: 0; transition: opacity .3s; }
.lamp-arrow.show { opacity: 1; }
.car { transition: transform 1.6s cubic-bezier(.45,.05,.35,1); }
.car.instant, .kids.instant { transition: none !important; }
.bl { fill: #666; }
.bl.lit { animation: bl .7s steps(1) infinite; }
.bl.amber.lit { fill: #ffb000; }
.bl.red.lit { fill: #ff2a1a; }
@keyframes bl { 50% { fill: #666; } }
.arm { opacity: 0; transition: opacity .3s; }
.arm.show { opacity: 1; }
.kids { opacity: 0; transition: transform 2.4s linear, opacity .3s; }
.kids.show { opacity: 1; }
.caption { min-height: 4.8em; margin: 12px 0 8px; }
.cap-n { display: inline-block; background: var(--red); color: #fff; border-radius: 8px; padding: 0 8px; font-weight: 700; font-size: .82rem; margin-inline-end: 6px; font-family: 'Inter', sans-serif; }
.anim-ctl { display: flex; gap: 8px; justify-content: center; margin-top: auto; }
.dots-nav { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0; }
.dot.on { background: var(--red); width: 24px; border-radius: 6px; }
.videos { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.video { margin: 0; }
.ratio { position: relative; padding-top: 56.25%; border-radius: 14px; overflow: hidden; background: #000; }
.ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- quiz ---------- */
.quiz { max-width: 760px; margin: 0 auto; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 10px; }
.quiz-sign { width: 140px; height: 140px; margin: 18px auto 6px; }
.quiz-sign svg { width: 100%; height: 100%; }
.q { margin: 18px 0 16px; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 12px; text-align: start; width: 100%; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.opt:hover:not([disabled]) { border-color: var(--red); }
.opt[disabled] { cursor: default; }
.opt-l { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; font-family: 'Inter', sans-serif; }
.opt.right { border-color: var(--ok); background: var(--ok-bg); }
.opt.right .opt-l { background: var(--ok); color: #fff; border-color: var(--ok); }
.opt.wrongp { border-color: var(--no); background: var(--no-bg); }
.opt.wrongp .opt-l { background: var(--no); color: #fff; border-color: var(--no); }
.feedback { margin-top: 16px; padding: 14px 16px; border-radius: 14px; }
.feedback.ok { background: var(--ok-bg); }
.feedback.ok b { color: var(--ok); }
.feedback.no { background: var(--no-bg); }
.feedback.no b { color: var(--no); }
.quiz.done { text-align: center; padding: 34px 20px; }
.score-ring { --p: 0; width: 150px; height: 150px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--red) calc(var(--p) * 1%), var(--line) 0); }
.score-ring span { width: 118px; height: 118px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; font-family: 'Inter', sans-serif; }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td { padding: 11px 16px; text-align: start; border-bottom: 1px solid var(--line); }
th { background: var(--bg); font-size: .9rem; }
tr.hl td { background: var(--soft); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-in { max-width: 1200px; margin: 0 auto; padding: 24px 16px 40px; }
.disc { background: var(--soft); padding: 14px 16px; border-radius: 14px; font-size: .93rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 24px; }
  .hero-art { min-height: 200px; order: -1; }
  .float { width: 70px; } .s2 { width: 62px; } .s3 { width: 60px; } .s4 { width: 66px; }
  .maple { font-size: 110px; }
  .two { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-block; }
  .brand-t small { display: none; }
  .nav { display: none; flex-direction: column; padding: 4px 12px 12px; }
  body.menu-open .nav { display: flex; }
  .nav a { padding: 11px 12px; font-size: 1rem; }
  .topbar-in { flex-wrap: wrap; }
  .tools { width: 100%; justify-content: space-between; }
  .lang-sel { flex: 1; }
  .cards.rules { grid-template-columns: 1fr; }
  .signs { grid-template-columns: repeat(2, 1fr); }
  .check .ext, .prov-box { margin-inline-start: 0; }
  .card, .panel { padding: 16px; }
  .sos { margin-inline-start: 0; }
  .provbar select { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .topbar, .provbar, .anim-ctl, .footer .muted { display: none; }
  .card, .panel { box-shadow: none; break-inside: avoid; }
}
