:root {
  --ink: #10131a;
  --ink-soft: #171c25;
  --steel: #202632;
  --steel-light: #2a3241;
  --line: #343d4e;
  --chalk: #f5f7fb;
  --fog: #aab3c2;
  --muted: #778296;
  --cobalt: #5f7df7;
  --cobalt-bright: #8da3ff;
  --mint: #5cd6ad;
  --amber: #f0b65d;
  --danger: #f37373;
  --shadow: 0 18px 60px rgb(0 0 0 / 28%);
  --display: "Arial Narrow", "Avenir Next Condensed", "Roboto Condensed", Impact, sans-serif;
  --body: Inter, "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --data: "SFMono-Regular", "Roboto Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ink);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 76% -10%, rgb(95 125 247 / 13%), transparent 34rem),
    var(--ink);
  color: var(--chalk);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgb(141 163 255 / 65%);
  outline-offset: 2px;
}

.is-hidden {
  display: none !important;
}

.ambient {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.17;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
}

.app-shell {
  width: min(100%, 600px);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cobalt-bright);
  font-family: var(--data);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-shell {
  position: relative;
  min-height: 100dvh;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

.app-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  height: calc(70px + env(safe-area-inset-top));
  align-items: flex-end;
  justify-content: space-between;
  padding: env(safe-area-inset-top) 20px 14px;
  border-bottom: 1px solid rgb(52 61 78 / 62%);
  background: rgb(16 19 26 / 86%);
  backdrop-filter: blur(18px);
}

.wordmark {
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--display);
  font-size: 28px;
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.wordmark span {
  color: var(--cobalt-bright);
}

.connection-state {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 3px;
  color: var(--muted);
  font-family: var(--data);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.connection-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px rgb(92 214 173 / 45%);
}

.connection-state.is-syncing i {
  background: var(--amber);
  animation: pulse 0.8s infinite alternate;
}

.connection-state.is-error i {
  background: var(--danger);
}

.view {
  padding: 30px 18px 12px;
  animation: reveal 0.32s ease both;
}

.page-intro {
  margin: 0 2px 30px;
}

.page-intro .date-line {
  margin: 0 0 8px;
  color: var(--fog);
  font-size: 13px;
  font-weight: 650;
  text-transform: capitalize;
}

.page-intro h1,
.history-heading h1 {
  max-width: 460px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(48px, 15vw, 76px);
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.page-intro h1 em {
  color: var(--cobalt-bright);
  font-style: normal;
}

.active-session {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  padding: 21px;
  border: 1px solid rgb(95 125 247 / 42%);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgb(95 125 247 / 18%), transparent 60%),
    var(--ink-soft);
  box-shadow: var(--shadow);
}

.active-session::after {
  position: absolute;
  top: -44px;
  right: -30px;
  width: 120px;
  height: 120px;
  border: 15px solid rgb(95 125 247 / 10%);
  border-radius: 50%;
  content: "";
}

.active-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--cobalt-bright);
  font-family: var(--data);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.active-label::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cobalt);
  box-shadow: 0 0 12px var(--cobalt);
  content: "";
}

.active-session h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 38px;
  font-stretch: condensed;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.active-session > p {
  margin: 5px 0 20px;
  color: var(--fog);
  font-size: 13px;
}

.progress-line {
  display: block;
  width: 100%;
  height: 5px;
  overflow: hidden;
  margin: 0 0 11px;
  padding: 0;
  appearance: none;
  border: 0;
  border-radius: 10px;
  background: var(--steel-light);
}

.progress-line::-webkit-progress-bar {
  border-radius: 10px;
  background: var(--steel-light);
}

.progress-line::-webkit-progress-value {
  border-radius: 10px;
  background: var(--cobalt);
  box-shadow: 0 0 14px rgb(95 125 247 / 60%);
  transition: width 0.35s ease;
}

.progress-line::-moz-progress-bar {
  border-radius: 10px;
  background: var(--cobalt);
  box-shadow: 0 0 14px rgb(95 125 247 / 60%);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  color: var(--fog);
  font-family: var(--data);
  font-size: 10px;
}

.full-button,
.primary-button,
.secondary-button {
  min-height: 52px;
  border-radius: 15px;
  font-weight: 800;
}

.full-button {
  width: 100%;
  margin-top: 20px;
  border: 0;
  background: var(--chalk);
  color: var(--ink);
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 2px 13px;
}

.section-label h2 {
  margin: 0;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.section-label span {
  color: var(--muted);
  font-family: var(--data);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workout-grid {
  display: grid;
  gap: 10px;
}

.workout-choice {
  display: grid;
  min-height: 108px;
  grid-template-columns: 67px 1fr 36px;
  align-items: center;
  padding: 0 17px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--ink-soft);
  text-align: left;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
}

.workout-choice:active {
  transform: scale(0.985);
}

.workout-letter {
  align-self: stretch;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--cobalt-bright);
  font-family: var(--display);
  font-size: 47px;
  font-stretch: condensed;
  font-weight: 900;
}

.workout-choice strong {
  display: block;
  padding-left: 17px;
  font-family: var(--display);
  font-size: 25px;
  font-stretch: condensed;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.workout-choice small {
  display: block;
  margin-top: 5px;
  color: var(--fog);
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.choice-arrow {
  color: var(--muted);
  font-size: 22px;
  text-align: right;
}

.home-footnote {
  margin: 28px 8px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.install-button {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cobalt-bright);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bottom-nav {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  width: min(100%, 600px);
  height: calc(74px + env(safe-area-inset-bottom));
  grid-template-columns: 1fr 1fr;
  margin: 0 auto;
  padding: 8px 24px max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid rgb(52 61 78 / 72%);
  background: rgb(16 19 26 / 92%);
  backdrop-filter: blur(20px);
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.nav-item.is-active {
  color: var(--chalk);
}

.nav-icon {
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.nav-history-icon {
  font-family: var(--data);
  font-size: 19px;
}

.session-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: -4px 2px 24px;
}

.session-topline .eyebrow {
  margin-bottom: 7px;
}

.session-topline h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 42px;
  font-stretch: condensed;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.ghost-menu {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--ink-soft);
  color: var(--fog);
  font-size: 20px;
}

.session-progress {
  margin: 0 2px 18px;
}

.session-progress .progress-meta {
  margin-bottom: 10px;
}

.set-stage {
  position: relative;
  overflow: hidden;
  padding: 0 18px 20px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: var(--ink-soft);
  box-shadow: var(--shadow);
}

.set-counter {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  min-height: 119px;
  margin: 0 -18px 21px;
  padding: 19px 20px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(110deg, rgb(95 125 247 / 18%), transparent 62%),
    var(--steel);
}

.set-number {
  display: flex;
  align-items: baseline;
  font-family: var(--display);
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.75;
}

.set-number strong {
  color: var(--chalk);
  font-size: 81px;
}

.set-number span {
  margin-left: 8px;
  color: var(--muted);
  font-size: 32px;
}

.set-target {
  padding-bottom: 2px;
  text-align: right;
}

.set-target strong {
  display: block;
  font-family: var(--data);
  font-size: 15px;
}

.set-target small {
  display: block;
  margin-top: 7px;
  color: var(--fog);
  font-size: 10px;
}

.exercise-kicker {
  margin: 0 0 7px;
  color: var(--cobalt-bright);
  font-family: var(--data);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.set-stage h2 {
  max-width: 420px;
  margin: 0 0 13px;
  font-family: var(--display);
  font-size: 32px;
  font-stretch: condensed;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.variant-select {
  width: 100%;
  height: 42px;
  margin-bottom: 18px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--steel);
  color: var(--fog);
  font-size: 12px;
}

.last-load {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 15px;
  padding: 0 2px;
  color: var(--fog);
  font-size: 11px;
}

.last-load strong {
  color: var(--cobalt-bright);
  font-family: var(--data);
  font-size: 11px;
}

.load-control {
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  gap: 8px;
  align-items: stretch;
}

.step-button {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--steel);
  color: var(--fog);
  font-family: var(--data);
  font-size: 22px;
}

.weight-field {
  position: relative;
  min-width: 0;
}

.weight-field input {
  width: 100%;
  height: 72px;
  padding: 0 49px 0 12px;
  border: 1px solid rgb(95 125 247 / 62%);
  border-radius: 15px;
  background: rgb(95 125 247 / 8%);
  color: var(--chalk);
  font-family: var(--data);
  font-size: clamp(27px, 9vw, 38px);
  font-weight: 800;
  text-align: center;
}

.weight-field span {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--muted);
  font-family: var(--data);
  font-size: 10px;
  transform: translateY(-50%);
}

.reps-row {
  display: grid;
  grid-template-columns: 1fr 86px;
  align-items: center;
  gap: 12px;
  margin-top: 11px;
}

.reps-row label {
  color: var(--fog);
  font-size: 11px;
}

.reps-row input {
  width: 100%;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--steel);
  color: var(--chalk);
  font-family: var(--data);
  text-align: center;
}

.validate-set {
  display: flex;
  width: 100%;
  min-height: 59px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 17px;
  border: 0;
  border-radius: 16px;
  background: var(--cobalt);
  color: white;
  font-weight: 850;
  box-shadow: 0 12px 28px rgb(95 125 247 / 23%);
}

.validate-set .check {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid rgb(255 255 255 / 70%);
  border-radius: 50%;
  font-size: 12px;
}

.validate-set.is-completed {
  background: var(--mint);
  color: var(--ink);
  box-shadow: none;
}

.exercise-overview {
  margin-top: 27px;
}

.exercise-overview h3 {
  margin: 0 2px 12px;
  color: var(--fog);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exercise-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 62px;
  padding: 0 9px 0 0;
  border: 0;
  border-bottom: 1px solid rgb(52 61 78 / 60%);
  background: transparent;
  text-align: left;
}

.exercise-row.is-current {
  margin: 0;
  border: 1px solid rgb(95 125 247 / 45%);
  border-radius: 14px;
  background: rgb(95 125 247 / 7%);
}

.exercise-main {
  display: grid;
  min-width: 0;
  min-height: 62px;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 0 0 0 12px;
  border: 0;
  background: transparent;
  text-align: left;
}

.exercise-index {
  color: var(--muted);
  font-family: var(--data);
  font-size: 10px;
}

.exercise-row.is-done .exercise-index {
  color: var(--mint);
}

.exercise-name {
  overflow: hidden;
}

.exercise-name strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exercise-name small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--data);
  font-size: 9px;
}

.set-dots {
  display: flex;
  gap: 5px;
}

.set-dot {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--steel);
  color: var(--muted);
  font-family: var(--data);
  font-size: 8px;
}

.set-dot.is-done {
  border-color: rgb(92 214 173 / 42%);
  background: rgb(92 214 173 / 14%);
  color: var(--mint);
}

.finish-card {
  padding: 29px 20px;
  border: 1px solid rgb(92 214 173 / 42%);
  border-radius: 24px;
  background: linear-gradient(145deg, rgb(92 214 173 / 14%), transparent 66%);
  text-align: center;
}

.finish-mark {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  margin: 0 auto 18px;
  border: 1px solid rgb(92 214 173 / 45%);
  border-radius: 50%;
  color: var(--mint);
  font-size: 26px;
}

.finish-card h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 40px;
  font-stretch: condensed;
  letter-spacing: -0.04em;
}

.finish-card p {
  margin: 9px 0 22px;
  color: var(--fog);
  font-size: 12px;
}

.primary-button {
  width: 100%;
  border: 0;
  background: var(--mint);
  color: var(--ink);
}

.danger-link {
  display: block;
  margin: 24px auto 0;
  padding: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.history-heading {
  margin-bottom: 28px;
}

.history-heading h1 {
  font-size: clamp(51px, 16vw, 78px);
}

.history-heading p {
  margin: 12px 2px 0;
  color: var(--fog);
  font-size: 13px;
}

.history-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: -8px 0 22px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--ink-soft);
}

.history-tabs button {
  min-height: 43px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.history-tabs button.is-active {
  background: var(--steel-light);
  color: var(--chalk);
  box-shadow: 0 5px 14px rgb(0 0 0 / 18%);
}

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

.history-card {
  display: grid;
  width: 100%;
  min-height: 105px;
  grid-template-columns: 55px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--ink-soft);
  text-align: left;
}

.history-type {
  display: grid;
  width: 50px;
  height: 70px;
  place-items: center;
  border-radius: 12px;
  background: var(--steel);
  color: var(--cobalt-bright);
  font-family: var(--display);
  font-size: 31px;
  font-stretch: condensed;
  font-weight: 900;
}

.history-main strong {
  display: block;
  font-family: var(--display);
  font-size: 21px;
  font-stretch: condensed;
  text-transform: uppercase;
}

.history-main time,
.history-main small {
  display: block;
  margin-top: 5px;
  color: var(--fog);
  font-size: 10px;
}

.history-main small {
  color: var(--muted);
  font-family: var(--data);
}

.history-card > span:last-child {
  color: var(--muted);
}

.empty-state {
  padding: 44px 24px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  color: var(--fog);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.history-actions {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.secondary-button {
  padding: 0 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fog);
  font-size: 11px;
}

.progress-filters {
  display: flex;
  gap: 7px;
  margin: 0 0 17px;
  overflow-x: auto;
  padding: 0 1px 3px;
  scrollbar-width: none;
}

.progress-filters::-webkit-scrollbar {
  display: none;
}

.progress-filters button {
  min-width: 61px;
  min-height: 38px;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.progress-filters button.is-active {
  border-color: rgb(95 125 247 / 58%);
  background: rgb(95 125 247 / 13%);
  color: var(--cobalt-bright);
}

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

.progress-card {
  display: grid;
  width: 100%;
  min-height: 145px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 15px;
  padding: 17px 17px 11px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background:
    linear-gradient(110deg, rgb(95 125 247 / 7%), transparent 52%),
    var(--ink-soft);
  text-align: left;
}

.progress-card-copy {
  min-width: 0;
}

.progress-workout {
  display: block;
  margin-bottom: 6px;
  color: var(--cobalt-bright);
  font-family: var(--data);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.progress-card-copy strong {
  display: block;
  overflow: hidden;
  font-family: var(--display);
  font-size: 22px;
  font-stretch: condensed;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-overflow: ellipsis;
}

.progress-card-copy small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
}

.progress-card-data {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.progress-latest {
  display: flex;
  align-items: baseline;
  color: var(--chalk);
  font-family: var(--data);
}

.progress-latest strong {
  font-size: 26px;
  letter-spacing: -0.06em;
}

.progress-latest small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.change-pill {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-family: var(--data);
  font-size: 8px;
  font-style: normal;
  font-weight: 750;
  white-space: nowrap;
}

.change-pill.is-up {
  border-color: rgb(92 214 173 / 34%);
  background: rgb(92 214 173 / 10%);
  color: var(--mint);
}

.change-pill.is-down {
  border-color: rgb(243 115 115 / 28%);
  background: rgb(243 115 115 / 8%);
  color: var(--danger);
}

.progress-card-chart {
  grid-column: 1 / -1;
  height: 42px;
  margin: 0 -4px;
}

.progress-sparkline {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.progress-sparkline line {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.progress-sparkline polyline {
  fill: none;
  stroke: var(--cobalt-bright);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

.progress-sparkline circle {
  fill: var(--ink-soft);
  stroke: var(--cobalt-bright);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.progress-sparkline circle.is-latest {
  fill: var(--cobalt-bright);
  filter: drop-shadow(0 0 5px rgb(141 163 255 / 55%));
}

.detail-back {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  margin: -10px 0 17px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fog);
  font-size: 12px;
}

.exercise-detail-head {
  margin-bottom: 23px;
}

.exercise-detail-head h1 {
  max-width: 500px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(43px, 13vw, 66px);
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.exercise-detail-head > p:last-child {
  margin: 10px 0 0;
  color: var(--fog);
  font-size: 11px;
}

.progress-hero {
  padding: 20px 18px 14px;
  border: 1px solid rgb(95 125 247 / 38%);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgb(95 125 247 / 13%), transparent 58%),
    var(--ink-soft);
  box-shadow: var(--shadow);
}

.record-load {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.record-load > span {
  padding-bottom: 7px;
  color: var(--fog);
  font-size: 10px;
}

.record-load > strong {
  font-family: var(--data);
  font-size: 41px;
  letter-spacing: -0.075em;
  line-height: 1;
}

.record-load > strong small {
  margin-left: 5px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.progress-hero > .change-pill {
  margin-top: 12px;
}

.large-progress-chart {
  height: 116px;
  margin-top: 16px;
  padding-top: 4px;
  border-top: 1px solid rgb(52 61 78 / 48%);
}

.chart-range {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--data);
  font-size: 8px;
  text-transform: capitalize;
}

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

.progress-timeline > h2 {
  margin: 0 2px 11px;
  color: var(--fog);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.progress-entry {
  position: relative;
  padding: 17px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--ink-soft);
}

.progress-entry + .progress-entry {
  margin-top: 8px;
}

.entry-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}

.entry-date time {
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
}

.entry-date span {
  color: var(--muted);
  font-family: var(--data);
  font-size: 8px;
}

.entry-loads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.entry-loads > span {
  display: flex;
  min-height: 53px;
  flex-direction: column;
  justify-content: center;
  padding: 7px 8px;
  border-radius: 10px;
  background: var(--steel);
}

.entry-loads small {
  color: var(--muted);
  font-family: var(--data);
  font-size: 7px;
}

.entry-loads strong {
  display: block;
  margin-top: 3px;
  font-family: var(--data);
  font-size: 11px;
}

.entry-loads em {
  margin-top: 3px;
  color: var(--fog);
  font-size: 8px;
  font-style: normal;
}

.record-tag {
  position: absolute;
  top: -7px;
  right: 14px;
  padding: 3px 7px;
  border-radius: 99px;
  background: var(--cobalt);
  color: white;
  font-family: var(--data);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.history-detail-head {
  margin-bottom: 24px;
}

.history-detail-head h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 54px;
  font-stretch: condensed;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.history-detail-head p {
  margin: 7px 0 0;
  color: var(--fog);
  font-size: 12px;
  text-transform: capitalize;
}

.detail-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 24px;
}

.detail-stat {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--ink-soft);
}

.detail-stat strong {
  display: block;
  font-family: var(--data);
  font-size: 19px;
}

.detail-stat span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.detail-exercise {
  padding: 16px 2px;
  border-bottom: 1px solid rgb(52 61 78 / 65%);
}

.detail-exercise h3 {
  margin: 0 0 11px;
  font-size: 12px;
}

.detail-sets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.detail-set {
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--steel);
  color: var(--fog);
  font-family: var(--data);
  font-size: 9px;
}

.detail-set strong {
  color: var(--chalk);
}

.delete-session-zone {
  margin-top: 30px;
  padding: 20px;
  border: 1px solid rgb(243 115 115 / 25%);
  border-radius: 17px;
  background: rgb(243 115 115 / 5%);
  text-align: center;
}

.delete-session-zone p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.delete-session-zone button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgb(243 115 115 / 42%);
  border-radius: 12px;
  background: transparent;
  color: var(--danger);
  font-size: 10px;
  font-weight: 800;
}

.rest-drawer {
  position: fixed;
  z-index: 60;
  right: 12px;
  bottom: calc(82px + env(safe-area-inset-bottom));
  left: 12px;
  width: min(calc(100% - 24px), 576px);
  margin: auto;
  overflow: hidden;
  border: 1px solid rgb(240 182 93 / 47%);
  border-radius: 19px;
  background: rgb(32 38 50 / 96%);
  box-shadow: 0 20px 70px rgb(0 0 0 / 48%);
  backdrop-filter: blur(20px);
  animation: drawer-in 0.25s ease both;
}

.rest-progress {
  display: block;
  width: 100%;
  height: 3px;
  appearance: none;
  border: 0;
  background: var(--line);
}

.rest-progress::-webkit-progress-bar {
  background: var(--line);
}

.rest-progress::-webkit-progress-value {
  background: var(--amber);
}

.rest-progress::-moz-progress-bar {
  background: var(--amber);
}

.rest-copy {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px 11px 18px;
}

.rest-copy p {
  margin: 0 0 4px;
  color: var(--amber);
  font-family: var(--data);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rest-copy strong {
  font-family: var(--data);
  font-size: 25px;
}

.rest-copy button {
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ink-soft);
  color: var(--fog);
  font-size: 11px;
  font-weight: 750;
}

.toast {
  position: fixed;
  z-index: 80;
  top: calc(17px + env(safe-area-inset-top));
  left: 50%;
  max-width: calc(100% - 34px);
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--chalk);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
  transform: translateX(-50%);
  animation: toast-in 0.22s ease both;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
}

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

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, -7px);
  }
}

@keyframes pulse {
  to {
    opacity: 0.35;
  }
}

@media (min-width: 601px) {
  body {
    padding: 28px 0;
  }

  .app-shell {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: rgb(16 19 26 / 72%);
    box-shadow: 0 30px 100px rgb(0 0 0 / 35%);
  }

  .app-shell {
    min-height: calc(100dvh - 56px);
  }

  .app-header {
    top: 28px;
  }

  .bottom-nav {
    bottom: 28px;
    border: 1px solid var(--line);
    border-radius: 0 0 30px 30px;
  }

  .rest-drawer {
    bottom: 116px;
  }

  .workout-choice:hover {
    border-color: rgb(95 125 247 / 48%);
  }
}

@media (max-width: 374px) {
  .view {
    padding-right: 13px;
    padding-left: 13px;
  }

  .set-stage {
    padding-right: 13px;
    padding-left: 13px;
  }

  .set-counter {
    margin-right: -13px;
    margin-left: -13px;
  }

  .set-number strong {
    font-size: 69px;
  }

  .set-stage h2 {
    font-size: 28px;
  }

  .set-dot {
    width: 26px;
    height: 28px;
  }
}

@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;
  }
}
