/* Shared setup styling. Countdown layouts and timing behavior stay independent. */
@font-face {
  font-family: Outfit;
  src: url("/fonts/Outfit-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("/fonts/Outfit-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("/fonts/Outfit-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  --bg: #2e2e2e;
  --panel: #3a3a3a;
  --panel-strong: #434343;
  --border: rgba(255, 255, 255, 0.16);
  --text: rgba(255, 255, 255, 0.72);
  --text-strong: #ffffff;
  --accent: #ffb800;
  --on-accent: #1b1b1b;
  --active-color: #ff6d00;
  --rest-color: #8c9eff;
  --rest-text: #8c9eff;
  --accent-soft: rgba(255, 184, 0, 0.16);
  --progress-active: #ff6d00;
}
body { font-family: Outfit, Arial, sans-serif; min-height: 0; letter-spacing: .015em; }
.page { min-height: 0; padding: 26px 30px; }
#setup-screen { max-width: 920px; margin: 0 auto; }
.input-single, .input-box { background: var(--panel); border-radius: 10px; }
.primary-button { border-radius: 100px; background: var(--accent); color: var(--on-accent); }
.preset-chip { font-family: inherit; }
.switch-row { margin-inline: 0; }
.set-workspace-copy, .switch-copy span { font-size: 15px; line-height: 1.5; }
.switch-copy strong { font-size: 16px; }
.set-workspace { background: var(--panel); box-shadow: none; border: 1px solid var(--border); margin-inline: 0; }
#rest-hours, #rest-minutes, #rest-seconds,
[data-action="rest"] .set-value-text { color: var(--rest-text); }
.set-value-button[data-action="rest"] { background: var(--panel-strong); }
button, input { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.switch:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 20px; }
.page.runner-mode { min-height: 100vh; padding: 0; }
.runner-center {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  flex: none;
  gap: 0;
}
.runner-center > .set-counter, .runner-counters {
  position: absolute;
  bottom: calc(100% + 16px);
  left: 24px;
  right: 24px;
  text-align: center;
}
.runner-counters { gap: 8px; }
.runner .set-counter {
  font-size: clamp(22px, min(6vw, 7vh), 48px);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.runner .phase { font-weight: 600; }
.timer-face {
  display: flex;
  justify-content: center;
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.timer-digit { display: inline-block; width: .64em; flex: 0 0 .64em; text-align: center; }
.timer-colon { display: inline-block; width: .28em; flex: 0 0 .28em; text-align: center; }
@media (max-width: 600px) {
  .page { padding: 20px 14px; }
  .input-single, .input-box { padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
