:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --ink: #152033;
  --muted: #667085;
  --line: #d7deea;
  --blue: #0a3672;
  --blue-soft: #eaf2ff;
  --green-soft: #edf7df;
  --red: #d92d20;
  --teal: #0f766e;
  font-family: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(180deg, #e7f3ff 0, var(--bg) 290px); color: var(--ink); }
.page { width: min(1140px, calc(100% - 28px)); margin: 0 auto; padding: 28px 0; }
.hero, .card, .notice { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 14px 42px rgba(21, 32, 51, 0.07); }
.hero { display: grid; grid-template-columns: 1fr minmax(320px, 440px); gap: 22px; align-items: end; padding: 24px; }
.eyebrow { margin: 0 0 8px; color: var(--teal); font-size: 13px; font-weight: 800; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.08; }
h2 { margin-bottom: 0; font-size: 18px; }
.search-panel label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 14px; font-weight: 700; }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
input, button { min-height: 44px; border-radius: 6px; font: inherit; }
input { width: 100%; padding: 0 14px; border: 1px solid var(--line); text-transform: uppercase; }
input:focus { border-color: var(--teal); outline: 3px solid rgba(15, 118, 110, 0.18); }
button { border: 0; padding: 0 18px; background: var(--teal); color: #fff; font-weight: 800; cursor: pointer; }
button:hover { background: #115e59; }
.notice { margin-top: 18px; padding: 22px; }
.notice p { margin-bottom: 0; color: var(--muted); }
.result { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 18px; margin-top: 18px; }
.card { padding: 18px; }
.wide-card { grid-column: 1 / -1; }
.card-title { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
.card-title strong { color: var(--teal); }
.details-grid { display: grid; grid-template-columns: 190px 1fr; margin: 0; border: 1px solid var(--line); border-bottom: 0; }
.details-grid dt, .details-grid dd { min-height: 38px; margin: 0; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.details-grid dt { background: var(--blue-soft); color: var(--blue); font-size: 13px; font-weight: 800; }
.details-grid dd { font-weight: 800; }
.fee-grid, .address-grid { display: grid; gap: 10px; }
.fee-grid div, .address-grid div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--green-soft); }
.address-grid { grid-template-columns: repeat(3, 1fr); }
.fee-grid span, .address-grid span { color: var(--muted); font-size: 13px; font-weight: 800; }
.fee-grid strong, .address-grid strong { text-align: right; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 520px; border-collapse: collapse; }
th, td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { background: #0b2f6b; color: #fff; font-size: 13px; }
td { background: #fbfdff; font-weight: 700; }
.payment-table th, .payment-table td { text-align: center; }
.payment-table td:first-child { color: var(--blue); font-weight: 800; }
.payment-table tr.has-payment td { background: #f7fff0; }
@media (max-width: 780px) {
  .page { width: min(100% - 18px, 1140px); padding: 16px 0; }
  .hero, .result, .search-row, .address-grid { grid-template-columns: 1fr; }
  .details-grid { grid-template-columns: 1fr; }
  .details-grid dt { border-bottom: 0; }
  .fee-grid div, .address-grid div, .card-title { align-items: flex-start; flex-direction: column; }
}

.student-photo {
  position: relative;
  width: 290px !important;
  max-width: 100% !important;
  height: 340px !important;
  margin: 28px auto 0;
  border: 4px solid #111;
  background: #fff;
  overflow: hidden !important;
  display: block !important;
}

.student-photo img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.photo-empty {
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
}
