:root{--paper:#f4f6fa;--white:#fff;--ink:#172238;--muted:#59677e;--line:#dce3ed;--accent:#204bc7;--tint:#eaf0ff;--good:#176548;--good-bg:#edf8f2;--bad:#994120;--bad-bg:#fff3eb;--radius:12px;--small:6px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;line-height:1.65}button,input,textarea{font:inherit}button,a,input,textarea,summary{touch-action:manipulation}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:var(--accent);text-decoration:none}button{color:inherit}button:disabled{cursor:default}svg{width:22px;height:22px;flex-shrink:0;vertical-align:middle}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:"Trebuchet MS",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.2;letter-spacing:-.035em}h1{font-size:clamp(30px,3.15vw,46px);margin-bottom:20px;font-weight:700}h2{font-size:23px;margin-bottom:12px}h3{font-size:19px;margin-bottom:8px}p{margin-bottom:16px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #f0ad37;outline-offset:4px}button:focus:not(:focus-visible),#main:focus{outline:none}button svg,.button svg,.text-link svg{width:18px;height:18px}.skip{position:fixed;top:-100px;left:16px;padding:12px;background:var(--white);z-index:50}.skip:focus{top:10px}.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}.layout{display:grid;grid-template-columns:242px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:var(--white);border-right:1px solid var(--line);padding:30px 20px 22px;display:flex;flex-direction:column;overflow:auto}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);font-family:"Trebuchet MS",sans-serif;font-weight:700;font-size:24px;letter-spacing:-1px;line-height:1.2;margin:0 8px 40px}.brand-mark{width:39px;height:39px;display:flex;align-items:center;justify-content:center;border-radius:var(--small);background:var(--accent);color:white;font-size:30px;font-weight:bold;line-height:1}.brand-mark span{color:#b8d5ff}.brand-sub{display:block;font-family:inherit;font-size:11px;font-weight:400;letter-spacing:0;color:var(--muted);margin-top:6px}.nav-item{display:flex;align-items:center;gap:12px;color:var(--muted);padding:11px 12px;margin-bottom:4px;border-radius:var(--small);font-size:14px;min-height:44px}.nav-item svg{width:19px;height:19px}.nav-item:hover{background:var(--paper);color:var(--ink)}.nav-item.active{background:var(--tint);color:var(--accent);font-weight:600}.nav-label{font-size:11px;text-transform:uppercase;letter-spacing:.13em;color:var(--muted);padding:28px 12px 6px;margin:0}.nav-count,.nav-percent{margin-left:auto;font-size:11px;font-variant-numeric:tabular-nums}.nav-count{background:var(--paper);padding:1px 7px;border-radius:var(--small)}.side-bottom{margin-top:auto;padding:32px 12px 0;font-size:11px;color:var(--muted)}.side-bottom p{margin-bottom:6px}.side-bottom a{color:var(--muted);text-decoration:underline;text-underline-offset:3px}.workspace{min-width:0}.topbar{height:78px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 46px;gap:16px}.top-context{font-size:13px;color:var(--muted)}.top-context span{padding:0 12px;color:#8290a4}.top-link{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;white-space:nowrap}.top-link svg{width:18px}.mobile-menu{display:none}#main{max-width:1370px;margin:auto;padding:44px 46px 70px;min-height:calc(100vh - 150px)}footer{padding:20px 46px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);display:flex;gap:16px;justify-content:space-between}footer a{color:var(--muted)}.eyebrow,.small-label{font-size:10px;letter-spacing:.13em;font-weight:600;color:var(--muted);line-height:1.6}.eyebrow{margin-bottom:14px;text-transform:uppercase}.intro{font-size:16px;line-height:1.7;color:var(--muted);max-width:740px;margin-bottom:30px}.home-heading h1{margin-bottom:16px}.home-heading h1 span{color:var(--muted);font-weight:400;letter-spacing:-.045em}.home-heading .intro{font-size:15px}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;font-size:13px;font-weight:600;line-height:1.45;padding:13px 19px;border:1px solid transparent;border-radius:var(--small);min-height:46px;text-decoration:none;transition:background .15s}.primary{background:var(--accent);color:var(--white)}.primary:hover{background:#153aab}.secondary{background:var(--white);border-color:var(--line);color:var(--ink)}.secondary:hover{background:var(--paper);border-color:#b3bfd0}.start-panel{background:var(--accent);color:var(--white);border-radius:var(--radius);padding:28px 30px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:36px}.start-panel .small-label{color:#cfddff}.start-panel h2{font-size:27px;margin:9px 0 8px}.start-panel p{color:#e1e9ff;font-size:13px;margin:0}.start-panel .button{background:var(--white);color:var(--accent);flex-shrink:0}.start-panel .button:hover{background:#e5edff}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.section-heading h2{font-size:19px;margin:0}.section-heading>span{font-size:11px;color:var(--muted)}.exam-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:38px}.exam-item{display:flex;align-items:center;gap:15px;padding:22px 20px;background:var(--white);border:1px solid var(--line);border-radius:var(--radius);color:var(--ink);position:relative;min-width:0}.exam-item:hover{border-color:#9bb1df}.exam-date{border-right:1px solid var(--line);padding-right:15px;min-width:49px;text-align:center;line-height:1.15}.exam-date strong{display:block;font-family:"Trebuchet MS",sans-serif;font-size:33px;letter-spacing:-2px;font-weight:400}.exam-date span{font-size:9px;letter-spacing:.1em;color:var(--muted)}.exam-copy{min-width:0}.exam-copy .eyebrow{font-size:9px}.exam-copy h3{font-size:17px;margin:6px 0}.exam-copy p{font-size:11px;color:var(--muted);margin:0}.exam-item>svg{width:16px;margin-left:auto}.days{position:absolute;right:14px;top:11px;font-size:9px;color:var(--accent)}.content-columns{display:grid;grid-template-columns:minmax(0,1fr) 248px;gap:32px;align-items:start}.subject-list{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.subject-row{display:flex;align-items:center;gap:16px;padding:19px 20px;color:var(--ink);border-bottom:1px solid var(--line);min-width:0}.subject-row:last-child{border-bottom:0}.subject-row:hover{background:#f8faff}.subject-icon{background:var(--paper);width:39px;height:39px;display:grid;place-items:center;border-radius:var(--small);color:var(--muted);flex-shrink:0}.subject-info{display:flex;flex-direction:column;gap:3px;min-width:0}.subject-info strong{font-size:14px;font-weight:600}.subject-info>span{font-size:11px;color:var(--muted)}.subject-progress{width:88px;margin-left:auto;color:var(--muted);font-size:10px;text-align:right;flex-shrink:0}.progress-track{width:100%;height:5px;background:#e2e8f2;border-radius:var(--small);overflow:hidden}.progress-track>span{display:block;height:100%;background:var(--accent)}.subject-progress .progress-track{margin-top:7px;height:3px}.row-arrow svg{width:16px;color:#8795aa}.study-aside{padding-top:40px}.stats-panel{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:24px}.big-stat{display:block;font-family:"Trebuchet MS",sans-serif;font-size:42px;letter-spacing:-2px;line-height:1.5;margin-top:8px;font-weight:400}.big-stat>span{font-size:20px;color:#8391a7;letter-spacing:-1px}.stats-panel>p{font-size:11px;color:var(--muted);margin-bottom:13px}.stats-panel .muted{margin-top:14px;font-size:11px}.stat-line{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:15px 0;font-size:11px}.text-link{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:600;background:none;border:0;padding:8px 0;min-height:40px;color:var(--accent)}.text-link:hover{text-decoration:underline}.review-callout{padding:25px 4px}.review-callout>svg{color:var(--muted);margin-bottom:10px}.review-callout h3{font-size:17px;letter-spacing:-.02em}.review-callout p{font-size:12px;color:var(--muted);margin-bottom:5px}.muted{color:var(--muted)}.back-link{display:inline-block;margin-bottom:30px;font-size:13px;color:var(--muted);padding:5px 0}.back-link:hover{color:var(--accent)}.subject-actions{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:36px}.lesson-list{border-top:1px solid var(--line)}.lesson-row{display:flex;gap:22px;color:var(--ink);align-items:center;padding:25px 0;border-bottom:1px solid var(--line)}.lesson-number{font-family:ui-monospace,monospace;font-size:19px;color:#8391a7;width:34px;flex-shrink:0}.lesson-row h3{font-size:21px}.lesson-row p{font-size:14px;color:var(--muted);margin-bottom:7px}.lesson-meta{font-size:11px;color:var(--muted)}.lesson-row>svg{margin-left:auto}.lesson-row:hover h3{color:var(--accent)}.subtle-tag{font-family:inherit;font-size:10px;letter-spacing:0;background:#e5eaf3;color:var(--muted);padding:4px 6px;vertical-align:middle;margin-left:5px;border-radius:var(--small)}.source-note{margin-top:36px;max-width:850px;padding:26px 0;border-top:1px solid var(--line)}.source-note h2,.source-note h3{font-size:19px}.source-note p{color:var(--muted);font-size:13px}.source-note .muted{font-size:11px;margin-top:14px}.source-link{font-size:12px;text-decoration:underline;text-underline-offset:4px}.lesson-layout{display:grid;grid-template-columns:minmax(0,720px) 225px;gap:42px;align-items:start}.learning-paragraph{display:flex;align-items:baseline;gap:20px;margin-bottom:10px}.learning-paragraph>span{font:12px ui-monospace,monospace;color:#78869c;flex-shrink:0}.learning-paragraph p{font-size:16px;line-height:1.85}.example{background:#eaf0fa;padding:25px 28px;border-radius:var(--radius);margin:22px 0 30px;overflow:hidden}.example pre{margin:18px 0 0;color:#183355}.example code,pre{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:13px;line-height:1.8}pre{white-space:pre-wrap;overflow-wrap:anywhere}.lesson-aside{padding:24px;background:var(--white);border:1px solid var(--line);border-radius:var(--radius)}.lesson-aside h3{font-size:19px;margin:12px 0}.lesson-aside p{font-size:12px;color:var(--muted)}.lesson-aside .button{width:100%}hr{border:0;border-top:1px solid var(--line);margin:22px 0}.lesson-bottom{display:flex;align-items:center;flex-wrap:wrap;gap:18px;margin-top:30px}.lesson-bottom>span{font-size:12px;color:var(--muted)}.binary-lab{background:var(--white);border:1px solid var(--line);padding:26px;border-radius:var(--radius)}.binary-lab h3{margin:12px 0 22px}.bit-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:8px}.bit{display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:var(--small);background:var(--paper);padding:9px 2px;gap:7px;min-height:72px}.bit>span{font:10px ui-monospace,monospace;color:var(--muted)}.bit strong{font:24px ui-monospace,monospace}.bit[aria-pressed="true"]{background:var(--tint);border-color:var(--accent);color:var(--accent)}.binary-total{font-size:13px;margin:20px 0 0}.binary-total strong{font-size:20px;margin-left:8px}.quiz-top{display:flex;justify-content:space-between;align-items:baseline;gap:20px}.quiz-top>span{font-size:11px;color:var(--muted)}.quiz-position{display:flex;justify-content:space-between;margin:6px 0 13px;font-size:12px}.quiz-position>span:last-child{color:var(--accent)}.question-card{background:var(--white);border:1px solid var(--line);padding:36px 40px;border-radius:var(--radius);margin-top:28px}.question-title{font-size:clamp(25px,2.5vw,35px);line-height:1.4;letter-spacing:-.025em;max-width:900px;white-space:pre-wrap;margin-bottom:30px;overflow-wrap:anywhere}.options{border:0;padding:0;margin:0 0 24px;display:flex;flex-direction:column;gap:12px}.option{display:flex;align-items:center;gap:16px;padding:17px;border:1px solid var(--line);border-radius:var(--small);cursor:pointer;min-height:63px;position:relative}.option:hover{background:#f8faff}.option:has(input:checked){border-color:var(--accent);background:var(--tint)}.option:has(input:focus-visible){outline:3px solid #f0ad37;outline-offset:3px}.option input{position:absolute;opacity:0;width:1px;height:1px}.option-letter{font-family:ui-monospace,monospace;font-size:12px;color:var(--muted);border:1px solid var(--line);border-radius:var(--small);width:28px;height:28px;display:grid;place-items:center;flex-shrink:0}.option>span:last-child{font-size:15px;overflow-wrap:anywhere}.option:has(input:checked) .option-letter{border-color:var(--accent);color:var(--accent)}.input-label{display:block;font-size:12px;font-weight:600;color:var(--muted);margin-bottom:9px}.answer-input,textarea{border:1px solid #b8c4d5;border-radius:var(--small);background:var(--white);padding:14px 16px;color:var(--ink);width:100%;max-width:100%;font-size:16px}.answer-input{max-width:420px;font-family:ui-monospace,monospace}.code-input{font-family:ui-monospace,monospace;font-size:14px;tab-size:2}textarea{resize:vertical;line-height:1.75}input:disabled,textarea:disabled{opacity:1;background:var(--paper);color:var(--ink)}.answer-actions{display:flex;align-items:center;flex-wrap:wrap;gap:22px;margin-top:26px}.feedback{border-radius:var(--small);padding:24px;margin-top:25px;border-left:4px solid}.feedback.correct{background:var(--good-bg);border-color:var(--good)}.feedback.incorrect{background:var(--bad-bg);border-color:var(--bad)}.feedback.model{background:var(--tint);border-color:var(--accent)}.feedback h2{font-size:20px;letter-spacing:-.025em}.feedback p{font-size:14px;margin-bottom:10px;white-space:pre-wrap;overflow-wrap:anywhere}.feedback p:last-child{margin-bottom:0}.feedback .small-label{margin-top:22px;font-size:10px}.feedback li{font-size:13px;margin-bottom:7px}.feedback pre{margin-bottom:0}.quiz-footnote{text-align:center;font-size:11px;color:var(--muted);margin:22px 0 0}.hint{padding:16px 18px;margin:20px 0 0;background:var(--paper);border-radius:var(--small);font-size:13px}.preview-button{margin-top:8px}#preview iframe{width:100%;height:220px;border:1px solid var(--line);border-radius:var(--small);background:white;margin:10px 0}.result-list{margin-top:30px}.result-item{background:var(--white);border:1px solid var(--line);border-radius:var(--small);margin-bottom:12px;overflow:hidden}.result-item summary{list-style:none;cursor:pointer;display:flex;gap:16px;align-items:center;padding:20px}.result-item summary::-webkit-details-marker{display:none}.result-status{display:grid;place-items:center;width:28px;height:28px;border-radius:var(--small);flex-shrink:0}.result-status.yes{background:var(--good-bg);color:var(--good)}.result-status.no{background:var(--bad-bg);color:var(--bad)}.result-item summary strong{font-size:13px;font-weight:500;white-space:pre-wrap;overflow-wrap:anywhere}.result-item summary small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.result-item summary>span:last-child{font-size:10px;color:var(--muted);margin-left:auto;white-space:nowrap}.result-detail{border-top:1px solid var(--line);padding:20px 25px;background:#f9fbfd;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.empty-state{padding:45px 25px;background:var(--white);border:1px solid var(--line);border-radius:var(--radius);text-align:center}.empty-state>svg{width:34px;height:34px;color:var(--accent);margin-bottom:20px}.empty-state p{color:var(--muted);max-width:450px;margin:0 auto 25px}.review-list{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:0 22px}.review-list>div{padding:14px 0;border-bottom:1px solid var(--line);display:flex;gap:25px;font-size:13px}.review-list>div:last-child{border:0}.review-list span{color:var(--muted);width:80px;flex-shrink:0}.review-list strong{font-weight:500}.info-body{max-width:800px}.info-body p{font-size:15px;line-height:1.9;color:var(--muted)}.info-body h2{font-size:24px;margin-top:34px}.source-list{display:grid;gap:10px;font-size:13px}.initial{padding:60px;max-width:850px}.storage-warning,.toast{background:#fff4d9;padding:16px 20px;border-radius:var(--small);font-size:13px;margin-bottom:24px}.file-label{cursor:pointer}.file-label input{position:absolute;clip-path:inset(100%);width:1px;height:1px}.file-label:has(input:focus-visible){outline:3px solid #f0ad37;outline-offset:3px}@media(min-width:1600px){#main{padding-top:55px}.home-heading h1{font-size:50px}}@media(max-width:1250px){.layout{grid-template-columns:210px minmax(0,1fr)}.sidebar{padding-left:12px;padding-right:12px}.brand{margin-left:9px;font-size:22px}.topbar{padding:0 30px}#main{padding:35px 30px 55px}.content-columns{grid-template-columns:minmax(0,1fr) 215px;gap:22px}.stats-panel{padding:20px}.exam-grid{gap:12px}.exam-item{padding:25px 14px 18px;gap:10px}.exam-copy h3{font-size:15px}.exam-copy p{font-size:10px}.exam-date{padding-right:10px}.lesson-layout{grid-template-columns:minmax(0,1fr) 205px;gap:26px}.question-card{padding:28px}.subject-row{padding:16px;gap:12px}.subject-progress{width:72px}.subject-info strong{font-size:13px}.row-arrow{display:none}.top-context{font-size:12px}}@media(max-width:1000px){.content-columns{grid-template-columns:1fr}.study-aside{padding-top:0;display:grid;grid-template-columns:1fr 1fr;gap:25px}.review-callout{padding:20px 0}.exam-grid{grid-template-columns:1fr}.exam-copy h3{font-size:18px}.exam-copy p{font-size:12px}.exam-item{padding:24px}.exam-item>svg{margin-left:auto}.exam-date{padding-right:18px}.lesson-layout{grid-template-columns:1fr}.lesson-aside{display:none}.start-panel{padding:24px}.start-panel h2{font-size:23px}.start-panel .button{font-size:12px;padding:12px}.top-context span{padding:0 7px}.quiz-top>span{max-width:190px;text-align:right}.subject-info strong{font-size:15px}.subject-progress{width:95px}.row-arrow{display:block}.desktop-break{display:none}}@media(max-width:760px){.layout{display:block}.sidebar{position:fixed;left:0;top:64px;bottom:0;height:calc(100dvh - 64px);z-index:20;width:270px;transform:translateX(-100%);box-shadow:15px 0 30px #17223822;transition:transform .18s}.sidebar.open{transform:translateX(0)}.sidebar .brand{margin-bottom:20px}.topbar{height:64px;padding:0 20px;background:var(--white);position:sticky;top:0;z-index:21;gap:12px}.mobile-menu{display:grid;place-items:center;background:none;border:0;width:42px;height:44px;margin-left:-8px;font-size:21px;color:var(--ink)}.top-context{margin-right:auto;font-size:12px}.top-context span{padding:0 5px}.top-link{font-size:10px;gap:5px}.top-link svg{width:16px}#main{padding:30px 20px 45px}.home-heading h1{font-size:33px;line-height:1.15;letter-spacing:-1.2px}.home-heading h1 span{font-size:30px}.intro{font-size:15px}.home-heading .intro{font-size:14px;margin-bottom:25px}.start-panel{flex-direction:column;align-items:flex-start;padding:23px;gap:22px;margin-bottom:30px}.start-panel h2{font-size:25px}.start-panel .button{width:100%;font-size:13px;min-height:47px}.start-panel p{font-size:12px}.section-heading h2{font-size:18px}.section-heading>span{font-size:10px}.exam-grid{margin-bottom:30px}.exam-item{padding:25px 17px 20px;gap:13px}.exam-copy h3{font-size:16px}.exam-copy p{font-size:10px}.exam-date strong{font-size:31px}.exam-date{min-width:43px;padding-right:12px}.days{font-size:9px}.subject-row{padding:17px 14px;gap:12px}.subject-icon{width:34px;height:34px}.subject-icon svg{width:19px}.subject-info strong{font-size:13px}.subject-info>span{font-size:10px}.subject-progress{font-size:9px;width:65px}.row-arrow{display:none}.study-aside{grid-template-columns:1fr}.stats-panel{padding:24px}.review-callout{padding:0 5px}.back-link{margin-bottom:23px}.subject-actions{gap:10px}.subject-actions .button{font-size:12px}.lesson-row{gap:14px;padding:23px 0}.lesson-number{font-size:16px;width:25px}.lesson-row h3{font-size:20px}.lesson-row p{font-size:13px}.subtle-tag{display:inline-block;margin:7px 0 0}.learning-paragraph{gap:14px}.learning-paragraph p{font-size:15px;line-height:1.85}.example{padding:23px 20px}.example pre{font-size:12px}.binary-lab{padding:22px 14px}.bit-grid{gap:4px}.bit{min-height:65px}.bit>span{font-size:9px}.bit strong{font-size:21px}.lesson-bottom .button{width:100%}.lesson-bottom{gap:10px}.quiz-top{gap:15px}.quiz-top .back-link{font-size:12px}.quiz-top>span{font-size:10px;max-width:140px}.quiz-position{font-size:11px}.question-card{padding:26px 20px;margin-top:22px}.question-title{font-size:25px;margin-bottom:25px}.option{gap:12px;padding:14px 12px}.option>span:last-child{font-size:14px}.option-letter{width:25px;height:25px;font-size:11px}.answer-actions{gap:12px}.answer-actions>.button{width:100%}.feedback{padding:19px}.feedback h2{font-size:18px}.feedback p{font-size:13px}.feedback ul{padding-left:20px}.result-item summary{padding:15px 13px;gap:11px}.result-item summary strong{font-size:12px}.result-item summary>span:last-child{font-size:0}.result-item summary>span:last-child:after{content:'+';font-size:18px}.result-detail{padding:17px}.review-list>div{gap:12px}.review-list span{width:62px}.review-list{padding:0 15px}footer{padding:20px;font-size:10px;flex-direction:column;gap:8px}.initial{padding:35px 25px}.info-body h2{font-size:22px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
