:root {
  --bg: #f4fbfb;
  --bg-soft: #eef8f8;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-strong: rgba(255, 255, 255, 0.88);
  --line: rgba(112, 173, 181, 0.16);
  --ink: #1f3a42;
  --muted: #5f7f87;
  --teal: #7cc9c7;
  --teal-deep: #4faab0;
  --sky: #a8d8ea;
  --mint: #d8f1ee;
  --aqua: #dff6fb;
  --lavender: #eef1ff;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(104, 164, 173, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(168, 216, 234, 0.5), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(238, 241, 255, 0.85), transparent 20%),
    radial-gradient(circle at bottom right, rgba(124, 201, 199, 0.24), transparent 26%),
    linear-gradient(180deg, #f6fcfc 0%, #edf8f9 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.45), transparent 25%);
  opacity: 0.75;
}

.page-shell {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 20px 48px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-link {
  text-decoration: none;
}

.brand-logo {
  width: 104px;
  height: 104px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 14px 22px rgba(31, 58, 66, 0.08));
}

.brand-copy {
  display: grid;
  gap: 6px;
}

.brand-text {
  font-size: 1.48rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  line-height: 1;
  color: #234f59;
  text-decoration: none;
}

.brand-subtext {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1;
  color: #58757d;
}

.topnav a {
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
}

.topnav {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

.topbar-auth-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.topbar-auth-link {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.92rem;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: center;
  min-height: 68vh;
}

.eyebrow,
.card-label {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--teal-deep);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: -0.05em;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 0.9;
  max-width: 8.2ch;
}

.lead {
  margin: 24px 0 0;
  max-width: 42ch;
  font-size: 1.08rem;
  line-height: 1.7;
  color: #35555e;
}

.section-heading p,
.story-card p,
.slide-copy p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.primary-link,
.secondary-link,
.danger-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.secondary-link[href="#"],
.primary-link[href="#"] {
  cursor: pointer;
}

.primary-link {
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-deep), #6cc2c7);
  box-shadow: 0 18px 36px rgba(79, 170, 176, 0.24);
}

.secondary-link {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(124, 201, 199, 0.2);
}

.danger-link {
  color: #8f3137;
  background: rgba(255, 237, 239, 0.92);
  border: 1px solid rgba(214, 120, 128, 0.28);
}

.primary-link:hover,
.secondary-link:hover,
.danger-link:hover,
.slide-dot:hover {
  transform: translateY(-2px);
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.soft-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.statement-card,
.highlight-card,
.story-card,
.slideshow-shell,
.promise-band {
  padding: 28px;
}

.statement-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(223, 246, 251, 0.72));
}

.highlight-card {
  background:
    linear-gradient(145deg, rgba(216, 241, 238, 0.78), rgba(238, 241, 255, 0.66));
}

.statement-card p:last-child,
.highlight-card p:last-child {
  margin: 0;
  line-height: 1.75;
  color: #3c5a62;
}

.highlight-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.highlight-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(216, 241, 238, 0.95);
  color: var(--teal-deep);
  font-size: 0.86rem;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.stats-section {
  margin-top: 54px;
}

.stats-heading {
  margin-bottom: 20px;
}

.stats-shell {
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(216, 241, 238, 0.62));
}

.stats-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.stats-tab {
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #49707a;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(104, 164, 173, 0.1);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.stats-tab.active {
  background: linear-gradient(135deg, var(--teal-deep), #6cc2c7);
  color: var(--white);
}

.stats-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1.1fr);
  gap: 16px;
  align-items: end;
  margin-bottom: 22px;
}

.stats-copy h3 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.track-separator {
  display: inline-block;
  margin: 0 0.45rem;
  color: #7da4ab;
  font-weight: 500;
}

.stats-copy p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--muted);
}

.stats-graph {
  display: grid;
  gap: 14px;
}

.metric-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 72px;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(124, 201, 199, 0.16);
}

.metric-label {
  font-size: 0.94rem;
  font-weight: 600;
  color: #3f666f;
}

.metric-bar {
  position: relative;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(79, 170, 176, 0.12);
}

.metric-fill {
  height: 100%;
  border-radius: 999px;
}

.metric-fill.gpa {
  background: linear-gradient(135deg, #9bcff0, #76c4dc);
}

.metric-fill.mcat {
  background: linear-gradient(135deg, #78c8c6, #56b2bb);
}

.metric-fill.applicants {
  background: linear-gradient(135deg, #b5b7f3, #9aa5ea);
}

.metric-fill.matriculants {
  background: linear-gradient(135deg, #f0c49d, #e7ab8a);
}

.metric-fill.clinical {
  background: linear-gradient(135deg, #8ad7b0, #64c79b);
}

.metric-fill.research {
  background: linear-gradient(135deg, #8db7ef, #6e9de0);
}

.metric-fill.service {
  background: linear-gradient(135deg, #f1b9c6, #e59dae);
}

.metric-value {
  text-align: right;
  font-size: 0.94rem;
  font-weight: 700;
  color: #2b5a64;
}

.stats-footnotes {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.stats-footnotes p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
}

.age-note {
  padding-top: 10px;
  border-top: 1px solid rgba(124, 201, 199, 0.16);
}

.source-note {
  font-size: 0.84rem;
}

.story-card h2 {
  margin-bottom: 14px;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  line-height: 1;
}

.slideshow-section {
  margin-top: 56px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.04;
  margin-bottom: 14px;
}

.slideshow-shell {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(223, 246, 251, 0.66));
}

.slide {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.88fr);
  gap: 22px;
  align-items: center;
  min-height: 380px;
}

.slide.active {
  display: grid;
  animation: fadeIn 420ms ease;
}

.slide-visual {
  min-height: 320px;
  border-radius: 28px;
  background-size: cover;
  background-position: center;
}

.visual-one {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.65), transparent 22%),
    linear-gradient(135deg, rgba(168, 216, 234, 0.92), rgba(124, 201, 199, 0.78)),
    linear-gradient(180deg, #d9f4f2, #c8e8f4);
}

.visual-two {
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.58), transparent 18%),
    linear-gradient(135deg, rgba(216, 241, 238, 0.98), rgba(168, 216, 234, 0.9)),
    linear-gradient(180deg, #eefaf8, #d9eef6);
}

.visual-three {
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.55), transparent 18%),
    linear-gradient(135deg, rgba(124, 201, 199, 0.86), rgba(168, 216, 234, 0.88)),
    linear-gradient(180deg, #d9f2f1, #cfe9f7);
}

.slide-copy h3 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.02;
}

.slide-controls {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.slide-dot {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(124, 201, 199, 0.34);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.slide-dot.active {
  background: var(--teal-deep);
}

.promise-band {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(238, 241, 255, 0.54));
}

.cta-band {
  margin-bottom: 10px;
}

.auth-shell {
  min-height: 100vh;
}

.dashboard-shell {
  max-width: 1360px;
}

.dashboard-topbar {
  margin-bottom: 22px;
  position: relative;
  z-index: 12;
}

.dashboard-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.account-menu {
  position: relative;
  z-index: 20;
  padding-bottom: 10px;
  margin-bottom: -10px;
}

.account-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 8px 4px 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(104, 164, 173, 0.08);
  cursor: default;
}

.dashboard-user-chip-plain {
  display: inline-flex;
  align-items: center;
  min-height: auto;
  padding: 0 0 0 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #4b6d75;
  font-size: 0.88rem;
  font-weight: 600;
}

.account-menu-arrow {
  font-size: 0.76rem;
  color: #5f7f87;
}

.account-menu-panel {
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  min-width: 190px;
  padding: 10px;
  display: grid;
  gap: 6px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(124, 201, 199, 0.18);
  box-shadow: 0 20px 36px rgba(104, 164, 173, 0.16);
  z-index: 30;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.account-menu:hover .account-menu-panel,
.account-menu:focus-within .account-menu-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.account-menu-link {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  color: #355962;
  text-decoration: none;
  background: rgba(244, 251, 251, 0.96);
  border: 1px solid rgba(124, 201, 199, 0.12);
  font-weight: 600;
}

.account-menu-button {
  width: 100%;
  font: inherit;
  cursor: pointer;
}

.dashboard-user-chip,
.dashboard-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(124, 201, 199, 0.18);
  color: #4b6d75;
  font-size: 0.88rem;
  font-weight: 600;
}

.dashboard-main {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.dashboard-sidebar,
.dashboard-hero,
.dashboard-stat,
.dashboard-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(238, 241, 255, 0.62));
}

.dashboard-sidebar {
  position: sticky;
  top: 18px;
  padding: 22px;
}

.dashboard-nav {
  display: grid;
  gap: 10px;
}

.dashboard-nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  color: #355962;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(124, 201, 199, 0.14);
  font-weight: 600;
}

.dashboard-nav-link.active {
  background: linear-gradient(135deg, var(--teal-deep), #6cc2c7);
  color: var(--white);
}

.dashboard-sidebar-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(124, 201, 199, 0.14);
}

.dashboard-sidebar-note p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.dashboard-content {
  display: grid;
  gap: 18px;
}

.dashboard-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding: 28px;
}

.dashboard-hero h1 {
  max-width: 11ch;
}

.dashboard-lead {
  max-width: 48ch;
}

.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-stat,
.dashboard-card {
  padding: 22px;
}

.dashboard-stat h2 {
  margin: 8px 0 10px;
  font-size: 1.55rem;
  line-height: 1.05;
}

.dashboard-stat p:last-child,
.dashboard-card p,
.timeline-row span {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.dashboard-card-copy {
  margin-bottom: 16px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-lower-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.account-main {
  align-items: start;
}

.account-hero {
  align-items: start;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}

.dashboard-card h3 {
  font-size: 1.45rem;
  line-height: 1.04;
}

.dashboard-card-actions {
  margin-top: 18px;
}

.timeline-stack,
.profile-list {
  display: grid;
  gap: 12px;
}

.dashboard-form {
  display: grid;
  gap: 14px;
}

.dashboard-feedback {
  margin-top: 0;
}

.dashboard-submit {
  margin-top: 0;
}

.button-link {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.academics-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 22px;
  align-items: center;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(216, 241, 238, 0.66));
}

.academics-hero-side {
  display: grid;
}

.service-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.service-tab {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #3d6770;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.service-tab.active {
  background: linear-gradient(135deg, var(--teal-deep), #6cc2c7);
  color: var(--white);
}

.academics-source-note {
  margin-top: 18px;
  max-width: 60ch;
}

.service-toggle-inline {
  margin-top: 6px;
  margin-bottom: 12px;
}

.academics-source-note-inline {
  margin-top: 0;
  margin-bottom: 18px;
}

.progress-ring-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(124, 201, 199, 0.18);
}

.progress-ring-shell {
  position: relative;
  display: grid;
  place-items: center;
}

.progress-ring {
  width: 180px;
  height: 180px;
  transform: rotate(-90deg);
}

.progress-ring-track,
.progress-ring-fill {
  fill: none;
  stroke-width: 10;
}

.progress-ring-track {
  stroke: rgba(124, 201, 199, 0.18);
}

.progress-ring-fill {
  stroke: #4faab0;
  stroke-linecap: round;
  transition: stroke-dashoffset 220ms ease;
}

.progress-ring-copy {
  position: absolute;
  display: grid;
  place-items: center;
  gap: 6px;
  text-align: center;
}

.progress-ring-copy strong {
  font-size: 2rem;
  line-height: 1;
  color: #234f59;
}

.progress-ring-copy span {
  max-width: 14ch;
  font-size: 0.88rem;
  color: var(--muted);
}

.progress-summary {
  display: grid;
  gap: 12px;
}

.academics-stats .dashboard-stat h2 {
  font-size: 2rem;
}

.academics-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: start;
}

.requirements-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.requirements-column {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(124, 201, 199, 0.14);
  min-width: 0;
}

.requirements-column-recommended {
  background: rgba(238, 241, 255, 0.46);
  border-color: rgba(154, 165, 234, 0.18);
}

.requirements-list,
.semester-stack {
  display: grid;
  gap: 12px;
}

.requirement-row,
.semester-row {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(124, 201, 199, 0.14);
}

.requirement-row strong,
.semester-row strong {
  display: block;
  color: #2c5963;
}

.requirement-row span,
.semester-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.requirement-progress-shell {
  width: 100%;
}

.requirement-progress-bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(124, 201, 199, 0.16);
}

.requirement-progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 220ms ease;
}

.requirement-progress-fill.missing {
  width: 0;
  background: rgba(124, 201, 199, 0.16);
}

.requirement-progress-fill.early {
  background: linear-gradient(135deg, #f0c49d, #e7ab8a);
}

.requirement-progress-fill.steady {
  background: linear-gradient(135deg, #e6d98d, #d4c764);
}

.requirement-progress-fill.strong {
  background: linear-gradient(135deg, #8ad7b0, #64c79b);
}

.requirement-progress-fill.complete {
  background: linear-gradient(135deg, #55bc86, #2f9f66);
}

.requirement-progress-value {
  display: block;
  margin-top: 8px;
  color: #476871;
  font-size: 0.84rem;
  font-weight: 700;
}

.source-box {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(124, 201, 199, 0.14);
}

.source-box a {
  color: #3d7e89;
  text-decoration: none;
}

.semester-row-stats {
  display: grid;
  justify-items: start;
  gap: 2px;
}

.academics-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.academics-toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  align-items: center;
}

.course-table-shell {
  margin-top: 14px;
  overflow-x: auto;
  padding: 6px 0 2px;
}

.course-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
  table-layout: fixed;
}

.course-table th,
.course-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(124, 201, 199, 0.14);
  text-align: left;
  vertical-align: top;
}

.course-table th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #5b7d86;
}

.checkbox-col {
  width: 48px;
}

.course-table th:nth-child(2),
.course-table td:nth-child(2) {
  width: 120px;
}

.course-table th:nth-child(3),
.course-table td:nth-child(3) {
  width: 28%;
}

.course-table th:nth-child(4),
.course-table td:nth-child(4) {
  width: 18%;
}

.course-table th:nth-child(5),
.course-table td:nth-child(5),
.course-table th:nth-child(6),
.course-table td:nth-child(6),
.course-table th:nth-child(7),
.course-table td:nth-child(7),
.course-table th:nth-child(8),
.course-table td:nth-child(8) {
  width: 90px;
}

.course-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.action-link {
  background: transparent;
  border: 0;
  padding: 0;
}

.empty-state {
  padding: 18px 0;
  color: var(--muted);
  line-height: 1.7;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(28, 54, 60, 0.3);
  z-index: 20;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-card {
  width: min(760px, 100%);
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(238, 241, 255, 0.78));
}

.modal-head {
  margin-bottom: 16px;
}

.modal-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #355962;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 6px;
}

.modal-submit {
  width: auto;
  min-width: 180px;
}

.checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #3b6068;
  font-size: 0.94rem;
}

.form-field select {
  min-height: 52px;
  border: 1px solid rgba(124, 201, 199, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  padding: 0 14px;
  font: inherit;
}
.timeline-row,
.profile-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(124, 201, 199, 0.14);
}

.timeline-row strong,
.profile-row strong {
  color: #2c5963;
}

.profile-row span {
  color: var(--muted);
}

.dashboard-nav-link.disabled {
  opacity: 0.56;
  cursor: default;
}

.email-warning {
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(240, 196, 157, 0.18);
  border: 1px solid rgba(240, 196, 157, 0.4);
  color: #9c643c;
  font-size: 0.9rem;
  font-weight: 600;
}

.hidden {
  display: none;
}

.auth-main {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(360px, 1fr);
  gap: 26px;
  align-items: start;
  padding-top: 26px;
}

.auth-intro {
  padding-top: 34px;
}

.auth-note-card {
  margin-top: 28px;
  padding: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(223, 246, 251, 0.72));
}

.auth-panel {
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(238, 241, 255, 0.66));
}

.auth-main-single {
  grid-template-columns: minmax(360px, 720px);
  justify-content: center;
}

.auth-lead {
  max-width: 34ch;
}

.auth-toggle {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.auth-tab {
  min-height: 50px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  color: #4b6d75;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.auth-tab.active {
  background: linear-gradient(135deg, var(--teal-deep), #6cc2c7);
  color: var(--white);
}

.auth-google {
  display: grid;
  gap: 8px;
}

.google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  border: 1px solid rgba(124, 201, 199, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  color: #234f59;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.google-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f6f8ff, #dff6fb);
  color: #397383;
  font-weight: 800;
}

.auth-divider {
  position: relative;
  margin: 18px 0 22px;
  text-align: center;
}

.auth-divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: rgba(124, 201, 199, 0.18);
}

.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 14px;
  background: rgba(247, 252, 252, 0.96);
  color: #6c8a91;
  font-size: 0.9rem;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field span {
  font-size: 0.92rem;
  font-weight: 600;
  color: #385a63;
}

.form-field input {
  min-height: 52px;
  border: 1px solid rgba(124, 201, 199, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  padding: 0 14px;
  font: inherit;
}

.form-field input.is-complete,
.form-field select.is-complete {
  background: rgba(223, 246, 251, 0.92);
  border-color: rgba(124, 201, 199, 0.34);
}

.form-field-full {
  grid-column: 1 / -1;
}

.auth-helper {
  margin: 10px 0 0;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #6a878f;
}

.auth-helper-spaced {
  margin-top: 16px;
}

.auth-feedback {
  min-height: 22px;
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.auth-feedback[data-state="error"] {
  color: #b14c57;
}

.auth-feedback[data-state="success"] {
  color: #2f7b67;
}

.auth-feedback[data-state="info"] {
  color: #4f7d86;
}

.submit-button {
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  border: 0;
  border-radius: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-deep), #6cc2c7);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(79, 170, 176, 0.18);
}

.auth-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.remember-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4c6d76;
  font-size: 0.92rem;
}

.text-link {
  color: #4f8c96;
  text-decoration: none;
  font-size: 0.92rem;
}

.promise-band h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  line-height: 1.08;
  max-width: 21ch;
}

.promise-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.promise-points span {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(124, 201, 199, 0.2);
  color: #3f666f;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .topbar,
  .promise-band,
  .hero,
  .story-grid,
  .slide {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar {
    display: grid;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .topnav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .slide {
    min-height: auto;
  }

  .slide-visual {
    min-height: 240px;
  }

  .promise-points {
    justify-content: flex-start;
  }

  .stats-copy,
  .metric-card {
    grid-template-columns: 1fr;
  }

  .metric-value {
    text-align: left;
  }

  .auth-main,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .academics-hero,
  .academics-grid,
  .account-grid,
  .requirements-columns,
  .academics-toolbar {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-main,
  .dashboard-stats,
  .dashboard-grid,
  .dashboard-lower-grid,
  .dashboard-hero {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-sidebar {
    position: relative;
    top: 0;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 18px 14px 34px;
  }

  .statement-card,
  .highlight-card,
  .story-card,
  .slideshow-shell,
  .promise-band {
    padding: 22px;
    border-radius: 24px;
  }

  h1 {
    max-width: none;
  }

  .brand-text {
    font-size: 1.08rem;
    letter-spacing: 0.16em;
  }

  .brand-subtext {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
  }

  .brand-logo {
    width: 74px;
    height: 74px;
  }

  .topbar-auth-actions {
    width: 100%;
  }

  .topbar-auth-link {
    flex: 1 1 0;
  }

  .modal-actions {
    width: 100%;
    flex-direction: column;
  }

  .academics-toolbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .modal-submit,
  .modal-actions .secondary-link {
    width: 100%;
  }
}
