/* HardAsk V1.0 · final homepage hierarchy */

:is(#hw-v127-home-final, html):not(.react-student-embedded) body[data-active-panel="landing"] .shell .main.main > section.panel.active.landing-workspace > .landing-home-grid > article.landing-action-plan {
  display: grid !important;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr) !important;
  gap: 16px !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.landing-final-goal-card,
.landing-final-ai-plan,
.landing-final-growth-feedback {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 38px rgba(30, 41, 59, .07);
}

.landing-final-goal-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 356px;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 94% 0%, rgba(124, 58, 237, .14), transparent 38%),
    linear-gradient(145deg, #f8fbff 0%, #f5f3ff 100%);
}

.landing-final-goal-card::after {
  content: "";
  position: absolute;
  right: -82px;
  bottom: -118px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(99, 102, 241, .1);
  border-radius: 50%;
  pointer-events: none;
}

.landing-final-welcome {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
}

:is(#hw-v127-home-final, html):not(.react-student-embedded) body[data-active-panel="landing"] .landing-final-welcome .landing-action-avatar {
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  margin: 0 !important;
  border-radius: 15px !important;
}

.landing-final-welcome > div:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.landing-final-welcome .eyebrow,
.landing-final-ai-plan .eyebrow {
  margin: 0;
  color: #6657ee;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .15em;
}

:is(#hw-v127-home-final, html):not(.react-student-embedded) body[data-active-panel="landing"] .landing-final-welcome .landing-greeting-line {
  margin: 0 !important;
  color: #172033 !important;
  font-size: clamp(22px, 2vw, 28px) !important;
  font-weight: 880 !important;
  line-height: 1.2 !important;
}

.landing-final-welcome > div:last-child > span {
  color: #7b879c;
  font-size: 11px;
  font-weight: 650;
}

.landing-final-target-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 10px;
}

.landing-final-target-role,
.landing-final-target-match,
.landing-final-target-gaps {
  display: grid;
  gap: 6px;
  padding: 14px 15px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 15px;
  background: rgba(255, 255, 255, .76);
}

.landing-final-target-role > span,
.landing-final-target-match > span,
.landing-final-target-gaps > span {
  color: #7c879a;
  font-size: 10px;
  font-weight: 750;
}

.landing-final-target-role > strong {
  color: #172033;
  font-size: 16px;
  font-weight: 880;
  line-height: 1.35;
}

.landing-final-target-match {
  place-content: center;
  text-align: center;
}

.landing-final-target-match > strong {
  color: #5b4ee5;
  font-size: 28px;
  font-weight: 920;
  line-height: 1;
}

.landing-final-target-match > strong small {
  font-size: 13px;
}

.landing-final-target-gaps {
  grid-column: 1 / -1;
}

.landing-final-target-gaps > span b {
  color: #e45467;
  font-size: 13px;
}

.landing-final-target-gaps > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.landing-final-target-gaps em {
  padding: 6px 9px;
  color: #38465c;
  border: 1px solid rgba(99, 102, 241, .13);
  border-radius: 9px;
  background: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
}

:is(#hw-v127-home-final, html):not(.react-student-embedded) body[data-active-panel="landing"] .landing-final-goal-card > #landingStartInterviewBtn.landing-final-goal-action {
  position: relative !important;
  z-index: 2 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 58px !important;
  margin-top: auto !important;
  padding: 9px 12px 9px 16px !important;
  border: 0 !important;
  border-radius: 14px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #397cf4, #7447ed) !important;
  box-shadow: 0 13px 26px rgba(91, 78, 229, .24) !important;
  text-align: left !important;
}

.landing-final-goal-action > span {
  grid-column: 1;
  font-size: 16px;
  font-weight: 900;
}

.landing-final-goal-action > small {
  grid-column: 1;
  color: rgba(255, 255, 255, .76);
  font-size: 10px;
  font-weight: 650;
}

.landing-final-goal-action > i {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, .16);
  font-size: 18px;
  font-style: normal;
}

.landing-final-ai-plan {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 356px;
  padding: 24px;
}

.landing-final-ai-plan > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.landing-final-ai-plan > header h2 {
  margin: 3px 0 0;
  color: #172033;
  font-size: 21px;
  font-weight: 880;
}

.landing-final-ai-plan > header > span {
  padding: 6px 9px;
  color: #6657ee;
  border-radius: 999px;
  background: #f0eeff;
  font-size: 10px;
  font-weight: 760;
  white-space: nowrap;
}

.landing-final-primary-task {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 13px 16px;
  padding: 18px;
  border: 1px solid rgba(99, 102, 241, .2);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(238, 242, 255, .95), rgba(250, 245, 255, .95));
}

.landing-final-task-title,
.landing-final-task-reason {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.landing-final-task-title > span,
.landing-final-task-reason > span {
  color: #7164ec;
  font-size: 10px;
  font-weight: 820;
}

.landing-final-task-title h3 {
  margin: 0;
  color: #172033;
  font-size: 22px;
  font-weight: 900;
}

.landing-final-task-reason {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border-left: 3px solid #8b5cf6;
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, .65);
}

.landing-final-task-reason strong {
  color: #3e4b60;
  font-size: 12px;
  font-weight: 740;
}

.landing-final-task-metrics {
  display: flex;
  gap: 8px;
}

.landing-final-task-metrics > span {
  display: grid;
  min-width: 86px;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, .17);
  border-radius: 11px;
  background: rgba(255, 255, 255, .78);
}

.landing-final-task-metrics small {
  color: #8993a5;
  font-size: 9px;
  font-weight: 700;
}

.landing-final-task-metrics strong {
  color: #27344a;
  font-size: 13px;
  font-weight: 850;
}

.landing-final-task-metrics > span:last-child strong {
  color: #0b9b6d;
}

.landing-final-task-start {
  align-self: end;
  min-width: 116px;
  min-height: 42px;
  padding: 0 14px;
  color: #fff;
  border: 0;
  border-radius: 12px;
  background: #5b4ee5;
  box-shadow: 0 9px 20px rgba(91, 78, 229, .2);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.landing-final-task-start i {
  margin-left: 8px;
  font-style: normal;
}

.landing-final-secondary-tasks {
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 13px;
  background: #fbfcff;
}

.landing-final-secondary-tasks > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 13px;
  color: #7b879b;
  list-style: none;
  cursor: pointer;
}

.landing-final-secondary-tasks > summary::-webkit-details-marker {
  display: none;
}

.landing-final-secondary-tasks > summary span {
  color: #4a5870;
  font-size: 11px;
  font-weight: 820;
}

.landing-final-secondary-tasks > summary strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-final-secondary-tasks > summary i {
  font-style: normal;
  transition: transform 160ms ease;
}

.landing-final-secondary-tasks[open] > summary i {
  transform: rotate(180deg);
}

.landing-final-secondary-tasks > div {
  display: grid;
  gap: 7px;
  padding: 0 12px 12px;
}

.landing-final-secondary-tasks article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 9px;
  background: #fff;
}

.landing-final-secondary-tasks article span,
.landing-final-secondary-tasks article em {
  color: #8a95a8;
  font-size: 10px;
  font-style: normal;
  font-weight: 730;
}

.landing-final-secondary-tasks article strong {
  color: #3a475d;
  font-size: 11px;
  font-weight: 760;
}

.landing-final-growth-feedback {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, 1.05fr) .55fr minmax(300px, 1.25fr) .45fr;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
}

.landing-final-growth-feedback > header {
  display: grid;
  gap: 3px;
}

.landing-final-growth-feedback > header span,
.landing-final-streak > span,
.landing-final-ability-gain > span {
  color: #7e899b;
  font-size: 10px;
  font-weight: 740;
}

.landing-final-growth-feedback > header strong {
  color: #263247;
  font-size: 13px;
  font-weight: 830;
}

.landing-final-streak,
.landing-final-ability-gain {
  display: grid;
  gap: 3px;
  min-height: 48px;
  padding: 7px 12px;
  border-left: 1px solid rgba(148, 163, 184, .18);
}

.landing-final-streak > strong {
  color: #e96538;
  font-size: 17px;
  font-weight: 900;
}

.landing-final-streak b {
  color: #27344a;
}

.landing-final-weekly-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.landing-final-weekly-stats > span {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 11px;
  background: #f6f8fc;
}

.landing-final-weekly-stats small {
  color: #8993a5;
  font-size: 9px;
  font-weight: 680;
}

.landing-final-weekly-stats strong {
  color: #344157;
  font-size: 13px;
  font-weight: 850;
}

.landing-final-ability-gain > strong {
  color: #0aa276;
  font-size: 23px;
  font-weight: 920;
}

html[data-theme="dark"] .landing-final-goal-card,
html[data-theme="dark"] .landing-final-ai-plan,
html[data-theme="dark"] .landing-final-growth-feedback {
  color: #eef4ff;
  border-color: rgba(148, 163, 184, .17);
  background: linear-gradient(145deg, #142033, #0e1827);
}

html[data-theme="dark"] .landing-final-target-role,
html[data-theme="dark"] .landing-final-target-match,
html[data-theme="dark"] .landing-final-target-gaps,
html[data-theme="dark"] .landing-final-primary-task,
html[data-theme="dark"] .landing-final-secondary-tasks,
html[data-theme="dark"] .landing-final-secondary-tasks article,
html[data-theme="dark"] .landing-final-weekly-stats > span {
  color: #eaf1ff;
  border-color: rgba(148, 163, 184, .16);
  background: rgba(15, 23, 42, .74);
}

html[data-theme="dark"] :is(.landing-final-welcome .landing-greeting-line, .landing-final-target-role > strong, .landing-final-ai-plan > header h2, .landing-final-task-title h3, .landing-final-growth-feedback > header strong, .landing-final-weekly-stats strong, .landing-final-streak b) {
  color: #f4f7ff !important;
}

@media (max-width: 1050px) {
  :is(#hw-v127-home-final, html):not(.react-student-embedded) body[data-active-panel="landing"] .shell .main.main > section.panel.active.landing-workspace > .landing-home-grid > article.landing-action-plan {
    grid-template-columns: 1fr !important;
  }

  .landing-final-goal-card,
  .landing-final-ai-plan {
    min-height: 0;
  }

  .landing-final-growth-feedback {
    grid-template-columns: 1fr .55fr 1.35fr .45fr;
  }
}

@media (max-width: 760px) {
  .landing-final-goal-card,
  .landing-final-ai-plan {
    padding: 18px;
    border-radius: 18px;
  }

  .landing-final-primary-task {
    grid-template-columns: 1fr;
  }

  .landing-final-task-start {
    width: 100%;
  }

  .landing-final-growth-feedback {
    grid-template-columns: 1fr 1fr;
  }

  .landing-final-growth-feedback > header,
  .landing-final-weekly-stats {
    grid-column: 1 / -1;
  }

  .landing-final-streak {
    border-left: 0;
  }
}

@media (max-width: 480px) {
  .landing-final-target-grid,
  .landing-final-growth-feedback {
    grid-template-columns: 1fr;
  }

  .landing-final-target-gaps,
  .landing-final-growth-feedback > header,
  .landing-final-weekly-stats {
    grid-column: 1;
  }

  .landing-final-weekly-stats {
    grid-template-columns: 1fr;
  }

  .landing-final-streak,
  .landing-final-ability-gain {
    border-left: 0;
    border-top: 1px solid rgba(148, 163, 184, .18);
  }
}
