:root {
  --ink: #151511;
  --ink-2: #252622;
  --paper: #f4f1e7;
  --paper-2: #ebe7da;
  --white: #fffdf5;
  --acid: #c9ff43;
  --coral: #ff6846;
  --blue: #4e6cff;
  --lilac: #d9ceff;
  --muted: #6c6b63;
  --line: rgba(21, 21, 17, 0.17);
  --shadow: 0 16px 50px rgba(25, 24, 17, 0.09);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --display: "Arial Narrow", "Avenir Next Condensed", "Helvetica Neue", sans-serif;
  --body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 9% 9%, rgba(201, 255, 67, 0.21), transparent 21rem),
    linear-gradient(rgba(21, 21, 17, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 17, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 28px 28px, 28px 28px, auto;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:not(:disabled),
a,
label.file-button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--acid);
  color: var(--ink);
  font-weight: 900;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  width: min(100%, 1480px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 64px);
}

.topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
}

.brand-mark svg {
  width: 39px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-family: var(--display);
  font-size: 1.03rem;
  font-stretch: condensed;
  font-weight: 950;
  letter-spacing: 0.055em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 245, 0.66);
}

.nav-button {
  padding: 9px 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  transition: 0.2s ease;
}

.nav-button:hover,
.nav-button.is-active {
  background: var(--ink);
  color: var(--white);
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
}

.live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 104, 70, 0.16);
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}

.icon-button:hover {
  background: var(--white);
}

.icon-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

main {
  min-height: calc(100vh - 180px);
}

.view {
  animation: view-in 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.paper-card,
.ink-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.paper-card {
  border: 1px solid rgba(21, 21, 17, 0.12);
  background: var(--white);
}

.ink-card {
  background: var(--ink);
  color: var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 0.72fr);
  gap: 18px;
  padding-top: clamp(22px, 4vw, 52px);
}

.hero-card {
  position: relative;
  min-height: 590px;
  padding: clamp(24px, 4vw, 52px);
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 104, 70, 0.11), transparent 18rem),
    var(--white);
}

.hero-topline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow,
.section-kicker {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 4px rgba(201, 255, 67, 0.25);
}

.route-line {
  color: var(--muted);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(660px, 90%);
  margin-top: clamp(45px, 7vw, 90px);
}

.scribble {
  display: inline-block;
  margin: 0 0 13px;
  padding: 5px 10px;
  background: var(--acid);
  font-family: "Comic Sans MS", cursive;
  font-size: 0.84rem;
  font-weight: 700;
  transform: rotate(-2deg);
}

.hero-copy h1,
.page-hero h1,
.page-title-row h1 {
  margin: 0;
  font-family: var(--display);
  font-stretch: condensed;
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 0.88;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-size: clamp(3.25rem, 7.4vw, 7.6rem);
}

h1 em,
h2 em {
  color: var(--coral);
  font-style: normal;
}

.hero-deck {
  max-width: 540px;
  margin: 22px 0 0;
  color: #575750;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 550;
  line-height: 1.55;
}

.athlete-chips {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin-top: 34px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 245, 0.9);
  backdrop-filter: blur(12px);
}

.athlete-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.athlete-chip span:last-child {
  display: flex;
  flex-direction: column;
}

.athlete-chip small {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.athlete-chip strong {
  max-width: 110px;
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar {
  display: inline-grid;
  flex: 0 0 auto;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 950;
}

.avatar-rally {
  background: var(--coral);
}

.avatar-trail {
  background: var(--blue);
  color: var(--white);
}

.duo-link {
  font-size: 1.1rem;
  font-weight: 900;
}

.hero-landscape {
  position: absolute;
  right: -20px;
  bottom: -4px;
  z-index: 1;
  width: min(78%, 760px);
}

.countdown-card {
  position: relative;
  display: flex;
  min-height: 590px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 3vw, 44px);
  background:
    radial-gradient(circle at 110% -10%, rgba(78, 108, 255, 0.82), transparent 46%),
    radial-gradient(circle at 10% 100%, rgba(201, 255, 67, 0.2), transparent 45%),
    var(--ink);
}

.countdown-card::after {
  position: absolute;
  right: -20%;
  bottom: 18%;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(255,255,255,0.025), 0 0 0 76px rgba(255,255,255,0.018);
  content: "";
}

.card-stamp {
  position: absolute;
  top: 26px;
  right: 26px;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  color: rgba(255,255,255,0.7);
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.countdown-card > p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255,255,255,0.64);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.countdown-number {
  position: relative;
  z-index: 1;
  margin-top: 5px;
  font-family: var(--display);
  font-size: clamp(7.4rem, 16vw, 13rem);
  font-stretch: condensed;
  font-weight: 950;
  letter-spacing: -0.09em;
  line-height: 0.78;
}

.countdown-unit {
  position: relative;
  z-index: 1;
  width: max-content;
  margin: -2px 0 32px 10px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--acid);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.countdown-date {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 23px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.countdown-date span {
  font-family: var(--display);
  font-size: 1.27rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.countdown-date small {
  color: rgba(255,255,255,0.56);
}

.countdown-progress {
  position: relative;
  z-index: 1;
  height: 6px;
  margin-top: 28px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.countdown-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--acid);
  transition: width 0.5s ease;
}

.countdown-meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: rgba(255,255,255,0.53);
  font-size: 0.64rem;
  text-transform: uppercase;
}

.countdown-meta strong {
  color: var(--white);
}

.section-block {
  margin-top: clamp(48px, 7vw, 88px);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading.compact {
  align-items: flex-start;
  margin-bottom: 18px;
}

.section-heading h2,
.dashboard-grid h2,
.progress-grid h2,
.squad-grid h2 {
  margin: 6px 0 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-stretch: condensed;
  font-weight: 950;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-transform: uppercase;
}

.section-kicker {
  color: var(--muted);
}

.section-kicker.light {
  color: rgba(255,255,255,0.6);
}

.text-button,
.shuffle-button,
.site-footer button,
.danger-link,
.welcome-customize {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
}

.text-button span {
  margin-left: 6px;
  color: var(--coral);
}

.mission-card {
  display: grid;
  grid-template-columns: 105px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-left: 8px solid var(--coral);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(21, 21, 17, 0.05);
}

.mission-date {
  display: grid;
  min-height: 90px;
  place-content: center;
  border-right: 1px solid var(--line);
  text-align: center;
}

.mission-date span {
  font-family: var(--display);
  font-size: 3.1rem;
  font-weight: 950;
  letter-spacing: -0.07em;
  line-height: 0.8;
}

.mission-date small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.17em;
}

.session-tags {
  display: flex;
  gap: 7px;
}

.session-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.session-tags .soft-tag {
  background: var(--paper-2);
  color: var(--ink);
}

.mission-main h3 {
  margin: 10px 0 5px;
  font-family: var(--display);
  font-size: 1.65rem;
  font-stretch: condensed;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.mission-main p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.mission-stats {
  display: flex;
  gap: 14px;
  margin-top: 13px;
  font-size: 0.7rem;
  font-weight: 700;
}

.round-cta {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--acid);
  font-size: 1.5rem;
  transition: transform 0.2s ease;
}

.round-cta:hover {
  transform: translateX(3px) rotate(-5deg);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.75fr;
  gap: 18px;
}

.dashboard-grid > article {
  min-height: 335px;
  padding: 28px;
}

.week-badge {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--lilac);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.week-track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  margin-top: 28px;
}

.day-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.day-dot span:first-child {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.07em;
}

.day-dot i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.day-dot.has-session i {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.day-dot.is-done i {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--ink);
}

.day-dot small {
  min-height: 12px;
  color: var(--muted);
  font-size: 0.48rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.week-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.week-footer > div:first-child {
  display: flex;
  flex-direction: column;
}

.week-footer strong {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 900;
}

.week-footer span:last-child {
  color: var(--muted);
  font-size: 0.68rem;
}

.mini-avatars {
  display: flex;
}

.mini-avatars .avatar + .avatar {
  margin-left: -8px;
}

.pulse-card {
  background: var(--acid);
}

.pulse-card p {
  color: rgba(21,21,17,0.7);
  font-size: 0.82rem;
  line-height: 1.55;
}

.mood-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 22px;
}

.mood-grid button {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  padding: 12px 5px 10px;
  border: 1px solid rgba(21,21,17,0.24);
  border-radius: 12px;
  background: rgba(255,255,255,0.34);
  font-size: 0.6rem;
  font-weight: 800;
}

.mood-grid button span {
  font-size: 1.4rem;
}

.mood-grid button:hover,
.mood-grid button.is-active {
  background: var(--white);
  transform: translateY(-2px);
}

.pulse-card .mood-response {
  min-height: 38px;
  margin: 17px 0 0;
  font-size: 0.7rem;
  font-weight: 750;
}

.mantra-card {
  position: relative;
  background: var(--lilac);
}

.mantra-card blockquote {
  position: relative;
  z-index: 1;
  margin: 34px 0 20px;
  font-family: Georgia, serif;
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.mantra-scribble {
  position: absolute;
  right: -11px;
  bottom: 12px;
  color: rgba(78, 108, 255, 0.16);
  font-family: var(--display);
  font-size: 4.5rem;
  font-weight: 950;
  letter-spacing: -0.08em;
  transform: rotate(-9deg);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 110px;
  margin-top: 80px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

.mobile-nav {
  display: none;
}

/* Plan */
.page-hero {
  position: relative;
  display: flex;
  min-height: 315px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: 28px;
  overflow: hidden;
  padding: clamp(34px, 6vw, 70px);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--white);
}

.page-hero::after {
  position: absolute;
  top: -65%;
  right: -8%;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgba(255,255,255,0.025), 0 0 0 100px rgba(255,255,255,0.018);
  content: "";
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin-top: 14px;
  font-size: clamp(3.2rem, 6.5vw, 6.5rem);
}

.page-hero p {
  max-width: 620px;
  margin: 19px 0 0;
  color: rgba(255,255,255,0.61);
  font-size: 1rem;
  line-height: 1.55;
}

.load-card {
  display: flex;
  min-width: 190px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 22px;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
}

.load-card span {
  color: rgba(255,255,255,0.56);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.load-card strong {
  margin: 4px 0 -3px;
  font-family: var(--display);
  font-size: 4rem;
  font-weight: 950;
  letter-spacing: -0.07em;
  line-height: 1;
}

.load-card small {
  color: rgba(255,255,255,0.56);
}

.load-card b {
  color: var(--acid);
  font-weight: 750;
}

.week-picker-wrap {
  position: sticky;
  z-index: 30;
  top: 82px;
  margin: 18px -4px 0;
  padding: 8px 4px;
  overflow-x: auto;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  scrollbar-width: none;
  backdrop-filter: blur(14px);
}

.week-picker-wrap::-webkit-scrollbar {
  display: none;
}

.week-picker {
  display: grid;
  min-width: 650px;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
}

.week-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.week-tab strong {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.week-tab.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.week-tab.is-current::after {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.plan-phase {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(240px, 1fr) minmax(220px, 0.75fr);
  align-items: center;
  gap: 30px;
  margin-top: 26px;
  padding: 26px 30px;
  box-shadow: none;
}

.plan-phase > div:first-child {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phase-number {
  color: var(--coral);
  font-family: var(--display);
  font-size: 3.7rem;
  font-weight: 950;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.plan-phase h2 {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.plan-phase > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.phase-goal {
  padding: 14px 16px;
  border-left: 3px solid var(--acid);
  background: var(--paper);
}

.phase-goal span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.phase-goal strong {
  font-size: 0.76rem;
  line-height: 1.4;
}

.session-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 24px;
}

.session-card {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 155px 175px 52px;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.session-card:hover {
  border-color: var(--ink);
  box-shadow: 0 8px 25px rgba(21, 21, 17, 0.06);
  transform: translateY(-2px);
}

.session-card.is-complete {
  background: color-mix(in srgb, var(--acid) 12%, var(--white));
}

.session-date {
  display: flex;
  flex-direction: column;
  padding-right: 16px;
  border-right: 1px solid var(--line);
}

.session-date strong {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
}

.session-date small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
}

.session-copy {
  min-width: 0;
}

.session-copy span {
  color: var(--coral);
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.session-copy h3 {
  margin: 5px 0 4px;
  overflow: hidden;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.session-copy p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-dose {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dose-line {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 750;
}

.dose-meter {
  display: flex;
  gap: 3px;
}

.dose-meter i {
  width: 14px;
  height: 5px;
  border-radius: 999px;
  background: var(--paper-2);
}

.dose-meter i.on {
  background: var(--coral);
}

.athlete-checks {
  display: flex;
  gap: 7px;
}

.athlete-check {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 6px 8px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 0.58rem;
  font-weight: 800;
}

.athlete-check .avatar {
  width: 24px;
  height: 24px;
  border-width: 1px;
  font-size: 0.62rem;
}

.athlete-check.is-done {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.athlete-check.is-done::after {
  content: "✓";
}

.session-open {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 1rem;
}

.session-open:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.coach-note {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 22px 26px;
  border: 1px dashed rgba(21,21,17,0.35);
  border-radius: 18px;
}

.coach-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--acid);
  font-family: Georgia, serif;
  font-size: 1.2rem;
  font-weight: 900;
}

.coach-note strong {
  font-size: 0.72rem;
  text-transform: uppercase;
}

.coach-note p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

/* Progress */
.page-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(55px, 8vw, 100px) 0 36px;
}

.page-title-row h1 {
  margin-top: 14px;
  font-size: clamp(3.2rem, 6vw, 6rem);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
}

.primary-button {
  background: var(--ink);
  color: var(--white);
}

.primary-button:hover {
  background: var(--blue);
}

.primary-button span {
  color: var(--acid);
  font-size: 1.1rem;
}

.secondary-button {
  background: transparent;
}

.secondary-button:hover {
  background: var(--paper-2);
}

.full-button {
  width: 100%;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.stat-strip article {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px;
}

.stat-strip article + article {
  border-left: 1px solid var(--line);
}

.stat-icon {
  display: grid;
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 12px;
  font-weight: 950;
}

.stat-icon.acid { background: var(--acid); }
.stat-icon.coral { background: var(--coral); }
.stat-icon.blue { background: var(--blue); color: white; }
.stat-icon.lilac { background: var(--lilac); }

.stat-strip article div {
  display: flex;
  flex-direction: column;
}

.stat-strip strong {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-strip small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.62rem;
}

.progress-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.progress-grid > article {
  padding: clamp(24px, 3vw, 38px);
}

.card-intro {
  max-width: 570px;
  margin: -4px 0 28px;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.5;
}

.athlete-toggle {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.athlete-toggle button {
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
}

.athlete-toggle button.is-active {
  background: var(--ink);
  color: var(--white);
}

.station-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 18px;
}

.station-row {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.station-row button {
  display: contents;
}

.station-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: var(--paper-2);
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 900;
}

.station-main {
  min-width: 0;
}

.station-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.67rem;
  font-weight: 800;
}

.station-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--paper-2);
}

.station-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 0.35s ease;
}

.station-score {
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 900;
  text-align: right;
}

.legend {
  display: flex;
  gap: 15px;
  margin: 25px 0 19px;
  color: var(--muted);
  font-size: 0.59rem;
  font-weight: 750;
}

.legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 3px;
  border-radius: 2px;
  vertical-align: -1px;
}

.legend-empty { background: var(--paper-2); }
.legend-half { background: var(--lilac); }
.legend-full { background: var(--acid); }

.heatmap {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
}

.heat-week-label {
  grid-column: span 7;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.55rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.heat-cell {
  aspect-ratio: 1;
  border-radius: 7px;
  background: var(--paper-2);
}

.heat-cell.one { background: var(--lilac); }
.heat-cell.two { background: var(--acid); }
.heat-cell.rest { background: transparent; border: 1px dashed rgba(21,21,17,0.12); }
.heat-cell.today { box-shadow: inset 0 0 0 2px var(--coral); }

.consistency-footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.consistency-footer strong {
  font-family: var(--display);
  font-size: 1.2rem;
  text-transform: uppercase;
}

.consistency-footer span {
  color: var(--muted);
  font-size: 0.67rem;
}

.autosave-note,
.editable-hint {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
}

.benchmark-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.benchmark-athlete {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.benchmark-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 23px;
}

.benchmark-head div {
  display: flex;
  flex-direction: column;
}

.benchmark-head strong {
  font-family: var(--display);
  font-size: 1.18rem;
  text-transform: uppercase;
}

.benchmark-head small {
  color: var(--muted);
  font-size: 0.63rem;
}

.benchmark-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.benchmark-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.benchmark-field span {
  color: var(--muted);
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.benchmark-field input {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 850;
}

.benchmark-field input:focus {
  outline: 0;
}

/* Squad */
.squad-hero {
  background:
    linear-gradient(115deg, rgba(78,108,255,0.95), rgba(78,108,255,0.45)),
    var(--ink);
}

.duo-emblem {
  display: flex;
  min-width: 188px;
  min-height: 150px;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  border: 2px solid var(--acid);
  border-radius: 50% 50% 45% 55%;
  transform: rotate(-5deg);
}

.duo-emblem span {
  color: var(--acid);
  font-family: var(--display);
  font-size: 5.2rem;
  font-weight: 950;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.duo-emblem small {
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1.2;
}

.superpower-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.athlete-profile {
  min-height: 420px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
}

.rally-profile {
  background: var(--coral);
}

.trail-profile {
  background: var(--blue);
  color: var(--white);
}

.profile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.avatar.large {
  width: 62px;
  height: 62px;
  font-size: 1.5rem;
}

.profile-number {
  font-family: var(--display);
  font-size: 3.6rem;
  font-weight: 950;
  letter-spacing: -0.07em;
  line-height: 0.8;
  opacity: 0.23;
}

.profile-role {
  display: block;
  margin-top: 58px;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.athlete-profile h3 {
  margin: 5px 0 8px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 4.1rem);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 0.92;
  text-transform: uppercase;
}

.athlete-profile > p {
  margin: 0;
  opacity: 0.72;
  font-size: 0.88rem;
}

.athlete-profile dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 35px 0 0;
  padding-top: 21px;
  border-top: 1px solid currentColor;
}

.athlete-profile dl div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.athlete-profile dt {
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.athlete-profile dd {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.45;
}

.strategy-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.strategy-row {
  display: grid;
  grid-template-columns: 52px 1fr 1.5fr 100px;
  align-items: center;
  gap: 20px;
  min-height: 70px;
  padding: 12px 22px;
}

.strategy-row + .strategy-row {
  border-top: 1px solid var(--line);
}

.strategy-row:hover {
  background: rgba(201,255,67,0.1);
}

.strategy-index {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border-radius: 10px;
  background: var(--paper-2);
  font-family: var(--display);
  font-weight: 900;
}

.strategy-row strong {
  font-family: var(--display);
  font-size: 1rem;
  text-transform: uppercase;
}

.strategy-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.strategy-lead {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 0.6rem;
  font-weight: 800;
}

.strategy-lead .avatar {
  width: 27px;
  height: 27px;
  border-width: 1px;
  font-size: 0.62rem;
}

.squad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.squad-grid > article {
  min-height: 420px;
  padding: clamp(24px, 3vw, 36px);
}

.spark-count {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--acid);
  font-size: 0.58rem;
  font-weight: 850;
}

.cheer-form {
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 8px;
  margin: 23px 0;
}

.cheer-form input {
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  font-size: 0.78rem;
}

.cheer-form button {
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
  font-size: 1.2rem;
}

.cheer-list {
  display: flex;
  max-height: 225px;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
}

.cheer-note {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-left: 3px solid var(--coral);
  background: var(--paper);
  font-family: "Comic Sans MS", cursive;
  font-size: 0.77rem;
  line-height: 1.45;
}

.cheer-note small {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: var(--body);
  font-size: 0.53rem;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 25px;
}

.achievement-badge {
  display: flex;
  min-height: 126px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 5px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  text-align: center;
  filter: grayscale(1);
  opacity: 0.42;
}

.achievement-badge.is-earned {
  background: var(--acid);
  filter: none;
  opacity: 1;
}

.achievement-badge span {
  font-size: 1.65rem;
}

.achievement-badge strong {
  font-family: var(--display);
  font-size: 0.7rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.achievement-badge small {
  color: var(--muted);
  font-size: 0.52rem;
}

.not-official {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin-top: 42px;
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--white);
}

.not-official > span {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--ink);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.not-official p {
  margin: 0;
  color: rgba(255,255,255,0.62);
  font-size: 0.7rem;
  line-height: 1.45;
}

.not-official a {
  color: var(--acid);
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: none;
}

/* Dialogs */
dialog {
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(21, 21, 17, 0.62);
  backdrop-filter: blur(8px);
}

.sheet-dialog {
  width: min(720px, calc(100% - 24px));
  max-height: min(88vh, 900px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 30px;
  background: var(--white);
  box-shadow: 0 30px 100px rgba(0,0,0,0.28);
}

.sheet-dialog[open] {
  animation: dialog-in 0.28s ease-out;
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dialog-close {
  position: absolute;
  z-index: 5;
  top: 16px;
  right: 16px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,253,245,0.85);
  font-size: 1.25rem;
  backdrop-filter: blur(8px);
}

.dialog-scroll {
  max-height: min(88vh, 900px);
  padding: clamp(28px, 5vw, 52px);
  overflow-y: auto;
}

.session-dialog-head {
  margin: -52px -52px 32px;
  padding: 70px 52px 42px;
  background: var(--ink);
  color: var(--white);
}

.session-dialog-head .session-tags .soft-tag {
  background: rgba(255,255,255,0.14);
  color: var(--white);
}

.session-dialog-head h2 {
  max-width: 600px;
  margin: 16px 0 9px;
  font-family: var(--display);
  font-size: clamp(2.35rem, 6vw, 4.7rem);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 0.9;
  text-transform: uppercase;
}

.session-dialog-head p {
  margin: 0;
  color: rgba(255,255,255,0.62);
  line-height: 1.5;
}

.session-dialog-meta {
  display: flex;
  gap: 20px;
  margin-top: 25px;
  font-size: 0.7rem;
  font-weight: 700;
}

.workout-blocks {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 18px;
}

.workout-block {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
}

.workout-block span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--display);
  font-size: 0.73rem;
  font-weight: 900;
}

.workout-block h4 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 0.92rem;
  text-transform: uppercase;
}

.workout-block p {
  margin: 0;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.5;
}

.cue-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.cue-card {
  padding: 17px;
  border-radius: 15px;
}

.cue-card.rally { background: color-mix(in srgb, var(--coral) 27%, var(--white)); }
.cue-card.trail { background: color-mix(in srgb, var(--blue) 17%, var(--white)); }

.cue-card strong {
  display: block;
  margin-bottom: 5px;
  font-family: var(--display);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.cue-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.session-dialog-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 25px;
}

.complete-button,
.start-timer-button {
  min-height: 48px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  font-size: 0.68rem;
  font-weight: 850;
}

.complete-button.is-done {
  border-color: var(--ink);
  background: var(--acid);
}

.start-timer-button {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.settings-dialog h2 {
  margin: 9px 0 8px;
  font-family: var(--display);
  font-size: 2.8rem;
  font-weight: 950;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.dialog-intro {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.82rem;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.settings-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.settings-form label span {
  font-size: 0.63rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.settings-form input {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
}

.field-note {
  margin: -4px 0 6px;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.45;
}

.data-tools {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.data-tools h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  text-transform: uppercase;
}

.data-tools > p {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.data-tools > div {
  display: flex;
  gap: 8px;
  margin: 17px 0;
}

.file-button input {
  display: none;
}

.danger-link {
  color: #bd321f;
}

.safety-note {
  margin-top: 30px;
  padding: 16px;
  border-radius: 13px;
  background: var(--paper-2);
}

.safety-note strong {
  font-size: 0.72rem;
  text-transform: uppercase;
}

.safety-note p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.5;
}

.timer-dialog {
  width: min(500px, calc(100% - 24px));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 32px;
  background: var(--ink);
  color: var(--white);
}

.timer-inner {
  padding: 42px;
  text-align: center;
}

.timer-inner h2 {
  margin: 10px 0 28px;
  font-family: var(--display);
  font-size: 1.6rem;
  text-transform: uppercase;
}

.timer-display {
  font-family: var(--display);
  font-size: clamp(5.5rem, 19vw, 8rem);
  font-weight: 950;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.timer-inner > p {
  color: rgba(255,255,255,0.5);
  font-size: 0.72rem;
}

.timer-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.timer-actions button {
  min-width: 100px;
  min-height: 48px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
}

.timer-actions .timer-main {
  background: var(--acid);
  color: var(--ink);
}

.timer-close {
  margin-top: 25px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  background: transparent;
  color: rgba(255,255,255,0.6);
  font-size: 0.65rem;
}

.welcome-dialog {
  width: min(860px, calc(100% - 24px));
  max-height: 90vh;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 32px;
  background: var(--white);
}

.welcome-dialog[open] {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  animation: dialog-in 0.34s ease-out;
}

.welcome-art {
  position: relative;
  display: flex;
  min-height: 500px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--blue);
}

.welcome-art > span {
  position: relative;
  z-index: 2;
  color: var(--acid);
  font-family: var(--display);
  font-size: 10rem;
  font-weight: 950;
  letter-spacing: -0.1em;
  transform: rotate(-8deg);
}

.welcome-art svg {
  position: absolute;
  right: -20px;
  bottom: -5px;
  width: 115%;
  fill: var(--ink);
}

.welcome-art svg circle {
  fill: var(--coral);
}

.welcome-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px;
}

.welcome-copy h2 {
  margin: 8px 0 12px;
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 0.88;
  text-transform: uppercase;
}

.welcome-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.welcome-copy ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 25px 0;
  padding: 0;
  list-style: none;
  font-size: 0.73rem;
  font-weight: 750;
}

.welcome-customize {
  align-self: center;
  margin-top: 14px;
  color: var(--muted);
}

.toast {
  position: fixed;
  z-index: 1000;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100% - 32px));
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  font-size: 0.72rem;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1.45fr 0.75fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mantra-card {
    grid-column: span 2;
    min-height: 240px !important;
  }

  .session-card {
    grid-template-columns: 80px minmax(0, 1fr) 120px 52px;
  }

  .athlete-checks {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    z-index: 80;
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    left: 14px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 6px;
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 20px;
    background: rgba(21, 21, 17, 0.94);
    box-shadow: 0 14px 50px rgba(0,0,0,0.3);
    backdrop-filter: blur(16px);
  }

  .mobile-nav button {
    display: flex;
    min-height: 51px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    border-radius: 15px;
    background: transparent;
    color: rgba(255,255,255,0.55);
    font-size: 0.53rem;
    font-weight: 750;
  }

  .mobile-nav button span {
    font-size: 1rem;
  }

  .mobile-nav button.is-active {
    background: var(--acid);
    color: var(--ink);
  }

  .site-footer {
    margin-bottom: 88px;
  }
}

@media (max-width: 780px) {
  :root {
    --radius-lg: 24px;
    --radius-md: 18px;
  }

  .app-shell {
    padding: 0 14px;
  }

  .topbar {
    min-height: 70px;
  }

  .brand-mark {
    width: 43px;
    height: 39px;
  }

  .brand-mark svg {
    width: 33px;
  }

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

  .live-pill {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 14px;
  }

  .hero-card {
    min-height: 590px;
    padding: 23px;
  }

  .hero-topline {
    align-items: flex-start;
    gap: 7px;
  }

  .eyebrow {
    font-size: 0.53rem;
  }

  .hero-copy {
    width: 100%;
    margin-top: 50px;
  }

  .hero-copy h1 {
    font-size: clamp(3.25rem, 15vw, 5rem);
  }

  .hero-deck {
    font-size: 0.9rem;
  }

  .athlete-chips {
    max-width: 100%;
    margin-top: 27px;
  }

  .athlete-chip strong {
    max-width: 77px;
  }

  .athlete-chip small {
    display: none;
  }

  .hero-landscape {
    right: -5%;
    width: 115%;
  }

  .countdown-card {
    min-height: 440px;
    padding: 30px;
  }

  .countdown-number {
    font-size: 9.5rem;
  }

  .section-block {
    margin-top: 52px;
  }

  .section-heading {
    align-items: flex-end;
  }

  .mission-card {
    grid-template-columns: 58px 1fr 42px;
    gap: 13px;
    padding: 16px 13px;
    border-left-width: 5px;
  }

  .mission-date {
    min-height: 70px;
    padding-right: 10px;
  }

  .mission-date span {
    font-size: 2rem;
  }

  .mission-main p,
  .mission-stats span:nth-child(2) {
    display: none;
  }

  .mission-main h3 {
    font-size: 1.15rem;
  }

  .round-cta {
    width: 40px;
    height: 40px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .mantra-card {
    grid-column: auto;
  }

  .dashboard-grid > article {
    min-height: 300px;
    padding: 24px;
  }

  .page-hero {
    min-height: 380px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 28px;
  }

  .page-hero h1 {
    font-size: clamp(3.2rem, 15vw, 5rem);
  }

  .load-card {
    width: 100%;
    min-width: 0;
    padding: 16px;
  }

  .load-card strong {
    font-size: 2.5rem;
  }

  .week-picker-wrap {
    top: 70px;
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .week-picker {
    min-width: 600px;
  }

  .plan-phase {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 23px;
  }

  .session-card {
    grid-template-columns: 60px minmax(0, 1fr) 42px;
    gap: 12px;
    padding: 14px;
  }

  .session-dose {
    display: none;
  }

  .session-date {
    padding-right: 10px;
  }

  .session-copy h3 {
    font-size: 1rem;
  }

  .page-title-row {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 55px;
  }

  .page-title-row h1 {
    font-size: clamp(3.2rem, 15vw, 5rem);
  }

  .stat-strip {
    grid-template-columns: 1fr 1fr;
  }

  .stat-strip article:nth-child(3) {
    border-left: 0;
  }

  .stat-strip article:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .progress-grid,
  .benchmark-grid,
  .superpower-grid,
  .squad-grid {
    grid-template-columns: 1fr;
  }

  .station-list {
    grid-template-columns: 1fr;
  }

  .benchmark-fields {
    grid-template-columns: 1fr 1fr;
  }

  .duo-emblem {
    display: none;
  }

  .strategy-row {
    grid-template-columns: 40px 1fr 62px;
    gap: 10px;
    padding: 12px 14px;
  }

  .strategy-row p {
    grid-column: 2 / -1;
    grid-row: 2;
  }

  .not-official {
    grid-template-columns: 1fr;
  }

  .sheet-dialog {
    width: 100%;
    max-height: 92vh;
    margin: auto 0 0;
    border-radius: 28px 28px 0 0;
  }

  .sheet-dialog[open] {
    animation-name: sheet-in;
  }

  @keyframes sheet-in {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
  }

  .dialog-scroll {
    max-height: 92vh;
    padding: 28px 22px calc(28px + env(safe-area-inset-bottom));
  }

  .session-dialog-head {
    margin: -28px -22px 27px;
    padding: 68px 22px 34px;
  }

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

  .start-timer-button {
    grid-column: span 2;
  }

  .welcome-dialog {
    width: 100%;
    max-height: 92vh;
    margin: auto 0 0;
    border-radius: 28px 28px 0 0;
  }

  .welcome-dialog[open] {
    grid-template-columns: 1fr;
  }

  .welcome-art {
    min-height: 190px;
  }

  .welcome-art > span {
    font-size: 6rem;
  }

  .welcome-art svg {
    width: 80%;
  }

  .welcome-copy {
    padding: 30px 24px calc(30px + env(safe-area-inset-bottom));
  }

  .welcome-copy h2 {
    font-size: 3.4rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
  }

  .toast {
    right: 16px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    left: 16px;
    text-align: center;
  }
}

@media (max-width: 410px) {
  .brand-copy small {
    display: none;
  }

  .hero-card {
    min-height: 560px;
  }

  .athlete-chip .avatar {
    width: 31px;
    height: 31px;
  }

  .week-track {
    gap: 4px;
  }

  .day-dot i {
    width: 31px;
    height: 31px;
  }

  .stat-strip article {
    padding: 16px 13px;
  }

  .stat-icon {
    width: 34px;
    height: 34px;
  }

  .benchmark-fields {
    grid-template-columns: 1fr;
  }

  .athlete-profile dl {
    grid-template-columns: 1fr;
  }

  .badge-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cue-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
