#metronome-tool,#metronome-tool #mt-stage{padding:14px}#metronome-tool .mt-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 12px;margin-bottom:4px;display:flex}#metronome-tool .mt-heading h2{margin:0;font-size:15px}#metronome-tool .mt-utilities{gap:6px;margin:0}#metronome-tool .mt-utilities .btn{min-width:44px;padding:6px 10px;font-size:12px}#metronome-tool .mt-dashboard{align-items:start;gap:8px;display:grid}#metronome-tool .practice-readout{background:0 0;border:0;margin:0;padding:0}#metronome-tool .mt-readout-line{flex-wrap:wrap;justify-content:center;align-items:center;gap:6px 10px;font-size:11px;display:flex}#metronome-tool .mt-readout-line p{margin:0}#metronome-tool .practice-beats{gap:8px;margin:4px 0}#metronome-tool .practice-beats span{box-sizing:border-box;width:30px;height:30px;font-size:12px}#metronome-tool #mt-subpulse{font-variant-numeric:tabular-nums;border:1px solid #736b61;border-radius:20px;min-width:6em;padding:1px 6px;display:inline-block}#metronome-tool #mt-subpulse[data-subdivision=true]{background:#eee9e3;border-style:dashed}#metronome-tool .mt-transport{justify-content:center;gap:12px;margin:4px 0;display:flex}#metronome-tool .mt-transport button{border-radius:50%;width:48px;height:48px;padding:8px}#metronome-tool .mt-transport button:disabled{opacity:.4;cursor:not-allowed}#metronome-tool .mt-bpm-label{font-size:12px;display:block}#metronome-tool .mt-bpm-row{justify-content:center;align-items:center;gap:12px;margin-top:4px;display:flex}#metronome-tool .mt-bpm-row button{width:44px;padding:4px;font-size:22px}#metronome-tool #mt-bpm{width:120px;min-height:48px;color:var(--ink);text-align:center;font:inherit;font-variant-numeric:tabular-nums;background:#fffefb;border:1px solid #d2cbc3;border-radius:9px;padding:3px 8px;font-size:30px;font-weight:700;line-height:1.2}#metronome-tool .mt-tempo-tools{align-items:center;gap:10px;margin:0;display:flex}#metronome-tool .mt-slider-field{flex:1;margin:0}#metronome-tool #mt-tap{padding:6px 10px;font-size:12px}#metronome-tool .practice-fields{grid-template-columns:minmax(0,.8fr) minmax(0,1.3fr) minmax(0,1fr);gap:8px}#metronome-tool .practice-fields .field{gap:3px;margin:0;font-size:12px}#metronome-tool .practice-fields select{height:44px;padding:5px 4px;font-size:16px}#metronome-tool .mt-options{justify-content:center;gap:18px;display:flex}#metronome-tool .mt-options .checkbox{align-items:center;min-height:44px;margin:0;font-size:12px;display:inline-flex}#metronome-tool #mt-unit{margin:0;font-size:11px;line-height:1.5}#metronome-tool .mt-rhythm-panel{margin:0;padding:6px}#metronome-tool .mt-rhythm-panel legend{font-size:14px}#metronome-tool #mt-subdivision-help{margin:0 0 6px;line-height:1.5}#metronome-tool .mt-subdivisions{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;display:grid}#metronome-tool .mt-subdivision{border:1px solid var(--line);min-height:52px;color:var(--ink);cursor:pointer;font:inherit;background:#fff;border-radius:9px;flex-direction:column;align-items:center;min-width:0;padding:4px 3px;font-size:11px;line-height:1.3;display:flex;position:relative}#metronome-tool .mt-subdivision svg{flex:none;width:100%;max-width:100px;height:32px}#metronome-tool .mt-full-name{display:none}#metronome-tool .mt-subdivision:hover{border-color:var(--ink);background:#f6f3ef}#metronome-tool .mt-subdivision[aria-pressed=true]{color:var(--primary-hover);background:var(--primary-soft);border:2px solid var(--primary);padding:3px 2px;font-weight:700}#metronome-tool .mt-subdivision[aria-pressed=true]:after{content:"✓";font-size:11px;position:absolute;top:0;right:3px}#metronome-tool .mt-subdivision:focus-visible,#metronome-tool .mt-transport button:focus-visible{outline:3px solid var(--green);outline-offset:3px}#metronome-tool .mt-subdivision:disabled{opacity:.5;cursor:not-allowed}#metronome-tool #mt-subdivision-description{min-height:3em;margin:6px 0 0;font-size:12px;line-height:1.5}#metronome-tool .mt-help{text-align:left;margin-top:10px}#metronome-tool .mt-help summary{cursor:pointer;align-items:center;min-height:44px;font-size:12px;display:flex}#metronome-tool .mt-help summary:after{content:"＋";margin-left:auto}#metronome-tool .mt-help[open] summary:after{content:"−"}#metronome-tool .mt-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (width>=768px){#metronome-tool .mt-subdivisions{grid-template-columns:repeat(6,minmax(0,1fr))}#metronome-tool .mt-full-name{display:inline}#metronome-tool .mt-compact-name{display:none}#metronome-tool .mt-subdivision svg{height:42px}#metronome-tool .mt-subdivision{min-height:78px}}@media (width>=900px){#metronome-tool .mt-dashboard{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:center;gap:22px}}@media (width<=400px){#metronome-tool,#metronome-tool #mt-stage{padding:8px}#metronome-tool .mt-heading h2{font-size:12px}#metronome-tool .mt-utilities .btn{padding:4px 7px;font-size:11px}}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded){padding:max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));overscroll-behavior:contain;display:block;overflow:auto;container:mt-full/size}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) #mt-form{grid-template-rows:auto minmax(min-content,1fr) auto;gap:clamp(6px,1cqh,16px);width:100%;max-width:none;height:100%;min-height:min-content;margin:0;display:grid}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) .mt-heading{z-index:2;background:#f6f5eb;margin:0;position:sticky;top:0}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) .mt-dashboard{grid-template-rows:auto minmax(min-content,1fr);grid-template-columns:minmax(0,1fr);align-items:stretch;gap:clamp(8px,1.5cqh,20px);min-height:0}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) .mt-controls{min-height:0}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) .mt-rhythm-panel{flex-direction:column;min-height:0;padding:clamp(6px,1cqw,18px);display:flex}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) .mt-subdivisions{flex:1;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:minmax(54px,1fr);gap:clamp(6px,1cqw,16px);min-height:0}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) .mt-subdivision{justify-content:center;min-height:54px;font-size:clamp(12px,min(2cqh,3cqw),22px)}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) .mt-subdivision svg{max-width:200px;height:clamp(32px,min(8cqh,14cqw),120px)}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) .mt-full-name{display:none}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) .mt-compact-name{display:inline}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) .mt-help{margin:0}@container mt-full (width>=600px){#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) .mt-full-name{display:inline}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) .mt-compact-name{display:none}}@container mt-full (width>=760px) or ((width>=640px) and (height<=550px)){#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) .mt-dashboard{grid-template-rows:minmax(min-content,1fr);grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(12px,2cqw,40px)}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) .mt-controls{align-content:space-between;gap:clamp(4px,.8cqh,12px);display:grid}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) .mt-subdivisions{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(56px,1fr)}}@container mt-full (width>=760px) and (height>=600px){#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) #mt-form{--mt-room:clamp(0px, calc(100cqh - 600px), 700px)}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) .mt-heading h2{font-size:clamp(15px, calc(16px + var(--mt-room) * .015), 28px)}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) .mt-readout-line{font-size:clamp(12px, calc(12px + var(--mt-room) * .012), 20px)}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) .practice-beats span{width:clamp(30px, min(calc(32px + var(--mt-room) * .07), 5cqw), 88px);height:clamp(30px, min(calc(32px + var(--mt-room) * .07), 5cqw), 88px);font-size:clamp(12px, calc(14px + var(--mt-room) * .025), 32px)}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) .mt-transport button{width:clamp(48px, min(calc(56px + var(--mt-room) * .15), 12cqw), 160px);height:clamp(48px, min(calc(56px + var(--mt-room) * .15), 12cqw), 160px)}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) .mt-transport svg{width:55%;height:55%}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) #mt-bpm{width:clamp(120px,26cqw,360px);font-size:clamp(30px, min(calc(38px + var(--mt-room) * .16), 8cqw), 144px)}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) .mt-bpm-row button{width:clamp(44px, min(calc(44px + var(--mt-room) * .04), 5cqw), 72px);min-height:clamp(44px, min(calc(44px + var(--mt-room) * .04), 5cqw), 72px)}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) :is(.mt-bpm-label,.practice-fields .field,.mt-options .checkbox){font-size:clamp(12px, calc(13px + var(--mt-room) * .012), 22px)}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) .practice-fields select{height:clamp(44px, min(calc(44px + var(--mt-room) * .04), 5cqw), 72px);font-size:clamp(16px, calc(16px + var(--mt-room) * .008), 22px)}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) #mt-unit{font-size:clamp(11px, calc(11px + var(--mt-room) * .008), 17px)}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) :is(.mt-rhythm-panel legend,#mt-subdivision-description){font-size:clamp(14px, calc(14px + var(--mt-room) * .01), 22px)}}@container mt-full (width>=640px) and (height<=550px){#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) .mt-controls{grid-template-columns:minmax(0,1fr) minmax(0,.65fr);gap:2px 4px}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) .mt-readout-line{gap:4px}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) #mt-current{display:none}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) .practice-beats{gap:4px}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) .practice-beats span{width:22px;height:22px;font-size:10px}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) .mt-transport{align-items:center;gap:6px}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) .mt-transport button{width:44px;height:44px;padding:6px}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) :is(.mt-tempo,.practice-fields,.mt-options,#mt-unit){grid-column:1/-1}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) .mt-subdivision svg{height:32px}#metronome-tool #mt-stage:is(:fullscreen,.is-expanded) .mt-subdivision{font-size:11px}}
