:root{color-scheme:light;--bg:#f5f5f7;--text:#1d1d1f;--muted:#6e6e73;--accent:#e92346;--line:#d2d2d7;--press:1;font:100%/1.5 -apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue","PingFang SC","Microsoft YaHei",sans-serif;color:var(--text);background:var(--bg);font-synthesis:none;font-optical-sizing:auto}
*{box-sizing:border-box}body{margin:0}button,input,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button,input{font:inherit}button{border:0;background:none;color:inherit;cursor:pointer}button:disabled{opacity:.25;cursor:default}a{color:inherit;text-decoration:none}p,h1,h2{margin:0}img{display:block;max-width:100%}svg{width:24px;height:24px;flex-shrink:0}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #0071e3;outline-offset:5px}h1:focus{outline:none}.press{transform:scale(var(--press,1));transform-origin:center;will-change:auto}.press.is-pressed{filter:brightness(.95)}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.topbar{height:80px;position:sticky;top:0;z-index:2;background:#f5f5f7bb;backdrop-filter:blur(20px) saturate(140%)}.topbar nav{max-width:1120px;margin:auto;height:100%;padding:0 40px;display:flex;justify-content:space-between;align-items:center}.brand{display:flex;align-items:center;gap:10px;font-size:1.4rem;font-weight:650;letter-spacing:-.055em}.brand svg{width:25px;height:27px;stroke:var(--accent);stroke-width:2.6;fill:none;stroke-linecap:round}.round-button{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;flex-shrink:0}.help-button{color:var(--muted)}.help-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5}.text-button{padding:10px 0;min-height:44px;color:var(--accent);font-size:.9375rem;font-weight:500}.primary{min-height:54px;border-radius:14px;background:var(--accent);color:#fff;display:inline-flex;justify-content:center;align-items:center;gap:10px;padding:14px 29px;font-size:1.0625rem;font-weight:580;line-height:1.35}.primary svg{width:19px;height:22px}.caption{font-size:.8125rem;color:var(--muted);line-height:1.6}
.welcome{max-width:1080px;min-height:calc(100svh - 80px);padding:70px 40px 130px;margin:auto;display:grid;grid-template-columns:1fr 1.12fr;align-items:center;gap:30px}.welcome-copy h1{font-size:clamp(3rem,5.2vw,4.5rem);line-height:1.15;letter-spacing:-.055em;font-weight:680}.welcome-copy h1 span{color:var(--accent)}.welcome-copy>p{font-size:1.1875rem;color:var(--muted);line-height:1.75;margin-top:28px;letter-spacing:-.015em}.start-area{margin-top:36px;display:flex;align-items:flex-start;flex-direction:column;gap:16px}.album-scene{position:relative;min-width:0;height:480px;isolation:isolate}.stack-cover{position:absolute;object-fit:cover;aspect-ratio:1;border-radius:15px;box-shadow:0 25px 55px -20px #1d1d1f50,0 1px 3px #0002}.cover-front{width:67%;left:4%;top:20%;z-index:2;transform:rotate(-8deg)}.cover-back{width:52%;right:2%;top:3%;transform:rotate(11deg);z-index:1}.cover-side{width:52%;right:0;bottom:5%;transform:rotate(9deg);z-index:3}
.measure-view{max-width:440px;margin:0 auto;padding:28px 32px 80px;text-align:center;min-height:calc(100svh - 80px)}.measure-view h1{font-size:2rem;line-height:1.3;letter-spacing:-.045em;font-weight:650}.measure-view>p{color:var(--muted);font-size:1rem;margin-top:12px;line-height:1.7}.status-view{padding-top:100px}.status-symbol{color:var(--accent);margin-bottom:28px}.status-symbol svg{width:54px;height:54px;stroke-width:1.25}.status-view .primary{margin:32px auto 10px;display:flex;width:100%}.status-view h1{font-size:1.8rem}
.player{position:relative;max-width:1020px;min-height:calc(100svh - 80px);margin:auto;padding:42px 60px 100px;isolation:isolate}.ambient{position:fixed;z-index:-2;inset:0;width:100%;height:100%;object-fit:cover;filter:blur(90px) saturate(.65);opacity:.11;pointer-events:none;transform:scale(1.1)}.player-top{display:flex;align-items:center;justify-content:space-between;max-width:900px;margin:0 auto 44px;gap:12px}.cadence-button{display:flex;align-items:center;gap:9px;padding:8px 0;min-height:44px;color:var(--muted);font-size:.9375rem}.cadence-button svg{width:20px;height:23px;stroke-width:1.5}.cadence-button strong{font-weight:590;color:var(--text)}.player-layout{display:grid;grid-template-columns:1.08fr 1fr;align-items:center;gap:72px}.artwork-wrap{min-width:0}.player-artwork{width:100%;aspect-ratio:1;object-fit:cover;border-radius:11px;box-shadow:0 22px 42px -16px #27212f50,0 2px 6px #0001}.player-content{min-width:0}.track-heading h2{font-size:1.875rem;line-height:1.2;letter-spacing:-.04em;font-weight:650;overflow-wrap:anywhere}.track-heading p{font-size:1.2rem;line-height:1.5;color:var(--muted);margin-top:8px;letter-spacing:-.02em}.timeline{margin-top:25px}.times{display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:.75rem;font-variant-numeric:tabular-nums;line-height:1.1}
input[type=range]{appearance:none;-webkit-appearance:none;background:transparent;height:28px;display:block;width:100%;margin:0;cursor:pointer;--progress:0%}input[type=range]::-webkit-slider-runnable-track{height:5px;border-radius:10px;background:linear-gradient(to right,#77777c var(--progress),#d8d7da var(--progress))}input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:12px;height:12px;border-radius:50%;background:#77777c;margin-top:-3.5px}input[type=range]:active::-webkit-slider-thumb{width:18px;height:18px;margin-top:-6.5px}input[type=range]::-moz-range-track{height:5px;background:#d8d7da;border-radius:10px}input[type=range]::-moz-range-progress{background:#77777c;height:5px}input[type=range]::-moz-range-thumb{width:12px;height:12px;border:0;border-radius:50%;background:#77777c}.controls{display:flex;justify-content:space-between;align-items:center;padding:0 10px;margin:26px 0 24px;gap:20px}.transport{display:flex;justify-content:center;align-items:center;min-width:64px;height:64px;border-radius:50%;padding:10px}.transport svg{width:34px;height:34px}.play-button svg{width:45px;height:45px}.volume{display:flex;align-items:center;gap:15px;color:#8e8e93}.volume svg{width:19px;height:19px}.volume input{min-width:0;flex:1}.volume input::-webkit-slider-runnable-track{height:4px}.volume input::-webkit-slider-thumb{width:10px;height:10px;margin-top:-3px}.player-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:28px}.relation-label{color:var(--muted);font-size:.8125rem}.player-bottom .round-button{background:#ffffff66}.player-bottom svg{width:22px;height:22px}
.info-dialog{border:0;border-radius:28px;background:#fafafc;padding:42px 32px 32px;color:var(--text);width:min(420px,calc(100% - 32px));max-height:85svh;box-shadow:0 25px 80px #0002}.info-dialog::backdrop{background:#1d1d1f35;backdrop-filter:blur(5px)}.close-button{position:absolute;right:13px;top:13px;font-size:1.75rem;color:#707075;background:#eaeaec;width:32px;height:32px;line-height:1}.app-mark{display:grid;place-items:center;width:54px;height:54px;border-radius:14px;background:var(--accent);color:#fff;font-size:2rem;margin-bottom:22px}.info-dialog h2{font-size:1.625rem;line-height:1.3;letter-spacing:-.03em;font-weight:630}.info-dialog p{margin-top:20px;font-size:.9375rem;line-height:1.75;color:var(--muted)}.info-dialog details{margin-top:28px;padding-top:20px;border-top:1px solid #dcdce1;font-size:.875rem}.info-dialog summary{cursor:pointer;color:var(--accent)}.info-dialog details p{font-size:.875rem}.overline{display:block;color:var(--muted);font-size:.875rem;margin-bottom:12px}#match-title{margin-bottom:26px;font-size:1rem;font-weight:400;color:var(--muted)}#match-title strong{font-size:3.5rem;font-weight:550;letter-spacing:-.055em;color:var(--text);margin-right:5px}.info-row{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #e2e2e7;padding:14px 0;font-size:.9375rem}.info-row span{color:var(--muted)}.info-row strong{font-weight:550;text-align:right}
.modal-open{overflow:hidden}.sheet{border:0;position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100%;max-height:none;padding:24px;background:transparent;overflow:hidden;color:var(--text)}.sheet[open]{display:flex;align-items:center;justify-content:center}.sheet::backdrop{background:rgb(0 0 0 / calc(.22 * var(--shade,1)));backdrop-filter:blur(7px)}.sheet-card{width:min(100%,440px);max-height:min(720px,90svh);border-radius:28px;background:#f8f8faf2;backdrop-filter:blur(32px) saturate(140%);box-shadow:0 30px 80px #0002;overflow:hidden;display:flex;flex-direction:column;will-change:transform}.sheet-grabber{height:26px;display:flex;align-items:center;justify-content:center;touch-action:none;cursor:grab;flex-shrink:0}.sheet-grabber:active{cursor:grabbing}.sheet-grabber span{width:36px;height:5px;background:#bcbcc2;border-radius:9px}.sheet-heading{padding:7px 24px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0}.sheet-heading h2{font-size:1.5rem;letter-spacing:-.04em;font-weight:650}.sheet-heading p{font-size:.8125rem;color:var(--muted);margin-top:5px}.sheet-heading button{width:32px;height:32px;background:#e9e9ec;color:#78787c;font-size:1.65rem;line-height:1}.queue-panel{overflow-y:auto;overscroll-behavior:contain;padding:0 16px 22px}.queue-item{width:100%;display:flex;align-items:center;gap:13px;min-height:74px;padding:10px 8px;border-radius:10px;text-align:left}.queue-item.active{background:#e9e9ed}.queue-item img{width:48px;height:48px;object-fit:cover;border-radius:6px;flex-shrink:0}.queue-text{flex:1;min-width:0}.queue-text strong{font-size:.9375rem;font-weight:500;line-height:1.35;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.queue-text small{display:block;font-size:.8125rem;color:var(--muted);margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.queue-end{font-size:.875rem;color:var(--muted);text-align:center;min-width:32px;font-variant-numeric:tabular-nums}.queue-end small{display:block;font-size:.5625rem}.queue-end svg{width:20px;height:20px;color:var(--accent)}
#toast{position:fixed;left:50%;bottom:calc(28px + env(safe-area-inset-bottom));transform:translate(-50%,8px);padding:13px 20px;border:1px solid #fff8;background:#fffffff0;backdrop-filter:blur(16px);box-shadow:0 6px 30px #0002;border-radius:18px;font-size:.875rem;line-height:1.5;color:var(--text);max-width:min(90vw,420px);width:max-content;z-index:10;opacity:0;pointer-events:none;transition:opacity .15s,translate .15s}#toast.visible{opacity:1;translate:0 -8px}
.topbar-actions{display:flex;align-items:center;gap:2px}
/* Temporarily hide both sign-in entry points; auth code and sessions remain intact. */
#account,#history-signin{display:none}
#account.signed-in{color:var(--accent)}
.account-tabs{display:flex;gap:6px;margin:22px 0 4px;background:#ececed;padding:3px;border-radius:11px}
.account-tab{flex:1;min-height:36px;border-radius:9px;font-size:.8125rem;font-weight:500;color:var(--muted)}
.account-tab[aria-selected="true"]{background:#fff;color:var(--text);box-shadow:0 1px 3px #0001}
.field{display:block;margin-top:14px}
.field span{display:block;font-size:.8125rem;color:var(--muted);margin-bottom:7px}
.field input{width:100%;min-height:48px;padding:12px 14px;font-size:1rem;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--text)}
#account-form{margin-top:16px}
#account-form .primary{width:100%;margin-top:20px}
.account-actions{display:flex;flex-direction:column;align-items:center;gap:4px}
.account-actions .primary{margin-top:6px}
.account-hint{font-size:.8125rem;color:var(--muted);line-height:1.6;margin-top:14px}
.account-note{min-height:1px}
#account-message{margin-top:14px;font-size:.875rem;line-height:1.6}
#account-message[data-kind="warn"]{color:var(--accent)}
#account-message[data-kind="ok"]{color:#12824a}
.account-signed h3{font-size:1.25rem;margin-bottom:8px}
.account-signed p{font-size:.9375rem;color:var(--muted);line-height:1.7;overflow-wrap:anywhere}
.account-signed .primary{width:100%;margin-top:22px}
.title-row{display:flex;align-items:flex-start;gap:8px}
.like-button{width:40px;height:40px;color:#b8b8be;background:transparent}
.like-button[aria-pressed="true"]{color:var(--accent)}
.like-button svg{width:22px;height:22px;fill:currentColor;stroke:currentColor}
.history{margin-top:26px;padding-top:20px;border-top:1px solid #e4e4e9}
.history ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 18px}
.history li{font-size:.875rem;color:var(--muted);display:flex;align-items:baseline;gap:6px}
.history li strong{font-size:1rem;font-weight:550;color:var(--text);font-variant-numeric:tabular-nums}
.history li span{font-size:.8125rem}
.history .text-button{margin-top:12px}
@media(hover:hover){.primary:hover{background:#d91f40}.round-button:hover{background:#e6e6eb80}.text-button:hover{color:#bf1433}.queue-item:hover{background:#ededf1}.transport:hover{background:#ffffff55}}
@media(min-width:1500px){.welcome{max-width:1200px}.album-scene{height:540px}.welcome-copy h1{font-size:5rem}}
@media(max-width:800px){.welcome{gap:15px;padding:45px 30px 90px}.welcome-copy h1{font-size:3.25rem}.welcome-copy>p{font-size:1.0625rem}.album-scene{height:380px}.player{padding:25px 35px 80px}.player-layout{gap:36px}.track-heading h2{font-size:1.6rem}}
@media(max-width:600px){
 .topbar{height:68px}.topbar nav{padding:0 24px}.brand{font-size:1.3rem}.brand svg{width:22px;height:25px}.help-button{margin-right:-8px}
 .welcome{display:flex;flex-direction:column;min-height:calc(100svh - 68px);padding:34px 28px 40px;gap:0;justify-content:flex-start}.welcome-copy{display:contents}.welcome-copy h1{align-self:flex-start;font-size:2.625rem;letter-spacing:-.05em;line-height:1.18;order:0}.welcome-copy>p{align-self:flex-start;margin-top:16px;font-size:1rem;line-height:1.65;order:1}.desktop-break{display:none}.album-scene{order:2;width:min(100%,335px);height:310px;margin:20px auto 25px}.cover-front{top:19%;width:63%;left:6%;border-radius:12px}.cover-back{top:1%;right:7%;width:50%;border-radius:11px}.cover-side{width:47%;right:4%;bottom:5%;border-radius:11px}.start-area{order:3;width:100%;margin:0;gap:12px;align-items:center}.start-area .primary{width:100%;max-width:340px;min-height:54px}.caption{font-size:.75rem}
 .measure-view{min-height:calc(100svh - 68px);padding:12px 28px 50px}.measure-view h1{font-size:1.75rem}.measure-view>p{font-size:.9375rem}.status-view{padding-top:95px}.status-view .primary{max-width:320px}
 .player{padding:4px 30px 28px;max-width:430px;min-height:calc(100svh - 68px)}.player-top{margin-bottom:24px;gap:8px}.cadence-button{font-size:.875rem}.player-top .text-button{font-size:.875rem}.player-layout{display:flex;flex-direction:column;gap:30px}.artwork-wrap{width:100%;max-width:340px}.player-artwork{border-radius:9px}.player-content{width:100%}.track-heading h2{font-size:1.5rem;line-height:1.25;letter-spacing:-.035em}.track-heading p{font-size:1.125rem;margin-top:3px}.timeline{margin-top:18px}.controls{margin:18px 0 17px;padding:0 13px;gap:18px}.transport{min-width:60px;height:60px}.play-button svg{width:43px;height:43px}.player-bottom{margin-top:19px}.relation-label{font-size:.75rem}.volume{gap:13px}.times{font-size:.6875rem}.ambient{opacity:.15}
 .sheet{padding:0;align-items:flex-end!important}.sheet-card{width:100%;max-height:85svh;border-radius:26px 26px 0 0;padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -10px 50px #0002}.sheet-heading{padding:7px 24px 22px}.sheet-grabber{height:28px}.queue-panel{padding:0 16px 24px}.sheet::backdrop{backdrop-filter:blur(4px)}
}
@media(max-width:600px) and (max-height:760px){.welcome{padding-top:20px}.welcome-copy h1{font-size:2.25rem}.welcome-copy>p{margin-top:10px}.album-scene{height:260px;width:280px;margin:10px auto 20px}.player{padding-right:34px;padding-left:34px}.player-top{margin-bottom:14px}.artwork-wrap{max-width:260px}.player-layout{gap:24px}.controls{margin:12px 0}.player-bottom{margin-top:12px}}
@media(max-width:360px){.topbar nav{padding:0 20px}.welcome{padding-left:24px;padding-right:24px}.welcome-copy h1{font-size:2.25rem}.album-scene{width:260px;height:255px}.measure-view{padding-left:24px;padding-right:24px}.player{padding-left:25px;padding-right:25px}.controls{padding:0}.relation-label{font-size:.6875rem}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.press{transform:none!important}.sheet-card{will-change:auto}}
@media(prefers-reduced-transparency:reduce){.topbar,.sheet-card,.info-dialog,#toast{background:#f5f5f7;backdrop-filter:none}.sheet::backdrop,.info-dialog::backdrop{backdrop-filter:none}.ambient{display:none}}
@media(prefers-contrast:more){:root{--muted:#46464b;--accent:#bf1639;--line:#777}.caption,.relation-label,.queue-text small{color:var(--muted)}.primary,.sheet-card{border:1px solid #707075}}
/* Depth follows the same press spring as scale, without a perpetual glow. */
.primary,.round-button,.transport,.cadence-button{box-shadow:inset 0 calc(var(--depth,0)*2px) calc(var(--depth,0)*5px) rgb(0 0 0 / calc(var(--depth,0)*.11))}
.cadence-button{padding:8px 14px;border-radius:24px;background:#ffffff80;border:1px solid #ffffff70}
.sheet-grabber{width:100%;padding:0;background:transparent;border-radius:0;min-height:28px}
.sheet-card .queue-panel{flex:0 1 auto;min-height:80px}
.morph-dialog{border:0;position:fixed;inset:0;width:100%;max-width:none;height:100%;max-height:none;padding:0;margin:0;background:transparent;color:var(--text);overflow:hidden}
.morph-dialog::backdrop{background:rgb(29 29 31 / calc(.2 * var(--reveal,0)));backdrop-filter:blur(calc(5px * var(--reveal,0)))}
.morph-panel{position:absolute;left:0;right:0;top:0;bottom:0;margin:auto;width:min(420px,calc(100% - 32px));height:max-content;max-height:85svh;border-radius:28px;overflow:hidden;background:#fafafcf5;backdrop-filter:blur(20px);box-shadow:0 25px 80px rgb(0 0 0 / calc(.13 * var(--reveal,0)));contain:layout paint}
.morph-content{transform-origin:0 0;padding:42px 32px 32px;max-height:85svh;overflow-y:auto;position:relative;scrollbar-width:thin}
.morph-content p{margin-top:20px;font-size:.9375rem;line-height:1.75;color:var(--muted)}
.morph-source{position:absolute;left:0;top:0;display:flex;align-items:center;gap:9px;padding:0 14px;height:44px;white-space:nowrap;font-size:.9375rem;color:var(--muted);pointer-events:none}
.morph-source svg{width:20px;height:23px}.morph-source strong{font-weight:590;color:var(--text)}
.cover-transfer{position:fixed!important;inset:0 auto auto 0!important;margin:0!important;padding:0!important;border:0!important;max-width:none!important;max-height:none!important;background:transparent;overflow:hidden;transform-origin:0 0;pointer-events:none;box-shadow:0 4px 14px #27212f28;z-index:30}
.cover-transfer img{width:100%;height:100%;object-fit:cover}.cover-transfer::backdrop{display:none}
@media(max-width:600px){.morph-source{font-size:.875rem}}
@media(prefers-reduced-motion:reduce){.morph-content{transform:none!important}}
@media(prefers-reduced-transparency:reduce){.morph-panel{background:#fafafc;backdrop-filter:none}.morph-dialog::backdrop{backdrop-filter:none}}

.morph-content .close-button{width:44px;height:44px;right:8px;top:8px}

/* The whole viewport receives steps; the visual layer never intercepts input. */
body[data-state="TAPPING"]{overflow:hidden;overscroll-behavior:none}
body[data-state="TAPPING"] .topbar{display:none}
.tap-canvas{position:fixed;inset:0;overflow:hidden;background:var(--bg);isolation:isolate}
.tap-surface{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;border-radius:0;background:transparent;touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:pointer;z-index:1}
#tap-prompt{position:absolute;left:24px;right:24px;top:36%;transform:translateY(-50%);font-size:clamp(1.25rem,3.2vw,1.75rem);font-weight:400;line-height:1.6;letter-spacing:.015em;color:#525258;transition:color .65s cubic-bezier(.2,.65,.3,1),transform .6s cubic-bezier(.2,.8,.25,1);text-align:center;text-wrap:balance;pointer-events:none}
/* After the first step the prompt steps aside and shrinks, handing the stage to the count. */
.tap-surface.recording #tap-prompt{color:#a1a1a7;transform:translateY(calc(-50% - min(15vh,120px))) scale(.78)}
.tap-surface:focus-visible{outline:2px solid #0071e3;outline-offset:-6px}
.ripple-layer{position:absolute;inset:0;pointer-events:none;z-index:2;overflow:hidden}
.tap-ripple{position:absolute;width:480px;height:480px;max-width:none;overflow:visible;transform-origin:50% 50%;will-change:opacity}
@media(prefers-contrast:more){#tap-prompt,.tap-surface.recording #tap-prompt{color:#46464b}}

/* Step count: the single focal point while measuring. Sits above ripples so it's never washed out. */
.tap-count{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(.92);display:flex;flex-direction:column;align-items:center;gap:.1rem;opacity:0;pointer-events:none;z-index:3;transition:opacity .45s ease,transform .6s cubic-bezier(.2,.8,.25,1)}
.tap-count.live{opacity:1;transform:translate(-50%,-50%)}
#tap-count-value{display:block;font:600 clamp(5rem,min(26vw,24vh),10rem)/1 -apple-system,BlinkMacSystemFont,"SF Pro Display","Helvetica Neue","PingFang SC",sans-serif;font-variant-numeric:tabular-nums;letter-spacing:-.045em;color:var(--text);transform-origin:50% 62%;will-change:transform}
.tap-count small{display:flex;align-items:center;gap:.5em;font-size:.875rem;font-weight:500;letter-spacing:.3em;color:var(--muted)}
.tap-count small i{width:6px;height:6px;border-radius:50%;background:var(--muted);transition:background-color .25s ease}
@media(prefers-reduced-motion:reduce){.tap-ripple{will-change:opacity}.tap-surface.recording #tap-prompt{transform:translateY(calc(-50% - min(15vh,120px))) scale(.78)}#tap-count-value{will-change:auto}}

.tap-progress-wrap{position:absolute;left:50%;bottom:max(11%,calc(env(safe-area-inset-bottom) + 28px));transform:translateX(-50%);width:min(200px,48vw);pointer-events:none;z-index:3}
#tap-progress{height:4px;border-radius:4px;background:#e3e3e8;overflow:hidden}
#tap-progress i{display:block;width:100%;height:100%;border-radius:inherit;background:#1d1d1f;transform:scaleX(0);transform-origin:left;transition:transform .1s linear,background-color .4s ease}
#tap-progress.checking i{background:#a1a1a7}
#tap-progress-note{position:absolute;top:14px;left:50%;transform:translateX(-50%);width:max-content;max-width:80vw;text-align:center;font-size:.75rem;line-height:1.5;color:var(--muted)}
@media(prefers-contrast:more){#tap-progress{background:#ccc}#tap-progress i,#tap-progress.checking i{background:#46464b}}
.tap-sound{position:absolute;top:max(20px,env(safe-area-inset-top));right:max(20px,env(safe-area-inset-right));z-index:4;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#00000008;color:#6e6e73;-webkit-tap-highlight-color:transparent;transition:background-color .25s ease,color .25s ease,opacity .25s ease}
.tap-sound svg{width:21px;height:21px}
.tap-sound.muted{color:#98989d;background:transparent}
.tap-sound:focus-visible{outline:2px solid #0071e3;outline-offset:2px}
@media(hover:hover){.tap-sound:hover{background:#0000000f}}
@media(prefers-contrast:more){.tap-sound{color:#46464b;background:#e6e6eb}}

/* Music empty-state actions only; homepage and measurement layout remain unchanged. */
.music-empty>.text-button{display:block;width:100%;margin:8px auto 0;min-height:44px;}
