@import "https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:ital,opsz,wght@1,9..144,600&display=swap";:root{color:#16201e;font-synthesis:none;--ink:#16201e;--muted:#68716e;--teal:#006b5b;--mint:#bdebd7;--paper:#fffdf7;--line:#d9d8d0;background:#f2f0e9;font-family:DM Sans,system-ui,sans-serif}*{box-sizing:border-box}body{background:radial-gradient(circle at 13% 5%,#e1f1e8 0,#0000 30%),#f2f0e9;min-width:320px;min-height:100vh;margin:0}button,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible{outline-offset:2px;outline:3px solid #79cdb1}.app-shell{min-height:100vh}.topbar{border-bottom:1px solid #16201e1f;justify-content:space-between;align-items:center;max-width:1180px;height:76px;margin:auto;padding:0 28px;display:flex}.brand{letter-spacing:.04em;color:var(--ink);background:0 0;border:0;align-items:center;gap:10px;padding:0;font-size:14px;display:flex}.brand strong{font-weight:700}.brand-mark{background:var(--ink);color:#fff;border-radius:50%;place-items:center;width:34px;height:34px;font-family:Georgia,serif;font-weight:700;display:grid}.icon-button{color:#39413f;background:0 0;border:0;align-items:center;gap:8px;padding:10px;display:flex}.topbar-actions{align-items:center;gap:8px;display:flex}.nav-button{border:1px solid var(--line);color:var(--teal);background:#ffffff73;border-radius:999px;padding:8px 14px;font-size:13px;font-weight:700}.status-dot{background:#bd7768;border-radius:50%;width:9px;height:9px;display:inline-block;box-shadow:0 0 0 3px #f2dcd7}.status-dot.ready{background:#2a9b78;box-shadow:0 0 0 3px #d6eee6}main{max-width:1180px;margin:auto;padding:64px 28px 80px}.setup-grid{grid-template-columns:1fr 540px;align-items:start;gap:90px;display:grid}.hero{padding-top:50px}.eyebrow,.step{text-transform:uppercase;letter-spacing:.16em;color:var(--teal);margin:0 0 18px;font-size:12px;font-weight:700}.hero h1,.summary h1{letter-spacing:-.055em;margin:0;font-size:clamp(44px,5.3vw,76px);font-weight:600;line-height:.98}.hero h1 em,.summary h1 em{color:var(--teal);font-family:Fraunces,Georgia,serif;font-weight:600}.lede{color:var(--muted);max-width:520px;font-size:17px;line-height:1.7}.hero .lede{max-width:430px;margin-top:28px}.topic-cloud{flex-wrap:wrap;gap:9px;max-width:420px;margin-top:48px;display:flex}.topic-cloud span,.tags span{color:#54605c;background:#ffffff59;border:1px solid #c5cdc8;border-radius:999px;padding:7px 12px;font-size:12px}.panel{background:var(--paper);border:1px solid #202d2a24;border-radius:6px;box-shadow:0 20px 60px #16201e12}.setup-panel{padding:34px}.panel-heading{border-bottom:1px solid var(--line);justify-content:space-between;align-items:flex-start;padding-bottom:22px;display:flex}.panel-heading h2,.modal h2{letter-spacing:-.03em;margin:0;font-size:27px}.panel-heading .step{margin-bottom:7px}.panel-heading>span{color:var(--muted);background:#edece5;border-radius:999px;padding:6px 10px;font-size:12px}fieldset{border:0;margin:28px 0;padding:0}legend,.field>span{text-transform:uppercase;letter-spacing:.1em;color:#4b5552;margin-bottom:13px;font-size:12px;font-weight:700}.check-row{cursor:pointer;border-bottom:1px solid #e7e5de;grid-template-columns:20px 1fr auto;align-items:center;gap:12px;padding:12px 3px;display:grid}.check-row input,.answer-option input{width:18px;height:18px;accent-color:var(--teal)}.check-row span{gap:3px;display:grid}small,.muted{color:var(--muted);font-size:12px;line-height:1.5}.check-row b{color:var(--muted);font-size:12px}.import-button{color:var(--teal);cursor:pointer;margin-top:14px;font-size:13px;font-weight:700;display:inline-block}.import-button input{display:none}.segmented{grid-template-columns:1fr 1fr;gap:8px;display:grid}.segmented label input{opacity:0;position:absolute}.segmented label span{border:1px solid var(--line);text-align:center;cursor:pointer;border-radius:4px;padding:11px;font-size:13px;display:block}.segmented input:checked+span{border-color:var(--teal);color:var(--teal);box-shadow:inset 0 0 0 1px var(--teal);background:#e6f4ee}.session-options{border-top:1px solid var(--line);grid-template-columns:1fr 1.4fr;gap:18px;padding-top:24px;display:grid}.session-options>label>span{margin-bottom:8px;font-size:12px;font-weight:700;display:block}.session-options input[type=number]{border:1px solid var(--line);background:#fff;border-radius:4px;width:90px;padding:10px}.switch-row{justify-content:space-between;align-items:center;display:flex}.switch-row span{display:grid!important}.switch-row input{width:42px;height:23px;accent-color:var(--teal)}.judge-notice{text-align:left;width:100%;color:var(--ink);background:#fff9e9;border:1px solid #e8d9ad;border-radius:4px;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;margin:24px 0;padding:14px;display:grid}.judge-notice span:nth-child(2){gap:2px;display:grid}.judge-notice b{color:#7b6522;font-size:12px}.primary,.secondary,.danger{border:1px solid #0000;border-radius:3px;padding:13px 19px;font-weight:700}.primary{background:var(--ink);color:#fff}.primary:hover{background:var(--teal)}.primary:disabled{opacity:.38;cursor:not-allowed}.primary span{float:right}.secondary{color:var(--ink);border-color:var(--line);background:#fff}.danger{color:#963b31;background:0 0;border-color:#dbb8b1}.full{width:100%;margin-top:27px}.error-box{background:#fff1ed;border-left:3px solid #be5d4f;margin:16px 0;padding:12px 15px;font-size:13px;line-height:1.5}.error-box ul{margin-bottom:0;padding-left:18px}.error-box p{margin:5px 0}.text-button{color:#8e3328;background:0 0;border:0;padding:4px 0;font-weight:700}.quiz-wrap{max-width:760px;margin:0 auto}.quiz-meta{color:var(--muted);text-transform:uppercase;letter-spacing:.09em;justify-content:space-between;font-size:11px;font-weight:700;display:flex}.progress{background:#d7d7cf;height:3px;margin:12px 0 30px}.progress i{background:var(--teal);height:100%;transition:width .3s;display:block}.question-count{color:var(--muted);margin-bottom:12px;font-size:13px}.question-count span{opacity:.6}.question-card{padding:clamp(28px,6vw,54px)}.tags{gap:7px;margin-bottom:25px;display:flex}.tags span{padding:5px 9px}.question-card h1{letter-spacing:-.035em;margin:0 0 15px;font-size:clamp(25px,4vw,37px);line-height:1.2}.instruction{color:var(--muted);margin-bottom:28px;line-height:1.5}.answers{gap:10px;margin-bottom:28px;display:grid}.answer-option{border:1px solid var(--line);cursor:pointer;background:#fff;border-radius:4px;align-items:center;gap:13px;padding:15px;display:flex}.answer-option:hover{border-color:#8aa69d}.answer-option.correct{background:#e4f5ed;border-color:#54a889}.answer-option.wrong{background:#fff0ec;border-color:#ce786b}.question-card textarea,.field input,.field textarea{resize:vertical;width:100%;color:var(--ink);background:#fff;border:1px solid #cbcfc9;border-radius:4px;padding:13px}.question-card textarea{margin-bottom:20px;line-height:1.55}.feedback{border-top:1px solid var(--line);margin-top:28px;padding-top:25px}.feedback-title{align-items:center;gap:11px;margin-bottom:15px;display:flex}.feedback-title>span{color:#fff;border-radius:50%;place-items:center;width:29px;height:29px;font-size:18px;display:grid}.feedback.pass .feedback-title>span{background:#2f9273}.feedback.miss .feedback-title>span{background:#be5d4f}.feedback-title b{margin-left:auto}.feedback p{color:#4f5b57;line-height:1.6}.feedback h3{text-transform:uppercase;letter-spacing:.1em;margin:22px 0 4px;font-size:12px}.feedback .primary{margin-top:16px}.summary{text-align:center;max-width:680px;margin:20px auto;padding:55px}.summary h1{font-size:52px}.summary .lede{margin:18px auto 34px}.score-ring{--score:0deg;background:conic-gradient(var(--teal) var(--score), #e1e1d9 0);border-radius:50%;place-items:center;width:174px;height:174px;margin:0 auto 35px;display:grid}.score-ring>div{background:var(--paper);border-radius:50%;place-content:center;width:146px;height:146px;display:grid}.score-ring strong{font-size:34px}.score-ring span{color:var(--muted);text-transform:uppercase;letter-spacing:.1em;font-size:11px}.summary-stats{border-top:1px solid var(--line);border-bottom:1px solid var(--line);grid-template-columns:repeat(3,1fr);padding:22px 0;display:grid}.summary-stats div{display:grid}.summary-stats div+div{border-left:1px solid var(--line)}.summary-stats strong{font-size:25px}.summary-stats span{color:var(--muted);font-size:12px}.summary-actions,.button-row{justify-content:center;gap:10px;margin-top:28px;display:flex}.modal-backdrop{z-index:10;background:#0d181594;place-items:center;padding:20px;display:grid;position:fixed;inset:0;overflow:auto}.modal{background:var(--paper);border-radius:6px;width:min(600px,100%);max-height:calc(100vh - 40px);padding:35px;position:relative;overflow:auto;box-shadow:0 30px 90px #00000040}.close{color:var(--muted);background:0 0;border:0;font-size:27px;position:absolute;top:14px;right:18px}.modal>.muted{margin-bottom:25px}.field{margin:16px 0;display:grid}.field>span{margin-bottom:7px}.code{font-family:ui-monospace,monospace;font-size:12px}.modal hr{border:0;border-top:1px solid var(--line);margin:29px 0}.vault-heading{justify-content:space-between;align-items:center;display:flex}.vault-heading h3{margin:0 0 2px}.vault-heading p{margin:0}.modal .button-row{flex-wrap:wrap;justify-content:flex-start}.security-note{color:#52605b;background:#eff5f1;margin-top:20px;padding:13px;font-size:11px;line-height:1.5}.form-message{color:var(--teal);font-size:13px;font-weight:700}@media (width<=900px){.setup-grid{grid-template-columns:1fr;gap:45px}.hero{padding-top:0}.hero h1{max-width:650px}.topic-cloud{margin-top:28px}.setup-panel{width:100%;max-width:620px}}@media (width<=560px){.topbar{height:64px;padding:0 16px}.icon-button{font-size:0}.icon-button span,.icon-button i{font-size:16px}main{padding:38px 16px 60px}.setup-panel,.question-card,.summary,.modal{padding:24px 20px}.hero h1{font-size:43px}.setup-grid{gap:35px}.session-options{grid-template-columns:1fr}.summary h1{font-size:40px}.summary-actions,.button-row{flex-direction:column}.summary-actions button,.button-row button{width:100%}.modal-backdrop{padding:10px}.modal{max-height:calc(100vh - 20px)}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}.study-progress{padding:20px 0 2px}.study-progress>div:first-child{justify-content:space-between;align-items:baseline;display:flex}.study-progress strong{font-size:14px}.study-progress span{color:var(--muted);font-size:12px}.study-progress-track{background:#deded6;border-radius:99px;height:7px;margin-top:10px;overflow:hidden}.study-progress-track i{background:var(--teal);border-radius:inherit;height:100%;transition:width .3s;display:block}.hide-solved{border-top:1px solid var(--line);grid-column:1/-1;padding-top:16px}.question-actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}@media (prefers-reduced-motion:reduce){.study-progress-track i{transition:none}}.sync-status{margin:12px 0;font-size:13px}.sync-idle{color:var(--muted)}.sync-loading{color:#7b6522}.sync-success{color:#2a9b78;font-weight:700}.sync-error{color:#be5d4f;font-weight:700}.sync-banner{max-width:1180px;color:var(--teal);background:#e6f4ee;border-bottom:1px solid #bdebd7;justify-content:space-between;align-items:center;margin:0 auto;padding:10px 28px;font-size:13px;font-weight:600;animation:.3s slideDown;display:flex}.sync-banner-close{color:var(--teal);background:0 0;border:0;padding:0 4px;font-size:20px;line-height:1}.theory-layout{grid-template-columns:260px minmax(0,1fr);align-items:start;gap:24px;display:grid}.theory-sidebar{padding:24px;position:sticky;top:24px}.theory-sidebar h1{letter-spacing:-.03em;margin:-8px 0 20px;font-size:25px}.theory-sidebar nav{gap:5px;display:grid}.theory-sidebar nav button{color:var(--muted);text-align:left;background:0 0;border:0;border-radius:4px;padding:10px 11px;line-height:1.35}.theory-sidebar nav button:hover,.theory-sidebar nav button.active{color:var(--teal);background:#e6f4ee}.theory-sidebar nav button.active{font-weight:700}.theory-document{min-width:0;padding:clamp(26px,5vw,58px);overflow:hidden}.markdown-body{color:#293330;line-height:1.72}.markdown-body>:first-child{margin-top:0}.markdown-body h1,.markdown-body h2,.markdown-body h3{color:var(--ink);letter-spacing:-.025em;scroll-margin-top:20px;line-height:1.2}.markdown-body h1{margin-bottom:38px;font-size:clamp(34px,5vw,54px)}.markdown-body h2{border-bottom:1px solid var(--line);margin:48px 0 18px;padding-bottom:9px;font-size:28px}.markdown-body h3{margin-top:32px;font-size:20px}.markdown-body a{color:var(--teal)}.markdown-body img{border-radius:4px;max-width:100%;height:auto}.markdown-body pre{color:#e9f1ed;background:#17211f;border-radius:4px;padding:18px;overflow:auto}.markdown-body code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.9em}.markdown-body :not(pre)>code{background:#e8ebe6;border-radius:3px;padding:2px 5px}.markdown-body table{border-collapse:collapse;width:100%;display:block;overflow-x:auto}.markdown-body th,.markdown-body td{border:1px solid var(--line);text-align:left;padding:9px 12px}.markdown-body blockquote{border-left:4px solid var(--mint);color:var(--muted);margin-left:0;padding-left:18px}@media (width<=800px){.theory-layout{grid-template-columns:1fr}.theory-sidebar{position:static}.theory-sidebar nav{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=560px){.theory-sidebar nav{grid-template-columns:1fr}.nav-button{padding:7px 10px}}@keyframes slideDown{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
