:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18211c;
  background: #f3f5f3;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #f3f5f3; }
.page { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 72px 0; }
.card { background: #fff; border: 1px solid #dde3df; border-radius: 18px; padding: 32px; box-shadow: 0 10px 30px rgba(20,33,25,.06); }
.brand { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; margin-bottom: 12px; color: #4e6255; }
h1 { margin: 0 0 10px; font-size: clamp(30px, 6vw, 46px); line-height: 1.05; }
p { line-height: 1.55; }
.lead { margin: 0 0 28px; color: #536058; }
label { display:block; font-weight:700; margin-bottom:8px; }
input[type="text"], input[type="password"] { width:100%; padding:15px 16px; border:1px solid #c8d0cb; border-radius:10px; font:inherit; font-size:16px; background:#fff; }
input:focus { outline:3px solid rgba(33,96,61,.14); border-color:#21603d; }
button { border:0; border-radius:10px; padding:14px 18px; font:inherit; font-weight:700; cursor:pointer; background:#21603d; color:#fff; }
button.secondary { background:#eef2ef; color:#26342b; }
button:disabled { opacity:.6; cursor:wait; }
.form-row { display:flex; gap:10px; align-items:flex-end; }
.form-row .grow { flex:1; }
.message { margin-top:16px; padding:12px 14px; border-radius:10px; background:#f0f3f1; }
.message.error { background:#fff0f0; color:#8d2222; }
.results { margin-top:28px; display:grid; gap:12px; }
.activity { border:1px solid #dde3df; border-radius:14px; padding:18px; background:#fbfcfb; }
.activity h2 { margin:0 0 8px; font-size:20px; }
.activity-grid { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:10px; color:#4f5c54; }
.k { display:block; font-size:11px; text-transform:uppercase; letter-spacing:.06em; font-weight:700; color:#7b8780; margin-bottom:3px; }
.staff-link { text-align:center; margin-top:18px; font-size:12px; }
.staff-link a { color:#7b8780; }
.hidden { display:none !important; }
.upload-zone { border:2px dashed #bcc8c0; border-radius:14px; padding:34px 20px; text-align:center; background:#fafbfa; cursor:pointer; }
.upload-zone.drag { border-color:#21603d; background:#f1f7f3; }
.upload-zone input { display:none; }
.meta { margin:18px 0; padding:14px; background:#f5f7f5; border-radius:10px; font-size:14px; }
.actions { display:flex; gap:10px; margin-top:14px; }
.small { font-size:13px; color:#66736b; }
@media (max-width: 600px) {
  .page { padding:30px 0; }
  .card { padding:22px; }
  .form-row { display:block; }
  .form-row button { width:100%; margin-top:10px; }
  .activity-grid { grid-template-columns:1fr; }
}

.student-group { margin-top: 22px; }
.student-name { margin: 0 0 10px; font-size: 1.15rem; }
.section-heading { margin: 26px 0 8px; font-size: 20px; }
.section-heading:first-child { margin-top: 0; }
.upload-heading { margin-top: 34px; }
.lead.compact { margin-bottom: 14px; }

.debug {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 380px;
  overflow: auto;
  background: #f7f8f7;
  border: 1px solid #dfe4df;
  border-radius: 8px;
  padding: 10px;
  font-size: 12px;
  line-height: 1.45;
}
details summary { cursor: pointer; }

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 4px;
  padding: 12px 14px;
  border: 1px solid #d9e1dc;
  border-radius: 10px;
  background: #fbfcfb;
  cursor: pointer;
}
.toggle-row input { width: 18px; height: 18px; accent-color: #21603d; }
.toggle-row span { font-weight: 700; }
.toggle-note { margin: 0 0 18px; }
