:root{--ink:#172c42;--muted:#586b7b;--blue:#155fa2;--blue-dark:#104a80;--line:#d9e2ea;--paper:#fff;--wash:#f3f6f9;--soft:#eaf2fa;--red:#a32d32;--green:#216846;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-size:16px;line-height:1.55;font-synthesis:none}*{box-sizing:border-box}body{margin:0}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}button,input,textarea,select{font:inherit}button,a,input,textarea,select,summary{touch-action:manipulation}button{cursor:pointer}button:disabled,fieldset:disabled{cursor:default;opacity:.7}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #73ace0;outline-offset:4px}input,textarea,select{width:100%;padding:.7rem .8rem;border:1px solid #aebfce;border-radius:6px;color:var(--ink);background:white;min-height:46px}input:focus,textarea:focus,select:focus{outline:2px solid #82b2df;outline-offset:1px;border-color:var(--blue)}textarea{resize:vertical;line-height:1.6;min-width:9rem}label{display:block;font-size:.95rem;font-weight:550}label>input,label>select,label>textarea{margin-top:.4rem}input[type=checkbox],input[type=radio]{width:20px;height:20px;min-height:20px;accent-color:var(--blue);margin:0;flex-shrink:0}input[type=file]{max-width:100%;font-size:.9rem}h1,h2,h3,h4{line-height:1.2;letter-spacing:-.025em;margin:0 0 1rem}h1{font-size:2.35rem;font-weight:650}h2{font-size:1.65rem;font-weight:620}h3{font-size:1.2rem;font-weight:620}h4{font-size:1rem;margin-top:1.5rem}p{margin:0 0 1rem}ul,ol{padding-left:1.3rem}li{margin-bottom:.6rem}fieldset{border:0;padding:0;margin:0}legend{font-size:1.15rem;font-weight:650;margin-bottom:1rem}hr{border:0;border-top:1px solid var(--line);margin:2rem 0}[hidden]{display:none!important}.site-header{min-height:92px;display:flex;align-items:center;justify-content:space-between;padding:1.25rem max(2rem,calc((100vw - 1200px)/2));gap:2rem;border-bottom:1px solid var(--line);background:white}.brand{display:flex;align-items:center;gap:.8rem;color:var(--ink);font-size:1.15rem;font-weight:650;white-space:nowrap;line-height:1.2}.brand:hover{text-decoration:none}.brand-mark{display:grid;place-items:center;background:var(--ink);color:white;border-radius:8px;width:44px;height:44px;font-size:1.4rem}.brand-sub{display:block;font-size:.8rem;color:var(--muted);font-weight:450;letter-spacing:.01em;margin-top:.3rem}.site-header nav{display:flex;gap:1.5rem;align-items:center;flex-wrap:wrap;font-size:.92rem}.site-header nav>a{color:var(--ink)}.site-header nav>.button{color:white}.site-header form{margin:0}.site-header .user-name{color:var(--muted)}.container{max-width:1200px;margin:0 auto;padding:0 2rem 5rem;min-height:65vh}.site-footer{border-top:1px solid var(--line);max-width:1200px;margin:auto;padding:2rem;display:flex;justify-content:space-between;gap:1rem;font-size:.85rem;color:var(--muted)}.button{display:inline-flex;align-items:center;justify-content:center;gap:1.4rem;padding:.85rem 1.35rem;color:white;background:var(--blue);border:1px solid var(--blue);border-radius:6px;font-weight:550;line-height:1.4;min-height:46px;white-space:normal;text-align:center}.button:hover{background:var(--blue-dark);text-decoration:none;color:white}.button.secondary{background:white;color:var(--blue);border-color:#b6cde0}.button.secondary:hover{background:var(--soft)}.button.small{padding:.55rem .85rem;font-size:.9rem;min-height:38px}.link-button{border:0;background:transparent;color:var(--blue);padding:.25rem 0;font-size:inherit;line-height:1.5}.link-button:hover{text-decoration:underline}.text-link{font-weight:550}.actions{display:flex;align-items:center;gap:1.2rem;flex-wrap:wrap}.eyebrow{font-size:.78rem;letter-spacing:.13em;font-weight:650;color:var(--blue);margin-bottom:1.4rem}.hero{padding:5.6rem 0 0}.hero h1{font-size:clamp(2.5rem,4.5vw,3.8rem);line-height:1.12;max-width:1000px;margin-bottom:1.6rem;font-weight:630}.hero .lead{font-size:1.2rem;color:var(--muted);line-height:1.65;margin-bottom:2rem}.hero-line{display:flex;gap:2.5rem;padding:2rem 0;margin-top:3.8rem;border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:var(--muted);font-size:.92rem}.hero-line span+span:before{content:'·';margin-right:2.5rem;color:#889caf}.section{padding-top:4rem;scroll-margin-top:2rem}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:2rem;margin-bottom:1.7rem}.section-heading .eyebrow{margin-bottom:.7rem}.section-heading h2{margin-bottom:0}.section-heading>span{font-size:.9rem}.lecture-row{display:flex;gap:2rem;align-items:center;padding:1.8rem 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.lecture-row>div:nth-child(2){flex:1}.lecture-row h3{margin:0 0 .5rem}.lecture-row p{color:var(--muted);margin:0;font-size:.95rem}.large-number{font-size:2.5rem;font-weight:350;letter-spacing:-.06em;color:#66829b}.lecture-row h3 a{color:var(--ink)}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:1.4rem}.lab-card{padding:2rem;background:var(--wash);border:1px solid var(--line);border-radius:8px}.tag{display:inline-block;padding:.3rem .65rem;border:1px solid var(--line);border-radius:4px;font-size:.78rem;line-height:1.4;color:var(--muted);background:white}.lab-card h3{font-size:1.5rem;margin:1.3rem 0 .8rem}.lab-card p{color:var(--muted)}.lab-card>.muted{display:block;margin-top:1.7rem;font-size:.86rem}.start-strip{display:flex;align-items:center;gap:3rem;justify-content:space-between;padding:2rem 0}.start-strip>div{max-width:760px}.start-strip h3{margin-bottom:.6rem}.start-strip p{margin:0;color:var(--muted)}.muted{color:var(--muted)}.auth-card{max-width:480px;margin:5rem auto;padding:2rem;border:1px solid var(--line);border-radius:10px;background:white}.auth-card h1{font-size:2rem}.auth-card p{color:var(--muted)}.auth-card>.button{margin-top:1rem}.stack{display:flex;flex-direction:column;gap:1.3rem}.stack>.button{align-self:flex-start}.auth-card .stack>.button{width:100%;margin-bottom:1rem}.page-heading{padding:3rem 0 2rem}.page-heading>a:first-child{display:inline-block;margin-bottom:1.4rem}.page-heading p{color:var(--muted)}.page-heading.compact{padding:1.7rem 0 1rem}.page-heading.compact h1{font-size:2rem}.empty-state{padding:4rem;max-width:750px;background:var(--wash);border:1px solid var(--line);border-radius:8px;margin:1rem auto;text-align:center}.empty-state .large-number{display:block;margin-bottom:1rem}.empty-state p{color:var(--muted)}.empty-state .button{margin-top:1rem}.project-card{border:1px solid var(--line);border-radius:8px;padding:2rem;display:flex;gap:2rem;align-items:center;justify-content:space-between;margin-bottom:1.5rem}.project-card h2{margin:1rem 0 .7rem}.status-list{display:flex;gap:1rem;flex-wrap:wrap;font-size:.9rem;color:var(--muted)}.wide-form{max-width:1000px}.radio-card{border:1px solid var(--line);border-radius:8px;padding:1.2rem;display:grid;grid-template-columns:24px 1fr;gap:.5rem .8rem;cursor:pointer}.radio-card span{grid-column:2;font-size:.9rem;color:var(--muted);font-weight:400}.radio-card:has(:checked),.variant-card:has(:checked){background:var(--soft);border-color:var(--blue)}.variant-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.variant-card{border:1px solid var(--line);border-radius:8px;padding:1.2rem;display:grid;grid-template-columns:24px 28px 1fr;gap:.6rem;cursor:pointer}.variant-card>span:last-child{grid-column:2 / 4;font-size:.9rem;font-weight:400;color:var(--muted)}.variant-card strong{font-size:1rem}.messages{max-width:1200px;margin:1rem auto;padding:0 2rem}.notice{padding:1rem 1.2rem;background:var(--soft);border-left:3px solid var(--blue);border-radius:3px;margin-bottom:1.2rem;line-height:1.6}.notice.error{background:#fff2f2;color:#81272a;border-color:var(--red)}.notice.success{background:#edf8f1;color:var(--green);border-color:var(--green)}.pdf-viewer{width:100%;height:76vh;border:1px solid var(--line);border-radius:6px}.workspace{display:grid;grid-template-columns:285px minmax(0,1fr);max-width:1500px;margin:0 auto;min-height:85vh}.project-sidebar{border-right:1px solid var(--line);background:#f8fafc;padding:2rem 1.3rem;align-self:start;position:sticky;top:0;max-height:100vh;overflow:auto}.project-sidebar>.text-link{font-size:.88rem}.project-sidebar h2{font-size:1.1rem;margin:1.3rem 0 1rem;overflow-wrap:anywhere}.project-sidebar nav{margin-top:1.7rem}.nav-label{font-size:.76rem;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);font-weight:650;margin:1.7rem .7rem .6rem}.project-sidebar nav a,.project-sidebar nav>.locked{display:flex;align-items:start;gap:.7rem;padding:.65rem .7rem;font-size:.87rem;line-height:1.4;border-radius:5px;margin-bottom:.15rem;color:var(--ink)}.project-sidebar nav a>span,.locked>span:first-child{color:#6c7f91;font-size:.8rem;min-width:20px;padding-top:2px}.project-sidebar nav a:hover{background:var(--soft);text-decoration:none}.project-sidebar nav a.current{background:var(--soft);font-weight:600;color:var(--blue)}.project-sidebar nav>.locked{color:#738392}.sidebar-bottom{display:block;padding:1.7rem .7rem 0;font-size:.85rem}.editor{padding:0 2.5rem 4rem;min-width:0;max-width:1100px}.editor-top{padding:1.2rem 0;border-bottom:1px solid var(--line);display:flex;gap:1rem;justify-content:space-between;color:var(--muted);font-size:.8rem}.editor-top .error{color:var(--red)}.source-panel{border:1px solid var(--line);border-radius:7px;margin:1rem 0;background:white}.source-panel>summary{padding:1.1rem 1.3rem;cursor:pointer;font-size:.95rem;font-weight:600;color:var(--ink)}.source-panel[open]>summary{border-bottom:1px solid var(--line);background:var(--wash)}.source-content{padding:1.5rem}.source-content blockquote{margin:1rem 0;padding:.5rem 1.3rem;border-left:3px solid #a5c1d9;color:var(--muted)}.source-content ol,.source-content ul{font-size:.95rem}.source-content>details{border-top:1px solid var(--line);padding-top:1rem}.source-content>details summary{cursor:pointer;color:var(--blue)}.table-scroll{overflow:auto;width:100%;-webkit-overflow-scrolling:touch}table{border-collapse:collapse;width:100%;font-size:.9rem;line-height:1.5}td,th{text-align:left;vertical-align:top;border:1px solid var(--line);padding:.85rem}th{font-weight:550;background:var(--wash);color:#3a5369;font-size:.85rem}td p:last-child{margin-bottom:0}.answer-sections{margin-top:2rem}.answer-block{margin:2rem 0 2.5rem}.answer-block>h2{font-size:1.2rem;margin-bottom:1.1rem}.answer-table td{padding:.6rem}.answer-table th{min-width:105px}.answer-table textarea{border:1px solid #bdccda;border-radius:5px;font-size:.95rem;min-height:110px;padding:.7rem}.answer-table td:has(.field-wrap){min-width:170px}.answer-table td:has(.read-answer){min-width:120px}.answer-table td:has(> .field-wrap)>div{width:100%}.answer-table:has(th:nth-child(5)){min-width:700px}.answer-table:has(th:nth-child(4)){min-width:640px}.field-meta{display:flex;justify-content:space-between;gap:.5rem;font-size:.75rem;min-height:1.5rem;padding-top:.3rem}.field-meta a{color:var(--muted)}.field-status[data-state=error],.field-status[data-state=conflict]{color:var(--red)}.field-status[data-state=saved]{color:var(--green)}.field-wrap:has(.conflict:not([hidden])) textarea{border-color:#b96b22;background:#fffdf8}.conflict{margin-top:.75rem;padding:1rem;background:#fff6e8;border:1px solid #e2bb84;border-radius:5px;min-width:260px}.conflict strong{font-size:.9rem}.conflict p{font-size:.85rem;margin:.7rem 0}.remote-value{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:.9rem;background:white;padding:.6rem;max-height:240px;overflow:auto;border:1px solid #e2bb84}.read-answer{white-space:normal;overflow-wrap:anywhere;min-height:2rem;padding:.3rem 0;max-width:100%}.instruction{color:var(--muted);font-size:.95rem}.add-row{font-size:.9rem;margin-top:.7rem}.diagram-block{padding:1.5rem;border:1px solid var(--line);border-radius:8px}.diagram-preview{display:block;max-width:100%;max-height:420px;object-fit:contain;margin:1rem auto}.upload-zone{display:flex;flex-direction:column;gap:.4rem;padding:1.2rem;background:var(--wash);border:1px dashed #98afc4;border-radius:6px;margin-bottom:1rem}.upload-zone>span{color:var(--muted);font-size:.85rem;font-weight:400}.upload-zone input{background:white;max-width:500px}.upload-status{font-size:.9rem;margin-top:.7rem}.next-step{background:var(--soft);padding:1.6rem;border-radius:8px;margin-top:2rem}.next-step h2{font-size:1.3rem}.next-step p{font-size:.95rem}.page-navigation{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin:2.5rem 0}.project-bottom{border-top:1px solid var(--line);padding:2rem 0}.submission-card{border:1px solid var(--line);padding:1.3rem;border-radius:7px;margin-bottom:1.5rem}.submission-card h3{font-size:1rem}.submission-card p{font-size:.9rem;margin-top:1rem}.inline{display:flex;align-items:center;gap:.7rem;font-weight:450;margin:.5rem 0 1rem}.inline>input{margin-top:0}.filters{padding:1.3rem;border:1px solid var(--line);border-radius:7px;display:grid;grid-template-columns:1.1fr 1fr 1.4fr .7fr .9fr auto;gap:.8rem;align-items:end;background:var(--wash)}.filters label{font-size:.8rem}.filters input,.filters select{font-size:.85rem}.export-actions{margin:1.3rem 0;font-size:.9rem}.project-list{min-width:750px}.project-list td{padding:1.2rem}.project-list p{margin:.5rem 0}.criterion{display:flex;gap:2rem;justify-content:space-between;padding:1.5rem 0;border-top:1px solid var(--line)}.criterion h3{font-size:1.05rem}.criterion p{font-size:.9rem;color:var(--muted);max-width:780px;margin-bottom:.6rem}.score-select{min-width:115px;max-width:200px}.score-select label{margin-bottom:.8rem;font-size:.9rem}.search-form{display:flex;gap:1rem;align-items:end;margin:2rem 0}.grow{flex:1}.users{min-width:760px}.users .user-edit{display:flex;flex-direction:column;gap:.6rem}.users .user-edit label{font-size:.85rem;margin-bottom:0}.users .user-edit .button{align-self:start}.users p{font-size:.85rem}.group-card{padding:1.5rem;border:1px solid var(--line);border-radius:7px}.group-card .inline{margin:0;font-size:.9rem}.history-card{border:1px solid var(--line);border-radius:7px;padding:1.4rem;margin:1rem 0 1.5rem}.history-card strong{font-size:.95rem}.history-card .read-answer{margin-top:1rem}.event-list{padding-left:1.3rem}.event-list p{color:var(--muted);font-size:.85rem;margin:.2rem 0}.event-list li{margin-bottom:1rem}.sr-only,.skip{position:absolute;clip:rect(0,0,0,0);height:1px;width:1px;overflow:hidden}.skip:focus{clip:auto;position:fixed;top:0;left:1rem;height:auto;width:auto;padding:.8rem;background:white;z-index:100}.file-list a{font-size:.9rem}code{background:var(--wash);padding:.15rem .3rem;font-size:.9em}.error{color:var(--red)}
@media(min-width:1440px){.editor{padding-right:3rem;padding-left:3rem}}
@media(max-width:1100px){.site-header{padding:1rem 1.5rem}.site-header nav{gap:.9rem;font-size:.85rem}.workspace{grid-template-columns:245px minmax(0,1fr)}.project-sidebar{padding:1.5rem 1rem}.editor{padding:0 1.5rem 3rem}.filters{grid-template-columns:repeat(3,1fr)}.lecture-row .actions{gap:.7rem}.hero h1{font-size:3.2rem}}
@media(max-width:760px){.site-header{align-items:start;gap:1rem;padding:1rem;flex-direction:column}.site-header nav{gap:.75rem 1rem;width:100%}.brand{font-size:1rem}.brand-mark{width:36px;height:36px}.brand-sub{font-size:.74rem}.site-header nav .user-name{margin-left:auto}.container{padding:0 1.1rem 3rem}.hero{padding-top:3rem}.hero h1{font-size:2.35rem}.hero h1 br{display:none}.hero .lead{font-size:1.05rem}.hero-line{flex-direction:column;gap:.6rem;margin-top:2.4rem;padding:1.2rem 0}.hero-line span+span:before{display:none}.section{padding-top:2.5rem}.section-heading{display:block}.section-heading>span{display:block;margin-top:.7rem}.lecture-row{gap:1rem;flex-wrap:wrap}.lecture-row .actions{width:100%;padding-left:3.2rem}.large-number{font-size:2rem}.two-columns,.variant-grid{grid-template-columns:1fr}.lab-card{padding:1.5rem}.start-strip{align-items:start;flex-direction:column;gap:1.3rem}.site-footer{padding:1.5rem 1rem;flex-direction:column;gap:.5rem}.auth-card{margin:2rem auto;padding:1.5rem}.auth-card h1{font-size:1.8rem}.page-heading{padding-top:2rem}.page-heading h1{font-size:1.9rem}.project-card{display:block;padding:1.5rem}.project-card .button{margin-top:1.2rem}.empty-state{padding:2rem 1.2rem}.workspace{display:block}.project-sidebar{position:static;max-height:none;border-right:0;border-bottom:1px solid var(--line);padding:1rem}.project-sidebar h2{margin:.7rem 0;font-size:1rem}.project-sidebar nav{display:flex;overflow:auto;gap:.3rem;margin-top:1rem;padding-bottom:.5rem}.project-sidebar nav .nav-label{display:none}.project-sidebar nav a,.project-sidebar nav>.locked{min-width:165px;margin:0;font-size:.8rem;border:1px solid var(--line)}.sidebar-bottom{padding:.5rem 0 0;font-size:.8rem}.editor{padding:0 1rem 3rem}.editor-top{font-size:.75rem;align-items:start}.page-heading.compact h1{font-size:1.7rem}.source-content{padding:1rem}.source-panel>summary{padding:.9rem 1rem}.answer-block{margin:1.7rem 0}.answer-table th{font-size:.8rem}.answer-table{min-width:500px}.answer-table:has(th:only-child){min-width:0}.diagram-block{padding:1rem}.page-navigation{flex-wrap:wrap;gap:1rem}.project-bottom>.actions{align-items:start;flex-direction:column}.filters{grid-template-columns:1fr 1fr;padding:1rem}.filters .button{width:100%}.criterion{gap:1rem;flex-direction:column}.score-select{max-width:100%;display:flex;align-items:center;gap:1rem}.score-select>select{max-width:100px}.score-select label{flex:1}.search-form{align-items:stretch;flex-direction:column}.messages{padding:0 1rem}.pdf-viewer{height:65vh}.conflict{min-width:230px}}
@media print{.site-header,.site-footer,.project-sidebar,button,.page-navigation{display:none!important}.workspace{display:block}.editor,.container{max-width:none;padding:0}details{display:block}table{page-break-inside:auto}tr{page-break-inside:avoid}.answer-table textarea{border:0}.source-panel{display:none}}

.lecture-viewer{margin:1rem 0 2rem;min-width:0}.pdf-controls{display:flex;flex-wrap:wrap;align-items:center;gap:1rem;margin-bottom:1rem}.pdf-controls label{display:flex;align-items:center;gap:.6rem}.pdf-controls select{width:5rem;margin:0}.lecture-viewer canvas{display:block;width:100%;height:auto;border:1px solid var(--line);background:var(--wash)}[data-pdf-text]{white-space:pre-line}.lecture-viewer [role=status]{color:var(--muted);font-size:.9rem}
