:root{--bg: #f7f8fa;--surface: #ffffff;--surface-2: #f1f3f6;--text: #111827;--muted: #5b6474;--border: #e2e6ec;--accent: #2563eb;--accent-text: #ffffff;--ok: #15803d;--ok-bg: #e8f6ec;--warn: #a15c00;--warn-bg: #fff4e0;--bad: #b42318;--bad-bg: #fdecea;--info: #1e4fae;--info-bg: #e8effd;--radius: 10px;--shadow: 0 1px 2px rgb(16 24 40 / 6%);--font: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--mono: ui-monospace, "Cascadia Code", Consolas, monospace;color-scheme:light}@media(prefers-color-scheme:dark){:root{--bg: #0b0f17;--surface: #121826;--surface-2: #19202f;--text: #e8ecf3;--muted: #9aa4b5;--border: #263042;--accent: #5b8cff;--accent-text: #0b0f17;--ok: #4ade80;--ok-bg: #11291b;--warn: #fbbf24;--warn-bg: #2c2210;--bad: #f87171;--bad-bg: #2d1414;--info: #93b4ff;--info-bg: #142040;--shadow: none;color-scheme:dark}}*{box-sizing:border-box}html,body{margin:0}body{background:var(--bg);color:var(--text);font:15px/1.5 var(--font)}a{color:var(--accent)}h1{font-size:1.45rem;margin:0 0 .25rem}h2{font-size:1.1rem;margin:0 0 .75rem}h3{font-size:1rem;margin:0 0 .5rem}p{margin:.25rem 0 .75rem}code,pre{font-family:var(--mono);font-size:.86rem}pre{white-space:pre-wrap;word-break:break-word;background:var(--surface-2);padding:.75rem;border-radius:8px;border:1px solid var(--border);max-height:480px;overflow:auto}:focus-visible{outline:3px solid var(--accent);outline-offset:2px;border-radius:4px}.shell{display:grid;grid-template-columns:232px 1fr;min-height:100vh}.sidebar{background:var(--surface);border-right:1px solid var(--border);padding:1rem .75rem;position:sticky;top:0;height:100vh;overflow-y:auto}.brand{display:flex;align-items:center;gap:.5rem;font-weight:700;padding:.25rem .5rem 1rem}.brand img{width:26px;height:26px}.nav a{display:block;padding:.45rem .6rem;border-radius:8px;color:var(--text);text-decoration:none;margin-bottom:2px}.nav a:hover{background:var(--surface-2)}.nav a[aria-current=page]{background:var(--info-bg);color:var(--info);font-weight:600}.nav .section{color:var(--muted);font-size:.75rem;text-transform:uppercase;letter-spacing:.06em;padding:.9rem .6rem .3rem}.who{border-top:1px solid var(--border);margin-top:1rem;padding:.8rem .6rem 0;font-size:.85rem;color:var(--muted)}main{padding:1.5rem 2rem 3rem;max-width:1180px;width:100%}.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;margin-bottom:1.25rem;flex-wrap:wrap}.subtle{color:var(--muted)}.grid{display:grid;gap:1rem}.grid.cols-4{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.grid.cols-2{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1rem 1.1rem;box-shadow:var(--shadow)}.stat .value{font-size:1.6rem;font-weight:700}.stat .label{color:var(--muted);font-size:.85rem}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:.55rem .5rem;border-bottom:1px solid var(--border);vertical-align:top}th{color:var(--muted);font-weight:600;font-size:.82rem}tr:last-child td{border-bottom:0}.table-wrap{overflow-x:auto}button,.btn{font:inherit;border-radius:8px;border:1px solid var(--border);background:var(--surface);color:var(--text);padding:.45rem .85rem;cursor:pointer;min-height:36px}button.primary{background:var(--accent);color:var(--accent-text);border-color:var(--accent);font-weight:600}button.danger{color:var(--bad);border-color:var(--bad)}button:disabled{opacity:.55;cursor:not-allowed}.row{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}label{display:block;font-weight:600;font-size:.88rem;margin:.6rem 0 .25rem}input,select,textarea{font:inherit;width:100%;padding:.5rem .6rem;border-radius:8px;border:1px solid var(--border);background:var(--surface);color:var(--text)}textarea{min-height:84px;resize:vertical}.badge{display:inline-block;padding:.1rem .5rem;border-radius:999px;font-size:.78rem;font-weight:600;background:var(--surface-2);color:var(--muted);white-space:nowrap}.badge.ok{background:var(--ok-bg);color:var(--ok)}.badge.warn{background:var(--warn-bg);color:var(--warn)}.badge.bad{background:var(--bad-bg);color:var(--bad)}.badge.info{background:var(--info-bg);color:var(--info)}.notice{border-radius:var(--radius);padding:.75rem 1rem;margin-bottom:1rem;border:1px solid}.notice.warn{background:var(--warn-bg);color:var(--warn);border-color:currentColor}.notice.bad{background:var(--bad-bg);color:var(--bad);border-color:currentColor}.notice.info{background:var(--info-bg);color:var(--info);border-color:currentColor}.empty{color:var(--muted);padding:1.5rem;text-align:center}.chat{display:flex;flex-direction:column;gap:.75rem}.msg{max-width:760px;padding:.7rem .9rem;border-radius:12px;border:1px solid var(--border)}.msg.me{align-self:flex-end;background:var(--info-bg);border-color:transparent}.msg.lea{align-self:flex-start;background:var(--surface)}.msg .meta{font-size:.78rem;color:var(--muted);margin-top:.35rem}.composer{display:flex;gap:.5rem;margin-top:1rem;position:sticky;bottom:0;background:var(--bg);padding:.75rem 0}.composer textarea{min-height:52px}.flashcard{text-align:center;padding:2rem 1rem}.flashcard .prompt{font-size:1.8rem;font-weight:700}.flashcard .answer{font-size:1.2rem;margin-top:.75rem}.grades{display:grid;grid-template-columns:repeat(6,1fr);gap:.4rem;margin-top:1rem}.login{min-height:100vh;display:grid;place-items:center;padding:1rem}.login .card{width:100%;max-width:380px}.artifact-img{max-width:100%;height:auto;border:1px solid var(--border);border-radius:8px;background:var(--surface-2)}.skip{position:absolute;left:-999px}.skip:focus{left:1rem;top:1rem;background:var(--surface);padding:.5rem;z-index:10}@media(max-width:820px){.shell{grid-template-columns:1fr}.sidebar{position:static;height:auto;border-right:0;border-bottom:1px solid var(--border)}.nav{display:flex;flex-wrap:wrap;gap:.25rem}.nav .section{display:none}main{padding:1rem}.grades{grid-template-columns:repeat(3,1fr)}}
