/* Timer, Stopwatch & Pomodoro — layout for the big display, progress bar and option rows. */

.tmr-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-4);
  margin-bottom: var(--space-5);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.tmr-display {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 14vw, 5.5rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--text-primary);
}

.tmr-state {
  min-height: 1.375rem;
  margin: 0;
  font-size: var(--text-sm-size);
  color: var(--text-secondary);
}

.tmr-phase {
  margin: 0;
  font-size: var(--text-lg-size);
  font-weight: 600;
  color: var(--text-primary);
}

.tmr-phase-short { color: var(--success-700); }
.tmr-phase-long { color: var(--text-link); }

.tmr-completed {
  margin: var(--space-1) 0 0;
  font-size: var(--text-sm-size);
  color: var(--text-muted);
}

.tmr-progress {
  width: 100%;
  max-width: 22rem;
  height: 6px;
  margin-top: var(--space-3);
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.tmr-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--blue-600);
  border-radius: var(--radius-full);
  transition: width .25s linear;
}

.tmr-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: var(--space-3);
}

.tmr-check {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  font-size: var(--text-sm-size);
  color: var(--text-secondary);
}

@media (prefers-reduced-motion: reduce) {
  .tmr-progress-bar { transition: none; }
}
