:root {
  color-scheme: light;
  --ink: #21171b;
  --muted: #6f6870;
  --line: #d7d4d6;
  --paper: #fbfafb;
  --ruby: #6f0032;
  --ruby-dark: #47001f;
  --ruby-soft: #f4e4eb;
  --silver: #a7a7a7;
  --silver-soft: #f1f1f1;
  --gold: #d7b15b;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(33, 23, 27, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(244, 228, 235, 0.82), rgba(251, 250, 251, 0.92) 34%),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  display: grid;
  min-height: clamp(280px, 42vw, 520px);
  overflow: hidden;
  color: var(--white);
}

.hero__image,
.hero__shade,
.hero__content {
  grid-area: 1 / 1;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}

.hero__shade {
  background:
    linear-gradient(180deg, rgba(22, 16, 18, 0.02), rgba(71, 0, 31, 0.2) 60%, rgba(22, 16, 18, 0.48)),
    linear-gradient(90deg, rgba(71, 0, 31, 0.04), rgba(71, 0, 31, 0.12) 55%, rgba(71, 0, 31, 0.02));
}

.hero__content {
  position: relative;
  align-self: end;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0 42px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.brand-lockup img {
  width: clamp(74px, 9vw, 112px);
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

.brand-lockup .eyebrow {
  margin-bottom: 3px;
}

.brand-lockup__sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 900;
}

.eyebrow {
  margin: 0 0 8px;
  color: currentColor;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.74);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  width: min(720px, 100%);
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 3.5vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h1:focus {
  outline: none;
}

.hero-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

.hero-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.hero-nav a:hover,
.hero-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.hero-nav a.is-active {
  color: var(--ruby-dark);
  background: var(--white);
  box-shadow: 0 8px 18px rgba(33, 23, 27, 0.18);
}

.nav-label--short {
  display: none;
}

.workspace {
  width: min(1120px, calc(100% - 32px));
  margin: -24px auto 0;
  padding-bottom: 44px;
  position: relative;
  z-index: 2;
}

.today-panel,
.main-panel {
  border: 1px solid rgba(216, 225, 220, 0.9);
  border-radius: 8px;
  background:white;
  box-shadow: var(--shadow);
}

.today-panel {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  padding: 26px;
  border-color: rgba(111, 0, 50, 0.26);
  background:
    linear-gradient(180deg, rgba(244, 228, 235, 0.9), rgba(255, 255, 255, 0.96) 34%),
    var(--white);
}

.main-panel {
  padding: 26px;
}

.today-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--ruby), var(--gold));
}

.panel-heading,
.toolbar,
.section-heading,
.day-card__top,
.reminder-strip,
.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-heading h2,
.toolbar h2,
.section-heading h2,
.section-heading h3,
.reminder-strip h3 {
  margin: 0;
}

.section-heading {
  margin-bottom:5px;
  padding-bottom:5px;
  margin-top: 50px;
}

.section-heading h3 {
  color: var(--ruby-dark);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.learning-panel:not(.library-panel) > .section-heading {
  align-items: center;
  margin: 0 0 18px;
  padding-bottom: 8px;
}

.today-panel .panel-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1;
}

.day-pill {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--ruby-dark);
  background: var(--ruby-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.player-card,
.note-field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fdfcfd;
  outline: none;
}

input {
  min-height: 44px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 12px;
}

input:focus,
textarea:focus {
  border-color: var(--ruby);
  box-shadow: 0 0 0 3px rgba(111, 0, 50, 0.15);
}

.today-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.completion-gate {
  display: flex;
  justify-content: flex-start;
  margin-top: 14px;
}

.completion-toggle {
  min-width: min(100%, 260px);
}

.task-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 14px;
  border: 1px solid rgba(111, 0, 50, 0.18);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(33, 23, 27, 0.08);
}

.task-row input {
  width: 26px;
  min-height: 26px;
  accent-color: var(--ruby);
}

.task-row span {
  font-size: 1.05rem;
  font-weight: 800;
}

.task-row.is-done span {
  color: var(--muted);
  text-decoration: line-through;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button,
.day-card__toggle {
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  display: none;
}

.primary-button,
.secondary-button {
  color: var(--white);
  background: var(--ruby);
}

.primary-button,
.ghost-button,
.secondary-button {
  min-height: 44px;
  padding: 0 14px;
}

.ghost-button {
  color: var(--ruby-dark);
  background: var(--ruby-soft);
}

.secondary-button {
  min-width: 104px;
}

.icon-button {
  width: 42px;
  height: 42px;
  color: var(--ruby-dark);
  background: var(--silver-soft);
  font-size: 1.25rem;
}

.toolbar__actions {
  display: flex;
  gap: 8px;
}

.progress-meter {
  height: 12px;
  margin: 18px 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e9e7e8;
}

.progress-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ruby), var(--gold));
  transition: width 180ms ease;
}

.schedule-alert {
  display: grid;
  grid-template-columns: auto repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  margin-bottom: 18px;
  border: 1px solid rgba(111, 0, 50, 0.22);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(33, 23, 27, 0.08);
}

.schedule-alert__label {
  display: grid;
  place-items: center;
  min-width: 112px;
  padding: 14px 18px;
  color: var(--white);
  background: var(--ruby-soft);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.schedule-alert__label img {
  width: 76px;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(33, 23, 27, 0.14));
}

.schedule-alert__item {
  padding: 20px;
}

.schedule-alert__item + .schedule-alert__item {
  border-left: 1px solid var(--line);
}

.schedule-alert__type {
  margin: 0 0 5px;
  color: var(--ruby-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.schedule-alert h3 {
  margin: 0 0 7px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.12;
}

.schedule-alert p:not(.schedule-alert__type) {
  margin: 0;
  color: #3c3438;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.3;
}

.schedule-alert p + p {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 800;
}

.reminder-strip {
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, var(--ruby-soft));
}

.time-control {
  display: grid;
  gap: 6px;
  min-width: 128px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.learning-panel {
  margin-top: 18px;
}

.learning-panel:not(.library-panel) {
  position: relative;
  overflow: hidden;
  margin: 26px -10px 0;
  padding: 28px;
  border: 1px solid rgba(111, 0, 50, 0.24);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(71, 0, 31, 0.12);
}

.learning-panel:not(.library-panel)::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--ruby), var(--gold));
}

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

.cue-card,
.library-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.cue-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.learning-panel:not(.library-panel) .cue-card {
  border-color: rgba(111, 0, 50, 0.22);
  box-shadow: 0 10px 26px rgba(33, 23, 27, 0.08);
}

.library-card__type {
  display: none;
  width: fit-content;
  margin: 0 0 8px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--ruby-dark);
  background: var(--ruby-soft);
  font-size: 0.72rem;
  font-weight: 900;
}

.cue-card__type {
  margin: 0 0 6px;
  color: var(--ruby-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.cue-card h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.cue-card p:not(.cue-card__type),
.library-card__body p {
  color: #3c3438;
  font-size: 0.92rem;
  line-height: 1.42;
}

.cue-card p:not(.cue-card__type) {
  margin-bottom: 14px;
}

.library-card__body p {
  margin: 0 0 8px;
}

.cue-card ul,
.library-card__body ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #3c3438;
  font-size: 0.9rem;
  line-height: 1.35;
}

.cue-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 38px;
  margin-top: auto;
  padding-top: 18px;
}

.drill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  min-height: 38px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: var(--ruby);
  background: var(--ruby-soft);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.drill-link--secondary {
  color: var(--white);
  background: var(--ruby);
  text-decoration: none;
}

.modal-open {
  overflow: hidden;
}

.drill-modal[hidden],
.video-modal[hidden] {
  display: none;
}

.drill-modal,
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
}

.drill-modal__backdrop,
.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(33, 23, 27, 0.62);
}

.drill-modal__panel,
.video-modal__panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: clamp(20px, 4vw, 30px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.video-modal__panel {
  width: min(920px, 100%);
}

.drill-modal__close,
.video-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: var(--ruby-dark);
  background: var(--ruby-soft);
  font-size: 1.4rem;
  font-weight: 900;
}

.drill-modal__type,
.video-modal__type {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--ruby-dark);
  background: var(--ruby-soft);
  font-size: 0.76rem;
  font-weight: 900;
}

.drill-modal h2,
.video-modal h2 {
  margin: 0 44px 10px 0;
}

.video-modal__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #171014;
}

.video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal__fallback {
  display: inline-flex;
  margin-top: 14px;
  color: var(--ruby-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.drill-modal__summary {
  color: #3c3438;
  font-size: 1rem;
  line-height: 1.45;
}

.drill-modal__body {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.drill-modal__body section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fdfcfd;
}

.drill-modal__body h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.drill-modal__body ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: #3c3438;
  line-height: 1.38;
}

.library-panel {
  padding-top: 2px;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.library-card {
  overflow: hidden;
  scroll-margin-top: 18px;
}

.library-card summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 20px 20px 8px;
  list-style: none;
  cursor: pointer;
}

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

.library-card__title {
  padding-right: 0;
  color: var(--ruby-dark);
  font-size: 1.18rem;
  line-height: 1.12;
}

.library-card__body {
  padding: 0 20px 20px;
}

.library-card__body h4 {
  margin: 10px 0 7px;
  font-size: 0.9rem;
}

.source-link {
  display: inline;
  color: var(--ruby-dark);
  font-size: inherit;
  font-weight: 900;
  line-height: inherit;
  text-decoration: underline;
  white-space: nowrap;
}

.stretch-view {
  width: min(1120px, calc(100% - 32px));
  margin: -24px auto 0;
  padding-bottom: 44px;
  position: relative;
  z-index: 2;
}

.stretch-view__inner {
  padding: 26px;
  border: 1px solid rgba(216, 225, 220, 0.9);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.stretch-view .section-heading {
  align-items: center;
  margin: 0 0 18px;
  padding-bottom: 8px;
}

.learning-panel:not(.library-panel) > .section-heading h2,
.stretch-view .section-heading h2,
.nutrition-intro h2 {
  margin: 0 0 8px;
  color: var(--ruby-dark);
  font-size: clamp(1.45rem, 2.7vw, 2.2rem);
  line-height: 1;
}

.section-note,
.stretch-note,
.nutrition-intro p {
  margin: 0;
  color: #3c3438;
  font-size: 0.96rem;
  font-weight: 300;
  line-height: 1.42;
}

.stretch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.stretch-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.stretch-card__number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--ruby);
  font-size: 0.78rem;
  font-weight: 900;
}

.stretch-card h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  text-transform: uppercase;
}

.stretch-card p {
  margin-bottom: 0;
  color: #3c3438;
  font-size: 0.9rem;
  line-height: 1.38;
  font-weight:400;
}

.stretch-card__time {
padding-bottom:10px;
font-style: italic;
  color: var(--ruby-dark);
  font-weight: 900;
}

.stretch-card__watch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  min-height: 38px;
  margin-top: 12px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: var(--ruby);
  background: var(--ruby-soft);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.stretch-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.video-card h4 {
  margin: 0;
  padding: 12px 12px 8px;
  font-size: 0.92rem;
}

.video-card iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: var(--silver-soft);
}

.nutrition-page {
  width: min(1120px, calc(100% - 32px));
  margin: -24px auto 0;
  padding: 26px 26px 48px;
  border: 1px solid rgba(216, 225, 220, 0.9);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}

.nutrition-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 8px;
}

.nutrition-intro .ghost-link {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--ruby-dark);
  background: transparent;
  text-decoration: underline;
}

.nutrition-actions,
.snack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-link,
.ghost-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.primary-link {
  color: var(--ruby-dark);
  background: var(--white);
}

.ghost-link {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.nutrition-grid,
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.nutrition-grid--compact {
  align-items: stretch;
}

.nutrition-card,
.timeline-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px rgba(33, 23, 27, 0.08);
}

.nutrition-card--feature {
  grid-row: span 2;
}

.nutrition-card h2,
.timeline-card h3,
.fueling-timeline h2 {
  margin: 0 0 10px;
}

.nutrition-card p:not(.eyebrow),
.timeline-card li {
  color: #3c3438;
  line-height: 1.45;
}

.nutrition-card ul,
.timeline-card ol {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
}

.plate-visual {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.plate-visual span {
  display: grid;
  min-height: 116px;
  place-items: center;
  padding: 12px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ruby);
  font-weight: 900;
  text-align: center;
}

.plate-visual span:nth-child(2) {
  color: var(--ink);
  background: var(--gold);
}

.plate-visual span:nth-child(3) {
  color: var(--ruby-dark);
  background: var(--ruby-soft);
}

.fueling-timeline {
  margin-top: 28px;
}

.snack-row {
  margin-top: 14px;
}

.snack-row span {
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--ruby-dark);
  background: var(--ruby-soft);
  font-size: 0.8rem;
  font-weight: 900;
}

.day-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.day-card.is-today {
  border-color: var(--ruby);
  box-shadow: inset 0 0 0 2px rgba(111, 0, 50, 0.12);
}

.day-card.is-rest {
  background: var(--silver-soft);
}

.day-card.is-complete {
  border-color: rgba(111, 0, 50, 0.45);
  background: var(--ruby-soft);
}

.day-card__date {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
}

.day-card__name {
  margin: 0;
  font-size: 1rem;
}

.day-card__toggle {
  width: 34px;
  height: 34px;
  color: var(--ruby-dark);
  background: var(--silver-soft);
}

.day-card.is-complete .day-card__toggle {
  color: var(--white);
  background: var(--ruby);
}

.day-card__workouts {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: #3c3438;
  font-size: 0.9rem;
  line-height: 1.18;
}

.day-card__workouts a {
  color: inherit;
  text-decoration-color: rgba(111, 0, 50, 0.42);
  text-underline-offset: 2px;
}

.day-card__workouts a:hover,
.day-card__workouts a:focus-visible {
  color: var(--ruby-dark);
}

.install-prompt {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 20;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px;
  border: 1px solid rgba(111, 0, 50, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.install-prompt__icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.install-prompt__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.install-prompt__copy h2 {
  margin: 0 0 5px;
  color: var(--ruby-dark);
  font-size: 1rem;
  line-height: 1.15;
}

.install-prompt__copy p:not(.eyebrow) {
  margin: 0;
  color: #3c3438;
  font-size: 0.9rem;
  line-height: 1.35;
}

.install-prompt__actions {
  display: flex;
  gap: 8px;
}

.install-prompt .primary-button,
.install-prompt .ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  max-width: min(360px, calc(100vw - 36px));
  padding: 13px 15px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ruby-dark);
  box-shadow: var(--shadow);
  font-weight: 800;
}

@media (max-width: 940px) {
  .workspace {
    grid-template-columns: 1fr;
  }

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

  .cue-grid,
  .library-grid,
  .stretch-grid,
  .stretch-video-grid,
    .nutrition-grid,
    .timeline-grid {
    grid-template-columns: 1fr;
  }

  .schedule-alert {
    grid-template-columns: 1fr;
  }

  .schedule-alert__label {
    min-height: 72px;
  }

  .schedule-alert__item + .schedule-alert__item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .nutrition-card--feature {
    grid-row: auto;
  }

  .nav-label--full {
    display: none;
  }

  .nav-label--short {
    display: inline;
  }
}

@media (max-width: 620px) {
  .hero {
    display: block;
    min-height: 0;
    overflow: visible;
    background: var(--ruby-dark);
  }

  .hero__image {
    display: block;
    height: auto;
    object-fit: contain;
    object-position: center top;
  }

  .hero__shade {
    display: none;
  }

  .hero__content {
    width: 100%;
    padding: 14px 16px 18px;
    background: var(--ruby-dark);
  }

  .hero__content h1 {
    display: none;
  }

  .hero-nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.14);
  }

  .hero-nav a {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 8px;
    font-size: 0.8rem;
  }

  .workspace {
    width: min(100% - 20px, 1120px);
    margin-top: -14px;
  }

  .learning-panel:not(.library-panel) {
    margin-right: 0;
    margin-left: 0;
    padding: 22px;
  }

  .stretch-view {
    width: min(100% - 20px, 1120px);
    margin-top: -14px;
  }

  .stretch-view .section-heading {
    display: block;
  }

  .stretch-view .section-heading > div {
    width: 100%;
  }

  .stretch-note {
    display: inline;
  }

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

  .reminder-strip,
  .toolbar,
  .action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .cue-card__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .drill-link {
    width: 100%;
  }

  .toolbar__actions {
    align-self: flex-start;
  }

  .secondary-button,
  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .install-prompt {
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
  }

  .install-prompt__icon {
    width: 48px;
    height: 48px;
  }

  .install-prompt__actions {
    grid-column: 1 / -1;
    flex-direction: column;
  }

  .nutrition-page {
    width: min(100% - 20px, 1120px);
    margin-top: -14px;
    padding: 22px 22px 40px;
  }

  .nutrition-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .plate-visual {
    grid-template-columns: 1fr;
  }
}
