/*
 * V9.4 homepage action plan.
 * Replaces passive status-heavy hero with a concrete three-step daily plan.
 */
html:not(.react-student-embedded) body .landing-welcome-panel,
html:not(.react-student-embedded) body .landing-v5-command-center {
  display: none !important;
}

html:not(.react-student-embedded) body .landing-action-plan {
  position: relative !important;
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  order: -20 !important;
  display: grid !important;
  grid-template-columns: minmax(300px, 0.78fr) minmax(520px, 1.22fr) !important;
  gap: 24px !important;
  min-height: 350px !important;
  padding: 26px !important;
  overflow: hidden !important;
  border: 1px solid rgba(99, 102, 241, 0.16) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 14% 18%, rgba(59, 130, 246, 0.17), transparent 35%),
    radial-gradient(circle at 42% 100%, rgba(124, 58, 237, 0.12), transparent 40%),
    linear-gradient(135deg, #f8fbff 0%, #f7f5ff 52%, #ffffff 100%) !important;
  box-shadow: 0 20px 48px rgba(67, 56, 202, 0.08) !important;
}

html:not(.react-student-embedded) body .landing-action-plan::after {
  content: "" !important;
  position: absolute !important;
  top: -100px !important;
  right: -80px !important;
  width: 280px !important;
  height: 280px !important;
  border-radius: 999px !important;
  background: rgba(99, 102, 241, 0.08) !important;
  filter: blur(4px) !important;
  pointer-events: none !important;
}

html:not(.react-student-embedded) body .landing-action-intro {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr) !important;
  align-content: center !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 12px 8px 12px 10px !important;
}

html:not(.react-student-embedded) body .landing-action-avatar {
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  border: 3px solid rgba(255, 255, 255, 0.92) !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 28px rgba(49, 94, 251, 0.16) !important;
}

html:not(.react-student-embedded) body .landing-action-intro .eyebrow {
  margin: 0 0 8px !important;
  color: #4f46e5 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
}

html:not(.react-student-embedded) body .landing-action-intro .landing-greeting-line {
  margin: 0 !important;
  color: #111827 !important;
  font-size: clamp(27px, 2.5vw, 38px) !important;
  font-weight: 850 !important;
  line-height: 1.14 !important;
  letter-spacing: -0.035em !important;
}

html:not(.react-student-embedded) body .landing-action-gap {
  display: grid !important;
  gap: 7px !important;
  margin: 18px 0 0 !important;
  color: #64748b !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

html:not(.react-student-embedded) body .landing-action-gap > strong {
  color: #334155 !important;
  font-weight: 750 !important;
}

html:not(.react-student-embedded) body .landing-action-gap > span {
  width: fit-content !important;
  padding: 8px 12px !important;
  color: #4338ca !important;
  border: 1px solid rgba(99, 102, 241, 0.16) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.68) !important;
  font-weight: 700 !important;
}

html:not(.react-student-embedded) body .landing-action-gap b {
  color: #e11d48 !important;
  font-size: 20px !important;
  font-weight: 850 !important;
}

html:not(.react-student-embedded) body .landing-action-focus {
  grid-column: 1 / -1 !important;
  display: grid !important;
  gap: 3px !important;
  margin-top: 24px !important;
  padding: 14px 16px !important;
  border-left: 3px solid #6366f1 !important;
  border-radius: 0 12px 12px 0 !important;
  background: rgba(255, 255, 255, 0.5) !important;
}

html:not(.react-student-embedded) body .landing-action-focus span {
  color: #111827 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

html:not(.react-student-embedded) body .landing-action-focus strong {
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

html:not(.react-student-embedded) body .landing-action-schedule {
  position: relative !important;
  z-index: 2 !important;
  display: grid !important;
  grid-template-rows: auto 1fr auto !important;
  gap: 13px !important;
  padding: 20px !important;
  border: 1px solid rgba(148, 163, 184, 0.17) !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 14px 36px rgba(51, 65, 85, 0.08) !important;
  backdrop-filter: blur(16px) !important;
}

html:not(.react-student-embedded) body .landing-action-schedule > header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

html:not(.react-student-embedded) body .landing-action-schedule > header .eyebrow {
  margin: 0 0 3px !important;
  color: #6366f1 !important;
  font-size: 10px !important;
  font-weight: 850 !important;
  letter-spacing: 0.14em !important;
}

html:not(.react-student-embedded) body .landing-action-schedule > header h2 {
  margin: 0 !important;
  color: #111827 !important;
  font-size: 21px !important;
  font-weight: 850 !important;
}

html:not(.react-student-embedded) body .landing-action-schedule > header > span {
  padding: 6px 10px !important;
  color: #64748b !important;
  border-radius: 999px !important;
  background: #f1f5f9 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

html:not(.react-student-embedded) body .landing-action-list {
  display: grid !important;
  gap: 8px !important;
}

html:not(.react-student-embedded) body .landing-action-item {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 58px !important;
  padding: 9px 12px !important;
  color: #334155 !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  border-radius: 13px !important;
  background: #fff !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease !important;
}

html:not(.react-student-embedded) body .landing-action-item:hover,
html:not(.react-student-embedded) body .landing-action-item:focus-visible {
  border-color: rgba(79, 70, 229, 0.34) !important;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.08) !important;
  outline: none !important;
  transform: translateY(-1px) !important;
}

html:not(.react-student-embedded) body .landing-action-item.is-primary {
  border-color: rgba(79, 70, 229, 0.24) !important;
  background: linear-gradient(90deg, rgba(238, 242, 255, 0.9), #fff) !important;
}

html:not(.react-student-embedded) body .landing-action-index {
  display: grid !important;
  place-items: center !important;
  width: 32px !important;
  height: 32px !important;
  color: #64748b !important;
  border-radius: 10px !important;
  background: #f1f5f9 !important;
  font-size: 11px !important;
  font-weight: 850 !important;
}

html:not(.react-student-embedded) body .landing-action-item.is-primary .landing-action-index {
  color: #fff !important;
  background: linear-gradient(135deg, #3b82f6, #7c3aed) !important;
}

html:not(.react-student-embedded) body .landing-action-copy {
  display: grid !important;
  gap: 3px !important;
  min-width: 0 !important;
}

html:not(.react-student-embedded) body .landing-action-copy strong {
  overflow: hidden !important;
  color: #172033 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.react-student-embedded) body .landing-action-copy small {
  overflow: hidden !important;
  color: #7c8799 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.react-student-embedded) body .landing-action-item em {
  color: #6366f1 !important;
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 800 !important;
}

html:not(.react-student-embedded) body .landing-action-result {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(148, 163, 184, 0.17) !important;
}

html:not(.react-student-embedded) body .landing-action-result > div {
  display: grid !important;
  gap: 2px !important;
}

html:not(.react-student-embedded) body .landing-action-result span {
  color: #7c8799 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

html:not(.react-student-embedded) body .landing-action-result strong {
  color: #059669 !important;
  font-size: 16px !important;
  font-weight: 850 !important;
}

html:not(.react-student-embedded) body .landing-action-result .landing-primary-action {
  min-width: 140px !important;
  min-height: 42px !important;
  padding: 0 18px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #3b82f6, #6d4aff) !important;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.2) !important;
}

html[data-theme="dark"]:not(.react-student-embedded) body .landing-action-plan {
  border-color: rgba(129, 140, 248, 0.2) !important;
  background:
    radial-gradient(circle at 14% 18%, rgba(59, 130, 246, 0.18), transparent 35%),
    radial-gradient(circle at 42% 100%, rgba(124, 58, 237, 0.16), transparent 40%),
    linear-gradient(135deg, #111b2e 0%, #15172b 52%, #101827 100%) !important;
}

html[data-theme="dark"]:not(.react-student-embedded) body .landing-action-intro .landing-greeting-line,
html[data-theme="dark"]:not(.react-student-embedded) body .landing-action-focus span,
html[data-theme="dark"]:not(.react-student-embedded) body .landing-action-schedule > header h2,
html[data-theme="dark"]:not(.react-student-embedded) body .landing-action-copy strong {
  color: #f8fafc !important;
}

html[data-theme="dark"]:not(.react-student-embedded) body .landing-action-gap,
html[data-theme="dark"]:not(.react-student-embedded) body .landing-action-focus strong,
html[data-theme="dark"]:not(.react-student-embedded) body .landing-action-copy small {
  color: #9fb0c6 !important;
}

html[data-theme="dark"]:not(.react-student-embedded) body .landing-action-gap > strong {
  color: #dbeafe !important;
}

html[data-theme="dark"]:not(.react-student-embedded) body .landing-action-gap > span,
html[data-theme="dark"]:not(.react-student-embedded) body .landing-action-focus,
html[data-theme="dark"]:not(.react-student-embedded) body .landing-action-schedule {
  background: rgba(15, 23, 42, 0.72) !important;
}

html[data-theme="dark"]:not(.react-student-embedded) body .landing-action-item {
  color: #cbd5e1 !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
  background: rgba(15, 23, 42, 0.78) !important;
}

html[data-theme="dark"]:not(.react-student-embedded) body .landing-action-item.is-primary {
  background: linear-gradient(90deg, rgba(67, 56, 202, 0.2), rgba(15, 23, 42, 0.78)) !important;
}

@media (max-width: 1050px) {
  html:not(.react-student-embedded) body .landing-action-plan {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }

  html:not(.react-student-embedded) body .landing-action-intro {
    align-content: start !important;
  }
}

@media (max-width: 680px) {
  html:not(.react-student-embedded) body .landing-action-plan {
    padding: 16px !important;
    border-radius: 18px !important;
  }

  html:not(.react-student-embedded) body .landing-action-intro {
    grid-template-columns: 46px minmax(0, 1fr) !important;
    padding: 4px !important;
  }

  html:not(.react-student-embedded) body .landing-action-avatar {
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
  }

  html:not(.react-student-embedded) body .landing-action-intro .landing-greeting-line {
    font-size: 25px !important;
  }

  html:not(.react-student-embedded) body .landing-action-schedule {
    padding: 15px !important;
  }

  html:not(.react-student-embedded) body .landing-action-result {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  html:not(.react-student-embedded) body .landing-action-result .landing-primary-action {
    width: 100% !important;
  }
}

/* Win against the legacy v51 module allow-list without changing other pages. */
:is(#hw-v6-home, html):not(.react-student-embedded) body[data-active-panel="landing"] .shell .main.main > section.panel.active.landing-workspace > div.landing-home-grid > article.section-card.landing-action-plan[data-home-module-key="action-plan"] {
  display: grid !important;
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  order: -1 !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

:is(#hw-v6-home, html):not(.react-student-embedded) body[data-active-panel="landing"] .shell .main.main > section.panel.active.landing-workspace > div.landing-home-grid > article.section-card.landing-welcome-panel[data-home-module-key="welcome"],
:is(#hw-v6-home, html):not(.react-student-embedded) body[data-active-panel="landing"] .shell .main.main > section.panel.active.landing-workspace > div.landing-home-grid > article.section-card.landing-v5-command-center.engineering-workbench-task[data-home-module-key="v5-command-center"] {
  display: none !important;
}

:is(#hw-v6-home, html):not(.react-student-embedded) body[data-active-panel="landing"] .shell .main.main > section.panel.active.landing-workspace .landing-action-result > #landingStartInterviewBtn.landing-primary-action {
  position: static !important;
  inset: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 140px !important;
  max-width: none !important;
  height: auto !important;
  min-height: 42px !important;
  margin: 0 !important;
}
