/* Plans and progress screens — Calendar D2 */
.new-page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 30px 40px 64px;
}

/* Strength logging and sport-specific Results, using existing PaceForm surfaces. */
.day-card.multi .workout-card {
  margin-top: 10px;
  padding: 7px 9px;
}
.day-card.multi .workout-card:first-of-type {
  margin-top: 18px;
}
.day-card.multi .workout-title {
  min-height: 0;
  margin-bottom: 4px;
}
.gym-detail-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 28px;
}
.gym-detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #4a4e4a;
  font-size: 13px;
}
.gym-detail-list strong {
  font-weight: 500;
}
.gym-detail-list span {
  flex: none;
  color: #abb0aa;
}
#gym-session-dialog {
  width: min(760px, calc(100vw - 24px));
  max-height: min(850px, calc(100vh - 28px));
  overflow-y: auto;
}
.gym-session-intro,
.gym-storage-warning {
  color: #646b64;
  line-height: 1.5;
}
.gym-storage-warning {
  padding: 10px 12px;
  border: 1px solid #e6ab9c;
  border-radius: 8px;
  background: #fdf0ed;
}
.gym-exercises {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.gym-exercise {
  padding: 16px;
  border: 1px solid #d9ddd7;
  border-radius: 12px;
  background: #f2f4f1;
}
.gym-exercise-head,
.gym-session-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.gym-exercise-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}
.gym-exercise-head span,
.gym-session-actions span {
  color: #6e746d;
  font-size: 13px;
}
.gym-set-row {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) minmax(0, 1fr) auto 28px;
  align-items: end;
  gap: 8px;
  margin-top: 12px;
}
.gym-set-number {
  align-self: center;
  color: #6e746d;
  font:
    13px "Space Mono",
    monospace;
}
.gym-set-row label,
.gym-add-exercise label,
.strength-result-filters label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #6e746d;
  font-size: 12px;
}
.gym-set-row input,
.gym-add-exercise input,
.strength-result-filters select {
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid #cfd5ce;
  border-radius: 7px;
  background: #fbfcfa;
  color: #242421;
  font: inherit;
}
.gym-set-save,
.gym-set-clear,
.gym-add-set {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #cfd5ce;
  border-radius: 7px;
  background: #fbfcfa;
  color: #242421;
}
.gym-set-clear {
  padding: 0;
  font-size: 20px;
}
.gym-add-set {
  margin-top: 14px;
  background: transparent;
}
.gym-add-exercise {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin-top: 18px;
}
.gym-session-actions {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #d9ddd7;
}
.results-sport-select {
  cursor: pointer;
  font: inherit;
}
.strength-result-card,
.running-result-card,
.recovery-sample {
  padding: 26px 32px;
}
.strength-result-head,
.strength-result-filters,
.strength-summary,
.running-metric-switch {
  display: flex;
  gap: 14px;
}
.strength-result-head {
  align-items: end;
  justify-content: space-between;
}
.strength-result-head h2 {
  margin: 8px 0;
}
.strength-result-head p {
  color: #6e746d;
}
.strength-result-filters select {
  min-width: 145px;
}
.strength-result-filters label:last-child select {
  min-width: 75px;
}
.sample-data-label {
  display: inline-block;
  margin-top: 20px;
  color: #757a73;
  font:
    11px "Space Mono",
    monospace;
}
.strength-summary {
  margin-top: 24px;
  gap: 40px;
}
.strength-summary > div {
  display: grid;
  gap: 5px;
}
.strength-summary small {
  color: #757a73;
  font:
    11px "Space Mono",
    monospace;
}
.strength-summary strong {
  font-size: 29px;
  font-weight: 500;
}
.gym-result-chart {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
  height: 278px;
  margin-top: 30px;
  border-bottom: 1px solid #c3c8c1;
}
.gym-result-chart:has(.gym-result-week:nth-child(4):last-child) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.gym-result-week {
  display: grid;
  grid-template-rows: 16px 220px 40px;
  justify-items: center;
  min-width: 0;
}
.gym-result-value,
.gym-result-week > span:last-child {
  color: #6e746d;
  font:
    11px "Space Mono",
    monospace;
  white-space: nowrap;
}
.gym-bar-slot {
  display: flex;
  align-items: end;
  justify-content: center;
  width: 100%;
}
.gym-bar-slot i {
  width: min(50px, 75%);
  border-radius: 5px 5px 0 0;
  background: #7695c9;
}
.gym-result-week > span:last-child {
  margin-top: 12px;
}
.strength-no-data {
  padding: 48px 0 28px;
}
.strength-no-data h3 {
  font-size: 20px;
}
.strength-no-data p {
  max-width: 52ch;
  margin: 8px 0 20px;
  color: #6e746d;
}
.running-result-card {
  margin-top: 24px;
}
.running-metric-switch {
  gap: 3px;
  padding: 3px;
  border: 1px solid #d9ddd7;
  border-radius: 9px;
}
.running-metric-switch button {
  padding: 7px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #6e746d;
}
.running-metric-switch button.active {
  background: #d8ff4a;
  color: #242421;
}
.running-chart {
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr);
  gap: 12px;
  height: 305px;
  margin-top: 35px;
}
.running-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 250px;
  color: #6e746d;
  font:
    11px "Space Mono",
    monospace;
}
.running-plot svg {
  display: block;
  width: 100%;
  height: 250px;
  overflow: visible;
  border-bottom: 1px solid #c3c8c1;
  background: repeating-linear-gradient(
    to bottom,
    #e3e6e1 0 1px,
    transparent 1px 83px
  );
}
.running-plot svg path {
  fill: none;
  stroke: #7695c9;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}
.running-plot svg circle {
  fill: #7695c9;
}
.running-x-axis {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  margin-top: 13px;
  color: #6e746d;
  font:
    11px "Space Mono",
    monospace;
  text-align: center;
}
.running-x-axis:has(span:nth-child(4):last-child) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.results-summary strong span {
  font-size: 16px;
}
.recovery-sample {
  margin-top: 24px;
}
.recovery-sample .sample-data-label {
  margin-top: 0;
}
.recovery-days {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}
.recovery-days > div {
  display: grid;
  gap: 11px;
  padding: 18px;
  border: 1px solid #d9ddd7;
  border-radius: 10px;
  background: #f0f2ef;
}
.recovery-days strong {
  margin-bottom: 5px;
  font-weight: 500;
}
.recovery-days span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #6e746d;
}
.recovery-days b {
  color: #242421;
  font-weight: 500;
}
@media (max-width: 800px) {
  .strength-result-head,
  .gym-session-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .strength-result-filters,
  .recovery-days {
    grid-template-columns: 1fr;
  }
  .strength-result-filters {
    display: grid;
  }
  .gym-set-row {
    grid-template-columns: 20px 1fr 1fr;
  }
  .gym-set-save,
  .gym-set-clear {
    grid-column: auto;
  }
  .running-chart,
  .gym-result-chart {
    min-width: 520px;
  }
  .running-result-card,
  .strength-result-card {
    overflow-x: auto;
  }
}
.new-page button {
  cursor: pointer;
}
.new-page h1,
.new-page h2,
.new-page p {
  margin: 0;
}
.new-page h1 {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.035em;
}
.new-page h2 {
  font-size: 25px;
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.02em;
}
.new-page .eyebrow {
  font:
    11px "Space Mono",
    monospace;
  letter-spacing: 0.025em;
  color: #6e746d;
}
.new-page .muted {
  color: #6e746d;
}
.new-page-head,
.progress-head,
.detail-plan-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.new-page-head h1,
.progress-head h1 {
  margin: 14px 0 10px;
}
.new-page-head .muted,
.progress-head .muted {
  font-size: 16px;
}
.lime-button,
.light-button {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 11px;
  font-weight: 500;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.lime-button {
  border: 1px solid #d8ff4a;
  background: #d8ff4a;
  color: #242421;
}
.lime-button:hover {
  background: #c9f238;
}
.light-button {
  border: 1px solid #d9ddd7;
  background: #f8f9f6;
  color: #242421;
}
.light-button:hover {
  border-color: #aeb5ac;
}
.text-button {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}
.new-page-head .create-plan {
  min-width: 220px;
  margin-top: 38px;
}
.plans-top {
  display: grid;
  grid-template-columns: minmax(340px, 452px) minmax(0, 1fr);
  gap: 24px;
  margin-top: 30px;
  align-items: stretch;
}
.active-plan,
.cycle-card {
  min-width: 0;
  min-height: 520px;
  border-radius: 18px;
}
.active-plan {
  background: #292a2d;
  color: #f7f8f5;
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.active-plan .eyebrow {
  color: #d8ff4a;
}
.active-top,
.plan-week-status,
.cycle-header,
.cycle-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.active-top button {
  border: 0;
  background: transparent;
  color: #f7f8f5;
  font-size: 13px;
}
.active-plan h2 {
  font-size: 36px;
  line-height: 1.1;
  margin-top: 18px;
}
.active-plan > p {
  color: #c3c8c1;
  margin: 5px 0 0;
}
.plan-goal {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 11px 15px;
  margin-top: 16px;
  min-height: 68px;
  border: 1px solid #5d615d;
  border-radius: 12px;
  background: #343638;
}
.plan-goal span,
.plan-goal strong {
  grid-column: 1;
}
.plan-goal span {
  color: #c3c8c1;
  font-size: 13px;
}
.plan-goal strong {
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.plan-goal button {
  grid-column: 2;
  grid-row: 1;
  padding: 0;
  border: 0;
  background: none;
  color: #d8ff4a;
  font-size: 13px;
}
.plan-week-status {
  margin-top: 19px;
  font-size: 14px;
}
.plan-week-status strong {
  font-weight: 500;
}
.plan-week-status span {
  color: #c3c8c1;
}
.plan-progress {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 5px;
  margin: 15px 0 9px;
}
.plan-progress span {
  height: 9px;
  background: #55585a;
  border-radius: 8px;
}
.plan-progress .done {
  background: #d8ff4a;
}
.plan-progress .current {
  box-shadow: inset 0 0 0 1px #d8ff4a;
}
.active-plan > small {
  color: #c3c8c1;
}
.next-workout {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  margin-bottom: 16px;
  padding: 12px 15px;
  background: #343638;
  border: 1px solid #5d615d;
  border-radius: 12px;
}
.next-workout small {
  color: #c3c8c1;
}
.next-workout strong {
  font-size: 15px;
  font-weight: 500;
}
.active-plan .full {
  width: 100%;
  min-height: 52px;
}
.cycle-card {
  padding: 28px;
  border: 1px solid #d9ddd7;
  background: #f8f9f6;
  display: flex;
  flex-direction: column;
}
.cycle-header small {
  color: #6e746d;
  font:
    11px "Space Mono",
    monospace;
}
.cycle-header h2 {
  margin-top: 5px;
}
.cycle-header > span {
  color: #8b918a;
  font-size: 13px;
  text-align: right;
}
.cycle-card > p {
  margin-top: 8px;
  font-size: 14px;
}
.cycle-chart {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  margin-top: 16px;
}
.cycle-week {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  height: 220px;
  padding: 9px 6px;
  border: 1px solid #e1e5de;
  border-radius: 9px;
  background: #eef0ed;
  text-align: center;
}
.cycle-week.selected {
  border-color: #b8e34b;
  background: #f7f9ee;
}
.cycle-week:hover {
  border-color: #b8e34b;
}
.cycle-number {
  align-self: flex-start;
  white-space: nowrap;
  font:
    10px "Space Mono",
    monospace;
  color: #6e746d;
}
.cycle-bar {
  width: min(50px, 85%);
  min-height: 18px;
  margin-top: auto;
  margin-bottom: 9px;
  border-radius: 5px 5px 2px 2px;
}
.cycle-bar.base {
  background: #4e8b7e;
}
.cycle-bar.tempo {
  background: #e5b75b;
}
.cycle-bar.easy {
  background: #7695c9;
}
.cycle-bar.hard {
  background: #e6625e;
}
.cycle-week strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.18;
}
.cycle-week small {
  color: #6e746d;
  white-space: nowrap;
  font-size: 11px;
}
.cycle-footer {
  align-items: flex-start;
  flex-direction: column;
  position: relative;
  gap: 3px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid #d9ddd7;
  font-size: 14px;
}
.cycle-footer strong {
  font-weight: 500;
}
.cycle-footer span {
  color: #6e746d;
}
.cycle-footer button {
  position: absolute;
  right: 0;
  bottom: 0;
  border: 0;
  padding: 0;
  background: transparent;
}
.my-plans-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 26px 0 14px;
}
.my-plans-head span {
  color: #6e746d;
  font-size: 13px;
}
.plan-list {
  display: grid;
  gap: 12px;
}
.plan-list-row {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 82px;
  padding: 12px 20px;
  border: 1px solid #d9ddd7;
  border-radius: 12px;
  background: #f8f9f6;
  text-align: left;
}
.plan-list-row:hover {
  border-color: #aeb5ac;
}
.plan-list-number {
  display: grid;
  flex: 0 0 45px;
  place-items: center;
  height: 45px;
  background: #e4e8e2;
  border-radius: 10px;
  color: #6e746d;
  font:
    12px "Space Mono",
    monospace;
}
.plan-list-number.dark {
  background: #292a2d;
  color: #f7f8f5;
}
.plan-list-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.plan-list-text strong {
  font-weight: 500;
}
.plan-list-text small {
  color: #6e746d;
}
.plan-list-progress {
  width: 220px;
  color: #6e746d;
  font-size: 12px;
}
.plan-list-progress i {
  display: block;
  width: 100%;
  height: 6px;
  margin-top: 7px;
  border-radius: 6px;
  background: linear-gradient(to right, #d8ff4a 12%, #dfe3dc 12%);
}
.plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 114px;
  padding: 5px 12px;
  border-radius: 20px;
  background: #edf0ec;
  color: #6e746d;
  font-size: 12px;
  white-space: nowrap;
}
.plan-badge.active,
.plan-badge.current {
  background: #edf6e4;
  color: #477c55;
}
.goal-dialog {
  width: min(508px, calc(100vw - 32px));
  padding: 28px;
  border: 1px solid #aeb5ac;
  border-radius: 16px;
  background: #f8f9f6;
  color: #242421;
  box-shadow: 0 18px 60px #24242133;
}
.goal-dialog::backdrop {
  background: #24242166;
}
.goal-dialog h2 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 500;
}
.goal-dialog p {
  margin: 0 0 22px;
  color: #6e746d;
}
.goal-dialog label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}
.goal-dialog input {
  width: 100%;
  min-height: 60px;
  padding: 0 16px;
  border: 1px solid #6e746d;
  border-radius: 10px;
  background: white;
}
.goal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 26px;
}
.goal-actions button {
  min-width: 140px;
}
.back-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #6e746d;
}
.detail-plan-head {
  margin-top: 22px;
}
.detail-plan-head h1 {
  margin: 8px 0 4px;
}
.detail-plan-head p:not(.eyebrow) {
  color: #6e746d;
  margin-top: 5px;
}
.detail-plan-actions {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
}
.detail-plan-actions > div {
  display: flex;
  gap: 12px;
}
.plan-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  min-height: 102px;
  margin-top: 22px;
  padding: 18px 24px;
  border: 1px solid #d9ddd7;
  border-radius: 12px;
  background: #f8f9f6;
}
.plan-stage h2 {
  font-size: 24px;
}
.plan-stage p {
  margin-top: 5px;
  color: #6e746d;
}
.plan-stage small {
  color: #6e746d;
  font:
    11px "Space Mono",
    monospace;
}
.plan-stage .plan-progress span {
  background: #dfe3dc;
}
.plan-stage .plan-progress .done {
  background: #d8ff4a;
}
.plan-stage .plan-progress .current {
  background: #f8f9f6;
}
.plan-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 34px 0 14px;
}
.plan-section-head button {
  border: 0;
  background: transparent;
  color: #6e746d;
}
.plan-weeks {
  display: grid;
  gap: 12px;
}
.plan-week-card {
  border: 1px solid #d9ddd7;
  border-radius: 12px;
  background: #f8f9f6;
  overflow: hidden;
}
.plan-week-card.expanded {
  border-color: #b8e34b;
}
.plan-week-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 82px;
  gap: 20px;
  padding: 12px 20px;
  border: 0;
  background: transparent;
  text-align: left;
}
.plan-week-number {
  display: grid;
  flex: 0 0 50px;
  height: 50px;
  place-items: center;
  border-radius: 9px;
  background: #edf0ec;
  color: #6e746d;
  font:
    13px "Space Mono",
    monospace;
}
.plan-week-card.expanded .plan-week-number {
  background: #edf6e4;
  color: #477c55;
}
.plan-week-name {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.plan-week-name strong {
  font-size: 19px;
  font-weight: 500;
}
.plan-week-name small {
  color: #6e746d;
}
.plan-week-trigger .chevron {
  margin-left: 12px;
  font-size: 22px;
  line-height: 1;
}
.plan-week-content {
  margin: 0 20px 20px;
  padding-top: 12px;
  border-top: 1px solid #d9ddd7;
}
.plan-session {
  display: grid;
  grid-template-columns: 110px minmax(220px, 1fr) 140px 105px 126px 22px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 70px;
  margin-bottom: 6px;
  padding: 8px 16px;
  border: 1px solid #e2e5df;
  border-radius: 9px;
  background: #eef0ed;
  text-align: left;
}
.plan-session:hover {
  border-color: #b8e34b;
}
.session-date,
.session-title {
  display: flex;
  flex-direction: column;
}
.session-date {
  font:
    12px "Space Mono",
    monospace;
}
.session-date small,
.session-title small {
  color: #6e746d;
  font:
    12px "DM Sans",
    sans-serif;
}
.session-title strong {
  font-size: 17px;
  font-weight: 500;
}
.session-bars {
  height: 34px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}
.session-bars i {
  display: block;
  flex: 1;
  background: #7695c9;
}
.session-bars.endurance i {
  background: #4e8b7e;
}
.session-bars.threshold i:nth-child(3n) {
  background: #e6625e;
}
.session-load {
  color: #6e746d;
  font-size: 13px;
}
.session-status {
  padding: 4px 6px;
  border-radius: 20px;
  background: #edf6e4;
  color: #477c55;
  font-size: 12px;
  text-align: center;
}
.plan-no-workouts {
  padding: 20px 4px;
  color: #6e746d;
}
.plan-week-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
}
.plan-week-actions .light-button {
  min-width: 240px;
}
.plan-week-actions .text-button {
  color: #6e746d;
}

.progress-head {
  align-items: center;
}
.progress-filters {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}
.progress-filter {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #d9ddd7;
  border-radius: 12px;
  background: #f8f9f6;
  white-space: nowrap;
}
.progress-tabs {
  display: flex;
  gap: 0;
  margin: 26px 0 22px;
}
.progress-tabs button {
  position: relative;
  flex: 0 0 120px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6e746d;
  font-size: 16px;
  text-align: left;
}
.progress-tabs button:nth-child(3) {
  flex-basis: 142px;
}
.progress-tabs button:nth-child(4) {
  flex-basis: 190px;
}
.progress-tabs .active {
  color: #242421;
}
.progress-tabs .active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 62px;
  height: 2px;
  border-radius: 2px;
  background: #242421;
}
.progress-tabs button:nth-child(3).active::after {
  width: 92px;
}
.progress-tabs button:nth-child(4).active::after {
  width: 147px;
}
.progress-card,
.overview-card {
  min-width: 0;
  border: 1px solid #d9ddd7;
  border-radius: 16px;
  background: #f8f9f6;
}
.progress-card h2,
.overview-card h2 {
  font-size: 25px;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.046fr);
  gap: 19px;
}
.overview-card {
  display: flex;
  flex-direction: column;
  min-height: 426px;
  padding: 25px;
}
.overview-card > strong {
  display: block;
  margin-top: 28px;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.1;
}
.overview-card > p {
  color: #6e746d;
}
.overview-card .overview-secondary {
  margin-top: 32px;
}
.overview-card > button:not(.lime-button) {
  align-self: flex-start;
  margin-top: auto;
  padding: 0;
  border: 0;
  background: none;
  font-size: 16px;
}
.overview-card .recovery-teaser {
  margin-top: 36px;
  max-width: 38ch;
}
.overview-card .lime-button {
  align-self: stretch;
  margin-top: auto;
  margin-bottom: 18px;
}
.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  height: 80px;
  margin-top: auto;
  margin-bottom: 26px;
}
.mini-bars span {
  flex: 1;
  max-width: 26px;
  border-radius: 4px 4px 2px 2px;
}
.mini-bars.lime span {
  background: #b8e34b;
}
.mini-bars.blue span {
  background: #7695c9;
}
.changes-card {
  min-height: 246px;
  margin-top: 24px;
  padding: 26px;
}
.changes-card p {
  max-width: 80ch;
  margin-top: 40px;
  font-size: 18px;
}
.changes-card small {
  display: block;
  margin-top: 24px;
  color: #6e746d;
}
.demo-note {
  margin-top: 34px !important;
  text-align: right;
  color: #8b918a;
  font-size: 13px;
}
.volume-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.048fr);
  gap: 20px;
}
.volume-summary .progress-card {
  min-height: 142px;
  padding: 22px 24px;
}
.volume-summary small {
  display: block;
  color: #6e746d;
  font:
    12px "Space Mono",
    monospace;
}
.volume-summary strong {
  display: block;
  margin-top: 10px;
  font-size: 31px;
  font-weight: 500;
  line-height: 1.1;
}
.volume-summary p {
  margin-top: 11px;
  color: #6e746d;
  font-size: 15px;
}
.volume-chart-card,
.result-chart-card {
  margin-top: 24px;
  padding: 24px 32px 22px;
}
.volume-chart-card {
  min-height: 505px;
}
.chart-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.chart-title-row p,
.result-chart-card > p:first-of-type {
  margin-top: 4px;
  color: #6e746d;
}
.chart-legend {
  display: flex;
  gap: 30px;
  color: #6e746d;
}
.chart-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chart-legend i {
  display: block;
  width: 16px;
  height: 12px;
  border-radius: 3px;
}
.chart-legend .planned {
  background: #dce1db;
}
.chart-legend .actual {
  background: #b8e34b;
}
.volume-plot,
.power-plot {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  height: 300px;
  margin-top: 43px;
}
.volume-y-axis,
.power-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 232px;
  padding-top: 0;
  color: #8b918a;
  font:
    12px "Space Mono",
    monospace;
}
.volume-grid,
.power-grid {
  position: relative;
  min-width: 0;
  height: 278px;
}
.gridlines {
  position: absolute;
  inset: 0 0 46px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.gridlines i {
  height: 1px;
  background: #e3e6e1;
}
.gridlines i:last-child {
  background: #c3c8c1;
}
.volume-weeks,
.power-weeks {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  height: 278px;
}
.volume-weeks.four,
.power-weeks.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.volume-week,
.power-week {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  height: 278px;
}
.volume-current-label {
  height: 25px;
  color: #6e746d;
  white-space: nowrap;
  font:
    10px "Space Mono",
    monospace;
}
.volume-pair {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 207px;
  width: 100%;
}
.volume-pair i {
  width: min(34px, 34%);
  min-height: 1px;
  border-radius: 5px 5px 1px 1px;
}
.volume-pair .planned {
  background: #dce1db;
}
.volume-pair .actual {
  background: #b8e34b;
}
.volume-date,
.power-week > span:last-child {
  position: relative;
  display: block;
  width: max-content;
  max-width: 100%;
  margin-top: 15px;
  color: #6e746d;
  white-space: nowrap;
  font:
    11px "Space Mono",
    monospace;
}
.volume-week.current .volume-date {
  color: #242421;
}
.volume-week.current .volume-date::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 1px;
  bottom: -9px;
  left: calc(50% - 13px);
  background: #242421;
}
.chart-footnote {
  margin-top: 22px !important;
  color: #6e746d;
  font-size: 14px;
}
.volume-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.weekly-list,
.zones-card {
  min-height: 363px;
  padding: 20px 24px;
}
.weekly-list > p,
.zones-card > p {
  color: #6e746d;
  margin-top: 3px;
}
.weekly-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 68px;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid #dee3db;
  background: transparent;
  text-align: left;
}
.weekly-row:first-of-type {
  margin-top: 20px;
}
.weekly-row > i {
  display: block;
  width: 6px;
  height: 25px;
  border-radius: 3px;
}
.weekly-row > i.lime {
  background: #b8e34b;
}
.weekly-row > i.yellow {
  background: #e5b75b;
}
.weekly-row > span:nth-child(2) {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.weekly-row strong {
  font-weight: 500;
}
.weekly-row small {
  color: #6e746d;
}
.weekly-list .text-button {
  margin-top: 14px;
}
.zone-row {
  margin-top: 26px;
}
.zone-row > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.zone-row > div span:last-child {
  color: #6e746d;
}
.zone-row > i {
  display: block;
  height: 12px;
  margin-top: 9px;
  background: #e4e8e2;
  border-radius: 7px;
  overflow: hidden;
}
.zone-row b {
  display: block;
  height: 100%;
  border-radius: 7px;
}
.zone-row b.blue {
  background: #7695c9;
}
.zone-row b.yellow {
  background: #e5b75b;
}
.zone-row b.coral {
  background: #e6625e;
}
.zones-card > small {
  display: block;
  margin-top: 30px;
  color: #6e746d;
}
.progress-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  color: #8b918a;
  font-size: 13px;
}
.result-chart-card {
  min-height: 544px;
}
.results-summary .progress-card p {
  color: #4e8b7e;
}
.results-summary .progress-card:last-child p {
  color: #6e746d;
}
.power-plot {
  margin-top: 51px;
  height: 305px;
  grid-template-columns: 52px minmax(0, 1fr);
  padding-right: 30px;
}
.result-chart-card .power-axis {
  position: relative;
  inset: auto;
  display: block;
  height: 250px;
  margin-top: 0;
}
.result-chart-card .power-axis span {
  position: absolute;
  left: 11px;
  transform: translateY(-50%);
}
.result-chart-card .power-axis span:nth-child(1) {
  top: 0;
}
.result-chart-card .power-axis span:nth-child(2) {
  top: 20%;
}
.result-chart-card .power-axis span:nth-child(3) {
  top: 60%;
}
.result-chart-card .power-axis span:nth-child(4) {
  top: 100%;
}
.power-grid {
  height: 295px;
}
.power-grid .gridlines {
  bottom: 45px;
  display: block;
}
.power-grid .gridlines i {
  position: absolute;
  right: 0;
  left: 0;
}
.power-grid .gridlines i:nth-child(1) {
  top: 0;
}
.power-grid .gridlines i:nth-child(2) {
  top: 20%;
}
.power-grid .gridlines i:nth-child(3) {
  top: 60%;
}
.power-grid .gridlines i:nth-child(4) {
  bottom: 0;
}
.power-weeks {
  height: 295px;
}
.power-week {
  position: relative;
  display: grid;
  grid-template-rows: 250px 45px;
  justify-items: center;
  height: 295px;
}
.power-week i {
  align-self: end;
  width: min(62px, 58%);
  max-height: 250px;
  background: #7695c9;
  border-radius: 5px 5px 1px 1px;
}
.power-week .power-value {
  position: absolute;
  top: -18px;
  font:
    11px "Space Mono",
    monospace;
}
.power-week > span:last-child {
  margin-top: 16px;
}
.method-card {
  min-height: 180px;
  margin-top: 24px;
  padding: 24px 32px;
}
.method-card p {
  max-width: 95ch;
  margin-top: 12px;
  color: #6e746d;
  font-size: 17px;
}
.recovery-connect {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 40px;
  min-height: 400px;
  padding: 34px 36px;
  border-radius: 18px;
  background: #292a2d;
  color: #f7f8f5;
}
.recovery-connect .eyebrow {
  color: #d8ff4a;
}
.recovery-connect h2 {
  margin-top: 28px;
  font-size: 38px;
}
.recovery-connect p:not(.eyebrow) {
  max-width: 75ch;
  margin-top: 20px;
  color: #c3c8c1;
  font-size: 18px;
}
.recovery-connect .lime-button {
  min-width: 360px;
  min-height: 56px;
  margin-top: 54px;
}
.recovery-connect aside {
  padding-top: 12px;
}
.recovery-connect aside small {
  color: #c3c8c1;
  font:
    12px "Space Mono",
    monospace;
}
.recovery-connect aside p {
  font-size: 16px !important;
}
.recovery-info {
  min-height: 218px;
  margin-top: 24px;
  padding: 26px 32px;
}
.recovery-info p {
  max-width: 90ch;
  margin-top: 20px;
  color: #6e746d;
  font-size: 18px;
}
.recovery-info small {
  display: block;
  margin-top: 25px;
  color: #6e746d;
}

@media (max-width: 1100px) {
  .plans-top {
    grid-template-columns: 1fr;
  }
  .active-plan {
    min-height: 520px;
  }
  .cycle-chart {
    gap: 8px;
  }
  .plan-session {
    grid-template-columns: 100px minmax(180px, 1fr) 110px 90px 24px;
  }
  .session-status {
    display: none;
  }
  .overview-grid {
    grid-template-columns: 1fr 1fr;
  }
  .overview-grid .overview-card:last-child {
    grid-column: 1 / -1;
    min-height: 280px;
  }
  .overview-grid .overview-card:last-child .lime-button {
    align-self: flex-start;
    margin-top: 28px;
  }
  .volume-bottom {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .new-page {
    padding: 24px 18px 42px;
  }
  .new-page h1 {
    font-size: 34px;
  }
  .new-page-head,
  .progress-head,
  .detail-plan-head {
    flex-direction: column;
  }
  .new-page-head .create-plan {
    margin-top: 0;
  }
  .plans-top {
    margin-top: 24px;
  }
  .cycle-card {
    overflow: hidden;
  }
  .cycle-chart {
    overflow-x: auto;
    grid-template-columns: repeat(8, 80px);
    padding-bottom: 5px;
  }
  .cycle-week {
    height: 200px;
  }
  .cycle-footer button {
    position: static;
    margin-top: 12px;
  }
  .plan-list-progress {
    display: none;
  }
  .plan-list-row {
    gap: 10px;
    padding: 10px;
  }
  .plan-list-row .plan-badge {
    display: none;
  }
  .goal-actions {
    flex-direction: column-reverse;
  }
  .goal-actions button {
    width: 100%;
    min-width: 0;
  }
  .detail-plan-actions {
    align-items: flex-start;
    gap: 14px;
  }
  .detail-plan-actions > div {
    flex-wrap: wrap;
  }
  .plan-stage {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .plan-week-trigger {
    gap: 10px;
    padding: 10px;
  }
  .plan-week-name strong {
    font-size: 16px;
  }
  .plan-week-trigger .plan-badge {
    display: none;
  }
  .plan-session {
    grid-template-columns: 85px 1fr 20px;
    gap: 7px;
    padding: 8px;
  }
  .session-bars,
  .session-load {
    display: none;
  }
  .plan-week-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .progress-filters {
    width: 100%;
    margin: 0;
    flex-wrap: wrap;
  }
  .progress-tabs {
    overflow-x: auto;
    gap: 12px;
    white-space: nowrap;
  }
  .overview-grid,
  .volume-summary {
    grid-template-columns: 1fr;
  }
  .overview-grid .overview-card:last-child {
    grid-column: auto;
  }
  .overview-card {
    min-height: 350px;
  }
  .volume-chart-card,
  .result-chart-card {
    padding: 20px 16px;
    overflow-x: auto;
  }
  .chart-title-row {
    flex-direction: column;
  }
  .volume-plot,
  .power-plot {
    min-width: 630px;
  }
  .chart-footnote {
    min-width: 0;
  }
  .recovery-connect {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 28px;
  }
  .recovery-connect .lime-button {
    min-width: 0;
    width: 100%;
    margin-top: 30px;
  }
  .recovery-connect aside {
    border-top: 1px solid #55585a;
  }
  .progress-footer {
    flex-direction: column;
  }
}
.sign-in-methods {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #d8dcd8;
}

.sign-in-methods h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 600;
}

.sign-in-method {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 54px;
  border-bottom: 1px solid #e5e8e5;
}

.sign-in-method span {
  margin-left: auto;
  color: #5c655e;
}

.sign-in-method button {
  flex: 0 0 auto;
}
