.cir-tabs {
  --color-cloud: #ffffff;
  --color-edge: #e3e8ee;
  --color-ink: #1f2937;
  --color-mist: #5b6472;
  --color-hover: #f3f6fa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 100%;
  padding: 6px;
  background: var(--color-cloud);
  border: 1px solid var(--color-edge);
  border-radius: 999px;
  box-shadow:
    0 1px 1px rgba(14, 17, 22, 0.04),
    0 20px 40px -24px rgba(14, 17, 22, 0.18);
  font-family: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
}

.cir-tabs__r {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cir-tabs__t {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 68px;
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  border: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--color-mist);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  appearance: none;
  transition:
    background-color 220ms cubic-bezier(0.22, 1, 0.36, 1),
    color 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cir-tabs__t:hover {
  color: var(--color-ink);
  background: var(--color-hover);
}

.cir-tabs__t.is-suggested:not(.is-selected) {
  color: #4f46e5;
  background: rgba(238, 242, 255, 0.9);
}

.cir-tabs__t.is-complete:not(.is-selected) {
  color: #047857;
  background: rgba(209, 250, 229, 0.72);
}

.cir-tabs__r:checked + .cir-tabs__t,
.cir-tabs__t.is-selected {
  background: var(--color-ink);
  color: var(--color-cloud);
  box-shadow:
    0 1px 1px rgba(14, 17, 22, 0.06),
    0 8px 18px -12px rgba(14, 17, 22, 0.42);
}

.cir-tabs__r:focus-visible + .cir-tabs__t,
.cir-tabs__t:focus-visible {
  box-shadow: 0 0 0 3px rgba(46, 125, 239, 0.32);
}

.dark .cir-tabs {
  --color-cloud: #1e293b;
  --color-edge: #334155;
  --color-ink: #f8fafc;
  --color-mist: #94a3b8;
  --color-hover: rgba(51, 65, 85, 0.58);
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.18),
    0 20px 40px -24px rgba(0, 0, 0, 0.48);
}

.dark .cir-tabs__t.is-suggested:not(.is-selected) {
  color: #c4b5fd;
  background: rgba(49, 46, 129, 0.36);
}

.dark .cir-tabs__t.is-complete:not(.is-selected) {
  color: #6ee7b7;
  background: rgba(6, 78, 59, 0.42);
}

.dark .cir-tabs__r:checked + .cir-tabs__t,
.dark .cir-tabs__t.is-selected {
  color: #111827;
}

@media (max-width: 380px) {
  .cir-tabs {
    width: 100%;
  }

  .cir-tabs__t {
    flex: 1;
    min-width: 0;
    padding: 0 9px;
    font-size: 11px;
  }
}

.day-card-title {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  color: #1f2937;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  transition: color 0.15s ease;
}

.day-card-button {
  cursor: pointer;
}

.day-card-button.is-complete {
  background: rgba(236, 253, 245, 0.78);
  border-color: rgba(52, 211, 153, 0.34);
  box-shadow:
    0 1px 1px rgba(16, 185, 129, 0.05),
    0 16px 28px -24px rgba(16, 185, 129, 0.42);
}

.day-card-button.is-complete:hover,
.day-card-button.is-complete:focus-visible {
  background: rgba(220, 252, 231, 0.86);
  border-color: rgba(16, 185, 129, 0.42);
}

.day-card-button:hover,
.day-card-button:focus-visible {
  border-color: rgba(59, 82, 246, 0.28);
}

.day-card-button:focus-visible {
  outline: 3px solid rgba(59, 82, 246, 0.26);
  outline-offset: 3px;
}

.day-card-button:active {
  transform: scale(0.98);
}

.day-card-button:hover .day-card-title {
  color: #3b52f6;
}

.dark .day-card-title {
  color: #e2e8f0;
}

.dark .day-card-button.is-complete {
  background: rgba(6, 78, 59, 0.24);
  border-color: rgba(16, 185, 129, 0.32);
}

.dark .day-card-button.is-complete:hover,
.dark .day-card-button.is-complete:focus-visible {
  background: rgba(6, 95, 70, 0.34);
}

.dark .day-card-button:hover,
.dark .day-card-button:focus-visible {
  border-color: rgba(129, 140, 248, 0.34);
}

.dark .day-card-button:hover .day-card-title {
  color: #818cf8;
}

.day-muscle-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  max-width: 122px;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  opacity: 0.86;
}

.day-card-button:hover .day-muscle-badge {
  opacity: 0.96;
}

.dark .day-muscle-badge {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.workout-card-highlight {
  animation: workout-card-highlight 1100ms ease-out;
}

@keyframes workout-card-highlight {
  0% {
    box-shadow:
      0 0 0 0 rgba(79, 70, 229, 0.34),
      0 0 0 0 rgba(79, 70, 229, 0.22);
  }

  36% {
    box-shadow:
      0 0 0 3px rgba(79, 70, 229, 0.22),
      0 18px 38px -28px rgba(79, 70, 229, 0.58);
  }

  100% {
    box-shadow:
      0 0 0 0 rgba(79, 70, 229, 0),
      0 0 0 0 rgba(79, 70, 229, 0);
  }
}

.app-shell {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
}

.app-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.app-shell.is-cardio-view {
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.app-shell.is-cardio-view .app-scroll {
  flex: 0 0 auto;
  min-height: auto;
  overflow: visible;
}

.workout-tabs-sticky {
  position: sticky;
  top: 0;
  z-index: 50;
  margin-inline: -1.25rem;
  padding: 0.5rem 1.25rem 0.65rem;
  background: rgba(227, 237, 247, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 22px -20px rgba(15, 23, 42, 0.65);
}

.dark .workout-tabs-sticky {
  background: rgba(11, 15, 25, 0.92);
}

.workout-summary-card {
  margin-top: 1.35rem;
}

.exercise-card-footer {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(243, 244, 246, 1);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dark .exercise-card-footer {
  border-top-color: rgb(51 65 85);
}

.exercise-series-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.exercise-series-label {
  color: #9ca3af;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.exercise-series-dots {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  min-width: 0;
}

.exercise-actions-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, auto);
  align-items: center;
  gap: 0.65rem;
}

.exercise-logbook-btn,
.exercise-complete-btn {
  min-height: 42px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 800;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.exercise-logbook-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.exercise-complete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding-inline: 0.9rem;
}

.exercise-logbook-btn:active,
.exercise-complete-btn:active {
  transform: scale(0.97);
}

.dark .exercise-logbook-btn {
  color: #cbd5e1;
  background: #1e293b;
  border-color: #334155;
}

@media (min-width: 640px) {
  .app-shell {
    height: 850px;
  }
}

@media (max-width: 380px) {
  .day-card-title {
    margin-left: 6px;
  }

  .day-muscle-badge {
    min-width: 82px;
    max-width: 110px;
    padding-inline: 10px;
  }

  .exercise-actions-row {
    grid-template-columns: 1fr;
  }
}
