/* FIT100 Running — desktop live preview mirrors the mobile app.
   Scope only to larger browser widths so iOS/Android rendering is untouched. */
@media (min-width: 700px) {
  body:has([data-fit100-premium-app]) {
    margin: 0 !important;
    background: #eef3f8 !important;
    overflow-x: hidden !important;
  }

  body:has([data-fit100-premium-app]) #root {
    min-height: 100dvh !important;
    background: #eef3f8 !important;
  }

  [data-fit100-premium-app] {
    width: min(100%, 430px) !important;
    max-width: 430px !important;
    min-height: 100dvh !important;
    margin: 0 auto !important;
    background: #ffffff !important;
    box-shadow: 0 0 42px rgba(7, 20, 38, .12) !important;
    overflow-x: hidden !important;
  }

  [data-fit100-premium-app] .fit-shell-grid,
  [data-fit100-premium-app] .fit-shell-scroll {
    width: 100% !important;
    max-width: 430px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  [data-fit100-premium-app] .fit-app-header,
  [data-fit100-premium-app] .fit-shell-header {
    left: 50% !important;
    right: auto !important;
    width: 430px !important;
    max-width: 100vw !important;
    transform: translateX(-50%) !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e5edf5 !important;
    box-shadow: 0 4px 18px rgba(7, 20, 38, .045) !important;
  }

  [data-fit100-premium-app] .fit-app-header > div,
  [data-fit100-premium-app] .fit-shell-header > div {
    width: 100% !important;
    max-width: 430px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  [data-fit100-premium-app] .fit-header-circle {
    border-color: #dce8f3 !important;
    background: #ffffff !important;
    color: #0b1b2e !important;
    box-shadow: 0 5px 14px rgba(7, 20, 38, .05) !important;
  }

  [data-fit100-premium-app] .fit-athlete-chip {
    border-color: #dce8f3 !important;
    background: #ffffff !important;
    box-shadow: 0 5px 14px rgba(7, 20, 38, .05) !important;
  }

  [data-fit100-premium-app] .fit-athlete-chip span.text-white,
  [data-fit100-premium-app] .fit-athlete-chip .text-white {
    color: #0b1b2e !important;
  }

  [data-fit100-premium-app] [data-fit100-home-approved] {
    width: 100% !important;
    max-width: 430px !important;
    margin: 0 auto !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  [data-fit100-premium-app] [data-fit100-home-approved] > section:first-of-type {
    min-width: 0 !important;
    width: 100% !important;
  }

  [data-fit100-premium-app] [data-fit100-home-approved] > section:first-of-type > div.relative,
  [data-fit100-premium-app] [data-fit100-home-approved] > section:first-of-type .relative.z-10 {
    min-height: 520px !important;
  }

  [data-fit100-premium-app] [data-fit100-home-approved] > section:nth-of-type(2),
  [data-fit100-premium-app] [data-fit100-home-approved] > section:nth-of-type(3) {
    width: 100% !important;
    max-width: 100% !important;
  }

  [data-fit100-premium-app] .fit-bottom-nav,
  [data-fit100-premium-app] .fit-shell-footer {
    left: 50% !important;
    right: auto !important;
    width: 430px !important;
    max-width: 100vw !important;
    transform: translateX(-50%) !important;
  }

  [data-fit100-premium-app] .fit-bottom-nav-card,
  [data-fit100-premium-app] .fit-bottom-nav-list {
    width: 100% !important;
    max-width: 430px !important;
  }
}

/* --------------------------------------------------------------------------
   CORRIDA AO VIVO — réplica do card aprovado.
   -------------------------------------------------------------------------- */
[data-fit100-running-live="true"] > div[class*="bottom-[calc"] > div {
  overflow: hidden !important;
  border: 1px solid #168cff !important;
  border-radius: 24px !important;
  background: #041b39 !important;
  background-color: #041b39 !important;
  box-shadow: 0 16px 34px rgba(4, 27, 57, .22), 0 0 0 1px rgba(22, 140, 255, .04) !important;
  backdrop-filter: blur(16px) !important;
}

/* TEMPO / KM / RITMO */
[data-fit100-running-live="true"] > div[class*="bottom-[calc"] > div > div:first-child {
  padding: 17px 4px 15px !important;
  --tw-divide-opacity: 1 !important;
}

[data-fit100-running-live="true"] > div[class*="bottom-[calc"] > div > div:first-child > div {
  border-color: rgba(22, 140, 255, .48) !important;
}

[data-fit100-running-live="true"] > div[class*="bottom-[calc"] > div > div:first-child > div > div:first-child {
  color: #168cff !important;
  font-size: 9px !important;
  letter-spacing: .16em !important;
}

[data-fit100-running-live="true"] > div[class*="bottom-[calc"] > div > div:first-child > div > div:nth-child(2) {
  color: #ffffff !important;
  font-size: clamp(24px, 7vw, 31px) !important;
  font-weight: 650 !important;
  line-height: 1 !important;
}

[data-fit100-running-live="true"] > div[class*="bottom-[calc"] > div > div:first-child > div > div:nth-child(3) {
  color: #168cff !important;
  font-size: 9px !important;
}

/* CALORIAS */
[data-fit100-running-live="true"] > div[class*="bottom-[calc"] > div > div:nth-child(2) {
  gap: 7px !important;
  min-height: 40px !important;
  padding: 11px 12px 9px !important;
  border-color: rgba(22, 140, 255, .28) !important;
}

[data-fit100-running-live="true"] > div[class*="bottom-[calc"] > div > div:nth-child(2) > span:first-child,
[data-fit100-running-live="true"] > div[class*="bottom-[calc"] > div > div:nth-child(2) > span:last-child {
  color: #168cff !important;
}

[data-fit100-running-live="true"] > div[class*="bottom-[calc"] > div > div:nth-child(2) > span:nth-child(2) {
  color: #ffffff !important;
  font-size: 14px !important;
}

[data-fit100-running-live="true"] > div[class*="bottom-[calc"] > div > div:nth-child(2) > span:first-child {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

[data-fit100-running-live="true"] > div[class*="bottom-[calc"] > div > div:nth-child(2) > span:first-child::before {
  content: "" !important;
  display: inline-block !important;
  width: 14px !important;
  height: 14px !important;
  flex: 0 0 14px !important;
  background-color: #168cff !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M13.5 2.5c.7 3.2-.9 4.8-2.2 6.2C10 10.1 9 11.3 9 13c0 1.8 1.3 3 3 3 2.2 0 3.5-1.7 3.5-4.1 0-.8-.1-1.5-.4-2.3 2.2 1.8 3.4 4.1 3.4 6.6A6.5 6.5 0 0 1 12 22a6.5 6.5 0 0 1-6.5-5.8c0-3.7 2-6.2 4.3-8.6.9-.9 2.2-2.2 3.7-5.1Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M13.5 2.5c.7 3.2-.9 4.8-2.2 6.2C10 10.1 9 11.3 9 13c0 1.8 1.3 3 3 3 2.2 0 3.5-1.7 3.5-4.1 0-.8-.1-1.5-.4-2.3 2.2 1.8 3.4 4.1 3.4 6.6A6.5 6.5 0 0 1 12 22a6.5 6.5 0 0 1-6.5-5.8c0-3.7 2-6.2 4.3-8.6.9-.9 2.2-2.2 3.7-5.1Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

/* PROGRESSO — no aprovado a barra vem acima da meta/percentual. */
[data-fit100-running-live="true"] > div[class*="bottom-[calc"] > div > div:last-child {
  display: flex !important;
  flex-direction: column-reverse !important;
  gap: 8px !important;
  padding: 3px 16px 14px !important;
}

[data-fit100-running-live="true"] > div[class*="bottom-[calc"] > div > div:last-child > div:last-child {
  height: 6px !important;
  border-radius: 999px !important;
  background: #203c60 !important;
}

[data-fit100-running-live="true"] > div[class*="bottom-[calc"] > div > div:last-child > div:last-child > div {
  background: #168cff !important;
}

[data-fit100-running-live="true"] > div[class*="bottom-[calc"] > div > div:last-child > div:first-child {
  margin: 0 !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 600 !important;
}

/* BOTÕES — mesma proporção da arte aprovada. */
[data-fit100-running-live="true"] footer > div {
  gap: 8px !important;
  grid-template-columns: 1fr 1.08fr 1fr !important;
}

[data-fit100-running-live="true"] footer > div > button {
  height: 54px !important;
  border-radius: 17px !important;
  box-shadow: 0 8px 18px rgba(7, 28, 52, .10) !important;
}

[data-fit100-running-live="true"] footer > div > button:nth-child(1) {
  background: #041b39 !important;
  background-color: #041b39 !important;
  border-color: #168cff !important;
}

[data-fit100-running-live="true"] footer > div > button:nth-child(1) svg {
  color: #168cff !important;
}

[data-fit100-running-live="true"] footer > div > button:nth-child(2) {
  background: #168cff !important;
  background-color: #168cff !important;
  border-color: #168cff !important;
}

[data-fit100-running-live="true"] footer > div > button:nth-child(3) {
  background: #e52d45 !important;
  background-color: #e52d45 !important;
  border-color: #e52d45 !important;
}

/* --------------------------------------------------------------------------
   VOLTA — resumo mais limpo e leve.
   -------------------------------------------------------------------------- */
[data-fit100-running-live="true"] > div[class*="z-[10045]"] {
  background: rgba(7, 20, 38, .08) !important;
  backdrop-filter: blur(1px) !important;
}

[data-fit100-running-live="true"] > div[class*="z-[10045]"] > div {
  border: 1px solid rgba(22, 140, 255, .58) !important;
  border-radius: 28px !important;
  background: #041b39 !important;
  background-color: #041b39 !important;
  padding: 14px !important;
  box-shadow: 0 18px 46px rgba(4, 27, 57, .20) !important;
}

[data-fit100-running-live="true"] > div[class*="z-[10045]"] > div > div:first-child {
  margin-bottom: 12px !important;
  background: rgba(255,255,255,.16) !important;
}

[data-fit100-running-live="true"] > div[class*="z-[10045]"] > div > div:nth-child(2) {
  gap: 12px !important;
}

[data-fit100-running-live="true"] > div[class*="z-[10045]"] > div > div:nth-child(2) > div:first-child {
  width: 48px !important;
  height: 48px !important;
  border-color: rgba(22, 140, 255, .65) !important;
  background: #082344 !important;
  box-shadow: none !important;
}

[data-fit100-running-live="true"] > div[class*="z-[10045]"] > div > div:nth-child(2) > div:nth-child(2) span,
[data-fit100-running-live="true"] > div[class*="z-[10045]"] > div > div:nth-child(2) > div:nth-child(2) p {
  display: none !important;
}

[data-fit100-running-live="true"] > div[class*="z-[10045]"] > div > div:nth-child(2) h3 {
  font-size: 20px !important;
  font-weight: 650 !important;
}

[data-fit100-running-live="true"] > div[class*="z-[10045]"] > div > div:nth-child(2) > div:nth-child(3) strong {
  color: #168cff !important;
  font-size: 20px !important;
}

[data-fit100-running-live="true"] > div[class*="z-[10045]"] > div > div:nth-child(2) > button {
  opacity: .58 !important;
  background: transparent !important;
  border-color: rgba(255,255,255,.10) !important;
}

[data-fit100-running-live="true"] > div[class*="z-[10045]"] > div > div:nth-child(3) {
  gap: 8px !important;
  margin-top: 14px !important;
}

[data-fit100-running-live="true"] > div[class*="z-[10045]"] > div > div:nth-child(3) > div {
  border: 1px solid rgba(22, 140, 255, .24) !important;
  border-radius: 16px !important;
  background: rgba(3, 17, 33, .38) !important;
  padding: 11px 8px !important;
  box-shadow: none !important;
}

[data-fit100-running-live="true"] > div[class*="z-[10045]"] > div > div:nth-child(3) svg {
  width: 14px !important;
  height: 14px !important;
  color: #168cff !important;
}

[data-fit100-running-live="true"] > div[class*="z-[10045]"] > div > div:nth-child(4) {
  margin-top: 12px !important;
  border: 1px solid rgba(22, 140, 255, .18) !important;
  border-radius: 16px !important;
  background: rgba(3, 17, 33, .26) !important;
  padding: 11px !important;
}

[data-fit100-running-live="true"] > div[class*="z-[10045]"] > div > div:nth-child(4) > div:last-child {
  height: 44px !important;
  background: transparent !important;
}

[data-fit100-running-live="true"] > div[class*="z-[10045]"] > div > div:nth-child(4) svg path:first-child {
  stroke-width: 2.2 !important;
}

[data-fit100-running-live="true"] > div[class*="z-[10045]"] > div > button:last-child {
  height: 44px !important;
  margin-top: 12px !important;
  border: 1px solid rgba(22, 140, 255, .62) !important;
  border-radius: 16px !important;
  background: rgba(7, 27, 52, .70) !important;
  color: #69b7ff !important;
  box-shadow: none !important;
}
