:root {
  color-scheme: dark;
  --bg: #141b18;
  --card: #202b25;
  --line: #35443b;
  --text: #f2f4e9;
  --muted: #b1bdb3;
  --lime: #d4ef8b;
  --red: #ffb5a6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  line-height: 1.5;
  font-size: 16px;
}
header {
  max-width: 680px;
  margin: auto;
  padding: 25px 22px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -1px;
  text-decoration: none;
  color: var(--text);
}
.brand span {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--lime);
}
#today {
  font-size: 12px;
  color: var(--muted);
}
main {
  max-width: 680px;
  margin: auto;
  padding: 8px 18px 180px;
}
h1 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin: 8px 0 14px;
}
h2 {
  font-size: 21px;
  line-height: 1.25;
  margin: 0 0 12px;
}
h3 {
  font-size: 17px;
  margin: 0 0 8px;
}
p {
  margin: 8px 0 16px;
}
small,
.muted {
  color: var(--muted);
  font-size: 13px;
}
.eyebrow {
  color: var(--lime);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.8px;
  font-weight: 700;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  margin: 14px 0;
}
.hero {
  background: var(--lime);
  color: var(--bg);
  padding: 25px;
}
.hero .eyebrow,
.hero .muted {
  color: #35452d;
}
.hero h1 {
  font-size: 36px;
  max-width: 350px;
}
.hero button {
  background: var(--bg);
  color: var(--lime);
  border-color: var(--bg);
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stack {
  display: grid;
  gap: 10px;
}
.card button {
  margin-top: 4px;
}
button,
a.button {
  font: inherit;
  font-weight: 650;
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #2b3830;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  touch-action: manipulation;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.primary {
  background: var(--lime);
  color: var(--bg);
  border-color: var(--lime);
}
button.subtle {
  background: transparent;
}
button.danger {
  color: var(--red);
}
.wide {
  width: 100%;
}
label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0 5px;
}
input,
select,
textarea {
  font: inherit;
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid #4c5d50;
  padding: 12px;
  border-radius: 10px;
  min-height: 46px;
}
input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}
textarea {
  resize: vertical;
  min-height: 72px;
}
input[type="checkbox"] {
  width: 22px;
  min-height: 22px;
}
input[type="file"] {
  font-size: 13px;
}
summary {
  cursor: pointer;
  padding: 10px 0;
  color: var(--muted);
}
details p {
  font-size: 14px;
}
.badge {
  display: inline-block;
  background: #344334;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--lime);
}
.hero .badge {
  background: #b6d073;
  color: #233022;
}
.set {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.set button {
  padding: 6px 12px;
}
.set small {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.set strong {
  font-size: 15px;
}
.skipped {
  opacity: 0.65;
}
.photos {
  display: flex;
  gap: 10px;
  overflow: auto;
  margin: 12px 0;
}
.photos img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
}
.photos a {
  display: block;
}
nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: #17201df5;
  border-top: 1px solid var(--line);
  padding: 8px 8px max(10px, env(safe-area-inset-bottom));
  z-index: 10;
  justify-content: center;
}
nav button {
  width: 25%;
  max-width: 165px;
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 23px;
  background: none;
  border: 0;
  color: var(--muted);
  padding: 6px 0;
}
nav span {
  font-size: 10px;
  font-weight: 550;
}
nav button.active {
  color: var(--lime);
}
#timer {
  position: fixed;
  bottom: calc(80px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(644px, calc(100% - 28px));
  padding: 10px 16px;
  border-radius: 16px;
  border: 1px solid #6b8351;
  background: #2a3825;
  box-shadow: 0 4px 30px #0007;
  z-index: 12;
}
#timer strong {
  font-size: 25px;
  font-variant-numeric: tabular-nums;
}
#timer button {
  padding: 5px 11px;
  min-height: 40px;
}
#toast {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lime);
  color: var(--bg);
  border-radius: 12px;
  padding: 14px 20px;
  z-index: 100;
  max-width: 90%;
  width: max-content;
  box-shadow: 0 4px 30px #0008;
}
a {
  color: var(--lime);
}
[hidden] {
  display: none !important;
}
.empty {
  padding: 24px 0;
  color: var(--muted);
  text-align: center;
}
.metric {
  font-size: 26px;
  font-weight: 700;
}
.note {
  border-left: 3px solid var(--lime);
  padding-left: 12px;
  color: var(--muted);
  font-size: 13px;
}
.saved {
  color: var(--lime);
}
.exercise-number {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}
@media (min-width: 700px) {
  main {
    padding-top: 20px;
  }
  .hero h1 {
    font-size: 44px;
  }
  header {
    padding-top: 35px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition:
      background 0.15s,
      transform 0.15s;
  }
  button:active {
    transform: scale(0.98);
  }
}

.hero label {
  color: #35452d;
}
