:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #172033;
  background: #eef2f7;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
.login-page {
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #eaf1fb, #f8fafc);
}
.login-card {
  width: min(100%, 460px);
  background: white;
  border: 1px solid #e1e7ef;
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 18px 55px #1d355712;
}
.logo {
  display: block;
  width: min(230px, 75%);
  height: auto;
  object-fit: contain;
  margin: 0 auto 24px;
}
.eyebrow {
  text-align: center;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 700;
  color: #6b7b93;
  margin: 0 0 8px;
}
.login-card h1,
.result-header h1 {
  text-align: center;
  margin: 0;
  font-size: 25px;
}
.muted,
.footnote {
  text-align: center;
  color: #68758b;
  font-size: 14px;
  line-height: 1.5;
}
.login-card form {
  display: grid;
  gap: 10px;
  margin-top: 25px;
}
.login-card label {
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
}
.login-card input,
.login-card select {
  width: 100%;
  height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 0 12px;
  background: white;
  font: inherit;
  color: inherit;
}
.login-card input:focus,
.login-card select:focus {
  outline: 3px solid #2456a533;
  border-color: #2456a5;
}
.login-card button,
.toolbar button {
  border: 0;
  border-radius: 9px;
  background: #16438b;
  color: white;
  min-height: 46px;
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
}
.alert {
  background: #fff2f0;
  border: 1px solid #ffd2cc;
  color: #a32116;
  border-radius: 8px;
  padding: 12px;
  margin-top: 18px;
  font-size: 14px;
}
.footnote {
  font-size: 12px;
  margin: 20px 0 0;
}
.result-page {
  padding: 28px 16px;
}
.result-shell {
  max-width: 1100px;
  margin: auto;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.toolbar a {
  margin-right: auto;
  color: #174582;
  text-decoration: none;
  font-weight: 700;
}
.toolbar form {
  margin: 0;
}
.toolbar button {
  margin: 0;
  min-height: 40px;
}
.toolbar .secondary {
  background: white;
  color: #174582;
  border: 1px solid #cbd5e1;
}
.result-sheet {
  background: #fff;
  border: 1px solid #e1e7ef;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 14px 45px #1d355710;
}
.result-header {
  border-bottom: 2px solid #172033;
  padding-bottom: 12px;
  margin-bottom: 20px;
}
.result-header .logo {
  width: 200px;
  margin-bottom: 12px;
}
.student-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: #dce3ec;
  border: 1px solid #dce3ec;
  margin-bottom: 24px;
}
.student-grid > div {
  background: white;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}
.student-grid span {
  font-size: 11px;
  color: #65738a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.student-grid strong {
  font-size: 14px;
}
.student-grid .wide {
  grid-column: 1/-1;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
th,
td {
  padding: 10px 8px;
  border: 1px solid #394150;
  text-align: left;
}
thead th {
  background: #f0f3f7;
}
tfoot th {
  background: #f7f8fa;
}
.notice {
  font-size: 12px;
  color: #68758b;
  margin: 20px 0 0;
}
@media (max-width: 600px) {
  .login-card {
    padding: 25px 20px;
  }
  .result-sheet {
    padding: 18px 12px;
  }
  .student-grid {
    grid-template-columns: 1fr;
  }
  .student-grid .wide {
    grid-column: auto;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar a {
    width: 100%;
  }
}
@media print {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  html,
  body {
    background: #fff !important;
    color: #000 !important;
    width: 100%;
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
  }
  .result-shell {
    max-width: none;
    margin: 0;
  }
  .result-sheet {
    width: 100%;
    margin: 0;
    padding: 8mm;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .toolbar {
    display: none !important;
  }
  .student-grid {
    break-inside: avoid;
  }
  .table-wrap {
    overflow: visible;
  }
  table {
    width: 100%;
    font-size: 10px;
    break-inside: auto;
  }
  tr {
    break-inside: avoid;
    break-after: auto;
  }
  thead {
    display: table-header-group;
  }
  tfoot {
    display: table-footer-group;
  }
  th,
  td {
    padding: 5px;
    border: 1px solid #333;
  }
  a {
    color: #000;
    text-decoration: none;
  }
  .notice {
    margin-top: 8mm;
  }
}
