.draft-badge{color:var(--muted);font-size:10px;letter-spacing:1.4px}
.timer-face{padding:22px 16px 0;margin:8px 0 20px;border-radius:16px;background:#18201b;transition:background-color .18s ease}
.timer-face[data-phase=prep]{background:#f2c94c}.timer-face[data-phase=work]{background:#61d394}.timer-face[data-phase=rest]{background:#ed6b65}
.timer-face:not([data-phase=idle]) :is(#clock,#phase,#round){color:#15251c}
.timer-face:not([data-phase=idle]) .progress{background:#16302144}.timer-face:not([data-phase=idle]) #bar{background:#15251c}
.timer-face #phase{margin-top:0}.timer-face .progress{margin-bottom:0}
.duration-field{margin:0;padding:0;border:0;min-width:0}.duration-field legend{font-size:12px;color:var(--muted);line-height:1.5;padding:0}
.duration-pair{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:end;gap:6px;margin-top:7px}.duration-pair label{font-size:10px!important}.duration-pair>span{padding-bottom:13px}.duration-pair input{margin-top:3px}
.audio-settings{border:0;border-top:1px solid var(--line);padding:20px 0 0;margin:22px 0 0;min-width:0}.audio-settings legend{padding:0 8px 0 0;font-size:13px;color:var(--lime)}.audio-settings>label{font-size:12px}
.audio-settings select{display:block;width:100%;background:#121914;color:#f5f4ec;border:1px solid var(--line);border-radius:8px;padding:13px 10px;margin:10px 0;font:inherit;font-size:14px}.sound-previews{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.sound-previews button{min-width:0}.audio-settings .check{margin-top:16px}
/* Rotation changes presentation only; the audio player and clock stay mounted. */
@media (orientation:landscape) and (max-height:600px) and (pointer:coarse){
  body:not(:has(dialog[open])){overflow:hidden}
  body:not(:has(dialog[open]))>header,body:not(:has(dialog[open])) .music,body:not(:has(dialog[open])) #status{display:none}
  body:not(:has(dialog[open])) main,body:not(:has(dialog[open])) .layout{margin:0;padding:0;display:block;max-width:none}
  body:not(:has(dialog[open])) .timer{margin:0;padding:0;border:0;border-radius:0;background:var(--bg)}
  body:not(:has(dialog[open])) .timer>:not(.timer-face):not(dialog){display:none}
  body:not(:has(dialog[open])) .timer-face{position:fixed;inset:0;z-index:5;margin:0;padding:max(12px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));border-radius:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}
  body:not(:has(dialog[open])) .timer-face #clock{font-size:clamp(100px,46dvh,240px);line-height:1.05}
  body:not(:has(dialog[open])) .timer-face #phase{font-size:clamp(12px,3.8dvh,20px);margin:0}
  body:not(:has(dialog[open])) .timer-face #round{font-size:clamp(12px,3.7dvh,18px)}
  body:not(:has(dialog[open])) .timer-face :is(.progress){display:none}
}
.timer-face:fullscreen{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:0;padding:24px;border-radius:0;width:100%;height:100%}.timer-face:fullscreen #clock{font-size:clamp(100px,45vh,300px);line-height:1.05}.timer-face:fullscreen :is(.progress){display:none}
@media(prefers-reduced-motion:reduce){.timer-face{transition:none}}
