/* V5.7: turn home capability scores into compact, actionable training cards. */

html body[data-active-panel="landing"] .shell .main.main > section.panel.active.landing-workspace > div.landing-home-grid > article.section-card.landing-ability-actions[data-home-module-key="ability-actions"] {
  display: block !important;
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 24px 26px !important;
  visibility: visible !important;
  opacity: 1 !important;
}

html body[data-active-panel="landing"] .landing-ability-actions-head {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 18px !important;
  margin-bottom: 18px !important;
}

html body[data-active-panel="landing"] .landing-ability-actions-head h2 {
  margin: 4px 0 0 !important;
  color: var(--v51-text, #0f172a) !important;
  font-size: 22px !important;
  line-height: 1.2 !important;
}

html body[data-active-panel="landing"] .landing-ability-actions-head > span {
  color: var(--v51-muted, #64748b) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

html body[data-active-panel="landing"] .landing-ability-action-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

html body[data-active-panel="landing"] .landing-ability-action-card {
  display: grid !important;
  align-content: start !important;
  gap: 13px !important;
  min-width: 0 !important;
  min-height: 214px !important;
  padding: 17px !important;
  color: var(--v51-text, #0f172a) !important;
  background: var(--v51-card-soft, #f8fafc) !important;
  border: 1px solid var(--v51-border, #dbe4f0) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  transition: border-color 160ms ease, transform 160ms ease, background-color 160ms ease !important;
}

html body[data-active-panel="landing"] .landing-ability-action-card:hover {
  border-color: color-mix(in srgb, var(--v51-blue, #2563eb) 36%, var(--v51-border, #dbe4f0)) !important;
  transform: translateY(-1px) !important;
}

html body[data-active-panel="landing"] .landing-ability-action-card > header,
html body[data-active-panel="landing"] .landing-ability-action-card > header > div {
  display: flex !important;
  align-items: center !important;
}

html body[data-active-panel="landing"] .landing-ability-action-card > header {
  justify-content: space-between !important;
  gap: 12px !important;
}

html body[data-active-panel="landing"] .landing-ability-action-card > header > div {
  min-width: 0 !important;
  gap: 8px !important;
}

html body[data-active-panel="landing"] .landing-ability-action-card > header strong {
  overflow: hidden !important;
  color: var(--v51-text, #0f172a) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body[data-active-panel="landing"] .landing-ability-action-card > header span {
  flex: 0 0 auto !important;
  padding: 4px 7px !important;
  color: var(--v51-blue, #2563eb) !important;
  background: color-mix(in srgb, var(--v51-blue, #2563eb) 10%, transparent) !important;
  border-radius: 999px !important;
  font-size: 10px !important;
  font-weight: 850 !important;
}

html body[data-active-panel="landing"] .landing-ability-action-card[data-ability-tone="strong"] > header span {
  color: #15803d !important;
  background: rgba(34, 197, 94, 0.12) !important;
}

html body[data-active-panel="landing"] .landing-ability-action-card[data-ability-tone="priority"] > header span {
  color: #b45309 !important;
  background: rgba(245, 158, 11, 0.14) !important;
}

html body[data-active-panel="landing"] .landing-ability-action-card > header p {
  display: flex !important;
  align-items: baseline !important;
  flex: 0 0 auto !important;
  gap: 2px !important;
  margin: 0 !important;
}

html body[data-active-panel="landing"] .landing-ability-action-card > header b {
  color: var(--v51-text, #0f172a) !important;
  font-size: 30px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

html body[data-active-panel="landing"] .landing-ability-action-card > header small {
  color: var(--v51-muted, #64748b) !important;
  font-size: 10px !important;
  font-weight: 750 !important;
}

html body[data-active-panel="landing"] .landing-ability-action-meter {
  display: block !important;
  height: 5px !important;
  overflow: hidden !important;
  background: color-mix(in srgb, var(--v51-text, #0f172a) 8%, transparent) !important;
  border-radius: 999px !important;
}

html body[data-active-panel="landing"] .landing-ability-action-meter > em {
  display: block !important;
  height: 100% !important;
  background: var(--v51-blue, #2563eb) !important;
  border-radius: inherit !important;
}

html body[data-active-panel="landing"] .landing-ability-action-card[data-ability-tone="strong"] .landing-ability-action-meter > em {
  background: #22c55e !important;
}

html body[data-active-panel="landing"] .landing-ability-action-card[data-ability-tone="priority"] .landing-ability-action-meter > em {
  background: #f59e0b !important;
}

html body[data-active-panel="landing"] .landing-ability-action-card dl,
html body[data-active-panel="landing"] .landing-ability-action-card dl > div {
  display: grid !important;
  gap: 7px !important;
  margin: 0 !important;
}

html body[data-active-panel="landing"] .landing-ability-action-card dl {
  gap: 12px !important;
}

html body[data-active-panel="landing"] .landing-ability-action-card dt {
  color: var(--v51-muted, #64748b) !important;
  font-size: 10px !important;
  font-weight: 850 !important;
  letter-spacing: 0.04em !important;
}

html body[data-active-panel="landing"] .landing-ability-mastered dd {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin: 0 !important;
}

html body[data-active-panel="landing"] .landing-ability-mastered dd > span {
  padding: 5px 7px !important;
  color: var(--v51-text, #0f172a) !important;
  background: var(--v51-card, #ffffff) !important;
  border: 1px solid var(--v51-border, #dbe4f0) !important;
  border-radius: 7px !important;
  font-size: 10px !important;
  font-weight: 750 !important;
}

html body[data-active-panel="landing"] .landing-ability-next {
  padding-top: 11px !important;
  border-top: 1px solid var(--v51-border, #dbe4f0) !important;
}

html body[data-active-panel="landing"] .landing-ability-next dd {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  min-width: 0 !important;
  margin: 0 !important;
}

html body[data-active-panel="landing"] .landing-ability-next dd > strong {
  overflow: hidden !important;
  color: var(--v51-text, #0f172a) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body[data-active-panel="landing"] .landing-ability-next button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  gap: 4px !important;
  min-width: 66px !important;
  min-height: 34px !important;
  padding: 0 11px !important;
  color: var(--v51-blue, #2563eb) !important;
  background: transparent !important;
  border: 1px solid color-mix(in srgb, var(--v51-blue, #2563eb) 42%, var(--v51-border, #dbe4f0)) !important;
  border-radius: 9px !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

html body[data-active-panel="landing"] .landing-ability-next button:hover,
html body[data-active-panel="landing"] .landing-ability-next button:focus-visible {
  color: #ffffff !important;
  background: var(--v51-blue, #2563eb) !important;
  outline: none !important;
}

html[data-theme="dark"] body[data-active-panel="landing"] .landing-ability-action-card[data-ability-tone="strong"] > header span {
  color: #86efac !important;
}

html[data-theme="dark"] body[data-active-panel="landing"] .landing-ability-action-card[data-ability-tone="priority"] > header span {
  color: #fcd34d !important;
}

@media (max-width: 1180px) {
  html body[data-active-panel="landing"] .landing-ability-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  html body[data-active-panel="landing"] .landing-ability-actions-head {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 7px !important;
  }

  html body[data-active-panel="landing"] .landing-ability-action-grid {
    grid-template-columns: 1fr !important;
  }

  html body[data-active-panel="landing"] .landing-ability-action-card {
    min-height: 0 !important;
  }
}
