@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;600;700;900&display=swap");

:root {
  --bg: #03060c;
  --panel: #0f141c;
  --card: #111925;
  --accent: #22d3ee;
  --accent-2: #0ea5e9;
  --accent-3: #2563eb;
  --accent-dark: #0b5fb6;
  --on-accent: #ffffff;
  --btn-ghost-bg: rgba(255, 255, 255, 0.04);
  --btn-ghost-border: rgba(255, 255, 255, 0.38);
  --btn-danger: #b42318;
  --btn-danger-dark: #7a1a14;
  --btn-gradient: linear-gradient(135deg, var(--accent-2), var(--accent-3));
  --btn-gradient-hover: linear-gradient(135deg, var(--accent), var(--accent-2));
  --focus-ring: 0 0 0 3px rgba(0, 163, 255, 0.45);
  --text: #f5f7fb;
  --muted: #9aa2b1;
  --border-soft: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 8px 22px rgba(0, 0, 0, 0.28);
  --container-max: 1100px;
  --container-wide: 1280px;
  --container-4k: 1540px;
  --space-outer: clamp(16px, 2.2vw, 36px);
  --space-section: clamp(20px, 2.6vw, 34px);
  --radius-card: clamp(18px, 2vw, 28px);
  --card-pad: clamp(18px, 2.6vw, 28px);
  --card-pad-sm: clamp(14px, 2.2vw, 20px);
  --section-gap: clamp(12px, 2vw, 18px);
  --btn-height: 42px;
  --btn-min-width: 160px;
  --btn-padding-y: 9px;
  --btn-padding-x: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Lato", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, rgba(14, 165, 233, 0.2), transparent 60%),
    #03060c;
  line-height: 1.5;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .mobile-dock {
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

body::before {
  width: 320px;
  height: 320px;
  top: 14vh;
  left: -120px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 70%);
  animation: ambient-float-a 14s ease-in-out infinite alternate;
}

body::after {
  width: 380px;
  height: 380px;
  right: -140px;
  bottom: 10vh;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18), transparent 70%);
  animation: ambient-float-b 18s ease-in-out infinite alternate;
}

.topbar {
  padding: 14px 18px;
  background: rgba(4, 6, 10, 0.85);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}

.topbar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  padding: 8px;
  gap: 5px;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  padding: 6px;
  background: radial-gradient(circle at 30% 30%, rgba(0, 163, 255, 0.35), rgba(3, 6, 12, 0.9));
  border: 1px solid rgba(0, 163, 255, 0.5);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-transform: uppercase;
}

.brand-text strong {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
}

.brand-text span {
  font-size: clamp(0.62rem, 0.9vw, 0.72rem);
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a,
.nav .user-pill {
  min-height: var(--btn-height);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  border-radius: 999px;
}

.nav-scrim {
  display: none;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.nav a,
.hero-actions a,
.history-card a,
.detail-link,
.delete-inline button,
.delete-action button {
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.nav a.is-active {
  color: var(--text);
  border-color: rgba(0, 163, 255, 0.45);
  background: rgba(0, 163, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 163, 255, 0.18);
}

.nav a.nav-cta {
  color: var(--on-accent);
  background: var(--btn-gradient);
  border-color: transparent;
  font-weight: 700;
}

.nav a.nav-cta:hover {
  color: var(--on-accent);
  border-color: transparent;
  filter: brightness(1.02);
}

.user-pill {
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.18);
  font-size: 0.72rem;
  color: #7ae8ff;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: min(46vw, 320px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-card {
  max-width: 540px;
  margin: 0 auto 32px;
}

.auth-hero {
  max-width: 980px;
}

.auth-landing {
  position: relative;
  min-height: 72vh;
}

.auth-backdrop {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(3, 6, 12, 0.78), rgba(8, 12, 22, 0.42)),
    var(--auth-bg, none);
  background-size: cover;
  background-position: center;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
  transform: translateZ(0);
}

.auth-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.12), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(37, 99, 235, 0.16), transparent 45%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.auth-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(34, 211, 238, 0.22), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(37, 99, 235, 0.22), transparent 45%),
    linear-gradient(180deg, rgba(3, 6, 12, 0.5), rgba(3, 6, 12, 0.8));
  pointer-events: none;
}

.auth-foreground {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  padding: clamp(22px, 4vw, 40px);
}

.auth-foreground > * {
  opacity: 0;
  transform: translateY(18px);
  animation: auth-reveal 0.7s ease forwards;
}

.auth-foreground > :nth-child(1) {
  animation-delay: 0.05s;
}

.auth-foreground > :nth-child(2) {
  animation-delay: 0.15s;
}

@keyframes auth-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-hero-content {
  display: grid;
  gap: var(--section-gap);
  align-content: center;
}

.auth-kicker {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.7);
}

.auth-hero-content h1 {
  font-size: clamp(28px, 3vw, 42px);
  margin: 0;
  text-transform: none;
}

.auth-hero-content p {
  color: #d3def3;
  max-width: 520px;
  line-height: 1.6;
}

.auth-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--section-gap);
}

.auth-hero-secondary {
  min-height: var(--btn-height);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  font-size: 0.75rem;
  min-width: 160px;
}

.auth-hero-actions .btn,
.auth-hero-actions .detail-link {
  min-width: 160px;
  justify-content: center;
}

.trial-actions .btn-inline,
.billing-cta .btn,
.billing-plan .btn,
.admin-actions .btn-inline,
.coach-actions .btn,
.filters-actions .btn,
.workout-actions .btn-inline,
.workout-actions .detail-link {
  min-width: var(--btn-min-width);
  justify-content: center;
}

.cta-grid,
.trial-actions,
.billing-cta,
.admin-actions,
.coach-actions,
.filters-actions,
.workout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.cta-grid {
  justify-content: flex-start;
}

.trial-actions,
.billing-cta {
  justify-content: space-between;
}

.filters-actions,
.workout-actions,
.admin-actions,
.coach-actions {
  justify-content: flex-start;
}

@media (max-width: 720px) {
  .cta-grid,
  .trial-actions,
  .billing-cta,
  .admin-actions,
  .coach-actions,
  .filters-actions,
  .workout-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.auth-hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.auth-hero-metrics > div {
  padding: 14px;
  border-radius: 14px;
  background: rgba(3, 8, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 6px;
}

.auth-login {
  max-width: 520px;
  margin: 0;
  align-self: center;
  backdrop-filter: blur(12px);
  background: rgba(7, 11, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.auth-login > header {
  display: grid;
  gap: calc(var(--section-gap) / 1.5);
  margin-bottom: var(--section-gap);
}

.auth-hero h1 {
  margin: 0 0 6px;
}

.auth-intro {
  margin-top: 8px;
  color: #d6deee;
  line-height: 1.6;
}

.auth-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.auth-panel {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.auth-panel:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.35);
}

.auth-panel h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.auth-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.auth-highlights > div {
  padding: 14px;
  border-radius: 14px;
  background: rgba(0, 163, 255, 0.06);
  border: 1px solid rgba(0, 163, 255, 0.2);
  display: grid;
  gap: 6px;
}

.auth-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
}

.auth-trust span {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

@media (min-width: 1025px) {
  .auth-landing {
    min-height: 78vh;
  }
}

@media (max-width: 1024px) {
  .auth-foreground {
    grid-template-columns: 1fr;
  }

  .auth-login {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .auth-backdrop {
    border-radius: 22px;
  }

  .auth-foreground {
    padding: 18px;
  }
}

.trial-cta {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(37, 99, 235, 0.08));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.trial-cta h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.trial-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.trial-actions .btn-inline,
.trial-actions .detail-link {
  flex: 1 1 var(--btn-min-width);
}

.billing-card {
  margin-top: 18px;
  padding: var(--card-pad-sm);
  border-radius: 16px;
  border: 1px solid rgba(0, 163, 255, 0.25);
  background: rgba(0, 119, 217, 0.08);
}

.billing-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.billing-note,
.billing-disclaimer {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.billing-hero {
  background: linear-gradient(140deg, rgba(14, 165, 233, 0.18), rgba(37, 99, 235, 0.08));
  border-color: rgba(34, 211, 238, 0.3);
}

.billing-lead {
  color: #d6deee;
  line-height: 1.6;
  margin-top: 8px;
}

.billing-cta {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  background: rgba(7, 11, 18, 0.35);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.billing-cta strong {
  display: block;
  font-size: 1rem;
}

.billing-cta span {
  color: var(--muted);
  font-size: 0.85rem;
}

.billing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.billing-plan {
  background: linear-gradient(160deg, rgba(12, 18, 28, 0.9), rgba(8, 12, 20, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.35);
}

.billing-plan h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.billing-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
  color: #d6deee;
}

.billing-list li {
  position: relative;
  padding-left: 18px;
}

.billing-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.billing-highlight {
  border-color: rgba(34, 211, 238, 0.35);
  background: linear-gradient(160deg, rgba(12, 20, 32, 0.9), rgba(10, 18, 30, 0.7));
}

.billing-faq {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(6, 10, 18, 0.6);
}

.billing-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.billing-faq-grid strong {
  display: block;
  margin-bottom: 6px;
}

@media (max-width: 720px) {
  .billing-cta {
    flex-direction: column;
    align-items: stretch;
  }
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}

.auth-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--section-gap);
}

.auth-links .detail-link {
  min-width: var(--btn-min-width);
}

.error-msg {
  background: rgba(255, 81, 81, 0.2);
  color: #ff9b9b;
  border-radius: 12px;
  padding: 12px 14px;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.auth-hint {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.cta-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 163, 255, 0.14);
  border: 1px solid rgba(0, 163, 255, 0.4);
  box-shadow: 0 8px 18px rgba(0, 163, 255, 0.25);
  display: inline-block;
}

.cta-link:hover {
  background: rgba(0, 163, 255, 0.22);
  box-shadow: 0 10px 22px rgba(0, 163, 255, 0.35);
}

.athlete-list {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.athlete-card {
  padding: var(--card-pad-sm);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(10, 15, 22, 0.9), rgba(6, 10, 18, 0.7));
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.athlete-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.35);
}

.athlete-accordion {
  padding: 0;
  overflow: hidden;
}

.athlete-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
}

.athlete-summary::-webkit-details-marker {
  display: none;
}

.athlete-summary-main {
  display: grid;
  gap: 6px;
}

.athlete-summary-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.athlete-count {
  font-size: 0.7rem;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 163, 255, 0.35);
  background: rgba(0, 163, 255, 0.12);
}

.athlete-details {
  padding: 0 18px 16px;
  display: grid;
  gap: 12px;
}

.athlete-workouts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.athlete-workouts li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.athlete-workouts li:hover {
  border-color: rgba(34, 211, 238, 0.35);
  transform: translateY(-1px);
}

.list-meta {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  width: min(100%, var(--container-max));
  padding: clamp(24px, 4vw, 44px) var(--space-outer) clamp(48px, 7vw, 80px);
  position: relative;
  z-index: 1;
}

.container > *:not(.timer-dock) {
  opacity: 0;
  transform: translateY(12px);
  animation: section-rise 0.45s ease forwards;
}

.container > *:not(.timer-dock):nth-child(1) { animation-delay: 0.04s; }
.container > *:not(.timer-dock):nth-child(2) { animation-delay: 0.08s; }
.container > *:not(.timer-dock):nth-child(3) { animation-delay: 0.12s; }
.container > *:not(.timer-dock):nth-child(4) { animation-delay: 0.16s; }
.container > *:not(.timer-dock):nth-child(5) { animation-delay: 0.20s; }

@keyframes section-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ambient-float-a {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(36px, -22px, 0) scale(1.08);
  }
}

@keyframes ambient-float-b {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-30px, 26px, 0) scale(1.06);
  }
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px var(--space-outer) calc(22px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.95), rgba(4, 7, 12, 1));
}

.mobile-dock {
  display: none;
}

.site-footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand .brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  padding: 8px;
  background: radial-gradient(circle at 30% 30%, rgba(34, 211, 238, 0.35), rgba(3, 6, 12, 0.9));
  border: 1px solid rgba(34, 211, 238, 0.45);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand .brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.footer-brand-text {
  display: grid;
  gap: 4px;
}

.footer-brand-text strong {
  color: var(--text);
  font-size: 0.92rem;
}

.footer-brand-text span {
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-meta {
  display: grid;
  gap: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.footer-link {
  color: var(--text);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
  font-weight: 600;
}

.footer-link:hover {
  background: rgba(34, 211, 238, 0.2);
}

.site-logo {
  width: clamp(96px, 12vw, 120px);
  height: auto;
  display: block;
  margin: 0 auto clamp(14px, 2.6vw, 22px);
  filter: drop-shadow(0 10px 22px rgba(0, 163, 255, 0.35));
}

.card {
  background: var(--card);
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: var(--card-pad);
  box-shadow: var(--shadow-soft);
  margin-bottom: clamp(22px, 3vw, 34px);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  border-color: rgba(34, 211, 238, 0.22);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.card > header,
.billing-faq > header,
.billing-hero > header,
.history-card > header,
.auth-login > header {
  display: grid;
  gap: calc(var(--section-gap) / 1.5);
  margin-bottom: var(--section-gap);
}

.card > header h1,
.card > header h2,
.card > header p {
  margin: 0;
}

.page-shell {
  display: grid;
  gap: 18px;
}

.page-intro {
  display: grid;
  gap: 10px;
}

.page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.page-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-grid-split {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.section-card {
  padding: 16px;
  border-radius: 18px;
}

.section-heading {
  display: grid;
  gap: 6px;
}

.section-heading h2,
.section-heading p {
  margin: 0;
}

.section-stack {
  display: grid;
  gap: 14px;
}

.hero-card {
  background: var(--panel);
  border-radius: calc(var(--radius-card) + 4px);
  padding: clamp(24px, 4vw, 40px);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(34, 211, 238, 0.08) 48%, transparent 72%);
  transform: translateX(-120%);
  animation: hero-sheen 4.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes hero-sheen {
  0%, 70% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

.hero-desktop {
  display: block;
}

.hero-mobile {
  display: none;
}

.hero-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-card h1 {
  font-size: clamp(26px, 3.4vw, 40px);
  margin: 0;
  text-transform: uppercase;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.hero-body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #e0e7fb;
}

.hero-subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.hero-card header,
.hero-desktop,
.hero-mobile {
  display: grid;
  gap: var(--section-gap);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions a {
  padding: var(--btn-padding-y) calc(var(--btn-padding-x) + 4px);
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.hero-actions a:first-child {
  background: var(--btn-gradient);
  color: var(--on-accent);
  border: 1px solid rgba(0, 163, 255, 0.45);
  box-shadow: none;
}

.hero-actions a.ghost {
  border: 1px solid var(--border-soft);
  color: var(--text);
}

.flash-toast {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flash-toast .toast {
  padding: 12px 18px;
  border-radius: 10px;
  color: #fff;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  animation: toast-in 0.35s ease both;
}

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

.flash-toast .toast-success {
  background: rgba(0, 163, 255, 0.9);
}

.flash-toast .toast-info {
  background: rgba(59, 130, 246, 0.9);
}

.flash-toast .toast-warning {
  background: rgba(243, 156, 18, 0.9);
}

.form-card header h2 {
  margin: 0;
  font-size: 22px;
  text-transform: uppercase;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.form-card header {
  margin-bottom: 18px;
}

.timer-card {
  margin: 20px 0;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(34, 211, 238, 0.26);
  background:
    radial-gradient(circle at 8% -10%, rgba(34, 211, 238, 0.2), transparent 42%),
    linear-gradient(155deg, rgba(10, 16, 26, 0.9), rgba(6, 10, 18, 0.8));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.timer-card::after {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2), transparent 70%);
  pointer-events: none;
}

.timer-card[data-mode="rest"] {
  border-color: rgba(37, 99, 235, 0.36);
}

.timer-card.is-running {
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(34, 211, 238, 0.25);
}

.timer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.timer-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.timer-header h3 {
  margin: 0;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.timer-mode {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(3, 6, 12, 0.42);
}

.timer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: rgba(34, 211, 238, 0.1);
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #dff8ff;
  cursor: pointer;
}

.timer-toggle input {
  margin: 0;
  accent-color: var(--accent);
}

.timer-chip {
  border: 1px solid transparent;
  background: transparent;
  color: #ccd7eb;
  border-radius: 999px;
  padding: 6px 11px;
  text-transform: uppercase;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.timer-chip.is-active {
  border-color: rgba(34, 211, 238, 0.55);
  color: #e8fbff;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.26), rgba(37, 99, 235, 0.2));
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.18);
}

.timer-body {
  display: grid;
  gap: var(--section-gap);
}

.timer-display {
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  padding: 16px 0;
  border-radius: 16px;
  color: #f4fbff;
  background: linear-gradient(180deg, rgba(4, 8, 14, 0.8), rgba(8, 13, 22, 0.75));
  border: 1px solid rgba(34, 211, 238, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.timer-presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 8px;
}

.timer-pill {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #d7e4fa;
  padding: 8px 12px;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.timer-pill:hover {
  border-color: rgba(34, 211, 238, 0.46);
  background: rgba(34, 211, 238, 0.14);
}

.timer-chip:focus-visible,
.timer-pill:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.timer-toggle:focus-within {
  box-shadow: var(--focus-ring);
}

.timer-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 12px;
}

.timer-inputs input {
  border-color: rgba(34, 211, 238, 0.24);
  background: rgba(255, 255, 255, 0.03);
}

.timer-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.timer-finished {
  border-color: rgba(16, 185, 129, 0.65);
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(16, 185, 129, 0.32);
}

.timer-finished .timer-display {
  border-color: rgba(16, 185, 129, 0.58);
  background: linear-gradient(180deg, rgba(6, 18, 14, 0.84), rgba(8, 22, 18, 0.82));
}

.timer-card.is-running .timer-display {
  border-color: rgba(34, 211, 238, 0.48);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.22), 0 0 0 1px rgba(34, 211, 238, 0.14);
}

.timer-card.is-compact {
  padding: 14px;
}

.timer-card.is-compact .timer-header p {
  display: none;
}

.timer-card.is-compact .timer-presets,
.timer-card.is-compact .timer-inputs {
  display: none;
}

.timer-card.is-compact .timer-display {
  padding: 10px 0;
  font-size: clamp(28px, 4vw, 40px);
}

.timer-card.is-compact .timer-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timer-dock {
  position: fixed;
  right: 18px;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  z-index: 28;
  width: min(300px, calc(100vw - 32px));
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.2), transparent 45%),
    linear-gradient(155deg, rgba(10, 16, 26, 0.96), rgba(6, 10, 18, 0.94));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.timer-dock.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.timer-dock.is-running {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(34, 211, 238, 0.16);
}

.timer-dock-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.timer-dock-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.timer-dock-label,
.timer-dock-mode {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timer-dock-label {
  color: #dff8ff;
}

.timer-dock-mode {
  color: #9adfff;
}

.timer-dock-display {
  margin-bottom: 10px;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  text-align: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  background: rgba(3, 10, 18, 0.7);
}

.timer-dock-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.timer-dock-actions .btn {
  min-width: 0;
  min-height: 42px;
  margin-top: 0;
  padding: 10px 12px;
  font-size: 0.72rem;
}

.timer-dock-expand {
  grid-column: 1 / -1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #d7e4fa;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.timer-dock-expand:hover {
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--section-gap);
  margin-bottom: var(--section-gap);
}

.sectioned-form {
  display: grid;
  gap: 14px;
}

.form-section {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(170deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.form-section-title {
  margin: 0 0 10px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9adfff;
  font-weight: 800;
}

.sectioned-form .form-grid:last-child {
  margin-bottom: 0;
}

.sectioned-form .notes {
  margin-top: 0;
}

.sectioned-form > .btn {
  margin-top: 2px;
}

.form-grid label {
  min-width: 0;
}

.form label {
  display: grid;
  gap: 0;
}

.file-picker {
  position: relative;
  gap: 8px;
}

.file-picker-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-picker-trigger {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px dashed rgba(34, 211, 238, 0.35);
  background:
    linear-gradient(145deg, rgba(34, 211, 238, 0.1), rgba(37, 99, 235, 0.08)),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.file-picker-trigger strong {
  font-size: 0.84rem;
  color: #effbff;
}

.file-picker-trigger small {
  color: var(--muted);
  font-size: 0.76rem;
}

.file-picker:hover .file-picker-trigger,
.file-picker:focus-within .file-picker-trigger,
.file-picker.has-file .file-picker-trigger {
  border-color: rgba(34, 211, 238, 0.56);
  background:
    linear-gradient(145deg, rgba(34, 211, 238, 0.16), rgba(37, 99, 235, 0.12)),
    rgba(255, 255, 255, 0.03);
  transform: translateY(-1px);
}

.file-picker-meta {
  display: block;
  font-size: 0.72rem;
  color: #b9c5d7;
}

label span {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
  letter-spacing: 0.05em;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
select,
textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 0 rgba(0, 0, 0, 0.28);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.12s ease;
  -webkit-appearance: none;
  appearance: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(197, 209, 229, 0.64);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]):focus,
select:focus,
textarea:focus {
  border-color: rgba(34, 211, 238, 0.54);
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.1), rgba(37, 99, 235, 0.07));
  box-shadow: 0 0 0 3px rgba(0, 163, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

select {
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(214, 230, 250, 0.92) 50%),
    linear-gradient(135deg, rgba(214, 230, 250, 0.92) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

input[type="date"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-right: 12px;
}

input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.78;
  cursor: pointer;
  filter: invert(86%) sepia(15%) saturate(466%) hue-rotate(166deg) brightness(102%) contrast(96%);
}

textarea {
  resize: vertical;
  min-height: 96px;
}

.exercises {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.exercise-row {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.exercise-row::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.45), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.exercise-row.is-hidden {
  display: none;
}

.exercise-row.is-open {
  border-color: rgba(0, 163, 255, 0.6);
  transform: translateY(-2px);
}

.exercise-row.is-open::after {
  opacity: 1;
}

.accordion-header {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  margin-bottom: 12px;
  cursor: pointer;
  outline: none;
}

.accordion-title-group {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.accordion-title-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.accordion-title-main {
  font-size: 1rem;
  line-height: 1.2;
  color: #f6fbff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.accordion-header-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  flex-shrink: 0;
}

.accordion-header .state-label {
  font-size: 0.7rem;
  color: var(--muted);
}

.accordion-body label {
  margin-bottom: 12px;
}

.exercise-snapshot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 14px;
}

.exercise-snapshot-pill,
.exercise-header-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  color: #dcecff;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.exercise-snapshot-pill.is-accent,
.exercise-header-chip {
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.12);
  color: #dff8ff;
}

.exercise-header-chip.is-hidden {
  display: none;
}

.exercise-snapshot-empty {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: rgba(197, 209, 229, 0.72);
  font-size: 0.74rem;
}

.ex-name-manual-wrap.is-hidden {
  display: none;
}

.exercise-reference-box {
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.exercise-reference-box label {
  margin-bottom: 8px;
}

.exercise-compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.exercise-advanced {
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 10px;
}

.exercise-advanced summary,
.exercise-reference-view summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.exercise-advanced summary::-webkit-details-marker,
.exercise-reference-view summary::-webkit-details-marker {
  display: none;
}

.exercise-advanced-body {
  margin-top: 8px;
}

.exercise-section-hint {
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: rgba(197, 209, 229, 0.72);
  text-transform: none;
}

.coach-note-panel {
  margin-bottom: 12px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.1), rgba(37, 99, 235, 0.08));
}

.coach-note-panel.is-hidden {
  display: none;
}

.coach-note-label {
  display: inline-flex;
  margin-bottom: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fe8ff;
  font-weight: 700;
}

.coach-note-text {
  margin: 0;
  color: #eaf7ff;
  font-size: 0.84rem;
  line-height: 1.5;
}

.exercise-reference-view {
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  background: rgba(34, 211, 238, 0.08);
  padding: 8px 10px;
}

.exercise-reference-view-body {
  margin-top: 8px;
}

.exercise-ref-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.exercise-ref-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.66rem;
  border: 1px solid rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.15);
  color: #dff8ff;
}

.coach-program-exercise-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.coach-program-exercise-card {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(170deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}

.coach-program-exercise-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.coach-program-exercise-head strong {
  display: block;
  font-size: 1rem;
  line-height: 1.3;
}

.coach-program-exercise-index {
  display: inline-flex;
  margin-bottom: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(197, 209, 229, 0.72);
}

.coach-program-note-pill {
  flex-shrink: 0;
}

.coach-program-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.coach-program-target-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 78px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  background: rgba(34, 211, 238, 0.07);
}

.coach-program-target-pill small {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(197, 209, 229, 0.7);
}

.coach-program-target-pill strong {
  font-size: 0.92rem;
  color: #f4fbff;
}

.coach-program-exercise-note {
  margin: 10px 0 0;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid rgba(34, 211, 238, 0.14);
  background: rgba(34, 211, 238, 0.08);
  color: #dff1ff;
  font-size: 0.84rem;
  line-height: 1.45;
}

.exercise-ref-hint {
  margin: 0;
  font-size: 0.72rem;
}

.exercise-lib-hint {
  margin: 0 0 4px;
  font-size: 0.7rem;
  color: #9bdfff;
}

.exercise-ref-delta {
  margin: 6px 0 0;
  font-size: 0.72rem;
  color: #9fe6ff;
}

.exercise-ref-delta.delta-up {
  color: #7dffb5;
}

.exercise-ref-delta.delta-down {
  color: #ffb4b4;
}

.exercise-ref-delta.delta-neutral {
  color: #d2e9ff;
}

.workout-quick-tools {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.checkin-grid {
  margin-top: -4px;
}

.history-export {
  margin-top: 8px;
}

.history-reminder {
  margin: 8px 0 12px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  background: rgba(34, 211, 238, 0.08);
}

.template-day-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.focus-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--muted);
}

.focus-mode-toggle input {
  width: auto;
}

.input-stepper {
  margin-top: 6px;
  display: inline-flex;
  gap: 6px;
}

.stepper-btn {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.05);
  color: #f2f8ff;
  width: 36px;
  height: 32px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.stepper-btn:focus-visible,
.exercise-timer-link:focus-visible,
.focus-mode-toggle input:focus-visible,
#quick-fill-prev:focus-visible,
#save-day-template:focus-visible,
#load-day-template:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.exercise-timer-link {
  margin-top: 4px;
  width: auto;
}

.notes {
  margin-top: 18px;
}

.owner-meta {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.btn {
  margin-top: 14px;
  width: 100%;
}

.form-submit-sticky {
  position: sticky;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 12;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.btn,
.detail-link,
.delete-inline button,
.delete-action button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-height);
  min-width: var(--btn-min-width);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: var(--btn-gradient);
  color: var(--on-accent);
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 14px 24px rgba(3, 117, 209, 0.25);
  line-height: 1.1;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover,
.detail-link:hover,
.delete-inline button:hover,
.delete-action button:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  background: var(--btn-gradient-hover);
  box-shadow: 0 16px 30px rgba(14, 165, 233, 0.35);
}

.btn:active,
.detail-link:active,
.delete-inline button:active,
.delete-action button:active {
  transform: translateY(0) scale(0.99);
}

.btn::after,
.detail-link::after,
.delete-inline button::after,
.delete-action button::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -120%;
  width: 52%;
  height: 140%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0));
  transform: rotate(15deg);
  transition: transform 0.5s ease, left 0.5s ease;
  pointer-events: none;
}

.btn:hover::after,
.detail-link:hover::after,
.delete-inline button:hover::after,
.delete-action button:hover::after {
  left: 130%;
}

.btn:focus-visible,
.detail-link:focus-visible,
.delete-inline button:focus-visible,
.delete-action button:focus-visible,
.nav a:focus-visible,
.nav-toggle:focus-visible,
#scroll-top:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn.secondary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
}

.detail-link.ghost {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  color: var(--text);
  border-color: var(--btn-ghost-border);
  box-shadow: none;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #b42318);
  color: #fff;
  border-color: transparent;
}

.btn-inline,
.workout-actions .btn-inline,
.detail-actions .btn-inline {
  width: auto;
  min-width: var(--btn-min-width);
  max-width: 100%;
  padding: 8px 14px;
  font-size: 0.72rem;
}

.muted {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 24px;
}

.history-card h1 {
  margin-top: 0;
  font-size: 24px;
  text-transform: uppercase;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.history-card header p {
  margin-bottom: 0;
}

.history-export {
  margin: 0;
}

.history-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.history-tab {
  text-decoration: none;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.history-tab:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.history-tab.is-active {
  color: #dff8ff;
  border-color: rgba(34, 211, 238, 0.46);
  background: rgba(34, 211, 238, 0.18);
}

.history-tab:focus-visible,
.coach-banner summary:focus-visible,
.filters-accordion summary:focus-visible,
.week-group-summary:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.coach-banner {
  margin: 14px 0;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: linear-gradient(140deg, rgba(14, 165, 233, 0.16), rgba(37, 99, 235, 0.06));
  display: grid;
  gap: 10px;
}

.coach-banner h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.coach-banner summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.coach-banner summary::-webkit-details-marker {
  display: none;
}

.coach-banner summary::after {
  content: "▾";
  font-size: 0.9rem;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.coach-banner[open] summary::after {
  transform: rotate(180deg);
}

.coach-banner-compact .coach-form {
  margin-top: 8px;
}

.coach-form {
  display: grid;
  gap: var(--section-gap);
}

.coach-consent {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coach-consent input {
  width: auto;
}

.coach-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.coach-actions .btn {
  width: auto;
  flex: 1 1 var(--btn-min-width);
}

.coach-month {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.coach-month input {
  max-width: 220px;
}

.filters-panel {
  margin-top: 14px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.filters-accordion {
  margin-top: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.015);
  padding: 10px 12px;
}

.filters-accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.filters-accordion summary::-webkit-details-marker {
  display: none;
}

.filters-accordion summary::after {
  content: "▾";
  font-size: 0.9rem;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.filters-accordion[open] summary::after {
  transform: rotate(180deg);
}

.filters-accordion .filters-panel {
  margin-top: 10px;
}

.filters-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--section-gap);
  align-items: end;
  justify-content: space-between;
}

.filters-form label {
  max-width: none;
}

.filters-form label {
  margin: 0;
}

.filters-form input,
.filters-form select {
  width: 100%;
}

.filters-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.filters-actions .btn {
  margin-top: 0;
  width: auto;
  min-width: var(--btn-min-width);
  flex: 1 1 var(--btn-min-width);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  font-size: 0.72rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.admin-actions .btn,
.admin-actions .detail-link {
  flex: 1 1 var(--btn-min-width);
}

.history-table .admin-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.filters-actions .btn.secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.32);
}

.filters-actions .btn.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}

.active-filters {
  margin-top: 8px;
  display: grid;
  gap: 8px;
  align-items: center;
}

.active-filters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.active-filters .pill {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.1);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.active-filters .detail-link {
  justify-self: start;
}

.stat-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(10px, 2vw, 16px);
  margin: clamp(14px, 2.4vw, 26px) 0;
}

.stat-highlights-tight {
  margin: 14px 0 16px;
}

.gameboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.game-card {
  padding: var(--card-pad-sm);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.game-card h2 {
  margin: 0 0 6px;
  font-size: 16px;
}

.game-value {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
}

.goal-card,
.challenge-card {
  margin-bottom: 18px;
  padding: var(--card-pad-sm);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.goal-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.goal-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.goal-bar-fill {
  height: 100%;
  background: rgba(0, 163, 255, 0.7);
}

.goal-form {
  display: flex;
  gap: var(--section-gap);
  align-items: end;
  flex-wrap: wrap;
}

.goal-form input {
  max-width: 140px;
}

.challenge-done {
  color: #8ee3ff;
  font-weight: 600;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.badge-card {
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 6px;
}

.badge-card.earned {
  border-style: solid;
  border-color: rgba(0, 163, 255, 0.5);
  background: rgba(0, 119, 217, 0.08);
}

.code-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 163, 255, 0.25);
  background: rgba(0, 163, 255, 0.08);
  margin: 12px 0 16px;
}

.code-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.code-display .label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.code-value {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.code-value.is-hidden {
  letter-spacing: 0.2em;
}

.code-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 163, 255, 0.4);
  background: rgba(0, 163, 255, 0.12);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-users {
  display: grid;
  gap: 16px;
}

.admin-user-list {
  display: grid;
  gap: 14px;
}

.admin-user-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(12, 18, 28, 0.9), rgba(8, 12, 20, 0.7));
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.admin-user-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.35);
}

.admin-user-summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: calc(var(--card-pad-sm) - 2px) var(--card-pad-sm);
}

.admin-user-summary::-webkit-details-marker {
  display: none;
}

.admin-user-main {
  display: grid;
  gap: 6px;
}

.admin-user-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.role-pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.status-pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 163, 255, 0.35);
  background: rgba(0, 163, 255, 0.12);
}

.status-pill.online {
  border-color: rgba(0, 163, 255, 0.6);
  background: rgba(0, 163, 255, 0.2);
}

.status-pill.offline {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.status-pill.banned,
.status-pill.email-banned {
  border-color: rgba(255, 123, 123, 0.6);
  background: rgba(255, 123, 123, 0.18);
}

.status-pill.lifetime {
  border-color: rgba(255, 215, 64, 0.65);
  background: rgba(255, 215, 64, 0.2);
  color: #ffe08a;
}

.nav-lifetime-badge {
  min-height: var(--btn-height);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.admin-user-details {
  padding: 0 var(--card-pad-sm) var(--card-pad-sm);
  display: grid;
  gap: 12px;
}

.admin-user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.admin-user-grid .label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.admin-user-card[open] .accordion-icon {
  transform: rotate(180deg);
}

.stat-highlights article {
  padding: var(--card-pad-sm);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.stat-highlights strong {
  display: block;
  font-size: 30px;
}

.day-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.day-breakdown .pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 163, 255, 0.2);
  font-size: 0.75rem;
}

.history-empty {
  margin-top: 14px;
  padding: 18px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 10px;
  justify-items: start;
}

.chip {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
}

.chip .preview {
  opacity: 0.85;
  color: var(--muted);
}

.microcopy {
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.8;
}

.history-card header .description {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #e0e7fb;
  line-height: 1.5;
}

.workout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}

.workout-card {
  padding: 0;
  border-radius: 16px;
  background: rgba(0, 163, 255, 0.05);
  border: 1px solid rgba(0, 163, 255, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.workout-card,
.athlete-card,
.admin-user-card,
.exercise-detail-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.workout-card:hover,
.athlete-card:hover,
.admin-user-card:hover,
.exercise-detail-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.workout-accordion {
  padding: 0;
  overflow: hidden;
}

.workout-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.workout-summary::-webkit-details-marker {
  display: none;
}

.workout-summary-main {
  display: grid;
  gap: 8px;
}

.accordion-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 163, 255, 0.14);
  border: 1px solid rgba(0, 163, 255, 0.35);
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.workout-accordion[open] .accordion-icon {
  transform: rotate(180deg);
}

.athlete-accordion[open] .accordion-icon {
  transform: rotate(180deg);
}

.workout-details {
  padding: 0 16px 14px;
  display: grid;
  gap: 10px;
}

.workout-card .workout-date {
  font-size: 1.1rem;
  font-weight: 700;
}

.workout-card .workout-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.workout-actions {
  margin-top: 2px;
}

.workout-actions .btn-inline {
  width: 100%;
}

.workout-actions .detail-link {
  min-width: 0;
  margin-top: 0;
}

.workout-feed-head {
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.workout-feed-head h2 {
  margin: 0;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.weekly-workouts {
  display: grid;
  gap: 12px;
}

.week-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 2px;
}

.week-controls .btn-inline {
  min-width: 130px;
  margin-top: 0;
}

.session-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.week-group {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.week-group-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
}

.week-group-summary::-webkit-details-marker {
  display: none;
}

.week-group-head {
  display: grid;
  gap: 3px;
}

.week-group-head strong {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.week-group-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.week-group-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.12);
  font-size: 0.76rem;
  transition: transform 0.2s ease;
}

.week-group[open] .week-group-icon {
  transform: rotate(180deg);
}

.week-group-body {
  padding: 0 12px 12px;
}

.week-group .workout-grid {
  margin-top: 0;
}

.workout-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.recency-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #91f4ff;
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.14);
}

.workout-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.metric-pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.energy-pill.is-low {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fecaca;
}

.energy-pill.is-mid {
  background: rgba(250, 204, 21, 0.16);
  border-color: rgba(250, 204, 21, 0.42);
  color: #fef08a;
}

.energy-pill.is-high {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.45);
  color: #bbf7d0;
}

.workout-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workout-status-row .status-pill.feedback {
  font-size: 0.68rem;
  letter-spacing: 0.03em;
}

.workout-status-row .status-pill.feedback.is-up {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.2);
  color: #a7f3d0;
}

.workout-status-row .status-pill.feedback.is-down {
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(248, 113, 113, 0.2);
  color: #fecaca;
}

.workout-status-row .status-pill.feedback.is-empty {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: #d8def0;
}

.workout-note-preview {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #dce7fb;
  font-size: 0.84rem;
  line-height: 1.45;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.detail-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.detail-title {
  font-size: 26px;
  text-transform: uppercase;
}

.detail-meta {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--muted);
}

.notes-section h2,
.exercises-detail h2 {
  margin: 0 0 6px;
  font-size: 20px;
  text-transform: uppercase;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.feedback-section {
  margin-top: 24px;
}

.feedback-list {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.feedback-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.feedback-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
}

.feedback-rating {
  font-size: 1.1rem;
}

.feedback-note {
  margin: 8px 0 0;
}

.feedback-form {
  display: grid;
  gap: 12px;
}

.feedback-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.feedback-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
}

.feedback-pill input {
  margin: 0;
}

.feedback-actions {
  display: flex;
  justify-content: flex-end;
}

.exercises-detail header p {
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

.exercise-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.exercise-detail-card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  min-height: 120px;
}

.exercise-detail-card .ex-name {
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.exercise-detail-card .ex-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
}

.history-table th,
.history-table td {
  padding: 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}

.history-table thead {
  background: rgba(255, 255, 255, 0.03);
}

.list-date {
  font-weight: 700;
}

.day-pill,
.energy-pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.energy-pill {
  background: rgba(0, 163, 255, 0.18);
}

.detail-link {
  font-size: 0.72rem;
}

.action-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.delete-inline button,
.delete-action button {
  font-size: 0.7rem;
}

.delete-inline button:hover,
.delete-action button:hover {
  filter: brightness(1.03);
}

#scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #03060c;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

#scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  :root {
    --btn-min-width: 0;
    --btn-height: 40px;
    --btn-padding-y: 8px;
    --btn-padding-x: 14px;
  }

  body {
    background: #03060c;
  }

  .container {
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  }

  body.timer-dock-visible .container {
    padding-bottom: calc(204px + env(safe-area-inset-bottom, 0px));
  }

  .form-section {
    border-radius: 14px;
    padding: 10px;
  }

  .form-section-title {
    margin-bottom: 8px;
    font-size: 0.66rem;
  }

  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
  select,
  textarea {
    min-height: 48px;
    font-size: 16px;
    border-radius: 15px;
  }

  .topbar {
    padding: 12px 14px;
    border-bottom-color: rgba(255, 255, 255, 0.06);
  }

  .topbar-inner {
    gap: 10px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    position: relative;
    z-index: 41;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .brand-text {
  }

  .brand-text strong {
    font-size: 0.88rem;
  }

  .brand-text span {
    font-size: 0.64rem;
  }

  .nav {
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    padding: calc(78px + env(safe-area-inset-top, 0px)) 16px calc(18px + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    border: 1px solid rgba(34, 211, 238, 0.35);
    background: linear-gradient(160deg, rgba(10, 18, 28, 0.98), rgba(6, 12, 20, 0.94));
    box-shadow: 0 22px 38px rgba(0, 0, 0, 0.55);
    max-height: 100dvh;
    opacity: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    position: fixed;
    inset: 0;
    z-index: 40;
    -webkit-overflow-scrolling: touch;
  }

  .nav > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(3, 6, 12, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    z-index: 38;
    backdrop-filter: none;
  }

  .nav-scrim.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  body.nav-open .topbar {
    backdrop-filter: none;
  }

  .nav a,
  .nav .user-pill,
  .nav .status-pill,
  .nav .nav-lifetime-badge {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.75rem;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(10, 16, 26, 0.7);
    white-space: normal;
  }

  .mobile-dock {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 28;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 7px;
    border-radius: 16px;
    border: 1px solid rgba(34, 211, 238, 0.28);
    background: linear-gradient(160deg, rgba(8, 14, 24, 0.92), rgba(4, 10, 18, 0.9));
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .mobile-dock a {
    min-height: 48px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #c7d4e9;
    text-decoration: none;
    display: grid;
    place-items: center;
    gap: 1px;
    font-size: 0.61rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
  }

  .mobile-dock a:hover,
  .mobile-dock a:focus-visible {
    color: #ebf8ff;
    border-color: rgba(34, 211, 238, 0.45);
    background: rgba(34, 211, 238, 0.14);
    transform: translateY(-1px);
    outline: none;
  }

  .mobile-dock a.is-active {
    color: #f4fbff;
    border-color: rgba(34, 211, 238, 0.55);
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.24), rgba(37, 99, 235, 0.22));
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.2);
  }

  .dock-icon {
    font-size: 0.88rem;
    line-height: 1;
    font-weight: 700;
  }

  .dock-label {
    line-height: 1;
  }

  .site-footer {
    padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
  }

  .user-pill {
    max-width: 100%;
  }

  .filters-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .filters-actions .btn {
    flex: 1 1 0;
    min-width: 0;
  }

  .filters-form {
    grid-template-columns: 1fr;
  }

  .workout-actions .btn-inline,
  .workout-actions .detail-link {
    width: 100%;
    max-width: 100%;
  }

  .workout-summary {
    padding: 16px 16px;
  }

  .workout-feed-head {
    align-items: flex-start;
  }

  .workout-feed-head .muted {
    font-size: 0.72rem;
  }

  .week-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .week-controls .btn-inline {
    width: 100%;
  }

  .workout-title-row {
    gap: 6px;
  }

  .recency-pill {
    font-size: 0.64rem;
  }

  .workout-kpis {
    gap: 6px;
  }

  .metric-pill,
  .day-pill,
  .energy-pill {
    font-size: 0.64rem;
  }

  .workout-details {
    padding: 0 16px 16px;
  }

  .athlete-summary {
    padding: 14px 16px;
  }

  .athlete-details {
    padding: 0 16px 14px;
  }

  .athlete-workouts li {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-user-summary {
    grid-template-columns: 1fr auto;
    padding: 14px 16px;
  }

  .admin-user-tags {
    justify-content: flex-start;
  }

  .admin-user-details {
    padding: 0 16px 14px;
  }

  .code-display {
    flex-direction: column;
    align-items: flex-start;
  }

  .code-actions {
    justify-content: flex-start;
  }

  .goal-form {
    flex-direction: column;
    align-items: stretch;
  }

  .goal-form input,
  .goal-form .btn {
    width: 100%;
    max-width: 100%;
  }

  .coach-actions {
    justify-content: stretch;
  }

  .coach-actions .btn {
    width: 100%;
  }

  .coach-month {
    flex-direction: column;
    align-items: stretch;
  }

  .coach-month input,
  .coach-month .btn {
    width: 100%;
    max-width: 100%;
  }

  .detail-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .detail-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .detail-actions .btn-inline,
  .detail-actions .detail-link,
  .detail-actions .delete-action button {
    width: 100%;
    max-width: 100%;
  }

  .feedback-options {
    flex-direction: column;
    align-items: stretch;
  }

  .feedback-actions {
    justify-content: stretch;
  }

  .feedback-actions .btn {
    width: 100%;
  }

  .container {
    padding: 20px 14px calc(124px + env(safe-area-inset-bottom, 0px));
  }

  .site-footer {
    padding: 18px 14px calc(18px + env(safe-area-inset-bottom, 0px));
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    align-items: flex-start;
    font-size: 0.78rem;
  }

  .trial-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .trial-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .card,
  .hero-card {
    padding: 20px 18px;
    border-radius: 20px;
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: none;
  }

  .site-logo {
    width: 78px;
    margin-bottom: 10px;
  }

  .hero-card h1 {
    font-size: 24px;
  }

  .hero-desktop {
    display: none;
  }

  .hero-mobile {
    display: block;
  }

  .hero-mobile .hero-label {
    font-size: 0.72rem;
    margin-bottom: 6px;
  }

  .hero-mobile h1 {
    font-size: 26px;
    margin: 4px 0 10px;
    text-transform: none;
  }

  .hero-mobile .hero-subtitle {
    margin-bottom: 12px;
  }

  .hero-actions-mobile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-actions-mobile a {
    width: 100%;
  }

  .hero-label,
  .hero-subtitle,
  .muted,
  label span {
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .page-toolbar {
    align-items: stretch;
  }

  .page-toolbar > * {
    width: 100%;
  }

  .page-grid-split {
    grid-template-columns: 1fr;
  }

  .hero-actions a {
    text-align: center;
    padding: var(--btn-padding-y) var(--btn-padding-x);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .timer-card {
    padding: 16px;
  }

  .timer-dock {
    left: 10px;
    right: 10px;
    width: auto;
    bottom: calc(98px + env(safe-area-inset-bottom, 0px));
    padding: 10px 12px;
    border-radius: 18px;
    transform: translateY(14px);
    background:
      linear-gradient(160deg, rgba(8, 14, 24, 0.97), rgba(4, 10, 18, 0.94));
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.4);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "meta time"
      "actions actions";
    gap: 8px 12px;
    align-items: center;
  }

  .timer-dock-head {
    grid-area: meta;
    margin-bottom: 6px;
  }

  .timer-dock-meta {
    align-items: center;
  }

  .timer-dock-display {
    grid-area: time;
    margin-bottom: 0;
    min-width: 92px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 1.6rem;
    text-align: right;
  }

  .timer-dock-actions {
    grid-area: actions;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
  }

  .timer-dock-actions .btn {
    flex: 1 1 0;
    min-height: 40px;
    padding: 10px 14px;
    font-size: 0.7rem;
  }

  .timer-dock-reset {
    flex: 0 0 auto;
    min-width: 84px;
  }

  .timer-dock-expand {
    flex: 0 0 auto;
    min-width: 96px;
    padding: 10px 12px;
    white-space: nowrap;
  }

  .timer-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .timer-display {
  }

  .timer-inputs {
    grid-template-columns: 1fr 1fr;
  }

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

  input,
  select,
  textarea {
    padding: 10px 12px;
    font-size: 16px;
  }

  .exercise-row {
    padding: 14px;
    border-radius: 14px;
    border-color: rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.015);
    box-shadow: none;
  }

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

  .form-submit-sticky {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .accordion-header {
    font-size: 0.82rem;
    margin-bottom: 10px;
    align-items: flex-start;
    gap: 10px;
  }

  .accordion-title-main {
    white-space: normal;
  }

  .accordion-header-meta {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }

  .exercise-snapshot {
    gap: 6px;
    margin-bottom: 12px;
  }

  .exercise-section-hint {
    max-width: 132px;
    text-align: right;
  }

  .history-tabs {
    width: 100%;
    justify-content: stretch;
  }

  .history-tab {
    flex: 1 1 0;
    text-align: center;
  }

  .session-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn,
  .detail-link,
  .delete-inline button,
  .delete-action button {
    box-shadow: none;
    border-color: transparent;
  }

  #scroll-top {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 414px) {
  .brand-text span {
  }

  .hero-card h1 {
  }

  label span {
  }
}

@media (max-width: 359px) {
  .container {
    padding: 16px 10px 32px;
  }

  .card,
  .hero-card {
    padding: 16px 14px;
    border-radius: 16px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .brand-text strong {
    font-size: 0.84rem;
  }

  .brand-text span {
    font-size: 0.6rem;
  }

  .nav a,
  .nav .user-pill {
    font-size: 0.66rem;
  }

  .btn,
  .detail-link,
  .delete-inline button,
  .delete-action button {
    padding: 8px 12px;
  }

  .site-footer {
    padding: 14px 10px calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .site-footer-inner {
    gap: 12px;
    font-size: 0.74rem;
  }

  .footer-brand {
    gap: 10px;
  }

  .footer-brand .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    padding: 6px;
  }

  .footer-brand-text strong {
    font-size: 0.84rem;
  }

  .footer-links {
    gap: 6px;
  }

  .footer-link {
    padding: 5px 10px;
    font-size: 0.72rem;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  :root {
    --container-max: 1040px;
  }

  .filters-form {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }

  .topbar-inner {
    gap: 12px;
  }

  .nav {
    gap: 8px;
  }

  .nav a {
    padding: 10px 14px;
    font-size: 0.72rem;
  }
}

@media (min-width: 1025px) and (max-width: 1365px) {
  :root {
    --container-max: 1120px;
  }
}

@media (min-width: 1366px) and (max-width: 1600px) {
  :root {
    --container-max: var(--container-wide);
  }
}

@media (min-width: 1601px) and (max-width: 1920px) {
  :root {
    --container-max: 1380px;
  }
}

@media (min-width: 1921px) and (max-width: 3840px) {
  :root {
    --container-max: var(--container-4k);
  }

  .topbar-inner,
  .container {
    max-width: var(--container-max);
  }
}

@media (min-width: 3841px) {
  :root {
    --container-max: 1720px;
  }

  .topbar-inner,
  .container {
    max-width: var(--container-max);
  }
}

@media (max-width: 430px) {
  .hero-actions-mobile a,
  .btn,
  .detail-link {
    width: 100%;
    max-width: 100%;
  }

  .hero-mobile h1 {
    font-size: 24px;
  }
}

@media (min-width: 360px) and (max-width: 414px) {
  .container {
    padding: 18px 12px 34px;
  }
}

@media (min-width: 415px) and (max-width: 480px) {
  .container {
    padding: 20px 16px 38px;
  }
}

@media (min-width: 600px) and (max-width: 767px) {
  .container {
    padding: 24px 20px 46px;
  }

  .hero-actions-mobile {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1025px) and (max-width: 1365px) {
  .container {
    padding-bottom: clamp(56px, 7vw, 90px);
  }
}

/* Global letter-spacing reset */
body {
}

@media (min-width: 721px) {
  .workout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .workout-actions .btn-inline {
    flex: 0 0 auto;
    min-width: 120px;
    width: auto;
  }
}

@media (min-width: 1025px) {
  .workout-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

.planner-readiness-grid,
.coach-insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.insight-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.insight-card h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.pdf-import-card,
.pdf-preview-card {
  border-color: rgba(34, 211, 238, 0.2);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.08), transparent 45%),
    rgba(255, 255, 255, 0.03);
}

.pdf-import-disclosure {
  margin: 0;
}

.pdf-import-disclosure-body {
  display: grid;
  gap: 14px;
}

.preview-session-card {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.015));
}

.preview-exercise-card {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(165deg, rgba(10, 15, 22, 0.92), rgba(7, 11, 18, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.insight-score {
  margin: 4px 0 8px;
  font-weight: 700;
}

.readiness-high {
  color: #7cf6b4;
}

.readiness-mid {
  color: #7dd8ff;
}

.readiness-low {
  color: #ffd47a;
}

.readiness-recovery {
  color: #ff9f9f;
}

.readiness-na {
  color: #b8c1d4;
}

.plan-target-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-grid,
.library-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.plan-entry-card,
.library-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.plan-entry-head,
.library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.plan-entry-head strong,
.library-head strong {
  line-height: 1.3;
}

.simple-list {
  margin: 12px 0 0;
  padding-left: 18px;
}

.divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 18px 0;
}
