.otocoda.key-bpm-tool .key-bpm-hero{padding-bottom:0}.otocoda.key-bpm-tool .key-bpm-hero .hero{margin-bottom:0}.otocoda.key-bpm-tool .key-bpm-hero .hero-copy{color:var(--otocoda-muted,#5c6b62)}.otocoda.key-bpm-tool .bpm-workspace{flex-direction:column;gap:14px;display:flex}.otocoda.key-bpm-tool .bpm-workspace.is-complete{width:100%}.bpm-upload-zone{cursor:pointer}.bpm-file-picker{display:none}.bpm-zone-specs strong{font-weight:650}.otocoda.key-bpm-tool .bpm-status{min-height:248px;color:var(--otocoda-muted);text-align:center;flex-direction:column;align-items:center;padding:28px 0 4px;font-size:13px;display:flex}.otocoda.key-bpm-tool .bpm-status>p{margin:12px 0 0;line-height:1.8}.otocoda.key-bpm-tool .bpm-status>.spin{place-items:center;display:grid}.otocoda.key-bpm-tool .bpm-status>.spin .icon{width:30px;height:30px;color:var(--green)}.spin{animation:1s linear infinite bpm-spin}@keyframes bpm-spin{to{transform:rotate(360deg)}}.otocoda.key-bpm-tool .bpm-inline-error{width:100%;color:var(--red);background:var(--study-error-bg,#fff0ed);text-align:left;border-radius:10px;padding:12px 14px;font-size:12px;line-height:1.8}.otocoda.key-bpm-tool .bpm-error-actions{grid-template-columns:minmax(0,1fr);gap:12px;width:min(100%,360px);margin:16px auto 0;display:grid}.otocoda.key-bpm-tool .bpm-error-actions>.primary,.otocoda.key-bpm-tool .bpm-error-actions>.secondary{width:100%;min-height:52px;margin:0}.otocoda.key-bpm-tool .bpm-workspace .bpm-result-card{padding:0}.bpm-result{min-width:0;animation:.28s both bpm-result-in}@keyframes bpm-result-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.bpm-result-topbar{border-bottom:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 14px;padding:16px;display:flex}.bpm-result-title-group{flex-wrap:wrap;align-items:center;gap:6px 10px;min-width:0;display:flex}.bpm-result-title-group h2{letter-spacing:-.02em;font-size:15px;font-weight:700;line-height:1.5}.bpm-result-badge{border:1px solid var(--line);color:var(--otocoda-muted);white-space:nowrap;border-radius:999px;align-items:center;padding:3px 9px;font-size:10px;font-weight:600;display:inline-flex}.bpm-result-restart{min-height:38px;color:var(--primary);white-space:nowrap;border-radius:9px;align-items:center;gap:6px;margin-left:auto;padding:6px 10px;font-size:12px;font-weight:650;display:inline-flex}.bpm-result-restart:hover{background:var(--tint)}.bpm-result-restart:focus-visible{outline:3px solid var(--ring);outline-offset:2px}.bpm-result-restart .icon{width:15px;height:15px}.bpm-result-main{grid-template-columns:minmax(0,1fr);min-width:0;display:grid}.bpm-analysis-panel,.bpm-player-panel{min-width:0;padding:18px 16px}.bpm-analysis-panel{background:var(--surface);flex-direction:column;display:flex}.bpm-player-panel{border-top:1px solid var(--line);background:var(--soft)}.bpm-readouts{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:clamp(6px,2.2vw,26px);display:grid}.bpm-readout{text-align:center;min-width:0}.bpm-panel-label{color:var(--otocoda-muted);letter-spacing:.03em;white-space:nowrap;text-overflow:ellipsis;font-size:11px;font-weight:600;line-height:1.5;overflow:hidden}.bpm-readout-value{min-height:58px;color:var(--ink);letter-spacing:-.05em;font-variant-numeric:tabular-nums;white-space:nowrap;justify-content:center;align-items:baseline;gap:5px;margin-top:2px;font-size:clamp(26px,4vw,46px);font-weight:750;line-height:1.15;animation:.22s both bpm-number-in;display:flex}@keyframes bpm-number-in{0%{opacity:.3;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}.bpm-tempo-value{color:var(--primary)}.bpm-tempo-value>span{color:var(--otocoda-muted);letter-spacing:0;font-size:11px;font-weight:650}.bpm-key-readout .bpm-readout-value{letter-spacing:-.03em;overflow-wrap:anywhere;white-space:normal;font-size:clamp(17px,2.4vw,30px)}.bpm-camelot-readout .bpm-readout-value{font-size:clamp(24px,3.6vw,42px)}.bpm-readout-note{color:var(--otocoda-muted);overflow-wrap:anywhere;margin-top:2px;font-size:10px;line-height:1.6}.bpm-readout-unavailable{justify-content:center;align-items:center;min-height:58px;margin-top:2px;font-size:10px;line-height:1.6;display:flex}.bpm-multiple{border:1px solid var(--line);background:var(--surface);border-radius:999px;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;width:min(100%,150px);margin:10px auto 0;padding:3px;display:grid}.bpm-multiple button{min-width:0;min-height:32px;color:var(--otocoda-muted);border-radius:999px;padding:0 4px;font-size:12px;font-weight:650;transition:background-color .16s,color .16s}.bpm-multiple button:hover:not(:disabled){color:var(--ink)}.bpm-multiple button.is-active{background:var(--primary);color:var(--on-accent,#fff)}.bpm-multiple button:focus-visible{outline:3px solid var(--ring);outline-offset:1px}.bpm-multiple button:disabled{opacity:.4;cursor:not-allowed}.bpm-result-actions{flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:auto;padding-top:18px;display:flex}.bpm-copy-button{border:1px solid var(--line);background:var(--surface);min-height:40px;color:var(--primary);white-space:nowrap;border-radius:10px;align-items:center;gap:8px;padding:0 14px;font-size:12px;font-weight:650;transition:background-color .16s,border-color .16s;display:inline-flex}.bpm-copy-button:hover{background:var(--tint);border-color:var(--primary)}.bpm-copy-button:focus-visible{outline:3px solid var(--ring);outline-offset:2px}.bpm-copy-button .icon{width:15px;height:15px}.bpm-copy-status{min-height:16px;color:var(--primary);overflow-wrap:anywhere;flex:100%;font-size:11px;line-height:1.6}.bpm-player-head{align-items:center;gap:12px;min-width:0;display:flex}.bpm-play-button{border:1px solid var(--line);background:var(--surface);width:48px;height:48px;color:var(--primary);border-radius:50%;flex:0 0 48px;place-items:center;transition:background-color .16s,transform .16s;display:grid}.bpm-play-button:hover{background:var(--tint)}.bpm-play-button:active:not(:disabled){transform:scale(.96)}.bpm-play-button:focus-visible{outline:3px solid var(--ring);outline-offset:2px}.bpm-play-button .icon{width:18px;height:18px}.bpm-player-name{flex:auto;min-width:0}.bpm-player-label{font-size:13px;font-weight:650;line-height:1.5}.bpm-player-file{color:var(--otocoda-muted);text-overflow:ellipsis;white-space:nowrap;margin-top:1px;font-size:11px;line-height:1.6;overflow:hidden}.bpm-player-time{color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap;flex:none;align-items:baseline;gap:3px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;display:inline-flex}.bpm-player-time>span:nth-child(2){color:var(--otocoda-muted)}.bpm-wavehold{background:var(--tint);border-radius:10px;margin-top:16px;position:relative;overflow:hidden}.bpm-wavehold .wave{width:100%;height:64px;color:var(--wave,var(--otocoda-muted));display:block}.bpm-wavehold .wave line.played{color:var(--primary)}.bpm-range{opacity:0;cursor:ew-resize;touch-action:pan-y;width:100%;height:100%;margin:0;position:absolute;inset:0}.bpm-range:focus-visible{opacity:.06;outline:3px solid var(--ring);outline-offset:-3px}.bpm-seek-hint{color:var(--otocoda-muted);overflow-wrap:anywhere;margin-top:8px;font-size:11px;line-height:1.6}.bpm-audio{clip:rect(0, 0, 0, 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.bpm-pitch-chart{border-top:1px solid var(--line);background:var(--surface);margin:0;padding:18px 16px 16px}.bpm-chart-heading{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:8px 20px;display:flex}.bpm-chart-heading h2{letter-spacing:-.02em;font-size:15px;font-weight:700;line-height:1.5}.bpm-chart-heading p{color:var(--otocoda-muted);margin-top:2px;font-size:11px;line-height:1.6}.bpm-chart-legend{color:var(--otocoda-muted);flex-wrap:wrap;align-items:center;gap:8px 14px;padding-top:2px;font-size:11px;display:flex}.bpm-chart-legend span{white-space:nowrap;align-items:center;gap:6px;display:inline-flex}.bpm-chart-legend span:before{background:color-mix(in srgb, var(--otocoda-muted) 30%, var(--surface));content:"";border-radius:2px;width:8px;height:8px}.bpm-chart-legend .is-in-key:before{background:color-mix(in srgb, var(--primary) 45%, var(--surface))}.bpm-chart-legend .is-tonic:before{background:var(--primary)}.bpm-pitch-plot{grid-template-columns:repeat(12,minmax(0,1fr));align-items:stretch;gap:clamp(2px,1.1vw,12px);height:186px;margin:20px 0 0;padding:0;list-style:none;display:grid}.bpm-pitch-column{min-width:0}.bpm-pitch-button{white-space:normal;border-radius:6px;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px;width:100%;height:100%;padding:0;display:flex;position:relative}.bpm-pitch-button:focus-visible{outline:3px solid var(--ring);outline-offset:2px}.bpm-pitch-bar-wrap{border-bottom:1px solid var(--line);justify-content:center;align-items:flex-end;width:100%;height:156px;display:flex}.bpm-pitch-bar{width:min(100%,34px);height:var(--bar-height);background:color-mix(in srgb, var(--otocoda-muted) 30%, var(--surface));transform-origin:bottom;border-radius:5px 5px 1px 1px;min-height:3px;transition:filter .16s,transform .16s,background-color .16s;animation:.52s cubic-bezier(.2,.8,.2,1) both bpm-bar-rise;display:block}.bpm-pitch-column.is-in-key .bpm-pitch-bar{background:color-mix(in srgb, var(--primary) 45%, var(--surface))}.bpm-pitch-column.is-tonic .bpm-pitch-bar{background:var(--primary)}.bpm-pitch-column.is-inspected .bpm-pitch-bar{filter:brightness(1.08);transform:scaleY(1.03)}.bpm-pitch-column:nth-child(2) .bpm-pitch-bar{animation-delay:25ms}.bpm-pitch-column:nth-child(3) .bpm-pitch-bar{animation-delay:50ms}.bpm-pitch-column:nth-child(4) .bpm-pitch-bar{animation-delay:75ms}.bpm-pitch-column:nth-child(5) .bpm-pitch-bar{animation-delay:.1s}.bpm-pitch-column:nth-child(6) .bpm-pitch-bar{animation-delay:.125s}.bpm-pitch-column:nth-child(7) .bpm-pitch-bar{animation-delay:.15s}.bpm-pitch-column:nth-child(8) .bpm-pitch-bar{animation-delay:.175s}.bpm-pitch-column:nth-child(9) .bpm-pitch-bar{animation-delay:.2s}.bpm-pitch-column:nth-child(10) .bpm-pitch-bar{animation-delay:.225s}.bpm-pitch-column:nth-child(11) .bpm-pitch-bar{animation-delay:.25s}.bpm-pitch-column:nth-child(12) .bpm-pitch-bar{animation-delay:.275s}@keyframes bpm-bar-rise{0%{opacity:.35;transform:scaleY(.02)}to{opacity:1;transform:scaleY(1)}}.bpm-pitch-name{color:var(--otocoda-muted);white-space:nowrap;font-size:10px;line-height:1}.bpm-pitch-column.is-tonic .bpm-pitch-name{color:var(--ink);font-weight:700}.bpm-pitch-tooltip{z-index:2;border:1px solid var(--line);background:var(--surface);color:var(--ink);white-space:nowrap;box-shadow:0 4px 14px var(--shadow);border-radius:6px;padding:4px 7px;font-size:11px;font-weight:650;line-height:1;animation:.12s both bpm-tooltip-in;position:absolute;bottom:calc(100% - 21px);left:50%;transform:translate(-50%)}@keyframes bpm-tooltip-in{0%{opacity:0;translate:0 4px}to{opacity:1;translate:0}}.bpm-pitch-column:first-child .bpm-pitch-tooltip{left:0;transform:none}.bpm-pitch-column:last-child .bpm-pitch-tooltip{left:auto;right:0;transform:none}.bpm-pitch-chart figcaption{color:var(--otocoda-muted);overflow-wrap:anywhere;margin-top:10px;font-size:11px;line-height:1.7}.bpm-about-list{gap:14px;margin-top:20px;display:grid}.bpm-about-card{border:1px solid var(--line);background:var(--surface,white);border-radius:16px;padding:18px}.bpm-about-card h3{font-size:15px;font-weight:650;line-height:1.6}.bpm-about-card p{color:var(--otocoda-muted);margin-top:7px;font-size:13px;line-height:1.9}.bpm-faq-meta{color:var(--otocoda-muted);font-size:12px;line-height:1.9}@media (width>=640px){.otocoda.key-bpm-tool .bpm-error-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.bpm-about-list{grid-template-columns:repeat(3,minmax(0,1fr))}.bpm-result-topbar{padding:18px 22px}.bpm-analysis-panel,.bpm-player-panel{padding:20px 22px}.bpm-pitch-chart{padding:20px 22px 18px}.bpm-pitch-plot{height:200px}.bpm-pitch-bar-wrap{height:170px}.bpm-pitch-name{font-size:11px}}@media (width>=960px){.otocoda.key-bpm-tool .key-bpm-hero{width:100%;max-width:850px}.otocoda.key-bpm-tool .key-bpm-hero .hero h1{white-space:normal}.bpm-result-main{grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr)}.bpm-analysis-panel{border-right:1px solid var(--line);padding:22px 24px 20px}.bpm-player-panel{border-top:0;padding:22px 24px 20px}.bpm-readouts{gap:clamp(10px,2vw,26px)}.bpm-readout-value,.bpm-readout-unavailable{min-height:64px}.bpm-wavehold .wave{height:92px}.bpm-pitch-plot{height:210px}.bpm-pitch-bar-wrap{height:178px}}@media (width<=480px){.bpm-result-topbar{align-items:flex-start}.bpm-result-restart{min-height:34px;padding:4px 6px;font-size:11px}.bpm-result-title-group h2{font-size:14px}.bpm-readout-value,.bpm-readout-unavailable{min-height:50px}.bpm-readout-value{font-size:clamp(22px,7vw,30px)}.bpm-key-readout .bpm-readout-value{font-size:clamp(14px,4.6vw,20px)}.bpm-camelot-readout .bpm-readout-value{font-size:clamp(21px,6.6vw,28px)}.bpm-multiple{width:100%;max-width:132px;margin-top:8px;padding:2px}.bpm-multiple button{min-height:30px;font-size:11px}.bpm-player-head{gap:10px}.bpm-play-button{flex-basis:44px;width:44px;height:44px}.bpm-player-file,.bpm-player-time{font-size:10px}.bpm-pitch-plot{gap:2px;height:168px}.bpm-pitch-bar-wrap{height:140px}.bpm-pitch-bar{border-radius:4px 4px 1px 1px}.bpm-pitch-name{letter-spacing:-.02em;font-size:8px}.bpm-pitch-tooltip{padding:3px 5px;font-size:10px}}@media (width<=360px){.bpm-result-topbar{padding:14px 12px}.bpm-analysis-panel,.bpm-player-panel{padding:16px 12px}.bpm-pitch-chart{padding:16px 12px 14px}.bpm-readouts{gap:4px}.bpm-readout-value{font-size:clamp(20px,7.4vw,26px)}.bpm-key-readout .bpm-readout-value{font-size:clamp(13px,4.8vw,17px)}.bpm-camelot-readout .bpm-readout-value{font-size:clamp(19px,6.8vw,24px)}.bpm-player-head{flex-wrap:wrap}.bpm-player-name{flex:120px}.bpm-player-time{padding-left:54px}.bpm-copy-button{justify-content:center;width:100%}.bpm-pitch-plot{gap:1px;height:156px;margin-top:16px}.bpm-pitch-bar-wrap{height:130px}.bpm-pitch-name{font-size:7px}.bpm-pitch-column.is-tonic .bpm-pitch-tooltip,.bpm-pitch-column:first-child .bpm-pitch-tooltip{left:0}.bpm-pitch-column:last-child .bpm-pitch-tooltip{left:auto;right:0}}@media (prefers-reduced-motion:reduce){.bpm-result,.bpm-readout-value,.bpm-pitch-bar,.bpm-pitch-tooltip{animation:none}.bpm-pitch-bar,.bpm-pitch-column.is-inspected .bpm-pitch-bar,.bpm-play-button,.bpm-multiple button,.bpm-copy-button{transition:none}.bpm-pitch-column.is-inspected .bpm-pitch-bar{transform:none}.spin{animation:none}}.otocoda .bpm-demo-grid{gap:20px;display:grid}.otocoda .bpm-demo-report{border:1px solid var(--line);background:var(--study-soft,#fcfdfb);border-radius:16px;grid-template-columns:minmax(0,1fr);align-items:start;gap:12px;padding:18px;display:grid}.otocoda .bpm-demo-kicker{color:var(--otocoda-muted);letter-spacing:.08em;grid-column:1/-1;font-size:11px;font-weight:700}.otocoda .bpm-demo-value{color:var(--green);align-items:baseline;gap:8px;display:flex}.otocoda .bpm-demo-value strong{letter-spacing:-.055em;font-variant-numeric:tabular-nums;font-size:clamp(38px,8vw,58px);font-weight:750;line-height:.95}.otocoda .bpm-demo-value span{letter-spacing:.06em;font-size:12px;font-weight:700}.otocoda .bpm-demo-readouts{grid-template-columns:repeat(2,minmax(88px,1fr));gap:8px;display:grid}.otocoda .bpm-demo-readouts div{border:1px solid var(--line);background:var(--surface,white);border-radius:12px;padding:10px 12px}.otocoda .bpm-demo-readouts dt{color:var(--otocoda-muted);letter-spacing:.05em;font-size:10px;font-weight:700}.otocoda .bpm-demo-readouts dd{color:var(--ink);margin-top:3px;font-size:12px;font-weight:700;line-height:1.5}.otocoda .bpm-demo-beat-note{color:var(--otocoda-muted);grid-column:1/-1;font-size:11px}.otocoda .bpm-demo-player{min-width:0}.otocoda .bpm-demo-wave{position:relative;overflow:hidden}.otocoda .bpm-demo-beats{z-index:1;pointer-events:none;position:absolute;inset:0}.otocoda .bpm-demo-beats>span{background:var(--green);opacity:.28;width:1px;position:absolute;top:3px;bottom:3px}.otocoda .bpm-demo-pulse{z-index:2;pointer-events:none;background:var(--green);width:8px;height:8px;box-shadow:0 0 0 0 color-mix(in srgb, var(--green) 34%, transparent);border-radius:50%;position:absolute;bottom:0;transform:translate(-50%)scale(.72)}.otocoda .bpm-demo-wave.is-playing .bpm-demo-pulse{animation:.35s ease-out both bpm-demo-pulse}@keyframes bpm-demo-pulse{50%{box-shadow:0 0 0 5px color-mix(in srgb, var(--green) 16%, transparent)}to{transform:translate(-50%)scale(.72);box-shadow:0 0 #0000}}@media (width>=640px){.otocoda .bpm-demo-grid{grid-template-columns:minmax(230px,.76fr) minmax(0,1.24fr);align-items:center;gap:24px}.otocoda .bpm-demo-report{grid-template-columns:1fr;align-content:center;min-height:160px}.otocoda .bpm-demo-value{display:block}.otocoda .bpm-demo-value span{margin-top:5px;display:block}.otocoda .bpm-demo-readouts{width:100%}}@media (prefers-reduced-motion:reduce){.otocoda .bpm-demo-wave.is-playing .bpm-demo-pulse{animation:none}}
