:root {
  color-scheme: light;
  --ink: #191c17;
  --muted: #62685b;
  --lime: #def483;
  --lime-strong: #d5ed67;
  --paper: #f5f6ef;
  --panel: #fff;
  --line: #e3e6dc;
  --radius: 18px;
  --shadow: 0 3px 18px rgb(26 30 21 / 4%);
  font-family: 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  font-synthesis: none;
  font-size: 16px;
  line-height: 1.48;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 300px; min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .56; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #6c8225; outline-offset: 3px; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
svg { display: block; }

.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: .5rem; left: .5rem; padding: .7rem 1rem; z-index: 50; background: var(--lime); border-radius: .5rem; }
.initial-message { padding: 3rem; text-align: center; color: var(--muted); }
.stack { display: grid; gap: 1rem; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; color: var(--muted); font-size: .81rem; font-weight: 750; letter-spacing: .095em; line-height: 1.25; text-transform: uppercase; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.chip, .pill { display: inline-flex; align-items: center; gap: .35rem; width: fit-content; min-height: 1.8rem; padding: .19rem .65rem; border-radius: 999px; background: #edf0e6; color: #344126; font-size: .84rem; font-weight: 750; line-height: 1.3; }
.empty { padding: 1.3rem; color: var(--muted); }
.notice { padding: .75rem 1rem; border: 1px solid #d9e4b6; background: #f3f7e5; border-radius: .65rem; color: #384927; }
.form-error { padding: .65rem .75rem; border-radius: .55rem; background: #ffebe7; color: #832a20; font-size: .92rem; }

.btn { display: inline-flex; min-height: 2.8rem; align-items: center; justify-content: center; gap: .45rem; padding: .62rem 1rem; border: 1px solid transparent; border-radius: .62rem; background: transparent; font-size: .91rem; font-weight: 740; line-height: 1.2; text-decoration: none; transition: background-color 150ms, border-color 150ms, color 150ms; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover:not(:disabled) { background: #384131; }
.btn-secondary { background: #fff; border-color: var(--line); }
.btn-secondary:hover:not(:disabled), .btn-ghost:hover:not(:disabled) { background: #edf0e6; }
.btn-ghost { color: var(--ink); }
.field { display: grid; gap: .42rem; min-width: 0; color: var(--ink); font-size: .9rem; font-weight: 680; }
.field :is(input:not([type="checkbox"]), select, textarea) { width: 100%; min-height: 2.8rem; padding: .62rem .7rem; border: 1px solid #dfe3d6; border-radius: .55rem; background: #fff; font-size: 1rem; font-weight: 500; }
.field input::placeholder, .field textarea::placeholder { color: #777b71; opacity: 1; }
.field textarea { resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%) !important; background-position: right 15px center, right 10px center !important; background-size: 5px 5px !important; background-repeat: no-repeat !important; padding-right: 1.65rem !important; }
input[type="checkbox"] { accent-color: #475d29; }

.brand { display: flex; width: max-content; max-width: 100%; align-items: center; gap: .73rem; }
.brand-mark { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; flex: none; border-radius: .55rem; background: var(--lime); }
.brand-symbol { position: relative; width: 88%; aspect-ratio: 1; overflow: hidden; }
.brand-symbol img {
  position: absolute;
  width: 260.5%;
  max-width: none;
  height: auto;
  left: -76.8%;
  top: -42.5%;
  /* The lower edge follows the space between the helmet and the original lettering. */
  clip-path: polygon(
    29.476% 16.331%, 29.476% 50.565%, 30.766% 52.621%, 33.952% 50.605%,
    35.847% 50.403%, 36.653% 50.685%, 37.419% 54.435%, 42.863% 52.258%,
    55.040% 53.952%, 59.395% 52.419%, 60.403% 50.565%, 61.613% 50.645%,
    62.863% 51.008%, 66.653% 53.387%, 67.863% 50.565%, 67.863% 16.331%
  );
}
.brand-word { display: flex; flex-direction: column; color: inherit; font-size: 1.33rem; font-weight: 870; letter-spacing: -.03em; line-height: .97; }
.brand-word span { display: block; margin-top: .23rem; font-size: .56rem; font-weight: 760; letter-spacing: .21em; line-height: 1; }

.shell { display: grid; grid-template-columns: 226px minmax(0, 1fr); min-height: 100dvh; }
.shell-sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 1.65rem .85rem 1.15rem; background: #191c17; color: #fff; }
.shell-sidebar .brand { margin: 0 .55rem 2.7rem; }
.shell-desk-nav { display: grid; gap: .35rem; }
.shell-nav-button { display: flex; align-items: center; gap: .65rem; min-height: 2.7rem; width: 100%; border: 0; border-radius: .55rem; padding: .6rem .65rem; text-align: left; background: transparent; color: #c0c5b8; font-size: .9rem; font-weight: 710; line-height: 1.2; }
.shell-nav-button svg { width: 1.25rem; height: 1.25rem; flex: none; }
.shell-nav-button:hover { color: #fff; background: #2c3228; }
.shell-nav-button.is-current { color: var(--lime); background: #323a27; }
.sidebar-bottom { display: flex; align-items: center; gap: .35rem; justify-content: space-between; margin-top: auto; border-top: 1px solid #363d33; padding: 1rem .15rem 0; }
.profile-id { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.profile-id > span:last-child { min-width: 0; }
.profile-id strong, .profile-id small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-id strong { font-size: .9rem; }
.profile-id small { color: #bdc4b6; font-size: .81rem; }
.avatar { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; flex: none; border-radius: 50%; background: #333b2c; color: var(--lime); font-size: .8rem; font-weight: 750; }
.logout { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .5rem; color: #d6dbce; }
button.logout, button.gate-logout { border: 0; background: transparent; padding: 0; }
button.gate-logout { text-decoration: underline; }
.logout svg { width: 1.15rem; height: 1.15rem; }
.logout:hover { background: #363d33; }
.shell-main { min-width: 0; }
.shell-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 70px; padding: .65rem clamp(1rem, 3.3vw, 3rem); border-bottom: 1px solid var(--line); background: #fbfcf7; }
.site-date { display: flex; align-items: center; flex-wrap: wrap; column-gap: .9rem; row-gap: .1rem; font-size: .86rem; font-weight: 650; }
.site-date span:first-child { color: #303729; }
.site-date span:last-child { color: var(--muted); }
.site-date span:last-child::first-letter { text-transform: uppercase; }
.shell-actions { display: flex; align-items: center; gap: .35rem; }
.shell-action { min-height: 2.4rem; padding-inline: .65rem; white-space: nowrap; }
.demo-select select { min-height: 2.35rem; padding: .3rem .5rem; border: 1px solid var(--line); border-radius: .5rem; background-color: #fff; font-size: .83rem; font-weight: 720; }
.demo-banner { display: flex; flex-wrap: wrap; gap: .1rem .55rem; margin-bottom: 1.5rem; padding: .47rem .72rem; border: 1px solid #dee9bb; border-radius: .55rem; background: #f1f6df; color: #4a5833; font-size: .84rem; }
.shell-content { width: min(100%, 1330px); margin: 0 auto; padding: 1.5rem clamp(1rem, 3.3vw, 3rem) 4rem; }
.shell-mobile-nav, .mobile-brand, .logout-mobile { display: none; }

.gate { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr); }
.gate-visual { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; overflow: hidden; min-height: 100%; padding: clamp(1.65rem, 4vw, 4.4rem); background: #1f241a; color: #fff; }
.gate-visual::after { content: ''; position: absolute; z-index: -1; inset: 17% -41% -80% -20%; transform: rotate(-32deg); border: 1px solid #4e5b36; border-radius: 46%; box-shadow: 0 0 0 28px #242b1f, 0 0 0 29px #4b5836, 0 0 0 59px #252d20, 0 0 0 60px #454f33, 0 0 0 95px #252c20, 0 0 0 96px #414a31; }
.gate-visual .eyebrow { color: #d6e5a9; margin-bottom: .65rem; }
.gate-visual-content { margin-block: 3rem; }
.gate-visual-content p { color: #f9fbec; font-size: clamp(2.4rem, 5.6vw, 6.3rem); font-weight: 810; letter-spacing: -.075em; line-height: 1.02; }
.gate-visual-content em { color: var(--lime); font-style: normal; }
.gate-tracks { display: flex; flex-wrap: wrap; gap: .5rem; }
.gate-tracks span { padding: .16rem .6rem; border: 1px solid #899170; border-radius: 99px; color: #edf4d9; font-size: .86rem; font-weight: 720; }
.gate-body { display: grid; place-items: center; padding: clamp(1.3rem, 5.5vw, 4rem); }
.gate-content { display: grid; gap: .95rem; width: min(100%, 390px); }
.gate-content h1 { font-size: clamp(1.95rem, 4vw, 3.1rem); }
.gate-content p { margin-bottom: .2rem; color: var(--muted); }
.password-hint { margin: -.35rem 0 0; color: var(--muted); font-size: .85rem; }
.gate-content .btn { width: 100%; }
.gate-form { display: grid; gap: .7rem; }
.gate-invite { border: 1px solid var(--line); border-radius: .62rem; background: #fff; }
.gate-invite summary { padding: .7rem .9rem; cursor: pointer; font-weight: 670; font-size: .9rem; }
.gate-invite .gate-invite-help { margin: 0; padding: 0 .9rem .8rem; font-size: .89rem; }
.gate-invite .gate-form { padding: .1rem .9rem .9rem; }
.gate-logout { justify-self: center; color: var(--muted); font-size: .9rem; }
.account-screen { width: min(100%, 33rem); }
.account-screen h1 { font-size: clamp(2rem, 5vw, 3rem); }
.account-screen > button { justify-self: start; }
.account-card { padding: clamp(1rem, 3vw, 1.5rem); }
.account-notification-options, .account-notification-option { display: grid; gap: .6rem; }
.account-notification-option + .account-notification-option { border-top: 1px solid var(--line); padding-top: .8rem; }
.account-notification-option .btn { justify-self: start; }
.account-notification-check { display: flex; align-items: center; gap: .6rem; font-weight: 650; }
.account-notification-check input { width: 1.15rem; height: 1.15rem; accent-color: var(--ink); }
.account-notification-tests { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .35rem; }
.account-notification-options .btn:disabled { opacity: .45; cursor: default; }
.account-notification-options [hidden] { display: none; }

@media (max-width: 770px) {
  .shell { display: block; }
  .shell-sidebar, .site-date { display: none; }
  .shell-content { padding: 1rem 1rem calc(5.4rem + env(safe-area-inset-bottom)); }
  .mobile-brand { display: block; min-width: 0; }
  .mobile-brand .brand-mark { width: 2.1rem; height: 2.1rem; }
  .mobile-brand .brand-word { font-size: 1.12rem; }
  .shell-top { min-height: 61px; padding: .5rem 1rem; }
  .shell-action { font-size: .81rem; }
  .logout-mobile { display: grid; color: var(--muted); }
  .logout-mobile:hover { background: #edf0e6; }
  .shell-mobile-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: .38rem .45rem calc(.32rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fbfcf7; box-shadow: 0 -4px 16px #232a1810; }
  .shell-mobile-nav .shell-nav-button { flex: 1; flex-direction: column; justify-content: center; gap: .25rem; align-items: center; padding: .42rem .16rem; color: #58604f; font-size: .76rem; min-width: 0; text-align: center; }
  .shell-mobile-nav .shell-nav-button.is-current { background: #edf3da; color: #27341d; }
  .demo-banner { margin-bottom: .8rem; }
  .gate { display: block; }
  .gate-visual { min-height: 0; padding: 1.35rem; }
  .gate-visual-content { margin: 2rem 0 1.35rem; }
  .gate-visual-content p { font-size: clamp(2.15rem, 9vw, 3.5rem); }
  .gate-body { padding: 1.5rem 1.35rem 2.1rem; }
}

@media (max-width: 374px) {
  .shell-top { padding-inline: .68rem; gap: .35rem; }
  .shell-action { padding-inline: .4rem; }
  .shell-mobile-nav .shell-nav-button { font-size: .69rem; }
}

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

.athlete-screen { display: grid; gap: 22px; min-width: 0; }
.athlete-intro h1 { margin: 0; font-size: clamp(2.15rem, 6vw, 3.7rem); line-height: 1.04; letter-spacing: -.055em; }
.athlete-intro > p { margin: 8px 0 0; color: var(--muted); font-size: .98rem; }
.athlete-datebar { display: flex; align-items: stretch; justify-content: space-between; gap: 16px; }
.athlete-week { display: grid; grid-template-columns: repeat(7, minmax(46px, 1fr)); gap: 7px; width: min(100%, 530px); }
.athlete-day {
  position: relative; display: grid; justify-content: center; align-content: center; gap: 3px; min-width: 0; min-height: 65px;
  padding: 8px 4px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink);
  font: inherit; cursor: pointer;
}
.athlete-day:hover:not(:disabled) { border-color: var(--ink); }
.athlete-day span { color: var(--muted); font-size: .77rem; font-weight: 650; text-transform: capitalize; }
.athlete-day strong { font-size: 1.15rem; line-height: 1; }
.athlete-day i { position: absolute; bottom: 5px; left: calc(50% - 2px); width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.athlete-day.is-current { color: #11160d; background: var(--lime); border-color: var(--lime); }
.athlete-day.is-current span { color: #263019; }
.athlete-day:disabled { opacity: .45; cursor: default; }
.athlete-date-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.athlete-date-actions input, .score-editor input:not([type='checkbox']), .score-editor select, .pr-catalogue input, .pr-form input, .pr-division select {
  min-height: 44px; width: 100%; max-width: 100%; padding: 9px 11px; border-radius: 9px;
  border: 1px solid var(--line); color: var(--ink); background: var(--panel); font: inherit;
}
.athlete-date-actions input { width: auto; min-width: 9rem; }
.athlete-programs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; justify-self: start; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.athlete-programs button { padding: 8px 18px; min-height: 40px; font: inherit; font-size: .93rem; font-weight: 700; border: 0; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; }
.athlete-programs button.is-current { color: #f5faef; background: #202824; }
.athlete-programs button:hover:not(.is-current) { color: var(--ink); }
.athlete-grid { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(245px, 1fr); align-items: start; gap: 18px; }
.workout-main { display: grid; gap: 14px; min-width: 0; }
.workout-hero {
  position: relative; isolation: isolate; overflow: hidden; min-height: 214px; border-radius: var(--radius, 16px);
  display: grid; align-items: end; padding: clamp(20px, 4.2vw, 34px); color: #f8fbf3; background: #202923;
}
.workout-hero::before, .workout-hero::after { content: ''; position: absolute; display: block; z-index: -1; pointer-events: none; }
.workout-hero::before { width: 58%; height: 170%; top: -24%; right: -6%; transform: skew(-26deg); background: repeating-linear-gradient(90deg, transparent 0 25px, #b5f57629 25px 26px); border-inline: 1px solid #b5f5763f; }
.workout-hero::after { width: 8px; height: 140%; top: -20%; right: 24%; transform: skew(-26deg); background: var(--lime); box-shadow: 18px 0 0 #b5f57635; opacity: .78; }
.workout-hero[data-program='hyrox'] { background: #23322c; }
.workout-hero-copy { max-width: 88%; }
.workout-hero-copy p { margin: 0; font-size: .96rem; color: #e2eadc; }
.workout-hero-copy > p:first-child { color: var(--lime); font-size: .78rem; font-weight: 740; letter-spacing: .055em; text-transform: uppercase; }
.workout-hero h2 { max-width: 18ch; margin: 8px 0 0; font-size: clamp(1.85rem, 4.4vw, 3.1rem); line-height: 1.04; letter-spacing: -.05em; overflow-wrap: anywhere; }
.workout-hero h2 + p { margin-top: 10px; max-width: 40ch; }
.workout-locked .workout-hero-copy { max-width: 77%; }
.workout-blocks { display: grid; gap: 12px; }
.workout-block, .athlete-side { min-width: 0; padding: clamp(16px, 3vw, 24px); }
.block-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.block-heading h3, .leaderboard-block h3 { margin: 0; font-size: 1.18rem; line-height: 1.25; letter-spacing: -.022em; }
.block-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.workout-description { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.workout-block .workout-description { margin: 12px 0 15px; }
.workout-block > .btn { margin-top: 6px; }
.workout-load {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 14px;
  margin: 10px 0; padding: 11px 13px; border: 1px solid #dbe3cc; border-radius: 10px; background: #f1f5e8;
}
.workout-load p { margin: 0; color: var(--muted); font-size: .88rem; }
.workout-load strong { display: block; margin-top: 2px; color: var(--ink); font-variant-numeric: tabular-nums; }
.athlete-side h2, .athlete-history h2, .athlete-records h2 { margin: 0 0 13px; font-size: 1.25rem; line-height: 1.2; letter-spacing: -.025em; }
.athlete-aside-copy { margin: 0; font-size: .96rem; line-height: 1.5; }
.athlete-placeholder { display: grid; justify-items: start; gap: 12px; margin: 0; padding: 18px; color: var(--muted); line-height: 1.5; }
.athlete-placeholder p { margin: 0; }
.athlete-message { margin: 0; color: var(--ink); font-weight: 680; }
.saved-score { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 14px; margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--line); }
.saved-score small { color: var(--muted); }
.score-summary { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .98rem; }
.score-summary b, .leaderboard-result b { font-variant-numeric: tabular-nums; }
.score-summary small, .leaderboard-result small { display: inline; color: var(--muted); }
.score-summary .score-time-difference { display: block; margin-top: 2px; font-size: .875rem; font-weight: 650; line-height: 1.35; }
.previous-score { display: grid; gap: 4px; margin-top: 12px; padding: 10px 12px; border-radius: 9px; background: #f2f4ee; }
.previous-score > small { font-size: .87rem; color: var(--muted); }
.score-editor { display: grid; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.score-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; }
.score-form-grid.is-capped:not(:has(> :not([hidden]))) { display: none; }
.score-editor label:not(.score-check), .score-editor legend { display: grid; gap: 5px; padding: 0; color: var(--ink); font-size: .87rem; font-weight: 650; min-width: 0; }
.score-rounds { min-width: 0; margin: 0; padding: 0; border: 0; }
.score-rounds legend { padding-bottom: 5px; }
.score-pair { display: grid; gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.score-pair label { color: var(--muted) !important; font-weight: 500 !important; }
.score-check { display: flex; align-items: center; gap: 8px; font-size: .94rem; cursor: pointer; }
.score-check input { flex: none; width: 18px; height: 18px; accent-color: #2d4a1d; }
.score-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.score-error { margin: 0; color: var(--ink); font-weight: 650; border-inline-start: 3px solid #c03636; padding: 5px 9px; }
.athlete-screen [hidden] { display: none !important; }
.leaderboard-divisions {
  display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 14px;
}
.leaderboard-division {
  min-width: 32px; min-height: 40px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 8px;
  color: var(--muted); background: var(--panel); font-size: .88rem; font-weight: 680; line-height: 1.15;
  overflow-wrap: anywhere;
}
.leaderboard-division:hover { border-color: #9ca77e; color: var(--ink); }
.leaderboard-division[aria-pressed='true'] { border-color: #c8d49b; color: #23301b; background: #edf3da; }
.leaderboard-block + .leaderboard-block { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.leaderboard-list { list-style: none; margin: 4px 0 0; padding: 0; }
.leaderboard-row { display: grid; grid-template-columns: 23px minmax(70px, 1fr) auto; align-items: center; gap: 7px; min-height: 43px; border-bottom: 1px solid var(--line); }
.leaderboard-row:last-child { border-bottom: 0; }
.leaderboard-row .rank { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 6px; font-size: .78rem; font-weight: 750; color: var(--muted); }
.leaderboard-row:first-child .rank { background: var(--lime); color: #131911; }
.rank-name { min-width: 0; overflow-wrap: anywhere; font-size: .9rem; font-weight: 650; }
.leaderboard-result { display: grid; justify-items: end; font-size: .88rem; text-align: right; }
.leaderboard-result small { display: block; }
.leaderboard-encouragement { grid-column: 2 / -1; display: grid; justify-items: end; min-width: 0; margin-top: -3px; padding-bottom: 6px; }
.leaderboard-encourage, .leaderboard-encouragement-total {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 3px 8px; color: var(--muted); font: inherit;
  font-size: .84rem; font-weight: 680; line-height: 1.2;
}
.leaderboard-encourage { min-height: 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.leaderboard-encourage:hover { color: var(--ink); border-color: #9ca77e; }
.leaderboard-encourage[aria-pressed='true'] { color: #23301b; border-color: #c8d49b; background: #edf3da; }
.leaderboard-encourage[aria-disabled='true'] { cursor: wait; opacity: .62; }
.leaderboard-encouragement-total { justify-content: flex-end; padding-top: 0; }
.leaderboard-heart::before { content: '♡'; font-size: 1.15em; }
.leaderboard-encourage[aria-pressed='true'] .leaderboard-heart::before, .leaderboard-encouragement-total .leaderboard-heart::before { content: '♥'; }
.leaderboard-encourage [data-encouragement-count] { min-width: 1ch; font-variant-numeric: tabular-nums; }
.leaderboard-encouragement-error { margin: 0; color: #9d2f2b; font-size: .84rem; text-align: right; }
.leaderboard-encouragement-error:not(:empty) { margin-top: 5px; }
.records-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 195px), 1fr)); gap: 12px; }
.record-card, .history-card { padding: 15px 17px; }
.record-title { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 8px; }
.record-title h3, .history-card h3 { margin: 0; line-height: 1.25; font-size: 1.06rem; overflow-wrap: anywhere; }
.record-card strong { display: block; margin-top: 12px; font-size: 1.5rem; font-variant-numeric: tabular-nums; font-weight: 760; }
.record-card p, .history-card p { margin: 4px 0 0; color: var(--muted); font-size: .89rem; }
.history-list { display: grid; gap: 8px; }
.history-card { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; align-items: center; }
.history-card .history-date { margin: 0 0 4px; text-transform: capitalize; }
.pr-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: 14px; align-items: start; }
.pr-layout > section { min-width: 0; padding: clamp(15px, 3vw, 21px); }
.pr-layout h2 { margin: 0 0 12px; font-size: 1.23rem; line-height: 1.25; }
.pr-catalogue-list { max-height: 25rem; overflow-y: auto; margin-top: 12px; scrollbar-gutter: stable; }
.pr-catalogue-group + .pr-catalogue-group { margin-top: 11px; }
.pr-catalogue-group h3, .pr-empty { margin: 5px 0 4px; color: var(--muted); font-size: .86rem; }
.pr-catalogue-group h3 { font-weight: 680; }
.pr-catalogue-group ul { margin: 0; padding: 0; list-style: none; }
.pr-catalogue-group button {
  min-height: 42px; width: 100%; padding: 6px 9px; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--ink); font: inherit; text-align: start; overflow-wrap: anywhere;
}
.pr-catalogue-group button:hover { background: #f2f4ee; }
.pr-catalogue-group button[aria-pressed='true'] { border-color: #d3dfba; background: #edf3da; color: #23301b; font-weight: 700; }
.pr-division { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 10px; margin-bottom: 12px; font-size: .88rem; font-weight: 650; }
.pr-division select { width: auto; min-width: 6rem; }
.pr-record { padding: 12px 0; border-top: 1px solid var(--line); }
.pr-record:last-child { padding-bottom: 0; }
.pr-record-top { display: flex; justify-content: space-between; align-items: center; gap: 7px 12px; flex-wrap: wrap; }
.pr-record-top h3 { margin: 0; font-size: 1rem; }
.pr-record-top strong { display: block; margin-top: 4px; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.pr-record-top p { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }
.pr-form { display: grid; gap: 10px; margin-top: 12px; }
.pr-form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 10px; }
.pr-form label, .pr-form legend { display: grid; gap: 4px; color: var(--ink); font-size: .88rem; font-weight: 650; }
.pr-form legend { padding: 0 0 5px; }
.pr-form .pr-remove { color: #a1342f; }

@media (any-pointer: coarse) {
  .leaderboard-encourage, .pr-catalogue-group button { min-height: 44px; }
}
@media (max-width: 850px) {
  .athlete-grid { grid-template-columns: minmax(0, 1fr); }
  .athlete-side { min-height: 106px; }
}
@media (max-width: 570px) {
  .score-editor input:not([type='checkbox']), .score-editor select, .pr-catalogue input, .pr-form input, .pr-division select { font-size: 1rem; }
  .athlete-screen { gap: 15px; }
  .athlete-datebar { flex-direction: column; gap: 7px; }
  .athlete-programs button { padding-inline: 12px; }
  .athlete-date-actions { justify-content: flex-start; }
  .athlete-date-actions input { min-height: 38px; }
  .athlete-week { width: 100%; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .athlete-day { min-height: 55px; border-radius: 9px; }
  .athlete-day span { font-size: .7rem; }
  .athlete-day strong { font-size: 1.04rem; }
  .workout-hero { min-height: 175px; }
  .workout-hero::after { right: 16%; opacity: .55; }
  .workout-hero-copy, .workout-locked .workout-hero-copy { max-width: 92%; }
  .score-form-grid, .pr-layout, .pr-form-fields { grid-template-columns: minmax(0, 1fr); }
  .pr-catalogue-list { max-height: 11rem; }
}

.staff-pane {
  display: grid;
  align-content: start;
  gap: 1.15rem;
  min-width: 0;
}

.staff-heading, .staff-section-top, .staff-calendar-toolbar, .staff-calendar-range,
.staff-editor-status, .staff-editor-actions, .staff-member-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.staff-heading { align-items: end; margin-bottom: .4rem; }
.staff-heading h1, .staff-pane h2, .staff-pane h3, .staff-pane h4 { margin: 0; }
.staff-heading h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.04; letter-spacing: -.06em; }
.staff-heading p, .staff-editor-title p { margin: 0 0 .45rem; }
.staff-heading div > p:last-child { margin: .55rem 0 0; color: var(--muted, #656358); }
.staff-heading-tools { display: flex; flex: 0 0 auto; }
.staff-pane h2 { font-size: 1.24rem; letter-spacing: -.025em; }
.staff-pane h3 { font-size: 1.04rem; }
.staff-pane h4 { font-size: .95rem; }
.staff-pane .btn { white-space: normal; }

.staff-surface {
  min-width: 0;
  background: var(--panel, #fffef9);
  border: 1px solid var(--line, #e4e2d7);
  border-radius: var(--radius, 1.25rem);
  padding: clamp(.95rem, 2.8vw, 1.55rem);
}

.staff-calendar-toolbar { flex-wrap: wrap; }
.staff-calendar-range { justify-content: start; flex-wrap: wrap; }
.staff-week-buttons, .staff-program-tabs { display: flex; align-items: center; gap: .45rem; }
.staff-program-tabs { flex-wrap: wrap; margin: 1rem 0 .8rem; }
.staff-segment {
  border: 1px solid var(--line, #e4e2d7);
  border-radius: 999px;
  background: transparent;
  color: var(--ink, #25261b);
  padding: .55rem .95rem;
  min-height: 2.6rem;
  cursor: pointer;
  font: inherit;
  font-size: .9rem;
  font-weight: 650;
}
.staff-segment[aria-pressed="true"] { background: var(--ink, #25261b); border-color: var(--ink, #25261b); color: #fff; }

.staff-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .45rem; }
.staff-calendar-day {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .27rem;
  min-width: 0;
  min-height: 4.8rem;
  border: 1px solid var(--line, #e4e2d7);
  border-radius: .85rem;
  color: var(--ink, #25261b);
  background: var(--paper, #f5f3eb);
  padding: .36rem .1rem;
  font: inherit;
  cursor: pointer;
}
.staff-calendar-day span:first-child { color: var(--muted, #656358); font-size: .79rem; }
.staff-calendar-day strong { font-size: 1.22rem; line-height: 1.04; }
.staff-calendar-day.is-today { border-color: var(--ink, #25261b); }
.staff-calendar-day.is-selected { background: var(--lime, #d8f36a); border-color: #b3c959; }
.staff-calendar-day:disabled, .staff-pane .btn:disabled { opacity: .42; cursor: default; }
.staff-calendar-mark { width: .39rem; height: .39rem; border-radius: 50%; background: transparent; }
.staff-calendar-mark--draft { background: #777566; }
.staff-calendar-mark--pending { background: #aa611b; }
.staff-calendar-mark--approved { background: #376519; }

.staff-list .staff-section-top, .staff-members .staff-section-top { margin-bottom: .6rem; }
.staff-workout-row, .staff-member-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  min-height: 3.7rem;
  color: var(--ink, #25261b);
  background: transparent;
  border: 0;
  text-align: start;
  font: inherit;
  padding: .66rem 0;
}
.staff-workout-row { border-top: 1px solid var(--line, #e4e2d7); cursor: pointer; }
.staff-workout-row:hover, summary.staff-member-row:hover { background: var(--paper, #f5f3eb); }
.staff-workout-date { flex: 0 0 auto; font-size: .84rem; font-weight: 600; }
.staff-workout-copy, .staff-member-copy { display: grid; gap: .18rem; min-width: 0; flex: 1; }
.staff-workout-copy strong, .staff-member-copy strong, .staff-member-copy small { overflow-wrap: anywhere; }
.staff-workout-copy small, .staff-member-copy small, .staff-editor-status > span + span { color: var(--muted, #656358); font-size: .85rem; }
.staff-empty, .staff-list-caption { color: var(--muted, #656358); font-size: .9rem; line-height: 1.5; margin: .58rem 0 0; }
.staff-count { color: var(--muted, #656358); font-size: .86rem; }
.staff-badge {
  flex: 0 0 auto;
  width: fit-content;
  padding: .26rem .55rem;
  border-radius: 2rem;
  background: #efede4;
  color: #565447;
  font-weight: 650;
  font-size: .75rem;
}
.staff-badge--approved { background: #e8edd2; color: #3d4e22; }
.staff-badge--pending { background: #f6e8cc; color: #714216; }

.staff-editor:only-of-type, .staff-list .staff-editor { margin-top: .8rem; }
.staff-editor-title .eyebrow { color: var(--muted, #656358); }
.staff-editor-title h2 { overflow-wrap: anywhere; }
.staff-editor-status { justify-content: start; flex-wrap: wrap; margin: .65rem 0 1rem; }
.staff-editor-fields { display: grid; min-width: 0; gap: .8rem; padding: 0; margin: 0; border: 0; }
.staff-editor-fields:disabled .staff-field { opacity: .83; }
.staff-editor-fields > .btn { justify-self: start; }
.staff-editor-fields:disabled .staff-section-top .btn, .staff-editor-fields:disabled > .btn { display: none; }
.staff-editor-actions { justify-content: flex-end; flex-wrap: wrap; margin-top: 1rem; }
.staff-blocks { display: grid; gap: .85rem; }
.staff-block {
  min-width: 0;
  display: grid;
  gap: .8rem;
  border: 1px solid var(--line, #e4e2d7);
  background: var(--paper, #f5f3eb);
  border-radius: .9rem;
  padding: clamp(.65rem, 2vw, 1.05rem);
}
.staff-form-grid, .staff-metric, .staff-duplicate-form, .staff-invite-form, .staff-member-form, .staff-request-form {
  display: grid;
  align-items: end;
  gap: .7rem;
}
.staff-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.staff-form-grid--details { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.staff-metric { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
.staff-form-grid .staff-field, .staff-metric .staff-field { height: 100%; align-content: end; }
.staff-pane .staff-field { display: grid; gap: .33rem; min-width: 0; margin: 0; }
.staff-pane .staff-field > span { font-size: .85rem; font-weight: 650; }
.staff-pane .staff-field input, .staff-pane .staff-field textarea, .staff-pane .staff-field select {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  color: var(--ink, #25261b);
  background: var(--panel, #fffef9);
  border: 1px solid var(--line, #dedbcf);
  border-radius: .62rem;
  padding: .55rem .62rem;
  font: inherit;
}
.staff-pane .staff-field textarea { resize: vertical; }
.staff-block-options > summary, .staff-record-options > summary {
  cursor: pointer;
  font-size: .87rem;
  font-weight: 650;
  width: fit-content;
}
.staff-block-options[open] > div, .staff-record-options[open] > div { margin-top: .7rem; }
.staff-record-options > div { display: grid; gap: .75rem; }
.staff-record-option { min-width: 0; border: 1px solid var(--line, #e4e2d7); border-radius: .7rem; margin: 0; padding: .65rem; }
.staff-record-option > legend { padding: 0 .3rem; font-size: .87rem; font-weight: 650; }
.staff-form-grid--pr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.staff-record-help { color: var(--muted, #656358); font-size: .85rem; margin: .5rem 0 0; }
.staff-metrics-heading { margin-top: .25rem; }
.staff-duplicate { border-top: 1px solid var(--line, #e4e2d7); margin-top: 1rem; padding-top: .8rem; }
.staff-duplicate > summary, summary.staff-member-row { cursor: pointer; }
.staff-duplicate-form { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; margin-top: .7rem; }

.staff-invite-form { grid-template-columns: 1fr 1.45fr 1fr auto; margin-top: .75rem; }
.staff-invite-expiry[hidden] { display: none; }
.staff-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  background: #e8edd2;
  color: #303a20;
  padding: .85rem;
  border-radius: .8rem;
  margin-top: .8rem;
}
.staff-invitation-copy { flex: 1; min-width: 0; }
.staff-invitation-copy small { display: block; margin-top: .35rem; }
.staff-member-row, .staff-member-details { border-top: 1px solid var(--line, #e4e2d7); }
.staff-member-details > summary { list-style: none; border-top: 0; }
.staff-member-details > summary::-webkit-details-marker { display: none; }
.staff-member-details > summary::after {
  content: "";
  width: .43rem;
  height: .43rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin: -.25rem .12rem 0 .15rem;
}
.staff-member-details[open] > summary::after { transform: rotate(225deg); margin-top: .25rem; }
.staff-member-form { grid-template-columns: minmax(10rem, 15rem) 1fr; padding: .2rem 0 .75rem; }
.staff-request-form {
  grid-template-columns: minmax(10rem, 14rem) minmax(12rem, 1fr) auto;
  align-items: center;
  padding: .2rem 0 .75rem;
}
.staff-membership-check {
  display: flex;
  align-items: start;
  gap: .48rem;
  color: var(--ink, #25261b);
  cursor: pointer;
  font-size: .88rem;
}
.staff-membership-check input { width: 1.12rem; height: 1.12rem; accent-color: var(--ink, #25261b); }
.staff-requests .staff-notice .btn { padding: .3rem .7rem; }
.staff-member-actions { justify-content: start; flex-wrap: wrap; }
.staff-pane .btn-danger { color: #90352e; border: 1px solid #e2b9b0; background: #fbebe5; }
.staff-list-caption { margin: .25rem 0 .9rem; }

.staff-resawod-form, .staff-resawod-preview { display: grid; gap: .75rem; }
.staff-resawod-form > .btn, .staff-resawod-preview > .btn { justify-self: start; }
.staff-resawod-form + .staff-resawod-form, .staff-resawod-preview {
  border-top: 1px solid var(--line, #e4e2d7);
  margin-top: 1rem;
  padding-top: 1rem;
}
.staff-resawod-form > .staff-empty, .staff-resawod-preview p { margin: 0; }
.staff-resawod-form > .staff-form-grid { align-items: start; }
.staff-resawod-form > .staff-field { max-width: 16rem; }
.staff-resawod-form .staff-field small { color: var(--muted, #656358); overflow-wrap: anywhere; }
.staff-resawod-products {
  border: 1px solid var(--line, #e4e2d7);
  border-radius: .75rem;
  display: grid;
  gap: .45rem;
  margin: 0;
  min-width: 0;
  padding: .6rem .75rem .75rem;
}
.staff-resawod-products legend { font-size: .85rem; font-weight: 650; padding: 0 .25rem; }
.staff-resawod-products input { flex: 0 0 auto; }
.staff-resawod-products span, .staff-resawod-preview li { overflow-wrap: anywhere; }
.staff-resawod-preview summary { cursor: pointer; font-weight: 600; }
.staff-resawod-preview ul { list-style: disc; margin: .55rem 0 0; padding-left: 1.4rem; }
.staff-resawod-preview li { margin-bottom: .28rem; }

.staff-notice { background: #e8edd2; color: #303a20; border-radius: .8rem; padding: .75rem .9rem; }
.staff-notice--error { background: #fbebe5; color: #7d3027; }
.staff-editor .staff-notice { margin-bottom: .75rem; }
.staff-pane[aria-busy="true"] { cursor: progress; }
.staff-pane button:focus-visible, .staff-pane summary:focus-visible {
  outline: 2px solid var(--ink, #25261b);
  outline-offset: 2px;
}

@media (max-width: 850px) {
  .staff-form-grid--details, .staff-invite-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff-form-grid--pr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff-metric { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .staff-metric > .btn { justify-self: start; }
  .staff-invite-form > .btn { justify-self: start; }
  .staff-request-form { grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr); }
  .staff-request-form > .staff-member-actions { grid-column: 1 / -1; }
}

@media (max-width: 570px) {
  .staff-heading { align-items: start; flex-direction: column; }
  .staff-calendar-grid { gap: .22rem; }
  .staff-calendar-day { min-height: 4.45rem; border-radius: .58rem; }
  .staff-calendar-day span:first-child { font-size: .7rem; }
  .staff-calendar-day strong { font-size: 1.03rem; }
  .staff-form-grid, .staff-form-grid--details, .staff-form-grid--pr, .staff-duplicate-form, .staff-metric,
  .staff-invite-form, .staff-member-form, .staff-request-form { grid-template-columns: 1fr; }
  .staff-metric:not(:last-child) { border-bottom: 1px solid var(--line, #e4e2d7); padding-bottom: .7rem; }
  .staff-duplicate-form > .btn { justify-self: start; }
  .staff-section-top { flex-wrap: wrap; }
  .staff-editor-actions { justify-content: start; }
  .staff-code { align-items: stretch; flex-direction: column; }
  .staff-code > .btn { align-self: start; }
}
