@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&display=swap');
:root{--ink:#292b25;--muted:#63655b;--paper:#f8f5ed;--white:#fffdf8;--line:#d8d4c8;--accent:#93472e;--wash:#eee9dc;--red:#9e3434;font-family:'DM Sans',Arial,sans-serif;color:var(--ink);background:var(--paper);font-size:16px;line-height:1.55}
*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea{touch-action:manipulation}button{cursor:pointer;border:0}button:disabled{cursor:default;opacity:.7}a{color:var(--accent)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}h1,h2,h3,p{margin:0}h1,.brand,.sidebar h2,.question,#sourceText{font-family:Georgia,'Times New Roman',serif}h1{font-size:clamp(2rem,3vw,2.8rem);font-weight:400;line-height:1.12;letter-spacing:-.035em}h2{font-size:1rem;font-weight:600;line-height:1.4}h3{font-size:1rem;font-weight:600;line-height:1.4}p{line-height:1.65}.muted{color:var(--muted);font-size:.8125rem}.tiny-label,.source-label,.room-label{font-size:.8125rem;color:var(--muted);font-weight:500}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 32px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:18px;color:var(--ink);text-decoration:none;font-size:1.65rem;letter-spacing:-.06em}.brand-rule{width:34px;height:2px;background:var(--accent)}.top-actions{display:flex;align-items:center;gap:28px}.text-button{padding:5px 0;background:transparent;color:var(--accent);font-weight:500;font-size:.875rem;text-align:left;text-decoration:underline;text-underline-offset:4px;text-decoration-color:transparent}.text-button:hover{text-decoration-color:currentColor}.type-button{background:transparent;color:var(--ink);font-family:Georgia,serif;font-size:1.2rem;min-width:38px;min-height:38px;border-bottom:1px solid var(--line)}.type-button[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}.app-shell{display:grid;grid-template-columns:235px minmax(0,1fr);min-height:calc(100vh - 72px)}.sidebar{padding:36px 28px;border-right:1px solid var(--line);display:flex;flex-direction:column}.room-label{margin-bottom:9px}.sidebar h2{font-size:1.5rem;font-weight:400;line-height:1.22;letter-spacing:-.02em;overflow-wrap:anywhere}.sidebar>.muted{margin:9px 0 25px;line-height:1.5}.primary,.secondary{padding:11px 16px;min-height:44px;border-radius:3px;font-size:.875rem;font-weight:500;white-space:normal}.primary{background:var(--accent);color:var(--white)}.primary:hover{background:#783923}.secondary{border:1px solid #aaa699;background:transparent;color:var(--ink)}.secondary:hover{background:var(--wash)}.full{width:100%}.sidebar>.secondary{display:flex;justify-content:space-between;align-items:center}.sidebar>.secondary span{font-size:1.25rem;line-height:1}.sidebar nav{display:flex;flex-direction:column;margin:35px 0;gap:2px}.nav-item{display:flex;align-items:center;gap:14px;min-height:48px;padding:11px 0;width:100%;background:transparent;color:var(--muted);text-align:left;font-size:.875rem;border-bottom:1px solid transparent}.nav-item:hover{color:var(--ink)}.nav-item.selected{color:var(--accent);border-color:var(--accent)}.nav-num,.count,.source-number,.result-index,.queue-num{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-variant-numeric:tabular-nums;font-size:.75rem;font-weight:400}.nav-num{color:var(--muted)}.count{margin-left:auto;color:var(--muted)}.sidebar-bottom{margin-top:auto;padding-top:36px;border-top:1px solid var(--line);font-size:.8125rem}.sidebar-bottom strong{font-weight:500}.sidebar-bottom p{color:var(--muted);font-size:.75rem;line-height:1.65;margin:8px 0 18px}.sidebar-bottom button{font-size:.75rem}main{padding:34px 44px 22px;max-width:1370px;width:100%;margin:0 auto;align-self:start}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}.page-heading p{margin-top:10px;color:var(--muted);font-size:.875rem}.mode-label{font-size:.75rem;white-space:nowrap;color:var(--muted);padding-bottom:2px}.search-box{display:flex;align-items:center;gap:14px;padding:7px 7px 7px 17px;border:1px solid #aaa699;background:var(--white);border-radius:3px}.search-box:focus-within{outline:2px solid var(--accent);outline-offset:3px}.search-box input{flex:1;min-width:0;padding:9px 0;background:transparent;color:var(--ink);border:0;font-size:.9375rem;outline:none}.search-box input:focus-visible{outline:0}.search-box .primary{min-height:40px}.suggestions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 19px;font-size:.75rem;margin:11px 0 18px}.suggestions>span{color:var(--muted)}.suggestions button{background:transparent;color:var(--accent);padding:3px 0;text-decoration:underline;text-underline-offset:3px;font-size:.75rem}.suggestions button:hover{text-decoration-thickness:2px}.model-panel{display:flex;justify-content:space-between;align-items:flex-start;gap:22px;padding:13px 0 15px;border-bottom:1px solid var(--line);margin-bottom:25px}.model-panel strong{font-size:.8125rem;font-weight:500;display:block}.model-copy{min-width:0;flex:1}.model-panel details{font-size:.75rem;color:var(--muted);margin-top:3px}.model-panel summary{cursor:pointer;display:list-item;width:fit-content}.model-panel p{max-width:620px;margin-top:10px;font-size:.8125rem}.model-panel button{flex-shrink:0;font-size:.75rem}.model-panel progress{display:block;width:100%;height:6px;margin-top:12px;accent-color:var(--accent)}.section-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:13px}.section-top .muted{font-size:.75rem}.evidence-layout{display:grid;grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);gap:40px;align-items:start}.results{max-height:38rem;overflow:auto;scrollbar-width:thin;scrollbar-color:#bbb5a6 transparent;padding-right:12px}.result-card{display:flex;gap:17px;align-items:flex-start;position:relative;width:100%;padding:18px 0;background:transparent;border-top:1px solid var(--line);color:var(--ink);text-align:left}.result-card:last-child{border-bottom:1px solid var(--line)}.result-card:hover{background:var(--wash)}.result-card.selected{background:#eee8da}.result-index{color:var(--muted);width:22px;flex-shrink:0;padding-top:2px;margin-left:8px}.result-card.selected .result-index{color:var(--accent)}.result-copy{display:block;min-width:0;padding-right:10px}.result-meta{display:flex;justify-content:space-between;align-items:baseline;gap:14px;margin-bottom:6px}.result-meta strong{font-weight:600;font-size:.875rem}.result-meta>span{font-size:.625rem;color:var(--muted);white-space:nowrap}.result-excerpt{display:block;font-size:.8125rem;line-height:1.65;color:var(--muted)}.source-panel{position:sticky;top:24px;padding:0 0 0 28px;border-left:1px solid var(--line);min-width:0}.source-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px}.source-number{color:var(--accent);font-size:.9375rem}.source-panel h3{font-size:.875rem;font-weight:500;color:var(--muted);margin-bottom:18px}#sourceText{font-size:1.625rem;font-weight:400;line-height:1.62;letter-spacing:-.01em;overflow-wrap:anywhere;max-width:34ch}.source-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;color:var(--muted);font-size:.75rem;margin-top:28px}.source-footer button{font-size:.75rem}.source-divider{height:1px;background:var(--line);margin:26px 0 18px}.source-hint{font-size:.8125rem;color:var(--muted);margin-bottom:18px;max-width:45ch}.source-panel>.primary{background:transparent;color:var(--accent);border:1px solid #b2a294;min-height:42px}.source-panel>.primary:hover{background:var(--wash)}.workspace-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px 30px;border-top:1px solid var(--line);margin-top:34px;padding-top:17px;color:var(--muted);font-size:.6875rem}.empty-state{padding:26px 8px;border-top:1px solid var(--line)}.empty-state h3{font-size:1.1rem;margin-bottom:10px}.empty-state p{font-size:.875rem;color:var(--muted)}.practice-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(220px,.7fr);gap:50px}.practice-card{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:25px 0 28px;min-width:0}.practice-top{display:flex;justify-content:space-between;align-items:center;gap:16px;color:var(--muted);font-size:.75rem;margin-bottom:32px}.question{font-size:1.875rem;font-weight:400;line-height:1.6;letter-spacing:-.02em;margin-bottom:30px}.blank{display:inline-block;border-bottom:2px solid var(--accent);padding:0 8px;min-width:80px;text-align:center;color:var(--accent)}.answer-options{display:grid;grid-template-columns:1fr 1fr;gap:10px 20px}.answer-option{display:flex;align-items:baseline;gap:15px;padding:13px 12px;border:1px solid var(--line);border-radius:2px;background:var(--white);font-size:.875rem;text-align:left;color:var(--ink);min-height:48px;overflow-wrap:anywhere}.answer-letter{font-family:ui-monospace,monospace;font-size:.6875rem;color:var(--muted)}.answer-option:hover{border-color:var(--accent);background:var(--wash)}.answer-option.correct{color:#355136;border-color:#81967e;background:#ecf0e6}.answer-option.wrong{color:var(--red);border-color:#b97a72;background:#f5ebe4}.feedback{border-top:1px solid var(--line);margin-top:25px;padding-top:22px}.feedback h3{font-weight:500;margin-bottom:17px}.feedback .tiny-label{display:block;margin-bottom:8px}.feedback p{font-family:Georgia,serif;font-size:1.15rem;line-height:1.65}.feedback .text-button{margin-top:14px}.practice-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:26px}.practice-guide{padding-top:25px}.practice-guide h2{font-size:.875rem}.practice-guide ol{color:var(--muted);font-size:.8125rem;line-height:1.9;padding-left:19px;margin:16px 0}.practice-guide li{padding-left:4px;margin-bottom:8px}.practice-guide p{font-size:.8125rem;color:var(--muted);margin:22px 0}.progress-summary{padding:16px 0 20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:5px 0 30px;color:var(--muted);font-size:.875rem}.progress-summary strong{color:var(--ink);font-weight:600}.queue-item{display:flex;align-items:center;gap:23px;padding:19px 0;border-top:1px solid var(--line)}.queue-item:last-child{border-bottom:1px solid var(--line)}.queue-num{color:var(--muted);min-width:25px}.queue-copy{flex:1;min-width:0}.queue-item h3{font-size:.9375rem;font-weight:500}.queue-item p{font-size:.75rem;color:var(--muted);margin-top:5px}.priority{font-size:.75rem;color:var(--accent);margin-left:17px;font-weight:400}.queue-item button{flex-shrink:0;padding:8px 16px;min-height:38px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:min(90vw,600px);padding:13px 20px;background:var(--ink);color:var(--white);border-radius:3px;z-index:100;font-size:.875rem}.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}.skip{position:fixed;top:-100px;left:20px;background:var(--white);padding:15px;z-index:100}.skip:focus{top:10px}dialog{width:min(660px,calc(100vw - 32px));max-height:90vh;padding:32px;background:var(--paper);color:var(--ink);border:1px solid #aaa699;border-radius:3px;box-shadow:0 12px 50px #292b2520}dialog::backdrop{background:#292b2555}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.dialog-heading h2{font-family:Georgia,serif;font-size:1.6rem;font-weight:400;letter-spacing:-.02em}.close-button{font-size:1.5rem;background:transparent;color:var(--muted);min-width:36px;min-height:36px}dialog label:not(.checkbox-label){display:block;font-size:.875rem;font-weight:500;margin:17px 0 7px}dialog input:not([type=checkbox]),dialog textarea{display:block;width:100%;padding:11px 12px;border:1px solid #aaa699;border-radius:2px;background:var(--white);color:var(--ink)}dialog textarea{resize:vertical;line-height:1.6}dialog .muted{margin-top:8px}.checkbox-label{display:flex;align-items:center;gap:10px;font-size:.8125rem;margin-top:19px}.checkbox-label input{width:18px;height:18px;accent-color:var(--accent)}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.form-error{font-size:.8125rem;color:var(--red);margin-top:12px}.about-body h3{margin:24px 0 7px;font-size:.875rem}.about-body p{font-size:.875rem;color:var(--muted)}.about-links{display:flex;flex-wrap:wrap;gap:14px 22px;margin-top:25px;font-size:.8125rem}[hidden]{display:none!important}
@media(min-width:1700px){main{margin-left:0;padding-left:60px;padding-right:60px}.evidence-layout{gap:50px}}
@media(max-width:1100px){.app-shell{grid-template-columns:200px minmax(0,1fr)}.sidebar{padding:30px 22px}main{padding:30px 28px}.evidence-layout{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:23px}.source-panel{padding-left:23px}#sourceText{font-size:1.4rem}.result-meta{display:block}.result-meta>span{display:block;margin-top:4px}.practice-layout{grid-template-columns:1fr}.practice-guide{display:grid;grid-template-columns:1fr 1fr;gap:10px 30px;border-bottom:1px solid var(--line);padding-bottom:20px}.practice-guide h2{grid-column:1/-1}.practice-guide p{margin:12px 0}.practice-guide button{align-self:start}.page-heading{gap:20px}.mode-label{white-space:normal;max-width:145px;text-align:right}}
@media(max-width:760px){.topbar{height:64px;padding:0 20px}.brand{font-size:1.45rem}.brand-rule{width:24px}.top-actions{gap:18px}.top-actions .text-button{font-size:.75rem}.app-shell{display:block}.sidebar{padding:24px 20px 0;border-right:0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 18px}.room-label{font-size:.6875rem}.sidebar h2{font-size:1.35rem;grid-column:1;max-width:100%;line-height:1.3}.sidebar>.muted{grid-column:1;margin:7px 0 18px;font-size:.6875rem}.sidebar>.secondary{grid-column:2;grid-row:1/4;align-self:center;min-width:112px;padding:9px 12px;font-size:.75rem;gap:10px}.sidebar nav{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0}.nav-item{font-size:.75rem;justify-content:center;gap:7px;min-height:46px;white-space:normal;padding:10px 0}.nav-num,.count{display:none}.sidebar-bottom{display:none}main{padding:26px 20px 22px}.page-heading{align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:21px}.page-heading h1{font-size:2rem}.page-heading p{font-size:.8125rem;margin-top:8px}.page-heading .mode-label{font-size:.6875rem;text-align:left;max-width:none}.search-box{align-items:stretch;gap:8px;padding:6px 6px 6px 12px}.search-box input{font-size:.8125rem}.search-box .primary{font-size:.75rem;padding:9px 12px;min-width:84px}.search-box .primary span{display:none}.suggestions{gap:8px 16px;font-size:.6875rem}.suggestions>span{width:100%}.suggestions button{font-size:.75rem;min-height:28px}.model-panel{gap:17px;margin-bottom:23px}.model-panel button{max-width:120px;font-size:.6875rem}.model-panel strong{font-size:.75rem}.model-panel summary{font-size:.6875rem}.section-top{align-items:baseline;gap:12px}.section-top h2{font-size:.875rem}.section-top .muted{font-size:.6875rem;text-align:right}.evidence-layout{display:flex;flex-direction:column-reverse;gap:27px}.source-panel{position:static;width:100%;padding:21px 0 24px;border-left:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.source-head{margin-bottom:20px}.source-panel h3{margin-bottom:12px}#sourceText{font-size:1.55rem;max-width:34ch}.source-divider{margin:22px 0 15px}.source-hint{max-width:none}.results{width:100%;max-height:35rem;padding-right:4px}.result-card{padding:16px 0}.result-meta{display:flex}.result-meta>span{margin-top:0}.result-index{margin-left:3px}.practice-layout{gap:18px}.question{font-size:1.55rem;line-height:1.6}.answer-options{grid-template-columns:1fr;gap:8px}.practice-top{margin-bottom:23px}.practice-guide{display:block;padding-top:7px}.practice-guide p{margin:18px 0}.practice-actions{gap:16px;flex-wrap:wrap}.progress-summary{font-size:.8125rem;line-height:1.9}.queue-item{gap:14px;padding:18px 0;align-items:flex-start}.queue-num{min-width:19px;padding-top:3px}.queue-item h3{font-size:.875rem}.priority{display:block;margin:5px 0 0;font-size:.6875rem}.queue-item .secondary{font-size:.75rem;padding:8px 12px;min-height:38px}.workspace-footer{font-size:.625rem;gap:10px}.workspace-footer span{max-width:100%}dialog{padding:23px}.dialog-heading h2{font-size:1.4rem}}
@media(max-width:400px){.topbar{padding:0 16px}.brand{font-size:1.35rem}.brand-rule{display:none}.sidebar,main{padding-left:16px;padding-right:16px}.sidebar>.secondary{min-width:104px;padding:8px 10px}.page-heading .mode-label{width:100%}.result-meta{display:block}.result-meta>span{margin-top:4px}.search-box input{font-size:.75rem}}
@media(prefers-reduced-motion:no-preference){button{transition:background-color .12s,border-color .12s}}
