* { box-sizing: border-box }
[hidden] { display: none !important }
body { margin: 0; overflow: hidden; background: #eff6f0; color: #183c39; font-family: Inter, system-ui, sans-serif }
canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round }
button { font: inherit; cursor: pointer; color: inherit; touch-action: manipulation }
:focus-visible { outline: 3px solid #e88139; outline-offset: 4px }
header { position: fixed; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: clamp(16px,3vw,38px); gap: 10px }
.brand, nav { display: flex; align-items: center; gap: 10px }
.brand { font-size: 20px; font-weight: 640; letter-spacing: -.05em }
.mark { display: grid; place-items: center; background: #174b45; color: #e0fff0; width: 38px; height: 38px; border-radius: 12px }
.tool { display: grid; place-items: center; width: 46px; height: 46px; background: #f9fcf5ed; border: 1px solid #234c4028; border-radius: 50% }
.tool:hover, .tool[aria-expanded=true] { background: #d6ece0 }
.start { position: fixed; top: 29%; left: 50%; translate: -50% -50%; display: flex; flex-direction: column; align-items: center; gap: 13px; width: min(92%,420px); text-align: center }
#start { width: 82px; height: 82px; border-radius: 50%; display: grid; place-items: center; border: 5px solid #eff8ed; background: #154d46; color: white; box-shadow: 0 0 0 1px #154d462b, 0 8px 20px #173d3420 }
#start:hover { background: #206258 }
#start svg { width: 32px; height: 32px }
#start:disabled { opacity: .6; cursor: progress }
#hint { font-size: 14px; font-weight: 540; margin: 0; line-height: 1.45 }
#panel { position: fixed; top: calc(clamp(16px,3vw,38px) + 56px); right: clamp(16px,3vw,38px); z-index: 2; display: grid; grid-template-columns: 24px 1fr 24px; align-items: center; gap: 12px; padding: 16px 20px; width: min(295px,90vw); background: #fcfff6; border: 1px solid #214d402a; border-radius: 18px; box-shadow: 0 8px 32px #163c3815 }
#panel label { grid-column: 1/-1; font-size: 13px; font-weight: 600 }
#panel select { grid-column: 1/-1; min-width: 0; width: 100%; padding: 6px; font: inherit; color: inherit }
input { width: 100%; accent-color: #176357 }
body.running .brand { visibility: hidden }
body.resting header { opacity: 0; pointer-events: none }
body.resting { cursor: none }
header { transition: opacity .3s }
@media (prefers-reduced-motion: reduce) { header { transition: none } }
@media (max-height: 400px) { .start { top: 32% } #start { width: 55px; height: 55px } }
.brand { text-decoration: none; color: inherit }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
