@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');.hamburger-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
  position: relative;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 3px;
  background: linear-gradient(90deg, #ff8c00, #ffc247);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger-button:hover .hamburger-line {
  filter: brightness(1.2);
}

.hamburger-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  cursor: pointer;
  animation: hamburgerFadeIn 0.2s ease-out;
}

.hamburger-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: rgba(15, 20, 30, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
  z-index: 201;
  padding: 1.5rem 0;
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 2px solid rgba(255, 140, 0, 0.2);
  scrollbar-gutter: stable;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.25s ease-out, visibility 0.25s;
}

.hamburger-drawer-open {
  transform: translateX(0);
  visibility: visible;
}

/* Styled scrollbar - WebKit (Chrome, Safari, Edge) */
.hamburger-drawer::-webkit-scrollbar {
  width: 8px;
}

.hamburger-drawer::-webkit-scrollbar-track {
  background: rgba(255, 140, 0, 0.06);
  border-radius: 4px;
  margin: 0.5rem 0;
}

.hamburger-drawer::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 140, 0, 0.5), rgba(255, 194, 71, 0.5));
  border-radius: 4px;
}

.hamburger-drawer::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 140, 0, 0.7), rgba(255, 194, 71, 0.7));
}

.hamburger-drawer::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #ff8c00, #ffc247);
}

/* Firefox */
.hamburger-drawer {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 140, 0, 0.5) rgba(255, 140, 0, 0.06);
}

.hamburger-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  font-size: 1.75rem;
  line-height: 1;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger-close:hover {
  opacity: 1;
}

.hamburger-section {
  margin-bottom: 1.5rem;
  padding: 0 1.5rem;
}

.hamburger-section:first-of-type {
  margin-top: 3rem;
}

.hamburger-sub-item {
  padding-left: 1.25rem;
  margin-bottom: 0.25rem;
}

.hamburger-sub-item .hamburger-link {
  font-size: 0.9375rem;
  color: #c0c0c0;
}

.hamburger-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hamburger-list li {
  margin-bottom: 0.25rem;
}

.hamburger-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.55;
  transition: opacity 0.2s;
}

.hamburger-icon-section {
  width: 14px;
  height: 14px;
}

.hamburger-link:hover .hamburger-icon {
  opacity: 0.85;
}

.hamburger-link-active .hamburger-icon {
  opacity: 1;
}

.hamburger-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  color: #e0e0e0;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  border-left: 3px solid transparent;
}

.hamburger-link:hover {
  background: rgba(255, 140, 0, 0.1);
  color: #fff;
}

.hamburger-link-active {
  background: rgba(255, 140, 0, 0.15);
  color: #fff;
  border-left-color: #ff8c00;
}

.hamburger-link.hamburger-link-main {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 140, 0, 0.8);
  border-left: none;
  padding: 0.6rem 0.75rem 0.75rem;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 140, 0, 0.2);
}

.hamburger-link.hamburger-link-main:hover {
  color: #ff8c00;
  background: rgba(255, 140, 0, 0.05);
}

.hamburger-link.hamburger-link-main.hamburger-link-active {
  color: #ff8c00;
  border-left: none;
  background: rgba(255, 140, 0, 0.08);
}

@keyframes hamburgerFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Wide screen: persistent sidebar */
@media (min-width: 1400px) {
  .hamburger-button {
    display: none;
  }

  .hamburger-drawer {
    transform: translateX(0);
    visibility: visible;
    z-index: 99;
    box-shadow: none;
    max-width: 280px;
    padding-top: 1rem;
  }

  .hamburger-close {
    display: none;
  }

  .hamburger-section:first-of-type {
    margin-top: 1rem;
  }
}
.nutrients-mini-bar {
  background: rgba(10, 14, 26, 0.92);
  border-top: 1px solid rgba(255, 140, 0, 0.15);
  padding: 0.35rem 0;
}

.nutrients-mini-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.nutrients-mini-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.nutrients-mini-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 140, 0, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 1.8rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.nutrients-mini-bar-track {
  position: relative;
  width: 3rem;
  height: 5px;
  background: rgba(255, 140, 0, 0.12);
  border-radius: 3px;
  overflow: visible;
}

.nutrients-mini-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.2s, background-color 0.2s;
}

.nutrients-mini-min-marker {
  position: absolute;
  top: -1px;
  transform: translateX(-50%);
  width: 2px;
  height: 7px;
  background: rgba(255, 140, 0, 0.85);
  border-radius: 1px;
  pointer-events: none;
}

.nutrients-mini-remaining {
  font-size: 0.6rem;
  font-weight: 600;
  color: #b0b0b0;
  min-width: fit-content;
  text-align: right;
  flex-shrink: 0;
}

.nutrients-mini-remaining:empty {
  display: none;
}

@media (max-width: 768px) {
  .nutrients-mini-bar-inner {
    padding: 0 1rem;
    gap: 0.4rem 0.6rem;
  }

  .nutrients-mini-bar-track {
    width: 2.5rem;
  }

  .nutrients-mini-label {
    width: 1.6rem;
    font-size: 0.6rem;
  }
}
.header {
  background: rgba(15, 20, 30, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 140, 0, 0.1);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid rgba(255, 140, 0, 0.2);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-hamburger-slot {
  width: 40px;
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.header-nav-placeholder {
  min-width: 8rem;
}

.header-nav-link {
  text-decoration: none;
  color: inherit;
  font-size: 1.75rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ff8c00 0%, #ffc247 50%, #ff8c00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  position: relative;
  line-height: 1.2;
  opacity: 0.45;
  animation: none;
  transition: all 0.3s;
}

.header-nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #ff8c00, #ffc247, #ff8c00);
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.3s, transform 0.3s;
}

.header-nav-link.header-nav-link-active {
  opacity: 1;
  filter: brightness(1.25);
  animation: titlePulse 2s ease-in-out infinite;
}

.header-nav-link.header-nav-link-active::after {
  opacity: 1;
  transform: scaleX(1);
  animation: pulse 2s ease-in-out infinite;
}

.header-nav-link-icon {
  -webkit-text-fill-color: unset;
  background: none;
  display: flex;
  align-items: center;
  padding: 0.25rem;
}

.header-nav-link-icon::after {
  display: none;
}

.header-nav-link-icon svg {
  color: #ff8c00;
  width: 1em;
  height: 1em;
  opacity: 0.45;
  transition: opacity 0.3s, color 0.3s;
}

.header-nav-link-icon:hover svg {
  color: #ff8c00;
  opacity: 0.7;
}

.header-nav-link-icon.header-nav-link-active svg {
  color: #ff8c00;
  opacity: 1;
  filter: brightness(1.25);
}

.header-nav-link:hover {
  opacity: 0.7;
  filter: brightness(1.2);
}

.header-nav-link-active:hover {
  opacity: 1;
}

.header-title {
  flex: 1;
  text-align: left;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.header-title h1 {
  font-size: 1.75rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ff8c00 0%, #ffc247 50%, #ff8c00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  word-break: break-word;
  line-height: 1.2;
  animation: titlePulse 2s ease-in-out infinite;
}

.header-title h1::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #ff8c00, #ffc247, #ff8c00);
  border-radius: 2px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
    transform: scaleX(1);
  }
  50% {
    opacity: 1;
    transform: scaleX(1.05);
  }
}

@keyframes titlePulse {
  0%, 100% {
    opacity: 1;
    filter: brightness(1);
  }
  50% {
    opacity: 0.85;
    filter: brightness(1.2);
  }
}

.header-brand {
  display: none;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ff8c00 0%, #ffc247 50%, #ff8c00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  line-height: 1.2;
  animation: titlePulse 2s ease-in-out infinite;
}

@media (min-width: 1400px) {
  .header-hamburger-slot {
    display: none;
  }

  .header-brand {
    display: block;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 1rem 0;
  }
  
  .header-content {
    padding: 0 1rem;
  }
  
  .header-title h1 {
    font-size: 1.2rem;
    letter-spacing: -0.3px;
  }

  .header-nav-link {
    font-size: 1.2rem;
    letter-spacing: -0.3px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0.75rem 0;
  }
  
  .header-content {
    padding: 0 0.75rem;
  }
  
  .header-title h1 {
    font-size: 0.95rem;
    letter-spacing: -0.2px;
  }

  .header-nav-link {
    font-size: 0.95rem;
    letter-spacing: -0.2px;
  }
}.footer {
  background: rgba(15, 20, 30, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 140, 0, 0.1);
  padding: 1.5rem 0;
  margin-top: auto;
  border-top: 2px solid rgba(255, 140, 0, 0.2);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-left {
  display: flex;
  align-items: center;
}

.footer-right {
  display: flex;
  align-items: center;
}

.privacy-link {
  color: #ff8c00;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
  position: relative;
}

.privacy-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff8c00;
  transition: width 0.3s;
}

.privacy-link:hover {
  color: #ff8c00;
}

.privacy-link:hover::after {
  width: 100%;
}

.garmin-logo {
  height: 52px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.garmin-logo:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .garmin-logo {
    height: 45px;
  }
}
/* Daily Triangle – inspired by „Generovat pomocí AI“ card: border, bg, glow */

.longevity-triangle-container {
  width: 100%;
  padding: 1.5rem;
  margin-top: 1rem;
  border-radius: 16px;
  background-color: rgba(20, 25, 35, 0.6);
  border: 2px solid rgba(255, 140, 0, 0.4);
  position: relative;
  overflow: hidden;
  animation: triangleContainerReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  box-shadow:
    0 8px 32px rgba(255, 140, 0, 0.25),
    0 0 0 1px rgba(255, 140, 0, 0.08);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.longevity-triangle-container:hover {
  border-color: rgba(255, 140, 0, 0.6);
  box-shadow:
    0 12px 40px rgba(255, 140, 0, 0.3),
    0 0 0 1px rgba(255, 140, 0, 0.12);
}

/* Subtle red/orange tint (kept light to match card look) */
.longevity-triangle-container::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(
    ellipse 70% 60% at 50% 48%,
    rgba(255, 140, 0, 0.04) 0%,
    rgba(255, 140, 0, 0.02) 50%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.longevity-triangle-container .triangle-heading {
  margin-bottom: 1rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #ff8c00 0%, #ffc247 50%, #ff8c00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ff8c00;
  position: relative;
  z-index: 1;
  animation: headingReveal 0.6s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.longevity-triangle-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 1rem 0;
  position: relative;
  z-index: 1;
  animation: wrapperReveal 1s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.longevity-triangle-svg {
  width: 100%;
  max-width: 340px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
}

/* Outer triangle – gradient stroke, one-time draw, subtle cool glow */
.triangle-outline {
  stroke: url(#triangleOuterStrokeGradient);
  stroke-width: 2.5;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  fill: none;
  animation: outlineDraw 1.2s 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0.85;
  filter: drop-shadow(0 0 8px rgba(255, 140, 0, 0.35)) drop-shadow(0 0 16px rgba(255, 140, 0, 0.2));
}

/* Inner triangle – heartbeat pulse at user's resting HR (--heartbeat-duration from profile), gentle glow on pump */
.triangle-inner {
  transform-origin: 100px 112px;
  animation:
    innerTriangleReveal 1s 0.6s cubic-bezier(0.22, 1, 0.36, 1) both,
    innerTriangleHeartbeat var(--heartbeat-duration, 1s) 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.2));
}

@keyframes innerTriangleHeartbeat {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.2));
  }
  14% {
    transform: scale(1.028);
    filter: drop-shadow(0 0 20px rgba(255, 140, 0, 0.45)) drop-shadow(0 0 30px rgba(255, 140, 0, 0.2));
  }
  28% {
    transform: scale(1.008);
    filter: drop-shadow(0 0 12px rgba(255, 140, 0, 0.25));
  }
  42% {
    transform: scale(1.022);
    filter: drop-shadow(0 0 18px rgba(255, 140, 0, 0.4)) drop-shadow(0 0 28px rgba(255, 140, 0, 0.15));
  }
  56% {
    transform: scale(1.01);
    filter: drop-shadow(0 0 12px rgba(255, 140, 0, 0.25));
  }
  70%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.2));
  }
}

/* Side lines – gradient strokes */
.triangle-side {
  stroke-linecap: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  stroke-width: 3;
  animation: sideDraw 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0.85;
}

.triangle-side-sport { animation-delay: 0.7s; }
.triangle-side-diet { animation-delay: 0.9s; }
.triangle-side-sleep { animation-delay: 1.1s; }

.triangle-label {
  opacity: 0;
  animation: labelPop 0.5s ease-out forwards;
  pointer-events: none;
  user-select: none;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.triangle-label-sleep { animation-delay: 1.2s; fill: #fff; }
.triangle-label-sport { animation-delay: 1.3s; fill: #fff; }
.triangle-label-diet { animation-delay: 1.4s; fill: #fff; }

/* Corner effect: only on orange elements, no impact on dark background – clipped + blend */
.triangle-corner-effect-wrapper {
  mix-blend-mode: lighten;
  pointer-events: none;
}

.triangle-corner-effect {
  pointer-events: none;
  opacity: 0;
  animation: cornerReveal 1s 0.8s ease-out forwards, cornerLightBreathe 6s ease-in-out infinite;
}

/* Out-of-phase delays so intensity varies in a natural, non-synced way */
.triangle-corner-top { animation-delay: 0.8s, 0s; }
.triangle-corner-right { animation-delay: 0.8s, 2.1s; }
.triangle-corner-left { animation-delay: 0.8s, 4.2s; }

@keyframes cornerLightBreathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.38; }
}

/* Score badge – system palette */
.triangle-score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  padding: 0.6rem 1.25rem;
  margin-top: 1rem;
  border-radius: 999px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.95);
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.2) 0%, rgba(255, 194, 71, 0.15) 50%, rgba(255, 140, 0, 0.2) 100%);
  border: 1px solid rgba(255, 140, 0, 0.35);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 20px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 1;
  animation: scoreBadgeReveal 0.9s 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.triangle-score-badge.high {
  animation: scoreBadgeReveal 0.9s 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.longevity-summary {
  position: relative;
  z-index: 1;
  animation: summaryReveal 0.6s 1.4s ease-out both;
}

/* ——— Keyframes ——— */
@keyframes triangleContainerReveal {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes headingReveal {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wrapperReveal {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes outlineDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes innerTriangleReveal {
  from {
    opacity: 0;
    transform: scale(0.25);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes sideDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes cornerReveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes labelPop {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scoreBadgeReveal {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes summaryReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .longevity-triangle-svg {
    max-width: 280px;
  }
  .triangle-label {
    font-size: 10px;
  }
  .triangle-score-badge {
    font-size: 1.25rem;
    min-width: 3.5rem;
    padding: 0.45rem 1rem;
  }
}
.how-it-works {
  width: 100%;
  padding: 2rem;
  background: #0a0e1a;
  min-height: 100vh;
}

.how-it-works--embedded {
  min-height: auto;
  padding: 0;
  background: transparent;
}

.how-it-works--embedded .hiw-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.hiw-container {
  max-width: 800px;
  margin: 0 auto;
}

.hiw-title {
  color: #ffffff;
  margin-bottom: 0.75rem;
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, #ff8c00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  text-align: center;
}

.hiw-tagline {
  font-size: 1.05rem;
  color: #b0b0b0;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  text-align: center;
}

/* --- Progress bar --- */
.hiw-progress {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}

.hiw-progress-line {
  position: absolute;
  top: 16px;
  left: 24px;
  right: 24px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  z-index: 0;
}

.hiw-progress-line-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff8c00, #ffc247);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.hiw-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1;
  padding: 0;
  min-width: 0;
  flex: 1;
}

.hiw-progress-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #141923;
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #8899aa;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.hiw-progress-dot svg {
  width: 16px;
  height: 16px;
}

.hiw-progress-step--active .hiw-progress-dot {
  background: linear-gradient(135deg, #ff8c00, #ffc247);
  border-color: #ff8c00;
  color: #0a0e1a;
  box-shadow: 0 0 16px rgba(255, 140, 0, 0.4);
  transform: scale(1.15);
}

.hiw-progress-step--done .hiw-progress-dot {
  background: #2f2116;
  border-color: #ff8c00;
  color: #ff8c00;
}

.hiw-progress-label {
  font-size: 0.65rem;
  color: #667788;
  text-align: center;
  line-height: 1.3;
  max-width: 80px;
  transition: color 0.3s;
}

.hiw-progress-step--active .hiw-progress-label {
  color: #ff8c00;
  font-weight: 600;
}

.hiw-progress-step--done .hiw-progress-label {
  color: #b0b0b0;
}

/* --- Step card --- */
.hiw-step-card {
  background: rgba(20, 25, 35, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 140, 0, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 140, 0, 0.1);
  overflow: hidden;
}

.hiw-step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 140, 0, 0.15);
  background: rgba(255, 140, 0, 0.04);
}

.hiw-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.15), rgba(255, 194, 71, 0.1));
  border: 1px solid rgba(255, 140, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ff8c00;
}

.hiw-step-icon svg {
  width: 24px;
  height: 24px;
}

.hiw-step-number {
  font-size: 0.75rem;
  color: #8899aa;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.hiw-step-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.hiw-step-body {
  padding: 2rem;
  color: #d0d0d0;
  line-height: 1.7;
}

.hiw-step-lead {
  font-size: 1.05rem;
  color: #e8e8e8;
  margin-bottom: 1.5rem;
}

.hiw-step-lead strong {
  color: #ffc247;
}

/* --- Features grid --- */
.hiw-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hiw-feature {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hiw-feature-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #ff8c00;
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.hiw-feature-icon svg {
  width: 100%;
  height: 100%;
}

.hiw-feature strong {
  color: #ffffff;
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.hiw-feature p {
  color: #8899aa;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
}

/* --- Info boxes --- */
.hiw-info-box {
  background: rgba(255, 140, 0, 0.06);
  border: 1px solid rgba(255, 140, 0, 0.2);
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1rem;
}

.hiw-info-box strong {
  color: #ff8c00;
  display: block;
  margin-bottom: 0.5rem;
}

.hiw-info-box p {
  margin: 0;
  color: #b0b0b0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.hiw-info-box--blue {
  background: rgba(77, 148, 255, 0.06);
  border-color: rgba(77, 148, 255, 0.2);
}

.hiw-info-box--blue strong {
  color: #4d94ff;
}

.hiw-info-box--sources {
  background: rgba(255, 194, 71, 0.06);
  border-color: rgba(255, 194, 71, 0.2);
}

.hiw-info-box--sources strong {
  color: #ffc247;
}

/* --- Triangle preview in wizard step --- */
.hiw-triangle-preview {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hiw-triangle-preview .longevity-triangle-container {
  max-width: 320px;
}

/* --- Pillars (triangle) --- */
.hiw-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hiw-pillar {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}

.hiw-pillar-icon {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff8c00;
  opacity: 0.7;
}

.hiw-pillar-icon svg {
  width: 28px;
  height: 28px;
}

.hiw-pillar h4 {
  color: #ff8c00;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.hiw-pillar p {
  color: #8899aa;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.5;
}

.hiw-readiness-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.25rem;
  color: #b0b0b0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.hiw-readiness-box strong {
  color: #ffc247;
}

.hiw-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.hiw-badge-ready {
  background: rgba(40, 167, 69, 0.15);
  color: #6cff8d;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.hiw-badge-caution {
  background: rgba(255, 194, 71, 0.15);
  color: #ffc247;
  border: 1px solid rgba(255, 194, 71, 0.3);
}

.hiw-badge-recovery {
  background: rgba(77, 148, 255, 0.15);
  color: #4d94ff;
  border: 1px solid rgba(77, 148, 255, 0.3);
}

/* --- Two columns --- */
.hiw-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hiw-col-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.25rem;
}

.hiw-col-card h4 {
  color: #ffffff;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hiw-col-card h4 svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #ff8c00;
  opacity: 0.7;
}

.hiw-col-card p {
  color: #8899aa;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

.hiw-col-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hiw-col-card ul li {
  color: #b0b0b0;
  font-size: 0.9rem;
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.4;
}

.hiw-col-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff8c00;
}

/* --- Export items --- */
.hiw-export-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hiw-export-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hiw-export-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #ff8c00;
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

.hiw-export-icon svg {
  width: 100%;
  height: 100%;
}

.hiw-export-item strong {
  color: #ffffff;
  display: block;
  margin-bottom: 0.25rem;
}

.hiw-export-item p {
  color: #8899aa;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
}

.hiw-step-note {
  color: #8899aa;
  font-size: 0.9rem;
  line-height: 1.6;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
}

/* --- Navigation --- */
.hiw-step-nav {
  display: flex;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-top: 1px solid rgba(255, 140, 0, 0.15);
  background: rgba(255, 140, 0, 0.02);
}

.hiw-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
  font-family: inherit;
}

.hiw-nav-btn svg {
  width: 18px;
  height: 18px;
}

.hiw-nav-btn--prev {
  background: rgba(255, 255, 255, 0.05);
  color: #b0b0b0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hiw-nav-btn--prev:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.hiw-nav-btn--prev:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.hiw-nav-btn--next {
  background: linear-gradient(135deg, #ff8c00, #ffc247);
  color: #0a0e1a;
}

.hiw-nav-btn--next:hover {
  background: linear-gradient(135deg, #e67e00, #e6a800);
  box-shadow: 0 4px 16px rgba(255, 140, 0, 0.3);
}

.hiw-nav-btn--finish {
  background: linear-gradient(135deg, #ff8c00, #ffc247);
  color: #0a0e1a;
}

/* --- Footer --- */
.hiw-footer {
  margin-top: 2rem;
  text-align: center;
}

.back-link {
  color: #ff8c00;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.back-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff8c00;
  transition: width 0.3s;
}

.back-link:hover {
  color: #ff8c00;
}

.back-link:hover::after {
  width: 100%;
}

/* --- Garmin CTA (last step) --- */
.hiw-garmin-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.hiw-garmin-status--connected {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.hiw-garmin-check {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(40, 167, 69, 0.2);
  color: #6cff8d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
}

.hiw-garmin-status strong {
  color: #6cff8d;
  display: block;
  margin-bottom: 0.25rem;
}

.hiw-garmin-status p {
  color: #b0b0b0;
  font-size: 0.9rem;
  margin: 0;
}

.hiw-garmin-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0;
}

.hiw-garmin-cta-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hiw-garmin-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, #6DCFF6 0%, #5AB8D9 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(109, 207, 246, 0.3);
  text-decoration: none;
  text-align: center;
}

.hiw-garmin-cta-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #5AB8D9 0%, #4AA3C2 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(109, 207, 246, 0.4);
}

.hiw-garmin-cta-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.hiw-garmin-powered {
  font-size: 0.8rem;
  color: #667788;
  font-style: italic;
  margin: 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .how-it-works {
    padding: 1rem;
  }

  .hiw-title {
    font-size: 1.8rem;
  }

  .hiw-tagline {
    font-size: 0.95rem;
  }

  .hiw-progress-label {
    display: none;
  }

  .hiw-progress-dot {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }

  .hiw-step-header {
    padding: 1rem 1.25rem;
  }

  .hiw-step-icon {
    width: 40px;
    height: 40px;
  }

  .hiw-step-icon svg {
    width: 20px;
    height: 20px;
  }

  .hiw-step-title {
    font-size: 1.2rem;
  }

  .hiw-step-body {
    padding: 1.25rem;
  }

  .hiw-features {
    grid-template-columns: 1fr;
  }

  .hiw-pillars {
    grid-template-columns: 1fr;
  }

  .hiw-two-cols {
    grid-template-columns: 1fr;
  }

  .hiw-step-nav {
    padding: 1rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .hiw-step-header {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }

  .hiw-step-body {
    padding: 1rem;
  }

  .hiw-step-nav {
    padding: 0.75rem 1rem;
  }

  .hiw-nav-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}
.garmin-landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 900px;
}

.garmin-landing .card {
  width: 100%;
  max-width: 900px;
}

.garmin-landing-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 900px;
}

.garmin-landing-preview-text {
  font-size: 1.1rem;
  color: #ff8c00;
  font-weight: 600;
  text-align: center;
  margin: 0;
}

.garmin-tagline {
  font-size: 1.15rem;
  color: #e8e8e8;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 500;
}

.garmin-usp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.garmin-usp-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: #b0b0b0;
  line-height: 1.5;
}

.garmin-usp-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #ff8c00;
  opacity: 0.7;
  margin-top: 0.15rem;
}

@media (max-width: 600px) {
  .garmin-usp-grid {
    grid-template-columns: 1fr;
  }
}

.garmin-error {
  padding: 0.75rem 1rem;
  background: rgba(255, 77, 77, 0.15);
  border: 1px solid rgba(255, 77, 77, 0.4);
  border-left: 4px solid #ff4d4d;
  border-radius: 8px;
  color: #ff6b6b;
  margin-bottom: 1rem;
  font-weight: 500;
}

.garmin-connected {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 2rem;
  min-height: 2rem;
}

.garmin-connected .btn {
  position: absolute;
  top: 0;
  right: 0;
  text-transform: none;
  letter-spacing: normal;
}

.garmin-status {
  color: #4ade80;
  font-weight: 600;
  margin: 0;
  font-size: 0.9rem;
}

.garmin-disconnected {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.garmin-disconnected p {
  margin: 0;
  color: #b0b0b0;
  font-size: 1rem;
  line-height: 1.6;
}

.garmin-connect-btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #6DCFF6 0%, #5AB8D9 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  align-self: flex-start;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(109, 207, 246, 0.3);
}

.garmin-connect-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #5AB8D9 0%, #4AA3C2 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(109, 207, 246, 0.4);
}

.garmin-connect-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.training-plan-form {
  width: 100%;
}

.form-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.5rem;
  box-sizing: border-box;
}

.training-plan-form .fp-readiness-no-plan-hint,
.fp-readiness-no-plan-hint {
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: #8899aa;
  background: rgba(136, 153, 170, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(136, 153, 170, 0.2);
  line-height: 1.4;
}

.garmin-migration-notice {
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 8px;
  line-height: 1.4;
}

.garmin-migration-notice a {
  color: #ffc107;
  text-decoration: underline;
}

.garmin-migration-notice a:hover {
  color: #ffdb4d;
}

.card {
  background: rgba(20, 25, 35, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 0.75rem 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 140, 0, 0.1);
  max-width: 100%;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 140, 0, 0.2);
  box-sizing: border-box;
}

.card h2 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, #ff8c00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding-bottom: 1rem;
}

.card h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #ff8c00, #ffc247);
  border-radius: 2px;
}

/* Shared section title styling (card h2, Settings, etc.) */
.form-section-title {
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, #ff8c00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding-bottom: 1rem;
}

.form-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #ff8c00, #ffc247);
  border-radius: 2px;
}

.physiology-required-card {
  border-color: rgba(255, 193, 7, 0.5);
  background: rgba(255, 193, 7, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 193, 7, 0.2);
}

.physiology-required-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  color: #ffc107;
  font-weight: 700;
}

.physiology-required-text {
  margin: 0;
  font-size: 0.95rem;
  color: #b0b0b0;
  line-height: 1.4;
}

.physiology-required-hint {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: rgba(255, 193, 7, 0.9);
}

/* Physiology fields: label - value side by side, one row per field, responsive */
.physiology-rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.physiology-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 1rem;
  min-width: 0;
}

.physiology-row > label {
  flex: 0 0 20ch;
  width: 20ch;
  min-width: 20ch;
  font-size: 0.9rem;
  color: #b0b0b0;
  margin: 0;
  white-space: nowrap;
}

.physiology-row .physiology-input-wrap {
  flex: 1 1 12rem;
  min-width: 12rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.physiology-row .physiology-input-wrap input,
.physiology-row .physiology-input-wrap select,
.physiology-row .physiology-input-wrap .btn {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.physiology-row .physiology-input-wrap input[type="checkbox"] {
  width: auto;
  min-width: auto;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--accent, #ff8c00);
}

@media (max-width: 480px) {
  .physiology-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }
  .physiology-row > label {
    flex: none;
    width: auto;
    min-width: 0;
  }
  .physiology-row .physiology-input-wrap {
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* Legacy grids – kept for any other usage */
.physiology-inline-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.physiology-inline-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.physiology-inline-grid-6 {
  grid-template-columns: repeat(6, 1fr);
}

.physiology-inline-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .physiology-inline-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .physiology-inline-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .physiology-inline-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .physiology-inline-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
  .physiology-inline-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .physiology-inline-grid-5 {
    grid-template-columns: 1fr;
  }
  .physiology-inline-grid-6 {
    grid-template-columns: 1fr;
  }
}

.card .card-collapsible-header {
  position: relative;
  margin-bottom: 0;
}

.card--saved-trainings {
  padding: 1rem 1.25rem;
}

.card--training-plans-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
}

.card--training-plans-link:hover {
  box-shadow: 0 12px 40px rgba(255, 140, 0, 0.3), 0 0 0 1px rgba(255, 140, 0, 0.3);
  border-color: rgba(255, 140, 0, 0.4);
}

.card .card-collapsible-header .expand-indicator {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #ff8c00;
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  min-height: 1.5rem;
  z-index: 2;
  flex-shrink: 0;
}

.saved-trainings-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  max-height: min(400px, 60vh);
  overflow-y: auto;
  padding: 0.5rem 1rem 1rem 1rem;
}

.training-plan-form .saved-training-card {
  display: block;
  padding: 1.75rem 2.25rem;
  border: 1px solid rgba(255, 140, 0, 0.2);
  border-radius: 16px;
  text-decoration: none;
  color: #ffffff;
  background-color: rgba(20, 25, 35, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 140, 0, 0.1);
  transition: all 0.3s;
  position: relative;
  box-sizing: border-box;
  line-height: 1.5;
}

.saved-training-card:hover {
  box-shadow: 0 12px 40px rgba(255, 140, 0, 0.3), 0 0 0 1px rgba(255, 140, 0, 0.3);
  transform: translateY(-4px);
  border-color: rgba(255, 140, 0, 0.4);
}

.saved-training-card-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ff8c00 0%, #ffc247 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.4;
  word-break: break-word;
}

.saved-training-card-date {
  font-size: 0.875rem;
  color: #b0b0b0;
  line-height: 1.4;
}

.form-description {
  color: #b0b0b0;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  font-weight: 500;
}

.format-example {
  background: rgba(255, 140, 0, 0.1);
  border-left: 4px solid #ff8c00;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: #e0e0e0;
  border: 1px solid rgba(255, 140, 0, 0.2);
}

.format-example div {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.format-example div:last-child {
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 0.75rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.textarea-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 2px solid rgba(255, 140, 0, 0.3);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  transition: all 0.3s;
  background: rgba(10, 14, 26, 0.6);
  color: #ffffff;
  line-height: 1.6;
  box-sizing: border-box;
}

.textarea-input::placeholder {
  color: #666;
}

.textarea-input:focus {
  outline: none;
  border-color: #ff8c00;
  box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.2), 0 0 20px rgba(255, 140, 0, 0.1);
  background: rgba(10, 14, 26, 0.8);
}

/* Plan scope: radios + optional date/days (match form-group + textarea-input look) */
.plan-scope-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.plan-scope-options label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: #e8e8e8;
  font-size: 1rem;
  font-weight: 500;
}

.plan-scope-options input[type="radio"] {
  accent-color: #ff8c00;
  width: 1.1rem;
  height: 1.1rem;
  cursor: pointer;
}

.plan-scope-range-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.plan-scope-range-row .form-group {
  margin-bottom: 0;
  flex: 0 0 auto;
}

.plan-scope-range-row .form-group label {
  display: block;
  margin-bottom: 0.35rem;
  color: #b0b0b0;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-scope-range-row .textarea-input {
  min-width: 10rem;
  width: auto;
}

.plan-scope-range-row .textarea-input[type="number"] {
  max-width: 5rem;
}

.plan-scope-range-row .plan-scope-days-unit {
  color: #b0b0b0;
  font-size: 0.95rem;
  font-weight: 500;
}

.date-picker-wrapper {
  width: 100%;
}

.day-times-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.physiology-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 56px auto;
  gap: 0.25rem 1rem;
}

.physiology-grid > div:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
}

.physiology-grid > div:nth-child(2) {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
}

.physiology-grid > div:nth-child(3) {
  grid-column: 3;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
}

.physiology-grid > div:nth-child(4) {
  grid-column: 4;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
}

.physiology-grid label {
  height: 56px;
  min-height: 56px;
  max-height: 56px;
  margin-bottom: 0.25rem;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .physiology-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(8, auto);
  }
  
  .physiology-grid > div {
    grid-column: 1 !important;
  }
  
  .physiology-grid > div:nth-child(1) {
    grid-row: 1 / 3;
  }
  
  .physiology-grid > div:nth-child(2) {
    grid-row: 3 / 5;
  }
  
  .physiology-grid > div:nth-child(3) {
    grid-row: 5 / 7;
  }
  
  .physiology-grid > div:nth-child(4) {
    grid-row: 7 / 9;
  }
}

/* Weekend row - sobota a neděle na vlastním řádku */
.day-times-grid .day-time-item:nth-child(6) {
  grid-column: 1 / 3;
}

.day-times-grid .day-time-item:nth-child(7) {
  grid-column: 3 / 5;
}

@media (max-width: 768px) {
  .day-times-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .day-times-grid .day-time-item:nth-child(6),
  .day-times-grid .day-time-item:nth-child(7) {
    grid-column: span 1;
  }
}

.day-time-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.day-time-item label {
  font-weight: 600;
  color: #ff8c00;
  font-size: 0.9rem;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-hint {
  display: block;
  margin-top: 0.75rem;
  color: #888;
  font-size: 0.875rem;
}

.error-message {
  background: rgba(255, 77, 77, 0.2);
  color: #ff9999;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border: 2px solid rgba(255, 77, 77, 0.4);
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(255, 77, 77, 0.2);
}

.success-message {
  background: rgba(40, 167, 69, 0.2);
  color: #6cff8d;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border: 2px solid rgba(40, 167, 69, 0.4);
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(40, 167, 69, 0.2);
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #ff8c00 0%, #ffc247 100%);
  color: #ffffff;
  width: 100%;
  box-shadow: 0 4px 20px rgba(255, 140, 0, 0.4);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #e67e00 0%, #e6a800 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 140, 0, 0.6);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: rgba(255, 140, 0, 0.1);
  color: #ff8c00;
  border: 2px solid #ff8c00;
  min-width: 140px;
  flex-shrink: 0;
}

.btn-secondary:hover {
  background: rgba(255, 140, 0, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 140, 0, 0.3);
}

.btn-garmin {
  width: 100%;
  background: linear-gradient(135deg, #6DCFF6 0%, #5AB8D9 100%);
  color: white;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(109, 207, 246, 0.4);
  border: none;
}

.btn-garmin:hover:not(:disabled) {
  background: linear-gradient(135deg, #5AB8D9 0%, #4AA3C2 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(109, 207, 246, 0.6);
}

.btn-garmin.uploaded {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  box-shadow: 0 4px 20px rgba(40, 167, 69, 0.4);
}

.btn-garmin.uploaded:hover:not(:disabled) {
  background: linear-gradient(135deg, #218838 0%, #1c7430 100%);
  box-shadow: 0 6px 30px rgba(40, 167, 69, 0.6);
}

.btn-pulse {
  animation: buttonPulse 2s ease-in-out infinite;
}

@keyframes buttonPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 140, 0, 0);
  }
}

.schedule-container {
  width: 100%;
  padding-top: 2rem;
  scroll-margin-top: 90px; /* Reserve space for sticky header when scrolling into view */
}

/* Plan view range toolbar: same look as TrainingPlansCalendar Od/Do (CustomDatePicker) */
.plan-view-range-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.plan-view-range-toolbar .tpc-plan-date-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #e8e8e8;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.plan-view-range-toolbar .date-picker-wrapper {
  min-width: 11rem;
}

.schedule-top-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0 2rem;
  max-width: 100%;
  box-sizing: border-box;
}

.schedule-top-buttons .btn {
  flex: 1;
  min-width: 200px;
}

@media (max-width: 768px) {
  .schedule-top-buttons {
    flex-direction: column;
    margin-bottom: 1rem;
    padding: 0 1rem;
  }
  .schedule-top-buttons .btn {
    width: 100%;
    min-width: 0;
  }
}

.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0 2rem;
}

.schedule-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .form-container {
    padding: 0.25rem;
  }

  .card {
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
  }

  .card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    word-break: break-word;
    line-height: 1.3;
  }

  .form-description {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }

  .format-example {
    padding: 1rem;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
  }

  .form-group {
    margin-bottom: 0.5rem;
  }

  .form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .textarea-input {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  .day-times-grid {
    gap: 1rem;
  }

  .day-time-item label {
    font-size: 0.85rem;
  }

  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .btn-secondary {
    min-width: auto;
  }

  .schedule-header {
    padding: 0 1rem;
    margin-bottom: 1.5rem;
  }

  .schedule-footer {
    flex-direction: column;
    padding: 0 1rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
  }

  .schedule-footer .btn-secondary {
    width: 100%;
  }
}

.delete-confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.delete-confirm-dialog {
  position: relative;
  background: rgba(20, 25, 35, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: min(500px, calc(100vw - 2rem));
  width: 100%;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  border: 1px solid rgba(220, 53, 69, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(220, 53, 69, 0.2);
  z-index: 1001;
  margin: auto;
}

.delete-confirm-dialog h3 {
  color: #ffffff;
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.delete-confirm-dialog p {
  color: #b0b0b0;
  margin: 0 0 2rem 0;
  font-size: 1rem;
  line-height: 1.6;
}

.delete-confirm-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
  padding-right: 0.5rem;
}

.delete-confirm-buttons .btn {
  text-transform: none;
  padding: 0.875rem 1.75rem;
}

.delete-confirm-buttons .btn.btn-primary {
  width: 200px;
}

@media (max-width: 768px) {
  .delete-confirm-dialog {
    padding: 1.5rem;
  }

  .delete-confirm-dialog h3 {
    font-size: 1.25rem;
  }

  .delete-confirm-dialog p {
    font-size: 0.9rem;
  }

  .delete-confirm-buttons {
    flex-direction: column-reverse;
  }

  .delete-confirm-buttons .btn,
  .delete-confirm-buttons .btn.btn-primary,
  .delete-confirm-buttons button {
    width: 100%;
  }
}

/* Chat message bubble – full width for response, single scroll in chat container */
.chat-message-bubble {
  width: 100%;
}
.chat-message-bubble .detail-content,
.chat-message-bubble .markdown-content {
  min-width: 0;
  width: 100%;
  max-width: none;
}

/* Markdown content styles for training plan explanation */
.markdown-content {
  color: #e0e0e0;
  line-height: 1.7;
  font-size: 0.95rem;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
  color: #ffb347;
  font-weight: 600;
  line-height: 1.3;
}

.markdown-content h1 {
  font-size: 1.6rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.markdown-content h1:first-child {
  margin-top: 0;
}

.markdown-content h2 {
  font-size: 1.35rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.markdown-content h2:first-child {
  margin-top: 0;
}

.markdown-content h3 {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 1);
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}

.markdown-content h3:first-child {
  margin-top: 0;
}

.markdown-content h4 {
  font-size: 1.05rem;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}

.markdown-content h4:first-child {
  margin-top: 0;
}

.markdown-content h5 {
  font-size: 1rem;
  margin-top: 0.75rem;
  margin-bottom: 0.3rem;
}

.markdown-content h6 {
  font-size: 0.95rem;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.markdown-content p {
  margin-bottom: 0.1rem;
  margin-top: 0;
  padding: 0;
  color: #e0e0e0;
  line-height: 1.4;
  white-space: pre-wrap;
}

.markdown-content p:first-child {
  margin-top: 0;
}

.markdown-content p:last-child {
  margin-bottom: 0;
}

.markdown-content p + p {
  margin-top: 0.1rem;
}

/* Remove spacing for empty paragraphs */
.markdown-content p:empty {
  display: none;
  margin: 0;
  padding: 0;
  height: 0;
  line-height: 0;
}

/* Remove empty <br> tags */
.markdown-content br:empty {
  display: none;
}

/* Remove multiple consecutive <br> tags - keep only one */
.markdown-content br + br {
  display: none;
}

/* Remove spacing for paragraphs that only contain whitespace or are very short */
.markdown-content p:only-child {
  margin: 0;
}

.markdown-content strong {
  color: #ffb347;
  font-weight: 600;
}

.markdown-content em {
  font-style: italic;
  color: #ff8c00;
}

.markdown-content ul,
.markdown-content ol {
  margin-left: 1.5rem;
  margin-bottom: 0.75rem;
  margin-top: 0.35rem;
  color: #e0e0e0;
  padding-left: 1.25rem;
  list-style-position: outside;
}

.markdown-content ol {
  list-style-type: decimal;
}

.markdown-content ul {
  list-style-type: disc;
}

.markdown-content ul:first-child,
.markdown-content ol:first-child {
  margin-top: 0;
}

.markdown-content ul:last-child,
.markdown-content ol:last-child {
  margin-bottom: 0;
}

/* Reduce spacing between ul/ol and p elements */
.markdown-content ul + p,
.markdown-content ol + p,
.markdown-content p + ul,
.markdown-content p + ol {
  margin-top: 0.25rem;
}

/* Reduce spacing between headings and lists */
.markdown-content h1 + ul,
.markdown-content h1 + ol,
.markdown-content h2 + ul,
.markdown-content h2 + ol,
.markdown-content h3 + ul,
.markdown-content h3 + ol,
.markdown-content h4 + ul,
.markdown-content h4 + ol,
.markdown-content h5 + ul,
.markdown-content h5 + ol,
.markdown-content h6 + ul,
.markdown-content h6 + ol {
  margin-top: 0.25rem;
}

.markdown-content li {
  margin: 0 0 0.4rem 0;
  padding: 0 0 0 0.25rem;
  margin-left: 0;
  color: #e0e0e0;
  line-height: 1.5;
  display: list-item;
}

.markdown-content li:first-child {
  margin-top: 0;
}

.markdown-content li:last-child {
  margin-bottom: 0;
}

.markdown-content hr {
  border: none;
  border-top: 2px solid rgba(255, 140, 0, 0.3);
  margin: 2rem 0;
  height: 0;
}

.markdown-content hr:first-child {
  margin-top: 0;
}

.markdown-content hr:last-child {
  margin-bottom: 0;
}

.markdown-content pre {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.markdown-content pre code {
  font-family: inherit;
  font-size: 0.9em;
  background: none;
  padding: 0;
}

/* Markdown and headings responsive */
@media (max-width: 768px) {
  .markdown-content h1 {
    font-size: 1.25rem;
  }

  .markdown-content h2 {
    font-size: 1.1rem;
  }

  .daily-recommendations-content h1 {
    font-size: 1.25rem;
  }

  .daily-recommendations-content h2 {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .markdown-content h1 {
    font-size: 1.1rem;
  }

  .markdown-content h2 {
    font-size: 1rem;
  }

  .daily-recommendations-content h1 {
    font-size: 1.1rem;
  }

  .daily-recommendations-content h2 {
    font-size: 1rem;
  }
}

/* Draft action buttons: side by side on desktop, stacked on mobile, same width */
.draft-action-buttons {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: flex-end;
  align-items: center;
}
.draft-action-buttons .btn {
  flex: 1;
  min-width: 0;
}
@media (max-width: 768px) {
  .draft-action-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Garmin activities table responsive styles */
@media (max-width: 768px) {
  .training-plan-form table {
    font-size: 0.8rem;
  }

  .training-plan-form table th,
  .training-plan-form table td {
    padding: 0.5rem 0.4rem;
  }

  .training-plan-form table th {
    font-size: 0.75rem;
  }

  .training-plan-form table td {
    font-size: 0.8rem;
  }

  .training-plan-form table img {
    height: 16px !important;
  }

  .training-plan-form .device-cell {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.25rem !important;
  }
}

/* Day evaluation content – wrap text, keep bullets inside (used inside .daily-recommendations-content) */
.day-evaluation-content {
  overflow-wrap: break-word;
  word-break: break-word;
  overflow: visible;
  max-width: 100%;
  box-sizing: border-box;
}

.day-evaluation-content p {
  margin: 0.5rem 0 0.75rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.day-evaluation-content ul,
.day-evaluation-content ol {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.5rem;
  list-style-position: outside;
  overflow-wrap: break-word;
  word-break: break-word;
}

.day-evaluation-content li {
  margin: 0.25rem 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.day-evaluation-content h2,
.day-evaluation-content h3,
.day-evaluation-content h4 {
  margin: 1rem 0 0.5rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Daily recommendations info box above day card (collapsible like day-card) */
.daily-recommendations-box {
  margin-bottom: 1rem;
  padding: 0;
  background: rgba(255, 140, 0, 0.08);
  border: 1px solid rgba(255, 140, 0, 0.25);
  border-radius: 10px;
  overflow: visible;
}

/* Plan-day: in-card body links match paragraph font size (privacy-link defaults to 0.9rem) */
#plan-day .card .privacy-link {
  font-size: 1rem;
  font-weight: inherit;
}

/* Plan-day: force day-evaluation box to full width so it matches Aktuální doporučení visually */
#plan-day .plan-day-evaluation-wrapper .daily-recommendations-box {
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
}

.daily-recommendations-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  position: sticky;
  top: var(--header-height, 0px);
  z-index: 10;
  background: rgba(15, 18, 28, 0.98);
  backdrop-filter: blur(10px);
  border-radius: 10px 10px 0 0;
  min-height: 3rem;
  user-select: none;
}

.daily-recommendations-header:hover {
  background: rgba(255, 140, 0, 0.06);
}

.daily-recommendations-title {
  margin: 0;
  color: #ff8c00;
  font-size: 1.1rem;
  font-weight: 700;
  flex: 1;
}

.daily-recommendations-expand-indicator {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #ff8c00;
  font-size: 1.2rem;
  font-weight: bold;
  flex-shrink: 0;
}

.daily-recommendations-box.expanded .daily-recommendations-content {
  padding: 0.5rem 1.25rem 1.25rem 1.25rem;
}

.daily-recommendations-box.expanded .daily-recommendations-loading,
.daily-recommendations-box.expanded .daily-recommendations-error {
  padding: 0.5rem 1.25rem 1.25rem 1.25rem;
}

.daily-recommendations-box.expanded .daily-recommendations-loading,
.daily-recommendations-box.expanded .daily-recommendations-error {
  margin: 0;
  padding-top: 0.5rem;
}

.daily-recommendations-loading {
  margin: 0;
  color: #b0b0b0;
  font-size: 0.95rem;
}

.daily-recommendations-error {
  margin: 0;
  color: rgba(255, 77, 77, 0.95);
  font-size: 0.95rem;
}

.daily-recommendations-time {
  font-size: 0.8rem;
  color: #b0b0b0;
  margin-bottom: 0.5rem;
}

.daily-recommendations-empty {
  color: #b0b0b0;
  margin: 0.5rem 0;
}

.daily-recommendations-content {
  color: #ffffff;
  line-height: 1.7;
  font-size: 0.95rem;
}

.daily-recommendations-content h1,
.daily-recommendations-content h2,
.daily-recommendations-content h3,
.daily-recommendations-content h4 {
  color: #ff8c00;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.daily-recommendations-content p {
  margin: 0.5rem 0;
}

.daily-recommendations-content ul,
.daily-recommendations-content ol {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.daily-recommendations-content li {
  margin: 0.25rem 0;
}

/* Loading overlay when fetching training by UUID */
.loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  padding: 2rem;
}

.loading-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 140, 0, 0.2);
  border-top-color: #ff8c00;
  border-radius: 50%;
  animation: loading-spinner-rotate 0.8s linear infinite;
}

@keyframes loading-spinner-rotate {
  to {
    transform: rotate(360deg);
  }
}

.loading-overlay-text {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
}

.loading-overlay-hint {
  margin: 0;
  font-size: 0.95rem;
  color: #b0b0b0;
}
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #0a0e1a;
}

.main-content {
  flex: 1;
  padding: 0;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 1400px) {
  .app {
    padding-left: 280px;
  }
}

@media (max-width: 768px) {
  .main-content {
    width: 100%;
  }
}

@keyframes async-jobs-spin {
  to {
    transform: rotate(360deg);
  }
}


:root {
  --header-height: 0px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #0a0e1a;
  background-image: 
    radial-gradient(at 0% 0%, rgba(255, 140, 0, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(255, 194, 71, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(255, 140, 0, 0.1) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(255, 194, 71, 0.1) 0px, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  color: #e8e8e8;
  line-height: 1.6;
}

code {
  font-family: 'Courier New', monospace;
}
