body.focus-open {
  overflow: hidden;
}

.set-count[data-focus] {
  min-height: 36px;
  padding: 6px 0 6px 10px;
  cursor: zoom-in;
}

.exercise[data-focus] .exercise-heading > div {
  cursor: zoom-in;
}

.series-focus {
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: max(18px, env(safe-area-inset-top, 0px)) 20px max(18px, env(safe-area-inset-bottom, 0px));
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  overscroll-behavior: contain;
}

.series-focus[open] {
  display: flex;
  flex-direction: column;
}

.focus-header,
.focus-display-tools,
.focus-content,
.focus-footer {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.focus-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

.focus-header h2 {
  margin: 5px 0 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.8px;
}

#close-focus {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 1px solid #626358;
  border-radius: 50%;
  color: var(--paper);
  font-size: 32px;
  line-height: 1;
}

.focus-display-tools {
  flex-shrink: 0;
}

#focus-orientation-note {
  margin: 10px 0 0;
  color: #c1c2b8;
  font-size: 12px;
  line-height: 1.4;
}

.focus-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  text-align: center;
  padding: 24px 0;
}

.focus-metrics {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 16px;
  margin-top: clamp(12px, 4vh, 36px);
}

.focus-caption {
  display: block;
  margin-bottom: 12px;
  color: #c1c2b8;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.focus-count {
  display: block;
  font-size: clamp(64px, 24vw, 104px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -3px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.focus-count small {
  font-size: 0.6em;
  font-weight: 400;
  color: #b4b5ab;
  letter-spacing: -1px;
}

.focus-repetitions > strong {
  display: block;
  font-size: clamp(120px, 43vw, 210px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -6px;
  font-variant-numeric: tabular-nums;
}

.focus-single-load {
  margin-top: 32px;
}

.focus-weight-field {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.series-focus .weight {
  width: 160px;
  max-width: 100%;
  height: 68px;
  border-color: #626358;
  background: #31322b;
}

.series-focus .weight input {
  width: 100%;
  padding: 10px;
  color: var(--paper);
  font-size: 42px;
  text-align: right;
}

.focus-weight-unit {
  font-size: 14px;
  color: #c1c2b8;
}

.focus-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.focus-pair-item {
  min-width: 0;
}

.focus-pair-item h3 {
  min-height: 2.5em;
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}

.focus-pair .focus-repetitions > strong {
  font-size: clamp(80px, 15dvh, 120px);
  letter-spacing: -4px;
}

.focus-pair .focus-caption {
  font-size: 12px;
}

.focus-pair .focus-weight-field {
  margin-top: 20px;
}

.focus-pair .weight {
  width: 130px;
  height: 58px;
}

.focus-pair .weight input {
  font-size: 34px;
}

.focus-pair .focus-weight-unit {
  font-size: 12px;
}

.focus-footer {
  flex-shrink: 0;
  padding-top: 14px;
  border-top: 1px solid #505147;
}

.focus-rest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}

.focus-rest > span {
  color: #c1c2b8;
  font-size: 14px;
}

#focus-rest-time {
  font-size: clamp(40px, 8dvh, 64px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #ff865e;
}

#focus-stop {
  min-height: 40px;
  padding: 10px 0 10px 10px;
  color: var(--paper);
  font-size: 14px;
}

.focus-complete {
  width: 100%;
  min-height: 60px;
  padding: 16px;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font-size: 21px;
  font-weight: 700;
}

.focus-message {
  margin: 0 0 12px;
  color: #ffb195;
  font-size: 16px;
  line-height: 1.4;
}

.focus-finished {
  padding: 30px 0;
}

.focus-finished > strong {
  color: #ff865e;
  font-size: 130px;
  line-height: 1;
}

.focus-finished p {
  margin: 24px 0 0;
  font-size: 32px;
  font-weight: 700;
}

@media (max-height: 640px) {
  .focus-content {
    padding: 14px 0;
  }

  .focus-metrics {
    margin-top: 0;
  }

  .focus-single-load,
  .focus-pair {
    margin-top: 18px;
  }
}
