:root {
  --ink: #14202b;
  --muted: #5f6d79;
  --navy: #17324a;
  --navy-2: #244b68;
  --blue-soft: #e8f0f5;
  --paper: #ffffff;
  --canvas: #f2f5f6;
  --line: #d8e0e5;
  --green: #2f6b52;
  --green-soft: #e6f1eb;
  --amber: #996715;
  --amber-soft: #f6eddb;
  --red: #9d3939;
  --red-soft: #f6e4e4;
  --shadow: 0 18px 50px rgba(20, 32, 43, .09);
  --radius: 18px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.noscript-message { margin: 0; padding: 1rem; background: #fff3cd; color: #5c4300; border-bottom: 2px solid #b27a00; font-weight: 700; text-align: center; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #f2b84b; outline-offset: 3px; }

.site-header, .private-header {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header.compact { min-height: 76px; }
.institution { min-height: 44px; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.institution-mark {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.institution-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.institution span:last-child { display: grid; line-height: 1.25; }
.institution strong { font-size: .92rem; }
.institution small { color: var(--muted); margin-top: 3px; }

main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero {
  border-radius: 28px;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
}
.public-hero { display: grid; grid-template-columns: 1.55fr .65fr; min-height: 520px; }
.hero-copy { padding: clamp(36px, 7vw, 84px); display: flex; flex-direction: column; align-items: flex-start; }
.eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 800; color: #6f7e89; }
.hero .eyebrow, .cta .eyebrow { color: #b9cad6; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(2.5rem, 8vw, 5.6rem); line-height: .94; letter-spacing: -.055em; text-transform: uppercase; }
h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.55rem); line-height: 1.08; letter-spacing: -.035em; }
h3 { margin: 0; font-size: 1.08rem; }
.hero-date { margin: 28px 0 0; color: #dce7ed; font-size: 1rem; }
.hero-date strong { color: #fff; font-size: 1.18rem; }
.lead { max-width: 650px; margin: 24px 0 30px; color: #d7e3e9; font-size: 1.1rem; }
.hero-note { padding: 44px 34px; background: #e8edf0; color: var(--ink); display: flex; flex-direction: column; justify-content: center; }
.note-number { font-size: clamp(4.7rem, 10vw, 8rem); font-weight: 750; line-height: .86; letter-spacing: -.08em; color: var(--navy); }
.note-unit { margin-top: 10px; text-transform: uppercase; font-weight: 800; letter-spacing: .12em; color: var(--navy-2); }
.hero-note p { margin: 34px 0 0; color: var(--muted); }

.institutional-notice {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start;
  margin: 26px 0 0; padding: 25px 28px; border: 1px solid #e3c889; border-left: 5px solid #ae7314;
  border-radius: 18px; background: #fff9ea; color: var(--ink); box-shadow: 0 8px 24px rgba(73, 55, 18, .05);
}
.institutional-notice-icon {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  background: #ae7314; color: #fff; font-family: Georgia, serif; font-size: 1.08rem; font-weight: 800;
}
.institutional-notice .eyebrow { margin-bottom: 6px; color: #87600f; }
.institutional-notice h2 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); }
.institutional-notice p:last-child { max-width: 950px; margin: 8px 0 0; color: #5d584b; line-height: 1.55; }
.institutional-notice-private { margin: 28px 0 0; }

.button {
  min-height: 50px; padding: 13px 22px; border: 0; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; text-transform: uppercase; letter-spacing: .055em;
  font-weight: 800; font-size: .82rem; cursor: pointer;
}
.button-primary { background: #fff; color: var(--navy); }
.auth-panel .button-primary, .private-error .button-primary { background: var(--navy); color: #fff; }
.button-light { background: #fff; color: var(--navy); }
.button.full { width: 100%; }
.button[disabled] { opacity: .65; cursor: wait; }

.section { padding: clamp(58px, 8vw, 92px) 0; }
.section-heading { max-width: 700px; margin-bottom: 30px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info-card { background: var(--paper); padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(20,32,43,.04); }
.info-card > span { display: block; color: var(--navy-2); font-size: .78rem; font-weight: 850; margin-bottom: 34px; }
.info-card p { margin: 11px 0 0; color: var(--muted); }
.schedule-section { border-top: 1px solid var(--line); }
.timeline { border-top: 2px solid var(--navy); }
.timeline article { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; padding: 20px 8px; border-bottom: 1px solid var(--line); }
.timeline article div { display: flex; align-items: baseline; gap: 30px; }
.timeline span { width: 100px; color: var(--muted); text-transform: uppercase; font-size: .76rem; font-weight: 800; letter-spacing: .08em; }
.timeline strong { font-size: clamp(1rem, 2vw, 1.3rem); }
.timeline small { color: var(--muted); }
.timeline .rest { background: #e8ecee; padding-inline: 16px; }
.cta { margin: 0 0 70px; padding: 36px; border-radius: 24px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.cta h2 { max-width: 700px; }
footer { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; display: flex; justify-content: space-between; gap: 20px; }
footer p { margin: 0; }

.auth-page { background: linear-gradient(135deg, #e7edf0 0%, var(--canvas) 52%, #edf1f2 100%); }
.auth-main { min-height: calc(100vh - 170px); display: grid; place-items: center; padding: 30px 0 70px; }
.auth-panel { width: min(560px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(26px, 6vw, 46px); box-shadow: var(--shadow); }
.back-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--navy-2); margin-bottom: 36px; font-size: .88rem; font-weight: 700; }
.auth-panel h1 { color: var(--ink); font-size: clamp(2rem, 7vw, 3.4rem); text-transform: none; }
.auth-intro { margin: 18px 0 30px; color: var(--muted); }
.field { display: grid; gap: 7px; margin-bottom: 19px; }
.field label { color: #364754; font-size: .82rem; font-weight: 800; }
.field input, .field select { width: 100%; min-height: 52px; padding: 0 14px; color: var(--ink); background: #fff; border: 1px solid #bdc9d0; border-radius: 10px; }
.field input:focus, .field select:focus { border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(36,75,104,.13); outline: none; }
.field small { color: var(--muted); font-size: .77rem; }
.form-message { margin: 0 0 18px; padding: 13px 14px; border-radius: 10px; background: var(--red-soft); border-left: 4px solid var(--red); color: #702929; font-size: .88rem; }
.privacy-note { margin-top: 28px; padding: 19px; background: var(--blue-soft); border-radius: 13px; }
.privacy-note strong { color: var(--navy); }
.privacy-note p { margin: 6px 0 0; color: var(--muted); font-size: .85rem; }

.private-page { background: var(--canvas); }
.private-header { min-height: 80px; border-bottom: 1px solid var(--line); }
.text-button { min-height: 44px; padding: 8px 12px; border: 1px solid #b9c7cf; border-radius: 9px; background: #fff; color: var(--navy); font-weight: 750; cursor: pointer; }
.private-main { padding: 44px 0 80px; }
.loading-state { min-height: 50vh; display: grid; place-items: center; align-content: center; color: var(--muted); }
.spinner { width: 36px; height: 36px; border: 3px solid #d7e0e5; border-top-color: var(--navy); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .spinner { animation: none; border-top-color: #d7e0e5; } }
.private-error { max-width: 620px; margin: 60px auto; text-align: center; background: #fff; padding: 38px; border-radius: 20px; border: 1px solid var(--line); }
.private-error h1 { font-size: 2rem; text-transform: none; }
.student-heading { padding: 28px 0 34px; border-bottom: 1px solid var(--line); }
.student-heading h1 { max-width: 920px; font-size: clamp(2rem, 6vw, 4.7rem); text-transform: none; }
.course-line { margin: 18px 0 0; color: var(--muted); font-size: 1.05rem; }
.course-line strong { color: var(--ink); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
.metric { min-height: 138px; padding: 20px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 16px; }
.metric strong { display: block; font-size: 2.7rem; line-height: 1; letter-spacing: -.05em; }
.metric span { display: block; margin-top: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; font-weight: 800; }
.metric.conflicts { border-top-color: var(--amber); }
.private-section { padding-top: 56px; padding-bottom: 10px; }
.result-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.result-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.result-card h3 { font-size: .98rem; }
.result-card p { margin: 4px 0 0; color: var(--red); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.recovery-details { display: grid; gap: 3px; margin-top: 12px; color: var(--muted); font-size: .78rem; }
.recovery-details strong { margin-top: 4px; color: var(--navy); }
.recovery-details .approved { color: var(--green); }.recovery-details .not_approved,.recovery-details .no_show { color: var(--red); }.recovery-details .pending_grading { color: var(--amber); }
.exit-eligibility { margin: 24px 0 0; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: #fff; color: var(--ink); }.exit-eligibility strong { display:block; font-size: 1.05rem; letter-spacing:.03em; }.exit-eligibility p { margin: 8px 0; }.exit-eligibility ul { margin: 8px 0 0; padding-left: 20px; }.exit-eligibility.eligible { background: var(--green-soft); border-color:#bfd8c9; color:var(--green); }.exit-eligibility.not_eligible { background:var(--red-soft); border-color:#e9c5c5; color:var(--red); }.exit-eligibility.pending_result,.exit-eligibility.future_sessions { background:var(--amber-soft); border-color:#e9d2a3; color:#6d4b12; }
.grade { min-width: 62px; padding: 9px 10px; border-radius: 10px; text-align: center; background: var(--red-soft); color: #7a2929; font-size: 1.12rem; font-weight: 850; }
.grade.pending { background: var(--amber-soft); color: #6d4b12; font-size: .72rem; }
.no-recoveries { margin: 24px 0 0; padding: 24px; background: var(--green-soft); border: 1px solid #c7ded2; border-radius: 18px; display: flex; gap: 17px; }
.success-icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-weight: 900; }
.no-recoveries p { margin: 7px 0 0; color: #456353; }
.day-list { display: grid; gap: 18px; }
.day-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.day-head { padding: 20px 22px; background: var(--navy); color: #fff; }
.day-head h3 { text-transform: uppercase; letter-spacing: .04em; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); }
.slot { min-width: 0; padding: 20px; border-right: 1px solid var(--line); }
.slot:last-child { border-right: 0; }
.slot-time { margin: 0 0 16px; color: var(--navy); font-size: .8rem; font-weight: 850; }
.session { padding: 14px 0; border-top: 1px solid var(--line); }
.session:first-of-type { border-top: 0; }
.session h4 { margin: 0; font-size: .96rem; }
.session dl { margin: 9px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 7px; font-size: .8rem; color: var(--muted); }
.session dt { font-weight: 750; }
.session dd { margin: 0; }
.empty-slot { min-height: 150px; padding: 15px; border-radius: 12px; background: #f2f5f6; color: var(--muted); font-size: .82rem; }
.empty-slot strong { display: block; margin-bottom: 8px; color: #43535e; }
.conflict-box { border: 2px solid #d7a13e; border-radius: 13px; overflow: hidden; }
.conflict-title { margin: 0; padding: 11px 13px; background: var(--amber-soft); color: #6e4a0f; font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .055em; }
.conflict-box .session { padding-inline: 13px; }
.conflict-message { margin: 0; padding: 13px; background: #fff8e9; color: #60491e; border-top: 1px solid #ead4a7; font-size: .8rem; font-weight: 650; }

@media (max-width: 820px) {
  .public-hero { grid-template-columns: 1fr; }
  .hero-note { min-height: 270px; }
  .institutional-notice { padding: 22px; }
  .info-grid { grid-template-columns: 1fr; }
  .cta { align-items: flex-start; flex-direction: column; }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .slots { grid-template-columns: 1fr; }
  .slot { border-right: 0; border-bottom: 1px solid var(--line); }
  .slot:last-child { border-bottom: 0; }
}

@media (max-width: 560px) {
  .site-header, .private-header, main, footer { width: min(100% - 24px, 1180px); }
  .institution strong { font-size: .78rem; }
  .institution small { font-size: .7rem; }
  .institution-mark { width: 40px; height: 40px; }
  .public-hero { border-radius: 20px; }
  .hero-copy { padding: 34px 24px 40px; }
  .hero-note { padding: 34px 24px; }
  .institutional-notice { grid-template-columns: 1fr; gap: 10px; padding: 20px; }
  .button { width: 100%; }
  .timeline article { align-items: flex-start; }
  .timeline article div { display: grid; gap: 5px; }
  .timeline span { width: auto; }
  footer { flex-direction: column; }
  .auth-main { padding-top: 10px; }
  .auth-panel { border-radius: 18px; }
  .private-header { gap: 12px; }
  .private-header .institution small { display: none; }
  .text-button { font-size: .78rem; }
  .private-main { padding-top: 22px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 120px; }
  .metric:first-child { grid-column: 1 / -1; }
  .result-list { grid-template-columns: 1fr; }
  .day-head { padding: 18px; }
  .slot { padding: 18px; }
}
