.rhythm-panel{padding:18px;background:#f2f7f4;border:1px solid #b9cfc4;border-radius:14px;margin:20px 0;min-width:0}.rhythm-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:16px}.rhythm-controls label{display:grid;gap:8px;min-width:0}.rhythm-controls input,.rhythm-controls select{width:100%;min-height:44px}.rhythm-tiles{display:flex;flex-wrap:wrap;gap:8px;direction:ltr}.rhythm-tiles button{min-height:44px;min-width:62px;background:white;border:1px solid #94b1a4;border-radius:8px;color:#163c36}.rhythm-tiles .group-start{border-inline-start:5px solid #27877a;background:#dff3ec}.score-scroll{max-width:100%;overflow-x:auto;background:white;border:1px solid #b9cfc4;border-radius:12px}.score-scroll svg{display:block;max-width:none}.score-note-list{line-height:1.8;overflow-wrap:anywhere}

.rhythm-layer{min-width:0;margin:16px 0;padding:16px;border:1px solid #94b1a4;border-radius:12px}.rhythm-layer legend{font-weight:700;padding:0 8px}.rhythm-combine{display:flex;align-items:center;gap:10px;min-height:44px}.rhythm-combine input{width:22px;height:22px;flex-shrink:0}.rhythm-panel .actions{display:flex;gap:10px;flex-wrap:wrap}.rhythm-panel input[type=file]{max-width:100%}

.rhythm-presets{margin:18px 0;padding:16px;border:1px solid #b9cfc4;border-radius:12px;box-shadow:none;background:#fff}.rhythm-presets h4{font-size:1.1rem;margin:0 0 10px}.rhythm-preset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.rhythm-preset-grid article{min-width:0;padding:14px;border:1px solid #b9cfc4;border-radius:10px;background:#f7faf8}.rhythm-preset-grid h5{font-size:1rem;margin:0}.rhythm-preset-grid p{font-size:.85rem;line-height:1.7;overflow-wrap:anywhere}.rhythm-preset-actions{display:flex;flex-wrap:wrap;gap:8px}.rhythm-preset-actions button{min-height:44px;font-size:.85rem;white-space:normal}.rhythm-preset-actions [aria-pressed=true]{background:#235f50;color:#fff}.rhythm-presets [role=status]{font-size:.85rem;line-height:1.7}.rhythm-presets [data-rhythm-selection]{font-weight:700;line-height:1.7}@media(max-width:650px){.rhythm-preset-grid{grid-template-columns:1fr}.rhythm-presets{padding:12px}}

#soloPractice .solo-controls{display:flex;gap:18px;flex-wrap:wrap}#soloPractice label{display:grid;gap:6px}#soloTempo{width:min(100%,380px)}#soloPractice .actions{display:flex;flex-wrap:wrap;gap:10px;margin-block-start:16px}#soloRepeat[aria-pressed=true]{background:#195c53;color:white}#soloStatus{min-height:1.6em}#advancedRhythm>summary{cursor:pointer;font-weight:700}
