:root { color-scheme: light; --blue:#153d6f; --blue2:#235a96; --bg:#f1f4f8; --line:#d7dee8; --muted:#5d6877; --danger:#a52424; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:#1c2733; font-family:system-ui,-apple-system,"Segoe UI",sans-serif; line-height:1.5; }
.wrap { width:min(1050px,calc(100% - 32px)); margin:40px auto; }
.header { display:flex; justify-content:space-between; align-items:center; gap:24px; margin-bottom:24px; }
.logo { width:210px; max-height:85px; object-fit:contain; }
h1,h2,h3 { color:#142f50; line-height:1.2; margin-top:0; }
h1 { margin-bottom:5px; font-size:clamp(1.65rem,4vw,2.25rem); }
.subtitle,.hint { color:var(--muted); }
.card { background:white; border-radius:12px; padding:clamp(20px,4vw,38px); box-shadow:0 8px 28px #19365316; }
.grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.grid.three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.field { margin-bottom:18px; }
label,.label { display:block; font-weight:650; margin-bottom:6px; }
input,textarea,select { width:100%; border:1px solid #b9c4d2; border-radius:7px; padding:11px 12px; font:inherit; background:#fff; }
textarea { resize:vertical; }
input:focus,textarea:focus { outline:3px solid #2b70b92d; border-color:var(--blue2); }
.radio-row { display:flex; gap:24px; margin:8px 0 18px; }
.radio-row label { display:flex; align-items:center; gap:8px; font-weight:500; }
.radio-row input { width:auto; }
.hidden { display:none; }
.section { border-top:1px solid var(--line); padding-top:23px; margin-top:8px; }
.button { display:inline-block; border:0; border-radius:7px; background:var(--blue); color:white; padding:11px 17px; font:inherit; font-weight:700; cursor:pointer; text-decoration:none; }
.button:hover { background:#0e315b; }
.button.full { width:100%; padding:14px; }
.button.secondary { background:#e8edf3; color:#253649; }
.button.danger { background:var(--danger); }
.button.tiny { padding:7px 10px; font-size:.84rem; white-space:nowrap; }
.message { border-radius:7px; padding:13px 15px; margin-bottom:20px; }
.success { background:#e3f5e9; color:#155b2b; }
.error { background:#fae7e7; color:#852020; }
.deadline-banner { margin-bottom:20px; padding:14px 16px; border:2px solid #235a96; border-radius:8px; background:#edf5ff; color:#173f6d; font-size:1.02rem; }
.school-year-banner { margin-bottom:10px; color:#40546b; font-size:1.05rem; }
.school-year-filter { display:flex; align-items:end; gap:10px; flex-wrap:wrap; margin:0 0 20px; padding:13px; border-radius:8px; background:#f3f6f9; }
.school-year-filter .field { margin:0; min-width:220px; }
.deadline-banner.deadline-late { border-color:#b66a00; background:#fff2d9; color:#764500; }
.closed-message { padding:20px; text-align:center; font-size:1.05rem; }
.late-badge { display:inline-block; margin-top:4px; padding:2px 6px; border-radius:4px; background:#b62c2c; color:white; font-size:.76rem; font-weight:750; }
.toggle-field > label { display:flex; align-items:center; gap:10px; }
.toggle-field input[type="checkbox"] { width:auto; height:20px; }
.footer { color:var(--muted); font-size:.9rem; margin-top:20px; }
.footer p { margin:5px 0; }
.admin-link { text-align:center; margin-top:30px; }
.admin-link a { color:#687585; }
.toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:20px; }
.actions { display:flex; gap:8px; flex-wrap:wrap; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; font-size:.91rem; }
th,td { padding:10px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
th { background:#f5f7fa; white-space:nowrap; }
.details { max-width:350px; white-space:pre-wrap; }
.inline-form { display:inline; }
.row-actions { display:flex; flex-direction:column; align-items:flex-start; gap:9px; }
.possible-duplicate { background:#fff7df; }
.duplicate-badge { display:inline-block; margin:4px 0; padding:2px 6px; border-radius:4px; background:#f5c84c; color:#493800; font-size:.76rem; font-weight:750; }
.changed-at { color:#7a5a18; font-size:.76rem; }
.report-controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 18px; margin-bottom:20px; }
.report-controls .field { margin:0; }
.report-summary { margin:15px 0; color:var(--muted); }
.link-button { border:0; background:none; padding:0; color:var(--danger); text-decoration:underline; cursor:pointer; }
.login { width:min(460px,calc(100% - 32px)); margin:70px auto; }
.honeypot { position:absolute!important; left:-10000px!important; width:1px!important; height:1px!important; overflow:hidden!important; }
@media (max-width:760px) { .grid,.grid.three { grid-template-columns:1fr; } .header { align-items:flex-start; } .logo { width:145px; } .wrap { margin:22px auto; } }
@media (max-width:760px) { .report-controls { grid-template-columns:1fr; } }
