.stopwatch,.stopwatch-face{container-type:inline-size}.stopwatch-toggle-label{display:grid}.stopwatch-toggle-label>span{grid-area:1/1}.stopwatch-time{padding-block:.25rem;font-size:clamp(1.75rem,13cqi,6rem);line-height:1.25;overflow:auto hidden}.stopwatch-laps{min-width:0;min-height:0}.stopwatch-laps-scroll{overscroll-behavior:contain;min-width:0;min-height:0;max-height:20rem;overflow:auto}.stopwatch-laps-scroll:focus-visible{outline:2px solid var(--ui-focus);outline-offset:2px}.stopwatch-laps thead{background:var(--ui-surface);position:sticky;top:0}.stopwatch-laps thead th{overflow-wrap:anywhere}.stopwatch-laps tbody :is(th,td){white-space:nowrap}.stopwatch--expanded{z-index:100;position:fixed;inset:0}.stopwatch:fullscreen,.stopwatch--expanded{background:var(--ui-inset);width:100%;max-width:none;height:100dvh;color:var(--ui-text);grid-template-rows:minmax(0,1fr) auto minmax(0,1fr);gap:1rem;padding:1rem;display:grid;overflow:hidden}.stopwatch:fullscreen>.stopwatch-face,.stopwatch--expanded>.stopwatch-face{display:contents}.stopwatch:fullscreen .stopwatch-time,.stopwatch--expanded .stopwatch-time{font-size:clamp(1.75rem,min(13cqi,16dvh),10rem)}.stopwatch:fullscreen .stopwatch-toolbar,.stopwatch--expanded .stopwatch-toolbar{position:absolute;top:1rem;right:1rem}.stopwatch:fullscreen .stopwatch-display,.stopwatch--expanded .stopwatch-display{grid-area:2/1;min-width:0}.stopwatch:fullscreen .stopwatch-lower,.stopwatch--expanded .stopwatch-lower{grid-area:3/1;grid-template-rows:auto minmax(0,1fr);gap:1rem;min-height:0;display:grid}.stopwatch:fullscreen .stopwatch-actions,.stopwatch--expanded .stopwatch-actions{grid-area:1/1}.stopwatch:fullscreen .stopwatch-laps,.stopwatch:fullscreen .stopwatch-laps-header,.stopwatch--expanded .stopwatch-laps,.stopwatch--expanded .stopwatch-laps-header{display:contents}.stopwatch:fullscreen .stopwatch-laps-header h2,.stopwatch--expanded .stopwatch-laps-header h2{display:none}.stopwatch:fullscreen .stopwatch-laps-header .ui-button,.stopwatch--expanded .stopwatch-laps-header .ui-button{position:absolute;top:1rem;right:4.25rem}.stopwatch:fullscreen .stopwatch-laps-scroll,.stopwatch--expanded .stopwatch-laps-scroll{scrollbar-gutter:stable;grid-area:2/1;width:min(100%,48rem);max-height:none;margin-inline:auto}.stopwatch:fullscreen .stopwatch-laps thead,.stopwatch--expanded .stopwatch-laps thead{background:var(--ui-inset)}.stopwatch:fullscreen .stopwatch-laps :is(th,td),.stopwatch--expanded .stopwatch-laps :is(th,td){padding-block:.5rem}.stopwatch:fullscreen [role=alert],.stopwatch--expanded [role=alert]{top:4.25rem;position:absolute;inset-inline:1rem}@media (height<=480px){.stopwatch:fullscreen .stopwatch-lower,.stopwatch--expanded .stopwatch-lower{display:contents}.stopwatch:fullscreen .stopwatch-actions,.stopwatch--expanded .stopwatch-actions{grid-area:3/1;align-self:start}.stopwatch:fullscreen .stopwatch-laps-scroll,.stopwatch--expanded .stopwatch-laps-scroll{grid-area:1/1;width:min(100% - 7rem,48rem);margin-inline:0 auto}}@media (width<=640px){.stopwatch--has-laps:is(:fullscreen,.stopwatch--expanded){padding-top:calc(1rem + 44px + 1rem + env(safe-area-inset-top,0px));padding-bottom:max(1rem, env(safe-area-inset-bottom,0px));padding-left:max(1rem, env(safe-area-inset-left,0px));padding-right:max(1rem, env(safe-area-inset-right,0px));grid-template-rows:auto minmax(0,1fr)}.stopwatch--has-laps:is(:fullscreen,.stopwatch--expanded) .stopwatch-toolbar,.stopwatch--has-laps:is(:fullscreen,.stopwatch--expanded) .stopwatch-laps-header .ui-button{top:calc(1rem + env(safe-area-inset-top,0px))}.stopwatch--has-laps:is(:fullscreen,.stopwatch--expanded) .stopwatch-toolbar{right:max(1rem, env(safe-area-inset-right,0px))}.stopwatch--has-laps:is(:fullscreen,.stopwatch--expanded) .stopwatch-laps-header .ui-button{right:calc(3.25rem + max(1rem, env(safe-area-inset-right,0px)))}.stopwatch--has-laps:is(:fullscreen,.stopwatch--expanded) .stopwatch-display{grid-area:1/1}.stopwatch--has-laps:is(:fullscreen,.stopwatch--expanded) .stopwatch-lower{grid-area:2/1;display:grid}.stopwatch--has-laps:is(:fullscreen,.stopwatch--expanded) .stopwatch-actions{grid-area:1/1}.stopwatch--has-laps:is(:fullscreen,.stopwatch--expanded) .stopwatch-laps-scroll{grid-area:2/1;width:100%;margin-inline:0}}
