/* Compact stage selector and one focused timer card. Palette and type inherit from Nepsis. */
.stage-picker-shell {
  margin: 0 0 18px;
  padding: 16px 16px 10px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 251, 246, .78);
}
.stage-picker-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.stage-picker {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 2px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.stage-picker::-webkit-scrollbar { display: none; }
.stage-picker__button {
  flex: 0 0 auto;
  min-width: 76px;
  min-height: 56px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #FFFBF6;
  color: var(--fg);
  font: inherit;
  font-size: 1.08rem;
  font-weight: 900;
  cursor: pointer;
  scroll-snap-align: start;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.stage-picker__button:hover { border-color: var(--orange); }
.stage-picker__button:focus-visible { outline: 3px solid rgba(240,112,42,.25); outline-offset: 2px; }
.stage-picker__button[aria-pressed="true"] {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 5px 14px -9px rgba(176, 75, 28, .8);
}
.stage-picker-status { min-height: 1.25em; margin: 3px 2px 0; color: var(--muted); font-size: .82rem; }
#stageGrid.stages { display: block; }
#stageGrid .stage { display: none; }
#stageGrid .stage.is-selected {
  display: flex;
  width: min(100%, 620px);
  min-height: 0;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 34px);
  gap: 12px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 18px 34px -22px rgba(120,70,40,.35);
}
#stageGrid .stage.is-selected .top { margin-bottom: 2px; }
#stageGrid .stage.is-selected h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); text-align: center; }
#stageGrid .stage.is-selected .desc { min-height: 0; text-align: center; }
#stageGrid .stage.is-selected .ring {
  width: clamp(190px, 54vw, 238px);
  height: clamp(190px, 54vw, 238px);
  margin: 10px auto 12px;
}
#stageGrid .stage.is-selected .ring svg {
  width: 100%;
  height: 100%;
}
#stageGrid .stage.is-selected .ring .time {
  font-size: clamp(2.4rem, 9vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -.04em;
}
#stageGrid .stage.is-selected .start {
  width: min(100%, 300px);
  min-height: 48px;
  align-self: center;
  margin: 0 auto;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 24px -16px rgba(176,75,28,.8);
}
#stageGrid .stage.is-selected .thought-park { margin-top: 6px; }
#stageGrid .stage.is-selected .thought-park-row { flex-wrap: wrap; }
#stageGrid .stage.is-selected .thought-park-input { min-width: 0; }
#stageGrid .stage.is-selected .thought-park-save { min-height: 44px; }
#stageGrid .stage.is-selected .msg { color: var(--muted); }
@media (max-width: 480px) {
  .stage-picker-shell { margin-inline: -4px; padding: 14px 12px 8px; border-radius: 18px; }
  .stage-picker__button { min-width: 68px; min-height: 54px; padding-inline: 17px; font-size: 1.02rem; }
  #stageGrid .stage.is-selected { padding: 20px 16px; border-radius: 24px; }
  #stageGrid .stage.is-selected .ring { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .stage-picker__button { transition: none; }
}

/* Keep the duration controls above the shared 44px mobile button baseline. */
html body #stagePicker .stage-picker__button {
  min-width: 76px;
  min-height: 56px;
}
