:root {
  --bg: #f5f8ff;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #dbe7ff;
  --brand: #1d4ed8;
  --brand2: #0ea5e9;
  --ok: #15803d;
  --warn: #b45309;
  --error: #b91c1c;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(1200px 500px at 0% -10%, rgba(14,165,233,.14), transparent 60%),
    linear-gradient(180deg, #f7fbff, #fefaf3);
  font-family: "Poppins", "Segoe UI", Tahoma, sans-serif;
}

.container {
  max-width: 1100px;
  margin: 24px auto;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.8);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.95));
  box-shadow: 0 18px 40px rgba(2,6,23,.1);
}

h1,h2,h3 { margin: 0 0 10px; }
h1 {
  font-size: clamp(1.4rem, 2.7vw, 2rem);
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
p { color: var(--muted); }

.grid {
  display: grid;
  gap: 14px;
}

.card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

label {
  font-weight: 700;
  font-size: .92rem;
  display: block;
  margin-bottom: 6px;
}
input,select,textarea,button {
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid #cfe0ff;
  padding: 9px 11px;
  font-size: .95rem;
}
textarea { min-height: 90px; resize: vertical; }
button {
  border: 0;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
}
button:disabled { opacity: .7; cursor: not-allowed; }

.inline {
  display: flex;
  gap: 10px;
  align-items: center;
}
.inline > * { flex: 1; }
.inline .shrink { flex: 0; width: auto; min-width: 130px; }

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.list li {
  border: 1px solid #e2e8f0;
  border-left: 6px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}
.list li.ok { border-left-color: var(--ok); background: #f0fdf4; }
.list li.warn { border-left-color: var(--warn); background: #fff7ed; }
.list li.error { border-left-color: var(--error); background: #fef2f2; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid #d6e4ff;
  border-radius: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
th,td {
  padding: 10px;
  border-bottom: 1px solid #e7eeff;
  text-align: left;
}
th { background: #f5f9ff; color: #1e3a8a; }
tr:last-child td { border-bottom: none; }

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  background: #eff6ff;
}

.hidden { display: none !important; }
.status {
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
}
.status.ok { border-color: #86efac; background: #f0fdf4; color: #166534; }
.status.error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.status.info { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }

.school-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.school-link {
  display: block;
  text-decoration: none;
  color: #0f172a;
  padding: 14px;
  border: 1px solid #cfe0ff;
  border-radius: 12px;
  background: #fff;
}
.school-link:hover { border-color: #60a5fa; }

@media (max-width: 740px) {
  .container { margin: 0; min-height: 100vh; border-radius: 0; }
  .inline { flex-direction: column; }
  .inline .shrink { width: 100%; }
}
