                    

                               
.mh-cf { display: block; width: 100%; height: 100%; }
.mh-cf-tick { stroke: currentColor; stroke-linecap: round; }
.mh-cf-hand line { stroke: currentColor; stroke-linecap: round; fill: none; }
.mh-cf-hand--s line { stroke: var(--color-accent); }
.mh-cf-cap { fill: var(--color-accent); }

                           
.mh-cf--icon { color: #f2fff9; }
.mh-cf--icon .mh-cf-tick { stroke-width: 2.6; opacity: .9; }
.mh-cf--icon .mh-cf-hand--h line { stroke-width: 5.4; }
.mh-cf--icon .mh-cf-hand--m line { stroke-width: 4; }
.mh-cf--icon .mh-cf-hand--s line { stroke-width: 1.7; }

              
.mh-cf--large { color: var(--theme-text); }
.mh-cf-dial { fill: color-mix(in srgb, var(--theme-text) 4%, transparent); stroke: color-mix(in srgb, var(--theme-text) 14%, transparent); stroke-width: .6; }
.mh-cf--large .mh-cf-tick { stroke-width: .5; opacity: .5; }
.mh-cf--large .mh-cf-tick--major { stroke-width: 1.4; opacity: .95; }
.mh-cf-num { fill: currentColor; font-size: 7.6px; font-weight: 500; font-family: inherit; font-variant-numeric: tabular-nums; }
.mh-cf--large .mh-cf-hand--h line { stroke-width: 2.8; }
.mh-cf--large .mh-cf-hand--m line { stroke-width: 2; }
.mh-cf--large .mh-cf-hand--s line { stroke-width: .9; }

                             
.mh-clk {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: calc(var(--island-clearance) + 2px) 20px calc(44px + env(safe-area-inset-bottom, 0px));
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  user-select: none; -webkit-user-select: none;
}
.mh-clk-seg {
  --i: 0;
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  flex: none; padding: 3px; border-radius: 999px;
  width: min(100%, 460px); margin: 0 auto;
  background: color-mix(in srgb, var(--theme-text) 8%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--theme-text) 8%, transparent);
}
.mh-clk-ind {
  position: absolute; top: 3px; bottom: 3px; left: 3px;
  width: calc((100% - 6px) / 3); border-radius: 999px;
  background: color-mix(in srgb, var(--color-accent) 24%, transparent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 3px 12px color-mix(in srgb, var(--color-accent) 14%, transparent);
  transform: translateX(calc(var(--i) * 100%));
  transition: transform .42s cubic-bezier(.22, 1.2, .36, 1);
}
.mh-clk-seg-btn { position: relative; padding: 9px 4px; font-size: 13px; font-weight: 600; border-radius: 999px; color: var(--theme-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s; }
.mh-clk-seg-btn[aria-selected="true"] { color: var(--theme-text); }

.mh-clk-panels { position: relative; flex: 1; min-height: 0; margin-top: 14px; }
.mh-clk-panel {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  display: flex; flex-direction: column; align-items: center;
  opacity: 0; visibility: hidden; transform: translate3d(0, 8px, 0);
  transition: opacity .28s ease, transform .4s cubic-bezier(.22, 1, .36, 1), visibility 0s .28s;
}
.mh-clk-panel[data-on="true"] { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

                              
.mh-clk-hero { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; padding-top: 6px; }
.mh-clk-analog { width: min(76vw, 42vh, 340px); aspect-ratio: 1; filter: drop-shadow(0 10px 26px rgb(0 0 0 / .3)); }
.mh-clk-info { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mh-clk-digital { font-size: clamp(40px, 12vw, 58px); font-weight: 200; letter-spacing: -.01em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.mh-clk-date { font-size: 15px; font-weight: 500; color: var(--theme-text-muted); }
.mh-clk-world { width: min(100%, 460px); margin-top: 18px; padding-bottom: 8px; }
.mh-clk-h { margin: 0 4px 6px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--theme-text-muted); }
.mh-clk-wrow { display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--theme-border); font-size: 16px; }
.mh-clk-woff { font-size: 12px; color: var(--theme-text-muted); }
.mh-clk-wtime { min-width: 3.2em; text-align: right; font-size: 22px; font-weight: 300; font-variant-numeric: tabular-nums; }

                             
@media (orientation: landscape) and (max-height: 560px) {
  .mh-clk { padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px)); }
  .mh-clk-hero { flex-direction: row; justify-content: center; gap: 28px; }
  .mh-clk-analog { width: min(44vh, 260px); }
  .mh-clk-info { align-items: flex-start; }
  .mh-clk-world { margin-top: 10px; }
}

                                               
.mh-clk-btns { display: flex; justify-content: space-between; width: min(100%, 340px); margin-top: 22px; }
.mh-clk-rb {
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 600;
  background: color-mix(in srgb, var(--theme-text) 12%, transparent); color: var(--theme-text);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--theme-text) 10%, transparent);
  transition: opacity .2s, background .2s, color .2s;
}
.mh-clk-rb:disabled { opacity: .38; }
.mh-clk-rb--go { background: color-mix(in srgb, var(--color-accent) 26%, transparent); color: var(--color-accent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--color-accent) 30%, transparent); }
.mh-clk-rb--stop { background: color-mix(in srgb, var(--color-danger) 26%, transparent); color: var(--color-danger); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--color-danger) 30%, transparent); }
.mh-clk-rb--warn { background: color-mix(in srgb, var(--color-warning) 26%, transparent); color: var(--color-warning); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--color-warning) 30%, transparent); }

                                    
.mh-sw-time { margin-top: clamp(20px, 7vh, 56px); font-size: clamp(54px, 17vw, 84px); font-weight: 200; letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mh-sw-laps { list-style: none; margin: 22px 0 0; padding: 0; width: min(100%, 460px); border-top: 1px solid var(--theme-border); }
.mh-sw-lap { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: baseline; padding: 12px 4px; border-bottom: 1px solid var(--theme-border); font-size: 16px; font-variant-numeric: tabular-nums; }
.mh-sw-lapname { color: var(--theme-text-muted); }
.mh-sw-lapT { min-width: 5.2em; text-align: right; color: var(--theme-text-muted); }
.mh-sw-lap.is-best .mh-sw-lapt { color: var(--color-success); }
.mh-sw-lap.is-worst .mh-sw-lapt { color: var(--color-danger); }

                                
                                                             
                                          
                                                   
                                                         
.mh-tm-ring { position: relative; width: min(70vw, 38vh, 300px); aspect-ratio: 1; margin-top: 8px; overflow: visible; }
.mh-tm-ring svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mh-tm-track { fill: none; stroke: color-mix(in srgb, var(--theme-text) 10%, transparent); stroke-width: 3; }
.mh-tm-prog { fill: none; stroke: var(--color-accent); stroke-width: 3; stroke-linecap: round; }
                                                                                 
                                                           
                                               
.mh-clk-panel[data-state="running"] .mh-tm-prog { filter: url(#mh-tm-glow); }
.mh-clk-panel[data-state="done"] .mh-tm-prog { stroke: var(--color-danger); filter: url(#mh-tm-glow); animation: mh-tm-pulse 1s ease-in-out infinite; }
.mh-tm-read { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.mh-tm-time { font-size: clamp(40px, 13vw, 60px); font-weight: 200; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.mh-tm-sub { min-height: 1.2em; font-size: 14px; font-weight: 600; color: var(--color-danger); }
.mh-tm-set { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 18px; width: min(100%, 360px); transition: opacity .25s; }
.mh-clk-panel[data-state="running"] .mh-tm-set,
.mh-clk-panel[data-state="paused"] .mh-tm-set,
.mh-clk-panel[data-state="done"] .mh-tm-set { opacity: 0; pointer-events: none; }
.mh-tm-chips { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; width: 100%; }
.mh-tm-chip { display: flex; align-items: baseline; justify-content: center; gap: 1px; padding: 9px 0; border-radius: 999px; font-size: 12px; background: color-mix(in srgb, var(--theme-text) 9%, transparent); color: var(--theme-text-muted); }
.mh-tm-chip b { font-size: 15px; font-weight: 600; color: var(--theme-text); }
.mh-tm-step { display: flex; gap: 14px; }
.mh-tm-stepbtn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; line-height: 1; background: color-mix(in srgb, var(--theme-text) 10%, transparent); }
@keyframes mh-tm-pulse { 50% { opacity: .35; } }

@media (orientation: landscape) and (max-height: 560px) {
  .mh-clk-panel[data-panel="timer"] { flex-direction: row; flex-wrap: wrap; justify-content: center; align-content: center; gap: 4px 34px; }
  .mh-tm-ring { width: min(56vh, 240px); }
  .mh-tm-set { width: min(46vw, 340px); margin-top: 0; }
  .mh-clk-panel[data-panel="timer"] .mh-clk-btns { margin-top: 8px; width: min(100%, 300px); }
  .mh-clk-rb { width: 70px; height: 70px; }
  .mh-sw-time { margin-top: 6px; font-size: clamp(44px, 11vw, 72px); }
}

@media (prefers-reduced-motion: reduce) {
  .mh-clk-ind, .mh-clk-panel { transition-duration: 1ms !important; }
  .mh-clk-panel[data-state="done"] .mh-tm-prog { animation: none; }
}
[data-reduced-motion="true"] .mh-clk-ind,
[data-reduced-motion="true"] .mh-clk-panel { transition-duration: 1ms !important; }
