@font-face { font-family: Nunito; src: url(/fonts/body.woff2) format("woff2"); font-weight: 400; font-display: swap }
@font-face { font-family: Nunito; src: url(/fonts/bold.woff2) format("woff2"); font-weight: 700 900; font-display: swap }
@font-face { font-family: Head; src: url(/fonts/head.woff2) format("woff2"); font-weight: 700; font-display: swap }
@font-face { font-family: Ur; src: url(/fonts/ur.woff2) format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0600-06FF, U+200C-200F }
:root { color-scheme: light; --p: #1F2A56; --t2: #47524F; --ln: #E0E4EA; --ok: #00593F; --dg: #B3262B; --body: Nunito, Ur, system-ui, sans-serif; --head: Head, Ur, system-ui, sans-serif }
* { box-sizing: border-box }
[hidden] { display: none !important }
body { margin: 0; background: #F3F4F8; color: #171D1B; font: 16px/1.45 var(--body); -webkit-text-size-adjust: 100% }
[lang="ur"] body, section[lang="ur"] { line-height: 1.75 }
h1, h2, p { margin: 0 }
h2 { font: 700 20px/1.3 var(--head) }
[lang="ur"] h1, [lang="ur"] h2 { line-height: 1.6 }
button, input { font: inherit; color: inherit }
button { cursor: pointer; border: 0 }
b { font-weight: 800 }
:focus-visible { outline: 3px solid #5B74D6; outline-offset: 2px }
header { color: #fff; background: repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 6px, transparent 6px 14px), linear-gradient(135deg, #2E3D78, #141B3D); display: flex; align-items: center; gap: 11px; padding: 16px max(14px, calc(50vw - 240px)) }
.crest { width: 42px; height: 42px; border-radius: 13px; background: #FFB547; color: #2B1B00; display: grid; place-items: center; flex: none }
.who { flex: 1; min-width: 0; overflow-wrap: anywhere }
h1 { font: 700 20px/1.25 var(--head) }
.lang { color: #fff; border: 1.5px solid rgba(255,255,255,.55); border-radius: 99px; padding: 0 14px; min-height: 44px; display: grid; place-items: center; text-decoration: none; font-weight: 800; font-size: 14.5px; line-height: 1.3 }
main { max-width: 508px; margin: 0 auto; padding: 14px 14px 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px }
section { background: #fff; border-radius: 16px; padding: 14px }
.sub { color: var(--t2); font-size: 15px }
.sum { font: 700 31px/1.3 var(--head) }
[lang="ur"] .sum { line-height: 1.6 }
.good { color: var(--ok) }
.bad { color: var(--dg) }
.note { border-radius: 12px; padding: 10px 12px; margin: 8px 0; font-weight: 700; font-size: 15px; overflow-wrap: anywhere }
.note.warn { background: #FFF1D9; color: #7A4A00 }
.note.bad { background: #FDE6E6 }
.ln { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0 }
.ln + .ln { border-top: 1px solid var(--ln) }
.ln > span { min-width: 0; overflow-wrap: anywhere }
.ln > b { white-space: nowrap }
.acc { font-variant-numeric: tabular-nums }
.soft { background: #DCE3F9; color: var(--p); font-weight: 800; border-radius: 13px; min-height: 44px; padding: 0 16px; flex: none }
.main { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; margin-top: 10px; border-radius: 16px; background: #FFB547; color: #2B1B00; font-weight: 800; font-size: 17px; text-decoration: none }
.main:disabled { background: var(--ln); color: var(--t2); cursor: default }
.plain { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; width: 100%; background: none; color: var(--p); font-weight: 800; text-decoration: none }
.rc { background: #DDF1E8; border-radius: 14px; padding: 12px; margin-top: 8px; overflow-wrap: anywhere }
.foot { text-align: center; color: var(--t2); font-size: 14px }

dialog { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 508px; max-height: 94vh; border-radius: 24px 24px 0 0; color: inherit; background: #fff }
dialog::backdrop { background: rgba(12,16,34,.5) }
form { padding: 18px 18px 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px }
form label, legend { font-weight: 800; font-size: 15px }
form small { display: block; font-weight: 400; color: var(--t2); font-size: 14px }
form input:not([type]) { display: block; width: 100%; min-height: 52px; margin-top: 5px; border: 1.5px solid #6F817B; border-radius: 14px; padding: 0 14px; font-size: 18px; background: #fff }
[dir="rtl"] form input:not([type]) { text-align: right }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px }
legend { padding: 0; margin-bottom: 6px }
.ch { position: relative }
.ch input { position: absolute; opacity: 0 }
.ch span { display: grid; place-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid #6F817B; border-radius: 99px }
.ch input:checked + span { background: #DCE3F9; border-color: #DCE3F9; color: var(--p) }
.ch input:focus-visible + span { outline: 3px solid #5B74D6; outline-offset: 2px }
form .main, form .note { margin: 0 }
