:root {
  color-scheme: light;
  --bg: #f8f5ed;
  --surface: #fffdf8;
  --surface-soft: #efede3;
  --ink: #17241d;
  --muted: #667168;
  --green: #1c4f35;
  --green-strong: #133c28;
  --sage: #dfe4d3;
  --sage-strong: #bac7ad;
  --orange: #bd6437;
  --orange-soft: #f3ded0;
  --line: #ddd8cc;
  --danger: #a33d36;
  --success: #2d6b48;
  --shadow: 0 18px 50px rgba(27, 48, 37, 0.1);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --content: 1180px;
  font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

/* Authentification et administration */
.auth-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 49, 103, 0.16), transparent 34%),
    radial-gradient(circle at 82% 88%, rgba(255, 91, 40, 0.12), transparent 36%),
    #03020b;
}

.auth-card {
  width: min(100%, 480px);
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: rgba(15, 10, 27, 0.92);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48), 0 0 60px rgba(255, 49, 103, 0.08);
  backdrop-filter: blur(22px);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
  letter-spacing: 0.16em;
}

.auth-copy {
  margin-bottom: 28px;
}

.auth-copy h1 {
  max-width: 400px;
  margin: 7px 0 12px;
  font-size: clamp(36px, 7vw, 56px);
  line-height: 0.96;
}

.auth-copy > p:last-child {
  color: var(--muted);
  line-height: 1.55;
}

.form-error {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 74, 112, 0.34);
  border-radius: 12px;
  color: #ff9bb2;
  background: rgba(255, 49, 103, 0.1);
}

.field small {
  color: var(--muted);
  font-size: 12px;
}

.impersonation-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 91, 40, 0.32);
  border-radius: 18px;
  background: linear-gradient(110deg, rgba(255, 49, 103, 0.12), rgba(255, 91, 40, 0.08));
}

.admin-user-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.security-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  .auth-screen {
    padding: 16px;
  }

  .auth-card {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .auth-brand {
    margin-bottom: 36px;
  }

  .impersonation-banner,
  .user-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .impersonation-banner .secondary-button,
  .admin-user-actions {
    width: 100%;
  }

  .admin-user-actions > button {
    flex: 1 1 110px;
  }

  .mobile-nav {
    grid-template-columns: repeat(var(--nav-count, 4), minmax(0, 1fr));
  }
}

.exercise-row-visual {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #0f0c16;
}

.exercise-row-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exercise-row-visual.is-placeholder > img {
  width: 21px;
  height: 21px;
  filter: brightness(0) invert(1);
  opacity: 0.76;
}

.image-upload {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.image-upload-preview {
  display: grid;
  min-height: 170px;
  overflow: hidden;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  background: #0f0c16;
  color: var(--muted);
}

.image-upload-preview > img:not(.fallback-icon) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-upload-preview .fallback-icon {
  width: 34px;
  height: 34px;
  margin-bottom: -44px;
  filter: brightness(0) invert(1);
  opacity: 0.82;
}

.image-upload-preview > span {
  align-self: end;
  margin-bottom: 36px;
  font-size: 12px;
}

.image-upload-controls {
  display: grid;
  align-content: center;
  gap: 11px;
}

.image-upload-controls > small {
  color: var(--muted-dim);
  font-size: 12px;
  line-height: 1.45;
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.field-label-icon {
  width: 16px;
  height: 16px;
}

.field input[type="file"] {
  padding: 7px;
  color: var(--muted);
}

.field input[type="file"]::file-selector-button {
  min-height: 35px;
  margin-right: 10px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface-hover, #18121f);
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
}

.check-option.compact {
  min-height: 40px;
  justify-self: start;
}

.circuit-item {
  grid-template-columns: minmax(130px, 1fr) 116px 80px 84px 38px;
}

.free-exercise-list {
  display: grid;
  gap: 10px;
}

.free-exercise-option {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.012);
}

.free-exercise-option.is-selected {
  border-color: rgba(255, 65, 112, 0.56);
  background: rgba(255, 65, 112, 0.055);
}

.free-exercise-config {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(90px, 0.7fr) minmax(84px, 0.62fr);
  gap: 9px;
}

.free-exercise-config :disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

@media (max-width: 599px) {
  .image-upload {
    grid-template-columns: 1fr;
  }

  .image-upload-preview {
    min-height: 190px;
  }

  .circuit-item {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
  }

  .circuit-item > .field:first-child {
    grid-column: 1 / -1;
  }

  .circuit-item .type-field {
    grid-column: 1;
  }

  .circuit-item .load-field {
    grid-column: 1 / 3;
  }

  .free-exercise-config {
    grid-template-columns: 1fr 1fr;
  }

  .free-exercise-config > .field:last-child {
    grid-column: 1 / -1;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body.has-overlay {
  overflow: hidden;
}

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

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

button:not(:disabled),
a {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

img {
  display: block;
  max-width: 100%;
}

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

h1,
h2,
.display {
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.035em;
}

:focus-visible {
  outline: 3px solid rgba(189, 100, 55, 0.45);
  outline-offset: 3px;
}

#main-content h1[tabindex="-1"]:focus {
  outline: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 24px;
  height: 24px;
}

.icon-small {
  width: 19px;
  height: 19px;
}

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

.loading-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  color: var(--muted);
}

.loading-mark {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  animation: breathe 1.8s ease-in-out infinite;
}

@keyframes breathe {
  50% { transform: scale(1.05); opacity: 0.75; }
}

.offline-banner {
  position: fixed;
  z-index: 1000;
  left: 50%;
  top: max(10px, env(safe-area-inset-top));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 24px);
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 650;
}

.offline-banner[hidden] {
  display: none;
}

.offline-banner img {
  width: 18px;
  filter: invert(1);
}

.page-shell {
  width: min(100%, 1440px);
  min-height: 100vh;
  margin: 0 auto;
}

.desktop-nav {
  display: none;
}

.page-main {
  min-width: 0;
  padding: max(24px, env(safe-area-inset-top)) 20px calc(104px + env(safe-area-inset-bottom));
}

.view {
  width: min(100%, var(--content));
  margin: 0 auto;
  animation: view-in 180ms ease-out;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(5px); }
}

.mobile-nav {
  position: fixed;
  z-index: 60;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(248, 245, 237, 0.96);
  backdrop-filter: blur(16px);
}

.nav-button {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 58px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.nav-button img {
  width: 23px;
  height: 23px;
  opacity: 0.62;
}

.nav-button.is-active {
  color: var(--green);
}

.nav-button.is-active::before {
  content: "";
  position: absolute;
  top: 1px;
  width: 31px;
  height: 3px;
  border-radius: 99px;
  background: var(--green);
}

.nav-button.is-active img {
  opacity: 1;
  filter: invert(24%) sepia(22%) saturate(1134%) hue-rotate(94deg) brightness(83%);
}

.eyebrow {
  margin-bottom: 9px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.page-heading h1 {
  margin-bottom: 7px;
  font-size: clamp(38px, 7vw, 64px);
  line-height: 0.98;
}

.page-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.profile-trigger {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
}

.profile-trigger img {
  width: 25px;
  opacity: 0.78;
}

.home-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.home-header h1 {
  margin-bottom: 6px;
  font-size: clamp(50px, 13vw, 78px);
  line-height: 0.94;
}

.home-date {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
}

.today-layout {
  display: grid;
  gap: 22px;
}

.today-primary {
  min-width: 0;
}

.today-hero {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.today-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 470px;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 26px 26px;
}

.today-hero h2 {
  max-width: 520px;
  margin-bottom: 15px;
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
  font-size: clamp(36px, 9.5vw, 58px);
  font-weight: 720;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.today-description {
  max-width: 440px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.today-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-bottom: auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

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

.today-meta img {
  width: 18px;
  height: 18px;
  opacity: 0.66;
}

.hero-illustration {
  position: absolute;
  z-index: 1;
  right: -16px;
  bottom: 86px;
  width: min(58%, 420px);
  max-height: 74%;
  border-radius: 45% 0 0 45%;
  object-fit: cover;
  object-position: 50% 24%;
  opacity: 0.9;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 14px;
  padding: 0 18px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.primary-button {
  background: var(--green);
  color: #fff;
}

.primary-button:hover {
  background: var(--green-strong);
}

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

.secondary-button:hover {
  border-color: var(--sage-strong);
  background: var(--sage);
}

.ghost-button {
  background: transparent;
  color: var(--green);
}

.danger-button {
  border: 1px solid rgba(163, 61, 54, 0.28);
  background: transparent;
  color: var(--danger);
}

.large-button {
  width: 100%;
  min-height: 64px;
  border-radius: 19px;
  font-size: 18px;
}

.primary-button img,
.secondary-button img,
.ghost-button img,
.danger-button img {
  width: 20px;
  height: 20px;
}

.primary-button img {
  filter: invert(1);
}

.hero-actions {
  position: relative;
  z-index: 3;
  display: flex;
  width: 100%;
  gap: 10px;
  margin-top: 24px;
}

.hero-actions .primary-button {
  flex: 1;
}

.week-panel,
.surface {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.72);
}

.week-panel {
  margin-top: 20px;
  padding: 22px 18px 18px;
}

.week-panel h3,
.surface-title {
  margin-bottom: 17px;
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(38px, 1fr));
  gap: 2px;
}

.week-day {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  padding: 8px 2px 11px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 10px;
}

.week-day strong {
  color: var(--ink);
  font-size: 11px;
  text-transform: uppercase;
}

.week-status {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.week-day.is-today {
  background: var(--sage);
}

.week-day.is-complete .week-status {
  background: var(--green);
}

.week-day.is-complete .week-status img {
  width: 16px;
  filter: invert(1);
}

.week-day.is-rest .week-status {
  background: #eee7da;
}

.today-side {
  display: grid;
  align-content: start;
  gap: 14px;
}

.stretch-card,
.discipline-card,
.quick-card {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 92px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}

.stretch-card:hover,
.quick-card:hover {
  border-color: var(--sage-strong);
}

.card-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--orange-soft);
}

.card-icon img {
  width: 23px;
  filter: invert(43%) sepia(55%) saturate(839%) hue-rotate(335deg) brightness(89%);
}

.discipline-card .card-icon {
  background: var(--sage);
}

.discipline-card .card-icon img {
  filter: invert(25%) sepia(22%) saturate(1085%) hue-rotate(93deg) brightness(82%);
}

.card-copy {
  min-width: 0;
  flex: 1;
}

.card-copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.card-copy span {
  color: var(--muted);
  font-size: 13px;
}

.stretch-card > img,
.quick-card > img {
  width: 20px;
  opacity: 0.55;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--sage);
}

.metric.is-orange {
  background: var(--orange-soft);
}

.metric-value {
  display: block;
  margin-bottom: 5px;
  font-family: Georgia, Cambria, serif;
  font-size: 32px;
  line-height: 1;
}

.metric-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.section-grid {
  display: grid;
  gap: 18px;
}

.surface {
  padding: 20px;
}

.surface-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.surface-header h2,
.surface-header h3 {
  margin-bottom: 4px;
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.surface-header p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.form-row,
.form-grid {
  display: grid;
  gap: 13px;
}

.form-row {
  grid-template-columns: 1fr auto;
  align-items: end;
}

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

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field > span,
.field-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 47px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  padding: 11px 13px;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  outline: 3px solid rgba(28, 79, 53, 0.12);
}

.chart-wrap {
  position: relative;
  min-height: 210px;
}

.chart-wrap canvas {
  width: 100%;
  height: 210px;
}

.data-list,
.program-list,
.timeline,
.user-list {
  display: grid;
}

.data-row,
.program-row,
.timeline-row,
.user-row {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.data-row:first-child,
.program-row:first-child,
.timeline-row:first-child,
.user-row:first-child {
  border-top: 0;
}

.row-main {
  min-width: 0;
  flex: 1;
}

.row-main strong {
  display: block;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-main span,
.row-meta {
  color: var(--muted);
  font-size: 12px;
}

.row-value {
  flex: 0 0 auto;
  color: var(--green);
  font-weight: 800;
}

.row-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.icon-button {
  width: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
}

.icon-button img {
  width: 18px;
  height: 18px;
}

.program-row {
  align-items: flex-start;
  padding: 18px 0;
}

.program-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--green);
  font-size: 11px;
  font-weight: 750;
}

.program-mode.is-fixed {
  background: var(--orange-soft);
  color: #8f4829;
}

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab-button {
  min-height: 42px;
  flex: 0 0 auto;
  padding: 0 15px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.tab-button.is-active {
  background: var(--green);
  color: #fff;
}

.empty-state {
  padding: 28px 12px;
  color: var(--muted);
  text-align: center;
}

.empty-state img {
  width: 38px;
  margin: 0 auto 12px;
  opacity: 0.48;
}

.profile-routine {
  grid-column: 1 / -1;
}

.profile-schedule {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 9px;
}

.schedule-day {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.012);
}

.schedule-day > span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.schedule-day select {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  padding: 9px 30px 9px 10px;
  border: 1px solid var(--control-border, var(--line));
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
}

.schedule-day select:focus {
  border-color: var(--pink, var(--green));
  outline: 3px solid var(--focus, rgba(28, 79, 53, 0.12));
  outline-offset: 2px;
}

.routine-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 3px;
}

@media (max-width: 1099px) {
  .profile-schedule {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .profile-schedule {
    grid-template-columns: 1fr;
  }

  .schedule-day {
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
  }

  .routine-actions .primary-button {
    width: 100%;
  }
}

.circuit-editor {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.circuit-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px 112px 42px;
  gap: 9px;
  align-items: end;
}

.circuit-items {
  display: grid;
  gap: 8px;
}

.circuit-item {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 80px 84px 38px;
  gap: 7px;
  align-items: end;
}

.circuit-item .icon-button {
  width: 38px;
  min-height: 45px;
}

.stretch-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
}

.check-option input {
  accent-color: var(--green);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
}

.status-pill.is-offline {
  background: var(--orange-soft);
  color: #8f4829;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.toggle-row .row-main strong {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.toggle-row:first-child {
  border-top: 0;
}

.switch {
  position: relative;
  width: 48px;
  height: 28px;
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #ccc8be;
  transition: 160ms ease;
}

.switch-track::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: 160ms ease;
}

.switch input:checked + .switch-track {
  background: var(--green);
}

.switch input:focus-visible + .switch-track {
  outline: 3px solid rgba(189, 100, 55, 0.45);
  outline-offset: 3px;
}

.switch input:checked + .switch-track::after {
  transform: translateX(20px);
}

.modal-backdrop {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  align-items: end;
  background: rgba(23, 36, 29, 0.42);
  backdrop-filter: blur(5px);
  animation: fade-in 160ms ease-out;
}

.modal-backdrop.is-updating {
  animation: none;
}

[data-catalog-overlay] > .modal-backdrop {
  z-index: 210;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(2px);
}

@keyframes fade-in {
  from { opacity: 0; }
}

.modal {
  width: 100%;
  max-height: min(92vh, 920px);
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 27px 27px 0 0;
  background: var(--bg);
  box-shadow: 0 -20px 60px rgba(23, 36, 29, 0.2);
}

.modal-inner {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 22px 20px calc(30px + env(safe-area-inset-bottom));
}

.modal-header {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 4px 0 18px;
  background: var(--bg);
}

.modal-header h2 {
  margin-bottom: 0;
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 780;
  letter-spacing: -0.03em;
}

.modal-footer {
  position: sticky;
  z-index: 5;
  bottom: calc(-30px - env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  margin: 24px -20px calc(-30px - env(safe-area-inset-bottom));
  padding: 15px 20px calc(15px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.modal-footer .primary-button {
  flex: 1;
}

.toast-root {
  position: fixed;
  z-index: 500;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  display: grid;
  width: min(92vw, 420px);
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 650;
  animation: toast-in 180ms ease-out;
}

.toast.is-error {
  background: var(--danger);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
}

.runner {
  position: fixed;
  z-index: 300;
  inset: 0;
  overflow-y: auto;
  background: var(--bg);
}

.runner-shell {
  display: flex;
  width: min(100%, 720px);
  min-height: 100%;
  margin: 0 auto;
  flex-direction: column;
  padding: max(20px, env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
}

.runner-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.runner-header .icon-button {
  flex: 0 0 auto;
}

.runner-progress {
  min-width: 0;
  flex: 1;
}

.runner-progress-line {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--sage);
}

.runner-progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.runner-progress-label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.runner-content {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 36px 0 26px;
  text-align: center;
}

.runner-kicker {
  margin-bottom: 13px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.runner-title {
  margin-bottom: 12px;
  font-family: Georgia, Cambria, serif;
  font-size: clamp(46px, 13vw, 76px);
  line-height: 0.96;
}

.runner-instruction {
  max-width: 500px;
  margin: 0 auto 28px;
  color: var(--muted);
  line-height: 1.55;
}

.timer-ring {
  display: grid;
  width: min(62vw, 260px);
  aspect-ratio: 1;
  margin: 0 auto 26px;
  place-items: center;
  border: 12px solid var(--sage);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.timer-value {
  font-family: Georgia, Cambria, serif;
  font-size: clamp(52px, 16vw, 82px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
}

.target-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 26px;
}

.target-number {
  font-family: Georgia, Cambria, serif;
  font-size: clamp(86px, 26vw, 132px);
  line-height: 0.8;
}

.target-unit {
  color: var(--muted);
  font-size: 17px;
  font-weight: 750;
}

.runner-load {
  display: inline-flex;
  align-self: center;
  margin-bottom: 25px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: #8f4829;
  font-size: 13px;
  font-weight: 750;
}

.runner-actions {
  display: grid;
  gap: 10px;
}

.runner-actions .primary-button {
  min-height: 68px;
  font-size: 18px;
}

.quick-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.quick-value {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.quick-value.is-selected {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.rest-screen .timer-ring {
  border-color: var(--orange-soft);
}

.runner-summary {
  display: grid;
  gap: 16px;
  text-align: left;
}

.summary-hero {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--green);
  color: #fff;
  text-align: center;
}

.summary-hero img {
  width: 38px;
  margin: 0 auto 13px;
  filter: invert(1);
}

.summary-hero h2 {
  margin-bottom: 8px;
  font-family: Georgia, Cambria, serif;
  font-size: 42px;
}

.stretch-runner {
  background: #eff0e4;
}

.stretch-visual {
  display: grid;
  width: min(66vw, 280px);
  aspect-ratio: 1;
  margin: 0 auto 24px;
  place-items: center;
  overflow: hidden;
  border-radius: 45% 55% 48% 52%;
  background: var(--sage);
}

.stretch-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stretch-visual .fallback-icon {
  width: 74px;
  height: 74px;
  opacity: 0.4;
}

@media (min-width: 700px) {
  .page-main {
    padding-left: 32px;
    padding-right: 32px;
  }

  .section-grid.two-columns,
  .progress-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.85fr);
  }

  .modal-backdrop {
    place-items: center;
    padding: 28px;
  }

  .modal {
    width: min(100%, 820px);
    border-radius: 28px;
  }

  .toast-root {
    bottom: 28px;
  }
}

@media (min-width: 940px) {
  .page-shell {
    display: grid;
    grid-template-columns: 244px minmax(0, 1fr);
  }

  .desktop-nav {
    position: sticky;
    top: 0;
    display: flex;
    height: 100vh;
    flex-direction: column;
    padding: 34px 20px 28px;
    border-right: 1px solid var(--line);
    background: #f1eee4;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 44px;
    padding: 0 8px;
  }

  .brand img {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .brand strong {
    font-family: Georgia, Cambria, serif;
    font-size: 23px;
    font-weight: 600;
  }

  .desktop-nav-list {
    display: grid;
    gap: 6px;
  }

  .desktop-nav .nav-button {
    min-height: 52px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 13px;
    padding: 0 14px;
    font-size: 14px;
  }

  .desktop-nav .nav-button.is-active {
    background: var(--green);
    color: #fff;
  }

  .desktop-nav .nav-button.is-active::before {
    display: none;
  }

  .desktop-nav .nav-button.is-active img {
    filter: invert(1);
  }

  .desktop-user {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: auto;
    padding: 12px;
    border-top: 1px solid var(--line);
  }

  .desktop-user-avatar {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: var(--sage);
    color: var(--green);
    font-weight: 800;
  }

  .desktop-user strong,
  .desktop-user span {
    display: block;
  }

  .desktop-user span {
    color: var(--muted);
    font-size: 11px;
  }

  .mobile-nav {
    display: none;
  }

  .page-main {
    padding: 44px 46px 60px;
  }

  .today-hero,
  .today-hero-copy {
    min-height: 520px;
  }

  .today-hero-copy {
    padding: 42px 40px 34px;
  }

  .hero-actions {
    width: min(100%, 480px);
  }

  .today-hero h2 {
    max-width: 500px;
  }

  .today-description {
    max-width: 46%;
  }
}

@media (min-width: 1240px) {
  .today-layout {
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.72fr);
    align-items: start;
  }
}

@media (max-width: 699px) {
  .form-grid.two,
  .form-grid.three,
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-row .primary-button {
    width: 100%;
  }

  .circuit-head {
    grid-template-columns: minmax(0, 1fr) 72px 92px 42px;
  }

  .circuit-item {
    grid-template-columns: minmax(0, 1fr) 70px 38px;
  }

  .circuit-item .load-field {
    grid-column: 1 / 3;
  }

  .stretch-picker {
    grid-template-columns: 1fr;
  }

  .today-hero {
    min-height: 520px;
  }

  .today-hero-copy {
    min-height: 520px;
  }

  .today-hero h2 {
    max-width: 75%;
  }

  .today-description {
    max-width: 62%;
  }

  .today-meta {
    position: relative;
    z-index: 2;
    width: fit-content;
    padding: 8px 10px;
    border: 1px solid rgba(221, 216, 204, 0.72);
    border-radius: 14px;
    background: rgba(255, 253, 248, 0.88);
  }

  .hero-illustration {
    right: -30px;
    bottom: 80px;
    width: 75%;
  }
}

@media (max-width: 480px) {
  .page-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-heading {
    flex-wrap: wrap;
  }

  .page-heading > div {
    min-width: 0;
  }

  .page-heading > .primary-button {
    width: 100%;
  }

  .today-hero-copy {
    padding: 25px 21px 21px;
  }

  .today-hero h2 {
    font-size: 35px;
  }

  .today-description {
    font-size: 14px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .secondary-button {
    width: 100%;
  }

  .week-panel {
    padding-left: 10px;
    padding-right: 10px;
  }

  .week-day {
    font-size: 9px;
  }

  .week-status {
    width: 29px;
    height: 29px;
  }

  .quick-values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 360px) {
  .program-row > .card-icon {
    display: none;
  }

  .program-row .row-main strong {
    line-height: 1.3;
    white-space: normal;
  }
}

@media (max-width: 350px) {
  .home-header {
    gap: 10px;
  }

  .home-header h1 {
    font-size: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Direction Forge nocturne - maquette mobile 5 */

:root {
  color-scheme: dark;
  --bg: #03020b;
  --bg-elevated: #080611;
  --surface: #0b0812;
  --surface-soft: #12101a;
  --surface-hover: #18121f;
  --ink: #f7f2ec;
  --muted: #aaa3ad;
  --muted-dim: #9b94a1;
  --pink: #ff2b72;
  --pink-strong: #d81155;
  --green: #ff2b72;
  --green-strong: #d81155;
  --sage: #15111c;
  --sage-strong: #4a2036;
  --orange: #ff6a18;
  --orange-soft: rgba(255, 106, 24, 0.11);
  --line: #3d3144;
  --line-strong: #604d68;
  --control-border: #6d5875;
  --danger: #ff5261;
  --success: #ff2b72;
  --focus: #f7f2ec;
  --shadow: 0 18px 56px rgba(0, 0, 0, 0.34);
  --glow: 0 0 28px rgba(255, 43, 114, 0.16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 20px;
  --content: 1280px;
  --font-display: "Aptos Narrow", "Arial Narrow", "Roboto Condensed", "Bahnschrift SemiCondensed", Impact, sans-serif;
  --font-body: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-family: var(--font-body);
}

html,
body {
  background: var(--bg);
}

body {
  color: var(--ink);
  background-image: radial-gradient(circle at 52% 8%, rgba(105, 19, 76, 0.14), transparent 36%);
  background-attachment: fixed;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 800;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

h1,
h2,
.display,
.metric-value,
.target-number,
.timer-value {
  font-family: var(--font-display);
  font-stretch: condensed;
  font-weight: 750;
  letter-spacing: 0.005em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.loading-screen {
  color: var(--muted);
  background: var(--bg);
}

.loading-mark {
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  filter: invert(24%) sepia(94%) saturate(4452%) hue-rotate(326deg) brightness(95%) contrast(94%);
}

.offline-banner {
  border: 1px solid var(--line-strong);
  background: rgba(18, 12, 25, 0.96);
  color: var(--ink);
}

.offline-banner img,
.primary-button img,
.summary-hero img,
.week-day.is-complete .week-status img {
  filter: brightness(0) invert(1);
}

.page-shell {
  width: 100%;
  max-width: none;
  background: transparent;
}

.page-main {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 20px calc(110px + env(safe-area-inset-bottom));
}

.view {
  width: min(100%, var(--content));
}

.desktop-nav {
  display: none;
}

.mobile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto 46px;
}

.mobile-brand,
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-brand strong,
.brand strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 25px;
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: 0.075em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
}

.mobile-user {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  padding: 3px 2px 3px 4px;
  background: transparent;
  color: var(--ink);
  font-weight: 650;
}

.desktop-user-avatar {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--pink);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
}

.desktop-user .desktop-user-avatar,
.mobile-user .desktop-user-avatar {
  display: grid;
  place-items: center;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.mobile-nav {
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
  border-color: var(--line);
  background: rgba(3, 2, 11, 0.94);
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.nav-button {
  min-height: 62px;
  gap: 6px;
  border-radius: 10px;
  color: var(--muted-dim);
  font-size: 11px;
  font-weight: 700;
}

.nav-button img {
  width: 23px;
  height: 23px;
  opacity: 0.78;
  filter: invert(66%) sepia(4%) saturate(458%) hue-rotate(245deg) brightness(91%);
}

.nav-button.is-active {
  color: var(--pink);
}

.nav-button.is-active::before {
  top: 0;
  width: 34px;
  background: linear-gradient(90deg, var(--pink), var(--orange));
}

.nav-button.is-active img {
  filter: invert(28%) sepia(99%) saturate(4623%) hue-rotate(329deg) brightness(104%) contrast(103%);
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--pink);
  font-family: var(--font-display);
  font-size: 13px;
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: 0.19em;
}

.muted {
  color: var(--muted);
}

.home-header {
  margin-bottom: 34px;
}

.home-header .eyebrow {
  margin-bottom: 7px;
}

.home-date,
.home-header h1.home-date {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(23px, 7vw, 31px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.today-layout {
  display: grid;
  grid-template-areas:
    "primary"
    "week"
    "side";
  gap: 26px;
}

.today-primary {
  grid-area: primary;
}

.today-week {
  grid-area: week;
  min-width: 0;
}

.today-side {
  grid-area: side;
}

.today-hero,
.today-hero-copy {
  min-height: 0;
}

.today-hero {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.today-hero-copy {
  display: block;
  padding: 0;
}

.hero-illustration,
.today-description {
  display: none;
}

.today-hero.is-empty .today-description {
  display: block;
  max-width: 590px;
  margin: -6px 0 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.today-hero.is-empty .today-title {
  max-width: 720px;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 0.96;
}

.today-hero h2,
.today-title {
  max-width: none;
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(47px, 14vw, 68px);
  font-stretch: condensed;
  font-weight: 780;
  line-height: 0.9;
  letter-spacing: -0.015em;
}

.today-title span,
.today-title em {
  display: block;
}

.today-title em {
  margin-top: 8px;
  color: var(--orange);
  font-size: 0.58em;
  font-style: normal;
  letter-spacing: 0.005em;
}

.today-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.today-meta span {
  min-width: 0;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 12px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}

.today-meta span:first-child {
  padding-left: 0;
  border-left: 0;
}

.today-meta img {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  opacity: 1;
  filter: invert(28%) sepia(99%) saturate(4623%) hue-rotate(329deg) brightness(104%) contrast(103%);
}

.hero-actions {
  display: grid;
  width: 100%;
  gap: 10px;
  margin-top: 0;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.icon-button {
  min-height: 48px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-stretch: condensed;
  font-weight: 760;
  letter-spacing: 0.015em;
}

.primary-button {
  background: linear-gradient(100deg, #b90f4c 0%, #c01a43 54%, #a9380d 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(216, 17, 85, 0.19);
}

.primary-button:hover {
  background: linear-gradient(100deg, #c41452 0%, #c6254a 54%, #b64312 100%);
}

.secondary-button {
  border-color: var(--line-strong);
  background: rgba(9, 6, 15, 0.74);
  color: var(--muted);
}

.secondary-button:hover {
  border-color: var(--pink);
  background: var(--surface-hover);
  color: var(--ink);
}

.ghost-button {
  color: var(--pink);
}

.ghost-button:hover {
  background: rgba(255, 43, 114, 0.08);
}

.danger-button {
  border-color: rgba(255, 82, 97, 0.42);
  color: var(--danger);
}

.large-button {
  min-height: 58px;
  border-radius: 13px;
  font-size: 21px;
}

.hero-actions .primary-button,
.hero-actions .secondary-button {
  width: 100%;
  min-height: 56px;
}

.week-panel,
.surface {
  border-color: var(--line);
  background: rgba(11, 8, 18, 0.74);
  box-shadow: none;
}

.week-panel {
  margin: 0;
  padding: 13px 9px 11px;
  border-radius: var(--radius);
}

.week-panel h3 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.week-grid {
  position: relative;
  --week-dot-size: 31px;
  gap: 1px;
}

.week-grid::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: 7%;
  top: calc(50% + 20px);
  left: 7%;
  height: 2px;
  background: linear-gradient(90deg, var(--pink) 0 var(--week-progress), var(--line-strong) var(--week-progress) 100%);
}

.week-day {
  position: relative;
  z-index: 1;
  grid-template-rows: 15px 16px var(--week-dot-size);
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 9px 1px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--muted);
  font-size: 11px;
}

.week-day strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 12px;
  font-stretch: condensed;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.week-status {
  width: var(--week-dot-size);
  height: var(--week-dot-size);
  margin-top: 0;
  border: 2px solid #625966;
  background: var(--bg);
  color: var(--pink);
  font-size: 20px;
  line-height: 1;
}

.week-day.is-today {
  border-color: var(--pink);
  background: rgba(255, 43, 114, 0.055);
  box-shadow: inset -2px 0 0 rgba(255, 106, 24, 0.36);
}

.week-day.is-today .week-status {
  border-color: var(--pink);
  box-shadow: var(--glow);
}

.week-day.is-complete .week-status {
  border-color: var(--pink);
  background: linear-gradient(135deg, var(--pink), #b91352);
}

.week-day.is-complete .week-status img {
  width: 17px;
  height: 17px;
}

.week-day.is-rest .week-status {
  background: var(--bg);
}

.week-day.is-rest .week-status img {
  width: 15px;
  height: 15px;
  opacity: 0.62;
  filter: invert(67%) sepia(5%) saturate(430%) hue-rotate(244deg) brightness(94%);
}

.week-day:not(.is-complete):not(.is-rest) .week-status img {
  width: 10px;
  height: 10px;
  filter: invert(28%) sepia(99%) saturate(4623%) hue-rotate(329deg) brightness(104%) contrast(103%);
}

.today-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 0 22px;
  border-top: 1px solid var(--line);
}

.stretch-card,
.discipline-card,
.quick-card,
.goal-card,
.today-side .metric {
  min-width: 0;
  min-height: 116px;
  padding: 18px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.stretch-card,
.discipline-card,
.quick-card {
  align-items: center;
  gap: 12px;
}

.stretch-card:hover,
.quick-card:hover {
  border-color: var(--line-strong);
  background: rgba(255, 43, 114, 0.035);
}

.stretch-card:disabled {
  opacity: 0.48;
}

.card-icon {
  width: 43px;
  height: 43px;
  border: 1px solid rgba(255, 43, 114, 0.35);
  background: rgba(255, 43, 114, 0.055);
}

.card-icon img,
.discipline-card .card-icon img {
  width: 21px;
  filter: invert(28%) sepia(99%) saturate(4623%) hue-rotate(329deg) brightness(104%) contrast(103%);
}

.discipline-card .card-icon {
  border-color: rgba(255, 106, 24, 0.4);
  background: rgba(255, 106, 24, 0.055);
}

.discipline-card .card-icon img,
.quick-card .card-icon img {
  filter: invert(47%) sepia(99%) saturate(2928%) hue-rotate(359deg) brightness(101%) contrast(105%);
}

.card-copy strong {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.22;
}

.card-copy span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.stretch-card > img,
.quick-card > img {
  display: none;
}

.today-side > .metric-row {
  display: contents;
}

.today-side .metric {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 43, 114, 0.055);
}

.metric.is-orange {
  background: rgba(255, 106, 24, 0.055);
}

.metric-value {
  color: var(--pink);
  font-size: 44px;
  font-variant-numeric: tabular-nums;
  line-height: 0.88;
}

.metric.is-orange .metric-value {
  color: var(--orange);
}

.metric-label {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.goal-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.goal-card strong {
  font-size: 15px;
  line-height: 1.25;
}

.goal-card > span:not(.goal-progress) {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.goal-progress,
.runner-progress-line {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #2c2431;
}

.goal-progress {
  margin-top: 16px;
}

.goal-progress span,
.runner-progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--orange));
}

.page-heading {
  position: relative;
  margin-bottom: 32px;
}

.page-heading h1 {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: clamp(52px, 14vw, 78px);
  line-height: 0.9;
}

.page-heading p:not(.eyebrow) {
  max-width: 600px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.profile-trigger {
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.profile-trigger img,
.icon-button img,
.secondary-button img,
.ghost-button img,
.danger-button img,
.empty-state img,
.stretch-visual .fallback-icon,
.field-label-icon,
.icon-small {
  filter: invert(67%) sepia(5%) saturate(430%) hue-rotate(244deg) brightness(94%);
}

.profile-trigger img {
  filter: invert(28%) sepia(99%) saturate(4623%) hue-rotate(329deg) brightness(104%) contrast(103%);
}

.section-grid {
  gap: 18px;
}

.section-grid.two-columns {
  align-items: start;
}

.surface {
  padding: 20px;
}

.surface-header h2,
.surface-header h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
  font-stretch: condensed;
  font-weight: 740;
  letter-spacing: 0.01em;
}

.surface-header p,
.row-main span,
.row-meta {
  color: var(--muted);
}

.data-row,
.program-row,
.timeline-row,
.user-row,
.toggle-row {
  border-color: var(--line);
}

button.data-row,
button.user-row {
  width: 100%;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.data-row:hover,
.program-row:hover,
.timeline-row:hover,
.user-row:hover {
  background: rgba(255, 43, 114, 0.035);
}

.row-main strong {
  color: var(--ink);
}

.row-value {
  color: var(--pink);
}

.icon-button {
  width: 44px;
  min-height: 44px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.icon-button:hover {
  border-color: var(--pink);
  background: rgba(255, 43, 114, 0.08);
}

.program-mode,
.status-pill {
  background: rgba(255, 43, 114, 0.1);
  color: #ff6d98;
}

.row-main .program-mode {
  color: #ff6d98;
}

.program-mode.is-fixed,
.status-pill.is-offline {
  background: rgba(255, 106, 24, 0.1);
  color: #ff8c4e;
}

.row-main .program-mode.is-fixed {
  color: #ff8c4e;
}

.tab-button {
  color: var(--muted);
}

.tab-button.is-active {
  background: var(--pink);
  color: var(--bg);
}

.field > span,
.field-label {
  color: var(--muted);
  font-size: 13px;
}

.field-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field-group > legend,
.field-help {
  color: var(--muted);
}

.field-group > legend {
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 700;
}

.field-help {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
}

.field input,
.field select,
.field textarea {
  min-height: 49px;
  border-color: var(--control-border);
  background: #0f0c16;
  color: var(--ink);
  color-scheme: dark;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-dim);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--pink);
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.schedule-day,
.check-option,
.circuit-editor {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.012);
  color: var(--muted);
}

.switch input:focus-visible + .switch-track {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.check-option input {
  accent-color: var(--pink);
}

.switch-track {
  background: #37313b;
}

.switch-track::after {
  background: var(--ink);
}

.switch input:checked + .switch-track {
  background: var(--pink);
}

.modal-backdrop {
  background: rgba(0, 0, 0, 0.76);
}

.modal,
.modal-header,
.modal-footer {
  background: var(--bg-elevated);
}

.modal {
  border: 1px solid var(--line);
  box-shadow: 0 -20px 70px rgba(0, 0, 0, 0.55);
}

.modal,
.runner {
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.modal::-webkit-scrollbar,
.runner::-webkit-scrollbar {
  width: 7px;
}

.modal::-webkit-scrollbar-track,
.runner::-webkit-scrollbar-track {
  background: transparent;
}

.modal::-webkit-scrollbar-thumb,
.runner::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--line-strong);
}

.modal-header,
.modal-footer {
  border-color: var(--line);
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-stretch: condensed;
  letter-spacing: 0;
}

.toast-root {
  bottom: calc(94px + env(safe-area-inset-bottom));
}

.toast {
  border: 1px solid var(--line-strong);
  background: #17101e;
  color: var(--ink);
  cursor: text;
  pointer-events: auto;
  user-select: text;
}

.toast.is-error {
  border-color: rgba(255, 82, 97, 0.5);
  background: #38121b;
}

.user-username,
.user-state {
  display: block;
}

.user-state {
  margin-top: 2px;
}

.runner,
.stretch-runner {
  background: var(--bg);
  background-image: radial-gradient(circle at 50% 34%, rgba(112, 18, 79, 0.15), transparent 38%);
}

.runner-shell {
  width: min(100%, 760px);
}

.runner-copy,
.runner-panel {
  width: 100%;
}

.runner-panel {
  display: flex;
  flex-direction: column;
}

.runner-panel > .field {
  margin-bottom: 14px;
  text-align: left;
}

.runner-progress-line {
  height: 7px;
}

.runner-progress-label {
  color: var(--muted);
}

.runner-kicker {
  color: var(--pink);
  font-family: var(--font-display);
  font-size: 14px;
  font-stretch: condensed;
  letter-spacing: 0.16em;
}

.runner-title {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(54px, 16vw, 86px);
  font-stretch: condensed;
  font-weight: 760;
}

.runner-instruction {
  color: var(--muted);
}

.timer-ring {
  border-color: var(--line-strong);
  background: rgba(11, 8, 18, 0.8);
  box-shadow: var(--glow);
}

.timer-value,
.target-number {
  color: var(--ink);
}

.target-unit {
  color: var(--muted);
}

.runner-load {
  border: 1px solid rgba(255, 106, 24, 0.28);
  background: var(--orange-soft);
  color: #ff8c4e;
}

.quick-value {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.quick-value.is-selected {
  border-color: var(--pink);
  background: var(--pink);
  color: var(--bg);
}

.rest-screen .timer-ring {
  border-color: rgba(255, 106, 24, 0.48);
  box-shadow: 0 0 28px rgba(255, 106, 24, 0.12);
}

.summary-hero {
  border: 1px solid var(--line-strong);
  background: rgba(255, 43, 114, 0.08);
  color: var(--ink);
}

.summary-hero h2 {
  font-family: var(--font-display);
  font-size: 50px;
  font-stretch: condensed;
}

.summary-hero img {
  filter: invert(28%) sepia(99%) saturate(4623%) hue-rotate(329deg) brightness(104%) contrast(103%);
}

.stretch-visual {
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}

@media (min-width: 600px) {
  .page-main {
    padding-right: 32px;
    padding-left: 32px;
  }

  .hero-actions {
    grid-template-columns: minmax(240px, 1fr) minmax(170px, 0.55fr);
  }

  .section-grid.two-columns,
  .progress-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  }

  .today-side {
    gap: 0 30px;
  }

  .row-main span,
  .row-meta,
  .metric-label {
    font-size: 13px;
  }

  .row-main .program-mode {
    font-size: 12px;
  }
}

@media (min-width: 700px) {
  .page-main {
    padding-right: 40px;
    padding-left: 40px;
  }

  .modal-backdrop {
    place-items: center;
    padding: 28px;
  }

  .modal {
    width: min(100%, 840px);
    border-radius: 24px;
  }

  .toast-root {
    bottom: 28px;
  }
}

@media (min-width: 940px) {
  .page-shell {
    display: block;
  }

  .desktop-nav {
    position: sticky;
    z-index: 70;
    top: 0;
    display: grid;
    width: 100%;
    height: 92px;
    grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
    align-items: center;
    padding: 0 42px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(3, 2, 11, 0.92);
    backdrop-filter: blur(18px);
  }

  .brand {
    margin: 0;
    padding: 0;
  }

  .brand strong {
    font-size: 27px;
  }

  .desktop-nav-list {
    display: flex;
    align-items: stretch;
    gap: 36px;
    height: 100%;
  }

  .desktop-nav .nav-button {
    min-height: 0;
    flex-direction: row;
    justify-content: center;
    padding: 0 2px;
    border-radius: 0;
    color: var(--muted);
    font-size: 14px;
  }

  .desktop-nav .nav-button img {
    display: none;
  }

  .desktop-nav .nav-button.is-active {
    background: transparent;
    color: var(--pink);
  }

  .desktop-nav .nav-button.is-active::before {
    display: block;
    top: auto;
    bottom: 0;
    width: 100%;
    height: 3px;
  }

  .desktop-user {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    text-align: left;
  }

  .desktop-user strong {
    color: var(--ink);
  }

  .desktop-user span span {
    color: var(--muted);
  }

  .mobile-topbar,
  .mobile-nav {
    display: none;
  }

  .page-main {
    width: min(100%, 1480px);
    padding: 64px 48px 60px;
  }

  .home-header {
    margin-bottom: 42px;
  }

  .today-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(400px, 0.8fr);
    grid-template-areas:
      "primary side"
      "week week";
    gap: 34px 48px;
    align-items: start;
  }

  .today-hero h2,
  .today-title {
    font-size: clamp(68px, 6.6vw, 102px);
  }

  .today-title em {
    margin-top: 12px;
  }

  .today-meta {
    max-width: 560px;
  }

  .hero-actions {
    max-width: 600px;
  }

  .week-panel {
    padding: 10px 18px 12px;
  }

  .week-grid {
    --week-dot-size: 39px;
  }

  .week-day {
    min-height: 126px;
    align-content: center;
  }

  .today-side {
    gap: 0 28px;
  }

  .stretch-card,
  .discipline-card,
  .quick-card,
  .goal-card,
  .today-side .metric {
    min-height: 124px;
  }
}

@media (max-width: 799px) {
  .section-grid.two-columns,
  .progress-layout {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 940px) and (max-width: 1099px) {
  .desktop-nav {
    height: 80px;
    grid-template-columns: minmax(165px, 1fr) auto minmax(165px, 1fr);
    padding: 0 20px;
  }

  .brand strong {
    font-size: 23px;
  }

  .desktop-nav-list {
    gap: 18px;
  }

  .desktop-nav .nav-button {
    font-size: 13px;
  }

  .page-main {
    padding: 40px 32px 48px;
  }

  .home-header {
    margin-bottom: 28px;
  }

  .today-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
    gap: 26px 28px;
  }

  .today-hero h2,
  .today-title {
    font-size: clamp(56px, 6.4vw, 68px);
  }

  .stretch-card,
  .discipline-card,
  .quick-card,
  .goal-card,
  .today-side .metric {
    min-height: 106px;
  }

  .week-day {
    min-height: 104px;
  }
}

@media (max-width: 599px) {
  .section-grid.two-columns,
  .progress-layout,
  .form-grid.two,
  .form-grid.three,
  .form-row {
    grid-template-columns: 1fr;
  }

  .page-heading {
    flex-wrap: wrap;
  }

  .page-heading:has(> .profile-trigger) > div {
    padding-right: 62px;
  }

  .page-heading > .profile-trigger {
    position: absolute;
    top: 0;
    right: 0;
  }

  .page-heading > .primary-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  html {
    scrollbar-width: none;
  }

  html::-webkit-scrollbar {
    display: none;
  }

  .page-main {
    padding-right: 16px;
    padding-left: 16px;
  }

  .page-heading h1 {
    font-size: clamp(44px, 13vw, 58px);
  }

  .modal-footer {
    bottom: 0;
  }

  .mobile-topbar {
    margin-bottom: 12px;
  }

  .home-header {
    margin-bottom: 12px;
  }

  .home-header .eyebrow {
    margin-bottom: 4px;
  }

  .home-date,
  .home-header h1.home-date {
    font-size: 23px;
  }

  .today-layout {
    gap: 12px;
  }

  .today-hero-copy {
    padding: 0;
  }

  .today-hero h2,
  .today-title {
    max-width: none;
    margin-bottom: 17px;
    font-size: clamp(42px, 11.7vw, 49px);
    line-height: 0.92;
  }

  .today-title em {
    margin-top: 5px;
  }

  .today-meta {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    margin-bottom: 17px;
    font-size: 13px;
  }

  .today-meta span {
    gap: 6px;
    padding: 0 7px;
  }

  .today-meta img {
    width: 18px;
    height: 18px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button {
    min-height: 50px;
  }

  .week-panel {
    padding-top: 8px;
    padding-right: 5px;
    padding-bottom: 6px;
    padding-left: 5px;
  }

  .week-day {
    padding: 6px 0;
    padding-left: 0;
    font-size: 11px;
  }

  .week-day strong {
    font-size: 12px;
  }

  .week-status {
    margin-top: 0;
  }

  .week-grid {
    --week-dot-size: 27px;
  }

  .today-side {
    gap: 0 16px;
  }

  .stretch-card,
  .discipline-card,
  .quick-card,
  .goal-card,
  .today-side .metric {
    min-height: 70px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .stretch-card,
  .discipline-card,
  .quick-card {
    display: flex;
    gap: 9px;
  }

  .card-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 0;
  }

  .card-copy strong {
    font-size: 13px;
  }

  .card-copy span {
    font-size: 12px;
  }

  .metric-value {
    margin-bottom: 2px;
    font-size: 35px;
  }

  .metric-label {
    margin-top: 4px;
    font-size: 12px;
  }

  .goal-card strong {
    font-size: 13px;
  }

  .goal-card > span:not(.goal-progress) {
    margin-top: 3px;
    font-size: 12px;
  }

  .goal-progress {
    height: 5px;
    margin-top: 9px;
  }

  .surface {
    padding: 17px;
  }

  .stretch-runner .stretch-visual {
    display: none;
  }

  .circuit-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
    gap: 9px;
  }

  .circuit-head > .field:first-child {
    grid-column: 1 / -1;
  }

  .circuit-item {
    grid-template-columns: minmax(0, 1fr) minmax(76px, 0.72fr) 44px;
    gap: 9px;
  }

  .circuit-item > .field:first-child {
    grid-column: 1 / -1;
  }

  .circuit-item .load-field {
    grid-column: auto;
  }

  .circuit-item .icon-button {
    width: 44px;
    min-height: 44px;
  }
}

@media (min-width: 800px) and (max-width: 1099px) {
  .section-grid.two-columns.programs-layout,
  .section-grid.two-columns.profile-layout {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1100px) {
  .section-grid.two-columns.programs-layout {
    grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1.28fr);
  }
}

@media (max-width: 340px) {
  .toggle-row {
    align-items: flex-start;
  }

  .page-main {
    padding-right: 13px;
    padding-left: 13px;
  }

  .mobile-brand strong {
    font-size: 22px;
  }

  .today-side {
    gap: 0 12px;
  }

  .card-copy span,
  .goal-card > span:not(.goal-progress),
  .metric-label {
    font-size: 11px;
  }

  .circuit-head,
  .circuit-item {
    column-gap: 5px;
  }
}

@media (max-height: 520px) and (min-width: 700px) {
  html {
    scrollbar-width: none;
  }

  html::-webkit-scrollbar {
    display: none;
  }

  .page-main {
    padding-top: 12px;
    padding-bottom: 92px;
  }

  .mobile-topbar {
    min-height: 42px;
    margin-bottom: 8px;
  }

  .home-header {
    margin-bottom: 8px;
  }

  .home-header .eyebrow {
    margin-bottom: 3px;
  }

  .home-date,
  .home-header h1.home-date {
    font-size: 22px;
  }

  .today-layout {
    gap: 14px;
  }

  .today-hero-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.72fr);
    grid-template-areas:
      "kicker actions"
      "title actions"
      "meta actions";
    gap: 4px 28px;
    align-items: center;
  }

  .today-hero-copy > .eyebrow {
    grid-area: kicker;
    margin-bottom: 0;
  }

  .today-title {
    grid-area: title;
    margin-bottom: 5px;
    font-size: 48px;
    line-height: 0.9;
  }

  .today-title em {
    margin-top: 4px;
  }

  .today-meta {
    grid-area: meta;
    margin-bottom: 0;
  }

  .hero-actions {
    grid-area: actions;
    grid-template-columns: 1fr;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button {
    min-height: 48px;
  }

  .runner-shell {
    width: min(100%, 900px);
    height: 100%;
    min-height: 0;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .runner-content {
    display: grid;
    min-height: 0;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: center;
    gap: 24px 38px;
    padding: 8px 0 0;
    text-align: left;
  }

  .runner-copy {
    grid-column: 1;
    min-width: 0;
    align-self: center;
  }

  .runner-panel {
    grid-column: 2;
    min-width: 0;
    align-self: center;
    gap: 8px;
  }

  .runner-content > .runner-summary,
  .runner-content > .summary-hero,
  .runner-content > .primary-button {
    grid-column: 1 / -1;
  }

  .runner-kicker {
    margin-bottom: 8px;
  }

  .runner-title {
    margin-bottom: 8px;
    font-size: clamp(44px, 7.5vw, 66px);
  }

  .runner-instruction {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
  }

  .runner-panel .timer-ring {
    width: min(38vh, 176px);
    margin: 0 auto 4px;
    border-width: 8px;
  }

  .runner-panel .target-value {
    margin: 0 auto 4px;
  }

  .runner-panel .target-number {
    font-size: clamp(76px, 13vw, 112px);
  }

  .runner-panel .runner-load {
    margin: 0 auto 4px;
  }

  .runner-actions {
    width: 100%;
  }

  .runner-actions .primary-button,
  .runner-actions .secondary-button {
    min-height: 54px;
  }

  .rest-screen .runner-panel .timer-ring {
    width: 100%;
    aspect-ratio: auto;
    padding: 8px 12px;
    border-width: 2px;
    border-radius: 14px;
  }

  .rest-screen .runner-panel .timer-value {
    font-size: 40px;
  }

  .rest-screen .runner-panel > .field,
  .rest-screen .quick-values {
    margin-bottom: 0;
  }

  .rest-screen .quick-value {
    min-height: 44px;
  }

  .stretch-runner .stretch-visual {
    display: none;
  }
}

@media (max-width: 760px) {
  .mobile-nav {
    grid-template-columns: repeat(var(--nav-count, 4), minmax(0, 1fr));
  }

  .impersonation-banner,
  .user-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .impersonation-banner .secondary-button,
  .admin-user-actions {
    width: 100%;
  }
}

/* Program items now carry their own type, target and load. */
.circuit-item {
  grid-template-columns: minmax(130px, 1fr) 116px 80px 84px 38px;
}

@media (max-width: 599px) {
  .circuit-item {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
  }

  .circuit-item > .field:first-child {
    grid-column: 1 / -1;
  }

  .circuit-item .type-field {
    grid-column: 1;
  }

  .circuit-item .load-field {
    grid-column: 1 / 3;
  }
}

/* Programme : composition guidée, variante 3 du 5 septembre 2026. */
.program-modal {
  width: min(1160px, 100%);
  max-height: calc(100dvh - 48px);
  border-radius: 20px;
}

.program-modal .modal-inner {
  width: 100%;
  padding: 24px 32px 0 48px;
}

.program-modal .modal-header {
  padding: 8px 0 28px;
}

.program-modal .modal-header h2 {
  font-size: 38px;
  line-height: 1.2;
}

.program-modal .modal-header .icon-button {
  flex: 0 0 44px;
  border-radius: 50%;
}

.program-section {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  column-gap: 60px;
}

.program-section-content { min-width: 0; }
.program-section-content:only-child { grid-column: 1 / -1; }

.program-section-marker {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  align-self: stretch;
  margin: 0;
  padding: 4px 0 0;
  font: 500 14px/1.4 var(--font-body);
  white-space: nowrap;
}

.program-section-marker > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid var(--pink);
  border-radius: 50%;
}

.program-section-marker img,
.program-number-icon img {
  width: 24px;
  height: 24px;
  filter: invert(47%) sepia(99%) saturate(2928%) hue-rotate(359deg) brightness(101%) contrast(105%);
}

.program-identity .program-section-marker::after,
.program-rhythm .program-section-marker::after {
  content: "";
  flex: 1;
  width: 1px;
  min-height: 28px;
  margin: 0 0 12px;
  background: var(--line-strong);
}

.program-identity-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
  padding: 4px 0 20px;
  border-bottom: 1px solid var(--line);
}

.program-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.program-field > label,
.program-field > span,
.program-mode-choices > legend {
  color: var(--muted);
  font: 400 14px/1.4 var(--font-body);
}

.program-field input,
.program-field textarea,
.program-field select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--control-border);
  border-radius: 9px;
  background: #0f0c16;
  color: var(--ink);
  font: 400 16px/1.4 var(--font-body);
}

.program-field input::placeholder,
.program-field textarea::placeholder { color: var(--muted-dim); }

.program-field select { color-scheme: dark; }
.program-field select option { background-color: #0f0c16; color: var(--ink); }
.program-field select option:disabled { color: var(--muted); }

.program-identity-fields input,
.program-identity-fields textarea {
  min-height: 62px;
  padding: 18px 16px;
}

.program-identity-fields textarea { resize: vertical; }

.program-rhythm-fields {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr);
  align-items: start;
  gap: 28px;
  padding: 34px 0 40px;
  border-bottom: 1px solid var(--line);
}

.program-rhythm .program-section-marker { padding-top: 24px; }
.program-circuits .program-section-marker { padding-top: 18px; }
.program-circuits .program-section-content { padding-top: 16px; }

.program-mode-choices {
  display: flex;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.program-mode-choices > legend { margin-bottom: 10px; }
.program-mode-choice { position: relative; flex: 1; min-width: 0; }
.program-mode-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.program-mode-choice > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 8px 12px;
  border: 1px solid var(--control-border);
  border-radius: 0 8px 8px 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}
.program-mode-choice:first-of-type > span { border-radius: 8px 0 0 8px; }
.program-mode-choice input:checked + span { background: var(--pink-strong); border-color: var(--pink); color: #fff; }
.program-mode-choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }
.program-mode-choice img { width: 23px; height: 23px; filter: brightness(0) invert(1); }

.program-mode-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  min-width: 0;
  padding-left: 28px;
  border-left: 1px solid var(--line-strong);
}
.program-mode-settings > :only-child { grid-column: 1 / -1; }

.program-number {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 42px;
  padding: 4px;
  border: 1px solid var(--control-border);
  border-radius: 8px;
  background: #0f0c16;
}
.program-number button {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 30px;
  padding: 5px;
  border: 0;
  border-radius: 5px;
  background: var(--surface-hover);
}
.program-number button:hover { background: var(--line); }
.program-number button img { width: 16px; height: 16px; filter: brightness(0) invert(1); }
.program-number-value { position: relative; flex: 1; min-width: 0; }
.program-number input {
  width: 100%;
  min-height: 30px;
  height: 30px;
  padding: 0 calc(2px + var(--program-unit-space, 0px)) 0 2px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  appearance: textfield;
  -moz-appearance: textfield;
}
.program-number input::-webkit-inner-spin-button,
.program-number input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.program-number-display {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 2px;
  overflow: hidden;
  pointer-events: none;
  white-space: pre;
  font: 400 16px/1.4 var(--font-body);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.program-number-measure { min-width: 0; overflow: hidden; visibility: hidden; }
.program-number-unit { flex: none; color: var(--ink); font-size: 14px; }
.program-number-display.is-incomplete .program-number-unit { visibility: hidden; }
.program-number-unit:empty { display: none; }
.program-number-icon { display: grid; place-items: center; flex: 0 0 32px; margin-right: 3px; border-right: 1px solid var(--line); }
.program-mode-settings .program-number { height: 50px; }

.program-circuits-panel { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 9px; }
.program-modal .circuit-editor { display: block; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.program-modal .circuit-editor + .circuit-editor { border-top: 1px solid var(--line-strong); }
.program-circuit-head { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 8px 14px; border-bottom: 1px solid var(--line-strong); }
.program-circuit-name { display: flex; align-items: center; flex: 1; min-width: 140px; padding: 8px 0; font-size: 17px; font-weight: 700; }
.program-rounds { flex-direction: row; align-items: center; gap: 12px; }
.program-rounds .program-number { width: 126px; }
.program-circuit-rest { font-size: 13px; }
.program-circuit-rest summary { display: flex; align-items: center; gap: 6px; min-height: 40px; color: var(--muted); cursor: pointer; list-style: none; }
.program-circuit-rest summary strong { color: var(--ink); font-weight: 500; }
.program-circuit-rest summary img { width: 16px; height: 16px; filter: brightness(0) invert(1); }
.program-circuit-rest[open] { flex-basis: 100%; }
.program-circuit-rest-body { display: grid; grid-template-columns: minmax(160px, 240px) minmax(0, 1fr); align-items: end; gap: 20px; padding: 10px 0; }
.program-circuit-rest-body small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.program-circuit-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.program-duplicate-circuit { min-height: 44px; padding: 8px 10px; font-size: 14px; }
.program-duplicate-circuit img { filter: brightness(0) invert(1); }

.program-item-headings,
.program-modal .circuit-item {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(125px, 1fr) minmax(125px, 1fr) minmax(125px, 1fr) 32px;
  gap: 12px;
}
.program-item-headings { padding: 18px 12px 8px; color: var(--muted); font-size: 13px; text-align: center; }
.program-item-headings > :first-child { padding-left: 76px; text-align: left; }
.program-modal .circuit-items { gap: 0; padding: 0 10px; }
.program-modal .circuit-item { align-items: center; padding: 7px 6px; border: 1px solid var(--line); border-bottom: 0; background: rgba(255, 255, 255, .012); }
.program-modal .circuit-item:first-child { border-radius: 10px 10px 0 0; }
.program-modal .circuit-item:last-child { border-bottom: 1px solid var(--line); border-radius: 0 0 10px 10px; }
.program-modal .circuit-item:only-child { border-radius: 10px; }
.program-item-exercise { display: flex; align-items: center; gap: 10px; min-width: 0; }
.program-item-order { flex: 0 0 20px; text-align: center; font-size: 15px; }
.program-item-icon { display: grid; place-items: center; flex: 0 0 44px; height: 46px; border: 1px solid var(--line); border-radius: 9px; }
.program-item-icon img { width: 27px; height: 27px; filter: invert(28%) sepia(99%) saturate(4623%) hue-rotate(329deg) brightness(104%) contrast(103%); }
.program-item-exercise .program-field { flex: 1; }
.program-item-exercise select { border-color: transparent; padding-left: 0; }
.program-modal .circuit-item .program-field > span,
.program-modal .circuit-item .program-field > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.program-modal .circuit-item .program-field { gap: 0; }
.program-modal .program-remove-item { width: 30px; min-height: 32px; border-radius: 50%; }
.program-modal .program-remove-item img { width: 16px; height: 16px; }
.program-modal .program-add-exercise,
.program-modal .program-add-circuit { justify-content: flex-start; width: 100%; padding: 12px 16px; border: 0; border-radius: 0; font: 500 16px/1.4 var(--font-body); }
.program-modal .program-add-circuit { border-top: 1px solid var(--line-strong); }
.program-add-exercise img,
.program-add-circuit img { filter: invert(28%) sepia(99%) saturate(4623%) hue-rotate(329deg) brightness(104%) contrast(103%); }

.program-stretches { margin-top: 20px; border: 1px solid var(--line-strong); border-radius: 10px; }
.program-stretches summary { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 14px 20px; list-style: none; cursor: pointer; font-size: 16px; }
.program-stretches summary > span { flex: 1; }
.program-stretches summary img { width: 23px; height: 23px; filter: brightness(0) invert(1); }
.program-stretches summary img:last-child { width: 17px; height: 17px; }
.program-stretches summary small { color: var(--muted); font-size: 13px; font-weight: 400; }
.program-stretches .stretch-picker { padding: 0 18px 18px; }
.program-empty-stretches { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 14px; }
.program-create-stretch { grid-column: 1 / -1; justify-content: flex-start; border-style: dashed; }
.program-modal summary::-webkit-details-marker { display: none; }
.program-modal details[open] > summary > img:last-child { transform: rotate(180deg); }
.program-modal :is(input, select, textarea, summary, button):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.program-modal .modal-footer { bottom: 0; margin: 20px -32px 0 -48px; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); gap: 16px; }
.program-modal .modal-footer > button { min-height: 60px; font-family: var(--font-body); font-size: 17px; }
.program-modal .modal-footer > .secondary-button { flex: 0 1 35%; color: var(--ink); }
.program-modal .modal-footer > .primary-button { flex: 1; }

@media (max-width: 1099px) {
  .program-modal .modal-inner { padding: 20px 24px 0; }
  .program-section { grid-template-columns: 76px minmax(0, 1fr); column-gap: 20px; }
  .program-rhythm-fields { grid-template-columns: 1fr; gap: 20px; }
  .program-mode-settings { padding-left: 0; border-left: 0; }
  .program-modal .modal-footer { margin-right: -24px; margin-left: -24px; }
  .program-item-headings,
  .program-modal .circuit-item { grid-template-columns: minmax(0, 1.5fr) 132px minmax(105px, 1fr) minmax(105px, 1fr) 30px; gap: 8px; }
  .program-item-icon { display: none; }
  .program-item-headings > :first-child { padding-left: 32px; }
}

@media (max-width: 799px) {
  .program-modal { max-height: 96dvh; border-radius: 20px 20px 0 0; }
  .program-modal .modal-inner { padding: 12px 18px 0; }
  .program-modal .modal-header { padding: 8px 0 20px; }
  .program-modal .modal-header h2 { font-size: 28px; }
  .program-section { grid-template-columns: 1fr; gap: 16px; }
  .program-section-marker { flex-direction: row; align-items: center; gap: 12px; padding: 0 !important; font-weight: 600; font-size: 15px; }
  .program-section-marker > span { width: 38px; height: 38px; }
  .program-section-marker img { width: 21px; height: 21px; }
  .program-section-marker::after { display: none; }
  .program-identity-fields { gap: 18px; padding: 0 0 24px; }
  .program-rhythm,
  .program-circuits { padding-top: 24px; }
  .program-rhythm-fields { padding: 0 0 24px; }
  .program-circuits .program-section-content { padding-top: 0; }
  .program-circuit-head { gap: 10px; padding: 12px; }
  .program-circuit-name { flex-basis: calc(100% - 50px); }
  .program-rounds { flex: 0 0 auto; margin-right: auto; }
  .program-item-headings { display: none; }
  .program-modal .circuit-items { padding: 0; }
  .program-modal .circuit-item { position: relative; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; padding: 14px 12px; border-right: 0; border-left: 0; border-radius: 0 !important; }
  .program-item-exercise { grid-column: 1 / -1; padding-right: 40px; }
  .program-item-icon { display: grid; flex-basis: 34px; height: 36px; }
  .program-item-icon img { width: 23px; height: 23px; }
  .program-modal .circuit-item .program-field > span,
  .program-modal .circuit-item .program-field > label { position: static; width: auto; height: auto; clip-path: none; white-space: normal; font-size: 12px; }
  .program-modal .circuit-item .program-field { gap: 8px; }
  .program-item-exercise .program-field > span { display: none; }
  .program-modal .program-remove-item { position: absolute; top: 18px; right: 12px; min-height: 36px; width: 36px; }
  .program-modal .modal-footer { margin: 20px -18px 0; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); gap: 10px; flex-wrap: wrap; }
  .program-modal .modal-footer > button { min-height: 50px; font-size: 15px; }
  .program-modal .modal-footer > .secondary-button { flex-basis: 28%; }
  .program-modal .modal-footer > .danger-button { flex: 1; }
  .program-modal .modal-footer:has(.danger-button) > .primary-button { flex-basis: 100%; }
}

@media (max-width: 539px) {
  .program-identity-fields { grid-template-columns: 1fr; }
  .program-identity-fields input,
  .program-identity-fields textarea { min-height: 52px; padding: 13px; }
  .program-mode-settings { gap: 12px; }
  .program-mode-settings .program-field > label { font-size: 12px; }
  .program-number-icon { display: none; }
  .program-circuit-head { align-items: flex-start; }
  .program-circuit-rest { flex-basis: 100%; }
  .program-circuit-rest-body { grid-template-columns: 1fr; gap: 12px; }
  .program-modal .circuit-item { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program-item-load { grid-column: 2; }
  .program-item-kind { grid-column: 1 / -1; }
  .program-item-target { grid-column: 1; }
  .program-number button { flex-basis: 30px; width: 30px; height: 34px; }
  .program-number { height: 44px; }
  .program-stretches summary { padding: 12px; font-size: 14px; }
  .program-stretches summary small { display: block; font-size: 12px; }
  .program-stretches .stretch-picker { grid-template-columns: 1fr; padding: 0 12px 12px; }
  .program-modal .modal-footer > button { padding: 10px 12px; font-size: 14px; gap: 6px; }
  .program-modal .modal-footer > .secondary-button { flex-basis: auto; }
  .program-modal .modal-footer img { width: 18px; height: 18px; }
}

@media (max-width: 359px) {
  .program-item-target,
  .program-item-load { grid-column: 1 / -1; }
}

/* Touch controls keep the timer as the main pause target. */
.runner-actions .primary-button.large-button { min-height: 76px; font-size: 19px; }
.runner-actions .secondary-button.large-button { min-height: 64px; }
.runner-panel .timer-control,
.rest-screen .runner-panel .timer-control {
  position: relative; display: grid; place-items: center; flex: none;
  width: clamp(164px, 28vh, 248px); height: auto; aspect-ratio: 1;
  padding: 16px; border-radius: 50%; border-width: 4px;
  cursor: pointer; color: inherit; font: inherit; overflow: hidden;
  touch-action: manipulation;
}
.timer-control:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }
.timer-pause-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  background: rgb(12 8 18 / 78%); color: var(--orange); font-size: 15px; font-weight: 800;
}
.timer-pause-overlay img { width: 64px; height: 64px; filter: invert(47%) sepia(99%) saturate(2928%) hue-rotate(359deg) brightness(101%) contrast(105%); }

.runner-result-options { display: flex; flex-wrap: wrap; justify-content: center; align-items: end; gap: 12px; width: 100%; margin: 6px 0 16px; }
.rest-screen .runner-result-options > .runner-instruction { flex-basis: 100%; margin: 0; text-align: center; }
.runner-result-options .quick-values { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; }
.runner-result-options .quick-value { flex: none; width: 58px; height: 58px; min-height: 58px; padding: 0; border-radius: 14px; font-size: 22px; }
.runner-custom-value { display: flex; flex-direction: column; gap: 5px; width: 88px; font-size: 12px; color: var(--muted); text-align: center; }
.runner-custom-value input { height: 58px; width: 88px; padding: 6px; text-align: center; font-size: 22px; border: 2px solid var(--line); border-radius: 14px; }
.runner-custom-value.is-selected { color: var(--orange); }
.runner-custom-value.is-selected input { border-color: var(--orange); box-shadow: 0 0 0 2px rgb(255 106 24 / 20%); background: rgb(255 106 24 / 12%); }
@media (max-width: 370px) { .runner-result-options .quick-value { width: 52px; height: 52px; min-height: 52px; } }

.warmup-card { margin-bottom: 24px; }
.warmup-card > .muted { margin: 0 24px 20px; }

button.week-day { border: 0; cursor: pointer; background: transparent; color: inherit; font: inherit; padding: 12px 0; }
button.week-day.is-selected { background: rgb(255 106 24 / 12%); box-shadow: inset 0 0 0 2px var(--orange); border-radius: 14px; }
button.week-day:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.day-recap { margin-bottom: 20px; }
.day-recap > .eyebrow, .day-recap > h2, .day-recap > p { margin-left: 24px; margin-right: 24px; }
.day-recap > .eyebrow { margin-top: 24px; }
.day-recap .surface-header > img { width: 36px; height: 36px; }
.recap-hint { font-size: 13px; }
.recap-set { display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--line); }
.recap-set .row-main { flex: 1; min-width: 0; }
.recap-result { display: flex; align-items: center; gap: 6px; min-height: 52px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; color: var(--ink); background: var(--surface); font: inherit; cursor: pointer; }
.recap-result strong { font-size: 22px; color: var(--orange); }
.recap-result img, .recap-edit img { width: 16px; height: 16px; }
.recap-edit { display: flex; align-items: center; gap: 4px; }
.recap-edit input { width: 76px; height: 52px; padding: 8px; font-size: 20px; text-align: center; }
@media (max-width: 520px) { .recap-set { flex-wrap: wrap; padding: 14px 16px; } .recap-edit { margin-left: auto; } }

.runner-result-options { gap: 10px; }
.runner-result-options .quick-values { gap: 6px; }
.runner-result-options .quick-value { width: 56px; height: 56px; min-height: 56px; }
.runner-custom-value, .runner-custom-value input { width: 76px; }
.runner-custom-value input { height: 56px; background: #0f0c16; color: var(--ink); color-scheme: dark; }
.recap-edit input { background: #0f0c16; color: var(--ink); color-scheme: dark; border: 2px solid var(--orange); border-radius: 10px; }
@media (max-width: 600px) {
  .rest-screen .runner-content { padding: 20px 0; gap: 16px; }
  .rest-screen .runner-instruction { margin: 0 0 12px; font-size: 15px; }
  .rest-screen .runner-copy > .muted { margin: 8px 0; font-size: 14px; }
  .rest-screen .runner-panel .timer-control { width: clamp(164px, 25vh, 212px); margin-bottom: 18px; }
}
@media (max-width: 370px) {
  .runner-result-options .quick-value { width: 48px; height: 48px; min-height: 48px; }
  .runner-custom-value, .runner-custom-value input { width: 64px; }
  .runner-custom-value input { height: 48px; }
}

.recap-result img, .recap-edit img, .day-recap .surface-header > img { filter: brightness(0) invert(1); }

.runner-panel .timer-control .timer-value { font-size: clamp(44px, 8vh, 64px); letter-spacing: -.035em; }
@media (max-width: 370px) { .runner-result-options { gap: 8px; } .runner-result-options .quick-values { gap: 5px; } }
