/* FIT100 Running — active race-plan visual polish only.
   Keeps all plan logic/data intact and only compacts the generated-plan screen. */

[data-fit100-premium-app] .fit-training-plan-shell > div.space-y-4:has(> section:first-child) {
  gap: 12px !important;
  padding-bottom: 4px !important;
}

/* Active-plan summary */
[data-fit100-premium-app] .fit-training-plan-shell > div.space-y-4:has(> section:first-child) > section:first-child {
  padding: 16px !important;
  border-radius: 22px !important;
  border-color: rgba(22,140,255,.62) !important;
  box-shadow: 0 12px 28px rgba(5,29,58,.14) !important;
}

[data-fit100-premium-app] .fit-training-plan-shell > div.space-y-4:has(> section:first-child) > section:first-child h2 {
  margin-top: 8px !important;
  font-size: 22px !important;
  line-height: 1.08 !important;
  font-weight: 650 !important;
}

[data-fit100-premium-app] .fit-training-plan-shell > div.space-y-4:has(> section:first-child) > section:first-child > div:nth-of-type(2) {
  margin-top: 9px !important;
  gap: 6px !important;
}

[data-fit100-premium-app] .fit-training-plan-shell > div.space-y-4:has(> section:first-child) > section:first-child > div:nth-of-type(2) > span {
  padding: 5px 9px !important;
  font-size: 10px !important;
  color: rgba(255,255,255,.82) !important;
}

[data-fit100-premium-app] .fit-training-plan-shell > div.space-y-4:has(> section:first-child) > section:first-child > div:nth-of-type(3) {
  margin-top: 11px !important;
  font-size: 10.5px !important;
  color: rgba(255,255,255,.78) !important;
}

[data-fit100-premium-app] .fit-training-plan-shell > div.space-y-4:has(> section:first-child) > section:first-child > div:nth-of-type(4) {
  margin-top: 7px !important;
  height: 6px !important;
}

/* Three weekly summary tiles */
[data-fit100-premium-app] .fit-training-plan-shell > div.space-y-4:has(> section:first-child) > section:first-child > div:last-child {
  margin-top: 11px !important;
  gap: 7px !important;
}

[data-fit100-premium-app] .fit-training-plan-shell > div.space-y-4:has(> section:first-child) > section:first-child > div:last-child > div {
  min-height: 74px !important;
  padding: 9px 10px !important;
  border-radius: 14px !important;
  background: rgba(7,28,52,.54) !important;
}

[data-fit100-premium-app] .fit-training-plan-shell > div.space-y-4:has(> section:first-child) > section:first-child > div:last-child svg {
  width: 14px !important;
  height: 14px !important;
}

[data-fit100-premium-app] .fit-training-plan-shell > div.space-y-4:has(> section:first-child) > section:first-child > div:last-child strong {
  margin-top: 5px !important;
  font-size: 15px !important;
  line-height: 1 !important;
}

[data-fit100-premium-app] .fit-training-plan-shell > div.space-y-4:has(> section:first-child) > section:first-child > div:last-child small {
  display: block !important;
  margin-top: 4px !important;
  color: rgba(255,255,255,.68) !important;
  font-size: 9px !important;
  line-height: 1.15 !important;
}

/* Calendar card */
[data-fit100-premium-app] .fit-training-plan-shell > div.space-y-4:has(> section:first-child) > section:nth-child(2) {
  padding: 14px !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 22px rgba(11,47,107,.05) !important;
}

[data-fit100-premium-app] .fit-training-plan-shell > div.space-y-4:has(> section:first-child) > section:nth-child(2) h3 {
  font-size: 16px !important;
  font-weight: 650 !important;
}

[data-fit100-premium-app] .fit-training-plan-shell > div.space-y-4:has(> section:first-child) > section:nth-child(2) > p {
  margin-top: 7px !important;
  font-size: 10.5px !important;
}

[data-fit100-premium-app] .fit-training-plan-shell > div.space-y-4:has(> section:first-child) > section:nth-child(2) > div:last-child {
  margin-top: 9px !important;
  gap: 7px !important;
}

/* Each workout day row */
[data-fit100-premium-app] .fit-training-plan-shell > div.space-y-4:has(> section:first-child) > section:nth-child(2) > div:last-child > div {
  border-radius: 15px !important;
}

[data-fit100-premium-app] .fit-training-plan-shell > div.space-y-4:has(> section:first-child) > section:nth-child(2) > div:last-child > div > button {
  min-height: 66px !important;
  padding: 9px 10px !important;
  gap: 9px !important;
}

[data-fit100-premium-app] .fit-training-plan-shell > div.space-y-4:has(> section:first-child) > section:nth-child(2) > div:last-child > div > button > div:first-child {
  width: 36px !important;
}

[data-fit100-premium-app] .fit-training-plan-shell > div.space-y-4:has(> section:first-child) > section:nth-child(2) > div:last-child > div > button > span:nth-child(2) {
  width: 34px !important;
  height: 34px !important;
  border-radius: 11px !important;
}

[data-fit100-premium-app] .fit-training-plan-shell > div.space-y-4:has(> section:first-child) > section:nth-child(2) strong {
  font-size: 12px !important;
  color: #10233c !important;
}

[data-fit100-premium-app] .fit-training-plan-shell > div.space-y-4:has(> section:first-child) > section:nth-child(2) .text-\[\#718097\] {
  color: #5e6e82 !important;
}

/* Final actions — no tall empty tail */
[data-fit100-premium-app] .fit-training-plan-shell > div.space-y-4:has(> section:first-child) > div.grid:last-of-type {
  margin-top: 0 !important;
  gap: 8px !important;
}

[data-fit100-premium-app] .fit-training-plan-shell > div.space-y-4:has(> section:first-child) > div.grid:last-of-type button {
  min-height: 44px !important;
  border-radius: 14px !important;
}

[data-fit100-premium-app] .fit-training-plan-shell {
  padding-bottom: 0 !important;
  min-height: 0 !important;
}

@media (max-width: 430px) {
  [data-fit100-premium-app] .fit-training-plan-shell > div.space-y-4:has(> section:first-child) > section:first-child {
    padding: 14px !important;
  }

  [data-fit100-premium-app] .fit-training-plan-shell > div.space-y-4:has(> section:first-child) > section:first-child > div:last-child > div {
    min-height: 70px !important;
    padding: 8px !important;
  }

  [data-fit100-premium-app] .fit-training-plan-shell > div.space-y-4:has(> section:first-child) > section:nth-child(2) {
    padding: 12px !important;
  }
}

/* 2026-09-15 — plano ativo claro aprovado. Mantém lógica, troca somente visual. */
html body #root [data-fit100-premium-app] [data-fit100-training-active] .fit-summary-card {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1px solid #d7e5f2 !important;
  color: #08172d !important;
  box-shadow: 0 7px 18px rgba(7, 32, 64, .055) !important;
}
html body #root [data-fit100-premium-app] [data-fit100-training-active] .fit-summary-card strong {
  color: #08172d !important;
  -webkit-text-fill-color: #08172d !important;
}
html body #root [data-fit100-premium-app] [data-fit100-training-active] .fit-summary-card small {
  color: #66758b !important;
  -webkit-text-fill-color: #66758b !important;
}
html body #root [data-fit100-premium-app] [data-fit100-training-active] .fit-summary-card svg {
  color: #168cff !important;
  stroke: #168cff !important;
}

html body #root [data-fit100-premium-app] [data-fit100-training-active] .fit-day-card {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1px solid #d7e5f2 !important;
  color: #08172d !important;
  box-shadow: 0 6px 16px rgba(7, 32, 64, .045) !important;
}
html body #root [data-fit100-premium-app] [data-fit100-training-active] .fit-day-card strong {
  color: #08172d !important;
  -webkit-text-fill-color: #08172d !important;
}
html body #root [data-fit100-premium-app] [data-fit100-training-active] .fit-day-card small,
html body #root [data-fit100-premium-app] [data-fit100-training-active] .fit-day-card div > span {
  color: #66758b !important;
  -webkit-text-fill-color: #66758b !important;
}
html body #root [data-fit100-premium-app] [data-fit100-training-active] .fit-day-card > span {
  background: #eef6ff !important;
  background-color: #eef6ff !important;
  color: #168cff !important;
  border: 1px solid #d6e9fb !important;
}
html body #root [data-fit100-premium-app] [data-fit100-training-active] .fit-day-card > span svg {
  color: #168cff !important;
  stroke: #168cff !important;
}
html body #root [data-fit100-premium-app] [data-fit100-training-active] .fit-day-card button {
  background: #ffffff !important;
  color: #168cff !important;
  -webkit-text-fill-color: #168cff !important;
  border-color: #168cff !important;
}
html body #root [data-fit100-premium-app] [data-fit100-training-active] .fit-day-card button:not(:disabled):hover {
  background: #f5faff !important;
}
html body #root [data-fit100-premium-app] [data-fit100-training-active] .fit-day-card button:disabled {
  background: #ffffff !important;
  color: #168cff !important;
  -webkit-text-fill-color: #168cff !important;
  opacity: .72 !important;
}

/* Botão X: card branco e X vermelho, sem fundo escuro. */
html body #root [data-fit100-premium-app] [data-fit100-training-active] > div.grid:last-of-type > button:last-child,
html body #root [data-fit100-premium-app] [data-fit100-training-active] .grid.grid-cols-\[1fr_56px\] > button:last-child {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1px solid #efb3be !important;
  color: #d92f49 !important;
  box-shadow: 0 5px 14px rgba(217, 47, 73, .08) !important;
}
html body #root [data-fit100-premium-app] [data-fit100-training-active] .grid.grid-cols-\[1fr_56px\] > button:last-child svg {
  color: #d92f49 !important;
  stroke: #d92f49 !important;
}
