@font-face{font-family:NotoNastaliqUrdu;src:url('fonts/NotoNastaliqUrdu-Regular.ttf') format('truetype');font-display:swap}
.question-pdf{display:inline-grid;place-items:center;width:34px;height:34px;margin:0 0 0 7px;vertical-align:middle;border:1px solid var(--line);border-radius:10px;background:#f7faf8;color:var(--green);touch-action:manipulation;cursor:pointer}.question-pdf svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.question-pdf:focus-visible{outline:3px solid #8bc5ac;outline-offset:2px}html[lang="ur"] .question-pdf{margin:0 7px 0 0}
.pdf-dialog{width:min(calc(100% - 20px),1000px);height:min(92dvh,900px);max-height:92vh;padding:12px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 24px 80px #10251f66}.pdf-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px}.pdf-dialog::backdrop{background:#10251fb8;backdrop-filter:blur(3px)}.pdf-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px}.pdf-dialog-heading h2{overflow:hidden;margin:0;color:var(--green-dark);font-size:1rem;text-overflow:ellipsis;white-space:nowrap}.pdf-dialog-close{flex:0 0 44px;width:44px;height:44px;border:1px solid var(--line);border-radius:12px;background:#f7faf8;color:var(--green-dark);font:inherit;font-size:1.7rem;line-height:1;cursor:pointer;touch-action:manipulation}.pdf-dialog iframe{width:100%;height:100%;min-height:0;border:0;border-radius:10px;background:#eef2ef}
:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#18312d;background:#f4f7f4;font-synthesis:none;text-rendering:optimizeLegibility;--green:#155b4b;--green-dark:#123c35;--mint:#e6f1eb;--line:#dbe5df;--muted:#64766f;--shadow:0 12px 40px #173e3012}*{box-sizing:border-box}body{margin:0;min-height:100vh;min-height:100dvh;background:radial-gradient(ellipse at 50% -15%,#e0efe7,transparent 55%),#f4f7f4}.shell{width:min(100% - 32px,560px);min-height:100vh;min-height:100dvh;margin:auto;display:flex;flex-direction:column;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}.topbar{height:68px;display:flex;align-items:center;justify-content:space-between}.header-actions{display:flex;align-items:center;gap:8px}.brand{display:flex;align-items:center;gap:10px;color:var(--green-dark);text-decoration:none;font-weight:750;letter-spacing:-.02em}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:var(--green);color:white}.quiet-button,.secondary,.language-toggle{background:white;border:1px solid var(--line);color:var(--green-dark);font:inherit;font-weight:650}.quiet-button{border:0;background:transparent;padding:10px}#home-button{min-height:44px;padding:10px 12px;border-radius:12px;color:var(--green-dark);cursor:pointer}.screen{margin:auto 0;width:100%;animation:arrive .28s ease both}.card{background:#fff;border:1px solid #e8eee9;border-radius:24px;padding:clamp(24px,6vw,38px);box-shadow:var(--shadow)}h1{font-size:clamp(1.75rem,7vw,2.35rem);line-height:1.12;letter-spacing:-.045em;margin:8px 0 12px}.eyebrow{text-transform:uppercase;letter-spacing:.13em;font-size:.72rem;font-weight:800;color:var(--green);margin:0 0 8px}.muted{color:var(--muted);line-height:1.6;margin:0 0 24px}.stack{display:grid;gap:18px;margin-top:28px}label{font-size:.9rem;font-weight:650;display:grid;gap:8px}input{width:100%;height:52px;padding:0 15px;border:1px solid var(--line);border-radius:13px;background:#fbfcfb;font:inherit;font-size:1rem}input:focus-visible,button:focus-visible{outline:3px solid #8bc5ac;outline-offset:2px}.primary,.secondary{width:100%;min-height:54px;border-radius:14px;padding:13px 18px;font:inherit;font-size:1rem;font-weight:750;cursor:pointer;margin-top:12px}.primary{border:0;background:var(--green);color:white;box-shadow:0 6px 18px #155b4b2c}.primary:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}.secondary{background:#fff}.welcome-stats,.score-card{display:flex;align-items:center;justify-content:space-between;padding:17px;border-radius:14px;background:#f4f8f5;margin:12px 0;color:var(--muted)}.welcome-stats strong,.score-card strong{font-size:1.1rem;color:var(--green-dark)}.quiz-heading{display:flex;justify-content:space-between;align-items:center;margin:18px 2px 20px}.quiz-heading h1{font-size:1.6rem;margin:0}.language-toggle{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:999px;min-height:46px;cursor:pointer}.toggle-track{width:38px;height:22px;border-radius:99px;background:#dce9e0;padding:3px;display:flex;direction:ltr}.toggle-track span{width:16px;height:16px;border-radius:50%;background:var(--green);transition:transform .25s}.progress-track{height:6px;border-radius:9px;background:#e2eae5;overflow:hidden;margin-bottom:20px}.progress-track span{display:block;height:100%;width:0;background:#4c9a79;border-radius:inherit;transition:width .3s}.question-card{min-height:300px;perspective:1000px}.question-inner{min-height:300px;height:100%;padding:clamp(23px,6vw,32px);border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:var(--shadow);transform-style:preserve-3d;transition:transform .48s cubic-bezier(.2,.75,.2,1),opacity .22s}.question-card.flip .question-inner{animation:languageFlip .48s ease-in-out both}.question-card.slide-out-left .question-inner{animation:slideOutLeft .2s ease both}.question-card.slide-out-right .question-inner{animation:slideOutRight .2s ease both}.question-card.slide-in-left .question-inner{animation:slideInLeft .32s ease both}.question-card.slide-in-right .question-inner{animation:slideInRight .32s ease both}.question-text{font-size:clamp(1.28rem,5.5vw,1.7rem);line-height:1.65;font-weight:680;margin:0 0 22px;white-space:pre-wrap}.options{display:grid;gap:11px}.answer-option{position:relative;display:flex;align-items:center;gap:13px;min-height:58px;padding:12px 14px;border:1px solid var(--line);border-radius:15px;background:#fff;cursor:pointer;font-weight:550;line-height:1.6;transition:border-color .15s,background .15s}.answer-option:has(input:checked){border-color:var(--green);background:var(--mint)}.answer-option input{appearance:none;flex:0 0 20px;width:20px;height:20px;padding:0;border-radius:50%;border:2px solid #b6c8be;margin:0}.answer-option input:checked{border:6px solid var(--green)}.reference{font-size:.88rem;color:var(--muted);line-height:1.6;border-top:1px solid var(--line);padding-top:15px;margin:19px 0 0}.feedback{min-height:26px;text-align:center;font-weight:650;margin:13px 0 0}.feedback.good{color:#176c47}.feedback.bad{color:#a43e36}.notice{margin:8px 0 14px;padding:13px 15px;border-radius:12px;background:#fff1ed;color:#8c3027;font-size:.92rem}.reward{width:56px;height:56px;border-radius:18px;display:grid;place-items:center;color:#8c6a1b;background:#fff3ca;font-size:2rem;margin-bottom:24px}.report-content{line-height:1.8;color:var(--muted)}footer{display:flex;justify-content:space-between;padding:18px 2px;color:#819089;font-size:.78rem;margin-top:auto}html[lang="ur"] body{font-family:"Noto Nastaliq Urdu",system-ui,sans-serif}html[lang="ur"] .question-text{line-height:2.2}html[lang="ur"] .question-inner{font-size:.95rem}html[lang="ur"] .quiz-heading,html[lang="ur"] footer{direction:rtl}.notice[hidden],[hidden]{display:none!important}@keyframes languageFlip{0%{transform:rotateY(0)}48%{transform:rotateY(88deg)}52%{transform:rotateY(92deg)}100%{transform:rotateY(0)}}@keyframes arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes slideOutLeft{to{opacity:0;transform:translateX(-20%)} }@keyframes slideOutRight{to{opacity:0;transform:translateX(20%)} }@keyframes slideInLeft{from{opacity:0;transform:translateX(-20%)}to{opacity:1;transform:translateX(0)}}@keyframes slideInRight{from{opacity:0;transform:translateX(20%)}to{opacity:1;transform:translateX(0)}}@media(min-width:600px){.screen:not(#quiz-screen){margin:auto 0}.shell{padding-top:0;padding-bottom:0}.topbar{height:78px}.question-card,.question-inner{min-height:360px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
.welcome-topline{display:flex;align-items:center;justify-content:space-between;gap:10px}.welcome-topline .eyebrow{margin:0}.books-label{font-size:1rem;margin:26px 0 10px;color:var(--green-dark)}.books-list{display:grid;gap:10px;list-style:none;padding:0;margin:0}.book-item{display:grid;gap:4px;padding:13px 15px;border:1px solid var(--line);border-radius:13px;line-height:1.6}.book-item strong{font-weight:700}.book-author{font-size:.88rem;color:var(--muted)}.book-item a{width:fit-content;color:var(--green);font-size:.88rem;font-weight:650}#welcome-screen.flip{animation:languageFlip .48s ease-in-out both}html[lang="ur"] #welcome-screen{line-height:2}html[lang="ur"] #welcome-screen h1{line-height:1.8}html[lang="ur"] .books-label{line-height:2}
.quiz-status{padding:12px 14px;border-radius:12px;background:#edf5ef;color:var(--green-dark);font-size:.9rem;line-height:1.6;margin:12px 0 18px}.quiz-status:empty{display:none}html[lang="ur"] .quiz-status{line-height:2}
body{perspective:1400px}.shell{transform-style:preserve-3d;transform-origin:center center}.language-flip-fallback{animation:languageFlip .52s ease-in-out both!important}
.feedback.review{padding:16px;border-radius:14px;line-height:1.8;text-align:start;margin:16px 0;min-height:0}.feedback.review.good{background:#e8f4ec;color:#176c47}.feedback.review.bad{background:#fff0ec;color:#91382e}html[lang="ur"] .feedback.review{line-height:2}
.shell{overflow-x:clip}
.member-progress{padding:16px;background:#f4f8f5;border-radius:14px;margin:22px 0 12px}.progress-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;color:var(--green-dark);font-size:.9rem}.progress-heading span{color:var(--muted);font-size:.84rem}.member-progress .progress-track{margin:12px 0 8px}.member-progress .progress-track span{transition:width .35s ease}.member-progress p{margin:0;color:var(--muted);font-size:.86rem;line-height:1.6}.member-progress .completed-note{margin-top:10px;color:#176c47;font-weight:700}html[lang="ur"] .member-progress p{line-height:2}
.report-table-wrap{width:100%;overflow:auto;margin:18px 0;border:1px solid var(--line);border-radius:12px}#report-table{width:100%;border-collapse:collapse;font-size:.88rem;white-space:nowrap}#report-table th,#report-table td{padding:11px 13px;text-align:start;border-bottom:1px solid var(--line)}#report-table th{background:#f4f8f5;color:var(--green-dark);font-weight:750;position:sticky;top:0}#report-table tbody tr:last-child td{border-bottom:0}#report-status-wrap{margin-top:16px}
.exemption-member{padding:12px 0;border-bottom:1px solid var(--line)}.exemption-member-label{display:flex;align-items:center;gap:12px}.exemption-checkbox{appearance:auto!important;flex:0 0 24px;width:24px!important;height:24px!important;padding:0;margin:0}.exemption-identity{display:grid;gap:2px;flex:1}.exemption-identity small,.exemption-state{color:var(--muted);font-size:.82rem}.exemption-state{text-transform:capitalize}.exemption-member textarea{display:block;width:100%;min-height:72px;margin:10px 0 0;padding:12px;border:1px solid var(--line);border-radius:12px;font:inherit;resize:vertical}.table-action{min-height:38px;margin:2px 5px 2px 0;padding:6px 10px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--green-dark);font:inherit;font-weight:650}.table-action:disabled{opacity:.5}
.report-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:14px 0}.report-pagination .secondary{width:auto;min-width:92px;min-height:44px;margin:0;padding:9px 12px}.report-pagination span{text-align:center;color:var(--muted);font-size:.86rem}.report-pagination button:disabled{opacity:.45;cursor:not-allowed}#report-search-wrap{margin-top:14px}
.member-indicator{display:inline-block;margin-inline-start:7px;font-size:1.08rem;vertical-align:middle;cursor:help}
.report-row-count{margin:14px 0 0;color:var(--muted);font-size:.9rem;font-weight:650}.report-summary-row{font-weight:800;background:#f4f8f5}.report-summary-row td{border-top:2px solid var(--line)}
@media(min-width:900px){.shell{width:calc(100% - 64px);max-width:1800px}.screen:not(#report-screen){width:min(100%,760px);margin-left:auto;margin-right:auto}#report-screen{max-width:none}}
.admin-form{display:grid;gap:15px;margin:20px 0;padding:18px;border:1px solid var(--line);border-radius:16px;background:#fff}.admin-form h2{margin:0;color:var(--green-dark);font-size:1.15rem}.admin-form h2 .muted{font-size:.85rem;font-weight:500}.admin-form textarea,.admin-form select{width:100%;min-height:52px;padding:12px 14px;border:1px solid var(--line);border-radius:13px;background:#fbfcfb;font:inherit;font-size:1rem}.admin-form textarea{resize:vertical}.admin-fields-two,.admin-fields-three{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.admin-fields-three{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-checkbox{display:flex;align-items:center;gap:10px}.admin-checkbox input{width:22px;height:22px;margin:0}.admin-options-field{min-width:0;margin:0;padding:12px;border:1px solid var(--line);border-radius:13px}.admin-options-field legend{padding:0 6px;color:var(--green-dark);font-weight:700}.admin-option{display:grid;grid-template-columns:minmax(84px,.5fr) minmax(0,1fr) minmax(0,1fr) auto;align-items:center;gap:8px;margin:8px 0}.admin-correct-option{display:flex;align-items:center;gap:7px;font-size:.82rem}.admin-correct-option input{width:20px;height:20px;margin:0}.admin-remove-option{min-height:40px;padding:7px 10px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--green-dark);font:inherit;font-size:.85rem;cursor:pointer}.admin-remove-option:disabled{opacity:.45}.admin-question-list{display:grid;gap:9px}.admin-question-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--line);border-radius:12px}.admin-question-item div{display:grid;gap:4px;min-width:0}.admin-question-item strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-question-item small{color:var(--muted)}#quiz-admin-content :disabled{opacity:.65}
@media(max-width:600px){.admin-fields-two,.admin-fields-three{grid-template-columns:1fr}.admin-option{grid-template-columns:1fr 1fr}.admin-correct-option{grid-column:1}.admin-remove-option{grid-column:2;grid-row:1;justify-self:end}.admin-question-item strong{white-space:normal}}
#admin-desktop-note{display:none}.admin-template-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.admin-template-heading label{display:block}.admin-form #admin-csv-template{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.86rem;white-space:pre;overflow:auto}.admin-form #admin-csv-template{min-height:58px}.admin-form #admin-question-csv{height:auto;min-height:52px;padding:10px}.admin-import-help{margin:0;color:var(--muted);font-size:.88rem;line-height:1.6}.admin-book-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:9px}.admin-book-item{display:grid;gap:3px;min-width:0;padding:12px;border:1px solid var(--line);border-radius:12px}.admin-book-item strong,.admin-book-item small{color:var(--muted);font-size:.82rem}.admin-book-item span{overflow-wrap:anywhere;color:var(--green-dark);font-weight:650}@media(min-width:901px){#quiz-admin-screen{width:min(calc(100% - 48px),1600px);max-width:none;margin:24px auto}}@media(max-width:900px){#quiz-admin-content{display:none!important}#admin-desktop-note{display:block}}
.admin-question-actions{display:flex;gap:7px;flex-shrink:0}.admin-question-dialog{width:min(calc(100% - 32px),1100px);max-height:92dvh;padding:18px;border:1px solid var(--line);border-radius:18px;background:#f4f7f4;box-shadow:0 24px 80px #10251f66;overflow:auto}.admin-question-dialog::backdrop{background:#10251fb8;backdrop-filter:blur(3px)}.admin-edit-form{display:grid;gap:14px}.admin-edit-form textarea,.admin-edit-form select{width:100%;min-height:48px;padding:11px 13px;border:1px solid var(--line);border-radius:12px;background:#fff;font:inherit;font-size:1rem}.admin-edit-form textarea{resize:vertical}.admin-edit-form h2{margin:0}.admin-dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.admin-dialog-actions .primary,.admin-dialog-actions .secondary{margin-top:0}
.admin-question-item .admin-question-actions{display:flex}
#question-inner[hidden],.trophy-stage[hidden]{display:none}.trophy-stage{display:grid;min-height:300px;place-items:center;overflow:hidden}.trophy-icon{width:min(42vw,168px);height:min(42vw,168px);overflow:visible;transform-style:preserve-3d}.trophy-handles{fill:none;stroke:#a66b16;stroke-width:8;stroke-linecap:round;stroke-linejoin:round}.trophy-cup{fill:#f2bd48;stroke:#a66b16;stroke-width:5;stroke-linejoin:round}.trophy-stem{fill:#c98724;stroke:#a66b16;stroke-width:4;stroke-linejoin:round}.trophy-star{fill:#fff5c9;stroke:#d99a28;stroke-width:2;stroke-linejoin:round}.trophy-spin .trophy-icon{animation:trophy-spin-down 1.8s cubic-bezier(.12,.68,.18,1) both;filter:drop-shadow(0 10px 8px #79511626)}@keyframes trophy-spin-down{0%{transform:rotateY(0) scale(.72)}72%{transform:rotateY(1120deg) scale(1.08)}100%{transform:rotateY(1440deg) scale(1)}}@media(prefers-reduced-motion:reduce){.trophy-spin .trophy-icon{animation:none;transform:none}}

.admin-import-status{margin:0;padding:12px 14px;border-radius:11px;font-size:.92rem;line-height:1.5}.admin-import-status.is-progress{background:#edf5ef;color:var(--green-dark)}.admin-import-status.is-success{background:#e8f4ec;color:#176c47}.admin-import-status.is-error{background:#fff0ec;color:#91382e}
.table-action[data-clear-member]{border-color:#dfb7b2;color:#91382e}.table-action[data-clear-member]:hover:not(:disabled){background:#fff0ec}
.member-location-dialog{width:min(calc(100% - 32px),540px);max-height:92dvh;padding:18px;border:1px solid var(--line);border-radius:18px;background:#f4f7f4;box-shadow:0 24px 80px #10251f66;overflow:auto}.member-location-dialog::backdrop{background:#10251fb8;backdrop-filter:blur(3px)}.member-location-form{display:grid;gap:14px}.member-location-form select{width:100%;min-height:50px;padding:10px 13px;border:1px solid var(--line);border-radius:12px;background:#fff;font:inherit;font-size:1rem}.member-location-form .muted{margin:0}
