@import url('/static/fonts.css');
:root{--ink:#172b27;--muted:#59665f;--paper:#f7f8f3;--white:#fff;--line:#dce2d7;--green:#dfedaa;--danger:#913f36;--radius:18px;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-size:16px;line-height:1.5}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #746000;outline-offset:3px}[hidden]{display:none!important}h1,h2,p{margin-top:0}h1{font-size:clamp(1.8rem,4vw,2.75rem);line-height:1.15;letter-spacing:-.055em;margin-bottom:18px}h2{font-size:1.15rem;letter-spacing:-.025em;margin-bottom:12px}p{margin-bottom:16px}.muted{color:var(--muted)}.small{font-size:.84rem}.eyebrow{font-size:.72rem;font-weight:750;letter-spacing:.16em;margin-bottom:12px}.lead{font-size:1.07rem;color:var(--muted);max-width:620px}.compact{margin-bottom:30px}.topbar{height:83px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px;background:var(--white);gap:20px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-weight:800;font-size:1.5rem;letter-spacing:-.05em}.brand-note{font-size:.78rem;color:var(--muted);font-weight:400;letter-spacing:0;margin-left:14px}.topbar #identity{font-size:.86rem;max-width:35%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.layout{display:grid;grid-template-columns:230px 1fr;min-height:calc(100vh - 83px)}.navigation{padding:40px 18px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:8px}.nav-button{border:0;background:transparent;color:var(--muted);padding:14px 15px;border-radius:12px;display:flex;align-items:center;gap:12px;text-align:left;font-size:.92rem;min-height:48px}.nav-button.active{background:var(--green);color:var(--ink);font-weight:700}.nav-button span{font-size:1.2rem}.nav-footer{margin-top:auto;padding:60px 15px 0;color:var(--muted);font-size:.85rem}.nav-footer p{margin-bottom:26px}.content{max-width:1120px;width:100%;padding:48px 54px 80px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:30px}.metric{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:20px 20px 18px;min-width:0}.metric-value{font-weight:750;font-size:1.9rem;letter-spacing:-.06em;display:block;margin:6px 0 0}.metric-label{font-size:.76rem;color:var(--muted)}.metric.accent{background:var(--green);border-color:var(--green)}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:30px 0 16px}.section-heading h2,.section-heading p{margin:0}.badge{font-size:.72rem;color:var(--muted);background:#edf0e9;padding:7px 11px;border-radius:30px;white-space:nowrap}.card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:28px;margin-bottom:22px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.wide{grid-column:1/-1}label{display:flex;flex-direction:column;gap:8px;font-size:.86rem;font-weight:650;min-width:0}input,select{width:100%;min-height:49px;border:1px solid #cdd5c8;border-radius:9px;background:#fff;color:var(--ink);padding:10px 12px;font-weight:400;font-size:16px;max-width:100%}select{text-overflow:ellipsis;padding-right:28px}.checkbox{flex-direction:row;align-items:center;font-weight:400}.checkbox input{width:20px;min-height:20px;accent-color:var(--ink)}.button{border:1px solid transparent;border-radius:9px;padding:12px 19px;min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:18px;text-decoration:none;font-weight:650;font-size:.9rem;text-align:center}.primary{background:var(--ink);color:#fff}.primary:hover{background:#2a4941}.secondary{background:#f3f5ee;color:var(--ink);border-color:var(--line)}.secondary:hover{background:#e8edde}.text-button{border:0;background:transparent;padding:10px 0;min-height:44px;color:var(--ink);font-size:.86rem;text-decoration:none;text-align:left}.danger{color:var(--danger)}.form-bottom{border-top:1px solid var(--line);padding-top:20px;display:flex;justify-content:space-between;align-items:center;gap:18px}.form-bottom p{margin:0;max-width:55%}.callout{display:flex;align-items:center;justify-content:space-between;gap:22px;background:#eef2e4;border:1px solid #d8e1c4;border-radius:var(--radius);padding:22px;margin-bottom:26px}.callout p{margin:5px 0 0;font-size:.85rem}.login-view{max-width:1030px;margin:0 auto;padding:90px 36px 60px}.login-view h1{font-size:clamp(2.7rem,6vw,4.6rem);margin:18px 0 28px}.login-view .lead{font-size:1.15rem;max-width:550px;margin-bottom:30px}.login-view>a+p{font-size:.8rem;margin:16px 0 60px;max-width:420px}.login-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:36px;border-top:1px solid var(--line);padding-top:32px;margin-bottom:40px}.login-grid p{font-size:.9rem;color:var(--muted)}.feature-icon{font-size:.75rem;display:block;margin-bottom:14px;color:var(--muted)}.history-card{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px}.history-card p{margin:4px 0 0;font-size:.83rem;color:var(--muted)}.history-card strong{font-size:.98rem}.history-score{text-align:right;min-width:120px}.history-score span{display:block;font-size:1.3rem;font-weight:700;letter-spacing:-.03em}.subject-row{display:grid;grid-template-columns:1fr 90px;gap:12px;border-bottom:1px solid var(--line);padding:15px 0}.subject-row:first-child{padding-top:0}.subject-row:last-child{border:0;padding-bottom:0}.subject-row p{margin:2px 0 0;font-size:.8rem;color:var(--muted)}.subject-row strong:last-child{text-align:right}.settings-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:28px 0}.inline-form{display:grid;grid-template-columns:1fr;gap:15px;padding:20px 0;border-block:1px solid var(--line);margin:20px 0}.inline-form button{justify-self:start}.member-row{display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid var(--line);padding:10px 0}.member-row p{margin:0;font-size:.84rem}.room-option{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-bottom:12px;padding:18px;text-align:left;background:#fff;border:1px solid var(--line);border-radius:12px}.room-option.active{border:2px solid var(--ink)}.room-option span{font-size:.8rem;color:var(--muted)}#create-room{margin-bottom:24px}#mobile-logout{display:none}.quiz-top{display:flex;justify-content:space-between;align-items:center}.question-text{font-size:clamp(1.15rem,2.5vw,1.55rem);letter-spacing:-.025em;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}.question-card{margin-top:22px}progress{width:100%;height:6px;border:0;border-radius:9px;accent-color:var(--ink);background:#e5eadd}progress::-webkit-progress-bar{background:#e5eadd;border-radius:9px}progress::-webkit-progress-value{background:var(--ink);border-radius:9px}.options{display:flex;flex-direction:column;gap:12px;margin:25px 0}.option{display:flex;gap:16px;align-items:flex-start;background:#fff;border:1px solid #ccd5c8;border-radius:11px;padding:17px;text-align:left;color:var(--ink);width:100%;min-height:54px;line-height:1.45;overflow-wrap:anywhere}.option-letter{font-size:.8rem;font-weight:750;display:flex;justify-content:center;align-items:center;flex:0 0 28px;min-height:28px;border:1px solid var(--line);border-radius:6px;background:#f5f7f1}.option.selected{border:2px solid var(--ink);padding:16px;background:#f4f6ed}.option.correct{border:2px solid #405d28;padding:16px;background:#edf4dd}.option.wrong{border:2px solid #913f36;padding:16px;background:#faf0ee}.option small{display:block;font-weight:700;margin-bottom:4px}.answer-actions{display:flex;align-items:center;gap:24px}.explanation{border-top:1px solid var(--line);padding-top:20px;margin-top:20px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.94rem}.explanation strong{display:block;margin-bottom:10px}.mark-actions{display:flex;flex-wrap:wrap;gap:24px;padding-top:16px}.quiz-controls{display:flex;justify-content:space-between;gap:14px}.question-jump{display:flex;gap:8px;overflow-x:auto;padding:20px 2px;max-width:100%}.jump-button{flex:0 0 40px;min-height:40px;background:#fff;border:1px solid var(--line);border-radius:8px;color:var(--ink);font-size:.8rem}.jump-button.answered{background:var(--green)}.jump-button.current{border:2px solid var(--ink)}.finish-button{margin:10px 0 0}.notification{position:fixed;bottom:24px;right:24px;max-width:min(440px,calc(100% - 40px));background:var(--ink);color:#fff;border-radius:12px;padding:16px 22px;box-shadow:0 6px 25px #0002;font-size:.88rem;z-index:20;white-space:pre-wrap}.notification.error{background:#692c25}.loading{padding:80px;text-align:center;color:var(--muted)}.empty{padding:32px 0;color:var(--muted)}.result{display:block}.result h2{font-size:1.5rem;margin-bottom:6px}.result p{font-size:.9rem}#room-expiry{margin-top:24px}
@media(max-width:1100px){.layout{grid-template-columns:195px 1fr}.content{padding:38px 30px 70px}.metrics{gap:10px}.metric{padding:16px}.brand-note{display:none}}
@media(max-width:760px){.topbar{height:70px;padding:0 20px}.layout{display:block;min-height:calc(100vh - 70px)}.navigation{position:fixed;bottom:0;left:0;width:100%;background:#fff;z-index:10;padding:8px 8px calc(8px + env(safe-area-inset-bottom));border-top:1px solid var(--line);border-right:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.nav-button{flex-direction:column;gap:3px;justify-content:center;text-align:center;padding:8px 2px;font-size:.65rem;min-height:57px;border-radius:9px}.nav-button span{font-size:1.1rem}.nav-footer{display:none}.content{padding:30px 20px calc(120px + env(safe-area-inset-bottom));width:100%}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.metric-value{font-size:1.75rem}.metric{padding:18px}.form-grid{gap:18px}.card{padding:21px}.form-bottom{flex-direction:column;align-items:stretch}.form-bottom p{max-width:100%}.section-heading{align-items:flex-start;gap:12px}.section-heading .badge{font-size:.62rem;padding:6px 8px}.callout{flex-direction:column;align-items:stretch;gap:16px}.login-view{padding:60px 24px 40px}.login-grid{grid-template-columns:1fr;gap:18px}.login-view>a+p{margin-bottom:42px}.login-grid article{display:grid;grid-template-columns:34px 1fr;column-gap:14px}.login-grid article .feature-icon{grid-row:1/3;margin-top:4px}.login-grid article h2{margin-bottom:8px}.login-grid article p{grid-column:2}.history-card{padding:18px;gap:12px}.history-score{min-width:90px}.history-score span{font-size:1.1rem}.history-score .button{padding:9px 10px;min-height:42px;font-size:.8rem}.settings-bar{flex-direction:column;align-items:flex-start}.notification{bottom:calc(100px + env(safe-area-inset-bottom));left:20px;right:20px;max-width:none}.options{gap:10px}.option{padding:14px;gap:12px;font-size:.94rem}.option.selected,.option.correct,.option.wrong{padding:13px}.question-text{font-size:1.16rem}.question-card{padding:19px}#mobile-logout{display:block}.quiz-controls .button{padding:12px;font-size:.83rem}.mark-actions{gap:18px}.question-jump{scrollbar-width:thin}.inline-form button{width:100%;justify-self:stretch}#prepare-shared,#start-shared{width:100%;margin-top:14px}.topbar #identity{font-size:.78rem}}
@media(max-width:380px){.content{padding-inline:15px}.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}.badge{white-space:normal}.question-card{padding:16px}.metrics{gap:9px}.metric{padding:15px}.nav-button{font-size:.61rem}.brand{font-size:1.3rem}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.katex-display{overflow-x:auto;overflow-y:hidden;max-width:100%;padding:6px 0}.katex{white-space:normal}.explanation .katex{font-size:1.05em}
.bank-title{margin:0;font-weight:750;color:var(--ink);font-size:1.04rem}.subtabs{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 26px}.subtabs .active,.mark-actions .active{background:var(--green);color:var(--ink)}.coverage-row{padding:12px 0;border-bottom:1px solid var(--line)}.coverage-row:last-child{border-bottom:0}.coverage-label{display:flex;justify-content:space-between;align-items:start;gap:16px;font-size:.84rem;margin-bottom:9px}.coverage-label span{flex-shrink:0;font-size:.76rem;color:var(--muted)}.coverage-row progress{height:14px}.trend-row{display:grid;grid-template-columns:125px minmax(0,1fr) 64px;gap:14px;align-items:center;padding:12px 0;font-size:.8rem}.trend-row strong{text-align:right}.history-container{border:1px solid var(--line);border-radius:var(--radius);background:white;margin-bottom:24px;overflow:hidden}.history-table{width:100%;border-collapse:collapse;font-size:.78rem;table-layout:fixed}.history-table th{background:#edf0e9;text-align:left;font-weight:650;padding:13px 8px}.history-table th:first-child{width:23%}.history-table th:nth-child(2){width:16%}.history-table th:last-child{width:20%}.history-table .history-card{display:table-row;line-height:1.5}.history-table td{padding:14px 8px;border-top:1px solid var(--line);overflow-wrap:anywhere;vertical-align:top}.history-actions .text-button{display:block;font-size:.78rem;padding:8px 0;min-height:40px}.download-bar{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.bank-question{padding:18px}.bank-question summary{cursor:pointer;min-height:44px;font-weight:650;overflow-wrap:anywhere}.bank-question p{margin:14px 0 0;overflow-wrap:anywhere}.bank-question .correct-text{color:#405d28;font-weight:700}.visually-hidden{position:absolute;clip:rect(0,0,0,0);clip-path:inset(50%);height:1px;width:1px;overflow:hidden;white-space:nowrap}#print-quiz{margin:18px 14px 0 0}
@media(max-width:1100px){.history-container{border:0;background:transparent;overflow:visible}.history-table,.history-table tbody{display:block;width:100%}.history-table thead{display:none}.history-table .history-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));background:white;border:1px solid var(--line);border-radius:var(--radius);padding:16px;margin-bottom:18px;gap:12px}.history-table td{display:block;padding:0;border:0;font-size:.85rem}.history-table td::before{content:attr(data-label);display:block;font-size:.68rem;color:var(--muted);margin-bottom:3px}.history-table td:first-child{grid-column:1/-1;font-weight:700}.history-table .history-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:18px;align-items:center;border-top:1px solid var(--line);padding-top:8px}.history-actions::before{display:none!important}.history-actions .text-button{min-height:44px;font-size:.82rem}}
@media(max-width:760px){.navigation{grid-template-columns:repeat(5,minmax(0,1fr))}.nav-button{font-size:.6rem}.coverage-label{flex-direction:column;gap:3px}.coverage-label span{font-size:.75rem}.coverage-row progress{height:12px}.trend-row{grid-template-columns:100px minmax(0,1fr) 47px;gap:9px;font-size:.7rem}.download-bar{flex-direction:column}.subtabs .button{font-size:.8rem;padding-inline:12px}.bank-question summary{font-size:.92rem}.bank-question{padding:16px}.mark-actions .text-button{padding:8px 10px;border-radius:8px}#print-quiz{width:100%;margin-right:0}.history-actions .text-button{font-size:.78rem}}
