:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#142a43;background:#f6f7f9;font-synthesis:none;--navy:#142a43;--muted:#66788c;--line:#e4e9ef;--green:#167b62;--orange:#f5bb68;--paper:#fff}*{box-sizing:border-box}body{margin:0;padding:env(safe-area-inset-top) 0 calc(92px + env(safe-area-inset-bottom));line-height:1.55}button,input,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #e6a543;outline-offset:3px}button{border:0}.topbar{max-width:760px;margin:auto;padding:21px 22px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;font-size:19px;font-weight:800;line-height:1.1}.brand small{display:block;color:var(--muted);font-size:11px;font-weight:500;letter-spacing:.04em;margin-top:5px}.brand-mark{background:var(--navy);color:var(--orange);border-radius:13px;width:43px;height:43px;display:grid;place-items:center;font-size:20px;letter-spacing:-2px}.edition{color:var(--muted);font-size:12px;border:1px solid var(--line);border-radius:20px;padding:5px 12px}main{max-width:716px;margin:auto;padding:7px 20px 30px}h1,h2,h3,p{margin:0}h1{font-size:30px;line-height:1.2;letter-spacing:-.7px}h2{font-size:20px;line-height:1.3;letter-spacing:-.3px}h3{font-size:16px;line-height:1.4}.muted{color:var(--muted)}.small{font-size:12px}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.13em;font-weight:700;color:var(--green);margin-bottom:10px}.hero{background:var(--navy);color:white;border-radius:24px;padding:29px 26px;position:relative;overflow:hidden}.hero:after{content:"";width:170px;height:170px;border:28px solid #ffffff08;border-radius:50%;position:absolute;right:-60px;top:-35px;pointer-events:none}.hero .eyebrow{color:var(--orange)}.hero p{color:#bdcada;margin:13px 0 23px;font-size:14px;max-width:440px}.hero strong{color:#fff}.hero-stats{display:flex;gap:30px}.hero-stats b{display:block;font-size:26px;line-height:1.2}.hero-stats span{font-size:11px;color:#bdcada}.section{margin-top:27px}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px;gap:10px}.card{border:1px solid var(--line);border-radius:20px;background:white;padding:21px}.card+.card{margin-top:12px}.card p{margin-top:8px;font-size:14px}.card-top{display:flex;gap:14px;align-items:flex-start}.card-icon{width:44px;height:44px;flex-shrink:0;display:grid;place-items:center;border-radius:13px;font-size:21px;color:var(--green);background:#eaf5f0}.card-icon.amber{background:#fff3df;color:#8f5e1c}.card-icon.blue{background:#eaf0f8;color:#496584}.card-text{flex:1}.card .btn{margin-top:17px}.btn{display:flex;align-items:center;justify-content:center;gap:8px;padding:13px 17px;border-radius:12px;font-weight:650;font-size:14px;min-height:48px;text-decoration:none;background:var(--navy);color:#fff;width:100%;transition:background .15s,transform .15s}.btn:hover:not(:disabled){background:#264966}.btn:active:not(:disabled){transform:translateY(1px)}.btn.secondary{background:#eef2f6;color:var(--navy)}.btn.secondary:hover{background:#e5eaf0}.btn.green{background:var(--green)}.btn.danger{background:#fff0ee;color:#ac443b}.btn.compact{width:auto;padding:9px 13px;min-height:38px;font-size:12px}.btn.text{background:transparent;color:var(--muted);width:auto;padding:5px 0;min-height:32px}.note{font-size:12px;color:var(--muted);padding:14px 4px;line-height:1.6}.note a{color:var(--green)}.bottom-nav{position:fixed;bottom:0;left:0;right:0;margin:auto;max-width:760px;display:flex;justify-content:space-evenly;gap:8px;background:#ffffffef;border-top:1px solid var(--line);backdrop-filter:blur(16px);padding:9px 16px calc(9px + env(safe-area-inset-bottom));z-index:5}.bottom-nav[hidden]{display:none}.bottom-nav button{flex:1;display:grid;justify-items:center;gap:1px;background:none;color:var(--muted);padding:4px 8px;border-radius:10px;font-size:11px;min-height:48px}.bottom-nav button.active{color:var(--green);background:#eff7f3}.nav-icon{font-size:20px;line-height:1.2}.back-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.subtitle{font-size:14px;color:var(--muted);margin:9px 0 24px}.pill{font-size:11px;border-radius:20px;padding:5px 10px;display:inline-flex;align-items:center;gap:5px;background:#edf5f1;color:var(--green);font-weight:650}.pill.neutral{background:#eef2f6;color:var(--muted)}.pill.red{background:#fff0ee;color:#ad483d}.topic-list{display:grid;gap:9px}.topic{background:white;border:1px solid var(--line);border-radius:14px;display:flex;align-items:center;gap:12px;padding:14px;cursor:pointer}.topic:has(input:checked){border-color:var(--green);background:#f0f8f4}.topic input{width:18px;height:18px;accent-color:var(--green);flex-shrink:0}.topic .number{font-size:12px;width:25px;height:25px;border-radius:7px;background:#eef2f6;display:grid;place-items:center;color:var(--muted);flex-shrink:0}.topic-text{flex:1;font-size:13px;font-weight:550;line-height:1.4}.topic-text small{display:block;font-size:11px;color:var(--muted);font-weight:400;margin-top:4px}.topic progress{width:54px;height:5px;accent-color:var(--green)}.segments{display:flex;background:#eaf0f4;padding:4px;border-radius:13px;gap:4px}.segments button{flex:1;min-height:42px;border-radius:10px;background:transparent;color:var(--muted);font-size:13px}.segments button.active{background:#fff;color:var(--navy);box-shadow:0 2px 6px #142a4310;font-weight:650}.sticky-action{position:sticky;bottom:78px;background:linear-gradient(transparent,#f6f7f9 18%);padding:22px 0 5px;margin-top:12px}.question-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:13px}.timer{font-variant-numeric:tabular-nums;font-weight:700;background:#fff3df;color:#85571b;border-radius:9px;padding:6px 12px;font-size:14px}.timer.urgent{background:#fff0ee;color:#b2473b}.question-progress{width:100%;height:5px;accent-color:var(--green);margin-bottom:17px}.topic-label{font-size:11px;color:var(--muted);margin:0 0 10px}.question-text{font-size:18px;line-height:1.55;font-weight:600;white-space:pre-line}.options{display:grid;gap:10px;margin-top:22px}.option{display:flex;align-items:flex-start;gap:12px;width:100%;text-align:left;border:1px solid var(--line);border-radius:14px;background:#fff;padding:15px;color:var(--navy);font-size:14px;line-height:1.5}.option:disabled{opacity:1}.option .option-number{width:25px;height:25px;flex-shrink:0;border:1px solid #d6dfe8;border-radius:8px;display:grid;place-items:center;font-size:12px;color:var(--muted)}.option.selected{border-color:var(--navy);background:#edf2f7}.option.selected .option-number{background:var(--navy);color:white;border-color:var(--navy)}.option.correct{border-color:#69b59d;background:#edf8f2}.option.wrong{border-color:#df9e98;background:#fff3f1}.option.correct .option-number{background:var(--green);border-color:var(--green);color:white}.feedback{background:#edf7f1;border-radius:15px;padding:17px;margin-top:20px;font-size:13px;line-height:1.6}.feedback.wrong{background:#fff3ee}.feedback p{margin-top:8px}.feedback details{margin-top:12px;color:var(--muted);font-size:12px}.feedback a{display:block;margin-top:8px;overflow-wrap:anywhere}.question-actions{display:flex;gap:10px;margin-top:22px}.question-actions .btn{flex:1}.question-grid{display:flex;flex-wrap:wrap;gap:7px;margin-top:22px}.q-dot{width:34px;height:34px;display:grid;place-items:center;font-size:12px;border-radius:9px;color:var(--muted);background:#eaf0f4}.q-dot.answered{background:#dcefe5;color:var(--green)}.q-dot.active{box-shadow:inset 0 0 0 2px var(--navy);color:var(--navy)}.finish-row{display:flex;justify-content:center;margin-top:19px}.result-hero{text-align:center;background:var(--navy);color:white;border-radius:23px;padding:29px 22px}.score{font-size:62px;font-weight:750;line-height:1.15;letter-spacing:-2px;margin:17px 0}.score small{color:#9aaec3;font-size:25px;letter-spacing:0;font-weight:500}.result-hero p{color:#bdcada;font-size:13px}.result-hero .pill{background:#ffffff1a;color:white}.result-hero .btn{background:var(--orange);color:var(--navy);margin-top:23px}.review{border:1px solid var(--line);background:white;border-radius:14px;margin:10px 0;overflow:hidden}.review summary{display:flex;align-items:center;gap:10px;cursor:pointer;padding:15px;font-size:13px;list-style:none}.review summary:after{content:'＋';margin-left:auto;color:var(--muted)}.review[open] summary:after{content:'−'}.review .review-body{padding:0 15px 18px}.review .question-text{font-size:14px;font-weight:500}.review .options{margin-top:14px}.review .option{padding:10px;font-size:12px}.status-dot{height:8px;width:8px;background:var(--green);border-radius:50%;flex-shrink:0}.status-dot.red{background:#ce7165}.history-item{padding:18px;display:flex;align-items:center;gap:13px;width:100%;text-align:left}.history-score{font-size:19px;font-weight:700}.history-info{flex:1}.history-info strong{display:block;font-size:14px}.history-info span{font-size:11px;color:var(--muted)}.empty{text-align:center;padding:35px 22px}.empty .empty-icon{font-size:35px;margin-bottom:12px}.empty p{color:var(--muted);font-size:14px;margin:12px 0 22px}.loading{padding:65px 20px;text-align:center;color:var(--muted);font-size:14px}.spinner{display:inline-block;width:25px;height:25px;border:3px solid var(--line);border-top-color:var(--green);border-radius:50%;animation:spin 1s linear infinite;margin-bottom:12px}@keyframes spin{to{transform:rotate(360deg)}}#toast{position:fixed;bottom:calc(87px + env(safe-area-inset-bottom));left:20px;right:20px;max-width:676px;margin:auto;background:#24394f;color:white;box-shadow:0 8px 30px #142a4330;padding:14px 18px;border-radius:14px;z-index:20;font-size:13px}#toast[hidden]{display:none}.modal-backdrop{position:fixed;inset:0;background:#142a4370;z-index:30;display:grid;place-items:center;padding:24px}.modal{width:100%;max-width:390px;background:white;border-radius:22px;padding:25px;box-shadow:0 20px 90px #142a4330}.modal p{font-size:14px;color:var(--muted);margin:12px 0 22px}.modal .btn+.btn{margin-top:9px}.admin-name{overflow-wrap:anywhere;font-weight:650;font-size:14px}.admin-meta{font-size:11px;color:var(--muted);margin:5px 0 12px}.admin-actions{display:flex;gap:8px;margin-top:13px}.admin-actions .btn{margin:0;flex:1}.coverage{display:flex;gap:9px;align-items:flex-start;background:#edf2f7;border-radius:12px;padding:13px 15px;color:#586e83;font-size:12px;margin-top:17px}.welcome-line{font-size:13px;color:var(--muted);margin:8px 0 17px}.home-progress{margin-top:17px;display:flex;align-items:center;gap:12px;font-size:12px;color:var(--muted)}.home-progress progress{flex:1;accent-color:var(--green);height:7px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}body.busy .btn,body.busy .option{pointer-events:none}body.busy .btn{opacity:.6}@media(min-width:620px){main{padding-top:16px}.hero{padding:34px}.home-cards{display:grid;grid-template-columns:1fr 1fr;gap:14px}.home-cards .card{margin:0;display:flex;flex-direction:column}.home-cards .card .btn{margin-top:auto}.home-cards .card p{margin-bottom:20px}h1{font-size:35px}.question-text{font-size:20px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
