:root{--ink:#162e35;--muted:#6e8187;--teal:#14655e;--line:#dce5e4;--bg:#f4f7f6;--green:#18835c;--red:#b84e4d;--shadow:0 5px 24px #153d3510;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}a{color:var(--teal);text-decoration:none}a:hover{text-decoration:underline}button,input,select{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;border:1px solid transparent;border-radius:9px;padding:11px 17px;font-size:14px;font-weight:600;cursor:pointer;transition:background .12s}button:hover,.button:hover{text-decoration:none;filter:brightness(.96)}button:disabled{opacity:.45;cursor:not-allowed}.primary{background:var(--teal);color:white}.secondary{background:white;color:var(--ink);border-color:var(--line)}.wide{width:100%;justify-content:space-between}.link-button{background:none;border:0;padding:0;color:var(--teal);font-weight:500}.danger{color:var(--red)}input,select{border:1px solid #cfdcda;background:#fff;border-radius:8px;padding:11px 12px;color:var(--ink);min-width:0;max-width:100%}input:focus,button:focus-visible,a:focus-visible,select:focus{outline:3px solid #7ab5a5;outline-offset:3px}input[type=checkbox]{accent-color:var(--teal);width:17px;height:17px;flex-shrink:0}label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600}.check{flex-direction:row;align-items:center;font-weight:500}h1,h2,h3,p{margin-top:0}h1{font-size:36px;letter-spacing:-1.2px;line-height:1.2;margin-bottom:12px;font-weight:650}h2{font-size:20px;letter-spacing:-.4px;line-height:1.35}p{line-height:1.6}small,.small{font-size:12px;line-height:1.5}.muted{color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--teal);font-weight:750;margin-bottom:14px}.mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.dot{padding:0 8px;color:#a1b2af}.topbar{height:78px;background:white;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 4.5vw;gap:24px}.brand{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:700;letter-spacing:-.6px;color:var(--ink);white-space:nowrap}.brand-icon{display:flex;width:34px;height:34px;align-items:center;justify-content:center;background:var(--teal);color:white;border-radius:9px;font:27px Georgia,serif}.brand-sub{font-size:9px;letter-spacing:2px;color:var(--muted);padding-left:10px;border-left:1px solid var(--line)}nav{display:flex;align-items:center;gap:27px;font-size:13px}nav a{color:var(--muted)}nav form{margin-left:12px}.container{max-width:1320px;margin:0 auto;padding:45px 40px 70px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:30px}.page-heading p:last-child{margin-bottom:0}.card{background:white;border:1px solid var(--line);border-radius:14px;padding:27px;box-shadow:var(--shadow);margin-bottom:20px}.notice{background:#e6f3ee;border:1px solid #bcded2;border-radius:10px;padding:18px 22px;margin-bottom:24px;font-size:14px}.notice p:last-child{margin-bottom:0}.error{background:#fdf0ed;color:#a03835;border-radius:8px;padding:12px;font-size:13px}.row{display:flex;align-items:center;gap:18px}.between{justify-content:space-between}.stack{display:flex;flex-direction:column;gap:18px}.stats{display:flex;gap:0;border:1px solid var(--line);background:white;border-radius:12px;padding:24px 0;margin-bottom:36px}.stats>div{flex:1;padding:0 30px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:12px;font-size:12px}.stats>div:last-child{border:0}.stats strong{font-size:30px;letter-spacing:-1px}.stats strong small{font-size:16px;font-weight:400}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.section-heading h2{margin:0}.section-heading input{width:340px;font-size:13px}.test-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.test-card{margin:0;padding:23px;display:flex;flex-direction:column}.test-card h2{margin:24px 0 10px;min-height:54px}.badge{display:inline-block;white-space:nowrap;font-size:11px;padding:5px 10px;border-radius:20px;background:#edf2f2;color:#687e83;font-weight:600}.badge.active{background:#e2f2e9;color:#22704e}.badge.active:before{content:'●';font-size:8px;margin-right:6px}.badge.draft{background:#f6f0df;color:#927030}.badge.inactive{background:#eef0f3;color:#718089}.test-meta{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:18px 0;font-size:12px;color:var(--muted);margin-top:auto}.actions{display:flex;gap:10px}.actions>*{flex:1}.actions form button{width:100%}.card-footer{border-top:1px solid var(--line);margin-top:20px;padding-top:15px;font-size:12px;gap:20px}.card-footer button{font-size:12px}.empty{text-align:center;padding:45px;color:var(--muted)}.test-grid>.empty{grid-column:1/-1}.table-wrap{overflow-x:auto;padding:0}table{width:100%;border-collapse:collapse;font-size:13px}th{text-align:left;color:var(--muted);font-size:10px;letter-spacing:.7px;text-transform:uppercase;background:#f9fbfa;font-weight:600}th,td{padding:18px 16px;border-bottom:1px solid var(--line);vertical-align:middle}tr:last-child td{border-bottom:0}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:24px}.inline-form{display:flex;gap:22px;align-items:end}.inline-form label{flex:1}.issued-code{font-size:23px;letter-spacing:2px;padding-left:18px}.path{overflow-wrap:anywhere;background:var(--bg);padding:12px;border-radius:7px}.preview-card summary{display:flex;align-items:center;gap:18px;cursor:pointer}.preview-card[open]>summary{margin-bottom:24px}.preview-options{background:var(--bg);padding:18px;border-radius:8px;margin:18px 0}.preview-options>div{padding:8px}.preview-option{padding:10px 0}.pagination{justify-content:center;margin:25px}.builder-layout{display:grid;grid-template-columns:300px 1fr;gap:30px;align-items:start}.settings{position:sticky;top:20px;padding:24px}.settings p{margin-bottom:0}.bank-card{padding:20px}.bank-check{font-size:11px;color:var(--muted);margin-bottom:20px;word-break:break-word}.bank-stem{max-height:260px;overflow:auto;font-size:15px!important}.bank-card summary{font-size:12px;color:var(--teal);cursor:pointer;margin-top:18px}.question-content{font-family:Georgia,"Times New Roman",serif;font-size:20px;line-height:1.6;overflow-wrap:anywhere}.question-content p{line-height:1.5;margin-bottom:14px}.question-content img,.option-content img{max-width:100%;max-height:280px;object-fit:contain}.question-content figure{margin:15px auto;text-align:center}.question-content table{width:auto;max-width:100%;margin:16px auto;font-family:inherit;text-align:center}.question-content td,.question-content th{padding:8px 15px;border:1px solid var(--line);font-size:17px;text-transform:none;letter-spacing:0;color:inherit}.question-content td p{margin:0}.question-content .katex{font-size:1em}.math-error{background:#fff3ce}.login-layout{max-width:1040px;margin:25px auto;display:grid;grid-template-columns:1.05fr 1fr;gap:80px;align-items:center}.login-intro h1{font-size:48px;line-height:1.18;font-weight:500;letter-spacing:-1.7px}.login-intro>p:not(.eyebrow){color:var(--muted)}.login-card{padding:36px}.login-card h2{font-size:28px}.login-card .stack{margin-top:27px}.login-switch{border-top:1px solid var(--line);margin:25px 0 0;padding-top:22px;text-align:center;font-size:13px}.orbital{height:170px;width:240px;position:relative;margin:35px 0 25px;display:flex;align-items:center;justify-content:center}.orbital:before,.orbital:after{content:'';position:absolute;width:220px;height:100px;border:1px solid #9cbbb0;border-radius:50%;transform:rotate(25deg)}.orbital:after{transform:rotate(-45deg);width:220px}.orbital span{font:72px Georgia,serif;color:var(--teal);z-index:1}.student-welcome{margin:10px 0 36px}.attempt-link{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 0;border-bottom:1px solid var(--line)}.attempt-link p{margin:6px 0 0}.green-text{color:var(--green)}.red-text{color:var(--red)}
.exam-body{background:#f6f8f7}.exam-shell{max-width:1380px;margin:0 auto;padding:25px 42px}.exam-header{display:flex;justify-content:space-between;align-items:center;gap:22px;padding-bottom:18px}.exam-header h1{font-size:21px;letter-spacing:-.4px;margin-bottom:8px}.exam-header p{margin-bottom:0}.exam-header .eyebrow{margin-bottom:9px}.exam-timers{display:flex;align-items:center;gap:13px}.timer{padding:11px 20px;border-radius:10px;min-width:140px}.timer span{font-size:9px;font-weight:750;letter-spacing:1.3px;display:block;margin-bottom:5px}.timer strong{font-size:32px;line-height:1;font-weight:600;font-variant-numeric:tabular-nums}.timer.green{background:#e7f4ec;color:var(--green)}.timer.red{background:#f9eae7;color:var(--red)}.local-clock{display:flex;flex-direction:column;gap:8px;text-align:right;font-size:13px;color:var(--muted);min-width:95px}.local-clock small{font-size:10px}.exam-progress{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin:8px 0 13px}.progress-track{height:3px;background:#dae7e1;border-radius:3px;overflow:hidden}.progress-track>div{height:100%;background:var(--teal);width:0}.question-panel{margin:22px auto 0;max-width:1030px;background:white;border:1px solid var(--line);border-radius:14px;padding:28px 38px;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.question-kicker{font-size:9px;letter-spacing:1.8px;color:var(--muted);margin-bottom:20px}.answer-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:22px}.answer-option{display:flex;text-align:left;justify-content:flex-start;align-items:center;border:1px solid var(--line);background:white;padding:14px 18px;font-size:16px;font-weight:400;min-height:66px;color:var(--ink)}.answer-option:hover{background:#f2f8f4}.answer-option.selected{border-color:var(--teal);background:#edf7f2;box-shadow:0 0 0 1px var(--teal)}.option-letter{width:29px;height:29px;display:flex;align-items:center;justify-content:center;flex-shrink:0;border:1px solid var(--line);border-radius:7px;font-size:12px;font-weight:700}.selected .option-letter{background:var(--teal);color:white;border-color:var(--teal)}.option-content{font-family:Georgia,"Times New Roman",serif;line-height:1.45}.option-content p{margin:0}.question-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);margin-top:24px;padding-top:20px}.exam-gate{max-width:640px;text-align:center;margin:48px auto 0;padding:36px 45px}.exam-gate h2{font-size:30px;font-weight:600;letter-spacing:-.8px}.exam-gate>p:not(.eyebrow):not(.error){color:var(--muted);font-size:14px}.exam-gate .primary{min-width:200px;margin:6px 0 20px}.gate-symbol{width:48px;height:48px;border-radius:12px;background:#e7f2ec;color:var(--teal);display:grid;place-items:center;font-size:25px;margin:0 auto 22px}.challenge-phrase{font-family:ui-monospace,monospace;font-size:19px!important;letter-spacing:.8px;background:#edf4f1;color:var(--teal)!important;border-radius:8px;padding:16px;margin:20px 0}.exam-gate label{text-align:left}.exam-gate label input{font-size:17px}.exam-gate .muted.small{font-size:11px!important}.exam-gate #gate-note{margin:0}.exam-gate .error{text-align:left}summary{cursor:pointer}details.card>summary{font-size:13px}.katex-error{color:var(--red)}[hidden]{display:none!important}
@media(min-width:1400px){.exam-shell{padding-top:30px}.question-panel{margin-top:32px;padding:36px 46px}.question-content{font-size:22px}}
/* Keep ordinary graph questions within a MacBook's fullscreen height. */
.exam-header{position:sticky;top:0;z-index:10;background:var(--bg)}
.setup-card{max-width:560px;margin:20px auto}
@media(min-width:761px) and (max-height:950px){.exam-shell{padding-top:22px}.question-panel{margin-top:20px;padding:25px 34px}.question-content{font-size:20px}.question-kicker{margin-bottom:16px}.question-content p{margin-bottom:10px}.question-content figure{margin:10px auto}.question-content img{max-height:210px}.answer-options{margin-top:16px;gap:10px}.answer-option{min-height:58px;padding:11px 16px}.question-footer{margin-top:16px;padding-top:14px}}
@media(min-width:761px) and (max-height:780px){.exam-shell{padding-top:16px}.exam-header{padding-bottom:10px}.timer strong{font-size:28px}.question-panel{padding:20px 28px;margin-top:14px}.question-content{font-size:18px}.question-content img{max-height:175px}.question-kicker{margin-bottom:12px}.answer-option{min-height:53px}.question-content td,.question-content th{font-size:15px;padding:6px 10px}}
@media(max-width:1050px){.topbar{padding:0 24px}nav{gap:15px}.brand-sub{display:none}.container{padding:32px 24px}.test-grid{grid-template-columns:repeat(2,1fr)}.login-layout{gap:35px}.login-intro h1{font-size:40px}.exam-shell{padding:20px 25px}.exam-header{align-items:flex-start}.exam-timers{gap:8px}.timer{min-width:115px;padding:12px}.timer strong{font-size:29px}.local-clock{min-width:78px}.question-panel{padding:22px 28px}.question-content{font-size:19px}.question-content img{max-height:230px}}
@media(max-width:760px){.topbar{height:auto;min-height:70px;padding:17px 20px;flex-wrap:wrap}nav{flex-wrap:wrap;gap:18px;font-size:12px}.container{padding:30px 18px}.page-heading{align-items:flex-start;flex-direction:column}.page-heading h1{font-size:30px}.test-grid,.two-col,.login-layout,.builder-layout{grid-template-columns:1fr}.login-intro{display:none}.login-layout{margin:0}.login-card{padding:28px}.stats>div{padding:0 13px}.stats strong{font-size:24px}.inline-form{flex-direction:column;align-items:stretch}.settings{position:static}.section-heading{flex-wrap:wrap}.section-heading input{width:100%}.exam-header{flex-direction:column;gap:16px}.exam-timers{width:100%}.timer{flex:1;min-width:0}.exam-header h1{font-size:19px}.exam-shell{padding:16px}.question-panel{padding:20px}.answer-options{grid-template-columns:1fr}.question-content{font-size:18px}.exam-gate{margin-top:25px;padding:28px 23px}.preview-card summary{flex-wrap:wrap;gap:8px}.issued-code{display:block;padding-left:0;padding-top:10px}}
@media print{.exam-body #question-panel{display:none!important}.exam-body:after{content:'Exam content cannot be printed from this page.'}}

/* Teacher reports and class management */
.report-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin-bottom:24px;padding-bottom:8px}.report-tabs a{padding:11px 20px;border-radius:9px;font-weight:600}.report-tabs a.selected{background:var(--teal);color:white}.accuracy-cell{display:flex;align-items:center;gap:12px;white-space:nowrap}.accuracy-ring{position:relative;width:42px;height:42px;flex-shrink:0;border-radius:50%;background:conic-gradient(var(--green) 0 var(--accuracy),var(--red) var(--accuracy) 100%)}.accuracy-ring:after{content:'';position:absolute;inset:6px;background:white;border-radius:50%}.state-dot{display:inline-block;width:15px;height:15px;border-radius:50%;flex-shrink:0}.state-dot.correct{background:#278449}.state-dot.wrong{background:#c44948}.state-dot.unseen{background:#377ec2}.state-dot.unanswered{background:#c18b12}.state-legend{display:flex;gap:24px;flex-wrap:wrap;margin:0 0 20px;font-size:13px}.state-legend>span{display:flex;align-items:center;gap:8px}.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}.question-matrix{max-height:74vh;overflow:auto}.question-matrix table{min-width:100%}.question-matrix thead th{position:sticky;top:0;z-index:2;text-align:center;min-width:140px;max-width:190px;font-size:11px;line-height:1.5;text-transform:none}.question-matrix th:first-child{position:sticky;left:0;min-width:320px;max-width:390px;text-align:left;background:white;z-index:1;text-transform:none;letter-spacing:0;font-size:13px;line-height:1.5}.question-matrix thead th:first-child{z-index:3;background:#f9fbfa}.question-matrix td{text-align:center;padding:8px}.question-matrix .matrix-cell{display:flex;align-items:center;justify-content:center;min-height:44px;min-width:70px}.question-matrix tbody tr:hover td,.question-matrix tbody tr:hover th{background:#f2f7f5}.question-snippet{font-weight:400;color:var(--ink);overflow-wrap:anywhere}.member-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.member-row{border:1px solid var(--line);border-radius:9px;padding:13px;min-height:65px}.member-row[hidden]{display:none}.member-row:has(input:checked){background:#eef7f2;border-color:#96c8b2}.review-note{border-top:1px solid var(--line);padding-top:18px;margin-top:20px}.note-body{white-space:pre-wrap;overflow-wrap:anywhere}textarea{font:inherit;border:1px solid #cfdcda;border-radius:8px;padding:12px;resize:vertical;max-width:100%}.summary-table td:first-child{min-width:200px}.summary-table th{white-space:nowrap}.summary-table td{padding:16px 12px}.summary-table .badge{white-space:normal}.question-content img{max-width:100%}
@media(max-width:720px){.member-list{grid-template-columns:1fr}.question-matrix th:first-child{min-width:220px;max-width:250px}.state-legend{gap:14px}.accuracy-cell{gap:7px}.topbar{height:auto;flex-wrap:wrap;padding-top:14px;padding-bottom:14px}.topbar nav{flex-wrap:wrap;gap:15px}}

.review-metrics{display:grid;grid-template-columns:1fr 1fr;gap:5px 12px;margin-top:12px;min-width:210px}.review-metrics span{white-space:nowrap}.accuracy-cell>span:last-child{white-space:nowrap}.accuracy-cell strong{margin-right:7px}.test-card[hidden]{display:none}

.exam-instructions{padding-left:1.4rem}.exam-instructions li{margin-bottom:.75rem;line-height:1.6}
