/* Пастельно-розовая тема: одна на все устройства, поэтому тёмного режима нет намеренно.
   София — малиновый, Влад — барвинковый. Цвета проверены на различимость при дальтонизме.
   Вёрстка рассчитана сначала на телефон, компьютер — дополнение в конце файла. */
:root {
  color-scheme: only light;
  --wall: #FFF6F8;
  --wall-deep: #FCE8EE;
  --card: #FFFFFF;
  --ink: #4A2338;
  --ink-soft: #7D4F68;
  --rule: #F6DAE3;
  --arch-top: #F7C5D5;
  --arch-bottom: #FDE6EC;
  --on-arch-soft: #7A4560;
  --rose: #B02A62;
  --blush: #F9CFDB;
  --gold: #EBAE33;
  --gold-line: #C98A12;
  --sofia: #D6336C;
  --vlad: #5468D4;
  --sofia-soft: rgb(214 51 108 / 0.3);
  --vlad-soft: rgb(84 104 212 / 0.3);
  --sofia-tint: #FDE3EC;
  --vlad-tint: #E7EAFB;
  --plan-line: #B98BA3;
  --star-line: #E3A3B9;
  --shadow: 0 6px 18px rgb(176 42 98 / 0.1);
  --display: 'Cormorant Infant', 'Times New Roman', serif;
  --body: 'Nunito', system-ui, -apple-system, sans-serif;
  --nav-height: 62px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  font-variant-numeric: lining-nums;
}
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
button, label, a { touch-action: manipulation; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; border-radius: 6px; }
#view:focus { outline: none; }
.muted { color: var(--ink-soft); font-size: 0.9375rem; }

.brand {
  padding-top: calc(10px + env(safe-area-inset-top));
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.2;
  text-align: center;
  color: var(--rose);
}

/* ---------- навигация: на телефоне снизу, под большим пальцем ---------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -4px 20px rgb(176 42 98 / 0.1);
}
.tabs a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 50px;
  padding: 4px 2px;
  border-radius: 16px;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs a[aria-current='page'] { background: var(--wall-deep); color: var(--rose); }

#view { padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom)); }

/* ---------- арка со звёздами ---------- */
.niche-wrap {
  container-type: inline-size;
  max-width: 660px;
  margin: 8px auto 0;
  padding-inline: 12px;
}
.niche {
  position: relative;
  background: linear-gradient(180deg, var(--arch-top) 0, var(--arch-bottom) 100%);
  border-radius: 50cqw 50cqw 28px 28px;
  box-shadow: var(--shadow);
}
/* Свод лежит поверх текста, но нажимается только полоса со звёздами. */
.vault {
  position: absolute; inset: 0 0 auto 0; z-index: 1;
  width: 100%; height: auto; display: block; overflow: visible;
  pointer-events: none;
  touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
#vault-band { fill: transparent; pointer-events: all; cursor: pointer; }
.vault-star.future .star { opacity: 0.75; }
.vault-star .ring { fill: #fff; stroke: var(--rose); stroke-width: 2.5; }
.vault-star .today-ring { fill: none; stroke: var(--rose); stroke-width: 2; stroke-dasharray: 1 5; stroke-linecap: round; }
#vault-preview { fill: rgb(255 255 255 / 0.85); stroke: var(--rose); stroke-width: 2.5; }
.vault-label {
  position: absolute; z-index: 2; left: 50%; top: 16cqw; transform: translateX(-50%);
  padding: 3px 12px;
  background: var(--card);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}

.star .half { fill: #fff; transition: fill 0.25s ease; }
.star .half-s.on { fill: var(--sofia); }
.star .half-v.on { fill: var(--vlad); }
.star.both .half.on { fill: var(--gold); }
.star .star-outline { fill: none; stroke: var(--star-line); stroke-width: 1; stroke-linejoin: round; }
.star.both .star-outline { stroke: var(--gold-line); }
.star-icon { display: block; }

.niche-body {
  position: relative;
  padding: 29cqw clamp(16px, 6cqw, 48px) 14px;
  text-align: center;
}
.niche-date { font-family: var(--display); font-weight: 700; font-size: clamp(1.3125rem, 5.6cqw, 2rem); line-height: 1.15; }
.niche-day { color: var(--on-arch-soft); font-size: 0.8125rem; margin-top: 2px; }
/* Отступы по бокам не дают тексту заехать на нижние звёзды свода. */
.phase { margin-top: 12px; padding-inline: 11cqw; color: var(--rose); font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }

.reading { margin: clamp(22px, 7cqw, 40px) 0 0; font-size: clamp(1.875rem, 7.4cqw, 2.75rem); line-height: 1.12; }
.reading-part { display: block; }
.reading-part + .reading-part { margin-top: 16px; }
.reading-part.long { font-size: 0.74em; line-height: 1.2; }
.reading-part.long .testament { font-size: 0.8125rem; }
.reading a { color: var(--ink); text-decoration-color: var(--rose); }
.testament {
  display: block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--on-arch-soft);
}
.reading-size { margin-top: 14px; color: var(--on-arch-soft); font-size: 0.8125rem; }

.toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; text-align: left; }
.toggle {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  min-height: 64px;
  padding: 10px;
  background: var(--card);
  border-radius: 22px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background 0.2s ease;
}
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle .seal {
  flex: none;
  width: 36px; height: 36px;
  border: 2px solid var(--person);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background 0.2s ease;
}
.toggle .seal svg { width: 24px; height: 24px; fill: #fff; opacity: 0; }
.toggle.on { background: var(--tint); }
.toggle.on .seal { background: var(--person); }
.toggle.on .seal svg { opacity: 1; animation: pop 0.3s ease; }
.toggle-sofia { --person: var(--sofia); --tint: var(--sofia-tint); }
.toggle-vlad { --person: var(--vlad); --tint: var(--vlad-tint); }
.toggle-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.toggle-text strong { font-family: var(--display); font-weight: 700; font-size: 1.375rem; }
.toggle-text span { font-size: 0.8125rem; color: var(--ink-soft); }
.toggle input:focus-visible ~ .seal { outline: 2px solid var(--rose); outline-offset: 3px; }
@keyframes pop { from { transform: scale(0.3); } 70% { transform: scale(1.2); } to { transform: scale(1); } }

.day-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 4px; margin-top: 8px; font-size: 0.875rem; font-weight: 600; color: var(--on-arch-soft); align-items: center; }
.day-nav a { display: block; text-decoration: none; padding: 12px 4px; white-space: nowrap; }
.day-nav > :first-child { text-align: left; }
.day-nav > :last-child { text-align: right; }

/* ---------- страницы ---------- */
.page { max-width: 660px; margin: 0 auto; padding: 20px 16px 32px; }
.page-wide { max-width: 960px; }
.page-head h1 { font-size: 2.625rem; }
.page-head p { margin-top: 8px; max-width: 62ch; color: var(--ink-soft); }
.section { margin-top: 32px; }
.section > h2, .section-head h2, .chart figcaption h2 { font-size: 1.75rem; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 16px; margin-bottom: 12px; }
.section h3 { font-family: var(--body); font-size: 1rem; font-weight: 700; margin: 20px 0 10px; }
.section > h2 + * { margin-top: 12px; }
.empty { margin-top: 24px; color: var(--ink-soft); }
.pill {
  display: inline-flex; align-items: center;
  min-height: 42px;
  margin-top: 12px;
  padding: 6px 16px;
  background: var(--blush);
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  font: inherit; font-weight: 700; font-size: 0.875rem;
  cursor: pointer;
}

/* ---------- как идут дела ---------- */
.strip { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.strip-person { --person: var(--sofia); padding: 12px; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); min-width: 0; }
.strip-vlad { --person: var(--vlad); }
.strip-person h2 { font-size: 1.4375rem; }
.strip-rank { font-size: 0.8125rem; color: var(--ink-soft); }
.strip-person .muted { font-size: 0.8125rem; line-height: 1.35; }
.strip-pace { margin-top: 4px; font-size: 0.875rem; font-weight: 700; }
.meter { height: 8px; background: var(--wall-deep); border-radius: 4px; margin: 8px 0 6px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--person); border-radius: 4px; transition: width 0.3s ease; }
.person-sofia { --person: var(--sofia); }
.person-vlad { --person: var(--vlad); }

/* ---------- факты ---------- */
.facts { display: grid; gap: 10px; }
.fact { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); }
.fact.opened, .fact.locked { padding: 14px 16px; }
.fact-meta { display: block; font-size: 0.8125rem; color: var(--ink-soft); }
.fact-title { display: block; font-family: var(--display); font-size: 1.4375rem; font-weight: 700; line-height: 1.18; }
.fact h3.fact-title { margin: 0; font-family: var(--display); font-size: 1.4375rem; font-weight: 700; }
.fact.opened p { margin-top: 6px; max-width: 66ch; }
.fact.just p { animation: unveil 0.35s ease; }
.fact.locked { background: none; box-shadow: none; border: 1.5px dashed var(--star-line); color: var(--ink-soft); }
.fact-lock { font-size: 0.9375rem; }
.fact.closed { background: var(--wall-deep); box-shadow: none; }
.fact-open {
  display: block; width: 100%;
  padding: 14px 16px;
  background: none; border: 0; border-radius: 20px;
  color: inherit; font: inherit; text-align: left;
  cursor: pointer;
}
.fact-hint { display: inline-block; margin-top: 8px; padding: 3px 14px; background: var(--card); border-radius: 999px; font-size: 0.875rem; font-weight: 700; color: var(--rose); }
@keyframes unveil { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chip {
  min-height: 38px;
  padding: 4px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--wall-deep);
  color: var(--ink);
  font: inherit; font-weight: 600; font-size: 0.875rem;
  cursor: pointer;
}
.chip[aria-pressed='true'] { background: var(--rose); color: #fff; }

/* ---------- что не отмечено и строки плана ---------- */
.catchup, .days { display: grid; gap: 6px; }
.catchup li, .day-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 10px 10px 14px;
  background: var(--card);
  border-radius: 18px;
}
.catchup a { text-decoration: none; display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.catchup a span { font-size: 0.875rem; color: var(--ink-soft); }
.row-toggles { display: flex; gap: 4px; flex: none; }
.mini { position: relative; cursor: pointer; display: block; }
.mini input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.mini span {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 2px solid var(--person);
  border-radius: 50%;
  color: var(--person);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1;
  transition: background 0.15s ease;
}
.mini.on span { background: var(--person); color: #fff; }
.mini-sofia { --person: var(--sofia); }
.mini-vlad { --person: var(--vlad); }
.mini input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }

.months { display: grid; gap: 20px; }
.month { padding: 14px 10px; background: var(--card); border-radius: 24px; box-shadow: var(--shadow); }
.month h3 { margin: 0 0 8px 8px; font-family: var(--display); font-weight: 700; font-size: 1.5rem; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-head { font-size: 0.75rem; color: var(--ink-soft); text-align: center; padding-bottom: 4px; }
.cal-day {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 5px 0 7px;
  text-decoration: none;
  border-radius: 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
}
.cal-day.today { background: var(--blush); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 12px; font-size: 0.875rem; color: var(--ink-soft); }
.legend svg { vertical-align: -4px; margin-right: 2px; }

.stage { scroll-margin-top: 16px; }
.day-row { padding-left: 14px; }
.day-row.today { background: var(--blush); }
.day-link { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.day-when { display: flex; gap: 8px; align-items: baseline; line-height: 1.3; }
.day-when strong { font-weight: 700; font-size: 0.9375rem; }
.day-when span { color: var(--ink-soft); font-size: 0.8125rem; }
.day-what { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; font-size: 0.9375rem; }
.day-what .muted { font-size: 0.875rem; }
.stage-foot { margin-top: 10px; }

/* ---------- статистика ---------- */
.people { display: grid; gap: 12px; margin-top: 16px; }
.person { padding: 16px; background: var(--card); border-radius: 24px; box-shadow: var(--shadow); }
.person h2 { font-size: 2rem; }
.person-rank { color: var(--ink-soft); }
.person-pct { font-family: var(--display); font-weight: 700; font-size: 3.25rem; line-height: 1.05; margin-top: 6px; }
.numbers { margin: 12px 0 0; }
.numbers > div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-top: 1px solid var(--rule); font-size: 0.9375rem; }
.numbers dt { color: var(--ink-soft); }
.numbers dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums lining-nums; }

.chart { margin: 0; }
.chart .legend { margin-top: 6px; margin-bottom: 8px; }
.swatch { display: inline-block; width: 14px; height: 3px; vertical-align: middle; margin-right: 6px; background: var(--c); border-radius: 2px; }
.swatch-sofia { --c: var(--sofia); }
.swatch-vlad { --c: var(--vlad); }
.swatch-plan { --c: var(--plan-line); }
.chart-area { position: relative; }
.chart svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.chart .grid { stroke: var(--rule); stroke-width: 1; }
.chart .axis { fill: var(--ink-soft); font-size: 12px; font-family: var(--body); }
.chart .line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .line-plan { stroke: var(--plan-line); stroke-dasharray: 2 6; stroke-width: 2; }
.chart .line-sofia { stroke: var(--sofia); }
.chart .line-vlad { stroke: var(--vlad); }
.chart .dot { stroke: var(--wall); stroke-width: 2; }
.chart .dot-sofia { fill: var(--sofia); }
.chart .dot-vlad { fill: var(--vlad); }
.chart .direct { fill: var(--ink); font-size: 13px; font-weight: 700; font-family: var(--body); }
.chart .cross { stroke: var(--star-line); stroke-width: 1.5; }
.tooltip {
  position: absolute; top: 8px; z-index: 2;
  min-width: 170px;
  padding: 8px 12px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: 0.8125rem;
  line-height: 1.5;
  pointer-events: none;
}
.tooltip strong { display: block; font-weight: 700; }
.tooltip b { float: right; margin-left: 16px; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }

/* На телефоне таблица этапов превращается в карточки: так не нужно листать её вбок. */
.stages { width: 100%; font-size: 0.9375rem; font-variant-numeric: tabular-nums lining-nums; }
.stages thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.stages, .stages tbody { display: block; }
.stages tr {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 10px;
  margin-bottom: 8px;
  padding: 12px 14px;
  background: var(--card);
  border-radius: 20px;
}
.stages tbody th { grid-column: 1 / -1; font-weight: 700; text-align: left; }
.stages tbody th a { text-decoration: none; }
.stages td { display: flex; flex-direction: column; line-height: 1.25; font-weight: 700; }
.stages td::before { content: attr(data-label); font-weight: 400; font-size: 0.75rem; color: var(--ink-soft); }
.stages .st-upcoming { opacity: 0.72; }
.stages .st-active { background: var(--blush); }

.stage-numbers { margin: 12px 0 0; padding: 14px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); }
.stage-numbers dt { font-size: 0.8125rem; color: var(--ink-soft); }
.stage-numbers dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.3125rem; line-height: 1.2; }

.shelf { display: flex; flex-wrap: wrap; gap: 8px 3px; align-items: flex-end; }
.spine {
  position: relative;
  height: 128px;
  padding: 0;
  border: 0;
  background: var(--spine, var(--wall-deep));
  border-radius: 8px 8px 3px 3px;
  overflow: hidden;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.spine:nth-child(3n + 2) { --spine: #FDE9DF; }
.spine:nth-child(3n) { --spine: #F2E5F6; }
.spine .fill { position: absolute; bottom: 0; width: 50%; transition: height 0.3s ease; }
.fill-sofia { left: 0; background: var(--sofia-soft); }
.fill-vlad { right: 0; background: var(--vlad-soft); }
.spine-name {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.award { display: flex; flex-direction: column; line-height: 1.3; padding: 10px 12px; color: var(--ink-soft); background: var(--wall-deep); border-radius: 18px; opacity: 0.8; }
.award strong { font-weight: 700; font-size: 0.875rem; }
.award .muted { font-size: 0.75rem; }
.award.earned { color: var(--ink); background: var(--card); box-shadow: var(--shadow); opacity: 1; }
.owners { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.owner { font-style: normal; font-weight: 700; font-size: 0.75rem; padding: 0 8px; border-radius: 999px; color: #fff; line-height: 1.6; }
.owner-sofia { background: var(--sofia); }
.owner-vlad { background: var(--vlad); }
.owner-team { background: #94640F; }

/* ---------- всплывающие сообщения и вспышка ---------- */
.toasts {
  position: fixed; left: 50%; bottom: calc(var(--nav-height) + 12px + env(safe-area-inset-bottom)); z-index: 30;
  transform: translateX(-50%);
  display: grid; gap: 8px;
  width: min(92vw, 420px);
  pointer-events: none;
}
.toast { padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 18px; font-size: 0.9375rem; font-weight: 600; line-height: 1.35; box-shadow: var(--shadow); }
.toast.award { background: var(--rose); }
.toast.error { background: #BF2F4B; }

.burst { position: fixed; inset: 0; pointer-events: none; z-index: 20; }
.burst i {
  position: absolute;
  width: 18px; height: 18px; margin: -9px;
  background: var(--sofia);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  animation: fly 0.9s ease-out forwards;
}
.burst i:nth-child(3n) { background: var(--gold); }
.burst i:nth-child(3n + 1) { background: var(--arch-top); }
@keyframes fly {
  from { transform: translate(0, 0) scale(0.4); opacity: 1; }
  to { transform: translate(var(--dx), var(--dy)) scale(1.2) rotate(90deg); opacity: 0; }
}

/* ---------- узкие телефоны ---------- */
@media (max-width: 350px) {
  .toggle { padding: 8px; gap: 6px; }
  .toggle .seal { width: 30px; height: 30px; }
  .toggle-text strong { font-size: 1.25rem; }
  .mini span { width: 40px; height: 40px; }
}

/* ---------- компьютер ---------- */
@media (hover: hover) {
  .tabs a:hover { color: var(--ink); }
  .reading a:hover, .day-nav a:hover { color: var(--rose); }
  .fact-open:hover .fact-title { color: var(--rose); }
  .day-link:hover .day-what > :first-child { text-decoration: underline; }
  .cal-day:hover { background: var(--wall-deep); }
  .toggle:hover { box-shadow: 0 8px 22px rgb(176 42 98 / 0.18); }
}

@media (min-width: 760px) {
  :root { --nav-height: 0px; }
  .brand { padding-top: 72px; }
  .tabs {
    position: fixed; top: 12px; bottom: auto; left: 50%; right: auto;
    transform: translateX(-50%);
    display: flex; justify-content: center;
    width: max-content;
    padding: 6px;
    border-radius: 999px;
    box-shadow: var(--shadow);
  }
  .tabs a { flex-direction: row; gap: 6px; min-height: 40px; padding: 4px 16px; border-radius: 999px; font-size: 0.9375rem; }
  .tabs svg { width: 18px; height: 18px; }
  .toasts { bottom: 20px; }
  .page { padding-bottom: 64px; }
  .stage { scroll-margin-top: 80px; }
  .months { grid-template-columns: 1fr 1fr; }
  .people { grid-template-columns: 1fr 1fr; }
  .day-link { flex-direction: row; gap: 14px; align-items: baseline; }
  .day-when { flex-direction: column; gap: 0; width: 66px; flex: none; }
  .stages tr { grid-template-columns: 2.4fr repeat(6, 1fr); align-items: center; }
  .stages tbody th { grid-column: auto; }
  .stage-numbers { grid-template-columns: repeat(3, 1fr); }
}

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