/* offday.club — phone polish (Claude, 2026-10-30), from Kenneth's marked-up iPhone screenshots.
   Loaded last, in both colour schemes. Layout and legibility only: no behaviour change.
   1. header: no strip of page background above it (iOS overscroll / safe area)
   2. stats: plain numerals, a 2 × 2 grid with today's progress full width on phones
   3. exercise cards: header, prescription box, watch/done, then a tidy grid of extras; one column on phones
   4. log: units beside the heading, no dead gap under "Log set"
   5. account form: a visible checkbox, full-width rows, a full-width button on phones */

/* 1 · header */
.site-header { padding-top: env(safe-area-inset-top, 0px); height: calc(80px + env(safe-area-inset-top, 0px)); }
.site-header::before {                         /* paints the header colour into anything above it, so no glow strip shows */
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 100vh; background: inherit; pointer-events: none;
}
@media (max-width: 860px) { .site-header { height: calc(68px + env(safe-area-inset-top, 0px)); } }

/* 2 · stats */
.stat-strip strong { font-family: var(--od-display, inherit); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
@media (max-width: 520px) {
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-strip > div { padding: 14px 16px; border-radius: 20px; }
  .stat-strip strong { font-size: 1.5rem; line-height: 1.1; }
  .stat-strip span { margin-top: 4px; }
  .stat-strip .progress-track { margin-top: 10px; }
  .stat-strip > .progress-stat, .stat-strip > .progress-stat:last-child { grid-column: 1 / -1; }
}

/* 3 · exercise cards: header (art tile, name, cue, gear) → what to do → watch / done → small extras */
.exercise-card { gap: 14px; }
.exercise-head { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start; }
.exercise-head .exercise-number {
  width: 56px; height: 56px; padding: 0; align-items: center; justify-content: center; border-radius: 16px; font-size: 1rem;
}
.exercise-main h3 { margin: 2px 0 4px; }
.exercise-main p { margin: 0; }
.exercise-gear {
  display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: var(--od-accent-soft, rgba(58, 104, 245, .12));
  color: var(--od-accent-text, var(--od-accent, #3a68f5)); font-size: .72rem; font-weight: 600;
}
.exercise-prescription {
  margin: 0; padding: 12px 14px; border-radius: 16px; background: rgba(127, 127, 140, .09); box-shadow: inset 0 0 0 1px var(--od-hair, rgba(0, 0, 0, .06));
}
.exercise-prescription b { display: block; font-size: 1.05rem; }
.exercise-prescription .exercise-execution { margin-top: 4px; color: var(--od-soft, var(--muted)); font-size: .78rem; }
.exercise-actions { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.demo-button, .demo-button.watched {
  flex: 1 1 auto; min-height: 44px; font-size: .8rem; font-weight: 600; letter-spacing: 0; text-transform: none;
}
.complete-check {
  display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 44px; height: 44px; padding: 0 16px;
  border-radius: 999px; white-space: nowrap; flex-shrink: 0; align-self: auto; margin: 0;
}
.complete-check::after { content: "Mark done"; opacity: 1; font-size: .8rem; font-weight: 600; }
.exercise-card.done .complete-check::after { content: "✓ Done"; }
.exercise-saves {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; margin: 0; padding-top: 12px;
  border-top: 1px solid var(--od-hair, rgba(0, 0, 0, .08));
}
.rest-move, .save-move, .log-set-button {
  min-height: 40px; padding: 0 10px; border-radius: 999px; font: inherit; font-size: .78rem; font-weight: 500; line-height: 1.2; white-space: nowrap;
}
.exercise-card.done .exercise-prescription { opacity: .7; }
@media (max-width: 600px) {
  .exercise-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .exercise-card { min-height: 0; padding: 16px; }
  .exercise-main h3 { font-size: 1.15rem; }
  .exercise-saves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 4 · log */
.log-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.log-head h2 { margin: 0; }
.log-head .log-units { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--od-soft); font-size: .8rem; }
#logStatus { margin: 10px 0 0; min-height: 0; }
#logStatus:empty { margin: 0; }
.training-log .log-subhead { margin-top: 18px; }

/* 5 · account form */
.club-form > .club-checkbox, .club-form > .club-note, .club-form > .button, .club-form > label:first-child { grid-column: 1 / -1; }
.club-form .club-checkbox { display: flex; align-items: center; gap: 12px; cursor: pointer; line-height: 1.4; }
.club-form .club-checkbox input {
  appearance: none; -webkit-appearance: none; display: grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px;
  margin: 0; padding: 0; border: 1.5px solid var(--od-field-line, #8a8d99); border-radius: 7px; background: var(--od-field, #fff); cursor: pointer;
}
.club-form .club-checkbox input::after {
  content: ""; width: 6px; height: 11px; margin-top: -2px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0;
}
.club-form .club-checkbox input:checked { background: var(--od-accent, #3a68f5); border-color: var(--od-accent, #3a68f5); }
.club-form .club-checkbox input:checked::after { opacity: 1; }
.club-form .club-checkbox input:focus-visible { outline: 2px solid var(--od-accent, #3a68f5); outline-offset: 2px; }
@media (prefers-color-scheme: dark) { .club-form .club-checkbox input::after { border-color: #0a0a0d; } }
@media (max-width: 600px) {
  .club-form { gap: 14px; }
  .club-form .button { justify-self: stretch; justify-content: center; }
}

/* 6 · focus switcher on the Today card: one tap changes today's focus (app.js renderFocusSwitcher) */
.focus-switcher {
  display: flex; gap: 8px; margin: 4px -24px 16px; padding: 2px 24px 6px; overflow-x: auto; scroll-snap-type: x proximity;
  scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.focus-switcher::-webkit-scrollbar { display: none; }
.focus-chip {
  flex: none; scroll-snap-align: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--od-field-line, rgba(0, 0, 0, .14));
  border-radius: 999px; background: var(--od-card-solid, #fff); color: var(--od-text, inherit); font: inherit; font-size: .82rem; font-weight: 500;
  white-space: nowrap; cursor: pointer;
}
.focus-chip:hover { border-color: var(--od-text, currentColor); }
.focus-chip[aria-pressed="true"] { background: var(--od-dark, #16171f); border-color: var(--od-dark, #16171f); color: var(--od-on-dark, #fff); font-weight: 650; }
.focus-chip:focus-visible { outline: 2px solid var(--od-accent, #3a68f5); outline-offset: 2px; }
@media (prefers-color-scheme: dark) { .focus-chip[aria-pressed="true"] { color: #0a0a0d; } }

/* 7 · email sign-in (account panel) */
.member-email { margin: -8px 0 8px; font-size: .85rem; }
#emailForm { margin-top: 12px; }
