:root{color-scheme:dark;--bg:#101211;--panel:#181b19;--panel2:#202421;--line:#303631;--text:#f0f2ed;--muted:#a2aaa2;--accent:#d5f36a;--accent-ink:#18200a;--radius:16px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);min-height:100vh}.topbar{height:64px;border-bottom:1px solid #ffffff10;display:flex;align-items:center;justify-content:space-between;padding:0 max(20px,calc((100vw - 1160px)/2));position:sticky;top:0;background:#101211ed;backdrop-filter:blur(14px);z-index:5}.brand{display:flex;align-items:center;gap:10px;color:var(--text);font-size:12px;font-weight:850;letter-spacing:.14em;text-decoration:none}.brand-mark{width:30px;height:30px;border-radius:9px;background:var(--accent);color:var(--accent-ink);display:grid;place-items:center;font-size:17px;letter-spacing:0}.muted{color:var(--accent);padding:0 2px}.shell{max-width:1160px;margin:0 auto;padding:0 22px}.view{padding:34px 0 48px}.hidden{display:none!important}.catalogue-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.catalogue-head h1,.viewer-title{font-size:clamp(28px,4vw,42px);line-height:1.05;letter-spacing:-.055em;margin:0;font-weight:760}.history-summary{display:flex;gap:17px;color:var(--muted);font-size:12px}.history-summary strong{color:var(--text);font-size:16px;margin-right:4px}.search-row{display:flex;gap:10px;margin-bottom:14px}.search-box{display:flex;align-items:center;gap:10px;flex:1;min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:11px;padding:0 13px}.search-box svg{width:18px;height:18px;fill:none;stroke:var(--muted);stroke-width:1.8;flex:0 0 auto}.search-box input{background:transparent;border:0;outline:0;color:var(--text);font:inherit;font-size:14px;width:100%;padding:14px 0}.search-box:focus-within{border-color:var(--accent)}.filters{display:grid;grid-template-columns:1.4fr .6fr 1fr .8fr;gap:10px;margin-bottom:24px}.filters label{display:grid;gap:6px;color:var(--muted);font-size:11px}.filters select,.timer-edit input{width:100%;min-width:0;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:10px;padding:12px;font:inherit;font-size:13px;outline:none}.filters select:focus,.timer-edit input:focus{border-color:var(--accent)}.list-heading{font-size:12px;color:var(--muted);margin:0 0 10px}.exam-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.exam-card{background:var(--panel);border:1px solid var(--line);border-radius:13px;padding:16px;display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0}.exam-card-info{min-width:0}.exam-card h2{font-size:15px;line-height:1.35;letter-spacing:-.02em;margin:0 0 7px;font-weight:650}.exam-meta{font-size:12px;color:var(--muted);margin:0;line-height:1.5}.exam-card-actions{display:flex;flex-direction:column;align-items:flex-end;gap:10px;flex:0 0 auto}.status-pill{font-size:10px;padding:4px 7px;border-radius:100px;background:#292e2a;color:var(--muted)}.status-pill.seen{color:#e5d69b;background:#393322}.status-pill.completed{color:var(--accent);background:#29351d}.button{border:0;border-radius:10px;padding:11px 15px;font:inherit;font-size:12px;font-weight:750;cursor:pointer;white-space:nowrap;transition:transform .12s,background .12s}.button:active{transform:scale(.98)}.button:disabled{opacity:.4;cursor:not-allowed}.button-primary{background:var(--accent);color:var(--accent-ink)}.button-primary:hover{background:#e0fb86}.button-secondary{background:#2b302b;color:var(--text);border:1px solid #3c433c}.button-quiet{background:transparent;color:var(--text);border:1px solid var(--line)}.button-small{padding:9px 11px;font-size:11px}.empty-state{border:1px dashed #424a40;border-radius:14px;padding:38px 20px;text-align:center;background:#151815}.empty-symbol{font-size:11px;font-weight:900;letter-spacing:.1em;display:grid;place-items:center;width:40px;height:44px;border-radius:9px;margin:0 auto 15px;background:#293024;color:var(--accent)}.empty-state h2{font-size:17px;margin:0 0 8px}.empty-state p{max-width:450px;margin:0 auto 14px;color:var(--muted);font-size:13px;line-height:1.5}.text-link{font-size:12px;color:var(--accent);font-weight:750;text-decoration:none}.text-link:hover{text-decoration:underline}.back-button{background:none;border:0;padding:6px 0;color:var(--muted);font:inherit;font-size:12px;cursor:pointer}.back-button:hover{color:var(--text)}.viewer-topline{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.viewer-meta{font-size:12px;color:var(--muted)}.viewer-title{font-size:clamp(24px,3vw,34px);margin-bottom:20px}.practice-toolbar{display:flex;gap:18px;align-items:stretch;margin-bottom:16px}.timer-box{width:350px;max-width:100%;flex:0 0 350px;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:18px}.timer-label{font-size:10px;font-weight:800;letter-spacing:.13em;color:var(--muted)}.timer-display{font-variant-numeric:tabular-nums;font-size:52px;line-height:1.2;font-weight:650;letter-spacing:-.065em;margin:5px 0 12px}.timer-edit{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.timer-edit label{font-size:11px;color:var(--muted)}.timer-edit input{width:76px;padding:8px 9px}.timer-controls{display:flex;gap:8px;margin-top:13px}.practice-actions{display:flex;align-items:center;justify-content:flex-end;gap:16px;flex-wrap:wrap;flex:1;align-content:center}.timer-status{font-size:12px;color:var(--muted);margin-right:auto}.pdf-frame-wrap{height:calc(100vh - 315px);min-height:480px;border:1px solid var(--line);border-radius:13px;overflow:hidden;background:#282b29}.pdf-frame-wrap iframe{width:100%;height:100%;border:0;background:#fff}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:760px){.topbar{padding:0 16px}.shell{padding:0 16px}.view{padding-top:24px}.catalogue-head{align-items:flex-start;flex-direction:column;gap:10px}.filters{grid-template-columns:1fr 1fr}.exam-list{grid-template-columns:1fr}.exam-card{padding:14px}.practice-toolbar{flex-direction:column}.timer-box{width:100%;flex-basis:auto}.practice-actions{justify-content:flex-start}.pdf-frame-wrap{height:70vh;min-height:420px}.viewer-topline{align-items:flex-start}.history-summary{gap:12px}}@media(max-width:420px){.search-row{align-items:stretch}.search-row .button{white-space:normal;padding:8px}.exam-card{align-items:flex-start}.exam-card-actions{gap:8px}.exam-card h2{font-size:14px}.timer-display{font-size:46px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* PDF.js reader: same in-page experience on desktop and mobile. */
.pdf-viewer{border:1px solid var(--line);border-radius:13px;overflow:hidden;background:#202320}.pdf-viewer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 12px;border-bottom:1px solid var(--line);background:var(--panel)}.pdf-page-controls,.pdf-zoom-controls{display:flex;align-items:center;gap:8px}.page-indicator,.zoom-indicator{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;min-width:max-content}.pdf-status{padding:14px 16px;text-align:center;color:var(--muted);font-size:13px;background:#202320}.pdf-status.hidden{display:none}.pdf-status.error{color:#ffd2c9;background:#382521}.pdf-canvas-wrap{height:calc(100vh - 390px);min-height:440px;overflow:auto;display:flex;align-items:flex-start;justify-content:flex-start;padding:16px;background:#343735;overscroll-behavior:contain}.pdf-canvas-wrap canvas{display:block;flex:0 0 auto;margin-inline:auto;max-width:none;background:white;box-shadow:0 2px 14px #0005}@media(max-width:760px){.pdf-viewer{border-radius:10px}.pdf-viewer-toolbar{gap:8px;padding:9px}.pdf-page-controls,.pdf-zoom-controls{gap:6px}.pdf-canvas-wrap{height:72vh;min-height:380px;padding:10px}.pdf-viewer-toolbar .button{padding:9px 10px}.zoom-indicator{min-width:40px;text-align:center}}@media(max-width:420px){.pdf-viewer-toolbar{align-items:stretch}.pdf-page-controls,.pdf-zoom-controls{justify-content:space-between;width:100%}.pdf-canvas-wrap{height:68vh;min-height:340px}}
