:root {
  color-scheme: light;
  --navy-950: #06142c;
  --navy-900: #0a2042;
  --navy-800: #12325f;
  --blue-600: #2869dd;
  --blue-500: #3d7cec;
  --blue-100: #eaf2ff;
  --gold-500: #efb746;
  --gold-100: #fff5d9;
  --green-600: #168567;
  --green-100: #e6f8f1;
  --ink-900: #14213d;
  --ink-700: #44516b;
  --ink-500: #758097;
  --line: #dde5f0;
  --surface: #ffffff;
  --surface-soft: #f4f7fb;
  --shadow-sm: 0 10px 28px rgba(12, 34, 70, 0.08);
  --shadow-md: 0 22px 58px rgba(12, 34, 70, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--surface-soft);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink-900);
  background: var(--surface-soft);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.home-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.home-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 26px 20px 22px;
  color: #fff;
  background:
    radial-gradient(
      circle at 15% 5%,
      rgba(61, 124, 236, 0.3),
      transparent 30%
    ),
    linear-gradient(180deg, var(--navy-950), #0b2a52);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 8px 38px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--navy-950);
  background: linear-gradient(145deg, #ffe79f, var(--gold-500));
  font-size: 21px;
  font-weight: 900;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  font-size: 20px;
  letter-spacing: 0.06em;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
}

.feos-navigation {
  display: grid;
  gap: 8px;
}

.feos-nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 45px;
  padding: 0 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 700;
}

.feos-nav-item:hover,
.feos-nav-item:first-child {
  color: #fff;
  background: rgba(61, 124, 236, 0.24);
}

.sidebar-spacer {
  flex: 1;
}

.learner-profile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.learner-avatar,
.header-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--blue-500), #7559d9);
  font-weight: 800;
}

.learner-avatar {
  width: 39px;
  height: 39px;
}

.learner-profile > div:last-child {
  display: flex;
  flex-direction: column;
}

.learner-profile strong {
  font-size: 12px;
}

.learner-profile span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
}

.home-main {
  min-width: 0;
  padding: 0 34px 30px;
}

.home-header {
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: space-between;
}

.eyebrow {
  margin: 0;
  color: var(--blue-600);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-header h1 {
  margin: 4px 0 0;
  font-size: 31px;
  letter-spacing: -0.035em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-700);
  background: #fff;
}

.header-avatar {
  width: 42px;
  height: 42px;
}

.welcome-hero {
  display: grid;
  min-height: 310px;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  overflow: hidden;
  border-radius: 27px;
  color: #fff;
  background:
    radial-gradient(
      circle at 78% 18%,
      rgba(76, 148, 255, 0.4),
      transparent 32%
    ),
    linear-gradient(120deg, var(--navy-950), #16477f 72%, #2472bb);
  box-shadow: var(--shadow-md);
}

.welcome-copy {
  align-self: center;
  padding: 42px;
}

.hero-label {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.21);
  border-radius: 999px;
  color: #fff1be;
  background: rgba(239, 183, 70, 0.13);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.welcome-copy h2 {
  max-width: 750px;
  margin: 20px 0 13px;
  font-size: clamp(31px, 4vw, 49px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.welcome-copy p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
}

.primary-action {
  color: var(--navy-950);
  background: #fff;
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.23);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.planet {
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.planet-main {
  width: 160px;
  height: 160px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  background:
    radial-gradient(circle at 35% 30%, #4f94ff, #214e9b 55%, #12284d);
  box-shadow:
    inset -20px -25px 35px rgba(4, 13, 32, 0.3),
    0 30px 60px rgba(3, 12, 31, 0.28);
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.orbit {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(4, 18, 40, 0.55);
  backdrop-filter: blur(8px);
}

.orbit-one {
  top: 38px;
  right: 54px;
  width: 55px;
  height: 55px;
}

.orbit-two {
  bottom: 39px;
  left: 36px;
  width: 49px;
  height: 49px;
}

.orbit-three {
  right: 31px;
  bottom: 43px;
  width: 45px;
  height: 45px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(275px, 330px);
  gap: 24px;
  margin-top: 26px;
}

.dashboard-main,
.dashboard-rail {
  display: grid;
  align-content: start;
  gap: 22px;
}

.section-block,
.rail-card {
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.section-block {
  padding: 25px;
}

.section-heading,
.rail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2,
.rail-card h2 {
  margin: 4px 0 0;
  font-size: 21px;
  letter-spacing: -0.025em;
}

.section-heading > a,
.section-heading > span {
  color: var(--blue-600);
  font-size: 11px;
  font-weight: 800;
}

.continue-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #cadbf5;
  border-radius: 16px;
  background:
    linear-gradient(90deg, #f1f7ff, #fff);
}

.continue-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 17px;
  background: var(--blue-100);
  font-size: 30px;
}

.continue-content {
  min-width: 0;
}

.continue-content > span {
  color: var(--blue-600);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.continue-content h3 {
  margin: 3px 0 2px;
  font-size: 17px;
}

.continue-content p,
.continue-content small {
  color: var(--ink-500);
  font-size: 11px;
}

.progress-track {
  height: 6px;
  margin: 11px 0 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf5;
}

.progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-600), #7995f4);
}

.continue-button {
  padding: 11px 15px;
  border-radius: 11px;
  color: #fff;
  background: var(--blue-600);
  font-size: 11px;
  font-weight: 800;
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.application-card {
  position: relative;
  display: flex;
  min-height: 175px;
  flex-direction: column;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    border-color 150ms ease;
}

.application-card:hover {
  border-color: #b9cef0;
  box-shadow: 0 13px 30px rgba(35, 104, 215, 0.11);
  transform: translateY(-2px);
}

.application-card-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 14px;
  background: var(--blue-100);
  font-size: 22px;
}

.application-card-body h3 {
  margin: 15px 0 5px;
  font-size: 14px;
}

.application-card-body p {
  margin: 0;
  color: var(--ink-500);
  font-size: 11px;
  line-height: 1.5;
}

.application-card-status {
  margin-top: auto;
  padding-top: 15px;
  color: var(--blue-600);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.rail-card {
  padding: 22px;
}

.teacher-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 85% 10%,
      rgba(61, 124, 236, 0.14),
      transparent 35%
    ),
    #fff;
}

.teacher-avatar {
  display: grid;
  place-items: center;
  width: 67px;
  height: 67px;
  margin-bottom: 17px;
  border-radius: 50%;
  background:
    linear-gradient(145deg, #dcecff, #efe6ff);
}

.teacher-avatar span {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--blue-500), #7559d9);
  font-size: 20px;
}

.teacher-card > div:last-child > p:not(.eyebrow),
.achievement-card p {
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.55;
}

.teacher-card a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--blue-600);
  font-size: 11px;
  font-weight: 850;
}

.level-badge {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--blue-600);
  background: var(--blue-100);
  font-size: 9px;
  font-weight: 850;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.stat-grid div {
  padding: 13px 5px;
  border-radius: 12px;
  text-align: center;
  background: var(--surface-soft);
}

.stat-grid strong {
  display: block;
  font-size: 20px;
}

.stat-grid span {
  color: var(--ink-500);
  font-size: 9px;
}

.achievement-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-color: #f0d791;
  background: linear-gradient(135deg, var(--gold-100), #fff);
}

.achievement-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #f4c65d, #e39c22);
  font-size: 21px;
}

.achievement-card h2 {
  font-size: 16px;
}

.achievement-card p {
  margin-bottom: 0;
}

.home-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 3px 0;
  color: var(--ink-500);
  font-size: 9px;
}

@media (max-width: 1050px) {
  .home-shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }

  .application-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .home-shell {
    display: block;
  }

  .home-sidebar {
    position: relative;
    display: flex;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 13px 18px;
  }

  .brand {
    margin: 0;
  }

  .brand-copy small,
  .sidebar-spacer,
  .learner-profile {
    display: none;
  }

  #navigationContainer {
    margin-left: auto;
  }

  .feos-navigation {
    display: flex;
  }

  .feos-nav-item {
    padding: 0 10px;
  }

  .feos-nav-item span:last-child {
    display: none;
  }

  .home-main {
    padding: 0 20px 27px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .achievement-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .welcome-hero {
    grid-template-columns: 1fr;
  }

  .welcome-copy {
    padding: 31px 24px;
  }

  .welcome-copy h2 {
    font-size: 34px;
  }

  .hero-visual {
    min-height: 235px;
  }

  .continue-card {
    grid-template-columns: 55px minmax(0, 1fr);
  }

  .continue-icon {
    width: 52px;
    height: 52px;
  }

  .continue-button {
    display: none;
  }

  .application-grid,
  .dashboard-rail {
    grid-template-columns: 1fr;
  }

  .achievement-card {
    grid-column: auto;
  }
}

@media (max-width: 450px) {
  .home-main {
    padding-right: 13px;
    padding-left: 13px;
  }

  .brand-copy {
    display: none;
  }

  .home-header h1 {
    font-size: 24px;
  }

  .welcome-copy h2 {
    font-size: 29px;
  }

  .section-block,
  .rail-card {
    padding: 19px;
  }

  .section-heading {
    flex-direction: column;
    gap: 5px;
  }

  .home-footer {
    flex-direction: column;
    gap: 4px;
  }
}
