/* Statsborgerklar: one shared visual system for browser, iPhone and Android. */
:root,html[data-theme=light]{--bg:#F7F4FF;--surface:#FFFFFF;--surface2:#EFE9FF;--line:#DCD3F5;--ink:#1B1233;--secondary:#4A3F66;--muted:#6B6188;--primary:#6A3DF0;--ledge:#4520B0;--success:#0B7A5E;--success-bg:#E3F8F1;--success-ink:#064F3D;--error:#C2264F;--error-bg:#FDE7EE;--error-ink:#70172F;--amber:#704900;--amber-bg:#FFD27A;--option-ledge:#D1C4EC;--card:var(--surface);--border:var(--line);--accent:var(--primary)}
html[data-theme=dark]{--bg:#0E0B1A;--surface:#1A1430;--surface2:#241B42;--line:#3A2E5E;--ink:#F6F2FF;--secondary:#C3B8DC;--muted:#9A8FB8;--primary:#7C4DFF;--ledge:#4B23B8;--success:#2ED3B7;--success-bg:#123D33;--success-ink:#E9FFF7;--error:#FF6B8A;--error-bg:#451A2A;--error-ink:#FFE8EF;--amber:#FFB547;--amber-bg:#3A2A10;--option-ledge:#352653;--card:var(--surface);--border:var(--line);--accent:var(--primary)}
html[data-theme],html[data-theme] body,html[data-theme] #app,html[data-theme] .quiz-shell{background:var(--bg);color:var(--ink);font-family:Manrope,system-ui,sans-serif}
html[data-theme] button,html[data-theme] input,html[data-theme] select,html[data-theme] h1,html[data-theme] h2,html[data-theme] strong{font-family:inherit}
html[data-theme][dir=rtl],html[data-theme][dir=rtl] button,html[data-theme][dir=rtl] h1,html[data-theme][dir=rtl] h2,html[data-theme][dir=rtl] strong{font-family:'Noto Sans Arabic',system-ui,sans-serif;letter-spacing:0}
html[data-theme] button:focus-visible,html[data-theme] a:focus-visible,html[data-theme] summary:focus-visible,html[data-theme] select:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
html[data-theme] .topbar{position:sticky;top:0;z-index:20;background:var(--bg);height:calc(76px + env(safe-area-inset-top));max-width:720px;width:100%;padding:env(safe-area-inset-top) 20px 0;gap:12px;margin:0 auto;flex:none}
html[data-platform=ios][data-theme] body::before{background:var(--bg)}
html[data-theme] .brand{color:var(--ink);font-size:calc(18px * var(--system-text-scale,1));font-weight:800;letter-spacing:-.7px;gap:8px;min-width:0;min-height:44px}
html[data-theme] .brand-mark{width:32px;height:32px;border-radius:10px}
html[data-theme] .topbar-actions{gap:4px}
html[data-theme] .flag-control{display:flex;align-items:center;justify-content:center;width:auto;min-width:54px;min-height:44px;height:44px;border-radius:12px;padding:6px;color:var(--secondary);background:none;font-size:calc(12px * var(--system-text-scale,1))}
html[data-theme] .flag-control>span{display:flex;align-items:center;gap:5px;filter:none;border:1px solid var(--line);padding:7px;border-radius:10px;line-height:16px}
html[data-theme] .flag-control b{font-weight:800}
html[data-theme] .theme-control{width:44px;height:44px;min-width:44px;border:0;background:transparent;color:var(--secondary);border-radius:12px}
html[data-theme] .profile-control{width:44px;height:44px;min-width:44px;border-radius:14px;border:1px solid var(--line);padding:2px;background:var(--surface2);box-shadow:none}
html[data-theme] .profile-control .face-avatar{width:38px;height:38px;border-radius:11px}
html[data-theme] .language-popover,html[data-theme] .profile-popover{background:var(--surface);border-color:var(--line);color:var(--ink);box-shadow:0 12px 40px #0E0B1A33}
html[data-theme] .language-popover button,html[data-theme] .profile-popover button{color:var(--ink);min-height:44px}
html[data-theme] .language-popover button:hover,html[data-theme] .language-popover button[aria-checked=true],html[data-theme] .profile-popover button:hover{background:var(--surface2)}
html[data-theme] .menu-flag{font-size:calc(12px * var(--system-text-scale,1));color:var(--muted);width:32px;text-align:center}
html[data-theme] .page,html[data-theme] .quiz-main{width:100%;max-width:680px;margin:0 auto;padding:12px 20px calc(var(--navigation-height,76px) + 24px);animation:none}
html[data-theme] .home-page{display:block;flex:initial;min-height:0;padding-top:0}
html[data-theme] .home-page .home-exam{margin:0 0 24px}
html[data-theme] .exam-picker{background:none;border:0;padding:0;gap:8px;color:var(--muted)}
html[data-theme] .home-exam .exam-picker>label,html[data-theme] .home-exam .exam-picker>p{display:none}
html[data-theme] .exam-select-wrap select,html[data-theme] .home-exam .exam-select-wrap select{background:var(--amber-bg);color:var(--amber);border:1px solid color-mix(in srgb,var(--amber) 28%,transparent);border-radius:12px;font-size:calc(13px * var(--system-text-scale,1));font-weight:750;min-height:44px;padding:10px 38px 10px 12px;box-shadow:none;width:100%;text-overflow:clip}
html[data-theme] .exam-dropdown-arrow{color:var(--amber)}
html[data-theme] .home-page .home-mcq,html[data-theme] .mistake-mcq{display:block;flex:initial;padding:0;border:0;background:none;box-shadow:none;border-radius:0;overflow:visible;min-height:0}
html[data-theme] .home-mcq-head{padding:0;background:none;border:0;color:var(--ink);flex:initial}
html[data-theme] .home-page .home-mcq-head{padding:0}
html[data-theme] .home-page .home-mcq-head h1,html[data-theme] .question-title,html[data-theme] .mistake-mcq .home-mcq-head h2{font-family:inherit;font-size:calc(24px * var(--system-text-scale,1));font-weight:750;line-height:1.3;letter-spacing:-.55px;max-width:100%;margin:24px 0 28px;color:var(--ink)}
html[data-theme] .home-page .home-mcq-head h1[dir=rtl],html[data-theme] .question-title[dir=rtl],html[data-theme] .mistake-mcq .home-mcq-head h2[dir=rtl]{font-family:'Noto Sans Arabic',sans-serif;font-size:calc(25px * var(--system-text-scale,1));line-height:1.6;letter-spacing:0}
html[data-theme] .question-counter{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0;padding:0;min-height:32px;width:100%}
html[data-theme] .question-counter>span{display:flex;align-items:baseline;gap:6px;background:none;border:0;border-radius:0;padding:0;min-width:80px;color:var(--secondary);font-size:calc(14px * var(--system-text-scale,1));font-weight:650}
html[data-theme] .question-counter>span>b{color:var(--ink);font-size:calc(22px * var(--system-text-scale,1));font-weight:800;line-height:1.3}
html[data-theme] .question-counter>span>span{font-size:calc(14px * var(--system-text-scale,1));color:var(--secondary)}
html[data-theme] .question-counter>i{width:min(48%,190px);height:5px;border-radius:8px;background:var(--line);overflow:hidden}
html[data-theme] .question-counter em{display:block;height:100%;border-radius:inherit;background:var(--primary);transition:width 300ms ease}
html[data-theme] .question-meta{margin:0}
html[data-theme] .home-page .home-answers,html[data-theme] .answers,html[data-theme] .home-answers{display:grid;gap:12px;margin:0;flex:initial}
html[data-theme] .answer,html[data-theme] .home-answer{display:flex;align-items:center;gap:12px;min-height:72px;width:100%;padding:16px;border-radius:18px;background:var(--surface2);border:1px solid var(--line);color:var(--ink);box-shadow:inset 0 1px 0 #FFFFFF0C,0 3px 0 var(--option-ledge);text-align:start;font-size:calc(17px * var(--system-text-scale,1));font-weight:650;line-height:1.4;transition:transform 90ms ease,background 180ms ease,border-color 180ms ease;opacity:1}
html[data-theme] .answer>span:nth-child(2){flex:1;min-width:0;overflow-wrap:break-word}
html[data-theme] .answer-letter,html[data-theme] .home-answer-letter{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:10px;background:var(--primary);color:white;font-size:calc(14px * var(--system-text-scale,1));font-weight:800;box-shadow:none}
html[data-theme] .answer:hover:not(:disabled),html[data-theme] .home-answer:hover:not(:disabled){background:color-mix(in srgb,var(--surface2) 88%,var(--primary));border-color:var(--primary);transform:translateY(-1px);box-shadow:0 3px 0 var(--option-ledge)}
html[data-theme] .answer:active:not(:disabled),html[data-theme] .home-answer:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 var(--option-ledge)}
html[data-theme] .answer.chosen{background:color-mix(in srgb,var(--surface2) 75%,var(--primary));border-color:var(--primary);color:var(--ink)}
html[data-theme] .answer.correct,html[data-theme] .home-answer.correct{background:var(--success-bg);border-color:var(--success);color:var(--success-ink);box-shadow:0 3px 0 color-mix(in srgb,var(--success) 35%,var(--bg))}
html[data-theme] .answer.wrong,html[data-theme] .home-answer.wrong{background:var(--error-bg);border-color:var(--error);color:var(--error-ink);box-shadow:0 3px 0 color-mix(in srgb,var(--error) 35%,var(--bg))}
html[data-theme] .answer.correct .answer-letter,html[data-theme] .home-answer.correct .home-answer-letter{background:var(--success);color:var(--bg);box-shadow:none}
html[data-theme=light] .answer.correct .answer-letter,html[data-theme=light] .home-answer.correct .home-answer-letter{color:white}
html[data-theme] .answer.wrong .answer-letter,html[data-theme] .home-answer.wrong .home-answer-letter{background:var(--error);color:var(--bg);box-shadow:none}
html[data-theme=light] .answer.wrong .answer-letter,html[data-theme=light] .home-answer.wrong .home-answer-letter{color:white}
html[data-theme] .answer:disabled:not(.correct):not(.wrong),html[data-theme] .home-answer:disabled:not(.correct):not(.wrong){opacity:1;color:var(--secondary);box-shadow:none}
html[data-theme] .is-revealed .answer:not(.correct):not(.wrong),html[data-theme] .is-revealed .home-answer:not(.correct):not(.wrong){min-height:52px;padding-block:10px}
html[data-theme] .feedback{margin:16px 0 0;padding:16px;border-radius:18px;font-size:calc(16px * var(--system-text-scale,1));background:var(--success-bg);border-color:color-mix(in srgb,var(--success) 55%,var(--line));color:var(--success-ink);scroll-margin-bottom:calc(var(--navigation-height,76px) + 94px);scroll-margin-top:12px}
html[data-theme] .feedback.bad{background:var(--error-bg);border-color:color-mix(in srgb,var(--error) 55%,var(--line));color:var(--error-ink)}
html[data-theme] .feedback strong{font-size:calc(15px * var(--system-text-scale,1));font-weight:800;color:inherit;display:flex;align-items:center;gap:8px}
html[data-theme] .feedback p{font-size:calc(16px * var(--system-text-scale,1));line-height:1.5;font-weight:500;margin:8px 0 0;color:inherit}
html[data-theme] .feedback p b{font-size:calc(15px * var(--system-text-scale,1));line-height:1.45;font-weight:750}
html[data-theme] .lesson-link{font-size:calc(14px * var(--system-text-scale,1));color:inherit;min-height:44px;margin-top:8px;border-color:currentColor}
html[data-theme] .study-exam-row{max-width:680px;padding:0 20px;display:flex;align-items:center;gap:8px;margin:0 auto 24px;width:100%}
html[data-theme] .study-exam-row .icon-button{width:44px;height:44px;min-width:44px;background:var(--surface);color:var(--secondary);border:1px solid var(--line);border-radius:12px}
html[data-theme] .quiz-exam-label{position:static;grid-column:auto;display:flex;align-items:center;min-height:44px;flex:1;min-width:0;width:auto;border-radius:12px;padding:10px 12px;background:var(--amber-bg);color:var(--amber);border:1px solid color-mix(in srgb,var(--amber) 28%,transparent);font-size:calc(12px * var(--system-text-scale,1));font-weight:750;white-space:normal;overflow:visible;text-overflow:clip}
html[data-theme] .quiz-main{flex:initial;padding-top:0;padding-bottom:calc(var(--navigation-height,76px) + 114px)}
html[data-theme] .quiz-timer{background:var(--surface2);color:var(--secondary);padding:8px;border-radius:12px;min-height:44px;font-size:calc(13px * var(--system-text-scale,1));gap:6px;white-space:nowrap;font-variant-numeric:tabular-nums}
html[data-theme] .quiz-timer.urgent{color:var(--error)}
html[data-theme] .quiz-action{position:fixed;bottom:var(--navigation-height,calc(76px + env(safe-area-inset-bottom)));left:0;right:0;z-index:9;max-width:none;width:100%;padding:10px 20px 14px;background:var(--bg);border:0;box-shadow:none;backdrop-filter:none}
html[data-theme] .quiz-action .primary-button{max-width:640px;width:100%;margin:auto;display:flex}
html[data-theme] .primary-button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:14px 20px;border:1px solid color-mix(in srgb,var(--primary) 75%,white);border-radius:16px;background:var(--primary);color:white;font-size:calc(16px * var(--system-text-scale,1));font-weight:800;line-height:1.45;box-shadow:inset 0 1px 0 #FFFFFF20,0 4px 0 var(--ledge);transition:transform 90ms ease}
html[data-theme] .primary-button:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 var(--ledge)}
html[data-theme] .primary-button:disabled{background:var(--surface2);color:var(--muted);border-color:var(--line);box-shadow:none;opacity:1}
html[data-theme] .secondary-button,html[data-theme] .pill-button{min-height:48px;background:var(--surface2);color:var(--ink);border:1px solid var(--line);border-radius:16px;box-shadow:none;font-weight:750}
html[data-theme] .text-button,html[data-theme] .back-button{color:var(--secondary);min-height:44px;font-size:calc(14px * var(--system-text-scale,1));font-weight:750}
html[data-theme] .bottom-nav{height:auto;min-height:calc(76px + env(safe-area-inset-bottom));padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line);backdrop-filter:none;box-shadow:none;gap:4px}
html[data-theme] .bottom-nav button{flex:1;min-width:0;min-height:52px;padding:6px 3px;border-radius:14px;font-size:calc(12px * var(--system-text-scale,1));font-weight:750;line-height:1.2;gap:5px;color:var(--muted)}
html[data-theme] .bottom-nav button.active{background:var(--surface2);color:var(--ink)}
html[data-theme] .bottom-nav button.active svg{color:var(--primary);filter:none}
html[data-theme] .page-heading{margin:16px 0 20px}
html[data-theme] .page-heading h1{font-size:calc(26px * var(--system-text-scale,1));line-height:1.3;letter-spacing:-.6px;color:var(--ink);font-weight:800;margin:0}
html[data-theme] .page-heading p,html[data-theme] .settings-hint{font-size:calc(15px * var(--system-text-scale,1));line-height:1.6;color:var(--secondary)}
html[data-theme] .kicker{color:var(--amber)}
html[data-theme] .settings-panel,html[data-theme] .account-identity,html[data-theme] .practice-limit,html[data-theme] .next-practice-guidance,html[data-theme] .pass-card,html[data-theme] .analytics-inline,html[data-theme] .review-card{background:var(--surface);border-color:var(--line);color:var(--ink);border-radius:20px;box-shadow:none}
html[data-theme] .settings-panel h2,html[data-theme] .settings-link,html[data-theme] .settings-account-link,html[data-theme] .account-identity strong,html[data-theme] .pass-card h1,html[data-theme] .next-practice-guidance h2,html[data-theme] .review-card h2{color:var(--ink)}
html[data-theme] .settings-account-link small,html[data-theme] .account-identity p,html[data-theme] .account-divider,html[data-theme] .pass-card p,html[data-theme] .purchase-platforms,html[data-theme] .pass-price span,html[data-theme] .next-practice-guidance p,html[data-theme] .review-explanation{color:var(--secondary)}
html[data-theme] .settings-panel,html[data-theme] .account-identity{padding:20px}
html[data-theme] .settings-divider,html[data-theme] .settings-link{border-color:var(--line)}
html[data-theme] .settings-link svg,html[data-theme] .settings-privacy>summary>svg{color:var(--secondary)}
html[data-theme] .settings-panel .danger{color:var(--error)}
html[data-theme] .theme-options button,html[data-theme] .language-select{background:var(--surface2);color:var(--secondary);border-color:var(--line);min-height:44px}
html[data-theme] .theme-options button.active{background:var(--surface2);border-color:var(--primary);color:var(--ink);box-shadow:inset 0 0 0 1px var(--primary)}
html[data-theme] .account-panel label{color:var(--secondary)}
html[data-theme] .account-panel input{background:var(--surface2);color:var(--ink);border-color:var(--line)}
html[data-theme] .account-panel input:focus{outline:2px solid var(--primary)}
html[data-theme] .avatar-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
html[data-theme] .avatar-choice{padding:6px;min-height:52px;border-radius:14px;min-width:0;background:var(--surface2);border-color:var(--line);box-shadow:none}
html[data-theme] .avatar-choice .face-avatar{width:100%;height:auto;aspect-ratio:1;border-radius:10px}
html[data-theme] .avatar-choice>span:not(.avatar-art){display:none}
html[data-theme] .avatar-choice.selected{border-color:var(--primary);box-shadow:0 0 0 2px var(--primary)}
html[data-theme] .avatar-choice.selected b{background:var(--primary);color:white}
html[data-theme] .avatar-section-head h2{color:var(--ink)}
html[data-theme] .avatar-section-head p{color:var(--secondary)}
html[data-theme] .full-exam-card{border:1px solid var(--line);border-radius:20px;background:var(--surface);padding:32px 24px;margin-top:24px;box-shadow:none}
html[data-theme] .full-exam-emblem{display:block;background:none;border:0;border-radius:0;width:100px;height:100px;margin:0 auto 16px;box-shadow:none;color:var(--amber)}
html[data-theme] .full-exam-emblem .badge-art{width:100%;height:100%}
html[data-theme] .full-exam-card h1{font-size:calc(26px * var(--system-text-scale,1));font-weight:800;color:var(--ink)}
html[data-theme] .full-exam-intro,html[data-theme] .full-exam-facts,html[data-theme] .full-exam-access{color:var(--secondary)}
html[data-theme] .empty-state{background:none;color:var(--secondary);border:0;padding:32px 16px}
html[data-theme] .empty-state>svg{color:var(--primary)}
html[data-theme] .empty-state h2{color:var(--ink)}
html[data-theme] .mistake-head-row{display:block}
html[data-theme] .mistake-remove{display:flex;font-size:calc(12px * var(--system-text-scale,1));color:inherit;margin-top:10px;padding:8px 0}
html[data-theme] .correct-progress{background:var(--surface2);border-color:var(--line);color:var(--ink);box-shadow:none;border-radius:20px;padding:20px;gap:20px}
html[data-theme] .correct-progress>strong{color:var(--ink);font-size:calc(56px * var(--system-text-scale,1));line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-2px}
html[data-theme] .correct-progress>span{color:var(--secondary);font-size:calc(15px * var(--system-text-scale,1))}
html[data-theme] .badge-section-heading h2{color:var(--ink);font-size:calc(20px * var(--system-text-scale,1))}
html[data-theme] .badge-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
html[data-theme] .badge-tile{flex-direction:column;justify-content:start;gap:8px;text-align:center;min-height:150px;padding:12px 8px;background:var(--surface);border-color:var(--line);border-radius:16px;box-shadow:none;color:var(--ink)}
html[data-theme] .badge-tile .badge-art{width:56px;height:56px}
html[data-theme] .badge-tile strong{padding:0;font-size:calc(12px * var(--system-text-scale,1));line-height:1.35;font-weight:750;min-height:32px;overflow-wrap:normal}
html[data-theme] .badge-tile.is-earned{background:var(--surface2);border-color:color-mix(in srgb,var(--primary) 45%,var(--line))}
html[data-theme] .badge-tile.is-locked .badge-art{filter:grayscale(.65);opacity:.7}
html[data-theme] .badge-tile.is-locked strong{color:var(--secondary)}
html[data-theme] .badge-status{color:var(--muted)}
html[data-theme] .badge-tile.is-earned .badge-status{color:var(--amber)}
html[data-theme] .badge-progress{display:grid;gap:5px;font-size:calc(10px * var(--system-text-scale,1));font-weight:700;color:var(--muted);width:100%;margin-top:auto}
html[data-theme] .badge-progress i{height:3px;border-radius:5px;background:var(--line);overflow:hidden}
html[data-theme] .badge-progress em{display:block;height:100%;background:var(--primary);border-radius:inherit}
html[data-theme] .badge-tile.is-earned .badge-progress i{background:var(--primary)}
html[data-theme] .badge-celebration{background:radial-gradient(ellipse at 50% 18%,#483077 0%,#1A1430 65%);border-color:#7C4DFF;border-radius:24px;color:#F6F2FF}
html[data-theme] .badge-close{width:44px;height:44px;color:#C3B8DC}
html[data-theme] .badge-hero-art{width:200px;height:200px}
html[data-theme] .badge-celebration h2{font-size:calc(28px * var(--system-text-scale,1));color:#F6F2FF}
html[data-theme] .badge-celebration p{color:#C3B8DC;font-size:calc(16px * var(--system-text-scale,1));line-height:1.5}
html[data-theme] .badge-celebration .primary-button{background:#7C4DFF;border-color:#906AFF;box-shadow:0 4px 0 #4B23B8;color:#FFFFFF}
html[data-theme] .badge-celebration .text-button{color:#C3B8DC}
html[data-theme] .badge-eyebrow{color:#FFB547}
html[data-theme] .result-page{max-width:600px;text-align:center;padding-top:12px}
html[data-theme] .session-complete{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 auto 24px;padding:8px 12px;border-radius:12px;background:var(--surface2);font-size:calc(12px * var(--system-text-scale,1));color:var(--secondary);width:fit-content}
html[data-theme] .session-complete svg{color:var(--primary)}
html[data-theme] .result-companion .face-avatar{width:80px;height:80px;border-radius:24px;margin-bottom:14px;border:1px solid var(--line)}
html[data-theme] .result-hero .kicker{display:block;text-transform:none;letter-spacing:0;font-size:calc(14px * var(--system-text-scale,1));font-weight:750;color:var(--secondary)}
html[data-theme] .result-hero h1{font-size:calc(56px * var(--system-text-scale,1));line-height:1.15;font-weight:800;letter-spacing:-2px;margin:10px 0 4px;color:var(--ink);font-variant-numeric:tabular-nums}
html[data-theme] .result-hero h1 span{font-size:calc(22px * var(--system-text-scale,1));color:var(--secondary);letter-spacing:-.5px}
html[data-theme] .result-hero p{font-size:calc(16px * var(--system-text-scale,1));color:var(--secondary);margin:0}
html[data-theme] .result-sub{font-size:calc(12px * var(--system-text-scale,1));line-height:1.5;color:var(--muted);margin:14px 0 24px}
html[data-theme] .result-badges{margin:0 0 20px}
html[data-theme] .result-badges h2{font-size:calc(13px * var(--system-text-scale,1));color:var(--secondary);font-weight:750}
html[data-theme] .result-badges>div{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
html[data-theme] .result-badges button{display:flex;flex-direction:column;align-items:center;gap:6px;width:90px;border:0;background:none;color:var(--secondary);font-size:calc(11px * var(--system-text-scale,1));line-height:1.4;padding:0}
html[data-theme] .result-badges .badge-art{width:52px;height:52px}
html[data-theme] .result-bank{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:20px;background:var(--surface);padding:16px 10px;margin-bottom:20px;gap:8px}
html[data-theme] .result-bank>div{display:flex;flex-direction:column;gap:5px}
html[data-theme] .result-bank strong{font-size:calc(24px * var(--system-text-scale,1));color:var(--ink);font-variant-numeric:tabular-nums}
html[data-theme] .result-bank span{font-size:calc(11px * var(--system-text-scale,1));line-height:1.4;color:var(--secondary)}
html[data-theme] .result-page>.primary-button{width:100%}
html[data-theme] .result-page>.text-button{display:flex;justify-content:center;gap:8px;margin:12px auto 0}
html[data-theme] .consent-dialog,html[data-theme] .topic-reader-dialog{background:var(--surface);border-color:var(--line);color:var(--ink);border-radius:24px}
html[data-theme] .consent-dialog h2,html[data-theme] .topic-reader-dialog h2,html[data-theme] .topic-reader-dialog h3{color:var(--ink)}
html[data-theme] .consent-dialog p,html[data-theme] .topic-reader-dialog p{color:var(--secondary);font-size:calc(16px * var(--system-text-scale,1));line-height:1.5}
html[data-theme] .topic-reader-close{width:44px;height:44px;color:var(--secondary)}
html[data-theme] .topic-reader-note{background:var(--surface2);color:var(--secondary);border-color:var(--line)}
@media(min-width:768px){
 html[data-theme] .topbar{height:calc(88px + env(safe-area-inset-top))}
 html[data-theme] .page,html[data-theme] .quiz-main{padding-inline:32px}
 html[data-theme] .study-exam-row{padding-inline:32px}
 html[data-theme] .home-page .home-mcq-head h1,html[data-theme] .question-title,html[data-theme] .mistake-mcq .home-mcq-head h2{font-size:calc(30px * var(--system-text-scale,1));line-height:1.3;margin-bottom:32px}
 html[data-theme] .answer,html[data-theme] .home-answer{font-size:calc(18px * var(--system-text-scale,1));min-height:76px}
 html[data-theme] .home-page .home-answers{margin-top:0}
 html[data-theme] .badge-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
 html[data-theme] .quiz-action .primary-button{max-width:616px}
}
@media(min-width:1024px){
 html[data-theme] .bottom-nav{inset:140px auto auto 24px;flex-direction:column;justify-content:start;width:170px;height:auto;padding:8px;border:1px solid var(--line);border-radius:20px;gap:8px}
 html[data-theme][dir=rtl] .bottom-nav{left:auto;right:24px}
 html[data-theme] .bottom-nav button{flex:none;flex-direction:row;justify-content:start;text-align:start;gap:10px;padding:12px;font-size:calc(12px * var(--system-text-scale,1))}
 html[data-theme] .page,html[data-theme] .quiz-main,html[data-theme] .study-exam-row,html[data-theme] .topbar{position:relative;left:65px}
 html[data-theme][dir=rtl] .page,html[data-theme][dir=rtl] .quiz-main,html[data-theme][dir=rtl] .study-exam-row,html[data-theme][dir=rtl] .topbar{left:-65px}
 html[data-theme] .quiz-action{position:static;margin:0 auto 32px;padding:0 32px;max-width:680px;transform:translateX(65px)}
 html[data-theme][dir=rtl] .quiz-action{transform:translateX(-65px)}
 html[data-theme] .quiz-main{padding-bottom:24px}
 html[data-theme] .page{padding-bottom:32px}
 html[data-theme] .feedback{scroll-margin-bottom:24px}
}
@media(max-width:360px){html[data-theme] .topbar{padding-inline:14px;gap:4px}html[data-theme] .brand{font-size:calc(16px * var(--system-text-scale,1));gap:5px}html[data-theme] .brand-mark{width:28px;height:28px}html[data-theme] .page,html[data-theme] .quiz-main,html[data-theme] .study-exam-row{padding-inline:16px}html[data-theme] .flag-control>span{padding:6px}html[data-theme] .flag-control{min-width:48px}html[data-theme] .topbar-actions{gap:0}}
@media(prefers-reduced-motion:reduce){html[data-theme] *,html[data-theme] *::before,html[data-theme] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}html[data-theme] .badge-firework{display:none}}
/* Keep ordinary feedback visible above the controls on a phone. */
@media(max-width:767px){
 html[data-theme] .topbar{height:calc(64px + env(safe-area-inset-top))}
 html[data-theme] .home-page .home-exam,html[data-theme] .study-exam-row{margin-bottom:16px}
 html[data-theme] .home-page .home-mcq-head h1,html[data-theme] .question-title,html[data-theme] .mistake-mcq .home-mcq-head h2{margin-top:16px;margin-bottom:24px}
 html[data-theme] .is-revealed .answer,html[data-theme] .is-revealed .home-answer{min-height:62px;padding-block:12px}
 html[data-theme] .is-revealed .answer:not(.correct):not(.wrong),html[data-theme] .is-revealed .home-answer:not(.correct):not(.wrong){min-height:48px;padding-block:8px}
 html[data-theme] .badge-tile{min-height:124px;padding:8px 6px;gap:4px}
 html[data-theme] .badge-tile strong{min-height:28px;line-height:1.2}
 html[data-theme] .badge-progress{gap:3px;line-height:12px}
}
html[data-theme] .answer-status:empty{display:none}
html[data-theme] .answer.correct .answer-status,html[data-theme] .answer.wrong .answer-status,html[data-theme] .home-answer.correct .answer-status,html[data-theme] .home-answer.wrong .answer-status{color:inherit}
html[data-theme] .is-revealed .answer.correct .answer-letter,html[data-theme] .is-revealed .home-answer.correct .home-answer-letter{background:var(--success);color:var(--bg);border-color:var(--success)}
html[data-theme] .is-revealed .answer.wrong .answer-letter,html[data-theme] .is-revealed .home-answer.wrong .home-answer-letter{background:var(--error);color:var(--bg);border-color:var(--error)}
html[data-theme=light] .is-revealed .answer.correct .answer-letter,html[data-theme=light] .is-revealed .answer.wrong .answer-letter,html[data-theme=light] .is-revealed .home-answer.correct .home-answer-letter,html[data-theme=light] .is-revealed .home-answer.wrong .home-answer-letter{color:white}
html[data-theme] .lesson-context{margin-top:8px;padding-top:0;border:0}
html[data-theme] .lesson-context button{font-size:calc(14px * var(--system-text-scale,1));line-height:1.4;min-height:44px;margin:0;padding:8px 0;color:inherit}
html[data-theme] .feedback .lesson-context,html[data-theme] .feedback .lesson-context .topic-link{color:inherit}
html[data-theme] .result-companion .avatar-art{width:80px;height:80px;border-radius:24px;margin-bottom:14px;border:1px solid var(--line);box-shadow:none}
html[data-theme] .result-companion .face-avatar{width:100%;height:100%;border:0;border-radius:0;margin:0}
html[data-theme] .session-complete{flex-direction:row;gap:8px;align-items:center}
html[data-theme] .avatar-choice .avatar-art{width:100%;height:auto;aspect-ratio:1;border-radius:10px;box-shadow:none}
html[data-theme] .full-exam-emblem .avatar-art,html[data-theme] .empty-companion .avatar-art{display:block;width:100%;height:100%;border:1px solid var(--line);border-radius:26px;box-shadow:none}
html[data-theme] .full-exam-emblem .face-avatar,html[data-theme] .empty-companion .face-avatar{width:100%;height:100%;border:0;border-radius:0}
html[data-theme] .empty-companion{display:block;width:80px;height:80px;margin:0 auto 16px}
html[data-theme] .topic-backdrop{background:#0E0B1AB8}
html[data-theme] .topic-reader{background:var(--surface);border-color:var(--line);color:var(--ink);box-shadow:0 24px 48px #0A061973}
html[data-theme] .topic-reader-header,html[data-theme] .topic-reader-footer,html[data-theme] .topic-reader-lead{border-color:var(--line)}
html[data-theme] .topic-reader h2{color:var(--ink)}
html[data-theme] .topic-reader-header p,html[data-theme] .topic-reader-body,html[data-theme] .topic-reader-body p,html[data-theme] .topic-reader-lead{color:var(--secondary)}
html[data-theme] .topic-reader-header>.icon-button{background:var(--surface2);border-color:var(--line);color:var(--secondary);min-width:44px;min-height:44px}
html[data-theme][dir=rtl] body,html[data-theme][dir=rtl] #app,html[data-theme][dir=rtl] .quiz-shell,html[data-theme][dir=rtl] .topic-reader{font-family:'Noto Sans Arabic',system-ui,sans-serif}
@media(max-width:319px){
 html[data-theme] .brand>span:not(.brand-mark){display:none}
 html[data-theme] .topbar{padding-inline:6px;gap:0}
 html[data-theme] .bottom-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 html[data-theme] .bottom-nav button{flex-direction:row;gap:6px;overflow-wrap:anywhere}
 html[data-theme] .badge-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 html[data-theme] .study-exam-row{flex-wrap:wrap}
 html[data-theme] .quiz-timer{margin-inline-start:auto}
}
html[data-theme] .answer-reveal .answer.correct,html[data-theme] .answer-reveal .home-answer.correct{--answer-result-bg:var(--success-bg);--answer-result-border:var(--success);--answer-result-text:var(--success-ink)}
html[data-theme] .answer-reveal .answer.wrong,html[data-theme] .answer-reveal .home-answer.wrong{--answer-result-bg:var(--error-bg);--answer-result-border:var(--error);--answer-result-text:var(--error-ink)}

/* Larger native text grows text and reflows content instead of magnifying the viewport. */
html[data-large-text] .brand>span:not(.brand-mark){display:none}
html[data-large-text] .topbar{min-height:calc(64px + env(safe-area-inset-top));height:auto;padding-bottom:8px}
html[data-large-text] .quiz-exam-label{overflow-wrap:anywhere}
html[data-large-text] .badge-tile{min-height:150px;height:auto}
html[data-large-text] .badge-tile strong{min-height:0}
html[data-large-text] .badge-progress{line-height:1.4}
@media(max-width:767px){
 html[data-large-text] .bottom-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 html[data-large-text] .bottom-nav button{flex-direction:row;gap:8px;overflow-wrap:anywhere}
 html[data-large-text] .badge-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

html[data-theme] .bottom-nav button span{font-size:inherit;font-family:inherit}

/* Final polish from the independent visual review. */
html[data-theme] .mistake-mcq .home-mcq-head{margin:0;padding:0;width:100%;max-width:100%}
html[data-theme] .mistake-mcq .mistake-head-row{margin:0;padding:0}
html[data-theme] .avatar-choice .avatar-art{display:block;overflow:hidden}
html[data-theme] .avatar-choice .face-avatar{display:block;object-fit:cover}
html[data-theme] .brand>span:not(.brand-mark){direction:ltr;unicode-bidi:isolate;font-family:Manrope,system-ui,sans-serif}
html[data-theme][dir=rtl] .brand{font-size:calc(16px * var(--system-text-scale,1));gap:6px}
html[data-theme][dir=rtl] .flag-control>span{padding-inline:5px;gap:3px}
html[data-theme][dir=rtl] .topbar-actions{gap:0}
html[data-theme] .exam-picker{border:0;background:none}
html[data-theme] .exam-picker .exam-select-wrap select{background:var(--amber-bg);color:var(--amber);padding:10px 38px 10px 12px;font-family:Manrope,system-ui,sans-serif;border-color:color-mix(in srgb,var(--amber) 28%,transparent)}
html[data-theme][dir=rtl] .exam-select-wrap select{padding:10px 12px 10px 38px}
html[data-theme][dir=rtl] .exam-dropdown-arrow{inset-inline-start:auto;inset-inline-end:12px;left:12px;right:auto}
html[data-theme] .quiz-timer,html[data-theme] .quiz-timer #timer{font-family:Manrope,system-ui,sans-serif;font-weight:700;font-variant-numeric:tabular-nums}
html[data-theme] .bottom-nav{min-height:calc(79px + env(safe-area-inset-bottom))}
html[data-theme] .avatar-section,html[data-theme] .purchase-summary{background:var(--surface);color:var(--ink);border:1px solid var(--line);box-shadow:none;border-radius:20px}
html[data-theme] .purchase-summary h2{color:var(--ink);font-family:inherit}
html[data-theme] .purchase-summary p,html[data-theme] .purchase-summary .text-button{color:var(--secondary)}
html[data-theme] .badge-goal-progress{display:grid;gap:8px;width:min(220px,100%);margin:16px auto 24px;color:#C3B8DC;font-size:14px}
html[data-theme] .badge-goal-progress i{height:5px;background:#3A2E5E;border-radius:8px;overflow:hidden}
html[data-theme] .badge-goal-progress em{display:block;height:100%;background:#A778FF;border-radius:inherit}
/* A recurring aurora trace and etched Nordic horizon make the character art feel part of one identity. */
html[data-theme] .topbar::after{content:'';position:absolute;bottom:0;left:20px;right:20px;height:2px;border-radius:2px;background:linear-gradient(90deg,transparent 2%,#7C4DFF 24%,#2ED3B7 48%,#FFB547 70%,transparent 98%);opacity:.65}
html[data-theme] .result-bank,html[data-theme] .badge-celebration{background-image:url('./brand/nordic-horizon.svg');background-position:center bottom;background-repeat:no-repeat;background-size:100% auto}
html[data-theme] .badge-celebration{background-color:#1A1430}
html[data-theme] .feedback strong{position:relative;padding-inline-end:38px;min-height:28px}
html[data-theme] .feedback-companion{position:absolute;inset-inline-end:0;top:0;width:28px;height:28px}
html[data-theme] .feedback-companion .avatar-art{display:block;width:28px;height:28px;border-radius:9px;box-shadow:none;border:1px solid currentColor}
html[data-theme] .feedback-companion .face-avatar{width:100%;height:100%;object-fit:cover}
@media(max-width:767px){
 html[data-theme] .home-page .home-mcq:not(.is-revealed){min-height:calc(100svh - 166px - env(safe-area-inset-top) - var(--navigation-height,79px));display:flex;flex-direction:column;justify-content:center}
 html[data-theme] .premium-quiz:not(.is-revealed) .quiz-main{min-height:calc(100svh - 124px - env(safe-area-inset-top));display:flex;flex-direction:column;justify-content:center;padding-bottom:calc(var(--navigation-height,79px) + 24px)}
}
@media(min-width:1024px){
 html[data-theme] .bottom-nav{left:max(24px,calc((100vw - 952px)/2));right:auto;width:200px;min-height:0}
 html[data-theme][dir=rtl] .bottom-nav{right:max(24px,calc((100vw - 952px)/2));left:auto}
 html[data-theme] .bottom-nav button{font-size:14px;font-weight:650;min-height:48px;gap:10px}
 html[data-theme] .page,html[data-theme] .quiz-main,html[data-theme] .study-exam-row,html[data-theme] .topbar{left:116px}
 html[data-theme][dir=rtl] .page,html[data-theme][dir=rtl] .quiz-main,html[data-theme][dir=rtl] .study-exam-row,html[data-theme][dir=rtl] .topbar{left:-116px}
 html[data-theme] .quiz-action{transform:translateX(116px)}
 html[data-theme][dir=rtl] .quiz-action{transform:translateX(-116px)}
}

@media(max-width:1023px){
 html[data-platform=ios][data-theme] .topbar,html[data-platform=android][data-theme] .topbar{position:fixed;inset:0 0 auto;left:0;right:0}
 html[data-platform=ios][data-theme] #app,html[data-platform=android][data-theme] #app{padding-top:calc(66px + env(safe-area-inset-top))}
 html[data-platform=ios][data-large-text] #app,html[data-platform=android][data-large-text] #app{padding-top:calc(72px + env(safe-area-inset-top))}
}
html[data-theme] .home-page .home-mcq-head{flex:none}
@media(min-width:320px) and (max-width:767px){
 html[data-theme]:not([data-large-text]) .bottom-nav{height:calc(79px + env(safe-area-inset-bottom))}
 html[data-theme]:not([data-large-text]) .bottom-nav button{height:62px;padding-block:4px;gap:4px;line-height:14px}
}
html[data-theme] .badge-goal-progress{font-size:calc(14px * var(--system-text-scale,1))}
html[data-theme] .badge-progress{font-size:calc(12px * var(--system-text-scale,1));font-weight:650;line-height:1.4}
html[data-theme] .question-counter em{background:linear-gradient(90deg,#7C4DFF,#A778FF 44%,#2ED3B7)}
html[data-theme] .result-bank,html[data-theme] .badge-celebration{background-size:100% 44px;padding-bottom:44px}
html[data-theme] .feedback strong{padding-inline-end:42px;min-height:32px}
html[data-theme] .feedback-companion,html[data-theme] .feedback-companion .avatar-art{width:32px;height:32px}
@media(max-width:767px){
 html[data-theme] .home-page{min-height:calc(100svh - 66px - env(safe-area-inset-top) - var(--navigation-height,79px));display:flex;flex-direction:column;justify-content:center;padding-top:24px;padding-bottom:24px}
 html[data-theme] .home-page .home-mcq:not(.is-revealed){min-height:0}
 html[data-theme] .home-page .home-exam{margin-top:8px;margin-bottom:24px}
}
@media(min-width:768px) and (max-width:1023px){
 html[data-platform=ios][data-theme] #app,html[data-platform=android][data-theme] #app{padding-top:calc(88px + env(safe-area-inset-top))}
}
html[data-theme][dir=rtl] .answer-letter,html[data-theme][dir=rtl] .home-answer-letter{font-size:calc(16px * var(--system-text-scale,1));line-height:1.5}
html[data-theme] .study-exam-row{margin-top:8px}
html[data-theme] .feedback{margin-top:12px;padding:14px}

/* Rania's sizing floor: three text roles and comfortable targets in every view.
   Text inherits its role; inline artwork keeps its own vector typography. */
html[data-theme] #app{--type-label:calc(14px * var(--system-text-scale,1));--type-body:calc(17px * var(--system-text-scale,1));--type-display:calc(24px * var(--system-text-scale,1));font-size:var(--type-body)}
html[data-theme] #app :where(:not(svg,svg *)){font-size:inherit}
html[data-theme] #app :where(h1,.question-title,.mistake-mcq h2,.full-exam-card h1,.topic-reader h2,.badge-celebration h2,.consent-dialog h2){font-size:var(--type-display)}
html[data-theme] #app :where(.flag-control,.menu-flag,.bottom-nav button,.kicker,.eyebrow,.question-counter>span,.answer-letter,.home-answer-letter,.visual-letter,.exam-select-wrap select,.quiz-exam-label,.quiz-timer,.language-popover button,.profile-popover button,.badge-tile strong,.badge-progress,.badge-section-heading>span,.badge-eyebrow,.badge-goal-progress,.session-complete,.result-sub,.result-badges button,.result-bank span,.result-hero .kicker,.result-hero h1 span,.account-divider,.account-identity small,.settings-account-link small,.full-exam-access,.pass-legal,.content-note,.topic-reader-header p){font-size:var(--type-label)}
html[data-theme] #app :where(.question-counter>span>b,.result-bank strong){font-size:var(--type-display)}
html[data-theme] #app .purchase-platforms{font-size:var(--type-label)!important}
html[data-theme] #app :where(.progress-page,.result-page){--type-display:calc(48px * var(--system-text-scale,1))}
html[data-theme] #app :where(.progress-page h1,.progress-page h2,.result-page h2,.result-bank strong){font-size:var(--type-body)}
html[data-theme] #app :where(.correct-progress>strong,.result-hero h1){font-size:var(--type-display)}
html[data-theme] #app :where(.badge-celebration,.topic-reader,.consent-dialog){--type-display:calc(24px * var(--system-text-scale,1))}
html[data-theme] #app :where(button,select,input:not([type=hidden]),summary,a[href]){min-width:44px;min-height:48px}
html[data-theme] #app :where(.answer,.home-answer){min-height:72px}
html[data-theme] #app :where(.is-revealed .answer,.is-revealed .home-answer){min-height:62px}
html[data-theme] #app :where(.is-revealed .answer:not(.correct):not(.wrong),.is-revealed .home-answer:not(.correct):not(.wrong)){min-height:48px}
html[data-theme] #app :where(.primary-button,.avatar-choice){min-height:52px}
html[data-theme] #app :where(.badge-tile){min-height:150px}
html[data-theme] #app :where(a[href]){display:inline-flex;align-items:center}
html[data-theme] #app :where(.theme-control,.profile-control,.icon-button,.badge-close,.topic-reader-close,.expiry-dismiss){width:48px;height:48px}
html[data-theme] #app :where(.flag-control){height:48px}
html[data-theme] #app :where(.profile-control .face-avatar){width:40px;height:40px}
html[data-theme] #app :where(.topic-link,.text-button,.back-button,.settings-link){line-height:1.4}
html[data-theme] #app :where(.badge-tile strong){line-height:1.3;min-height:36px}
html[data-theme] #app :where(.badge-progress){line-height:1.4}
html[data-theme] #app :where(.settings-panel h2,.avatar-section-head h2,.badge-section-heading h2,.progress-page h1){font-weight:800}
html[data-theme] #app :where(.feedback p){line-height:1.45}
@media(min-width:768px){html[data-theme] #app{--type-display:calc(30px * var(--system-text-scale,1))}}
@media(max-width:767px){
 html[data-theme] #app .bottom-nav{height:auto;min-height:calc(85px + env(safe-area-inset-bottom))}
 html[data-theme] #app .bottom-nav button{height:auto;min-height:68px;line-height:1.2;padding-block:4px}
 html[data-theme] #app .study-exam-row{margin-bottom:12px}
 html[data-theme] #app .feedback{padding:12px}
 html[data-theme] #app .badge-tile{min-height:124px}
}
@media(max-width:360px){html[data-theme] #app .brand>span:not(.brand-mark){display:none}}
html[data-theme] #app .exam-current{display:none}
html[data-large-text][data-theme] #app .exam-select-wrap{position:relative}
html[data-large-text][data-theme] #app .exam-select-wrap select{position:absolute;inset:0;width:100%;height:100%;opacity:0}
html[data-large-text][data-theme] #app .exam-current{display:block;min-height:48px;padding:10px 38px 10px 12px;background:var(--amber-bg);color:var(--amber);border:1px solid color-mix(in srgb,var(--amber) 28%,transparent);border-radius:12px;font-family:Manrope,system-ui,sans-serif;font-size:var(--type-label);line-height:1.35;overflow-wrap:anywhere;pointer-events:none}
html[data-large-text][data-theme] #app .exam-select-wrap:focus-within{outline:2px solid var(--primary);outline-offset:3px;border-radius:12px}
html[data-large-text][data-theme][dir=rtl] #app .exam-current{padding-inline:38px 12px;direction:ltr}
@media(max-width:1023px){html[data-theme]:has(.premium-quiz),html[data-theme] body:has(.premium-quiz),html[data-theme] #app:has(.premium-quiz){overflow:clip visible}html[data-theme] #app .study-exam-row{position:sticky;top:calc(66px + env(safe-area-inset-top));z-index:19;background:var(--bg)}}
@media(min-width:768px) and (max-width:1023px){html[data-theme] #app .study-exam-row{top:calc(88px + env(safe-area-inset-top))}}

/* Question screens occupy the available viewport once. Feedback does not add
   another page underneath the answers or trigger a page scroll. */
@media(max-width:1023px){
 html.question-screen,html.question-screen body{height:100%;min-height:0;overflow:hidden;overscroll-behavior:none}
 html.question-screen[data-theme] #app{height:100dvh;min-height:0;padding-top:0;overflow:hidden;display:flex;flex-direction:column}
 html.question-screen[data-theme] .quiz-shell{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}
 html.question-screen[data-theme] .topbar{position:relative;inset:auto;flex:none;min-height:calc(66px + env(safe-area-inset-top));height:auto;padding-top:env(safe-area-inset-top);margin:0 auto}
 html.question-screen[data-theme] #app .study-exam-row{position:static;flex:none;top:auto;margin:8px auto;z-index:auto}
 html.question-screen[data-theme] #app .quiz-main{position:relative;flex:1;min-height:0;height:auto;display:block;padding:12px 20px;overflow:auto;overscroll-behavior:contain;scrollbar-width:none}
 html.question-screen[data-theme] .question-stage{display:flex;flex-direction:column;justify-content:center;min-height:100%;gap:16px}
 html.question-screen[data-theme] #app .question-title{margin:0;flex:none}
 html.question-screen[data-theme] #app .question-meta{flex:none}
 html.question-screen[data-theme] #app .answers{flex:none;gap:12px}
 html.question-screen[data-theme] #app .quiz-action{position:static;flex:none;bottom:auto;padding:8px 20px 12px;display:flex;gap:10px;transform:none}
 html.question-screen[data-theme] #app .quiz-action .primary-button{flex:1;min-width:0}
 html.question-screen[data-theme] #app .bottom-nav{position:static;inset:auto;flex:none;width:100%;max-width:none;margin:0;transform:none}
 html.question-screen[data-theme] #app .home-page{flex:1;min-height:0;justify-content:flex-start;padding:12px 20px;overflow:auto;overscroll-behavior:contain;gap:16px}
 html.question-screen[data-theme] #app .home-exam{flex:none;margin:0}
 html.question-screen[data-theme] #app .home-mcq{flex:none;min-height:0;margin:auto 0;padding:0}
 html.question-screen[data-theme] #app .home-mcq-head h1{margin:16px 0}
 html.question-screen[data-theme] #app .question-compact .question-stage{gap:8px;justify-content:flex-start}
 html.question-screen[data-theme] #app .question-compact .answers,html.question-screen[data-theme] #app .question-compact .home-answers{gap:8px}
 html.question-screen[data-theme] #app .question-compact :where(.answer,.home-answer){min-height:48px;padding:10px 12px;line-height:1.3}
 html.question-screen[data-theme] #app .question-compact .home-mcq-head h1{margin:8px 0}
}
html[data-theme] #app .answer-feedback-panel{position:absolute;inset:12px 20px;z-index:2;background:var(--bg);display:flex;flex-direction:column;justify-content:center;border-radius:18px}
html[data-theme] #app .answer-feedback-panel[hidden]{display:none}
html[data-theme] #app .answer-feedback-panel .feedback{position:relative;margin:0;max-height:100%;overflow:auto;overscroll-behavior:contain;padding:20px;padding-top:58px;scroll-margin:0}
html[data-theme] #app .feedback-close{position:absolute;inset-inline-end:8px;top:8px;z-index:1;color:var(--secondary);background:var(--surface2)}
html[data-theme] #app .feedback-toggle{display:grid;place-items:center;flex:none;width:52px;height:52px;border:1px solid var(--line);border-radius:14px;background:var(--surface2);color:var(--success)}
html[data-theme] #app .feedback-toggle.bad{color:var(--error)}
@media(min-width:1024px){html[data-theme] #app .quiz-main{position:relative;min-height:540px}html[data-theme] #app .answer-feedback-panel{inset:12px 32px 24px}html[data-theme] #app .quiz-action{display:flex;gap:10px}html[data-theme] #app .quiz-action .primary-button{margin:0}}

/* Compact website app promotion; the question layout reserves its height. */
html[data-theme] .app-download-banner{display:flex;align-items:center;gap:10px;flex:none;width:calc(100% - 40px);max-width:640px;margin:6px auto 10px;padding:8px 10px;border:1px solid var(--line);border-radius:14px;background:var(--surface2);color:var(--ink)}
.app-download-banner>img{flex:none;border-radius:9px}
.app-download-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px;text-align:start}
.app-download-copy strong{font-size:13px;line-height:1.35;overflow-wrap:anywhere}
.app-download-copy small{font-size:11px;line-height:1.4;color:var(--secondary)}
html[data-theme] .app-download-cta{display:flex;align-items:center;justify-content:center;flex:none;min-height:44px;max-width:42%;padding:8px 10px;border-radius:10px;background:var(--primary);color:#fff;font-size:12px;font-weight:800;text-align:center;text-decoration:none;overflow-wrap:anywhere}
html[data-theme] .app-download-dismiss{display:grid;place-items:center;flex:none;width:44px;min-height:44px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--secondary)}
html[data-theme] .app-download-dismiss:hover{background:var(--surface)}
html[data-theme] .profile-menu-actions .app-download-menu-link{display:flex;align-items:center;gap:10px;min-height:48px;padding:10px;border-radius:12px;color:var(--ink);font-size:14px;font-weight:700;text-decoration:none}
.app-download-menu-link span{flex:1}
.app-download-menu-link svg{flex:none}
html[data-theme] .profile-menu-actions .app-download-menu-link:hover{background:var(--surface2)}
@media(min-width:1024px){html[data-theme] .app-download-banner{position:relative;left:116px}html[data-theme][dir=rtl] .app-download-banner{left:-116px}}
@media(max-width:400px){html[data-theme] .app-download-banner{width:calc(100% - 28px);gap:6px;padding:6px}.app-download-copy small{display:none}.app-download-banner>img{width:28px;height:28px}.app-download-cta{font-size:11px}}
