*{box-sizing:border-box}
body{margin:0;background:#f4f7fb;color:#172033;font-family:Arial,sans-serif}
.public-wrap,.admin-wrap{max-width:1250px;margin:auto;padding:24px}
.public-wrap.narrow{max-width:900px}.narrow-admin{max-width:1050px}
.panel{background:#fff;border:1px solid #dfe7f1;border-radius:14px;padding:22px;margin-bottom:18px}
.page-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:18px}
.page-head h1{margin:0 0 5px}.page-head p{margin:0;color:#667085}
.actions,.checks{display:flex;gap:10px;flex-wrap:wrap}
.grid-2,.grid-3,.summary-grid,.filters{display:grid;gap:14px}
.grid-2{grid-template-columns:repeat(2,1fr)}.grid-3{grid-template-columns:repeat(3,1fr)}
.summary-grid{grid-template-columns:repeat(3,1fr)}
.filters{grid-template-columns:2fr 1fr auto auto;align-items:end}
label{display:grid;gap:7px;font-weight:700;margin-bottom:14px}
input,select,textarea{width:100%;padding:11px;border:1px solid #cad5e2;border-radius:9px;font:inherit}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border:0;border-radius:9px;text-decoration:none;font-weight:700;cursor:pointer}
.btn.primary{background:#2563eb;color:white}.btn.light{background:#eef2f7;color:#172033}
.btn.small{padding:7px 10px;font-size:.85rem}.btn.wide{width:100%}
.alert{padding:13px 15px;border-radius:9px;margin-bottom:15px}.alert.success{background:#dcfce7;color:#166534}.alert.error{background:#fee2e2;color:#991b1b}
h2{font-size:1.1rem;border-bottom:1px solid #e5e7eb;padding-bottom:8px;margin-top:24px}
.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:12px;border-bottom:1px solid #edf1f6;text-align:left}.empty{text-align:center;color:#667085}
.badge{background:#eef2ff;color:#3730a3;padding:5px 9px;border-radius:999px;font-size:.82rem}
.summary-grid div{border:1px solid #e5e7eb;border-radius:10px;padding:14px}.summary-grid span{display:block;color:#667085;font-size:.85rem;margin-bottom:5px}
.doc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.doc-card{border:1px solid #e5e7eb;border-radius:10px;padding:14px;display:flex;flex-direction:column;gap:9px}
.timeline{display:flex;gap:12px;overflow:auto;padding:10px 0}.timeline-item{min-width:125px;text-align:center;color:#98a2b3}.timeline-item span{display:block;width:18px;height:18px;border-radius:50%;background:#d0d5dd;margin:0 auto 8px}.timeline-item.done{color:#166534}.timeline-item.done span{background:#22c55e}
.track-form{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:12px;align-items:end}
.history-list>div{border-left:3px solid #2563eb;padding-left:12px;margin-bottom:15px}.history-list span{display:block;color:#667085;font-size:.85rem}
@media(max-width:850px){.grid-3,.summary-grid,.doc-grid{grid-template-columns:1fr 1fr}.filters,.track-form{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.public-wrap,.admin-wrap{padding:14px}.page-head{flex-direction:column}.grid-2,.grid-3,.summary-grid,.doc-grid,.filters,.track-form{grid-template-columns:1fr}}

/* Public admission form theme parity. */
html[data-theme="dark"]{color-scheme:dark}
html[data-theme="dark"] body{background:#07111f;color:#e6edf7}
html[data-theme="dark"] .panel{background:#0d1d31;border-color:#29415e;box-shadow:0 18px 55px rgba(0,0,0,.28)}
html[data-theme="dark"] .page-head h1,
html[data-theme="dark"] h2{color:#f8fafc!important}
html[data-theme="dark"] .page-head p{color:#b9c7d9!important}
html[data-theme="dark"] h2{border-bottom-color:#29415e}
html[data-theme="dark"] label{color:#e6edf7!important}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea{background:#071426;color:#f8fafc;border-color:#38536f}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{color:#94a3b8;opacity:1}
html[data-theme="dark"] input[type="file"]{background:#10233d}
html[data-theme="dark"] .btn.light{background:#172b45;color:#f8fafc;border:1px solid #38536f}
html[data-theme="dark"] .summary-grid div,
html[data-theme="dark"] .doc-card{border-color:#29415e;background:#10233d}
html[data-theme="dark"] .empty,
html[data-theme="dark"] .summary-grid span,
html[data-theme="dark"] .history-list span{color:#b9c7d9}
