@font-face{font-family:Line;src:url('/assets/line-regular.woff2') format('woff2');font-weight:400;font-display:swap}@font-face{font-family:Line;src:url('/assets/line-bold.woff2') format('woff2');font-weight:700;font-display:swap}
:root{--bg:oklch(.985 .008 255);--surface:oklch(.995 .003 255);--soft:oklch(.955 .012 255);--ink:oklch(.345 .072 262);--muted:oklch(.470 .055 262);--accent:oklch(.520 .165 256);--line:oklch(.886 .018 256);--select:oklch(.925 .027 255);--white:oklch(1 0 0);--correct:oklch(.38 .09 160);--correct-bg:oklch(.956 .025 160);--wrong:oklch(.45 .12 25);--wrong-bg:oklch(.97 .019 25);font-family:Line,'Helvetica Neue',sans-serif;color:var(--ink);background:var(--bg);color-scheme:light}
*{box-sizing:border-box}html,body{height:100%;margin:0}body{display:flex;flex-direction:column;font-family:Line,'Helvetica Neue',sans-serif;font-size:14px;line-height:1.6;color:var(--ink);background:var(--bg)}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:5px;background:var(--surface);padding:6px 10px;font-size:11px;line-height:1.5}button:hover{background:var(--select)}button:disabled{opacity:.45;cursor:default}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline;text-underline-offset:3px}input,textarea,select{background:var(--surface);border:1px solid var(--line);border-radius:5px;padding:7px 9px;min-width:0}input[type=checkbox]{accent-color:var(--accent)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--accent);outline-offset:3px}h1,h2,h3,p{margin:0}h1,h2,h3{text-wrap:balance}p{text-wrap:pretty}[hidden]{display:none!important}.app-head{height:64px;min-height:64px;border-bottom:1px solid var(--line);padding:0 24px;display:flex;align-items:center;gap:17px;background:var(--surface)}.brand{display:flex;align-items:center;gap:9px;font-size:19px;letter-spacing:-.025em}.app-label{font-size:10px;color:var(--muted);padding-left:18px;border-left:1px solid var(--line)}.head-actions{display:flex;gap:8px;align-items:center;margin-left:auto}.head-actions button{border-color:transparent;background:none}.expand{font-size:11px;margin-left:14px}.app-subhead{height:54px;min-height:54px;padding:0 24px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line)}.app-subhead strong{font-size:13px}.app-subhead span{font-size:10px;margin-left:15px;color:var(--muted)}#storage-status{font-size:10px;color:var(--muted);text-align:right}.app-layout{flex:1;min-height:0;display:grid;grid-template-columns:190px minmax(330px,1fr) minmax(330px,.95fr)}.nav-rail{border-right:1px solid var(--line);padding:20px 12px;display:flex;flex-direction:column;overflow:auto}.switcher{display:flex;padding:3px;background:var(--soft);border-radius:7px}.switcher button{width:50%;border:0;background:none;padding:7px 8px}.switcher button[aria-pressed=true]{background:var(--surface);font-weight:700}.rail-label{margin:24px 8px 10px;font-size:10px;color:var(--muted);display:flex;justify-content:space-between;align-items:center}.rail-label button{padding:0 5px;font-size:16px;background:none;border:0}.nav-rail nav{display:flex;flex-direction:column;gap:3px}.nav-rail nav button{text-align:left;border:0;background:none;padding:10px;font-size:11px;display:flex;flex-direction:column;gap:3px;overflow-wrap:anywhere}.nav-rail nav button small{font-size:9px;color:var(--muted);font-weight:400}.nav-rail nav button[aria-current=true],.nav-rail nav button[aria-pressed=true]{background:var(--select);font-weight:700}.nav-rail nav button:hover{background:var(--soft)}#filters button{flex-direction:row;justify-content:space-between}.rail-add{margin:16px 7px 0;width:calc(100% - 14px);border-color:transparent;background:none;text-align:left}.rail-bottom{margin:40px 8px 0;display:flex;gap:8px;align-items:center;font-size:10px;color:var(--muted)}.rail-bottom small{display:block;font-size:9px}.pdf-badge{border:1px solid var(--line);font-size:8px;padding:5px 4px;border-radius:3px}.learning-pane{min-height:0;min-width:0;display:flex;flex-direction:column;background:var(--surface)}.learning-head{min-height:61px;border-bottom:1px solid var(--line);padding:15px 26px;display:flex;align-items:center;justify-content:space-between;font-size:11px;gap:8px}.learning-head small{display:block;font-size:9px;color:var(--muted);margin-top:2px}#learning-scroll{overflow:auto;overscroll-behavior:contain;flex:1;min-height:0;padding:30px 32px 90px;scroll-padding-top:24px}.study-section{padding-bottom:32px;margin-bottom:38px;border-bottom:1px solid var(--line)}.study-section:last-child{margin-bottom:0}.note-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}.note-top button{border:0;padding:3px 0;background:none;color:var(--accent)}.note-type{font-size:10px;color:var(--muted)}.study-section>h1{font-size:30px;font-weight:400;line-height:1.2;letter-spacing:-.03em}.source-links{display:flex;flex-wrap:wrap;gap:5px;margin-top:15px;margin-bottom:30px}.source-link{display:inline-flex;background:var(--soft);font-size:10px;padding:3px 7px;border-radius:4px}.note-body{font-size:14px;line-height:1.85;overflow-wrap:anywhere}.note-body h2{font-size:20px;font-weight:700;line-height:1.35;margin:20px 0 12px}.note-body h3{font-size:15px;margin:25px 0 10px}.note-body p{margin:12px 0}.note-body ul,.note-body ol{padding-left:22px}.note-body li{margin:7px 0}.note-body blockquote{margin:20px 0;padding:14px 18px;background:var(--soft);border-radius:6px;font-size:13px;color:var(--muted)}.note-body blockquote p{margin:0}.note-body table{width:100%;border-collapse:collapse;table-layout:fixed;margin:20px 0;font-size:12px}.note-body th,.note-body td{border:1px solid var(--line);padding:12px;vertical-align:top;text-align:left}.note-body th{background:var(--soft)}.note-body table p{margin:0}.note-body img{max-width:100%;height:auto}.note-body figure{max-width:100%;margin:14px 0}.note-body [data-card-embed]{margin:24px 0;max-width:100%}.note-end{display:flex;justify-content:space-between;align-items:center;margin-top:28px;gap:10px;font-size:9px;color:var(--muted)}.note-end button{border-color:transparent;background:none;font-size:10px;padding:0}.source-pane{min-width:0;min-height:0;border-left:1px solid var(--line);background:var(--soft);display:flex;flex-direction:column}.source-head{padding:17px 19px 10px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px}.source-head a{font-size:10px}.sync-controls{display:flex;flex-wrap:wrap;align-items:center;padding:0 15px 10px;gap:5px 14px;font-size:10px;color:var(--muted)}.sync-controls label{display:flex;align-items:center;gap:4px}.sync-controls input{margin:0}.follow-label{width:100%;margin-top:4px}.follow-label select{font-size:10px;border:0;background:transparent;padding:2px 4px}.pdf-controls{display:flex;align-items:center;gap:5px;border-block:1px solid var(--line);padding:8px 15px;font-size:10px}.pdf-controls button{padding:4px 8px;height:29px;min-width:27px}.pdf-controls label{display:flex;align-items:center;gap:4px}.pdf-controls input{width:40px;padding:4px;text-align:center;appearance:textfield;-moz-appearance:textfield}.pdf-controls input::-webkit-inner-spin-button{appearance:none}.pdf-gap{flex:1}#pdf-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px 18px 38px;position:relative}.pdf-sheet{margin:0 auto 20px;position:relative;background:white;box-shadow:0 2px 7px oklch(.3 .03 260 / .12)}.pdf-render{position:relative}.pdf-render canvas{display:block}.pdf-sheet .textLayer{z-index:1}#pdf-loading{font-size:12px;margin:24px;text-align:center}.source-foot{border-top:1px solid var(--line);padding:9px 14px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:9px;color:var(--muted);min-height:46px}.source-foot button{border:0;background:none;font-size:10px}.question-card{border:1px solid var(--line);border-radius:8px;padding:18px;background:var(--surface);font-size:12px;line-height:1.7}.q-meta{display:flex;align-items:center;justify-content:space-between;gap:9px;font-size:9px;color:var(--muted);margin-bottom:16px}.q-meta .bookmark{padding:3px 6px;font-size:9px;border-color:transparent;background:none}.q-meta .bookmark.selected{background:var(--select);color:var(--ink)}.question-card h2{font-size:18px;line-height:1.35;margin:0 0 10px;font-weight:700}.question-card .stem{font-size:13px;margin:0 0 17px}.choices{display:flex;flex-direction:column;gap:7px}.choice{display:flex;align-items:flex-start;gap:10px;text-align:left;padding:10px;font-size:12px;font-weight:400;line-height:1.65;background:var(--surface)}.choice-letter{display:grid;place-items:center;flex:none;width:19px;height:20px;font-size:10px;color:var(--muted)}.choice>span:nth-child(2){flex:1}.choice-mark{flex:none;min-width:12px}.choice[aria-pressed=true]{background:var(--select);border-color:var(--accent)}.choice:disabled{opacity:1}.choice.correct{background:var(--correct-bg);border-color:var(--correct);color:var(--correct)}.choice.incorrect{background:var(--wrong-bg);border-color:var(--wrong);color:var(--wrong)}.q-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:17px}.solid{background:var(--ink);border-color:var(--ink);color:var(--white)}.solid:hover{background:var(--accent);border-color:var(--accent)}.q-actions button{font-size:10px;padding:5px 8px}.verdict{font-size:11px;margin:13px 0 0!important}.explanation{margin-top:19px;padding-top:15px;border-top:1px solid var(--line)}.explanation strong{font-size:11px}.explanation p{font-size:12px;color:var(--muted);margin:8px 0}.explanation small{font-size:10px;color:var(--muted)}.attempt-history{border-top:1px solid var(--line);margin-top:16px;padding-top:12px;font-size:10px}.attempt-history summary{cursor:pointer}.attempt-history ol{padding:0;list-style:none}.attempt-history li{display:flex;justify-content:space-between;gap:10px;font-size:10px;margin:8px 0}.attempt-history time,.attempt-history p{color:var(--muted);font-size:9px}.reviewed{margin-top:12px;border:0;background:none;padding:0;color:var(--accent);font-size:10px}.deck-question{margin-bottom:25px}.empty-queue{padding:30px 2px;max-width:350px}.empty-queue h2{font-size:23px;font-weight:400;line-height:1.3}.empty-queue p{font-size:13px;color:var(--muted);margin:16px 0 20px}.mobile-view{display:none}#toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);max-width:min(540px,calc(100% - 30px));background:var(--ink);color:var(--white);padding:12px 18px;border-radius:6px;font-size:12px;z-index:60}
dialog{border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);padding:26px;width:min(600px,calc(100% - 32px));max-height:calc(100dvh - 40px);overflow:auto;box-sizing:border-box}dialog::backdrop{background:oklch(.2 .03 262 / .4)}dialog h2{font-family:Line,sans-serif;font-size:22px;font-weight:400;line-height:1.3}.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}.dialog-head p{font-size:11px;color:var(--muted);margin-top:5px}.field-label{display:block;font-size:11px;font-weight:700;margin:15px 0 7px}dialog input:not([type=checkbox]),dialog textarea{width:100%;font-size:13px}dialog textarea{resize:vertical}#editor-dialog{width:min(960px,calc(100% - 40px));padding:22px 26px}#note-title{font-size:19px!important}.reference-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:14px 0 18px;font-size:11px}.reference-tools label{display:flex;align-items:center;gap:2px}.reference-tools select{max-width:225px;font-size:11px}.grow{flex:1}.editor-toolbar{display:flex;flex-wrap:wrap;gap:4px;padding:10px;border-bottom:1px solid var(--line);background:var(--soft);position:sticky;top:0;z-index:10}.editor-toolbar button{min-width:30px;background:var(--surface);font-size:11px;padding:5px 8px}#editor-host{border:1px solid var(--line);border-radius:7px;overflow:visible;background:var(--surface);min-height:270px}#epsilon-editor .ProseMirror,#epsilon-editor .tie-prosemirror{min-height:270px;max-height:46vh;overflow:auto;padding:22px!important;font-size:15px;line-height:1.8;font-family:Line,sans-serif;color:var(--ink);background:var(--surface)}#epsilon-editor .ProseMirror:focus{outline:none}#epsilon-editor .ProseMirror p{margin:10px 0}#epsilon-editor .ProseMirror table{border-collapse:collapse}#epsilon-editor .ProseMirror td,#epsilon-editor .ProseMirror th{border:1px solid var(--line);padding:7px}#epsilon-editor .ProseMirror h2{font-size:24px}#epsilon-editor .ProseMirror h3{font-size:19px}#epsilon-editor .tie-card-embed{font-family:Line,sans-serif}#editor-state{font-size:12px;padding:16px}.dialog-foot{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:10px;margin-top:14px;color:var(--muted)}fieldset{border:0;padding:0;margin:20px 0}fieldset legend{font-size:11px;font-weight:700;margin-bottom:6px}fieldset input{margin:4px 0}.form-row{display:flex;gap:24px;font-size:12px}.form-row label{display:flex;gap:8px;align-items:center}#question-form>.solid{margin-top:18px}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:25px}#reset-dialog p{font-size:14px;margin-top:17px;line-height:1.8}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:1100px){.app-layout{grid-template-columns:155px minmax(290px,1fr) minmax(285px,.9fr)}#learning-scroll{padding:24px 22px 70px}.learning-head{padding-inline:22px}.app-head{padding-inline:18px}.app-label{display:none}.nav-rail{padding-inline:8px}.study-section>h1{font-size:27px}.question-card{padding:14px}.q-meta{flex-wrap:wrap}.source-head{padding-inline:15px}}
@media(max-width:850px){.app-layout{grid-template-columns:130px minmax(260px,1fr) minmax(250px,.9fr)}.app-subhead span{display:none}.nav-rail nav button{font-size:10px}.rail-bottom{display:none}#learning-scroll{padding-inline:18px}.source-foot{flex-wrap:wrap}.head-actions .expand{display:none}.sync-controls{gap:7px;font-size:9px}}
@media(max-width:760px){.app-head{height:56px;min-height:56px;padding-inline:15px;gap:8px}.brand{font-size:17px}.brand img{width:24px;height:24px}.head-actions{gap:2px}.head-actions button{font-size:9px;padding:5px}.app-subhead{height:49px;min-height:49px;padding-inline:15px;gap:8px}.app-subhead strong{font-size:11px}#storage-status{font-size:8px;max-width:170px}.app-layout{grid-template-columns:125px minmax(0,1fr)}.source-pane{display:none;grid-column:1/-1;border:0}.nav-rail{padding:14px 7px}.learning-head{padding:12px 17px;min-height:53px;font-size:10px}.learning-head small{font-size:8px}#learning-scroll{padding:22px 17px 70px}.study-section>h1{font-size:24px}.note-body{font-size:13px}.note-body h2{font-size:18px}.note-body h3{font-size:14px}.note-body table{font-size:11px}.note-body td,.note-body th{padding:7px}.note-top button{font-size:9px}.note-type{font-size:9px}.source-links{margin-bottom:24px}.note-end{align-items:flex-start;flex-direction:column}.question-card{padding:13px}.q-meta .bookmark{font-size:9px}.question-card h2{font-size:17px}.question-card .stem,.choice{font-size:12px}.choice{gap:6px;padding:9px 6px}.choice-letter{width:15px}.q-actions button{font-size:9px}.mobile-view{display:flex;flex:none;padding:8px 15px;gap:7px;border-top:1px solid var(--line);background:var(--surface)}.mobile-view button{flex:1;padding:8px;font-size:11px}.mobile-view button[aria-pressed=true]{background:var(--ink);color:var(--white);border-color:var(--ink)}body[data-mobile=source] .nav-rail,body[data-mobile=source] .learning-pane{display:none}body[data-mobile=source] .source-pane{display:flex}.source-foot{flex-wrap:nowrap}.source-head{padding-top:16px}.sync-controls{font-size:10px;gap:6px 15px}.follow-label{width:auto!important}.source-foot{padding-block:10px}.source-foot button{font-size:11px}.source-links button{min-height:31px}.reference-tools .grow{display:none}.reference-tools select{max-width:100%;flex:1}.reference-tools>span:first-child{width:100%}#editor-dialog{padding:18px;width:calc(100% - 20px);max-height:calc(100dvh - 20px)}.dialog-head{gap:8px}.dialog-head h2{font-size:19px}.dialog-head p{font-size:10px}.dialog-head button{white-space:nowrap;font-size:10px}#epsilon-editor .ProseMirror{max-height:40vh;padding:15px!important;font-size:14px}.dialog-foot span:last-child{display:none}.editor-toolbar{padding:6px;gap:3px}.editor-toolbar button{font-size:10px;padding:5px 6px}.form-row{gap:12px;font-size:11px}.form-row label{flex-direction:column;align-items:flex-start}.rail-label{font-size:9px;margin-inline:5px}.switcher button{font-size:10px;padding-inline:4px}.nav-rail nav button{padding:9px 6px}.rail-add{font-size:9px;padding-inline:0}.attempt-history li{flex-direction:column;gap:0}#toast{bottom:67px;font-size:11px}.note-body [data-card-embed]{margin-inline:-4px}}
@media(max-width:400px){.app-layout{grid-template-columns:105px minmax(0,1fr)}.learning-head{padding-inline:13px}#learning-scroll{padding-inline:13px}.study-section>h1{font-size:22px}.app-head{padding-inline:10px}.brand{font-size:16px}.head-actions button{font-size:8px}.choice-letter{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.editor-question-preview{padding:16px;font-family:Line,sans-serif;color:var(--ink);font-size:13px;line-height:1.7}.editor-question-preview strong{display:block;font-size:16px;margin:9px 0}.editor-question-preview small{font-size:10px;color:var(--muted)}.editor-question-preview p{margin:8px 0!important}

/* Existing StacKnot symbol + custom outlined wordmark. Source: stacknot_design/brand.css. */
.brand{color:#1A3A6B;gap:10px;flex-shrink:0}.brand-symbol,.brand-wordmark{display:inline-block;flex:none;background:currentColor;overflow:hidden;white-space:nowrap}.brand-symbol{width:31px;height:31px;-webkit-mask:url('/assets/mark.svg') center/contain no-repeat;mask:url('/assets/mark.svg') center/contain no-repeat}.brand-wordmark{width:139px;height:32px;color:inherit;-webkit-mask:url('/assets/wordmark.svg') center/contain no-repeat;mask:url('/assets/wordmark.svg') center/contain no-repeat;font-size:0;line-height:0}
.app-head .brand-symbol{width:28px;height:28px}.app-head .brand-wordmark{width:121px;height:28px}@media(max-width:760px){.app-head .brand{gap:7px}.app-head .brand-symbol{width:25px;height:25px}.app-head .brand-wordmark{width:111px;height:26px}}@media(max-width:400px){.app-head .brand-symbol{width:23px;height:23px}.app-head .brand-wordmark{width:100px;height:24px}.head-actions button{font-size:9px}}
