.sidebar-profile,
.future-sidebar-profile {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: 44px 1fr;
  margin-top: auto;
  padding: 12px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-profile:hover,
.future-sidebar-profile:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.sidebar-profile-icon,
.future-sidebar-profile-icon {
  align-items: center;
  background: linear-gradient(135deg, #2563eb, #10b981);
  border-radius: 14px;
  color: #ffffff;
  display: inline-flex;
  font-size: 18px;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  overflow: hidden;
  width: 44px;
}

.sidebar-profile-icon img,
.future-sidebar-profile-icon img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.homework-profile-chip > span,
.chat-profile-chip > span,
.learning-profile-chip > span,
.progress-profile-chip > span {
  overflow: hidden;
}

.homework-profile-chip > span img,
.chat-profile-chip > span img,
.learning-profile-chip > span img,
.progress-profile-chip > span img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.sidebar-profile-text,
.future-sidebar-profile-text {
  min-width: 0;
}

.sidebar-profile-label,
.future-sidebar-profile-label {
  color: #6b7280;
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 3px;
}

.sidebar-profile-name,
.future-sidebar-profile-name {
  color: #111827;
  display: block;
  font-size: 15px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-logout,
.future-sidebar-logout {
  border: none;
  background: #fee2e2;
  color: #dc2626;
  cursor: pointer;
  font-weight: 900;
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  width: 100%;
}

.sidebar-logout-link {
  display: block;
  margin-top: auto !important;
  text-decoration: none;
}

.sidebar-logout-link .sidebar-logout {
  margin-top: 0;
}

.sidebar-logout:hover,
.future-sidebar-logout:hover {
  background: #fecaca;
}

.sidebar .logout {
  margin-top: auto !important;
}

.sidebar > .sidebar-logout,
.future-sidebar > .future-sidebar-logout,
.ptln-sidebar > .side-link {
  margin-top: auto !important;
}

/* Shared sidebar typography and spacing, matched to the dashboard rhythm. */
.sidebar nav,
.future-sidebar nav,
.ptln-primary-nav {
  gap: 6px;
}

.sidebar-nav-group {
  align-items: center;
  color: #64748b;
  display: flex;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  margin: 9px 4px 2px;
  padding: 0 4px;
}

.sidebar-nav-group::after {
  background: #e2e8f0;
  content: "";
  flex: 1;
  height: 1px;
  margin-left: 8px;
}

.sidebar nav .sidebar-nav-group,
.future-sidebar nav .sidebar-nav-group,
.ptln-primary-nav .sidebar-nav-group {
  grid-column: 1 / -1;
}

.sidebar nav a,
.future-sidebar nav a,
.ptln-primary-nav a {
  font-size: 13.6px;
  line-height: 1.25;
}

.sidebar nav a,
.ptln-primary-nav a {
  min-height: 46px;
  padding: 7px 10px;
}

.sidebar nav a:has(> span),
.ptln-primary-nav a {
  gap: 9px;
  grid-template-columns: 31px 1fr;
}

.sidebar nav a > span,
.ptln-primary-nav a span {
  border-radius: 11px;
  font-size: 9.35px;
  height: 30px;
  width: 30px;
}

.future-sidebar nav a {
  min-height: 40px;
  padding: 8px 10px;
}

.sidebar-mini-status span,
.sidebar .dashboard-support-card span,
.ptln-sidebar-mini-status span,
.ptln-sidebar .sidebar-support span,
.future-sidebar .dashboard-support-card span {
  font-size: 10.2px;
}

.sidebar-mini-status strong,
.ptln-sidebar-mini-status strong {
  font-size: 12.75px;
}

.sidebar-logout,
.future-sidebar-logout,
.ptln-sidebar .side-link {
  font-size: 13.6px;
}

.sidebar .dashboard-support-card p,
.future-sidebar .dashboard-support-card p {
  font-size: 11.9px;
}

.sidebar .dashboard-support-card a,
.future-sidebar .dashboard-support-card a,
.ptln-sidebar .sidebar-support a {
  font-size: 10.2px;
}

/* Shared sidebar status hierarchy refinement. */
.sidebar-mini-status span,
.sidebar .dashboard-support-card span,
.ptln-sidebar-mini-status span,
.ptln-sidebar .sidebar-support span,
.future-sidebar .dashboard-support-card span {
  font-weight: 600;
  line-height: 1.4;
}

.sidebar-mini-status strong,
.ptln-sidebar-mini-status strong {
  font-weight: 650;
}

.sidebar-mini-status p,
.ptln-sidebar-mini-status p,
.sidebar .dashboard-support-card p,
.future-sidebar .dashboard-support-card p {
  color: #64748b;
  font-weight: 400;
  line-height: 1.55;
}

.sidebar .dashboard-support-card a,
.future-sidebar .dashboard-support-card a,
.ptln-sidebar .sidebar-support a {
  font-weight: 600;
}

body.profile-edit-page .future-sidebar nav.ptln-primary-nav a,
body.profile-edit-page .future-sidebar nav.ptln-primary-nav a.active,
body.profile-edit-page .future-sidebar nav.ptln-primary-nav a:hover,
body.profile-edit-page .future-sidebar nav.ptln-primary-nav a.ptln-nav-link {
  font-weight: 500;
}

body.ptln-page .ptln-sidebar .sidebar-logout-link {
  margin-top: auto !important;
}

body.ptln-page .ptln-sidebar {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  padding-top: 24px;
  scrollbar-color: rgba(100, 116, 139, 0.32) transparent;
  scrollbar-width: thin;
}

body.ptln-page .ptln-sidebar .logo {
  margin-bottom: 10px;
}

body.ptln-page .ptln-primary-nav {
  margin-top: 8px;
}

body.ptln-page .ptln-primary-nav .sidebar-nav-group {
  margin-bottom: 6px;
}

body.ptln-page .ptln-sidebar .side-link,
body.ptln-page .ptln-sidebar .sidebar-logout {
  font-size: 12px;
  min-height: 32px;
  padding: 7px 8px;
}

@media (max-height: 780px) and (min-width: 1101px) {
  body.ptln-page .ptln-sidebar .side-link,
  body.ptln-page .ptln-sidebar .sidebar-logout {
    font-size: 11.2px;
    min-height: 29px;
    padding: 6px 8px;
  }
}

/* Final compact Home hero sizing after the complete Study Abroad bundle loads. */
@media (min-width: 1101px) and (max-height: 900px) {
  body.ptln-page #homeSection .ptln-home-hero-illustration {
    gap: 16px;
    height: 360px;
    min-height: 360px;
    padding: 18px 18px 18px 24px;
  }

  body.ptln-page #homeSection .ptln-home-hero-illustration::before {
    inset: 18px auto 18px 0;
  }

  body.ptln-page #homeSection .ptln-home-hero-copy {
    gap: 10px;
  }

  body.ptln-page #homeSection .ptln-home-hero-copy h2 {
    font-size: clamp(32px, 2.65vw, 42px);
    line-height: 1;
  }

  body.ptln-page #homeSection .ptln-home-hero-copy p:not(.eyebrow) {
    font-size: 12.5px;
    line-height: 1.4;
  }

  body.ptln-page #homeSection .ptln-home-hero-proof {
    gap: 6px;
  }

  body.ptln-page #homeSection .ptln-home-hero-proof span {
    font-size: 9.5px;
    padding: 6px 8px;
  }

  body.ptln-page #homeSection .ptln-home-hero-artwork {
    margin: -8px -6px -8px 0;
  }

  body.ptln-page #homeSection .ptln-home-hero-artwork img {
    max-height: 360px;
  }

  body.ptln-page #homeSection .ptln-home-hero-badge {
    bottom: 12px;
    left: 18px;
    max-width: min(290px, calc(100% - 32px));
    padding: 8px 10px;
  }

  body.ptln-page #homeSection .ptln-home-hero-badge strong {
    font-size: 12.5px;
  }

  body.ptln-page #homeSection .ptln-home-hero-badge span {
    font-size: 10.75px;
  }
}
