:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-soft: #f3f5f9;
  --text: #172033;
  --muted: #667085;
  --accent: #2f3192;
  --accent-soft: #eef0ff;
  --border: rgba(16, 24, 40, 0.1);
  --shadow: 0 16px 40px rgba(16, 24, 40, 0.06);
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --compass-heading-font: "Manrope", Inter, ui-sans-serif, system-ui, sans-serif;
  --compass-body-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body.compass-page {
  min-height: 100vh;
  font-family: var(--compass-body-font);
  color: var(--text);
  background:
    radial-gradient(circle at 72% 0%, rgba(47, 49, 146, 0.08), transparent 32%),
    linear-gradient(180deg, #fbfbfd 0%, var(--bg) 100%);
}

.compass-page button,
.compass-page input,
.compass-page select,
.compass-page textarea {
  font: inherit;
}

.compass-page button {
  cursor: pointer;
}

.compass-page button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.compass-page p,
.compass-page span,
.compass-page button,
.compass-page input,
.compass-page textarea,
.compass-page select,
.compass-page label {
  font-family: var(--compass-body-font);
}

.compass-page h1,
.compass-page h2,
.compass-page h3,
.dashboard-greeting,
.projects-hero h1,
.workspace-hero h1,
.portfolio-redesign-header h1,
.readiness-hero h1,
.page-hero h1,
.project-card h3,
.workspace-panel-heading h2,
.readiness-panel-heading h2,
.portfolio-redesign-panel h2 {
  font-family: var(--compass-heading-font);
  font-weight: 700;
  letter-spacing: -0.045em;
}

.dashboard-greeting,
.projects-hero h1,
.workspace-hero h1,
.portfolio-redesign-header h1,
.readiness-hero h1,
.page-hero h1 {
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

/* Layout */

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

.compass-main {
  min-width: 0;
  padding: 12px 48px 72px;
  overflow-x: hidden;
}

#interests-view,
#projects-view,
#portfolio-view,
#college-readiness-view,
#workspace-view {
  width: min(100%, 1180px);
  margin-left: auto;
  margin-right: auto;
}

.projects-page,
.portfolio-redesign-page,
.readiness-page,
.workspace-page {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

#interests-view .page-hero,
.projects-hero,
.portfolio-redesign-header,
.readiness-hero,
.workspace-hero {
  margin-left: auto;
  margin-right: auto;
}

/* Sidebar */

.compass-sidebar {
  position: sticky;
  top: 0;
  isolation: isolate;
  height: 100vh;
  overflow-y: auto;
  padding: 28px 16px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 34px;
  background:
    radial-gradient(circle at 30% 12%, rgba(255, 255, 255, 0.08), transparent 26%),
    radial-gradient(circle at 80% 78%, rgba(47, 49, 146, 0.22), transparent 34%),
    linear-gradient(180deg, #08182f 0%, #061225 48%, #071b33 100%);
}

.compass-sidebar::-webkit-scrollbar {
  width: 0;
}

.compass-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.compass-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
  padding: 0 8px 24px;
}

.compass-brand::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(214, 172, 90, 0.7), transparent);
}

.compass-brand img {
  width: 48px;
  height: 48px;
  border-radius: 17px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.compass-brand strong,
.compass-brand em {
  display: block;
  font-style: normal;
  line-height: 1.15;
}

.compass-brand strong {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.compass-brand em {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 650;
}

.compass-nav {
  display: grid;
  gap: 7px;
  padding: 2px 2px 0;
}

.nav-item {
  position: relative;
  width: 100%;
  min-height: 54px;
  border: 1px solid transparent;
  border-radius: 15px;
  padding: 0 15px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-size: 17px;
  line-height: 1;
  font-weight: 720;
  letter-spacing: -0.015em;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.72;
  transition: opacity 160ms ease, color 160ms ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.94);
  transform: translateX(1px);
}

.nav-item.active {
  background: linear-gradient(180deg, rgba(78, 93, 179, 0.26), rgba(39, 55, 118, 0.22));
  border-color: rgba(147, 159, 232, 0.22);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14), inset 0 1px rgba(255, 255, 255, 0.055);
  transform: none;
}

.nav-item.active::after {
  content: "";
  position: absolute;
  left: -3px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 999px;
  background: #e7c778;
  box-shadow: 0 0 12px rgba(231, 199, 120, 0.28);
}

.nav-item.active .nav-icon {
  color: #f1d486;
  opacity: 1;
}

.nav-item[data-view="college-readiness"],
.nav-item[data-view="readiness"] {
  margin-top: 10px;
}

.nav-item[data-view="college-readiness"]::after,
.nav-item[data-view="readiness"]::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: -11px;
  height: 1px;
  background: rgba(255, 255, 255, 0.09);
}

.nav-item-locked,
.nav-item-dev {
  opacity: 0.58;
}

.nav-item-locked span,
.nav-item-dev span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.38);
}

.sidebar-note,
.sidebar-demo-note {
  margin-top: auto;
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(214, 172, 90, 0.16), transparent 38%),
    rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03),
    0 18px 42px rgba(0, 0, 0, 0.22);
}

.sidebar-note {
  margin-top: auto;
}

.sidebar-note span,
.sidebar-demo-note span {
  display: block;
  margin-bottom: 8px;
  color: rgba(245, 211, 138, 0.9);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sidebar-note p,
.sidebar-demo-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 650;
}

.sidebar-demo-note a {
  display: inline-flex;
  margin-top: 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

body.is-logged-in .sidebar-demo-note {
  display: none;
}

/* Topbar */

.compass-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 42px;
  margin-bottom: 28px;
  padding-top: 4px;
}

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

.demo-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
  color: #be123c;
  border: 1px solid rgba(190, 18, 60, 0.14);
  box-shadow: 0 10px 24px rgba(190, 18, 60, 0.08);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.topbar-secondary-link,
.topbar-primary-link,
.compass-primary-btn,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.topbar-secondary-link,
.topbar-primary-link {
  height: 48px;
  min-width: 124px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
}

.topbar-secondary-link,
.ghost-button {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
}

.topbar-secondary-link {
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.055);
}

.topbar-primary-link,
.compass-primary-btn {
  border: 0;
  background: linear-gradient(180deg, #5759ee 0%, #3d40c8 52%, #2f3192 100%);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(47, 49, 146, 0.28);
}

.topbar-secondary-link:hover,
.topbar-primary-link:hover {
  transform: translateY(-1px);
}

#student-select {
  height: 48px;
  min-width: 280px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 18px;
  background: #ffffff;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.055);
}

.logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 999px;
  background: #ffffff;
  color: #344054;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* Shared page headers */

.page-hero,
.project-header {
  max-width: 900px;
  margin-bottom: 30px;
}

.page-kicker,
.project-eyebrow,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(47, 49, 146, 0.08);
  color: var(--accent);
  border: 1px solid rgba(47, 49, 146, 0.1);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero h1,
.project-header h1,
.project-header-copy h1 {
  max-width: 720px;
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(42px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.page-hero p,
.project-header p,
.project-header-copy p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

/* Category icon assets */

.interest-card-visual,
.project-thumb,
.premium-portfolio-icon,
.portfolio-redesign-list .premium-portfolio-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.interest-card-visual img,
.project-thumb-icon,
.premium-portfolio-icon-img,
.portfolio-redesign-list .premium-portfolio-icon-img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 0;
}

.demo-student-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(16, 24, 40, 0.08);
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.05);
  margin-bottom: 18px;
}

.demo-student-pill span {
  font-size: 22px;
}

.demo-student-pill strong {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.demo-student-pill small {
  margin-left: auto;
  color: #667085;
  font-size: 14px;
  font-weight: 600;
}

/* Premium modal */

.premium-feature-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-items: center;
  padding: 22px;
}

.premium-feature-modal.active {
  display: grid;
}

.premium-feature-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(86, 89, 214, 0.18), transparent 34%),
    rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.premium-feature-card {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(47, 49, 146, 0.14);
  border-radius: 36px;
  background:
    radial-gradient(circle at 100% 0%, rgba(86, 89, 214, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 255, 0.96));
  box-shadow:
    0 34px 100px rgba(15, 23, 42, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: center;
}

.premium-feature-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #667085;
  font-size: 22px;
  cursor: pointer;
}

.premium-feature-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 20px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.95), transparent 42%),
    linear-gradient(180deg, #f0f2ff, #e6e8ff);
  color: #2f3192;
  font-size: 32px;
  font-weight: 900;
  box-shadow:
    0 18px 44px rgba(47, 49, 146, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.premium-feature-kicker {
  margin: 0 0 12px;
  color: #2f3192;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.premium-feature-card h2 {
  max-width: 420px;
  margin: 0 auto;
  color: #101828;
  font-family: var(--compass-heading-font);
  font-size: clamp(34px, 5vw, 48px);
  line-height: 0.96;
  letter-spacing: -0.065em;
  font-weight: 800;
}

.premium-feature-copy {
  max-width: 430px;
  margin: 18px auto 0;
  color: #667085;
  font-size: 16px;
  line-height: 1.58;
  font-weight: 500;
}

.premium-feature-list {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  text-align: left;
}

.premium-feature-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: #344054;
  font-size: 14px;
  font-weight: 750;
}

.premium-feature-list span::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #eef0ff;
  color: #2f3192;
  font-size: 12px;
  font-weight: 900;
}

.premium-feature-primary,
.premium-feature-secondary {
  display: inline-flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.premium-feature-primary {
  background: linear-gradient(180deg, #5759ee 0%, #2f3192 100%);
  color: #ffffff;
  box-shadow: 0 20px 42px rgba(47, 49, 146, 0.28);
}

.premium-feature-secondary {
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: #667085;
  cursor: pointer;
}

.compass-mobile-nav {
  display: none;
}

/* Responsive */

@media (max-width: 980px) {
  .compass-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-stat-row,
  .dashboard-lower-grid,
  .workspace-hero,
  .workspace-focus-grid,
  .workspace-reflection-area,
  .interest-grid,
  .project-detail-grid {
    grid-template-columns: 1fr;
  }

  .premium-interest-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  #interest-continue-btn {
    width: 100%;
  }
}

@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  body.compass-page {
    padding-bottom: 96px;
  }

  .compass-shell {
    display: block;
    min-height: 100vh;
  }

  .compass-sidebar {
    display: none;
  }

  .compass-main {
    width: 100%;
    padding: 22px 18px 120px;
    overflow-x: hidden;
  }

  .compass-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    margin: -22px -18px 26px;
    padding: 14px 18px;
    background: rgba(247, 248, 251, 0.82);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-bottom: 1px solid rgba(16, 24, 40, 0.08);
  }

  .demo-pill {
    min-height: 42px;
    padding: 0 18px;
    font-size: 12px;
    white-space: nowrap;
  }

  .topbar-actions {
    display: contents;
  }

  .topbar-secondary-link {
    display: none;
  }

  .topbar-primary-link {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    min-height: 42px;
    height: 42px;
    padding: 0 18px;
    font-size: 14px;
    white-space: nowrap;
  }

  #student-select {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    height: 48px;
    font-size: 15px;
  }

  #logout-btn,
  #sign-out-button,
  .sign-out-button,
  [data-sign-out] {
    display: none;
  }

  .page-hero h1,
  .projects-hero h1,
  .portfolio-redesign-header h1,
  .workspace-hero h1,
  .readiness-hero h1 {
    font-size: clamp(36px, 12vw, 48px);
    letter-spacing: -0.05em;
  }

  .project-detail-panel * {
    min-width: 0;
    max-width: 100%;
  }

  .project-detail-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  .project-detail-section {
    width: 100%;
  }

  .project-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .workspace-launch-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .compass-mobile-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 14px;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 8px;
    border-radius: 28px;
    background: rgba(7, 18, 37, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
      0 18px 48px rgba(7, 18, 37, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
  }

  .mobile-nav-item {
    min-width: 0;
    min-height: 58px;
    border: 0;
    border-radius: 22px;
    background: transparent;
    color: rgba(255, 255, 255, 0.62);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: -0.01em;
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 7px 2px;
  }

  .mobile-nav-item span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 24px;
    font-size: 18px;
    line-height: 1;
  }

  .mobile-nav-item.active {
    background:
      radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 42%),
      linear-gradient(180deg, rgba(83, 103, 255, 0.7), rgba(47, 49, 146, 0.82));
    color: #ffffff;
    box-shadow:
      0 10px 26px rgba(47, 49, 146, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  .mobile-nav-item.active span {
    color: #f5d38a;
  }

  .premium-feature-card {
    padding: 28px 22px;
    border-radius: 30px;
  }
}

.logout-button {
  height: 48px;
  min-width: 92px;
  padding: 0 18px;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 999px;
  background: #ffffff;
  color: #344054;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.055);
  white-space: nowrap;
}

.logout-button:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 49, 146, 0.22);
}

.account-bar {
  display: flex;
  align-items: center;
  gap: 18px;
}

.account-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 8px 22px 8px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 24, 40, 0.1);
  box-shadow: 0 18px 44px rgba(16, 24, 40, 0.07);
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #ececff;
  color: #101828;
  font-size: 22px;
  font-weight: 850;
}

.account-status-dot {
  width: 12px;
  height: 12px;
  margin-left: -4px;
  border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 0 4px #fff;
}

.account-copy {
  display: grid;
  gap: 2px;
}

.account-copy strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.1;
  font-weight: 850;
}

.account-copy span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 650;
}

.account-divider {
  width: 1px;
  height: 46px;
  background: rgba(16, 24, 40, 0.12);
}

.account-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 16px;
  font-weight: 750;
  cursor: pointer;
}

.account-logout-btn span {
  font-size: 22px;
  line-height: 1;
}

.account-logout-btn:hover {
  color: var(--text);
}

body.is-demo .account-bar {
  display: none !important;
}

body.is-logged-in .topbar-secondary-link,
body.is-logged-in .topbar-primary-link {
  display: none !important;
}

@media (max-width: 720px) {
  body.compass-page {
    padding-bottom: 88px;
  }

  .compass-main {
    padding: 22px 18px 104px;
  }

  .dashboard-greeting,
  #hero-greeting,
  .interests-hero h1,
  .projects-hero h1,
  .workspace-hero h1,
  .portfolio-redesign-header h1,
  .readiness-hero h1 {
    font-size: clamp(34px, 10.5vw, 46px);
    line-height: 1;
    letter-spacing: -0.055em;
  }

  .dashboard-hero-subtitle,
  .interests-hero p,
  .projects-hero p,
  .workspace-hero p {
    font-size: 17px;
    line-height: 1.45;
  }

  .projects-page {
    padding-bottom: 96px;
  }

  .projects-hero {
    display: block;
    margin-bottom: 24px;
    min-height: 0;
  }

  .projects-search-card,
  .interests-summary-card {
    width: 100%;
    max-width: none;
    margin: 22px 0 0;
    padding: 20px;
  }

  .project-grid {
    display: grid;
    gap: 16px;
    margin-top: 0;
  }

  .project-card,
  .premium-project-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 38px;
    gap: 14px;
    padding: 16px;
  }

  .compass-mobile-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    height: 64px;
    padding: 6px;
    border-radius: 24px;
    background: rgba(7, 18, 37, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
      0 18px 48px rgba(7, 18, 37, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
  }

  .mobile-nav-item {
    min-width: 0;
    min-height: 0;
    width: 100%;
    padding: 6px 1px;
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: rgba(255, 255, 255, 0.62);
    font-size: 9px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: -0.035em;
    display: grid;
    place-items: center;
    gap: 4px;
    overflow: hidden;
    white-space: nowrap;
  }

  .mobile-nav-item span {
    display: grid;
    place-items: center;
    width: auto;
    height: auto;
    font-size: 15px;
    line-height: 1;
  }

  .mobile-nav-item.active {
    min-width: 0;
    background:
      radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 42%),
      linear-gradient(180deg, rgba(83, 103, 255, 0.72), rgba(47, 49, 146, 0.84));
    color: #ffffff;
    box-shadow:
      0 10px 26px rgba(47, 49, 146, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  .mobile-nav-item.active span {
    color: #f5d38a;
  }
}

.project-create-account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  pointer-events: auto;
  position: relative;
  z-index: 5;
}

@media (max-width: 760px) {
  .compass-mobile-nav {
    left: 16px;
    right: 16px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    height: 62px;
    padding: 6px;
    border-radius: 26px;
    gap: 2px;
  }

  .mobile-nav-item {
    min-width: 0 !important;
    width: 100%;
    min-height: 50px;
    padding: 5px 1px;
    border-radius: 20px;
    font-size: 0;
    gap: 2px;
  }

  .mobile-nav-item::after {
    content: attr(data-label);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
  }

  .mobile-nav-item span {
    font-size: 16px;
  }

  .mobile-nav-item.active {
    min-width: 0 !important;
  }

  .mobile-nav-item.active::after {
    font-size: 11px;
  }
}

@media (max-width: 760px) {
  .compass-mobile-nav {
    left: 12px !important;
    right: 12px !important;
    bottom: 14px !important;
    height: auto !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 4px !important;
    padding: 8px !important;
    border-radius: 28px !important;
  }

  .mobile-nav-item {
    min-width: 0 !important;
    min-height: 58px !important;
    width: 100% !important;
    padding: 7px 2px !important;
    border-radius: 22px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    display: grid !important;
    place-items: center !important;
    gap: 4px !important;
    overflow: visible !important;
  }

  .mobile-nav-item::after {
    content: none !important;
  }

  .mobile-nav-item span {
    width: 26px !important;
    height: 24px !important;
    font-size: 18px !important;
    line-height: 1 !important;
  }

  .mobile-nav-item.active {
    min-width: 0 !important;
  }
}

/* Compass page alignment reset */

#dashboard-view,
#interests-view,
#projects-view,
#portfolio-view,
#college-readiness-view,
#workspace-view {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.dashboard-v2,
.interests-page,
.projects-page,
.portfolio-redesign-page,
.readiness-page,
.workspace-page {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.dashboard-v2-hero,
.interests-hero,
.projects-hero,
.portfolio-redesign-header,
.readiness-hero,
.workspace-hero {
  width: 100%;
  max-width: 1120px;
  margin: 42px auto 34px;
}

.dashboard-hero-content,
.interests-hero > div,
.projects-hero > div,
.portfolio-redesign-header > div,
.readiness-hero-copy,
.workspace-hero > div {
  max-width: 720px;
}

@media (max-width: 760px) {
  #dashboard-view,
  #interests-view,
  #projects-view,
  #portfolio-view,
  #college-readiness-view,
  #workspace-view,
  .dashboard-v2,
  .interests-page,
  .projects-page,
  .portfolio-redesign-page,
  .readiness-page,
  .workspace-page {
    max-width: none;
  }

  .dashboard-v2-hero,
  .interests-hero,
  .projects-hero,
  .portfolio-redesign-header,
  .readiness-hero,
  .workspace-hero {
    margin: 28px 0 28px;
  }
}
/* Read-only counselor preview */
body.is-counselor-preview { padding-top: 58px; }
.counselor-preview-banner {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 2000;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px clamp(18px, 4vw, 46px);
  color: #fff;
  background: linear-gradient(95deg, #111f39, #3034aa);
  box-shadow: 0 10px 30px rgba(5, 13, 31, 0.22);
}
.counselor-preview-banner div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.counselor-preview-banner span {
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 999px;
  color: #bdc3ff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.counselor-preview-banner strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.counselor-preview-banner a {
  flex: none;
  padding: 8px 12px;
  border-radius: 11px;
  color: #17213b;
  background: #fff;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}
.counselor-preview-notice {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 2100;
  max-width: min(90vw, 580px);
  padding: 13px 17px;
  border-radius: 14px;
  color: #fff;
  background: #111c33;
  box-shadow: 0 20px 50px rgba(4, 11, 27, .28);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity .2s ease, transform .2s ease;
}
.counselor-preview-notice.show { opacity: 1; transform: translate(-50%, 0); }
.is-counselor-preview #workspace-view input,
.is-counselor-preview #workspace-view textarea,
.is-counselor-preview #workspace-view .workspace-deliverable {
  pointer-events: none;
  opacity: .78;
}
.counselor-preview-error {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 30px;
  text-align: center;
  color: #0d1930;
  background: #f7f8fb;
}
.counselor-preview-error img { width: 58px; height: 58px; object-fit: contain; }
.counselor-preview-error span { color: #4b4ecd; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.counselor-preview-error h1 { max-width: 580px; margin: 4px 0; font-size: clamp(34px, 6vw, 58px); letter-spacing: -.055em; }
.counselor-preview-error p { max-width: 520px; margin: 0; color: #657086; line-height: 1.65; }
.counselor-preview-error a { margin-top: 10px; padding: 13px 18px; border-radius: 14px; color: #fff; background: #4245ca; font-weight: 800; text-decoration: none; }

@media (max-width: 720px) {
  body.is-counselor-preview { padding-top: 68px; }
  .counselor-preview-banner { min-height: 68px; padding: 9px 13px; }
  .counselor-preview-banner div { display: grid; gap: 4px; }
  .counselor-preview-banner span { width: fit-content; }
  .counselor-preview-banner a { max-width: 120px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .counselor-preview-notice { transition: none; }
}

.account-copy small {
  color: #5559bc;
  font-size: 9px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .account-copy small { display: none; }
}


/* Dedicated Project Library entry point */
.projects-library-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-top: 28px;
  padding: 28px;
  border: 1px solid rgba(111, 102, 222, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 94% 8%, rgba(108, 99, 255, 0.11), transparent 35%),
    #fff;
  box-shadow: 0 20px 55px rgba(22, 34, 63, 0.08);
}

.projects-library-entry-mark {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 18px;
  color: #5c55df;
  background: #f0efff;
  font-size: 24px;
}

.projects-library-entry h2 {
  margin: 5px 0 7px;
  font-size: clamp(23px, 2.5vw, 32px);
  letter-spacing: -0.035em;
}

.projects-library-entry p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.projects-library-entry-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: #4c46d8;
  box-shadow: 0 13px 30px rgba(76, 70, 216, 0.23);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

#project-library-view {
  padding: 0;
}

.family-project-library-host {
  width: 100%;
}

@media (max-width: 820px) {
  .projects-library-entry {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .projects-library-entry-action {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .projects-library-entry {
    grid-template-columns: 1fr;
    padding: 22px;
  }
}

/* Compass simplification patch, 2026-07-27 */
.account-menu > .account-menu-label:first-child { display:none; }
.projects-library-unified { margin-top: clamp(34px, 5vw, 72px); }
.projects-library-unified-heading { margin-bottom: 20px; }

/* Apple-quality sidebar account footer + contextual Interests restore, 2026-07-27 */
.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.sidebar-footer .sidebar-demo-note {
  margin-top: 0;
}

.sidebar-demo-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.sidebar-demo-actions a {
  margin-top: 0;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.055);
}

.sidebar-demo-actions .sidebar-demo-primary {
  color: #10182d;
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.sidebar-account-bar {
  display: none;
  width: 100%;
}

body.is-logged-in .sidebar-account-bar {
  display: block;
}

.sidebar-account-bar .account-menu-wrap {
  position: relative;
  width: 100%;
}

.sidebar-account-pill {
  width: 100%;
  min-height: 66px;
  padding: 8px 10px;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.065);
  color: #fff;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.sidebar-account-pill:hover,
.sidebar-account-pill[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.17);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.075), 0 14px 30px rgba(0, 0, 0, 0.17);
}

.sidebar-account-pill .account-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  color: #17213a;
  background: linear-gradient(180deg, #ffffff, #f0f1ff);
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.16);
}

.sidebar-account-pill .account-status-dot {
  position: absolute;
  left: 44px;
  bottom: 13px;
  width: 9px;
  height: 9px;
  margin: 0;
  border: 2px solid #0d1d34;
  box-shadow: none;
}

.sidebar-account-pill .account-copy {
  min-width: 0;
  flex: 1;
  gap: 1px;
}

.sidebar-account-pill .account-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-account-pill .account-copy small {
  order: 2;
  color: rgba(255,255,255,.58);
  font-size: 9px;
  letter-spacing: .09em;
}

.sidebar-account-pill .account-copy span {
  display: none;
}

.sidebar-account-pill .account-menu-chevron {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0 2px 0 0;
  fill: none;
  stroke: rgba(255,255,255,.58);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.sidebar-account-pill[aria-expanded="true"] .account-menu-chevron {
  transform: rotate(180deg);
}

.sidebar-account-menu,
.account-menu.sidebar-account-menu {
  position: absolute;
  left: 0;
  right: auto;
  top: auto;
  bottom: calc(100% + 10px);
  z-index: 120;
  width: min(272px, calc(100vw - 28px));
  padding: 8px;
  border: 1px solid rgba(16, 24, 40, 0.10);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 24px 70px rgba(2, 11, 29, 0.27), 0 2px 10px rgba(2, 11, 29, 0.08);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  transform-origin: left bottom;
}

.account-menu-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 11px;
}

.account-menu-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 11px;
  background: #f0efff;
  color: #373a9e;
  font-size: 13px;
  font-weight: 900;
}

.account-menu-identity div:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.account-menu-identity strong {
  color: #111827;
  font-size: 13px;
  font-weight: 820;
}

.account-menu-identity span {
  color: #7a8496;
  font-size: 11px;
  line-height: 1.35;
}

.sidebar-account-menu .account-menu-divider {
  margin: 3px 7px 6px;
  border-top: 1px solid #edf0f5;
}

.sidebar-account-menu .account-menu-label {
  padding: 6px 11px 4px;
  color: #929aac;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.sidebar-account-menu button {
  min-height: 40px;
  padding: 0 11px;
  border-radius: 11px;
  font-size: 13px;
}

.sidebar-account-menu button.account-menu-signout {
  margin-top: 6px;
  padding-top: 0;
  border-top: 1px solid #edf0f5;
  border-radius: 0 0 11px 11px;
}

/* The account control lives in the sidebar on desktop. */
.compass-topbar .account-bar { display: none !important; }

@media (max-width: 720px) {
  .sidebar-account-bar { display: none !important; }
  .sidebar-demo-actions { display: none; }
}

/* Parent portal identity: calm Compass blue rather than warning red. */
body.is-parent-account .demo-pill {
  border-color: rgba(69, 74, 190, 0.14);
  background: linear-gradient(180deg, rgba(246, 247, 255, 0.98), rgba(236, 239, 255, 0.96));
  color: #4248a6;
  box-shadow: 0 10px 24px rgba(47, 49, 146, 0.07);
}

/* Respect the native hidden attribute even when component rules set display.
   This prevents paid-only navigation and account controls from flashing or
   appearing in public demos on desktop or mobile. */
[hidden] {
  display: none !important;
}

/* Mobile bottom navigation: four equal, centered destinations */
@media (max-width: 760px) {
  .compass-mobile-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .mobile-nav-item {
    justify-items: center !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .mobile-nav-item > span {
    display: grid !important;
    place-items: center !important;
    width: 26px !important;
    height: 24px !important;
    margin-inline: auto !important;
  }

  .mobile-nav-item > span svg,
  .mobile-nav-item > svg {
    display: block;
    width: 20px;
    height: 20px;
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  body.has-parent-support .compass-mobile-nav { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
}


/* 2026-08-11 premium demo conversion card */
.sidebar-demo-note {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 8%, rgba(113, 104, 242, 0.22), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.055));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 18px 42px rgba(0, 0, 0, 0.22);
}
.sidebar-demo-note::after {
  content: "";
  position: absolute;
  width: 116px;
  height: 116px;
  right: -62px;
  bottom: -68px;
  border: 1px solid rgba(245, 211, 138, 0.18);
  border-radius: 50%;
  pointer-events: none;
}
.sidebar-demo-note span {
  margin-bottom: 10px;
  color: #f1d58f;
  font-size: 10px;
  letter-spacing: .16em;
}
.sidebar-demo-note p {
  max-width: 25ch;
  color: rgba(255,255,255,.92);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 700;
}
.sidebar-demo-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 17px;
}
.sidebar-demo-actions a {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0 15px;
  border-radius: 13px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: -.01em;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.sidebar-demo-actions a:not(.sidebar-demo-primary) {
  order: 2;
  color: rgba(255,255,255,.84);
  border-color: rgba(255,255,255,.14);
  background: rgba(4, 15, 33, .24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.sidebar-demo-actions a:not(.sidebar-demo-primary):hover {
  color: #fff;
  border-color: rgba(255,255,255,.24);
  background: rgba(255,255,255,.08);
  transform: translateY(-1px);
}
.sidebar-demo-actions .sidebar-demo-primary {
  order: 1;
  position: relative;
  justify-content: flex-start;
  padding-right: 38px;
  color: #29277a;
  border-color: rgba(255,255,255,.86);
  background: linear-gradient(135deg,#ffffff 0%,#f1efff 100%);
  box-shadow: 0 10px 28px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,1);
}
.sidebar-demo-actions .sidebar-demo-primary::after {
  content: "→";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #5148cf;
  font-size: 16px;
  line-height: 1;
}
.sidebar-demo-actions .sidebar-demo-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 32px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,1);
}
