:root { color-scheme: light; --ink:#17211b; --muted:#657269; --line:#dfe6e1; --paper:#fff; --wash:#f3f6f3; --green:#215c3d; --green-2:#dcecdf; --red:#9b352d; --red-2:#f5dfdc; }
* { box-sizing:border-box; }
body { margin:0; font:15px/1.5 Inter,Segoe UI,Arial,sans-serif; color:var(--ink); background:var(--wash); }
a { color:var(--green); text-decoration:none; }
button,input,select { font:inherit; }
.topbar { height:64px; display:flex; align-items:center; gap:32px; padding:0 32px; background:#13261c; color:#fff; }
.brand { color:#fff; font-size:20px; font-weight:800; letter-spacing:.02em; }
.topbar nav { display:flex; gap:22px; }
.topbar nav a { color:#dce7df; }
.account { margin-left:auto; display:flex; align-items:center; gap:16px; color:#dce7df; }
.account form { margin:0; }
.link-button { border:0; background:none; color:#fff; cursor:pointer; padding:0; }
.page { max-width:1500px; margin:0 auto; padding:34px 32px 60px; }
.page-heading { display:flex; justify-content:space-between; align-items:end; margin-bottom:24px; }
h1,h2,p { margin-top:0; }
h1 { margin-bottom:0; font-size:34px; line-height:1.1; }
h2 { font-size:20px; }
.eyebrow { margin-bottom:6px; color:var(--green); font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.muted,.hint { color:var(--muted); }
.hint { font-size:13px; }
.metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-bottom:20px; }
.metrics article,.panel { background:var(--paper); border:1px solid var(--line); border-radius:14px; box-shadow:0 8px 24px rgba(20,38,28,.04); }
.metrics article { padding:24px; display:flex; flex-direction:column; }
.metrics strong { font-size:34px; line-height:1; }
.metrics span { margin-top:8px; color:var(--muted); }
.panel { padding:26px; }
.narrow { max-width:620px; }
.button,button.primary,button.secondary { display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:0 18px; border-radius:9px; font-weight:700; cursor:pointer; }
.primary { border:1px solid var(--green); background:var(--green); color:#fff; }
.secondary { border:1px solid #b9c8bd; background:#fff; color:var(--green); }
.stack { display:grid; gap:18px; }
label { display:grid; gap:7px; font-weight:700; }
input,select { min-height:42px; padding:8px 11px; border:1px solid #bdc8c0; border-radius:8px; background:#fff; color:var(--ink); }
.login-page { min-height:100vh; background:#e8ece7; }
.login-page .topbar { display:none; }
.login-page .page { max-width:none; min-height:100vh; padding:0; }
.login-shell { min-height:100vh; display:grid; grid-template-columns:minmax(0,1.08fr) minmax(420px,.92fr); }
.login-identity { position:relative; isolation:isolate; display:flex; flex-direction:column; justify-content:space-between; min-height:100vh; overflow:hidden; padding:clamp(130px,18vh,190px) clamp(38px,7vw,112px) 48px; color:#f4f0e4; background:#153226; }
.login-identity::before { position:absolute; z-index:-2; inset:0; content:""; background:radial-gradient(circle at 86% 15%,rgba(220,193,119,.18),transparent 28%),linear-gradient(135deg,transparent 0 52%,rgba(255,255,255,.035) 52% 52.25%,transparent 52.25%); }
.login-identity::after { position:absolute; z-index:-1; width:520px; height:520px; right:-250px; bottom:-250px; content:""; border:1px solid rgba(234,218,169,.22); border-radius:50%; box-shadow:0 0 0 80px rgba(255,255,255,.018),0 0 0 160px rgba(255,255,255,.012); }
.login-mark { position:absolute; top:38px; left:clamp(38px,7vw,112px); display:grid; place-items:center; width:44px; height:44px; border:1px solid rgba(244,240,228,.45); font:700 22px/1 Georgia,serif; }
.login-copy { max-width:640px; }
.login-kicker { display:flex; align-items:center; gap:10px; margin-bottom:30px; color:#dcc179; font-size:12px; font-weight:800; letter-spacing:.16em; text-transform:uppercase; }
.login-kicker span { width:28px; height:1px; background:currentColor; }
.login-copy h1 { margin:0 0 28px; font:400 clamp(48px,5.6vw,82px)/.98 Georgia,"Times New Roman",serif; letter-spacing:-.045em; }
.login-copy>p:last-child { max-width:480px; margin:0; color:#bac8c0; font-size:17px; line-height:1.7; }
.login-note { margin:0; color:#91a69a; font-size:12px; letter-spacing:.04em; }
.login-access { display:flex; flex-direction:column; justify-content:center; padding:120px clamp(38px,8vw,130px) 64px; background:#f7f5ef; }
.login-form-heading { max-width:460px; margin-bottom:38px; }
.login-form-heading h2 { margin:0 0 12px; font:400 42px/1.08 Georgia,"Times New Roman",serif; letter-spacing:-.025em; }
.login-form-heading>p:last-child { margin:0; color:#718078; }
.login-form { display:grid; gap:22px; width:100%; max-width:460px; }
.login-form label { gap:9px; color:#30453a; font-size:13px; letter-spacing:.025em; }
.login-form input { min-height:54px; padding:12px 15px; border:1px solid #c9cec7; border-radius:2px; background:#fffefb; box-shadow:0 1px 0 rgba(17,46,32,.03); transition:border-color .18s,box-shadow .18s; }
.login-form input::placeholder { color:#9ca59f; }
.login-form input:focus { outline:none; border-color:#2f694d; box-shadow:0 0 0 3px rgba(47,105,77,.11); }
.login-submit { justify-content:space-between!important; min-height:56px!important; margin-top:4px; padding:0 20px!important; border-radius:2px!important; background:#173d2d!important; transition:background .18s,transform .18s; }
.login-submit:hover { background:#21543e!important; transform:translateY(-1px); }
.login-submit span { font-size:21px; font-weight:400; }
.login-help { max-width:460px; margin:26px 0 0; color:#7f8983; font-size:12px; }
.alert { margin-bottom:18px; padding:13px 16px; border-radius:9px; }
.alert.error { background:var(--red-2); color:var(--red); }
.alert.success { background:var(--green-2); color:var(--green); }
.alert.warning { background:#fff2cc; color:#6f5310; }
.filters { display:flex; align-items:end; flex-wrap:wrap; gap:12px; margin-bottom:18px; padding:16px; background:#fff; border:1px solid var(--line); border-radius:12px; }
.filters label:first-child { min-width:360px; flex:1; }
.table-shell { overflow:auto; max-height:70vh; background:#fff; border:1px solid var(--line); border-radius:12px; }
.timetable { width:max-content; min-width:100%; border-collapse:separate; border-spacing:0; }
.timetable th,.timetable td { min-width:58px; padding:10px; text-align:center; border-right:1px solid var(--line); border-bottom:1px solid var(--line); white-space:nowrap; }
.timetable th { position:sticky; top:0; z-index:3; background:#e9f0eb; font-size:13px; }
.timetable .sticky-name { position:sticky; left:0; min-width:230px; text-align:left; background:#fff; z-index:2; }
.timetable th.sticky-name { z-index:4; background:#e9f0eb; }
.timetable tfoot td { position:sticky; bottom:0; background:#f2f5f2; font-weight:800; }
.timetable tfoot .sticky-name { background:#f2f5f2; }
.attendance { width:34px; height:34px; border-radius:8px; border:1px solid var(--line); font-size:20px; font-weight:800; cursor:pointer; }
.attendance.present { color:var(--green); background:var(--green-2); border-color:#9fc5a7; }
.attendance.absent { color:var(--red); background:var(--red-2); border-color:#dfaaa5; }
.attendance.unmarked { color:#8b968f; background:#f6f7f6; }
.bulk-bar { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom:12px; padding:12px 14px; background:#fff; border:1px solid var(--line); border-radius:10px; }
.bulk-bar select { min-width:180px; }
.select-column { min-width:42px!important; width:42px; }
.teacher-select { display:block; width:96px; min-height:28px; margin-top:5px; padding:3px; font-size:11px; font-weight:400; }
.empty { padding:40px!important; color:var(--muted); }
.two-columns { display:grid; grid-template-columns:1fr 420px; gap:20px; align-items:start; }
.user-list { display:grid; }
.user-list>div { display:grid; grid-template-columns:1fr 180px 180px; gap:16px; padding:14px 0; border-bottom:1px solid var(--line); }
.user-list span { color:var(--muted); }
.audit-list { padding:0 24px; }
.audit-list article { display:grid; grid-template-columns:150px 130px 160px 1fr; gap:14px; align-items:start; padding:14px 0; border-bottom:1px solid var(--line); }
.audit-list time,.audit-list span { color:var(--muted); }
.audit-list code { overflow-wrap:anywhere; white-space:normal; }
.record-list article { display:grid; grid-template-columns:1fr 1fr; gap:18px; padding:15px 0; border-bottom:1px solid var(--line); }
.record-list article>div { display:grid; gap:4px; }
.record-list span { color:var(--muted); }
.directory-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.directory-grid .wide { grid-column:1/-1; }
.directory-grid ul { min-height:60px; max-height:220px; overflow:auto; margin:0 0 18px; padding-left:20px; color:var(--muted); }
.inline-form,.group-form { display:flex; gap:9px; }
.inline-form input { flex:1; }
.group-form { display:grid; grid-template-columns:1.2fr 1fr 1fr 140px 1fr auto; }
.columns-list { columns:3; }
@media (max-width:800px) { .metrics { grid-template-columns:repeat(2,1fr); } .page { padding:24px 16px; } .topbar { padding:0 16px; } .login-shell { grid-template-columns:1fr; } .login-identity { min-height:42vh; padding:120px 28px 36px; } .login-copy h1 { font-size:48px; } .login-copy>p:last-child { font-size:15px; } .login-note { display:none; } .login-access { min-height:58vh; padding:54px 28px; } .login-form-heading h2 { font-size:36px; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; } }
