:root{--header-height:72px;font-family:var(--font-sans)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;min-width:320px;min-height:100vh;margin:0}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,select{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.52}img,svg{max-width:100%;display:block}p,h1,h2,h3{overflow-wrap:anywhere}main{min-width:0}.shell{width:min(1180px,100% - 40px);margin:0 auto}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.field{gap:8px;min-width:0;display:grid}.field>span,.field>legend{color:var(--muted);font-size:13px;font-weight:760}input,select,textarea{border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);width:100%;min-width:0;color:var(--ink);outline:none;transition:border-color .15s,box-shadow .15s,background .15s}input,select{min-height:46px;padding:0 13px}textarea{resize:vertical;padding:12px 13px;line-height:1.55}input::placeholder,textarea::placeholder{color:var(--muted)}input:hover,select:hover,textarea:hover{border-color:var(--ink)}input:focus,select:focus,textarea:focus{border-color:var(--ink);box-shadow:0 0 0 3px var(--accent-soft)}input[type=radio],input[type=checkbox]{accent-color:var(--accent)}fieldset{min-width:0;margin:0}legend{padding:0}.button{border-radius:var(--radius-sm);background:var(--surface-2);min-height:44px;color:var(--ink);text-align:center;border:1px solid #0000;justify-content:center;align-items:center;gap:8px;padding:0 17px;font-weight:600;line-height:1;transition:box-shadow .15s,background .15s,color .15s,border-color .15s;display:inline-flex}.button:hover:not(:disabled){border-color:var(--border-strong)}.button.primary{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}.button.primary:hover:not(:disabled){background:var(--accent);box-shadow:inset 0 -2px 0 var(--on-accent);color:var(--on-accent)}.button.secondary{background:var(--surface);border-color:var(--border-strong);color:var(--ink)}.button.secondary:hover:not(:disabled),.button.ghost:hover:not(:disabled){border-color:var(--ink);background:var(--surface)}.button.ghost{border-color:var(--border);color:var(--ink);background:0 0}.button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}.notice{border-radius:var(--radius-sm);overflow-wrap:anywhere;border:1px solid;border-left-width:3px;padding:14px 16px;line-height:1.5;position:relative}.notice.error{color:var(--bad);background:var(--bad-soft);border-color:var(--border)}.notice.warning{color:var(--warn);background:var(--warn-soft);border-color:var(--warn)}.notice.info{color:var(--accent-ink);background:var(--accent-soft);border-color:var(--border)}.notice .button{margin-left:12px}.form-stack{align-content:start;gap:14px;min-width:0;display:grid}@media (max-width:760px){:root{--header-height:62px}.shell{width:min(100% - 26px,1180px)}}@media (max-width:620px){.shell{width:min(100% - 20px,1180px)}.notice .button{width:100%;margin:10px 0 0;display:flex}}@media (max-width:400px){.button{width:100%}}.skip-link{z-index:1000;border-radius:var(--radius-sm);background:var(--accent);min-height:42px;color:var(--on-accent);box-shadow:var(--shadow-2);align-items:center;padding:0 14px;font-weight:600;transition:transform .15s;display:inline-flex;position:fixed;top:12px;left:16px;transform:translateY(-160%)}.skip-link:focus{outline:3px solid var(--focus);outline-offset:2px;transform:translateY(0)}.skeleton-line{border-radius:var(--radius-cell);background:var(--surface-2);height:13px;position:relative;overflow:hidden}.skeleton-line:after{content:"";background:linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 55%, transparent), transparent);animation:1.35s ease-in-out infinite skeleton-sweep;position:absolute;inset:0;transform:translate(-100%)}@keyframes skeleton-sweep{to{transform:translate(100%)}}meter{border-radius:var(--radius-cell);background:var(--border);border:0;width:100%;height:10px;overflow:hidden}meter::-webkit-meter-bar{background:var(--border);border-radius:var(--radius-cell);border:0}meter::-webkit-meter-optimum-value{background:var(--accent);border-radius:0}meter::-moz-meter-bar{background:var(--accent);border-radius:0}@media (prefers-reduced-motion:reduce){.skeleton-line:after{animation:none}}input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--focus);outline-offset:2px}@media (prefers-contrast:more){input,select,textarea,.button{border-width:2px}}@media (max-width:760px){.notice-with-action{flex-direction:column}.notice-with-action .button{width:100%}}.assignment-primary-button,.assignment-panel-button{border-radius:var(--radius-sm);justify-content:center;align-items:center;gap:12px;min-height:44px;padding:0 15px;font-size:11px;font-weight:720;transition:transform .14s,border-color .14s,background .14s,color .14s,box-shadow .14s;display:inline-flex}.assignment-primary-button{border:1px solid var(--accent);color:var(--on-accent);background:var(--accent);box-shadow:none}.assignment-primary-button:hover:not(:disabled){border-color:var(--accent);box-shadow:none;transform:translateY(-1px)}.assignment-panel-button{border:1px solid var(--border);color:var(--ink);background:var(--surface-2)}.assignment-panel-button:hover:not(:disabled){color:var(--ink);border-color:var(--border);background:var(--surface-2)}.assignment-primary-button:disabled,.assignment-panel-button:disabled{opacity:.45;cursor:not-allowed}html{background:var(--bg);scrollbar-gutter:stable;scroll-padding-top:calc(var(--header-height) + 16px);-moz-text-size-adjust:100%;text-size-adjust:100%}body{min-height:100dvh}main{min-height:calc(100dvh - var(--header-height))}::selection{color:var(--on-accent);background:var(--accent)}@media (max-width:820px){html{scroll-padding-top:76px;scroll-padding-bottom:calc(92px + env(safe-area-inset-bottom))}}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.notice-with-action{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;display:flex}.notice-with-action>span{flex:260px;min-width:0}.notice-with-action>button:not(.button){border:1px solid var(--border);border-radius:var(--radius-sm);min-height:36px;color:var(--ink);background:var(--surface-2);flex:none;padding:0 12px;font-size:10.5px;font-weight:720;transition:border-color .15s,background .15s,color .15s}.notice-with-action>button:not(.button):hover:not(:disabled){color:var(--ink);border-color:var(--accent);background:var(--accent-soft)}@media (max-width:620px){.notice-with-action{flex-direction:column;align-items:stretch;gap:10px}.notice-with-action>button:not(.button),.notice-with-action>.button{width:100%;min-height:42px;margin:0}}.notice-with-action>button:not(.button),.notice-with-action>.button{margin-left:auto}#main-content:focus{outline:none}.student-assignment-page{color:var(--ink);gap:18px;padding-top:32px;padding-bottom:110px;display:grid}.student-assignment-page.narrow{max-width:780px}.student-assignment-page h1{margin:0;font-size:clamp(28px,5vw,42px);line-height:1.18}.student-assignment-page h2{margin:0 0 12px;font-size:22px}.student-assignment-page p{color:var(--muted);margin:0;line-height:1.6}.student-assignment-page a{color:var(--accent-ink)}.student-assignment-page button{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-2);min-height:44px;color:var(--ink);cursor:pointer;padding:10px 18px}.student-assignment-page button:disabled{opacity:.55;cursor:default}.student-assignment-page button:focus-visible,.student-assignment-page a:focus-visible{outline:2px solid var(--focus);outline-offset:4px}.student-assignment-page [role=alert]{color:var(--bad)}:where(a[href],button,input,select,textarea,summary,[tabindex]:not([tabindex="-1"]),[role=button]):focus-visible{outline:3px solid var(--focus)!important;outline-offset:2px!important}#main-content{overflow-clip-margin:8px;overflow-x:clip}#main-content:focus-visible{outline:none!important}pre{max-width:100%;overflow-x:auto}.table-scroll{overscroll-behavior-x:contain;max-width:100%;overflow-x:auto}.table-scroll>table{border-collapse:collapse;min-width:100%}.table-scroll caption{caption-side:top;text-align:left;padding:0 0 8px;font-weight:700}html.app-dialog-open{overflow:hidden}.app-dialog-backdrop{z-index:1000;background:var(--scrim);place-items:center;padding:16px;display:grid;position:fixed;inset:0}.app-dialog{border:1px solid var(--border);border-radius:var(--radius-lg);width:min(480px,100%);max-height:calc(100dvh - 32px);color:var(--ink);background:var(--surface);box-shadow:var(--shadow-2);gap:14px;padding:22px;display:grid;overflow:auto}.app-dialog:focus{outline:none}.app-dialog-title{margin:0;font-size:19px;line-height:1.3}.app-dialog-message{color:var(--ink);white-space:pre-line;overflow-wrap:anywhere;margin:0;line-height:1.55}.app-dialog-form{gap:14px;display:grid}.app-dialog-field{gap:6px;display:grid}.app-dialog-field label{color:var(--ink);font-size:13px;font-weight:700}.app-dialog-field input,.app-dialog-field textarea{border:1px solid var(--border-strong);border-radius:var(--radius-sm);width:100%;min-height:44px;color:var(--ink);background:var(--surface);padding:10px 12px}.app-dialog-field [aria-invalid=true]{border-color:var(--bad)}.app-dialog-error{color:var(--bad);margin:0;font-size:13px}.app-dialog-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.app-dialog-button{border:1px solid var(--border);border-radius:var(--radius-sm);min-height:44px;color:var(--ink);background:var(--surface-2);cursor:pointer;padding:0 16px;font-weight:600}.app-dialog-confirm{border-color:var(--accent);background:var(--accent);color:var(--on-accent)}.app-dialog-confirm.danger{border-color:var(--bad);background:var(--bad-soft);color:var(--bad)}@media (max-width:420px){.app-dialog-actions{flex-direction:column-reverse}.app-dialog-button{width:100%}}@media (prefers-reduced-motion:no-preference){.app-dialog{animation:.14s ease-out app-dialog-in}}@keyframes app-dialog-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}.field-error{color:var(--bad);margin:4px 0 0;font-size:13px;font-weight:600;line-height:1.4}.field-error:before{content:"⚠ " / ""}:is(input,select,textarea)[aria-invalid=true]{box-shadow:0 0 0 1px var(--bad);border-color:var(--bad)!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}body{font-family:var(--font-sans);background:var(--bg);color:var(--ink)}code,kbd,pre,samp{font-family:var(--font-mono)}.skip-link:not(:focus){box-shadow:none}body{font-feature-settings:"kern" 1;font-size:16px;line-height:1.5}:where(h1,h2,h3,h4){letter-spacing:-.012em;font-weight:600;line-height:1.2}:where(table,meter,output,time,kbd,code,pre,samp){font-variant-numeric:tabular-nums}mark{color:inherit;background:var(--accent-soft)}.marker{color:inherit;background:var(--marker-band);-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:0 .08em}.grid-paper{background:var(--grid-paper), var(--surface)}.num{font-family:var(--font-mono);font-variant-numeric:tabular-nums;letter-spacing:0}
