.timekeeper{--timer-bg:#dff1e3;--timer-ink:#143b25;background:var(--timer-bg);color:var(--timer-ink);border:1px solid #16161620;border-radius:28px;padding:28px;text-align:center;transition:background-color .5s,color .5s;margin:0 auto 24px;max-width:1000px}
.timekeeper[data-phase=yellow]{--timer-bg:#ffe8a2;--timer-ink:#513b00}.timekeeper[data-phase=red]{--timer-bg:#f8c9c2;--timer-ink:#681e16}
.timer-top{display:flex;justify-content:space-between;gap:16px;align-items:center}.timer-top .kicker{margin:0}.timekeeper button{background:#ffffff90;color:var(--timer-ink);border-color:currentColor}.timer-top button{min-width:130px}.timer-phase{font-size:24px;font-weight:600;margin:36px 0 8px}.timer-readout{font-size:clamp(80px,15vw,180px);font-weight:700;font-variant-numeric:tabular-nums;line-height:1.1;letter-spacing:-.05em}.timer-actions{display:flex;justify-content:center;gap:12px;margin:28px 0 16px}.timer-actions button{min-width:150px}.timer-actions button:first-child{background:var(--timer-ink);color:var(--timer-bg)}.timer-sound{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.timer-sound .subtle{border:0;background:none}.timekeeper .help{color:var(--timer-ink);margin:12px 0 0}.timer-settings{max-width:1000px;margin:auto}.timer-presets{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.timer-presets button[aria-pressed=true]{background:var(--ink);color:var(--paper)}.timer-settings form{margin-bottom:20px}.timer-focused{overflow:hidden}.timer-focused .timekeeper{position:fixed;inset:0;max-width:none;z-index:100;margin:0;border:0;border-radius:0;display:flex;flex-direction:column;justify-content:center;padding:max(24px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));overflow:auto}.timer-focused .timer-top{margin-bottom:auto}.timer-focused #timer-notice{margin-bottom:auto}.timer-focused .timer-readout{font-size:clamp(90px,20vw,260px)}
#timer-mini{position:fixed;right:24px;bottom:24px;z-index:38;box-shadow:0 4px 16px #0002;background:#dff1e3;color:#143b25;border-color:currentColor;font-variant-numeric:tabular-nums}#timer-mini[data-phase=yellow]{background:#ffe8a2;color:#513b00}#timer-mini[data-phase=red]{background:#f8c9c2;color:#681e16}
@media(max-width:760px){.timekeeper{padding:20px;border-radius:22px}.timer-top .kicker{font-size:10px}.timer-top button{min-width:0}.timer-phase{font-size:21px;margin-top:28px}.timer-actions button{min-width:0;flex:1}.timer-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.timer-presets button{font-size:13px;min-width:0;padding-inline:8px}.timer-sound{gap:8px}.timer-settings .fields{grid-template-columns:1fr 1fr}.timer-settings .fields label:last-child{grid-column:1/-1}.timer-settings form>button{width:100%}#timer-mini{right:16px;bottom:calc(86px + env(safe-area-inset-bottom,0px))}.timer-focused .timer-readout{font-size:clamp(78px,22vw,150px)}}
@media(prefers-reduced-motion:reduce){.timekeeper{transition:none}}@media print{.timekeeper,.timer-settings,#timer-mini{display:none!important}}
/* A readable, quiet progress dial, with colour and text cues for every phase. */
.timer-dial{position:relative;width:min(100%,340px);aspect-ratio:1;margin:20px auto;flex-shrink:0}
.timer-dial svg{display:block;width:100%;height:100%;transform:rotate(-90deg);overflow:visible}
.timer-dial circle{fill:none;stroke:currentColor;stroke-width:3}
.timer-ring-track{opacity:.12}.timer-ring-progress{opacity:.8;stroke-linecap:round;transition:stroke-dashoffset .25s linear}
.timer-dial .timer-readout{position:absolute;inset:0;display:grid;place-items:center;font-size:clamp(58px,12vw,86px);letter-spacing:-.065em}
.timer-sound-state{font-size:12px;opacity:.85;margin:4px 0}.timekeeper [hidden]{display:none!important}
.timer-focused .timer-dial{width:min(48vh,440px,100%);margin:10px auto}.timer-focused .timer-dial .timer-readout{font-size:clamp(60px,12vw,108px)}
.timer-focused .timer-phase{margin:12px 0 0}.timer-focused .timer-actions{margin:16px 0 8px}.timer-focused #timer-caption{margin:0 auto;max-width:540px}.timer-focused #timer-notice{font-size:12px;max-width:600px;align-self:center}.timer-focused .timer-sound button{min-height:44px}
@media(max-width:760px){.timer-dial{width:min(100%,280px);margin:16px auto}.timer-phase{margin-top:22px}.timer-focused .timekeeper{justify-content:flex-start;padding: max(16px,env(safe-area-inset-top)) 20px max(16px,env(safe-area-inset-bottom))}.timer-focused .timer-top{margin-bottom:12px}.timer-focused .timer-dial{width:min(36vh,300px,100%)}.timer-focused .timer-dial .timer-readout{font-size:clamp(58px,18vw,78px)}}
@media(prefers-reduced-motion:reduce){.timer-ring-progress{transition:none}}
