/* A tiny, self-contained countdown in the Timers chapter. */
.pocket-timer {
  --pocket-progress: 1;
  --pocket-ink: var(--app-accent, #bc691d);
  margin-top: 26px;
}

.pocket-timer__button {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 7px 16px 7px 7px;
  border: 1px solid #ded5cc;
  border-radius: 999px;
  background: transparent;
  color: var(--pocket-ink);
  font: inherit;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}

.pocket-timer__button:hover {
  background: #bc691d08;
  border-color: #c5a98e;
}

.pocket-timer__button:focus-visible {
  outline: 2px solid var(--pocket-ink);
  outline-offset: 4px;
}

.pocket-timer__dial {
  display: grid;
  place-items: center;
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

.pocket-timer__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke-width: 1.5;
  transform: rotate(-90deg);
}

.pocket-timer__track { stroke: #e8ddd2; }
.pocket-timer__progress {
  stroke: currentColor;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--pocket-progress));
}

.pocket-timer__number {
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.pocket-timer__label {
  min-width: 94px;
  text-align: left;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
}

.pocket-timer[data-state="done"] .pocket-timer__number { font-size: 14px; }
.pocket-timer__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .pocket-timer__button { transition: none; }
}
