:root {
  color-scheme: light;
  --ink: #18312d;
  --ink-soft: #50645f;
  --forest: #153c36;
  --forest-2: #1e5148;
  --mint: #dcebe4;
  --mint-pale: #eff5f1;
  --paper: #f6f6f1;
  --white: #ffffff;
  --line: #dbe3df;
  --amber: #dc9c43;
  --amber-pale: #faf0df;
  --coral: #c96956;
  --coral-pale: #f7e7e3;
  --blue: #4d7793;
  --blue-pale: #e8f0f5;
  --shadow: 0 18px 48px rgba(25, 54, 48, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 11px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button,
label[for],
.upload-button {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(219, 227, 223, 0.8);
  background: rgba(246, 246, 241, 0.9);
  backdrop-filter: blur(18px);
}

.topbar__inner,
.hero__inner,
.page-shell {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar__inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: var(--forest);
  color: var(--white);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.brand-copy,
.brand-lockup--login > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong,
.brand-lockup--login strong {
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand-copy small,
.brand-lockup--login small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.current-user {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  padding: 0 13px;
  color: var(--forest);
  font-size: 13px;
  font-weight: 800;
}

.button,
.icon-button,
.status-button,
.text-button {
  border: 0;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 750;
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

.button:hover,
.icon-button:hover,
.status-button:hover {
  transform: translateY(-1px);
}

.button:disabled,
.icon-button:disabled,
.status-button:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

.button--primary {
  background: var(--forest);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(21, 60, 54, 0.18);
}

.button--soft {
  background: var(--mint);
  color: var(--forest);
}

.button--secondary {
  border: 1px solid var(--line);
  background: var(--white);
}

.button--danger {
  color: #963d31;
}

.button--wide {
  width: 100%;
}

.button-icon {
  font-size: 17px;
  line-height: 1;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  font-size: 19px;
  transition: transform 160ms ease, background 160ms ease;
}

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

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 20%, rgba(106, 167, 147, 0.32), transparent 31%),
    radial-gradient(circle at 82% 72%, rgba(220, 156, 67, 0.16), transparent 28%),
    var(--forest);
  color: var(--white);
}

.hero__inner {
  display: grid;
  min-height: 380px;
  grid-template-columns: 1.4fr 0.8fr;
  align-items: center;
  gap: 72px;
  padding: 62px 0 70px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #b8dfd2;
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 7vw, 82px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.hero__lede {
  max-width: 610px;
  margin: 27px 0 0;
  color: #c9ddd7;
  font-size: 17px;
}

.race-card {
  display: grid;
  grid-template-columns: 105px 1fr;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
}

.race-card__date {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f3d79f;
  color: var(--forest);
}

.race-card__date span,
.race-card__date small {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.race-card__date strong {
  margin: -3px 0 -5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -0.06em;
}

.race-card__details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 28px;
}

.race-card__label {
  margin: 0;
  color: #b8d2ca;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.race-card h2 {
  margin: 2px 0 15px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 50px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.race-card__details p:not(.race-card__label) {
  margin: 2px 0;
  color: #c7dad4;
  font-size: 13px;
}

.race-card__details p strong {
  color: var(--white);
}

.page-shell {
  padding: 42px 0 80px;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1.22fr 1fr 1fr;
  gap: 16px;
}

.overview-card {
  min-height: 244px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 26px;
  box-shadow: 0 10px 30px rgba(25, 54, 48, 0.035);
}

.overview-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.overview-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.card-copy {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.progress-ring {
  --progress: 0;
  display: grid;
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--coral) calc(var(--progress) * 1%), var(--mint) 0);
  position: relative;
}

.progress-ring::after {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  content: "";
}

.progress-ring span {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 850;
}

.progress-track {
  height: 7px;
  margin: 28px 0 21px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--mint);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--coral);
  transition: width 300ms ease;
}

.progress-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.progress-stats p {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0 12px;
  border-right: 1px solid var(--line);
}

.progress-stats p:first-child {
  padding-left: 0;
}

.progress-stats p:last-child {
  border-right: 0;
}

.progress-stats strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
}

.progress-stats span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 21px;
}

.info-pill {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 6px 10px;
  background: var(--mint-pale);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.overview-card--rule {
  background: var(--amber-pale);
}

.overview-card--rule blockquote {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.schedule-section,
.guidance-section {
  margin-top: 72px;
}

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

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  padding-bottom: 7px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot--off {
  background: #6aaa93;
}

.legend-dot--late {
  background: var(--blue);
}

.legend-dot--morning {
  background: var(--amber);
}

.schedule-column-head,
.day-summary {
  display: grid;
  grid-template-columns: 110px 78px minmax(180px, 0.8fr) minmax(300px, 1.55fr) 122px;
}

.schedule-column-head {
  padding: 0 20px 10px;
  color: #71807c;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.schedule {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.week-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 29px 4px 5px;
}

.week-divider:first-child {
  padding-top: 0;
}

.week-divider__label {
  flex: 0 0 auto;
}

.week-divider__label strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.week-divider__label span {
  color: var(--ink-soft);
  font-size: 11px;
}

.week-divider__line {
  height: 1px;
  flex: 1;
  background: var(--line);
}

.week-divider__cue {
  max-width: 410px;
  color: var(--ink-soft);
  font-size: 11px;
  font-style: italic;
  text-align: right;
}

.day-row {
  scroll-margin-top: 112px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.day-row.is-today {
  border-color: #75a795;
  box-shadow: 0 10px 34px rgba(30, 81, 72, 0.1);
}

.day-row.is-complete {
  background: rgba(239, 245, 241, 0.86);
}

.day-row.is-open {
  border-color: #9bbcaf;
  background: var(--white);
  box-shadow: var(--shadow);
}

.day-summary {
  min-height: 92px;
  align-items: center;
  padding: 14px 20px;
}

.day-date {
  display: flex;
  align-items: center;
  gap: 11px;
}

.day-number {
  min-width: 35px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 33px;
  letter-spacing: -0.05em;
  line-height: 1;
}

.day-date__copy {
  display: flex;
  flex-direction: column;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.25;
  text-transform: uppercase;
}

.today-label {
  margin-top: 4px;
  color: var(--coral);
  font-size: 9px;
}

.shift-badge {
  display: inline-flex;
  width: fit-content;
  min-width: 56px;
  justify-content: center;
  border-radius: 99px;
  padding: 6px 8px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shift-badge--off {
  background: #e3f0e8;
  color: #39725e;
}

.shift-badge--late {
  background: var(--blue-pale);
  color: #426a84;
}

.shift-badge--morning {
  background: var(--amber-pale);
  color: #956322;
}

.shift-badge--race {
  background: var(--coral-pale);
  color: #9c493b;
}

.session-name {
  padding-right: 19px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.session-detail {
  padding-right: 28px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.55;
}

.status-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 99px;
  padding: 0 13px;
  background: var(--mint-pale);
  color: var(--forest);
  font-size: 11px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease;
}

.status-button::before {
  width: 7px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  content: "";
}

.is-complete .status-button {
  background: var(--forest);
  color: var(--white);
}

.is-complete .status-button::before {
  border-color: var(--white);
  background: var(--white);
  box-shadow: inset 0 0 0 2px var(--forest);
}

.rest-label {
  color: #81908c;
  font-size: 11px;
  font-weight: 750;
}

.feedback-panel {
  border-top: 1px solid var(--line);
  background: #fbfcfa;
  padding: 24px;
}

.feedback-panel[hidden] {
  display: none;
}

.feedback-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.75fr);
  gap: 28px;
}

.feedback-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.feedback-title h3,
.upload-zone h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.done-control {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 800;
}

.done-control input {
  width: 19px;
  height: 19px;
  accent-color: var(--forest);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
}

.field,
.comment-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label,
.comment-field label,
.login-form label {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.field input,
.field select,
.comment-field input,
.comment-field textarea,
.login-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  background: var(--white);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input,
.field select,
.comment-field input,
.login-form input {
  min-height: 43px;
  padding: 0 12px;
}

.comment-field {
  margin-top: 13px;
}

.comment-field textarea {
  min-height: 86px;
  resize: vertical;
  padding: 11px 12px;
  line-height: 1.45;
}

.field input:focus,
.field select:focus,
.comment-field input:focus,
.comment-field textarea:focus,
.login-form input:focus {
  border-color: #6f9f90;
  box-shadow: 0 0 0 3px rgba(111, 159, 144, 0.16);
}

.feedback-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 15px;
}

.save-state {
  color: var(--ink-soft);
  font-size: 11px;
}

.upload-zone {
  min-height: 100%;
  border: 1px dashed #acc1ba;
  border-radius: var(--radius-md);
  background: var(--mint-pale);
  padding: 20px;
  transition: background 150ms ease, border-color 150ms ease;
}

.upload-zone.is-dragging {
  border-color: var(--forest);
  background: var(--mint);
}

.upload-zone__intro {
  margin: 5px 0 15px;
  color: var(--ink-soft);
  font-size: 12px;
}

.upload-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.upload-button {
  cursor: pointer;
}

.screenshot-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.screenshot-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  margin: 0;
}

.screenshot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot-delete {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(24, 49, 45, 0.85);
  color: var(--white);
  font-size: 13px;
}

.empty-screenshots {
  margin: 14px 0 0;
  color: #758682;
  font-size: 11px;
}

.coach-note {
  grid-column: 1 / -1;
  border-left: 3px solid var(--coral);
  border-radius: 0 12px 12px 0;
  background: var(--coral-pale);
  padding: 15px 17px;
}

.coach-note strong {
  display: block;
  margin-bottom: 3px;
  color: #96483b;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coach-note p {
  margin: 0;
  font-size: 13px;
}

.loading-card {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ink-soft);
  font-size: 13px;
}

.loading-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
  animation: pulse 1.1s infinite alternate ease-in-out;
}

.has-empty-plan .hero,
.has-empty-plan .overview-grid,
.has-empty-plan .guidance-section,
.has-empty-plan .legend,
.has-empty-plan .schedule-column-head,
.has-empty-plan #today-button {
  display: none;
}

.has-empty-plan .page-shell {
  min-height: calc(100svh - 72px);
  padding-top: clamp(48px, 10vh, 110px);
}

.has-empty-plan .schedule-section {
  max-width: 760px;
  margin: 0 auto;
}

.empty-plan-card {
  display: grid;
  min-height: 360px;
  place-items: center;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 0, rgba(106, 170, 147, 0.13), transparent 46%),
    var(--white);
  padding: 54px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.empty-plan-card__mark {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 27px;
  place-items: center;
  border-radius: 18px;
  background: var(--forest);
  color: var(--white);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.empty-plan-card .eyebrow {
  margin-bottom: 9px;
}

.empty-plan-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 6vw, 48px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.empty-plan-card > p:last-child {
  max-width: 470px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

@keyframes pulse {
  to {
    opacity: 0.25;
    transform: scale(0.75);
  }
}

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

.guidance-grid article {
  border-top: 3px solid var(--forest);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--white);
  padding: 25px;
}

.guidance-number {
  color: var(--coral);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.guidance-grid h3 {
  margin: 20px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 500;
}

.guidance-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  max-width: min(390px, calc(100% - 32px));
  border-radius: 13px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 16px 50px rgba(24, 49, 45, 0.22);
  padding: 13px 17px;
  font-size: 13px;
  font-weight: 700;
}

.toast.is-error {
  background: #9b4336;
}

.login-page {
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(circle at 16% 20%, rgba(117, 167, 149, 0.26), transparent 32%),
    radial-gradient(circle at 88% 76%, rgba(220, 156, 67, 0.14), transparent 28%),
    var(--forest);
}

.login-shell {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  align-content: center;
  padding: 32px 20px;
}

.login-card {
  width: min(440px, 100%);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.2);
  padding: 34px;
}

.brand-lockup--login {
  margin-bottom: 42px;
}

.login-card h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 45px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.login-intro {
  margin: 8px 0 27px;
  color: var(--ink-soft);
  font-size: 14px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 66px;
}

.text-button {
  position: absolute;
  top: 0;
  right: 7px;
  height: 100%;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
}

.form-error {
  margin: 2px 0 3px;
  color: #a34235;
  font-size: 12px;
}

.login-form .button {
  margin-top: 8px;
}

.login-footnote {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr 0.75fr;
    gap: 38px;
  }

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

  .overview-card--progress {
    grid-column: 1 / -1;
  }

  .schedule-column-head,
  .day-summary {
    grid-template-columns: 96px 70px minmax(155px, 0.8fr) minmax(240px, 1.5fr) 108px;
  }

  .field-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 82px;
  }

  .topbar__inner,
  .hero__inner,
  .page-shell {
    width: min(100% - 28px, 620px);
  }

  .topbar__inner {
    min-height: 64px;
  }

  .brand-copy small {
    display: none;
  }

  .hero__inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 43px 0 48px;
  }

  .hero h1 {
    font-size: clamp(49px, 16vw, 67px);
  }

  .hero__lede {
    margin-top: 20px;
    font-size: 15px;
  }

  .race-card {
    grid-template-columns: 92px 1fr;
  }

  .race-card__date {
    min-height: 160px;
  }

  .race-card__date strong {
    font-size: 54px;
  }

  .race-card h2 {
    font-size: 42px;
  }

  .page-shell {
    padding-top: 24px;
  }

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

  .overview-card--progress {
    grid-column: auto;
  }

  .overview-card {
    min-height: auto;
    padding: 22px;
  }

  .schedule-section,
  .guidance-section {
    margin-top: 54px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .section-heading h2 {
    font-size: 39px;
  }

  .schedule-column-head {
    display: none;
  }

  .week-divider {
    align-items: flex-end;
    padding-top: 25px;
  }

  .week-divider__cue {
    display: none;
  }

  .day-row {
    scroll-margin-top: 84px;
  }

  .day-summary {
    min-height: auto;
    grid-template-columns: 1fr auto;
    gap: 14px 10px;
    padding: 17px;
  }

  .day-date {
    grid-column: 1;
  }

  .shift-badge {
    grid-column: 2;
    grid-row: 1;
  }

  .session-name {
    grid-column: 1 / -1;
    padding: 0;
    font-size: 16px;
  }

  .session-detail {
    grid-column: 1 / -1;
    padding: 0;
    font-size: 13px;
  }

  .status-button,
  .rest-label {
    grid-column: 1 / -1;
  }

  .status-button {
    width: 100%;
  }

  .feedback-panel {
    padding: 19px 17px 20px;
  }

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

  .feedback-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
  }

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

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

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

  .upload-zone {
    padding: 17px;
  }

  .upload-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .upload-buttons .button {
    padding: 0 11px;
  }

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

  .toast {
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 410px) {
  .button--soft {
    padding: 0 14px;
  }

  .overview-card h2 {
    font-size: 29px;
  }

  .progress-stats p {
    padding: 0 8px;
  }

  .progress-stats strong {
    font-size: 22px;
  }

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

  .upload-buttons {
    grid-template-columns: 1fr;
  }

  .login-card {
    padding: 27px 23px;
  }

  .login-card h1 {
    font-size: 39px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
