:root { color-scheme: light; --ink:#17221d; --muted:#637069; --paper:#f3f1e9; --card:#fffef9; --green:#176b4d; --red:#a33a32; --blue:#315e7a; --line:#d9d8cf; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; background:var(--paper); color:var(--ink); font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif; }
main { width:min(1120px,calc(100% - 32px)); margin:0 auto; }
.login-shell { min-height:100vh; display:grid; place-items:center; }
.login-card { width:min(430px,100%); padding:40px; background:var(--card); border:1px solid var(--line); border-radius:4px; box-shadow:12px 12px 0 #dfe4dc; }
.eyebrow { margin:0 0 8px; color:var(--green); font:700 12px/1.2 ui-monospace,monospace; letter-spacing:.16em; }
h1 { margin:0; font-family:Georgia,serif; font-size:clamp(32px,5vw,54px); font-weight:500; letter-spacing:-.03em; }
label { display:block; margin:28px 0 8px; font-weight:650; }
input,textarea { width:100%; border:1px solid #aaa; border-radius:3px; background:white; color:var(--ink); font:inherit; padding:12px; }
textarea { min-height:130px; resize:vertical; line-height:1.5; }
button { border:0; border-radius:3px; padding:11px 16px; background:var(--green); color:white; font:650 14px/1 system-ui,sans-serif; cursor:pointer; }
button:hover { filter:brightness(.92); }
button:disabled { opacity:.55; cursor:wait; }
.login-card button { width:100%; margin-top:14px; }
header { display:flex; justify-content:space-between; gap:24px; align-items:end; padding:48px 0 28px; border-bottom:1px solid var(--line); }
.header-actions,.actions { display:flex; flex-wrap:wrap; gap:8px; }
.secondary { background:var(--blue); }
.ghost { background:transparent; color:var(--muted); border:1px solid var(--line); }
.danger { background:var(--red); }
.stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:1px; margin:24px 0; background:var(--line); border:1px solid var(--line); }
.stat { background:var(--card); padding:18px; }
.stat strong { display:block; font:500 28px/1 Georgia,serif; }
.stat span { color:var(--muted); font-size:13px; }
.cards { display:grid; gap:18px; padding-bottom:64px; }
.card { background:var(--card); border:1px solid var(--line); padding:24px; border-left:5px solid var(--green); }
.card.attention { border-left-color:var(--blue); }
.card.sensible,.card.needs_review { border-left-color:var(--red); }
.meta { display:flex; gap:8px; flex-wrap:wrap; color:var(--muted); font-size:13px; }
.meta strong { color:var(--ink); }
.badge { padding:2px 7px; background:#e8ece8; border-radius:20px; }
.student { margin:16px 0; padding:16px; background:#edf2ef; white-space:pre-wrap; line-height:1.5; }
.draft-label { display:block; margin:0 0 7px; font-weight:700; }
.actions { margin-top:12px; }
.notice { margin:18px 0 0; padding:12px 16px; background:#e5efe9; border-left:4px solid var(--green); }
.notice.error { background:#f4e4e1; border-color:var(--red); }
.empty { padding:60px 24px; text-align:center; color:var(--muted); border:1px dashed #aaa; }
.error { min-height:1.2em; color:var(--red); }
a { color:var(--blue); }
.button-link { display:inline-flex; align-items:center; padding:10px 14px; border-radius:3px; background:var(--blue); color:white; text-decoration:none; font-weight:650; font-size:14px; }
@media (max-width:700px) { main{width:min(100% - 20px,1120px)} .login-card{padding:26px} header{align-items:start;flex-direction:column;padding-top:28px}.header-actions{width:100%}.header-actions button{flex:1}.card{padding:18px}.actions button{flex:1 1 45%} }
