:root { color-scheme: light; font-family: Inter, "Segoe UI", sans-serif; color: #21382e; background: #f7f8f4; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.topbar { min-height: 96px; padding: 24px 6vw; display: flex; align-items: center; justify-content: space-between; background: white; border-bottom: 1px solid #e0e5dd; gap: 20px; }
.brand { color: #214c39; font-size: 24px; font-weight: 750; text-decoration: none; letter-spacing: -.7px; }
.brand span { font-size: 12px; font-weight: 500; display: block; letter-spacing: .4px; color: #68766b; margin-top: 3px; }
#account { display: flex; align-items: center; gap: 18px; font-size: 14px; flex-wrap: wrap; }
main { max-width: 1240px; min-height: calc(100vh - 180px); margin: auto; padding: 64px 40px; }
.login-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 100px; align-items: center; padding: 30px 0; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; font-weight: 650; color: #52725c; margin-bottom: 20px; }
h1 { font-size: clamp(36px, 4.2vw, 54px); line-height: 1.13; font-weight: 600; letter-spacing: -1.8px; margin: 0 0 22px; }
h2 { font-size: 26px; letter-spacing: -.7px; margin: 0 0 30px; font-weight: 600; }
.intro > p:last-child, .description { color: #637166; font-size: 17px; line-height: 1.7; max-width: 700px; }
.login-card { background: white; border: 1px solid #e0e5dd; padding: 38px; border-radius: 12px; }
#password-panel { max-width: 560px; margin-inline: auto; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
input { width: 100%; padding: 13px; border: 1px solid #b9c4b9; border-radius: 6px; margin-bottom: 24px; font: inherit; background: #fff; color: #21382e; }
input:focus, button:focus-visible, a:focus-visible { outline: 3px solid #94b6a1; outline-offset: 3px; }
button { border: 1px solid transparent; border-radius: 6px; padding: 12px 20px; font: inherit; font-size: 14px; font-weight: 600; background: #28543e; color: white; cursor: pointer; }
button:hover:not(:disabled) { background: #1a3d2b; }
button:disabled { opacity: .45; cursor: default; }
#login { width: 100%; }
.secondary { background: white; color: #28543e; border-color: #c9d2c8; }
.secondary:hover:not(:disabled) { background: #edf2e9; }
.hint { color: #778378; font-size: 12px; margin: 20px 0 0; line-height: 1.5; }
#error { border: 1px solid #e5c5bc; background: #fff2ec; color: #7b3428; border-radius: 6px; padding: 16px; margin-bottom: 24px; }
.list-heading { margin: 36px 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#count { font-size: 14px; color: #637166; }
.table-wrap { overflow-x: auto; border: 1px solid #dfe5dc; border-radius: 8px; background: white; }
table { border-collapse: collapse; width: 100%; font-size: 14px; text-align: left; }
th { background: #edf1e8; font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: #526350; padding: 18px; }
td { padding: 20px 18px; border-top: 1px solid #e7ebe3; vertical-align: top; line-height: 1.6; min-width: 110px; }
td:first-child { font-weight: 600; }
td small { display: block; color: #73806f; font-weight: 400; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin-top: 24px; font-size: 13px; }
footer { border-top: 1px solid #e0e5dd; color: #7c877b; font-size: 12px; padding: 25px 6vw; }
#account a { color: #28543e; font-weight: 600; text-decoration: none; }
#account a:hover { text-decoration: underline; }
.search-card { display: grid; grid-template-columns: 2fr repeat(4, 1fr) auto; gap: 18px; align-items: end; background: white; border: 1px solid #e0e5dd; border-radius: 12px; padding: 28px; margin-top: 32px; }
.search-card label { margin-bottom: 8px; }
.section-gap { margin-top: 72px; }
.controls { display: flex; align-items: center; gap: 12px; }
.controls select { width: auto; padding: 10px; }
label.inline { margin: 0; font-size: 13px; color: #637166; }
.badge.ok { background: #e3f1e6; color: #1f5a36; }
.badge.off { background: #f6ebe6; color: #7b3428; }
.badge.muted { background: #eceee9; color: #59645a; }
td button { padding: 8px 16px; white-space: nowrap; }
button.danger, button.danger:hover:not(:disabled) { background: #8a3a2c; border-color: #8a3a2c; color: white; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 800px) { main { padding: 32px 20px; } .login-layout { grid-template-columns: 1fr; gap: 28px; } .login-card { padding: 28px; } .intro h1 { font-size: 38px; } .topbar { padding: 20px; } }

/* Repairs */
.panel { background: white; border: 1px solid #e0e5dd; border-radius: 12px; padding: 32px; margin: 32px 0; }
.panel h2 { font-size: 22px; margin-bottom: 20px; }
select, textarea { width: 100%; padding: 13px; border: 1px solid #b9c4b9; border-radius: 6px; margin-bottom: 24px; font: inherit; background: #fff; color: #21382e; }
select:focus, textarea:focus { outline: 3px solid #94b6a1; outline-offset: 3px; }
#report-form, #dispatch-form { max-width: 560px; }
.list-heading h2 { margin: 0; font-size: 22px; }
.list-tools { display: flex; align-items: center; gap: 12px; }
.list-tools select { width: auto; margin: 0; padding: 10px; }
#notice { border: 1px solid #b9d3c0; background: #edf6ef; color: #1f4a30; border-radius: 6px; padding: 16px; margin-bottom: 24px; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; background: #edf1e8; color: #3f5a46; white-space: nowrap; }
.badge-submitted { background: #fff4d6; color: #7a5a00; }
.badge-assigned { background: #e3eefb; color: #1f4f82; }
.badge-in_repair, .badge-pending_acceptance { background: #fde9d9; color: #8a4513; }
.badge-closed { background: #e2f2e6; color: #1f5a33; }
.badge-cancelled { background: #eee; color: #555; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0 0 28px; font-size: 14px; }
dt { font-weight: 650; color: #526350; }
dd { margin: 0; overflow-wrap: anywhere; }
.repairs-page .list-heading, .repairs-page .list-tools { flex-wrap: wrap; }
.repairs-page table { min-width: 760px; }
.repairs-page .panel form { max-width: 560px; }
.repairs-page #ticket-history { padding-left: 20px; line-height: 1.6; overflow-wrap: anywhere; }
.repairs-page #conflict-warning { padding: 16px; margin-bottom: 20px; background: #fff4d6; border-radius: 6px; }
.repairs-page #classroom-warning { padding: 16px; margin-bottom: 20px; background: #fff4d6; border-radius: 6px; }
.repairs-page #classroom-reservations { overflow-wrap: anywhere; }
.repairs-page #confirm-cancellations { width: auto; margin-bottom: 0; }
@media (max-width: 600px) {
  .repairs-page .panel { padding: 20px; }
  .repairs-page .list-tools { width: 100%; }
  .repairs-page .list-tools select { flex: 1; min-width: 0; }
}

/* Seat bookings (uses the shared select, #notice and .badge rules above) */
.search-card select, .controls select { margin-bottom: 0; }
.search-card select { padding: 12px; }
@media (max-width: 800px) { .search-card { grid-template-columns: 1fr 1fr; } .search-card .wide, .search-card button { grid-column: 1 / -1; } .list-heading { flex-wrap: wrap; } }
@media (min-width: 801px) and (max-width: 1100px) { .search-card { grid-template-columns: repeat(3, 1fr); } .search-card .wide { grid-column: span 2; } }
