/* Pomodoro timer - a centred card with the phase, a big monospace countdown, a
   cycle dot row, controls, and a prominent "next phase" button that appears (with
   the bright .is-overtime display) when a phase runs over. Settings live in a
   <details>. Reuses base .field / .btn / .btn-outline; colors from theme tokens. */

.pom-intro { color: var(--muted); max-width: 64ch; margin: 8px 0 24px; }

.pom-card {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: 12px; padding: 28px 20px; margin-bottom: 20px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
}

.pom-phase {
    text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; font-size: 14px;
    color: var(--accent-strong);
}
.pom--short .pom-phase, .pom--long .pom-phase { color: var(--good); }

.pom-display {
    font-variant-numeric: tabular-nums;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(48px, 13vw, 92px); font-weight: 800; line-height: 1;
    color: var(--text); padding: 6px 4px; border-radius: 14px;
}
.pom .pom-display.is-overtime {
    color: var(--bad);
    animation: pom-pulse 1s ease-in-out infinite;
}
@keyframes pom-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@media (prefers-reduced-motion: reduce) { .pom .pom-display.is-overtime { animation: none; } }

.pom-dots { display: flex; gap: 8px; min-height: 12px; }
.pom-dot {
    width: 12px; height: 12px; border-radius: 50%;
    border: 1px solid var(--border-strong); background: transparent;
}
.pom-dot.is-on { background: var(--accent); border-color: var(--accent); }

.pom-count { margin: 0; color: var(--muted); font-size: 14px; }

.pom-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.pom-toggle { min-width: 120px; }

.pom-next {
    min-width: 220px; font-size: 16px; margin-top: 4px;
    animation: pom-pulse 1.2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .pom-next { animation: none; } }

.pom-settings { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.pom-settings > summary {
    cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--text);
}
.pom-settings-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px; padding: 0 16px 16px;
}
.pom-setting { display: flex; flex-direction: column; gap: 6px; }
.pom-setting span { font-size: 14px; color: var(--muted); font-weight: 600; }
.pom-setting .field { width: 100%; box-sizing: border-box; }
