.rhythm-workspace{max-width:980px;margin:auto;color:#183f39}.rhythm-heading{max-width:68ch}.rhythm-heading h1{font-size:clamp(2rem,5vw,3rem);margin:.6rem 0}.rhythm-heading p{line-height:1.5}.rhythm-paper{padding:clamp(.8rem,3vw,1.6rem);background:#fffdf5;border:2px solid #9fb4ae;border-radius:10px;box-shadow:5px 5px 0 #d8e5df}.rhythm-paper h2{margin-top:0}.rhythm-controls{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center;margin:1rem 0}.rhythm-workspace button,.rhythm-workspace a,.rhythm-workspace summary,.rhythm-entry a{font-size:16px;min-height:44px}.rhythm-controls a{display:inline-flex;align-items:center;padding:.5rem}.rhythm-workspace button{white-space:normal;overflow-wrap:anywhere}.rhythm-workspace button[aria-pressed=true]{outline:3px solid #397958;outline-offset:2px}.rhythm-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.rhythm-choices button{text-align:left;padding:1rem;line-height:1.5}.rhythm-score{margin:1.2rem 0}.rhythm-score figcaption{font-weight:600;margin:.7rem 0}.rhythm-beats,.rhythm-blocks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.rhythm-beats{border-top:2px solid #54766b;padding-top:.4rem;margin-bottom:.6rem;text-align:center}.rhythm-beats span{padding:.4rem;border-bottom:3px solid transparent}.rhythm-beats .rhythm-playing{background:#d6b77d;border-color:#75593c}.rhythm-block{min-width:0;min-height:150px;padding:.45rem .25rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.4rem;background:#dfebdf;color:#183f39;border:2px solid #638677;border-radius:6px;text-align:center;overflow-wrap:anywhere}.rhythm-block strong,.rhythm-block span{font-size:16px;line-height:1.3}.rhythm-rest{background:repeating-linear-gradient(135deg,#f4e9c9,#f4e9c9 8px,#e8d9b3 8px,#e8d9b3 10px)}.rhythm-note{width:40px;height:48px;flex-shrink:0}.rhythm-unfilled{min-width:0;min-height:150px;display:flex;align-items:center;justify-content:center;border:2px dashed #8aa8a1;border-radius:6px;background:#f6f8f4;color:#395f55;overflow-wrap:anywhere}.rhythm-palette{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}.rhythm-palette button{display:flex;gap:.7rem;align-items:center;text-align:left;padding:.7rem;line-height:1.4}.rhythm-palette small{display:block;font-size:16px;margin-top:.3rem;font-weight:400}.rhythm-edit{border-top:1px solid #9fb4ae;margin-top:1rem}.rhythm-example{border-top:3px solid #b69b58;margin-top:1.5rem;padding-top:.5rem}.rhythm-audio-note{font-size:16px}.rhythm-workspace summary{padding:.65rem .15rem;cursor:pointer}.rhythm-about{max-width:75ch;padding:.5rem 0}.rhythm-facts,#rhythm-feedback{border-left:4px solid #638677;padding:.6rem 1rem;background:#edf3e7;margin:.6rem 0}.rhythm-workspace [role=status]{scroll-margin-top:1rem}.rhythm-workspace #rhythm-status:empty{display:none}.rhythm-kept h3{margin-top:0}.rhythm-records article{border-top:1px solid #c9d6be;padding:.7rem 0}.rhythm-support-facts{font-size:16px;line-height:1.5}.rhythm-entry{display:flex;align-items:center;justify-content:space-between;gap:1rem;border-left:5px solid #b69b58;padding:1rem;margin:1rem 0;background:#edf3e7}.rhythm-entry h2{margin:.2rem 0}.rhythm-entry p{margin:.5rem 0}.rhythm-entry a{display:inline-flex;align-items:center;flex-shrink:0}.rhythm-workspace :focus-visible,.rhythm-entry :focus-visible{outline:3px solid #9b651e;outline-offset:3px}.rhythm-workspace pre{max-width:100%;overflow:auto}
@media(max-width:600px){.rhythm-choices{grid-template-columns:1fr}.rhythm-palette button{display:flex;flex-direction:column;align-items:flex-start}.rhythm-palette .rhythm-note{float:none;margin:0 0 .35rem}.rhythm-palette small{clear:both}.rhythm-block{padding:.4rem .1rem}.rhythm-block strong{font-weight:500}.rhythm-entry{display:block}.rhythm-entry a{margin-top:.6rem}.rhythm-controls button{flex:1 1 auto}.rhythm-paper{box-shadow:3px 3px 0 #d8e5df}.rhythm-score .rhythm-block span{word-break:normal;hyphens:auto}}
@media(prefers-reduced-motion:reduce){.rhythm-workspace *{animation:none!important;transition:none!important}.rhythm-beats .rhythm-playing{background:transparent;border-color:transparent}}

.rhythm-heading .back{display:inline-flex;align-items:center;padding:.5rem;min-width:44px}.rhythm-workspace [data-speak]{font-size:16px;min-height:44px;min-width:44px}

.rhythm-song video{display:block;width:100%;aspect-ratio:16/9;background:#263c3b;border-radius:16px}.rhythm-song .song-lyric{min-height:3em;font-size:clamp(1.05rem,2.4vw,1.35rem);font-weight:700;line-height:1.5}.song-position{display:grid;grid-template-columns:1fr auto;gap:.4rem;align-items:center}.song-position input{grid-column:1/-1;width:100%;min-height:44px;accent-color:#315c56}.rhythm-song summary{min-height:44px;padding:.7rem 0;cursor:pointer}.rhythm-song details{margin:1rem 0;border-top:1px solid #c8b895}.song-pattern{margin:1.3rem 0;padding:.8rem;border:1px solid #c8b895;border-radius:12px;background:#fffaf0}.song-pattern figcaption{font-weight:700;margin-bottom:.7rem}.song-counts{display:grid;grid-template-columns:repeat(4,1fr);text-align:center}.song-blocks{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));min-height:82px;gap:2px}.song-block{display:flex;align-items:center;justify-content:center;overflow-wrap:anywhere;text-align:center;border:1px solid #263c3b;padding:.25rem;font-size:1rem}.song-w{background:#edc76c}.song-h{background:#bbd2e3}.song-q{background:#e6ada7}.song-e{background:#bbd4ba}.song-rq{background:repeating-linear-gradient(45deg,#f6eee0,#f6eee0 5px,#d5c9b3 5px,#d5c9b3 7px)}.song-words p{margin:.55rem 0;line-height:1.55}.song-credit{font-size:.85rem}.rhythm-song [data-song-status]:empty,.rhythm-song [data-song-sound-status]:empty{margin:0}@media(max-width:520px){.song-block{font-size:1rem;padding:.15rem}.song-blocks{min-height:110px}}

.rhythm-song [hidden]{display:none!important}.song-stage{margin:1rem 0}.song-console [data-song-return]{width:100%;min-height:44px}.song-console .rhythm-controls{gap:.5rem}.song-screen>p{margin:.7rem 0}.song-screen .song-lyric{margin:.8rem 0}.song-position{font-weight:600}.song-credit{line-height:1.5}@media(min-width:760px){.song-stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(13rem,.46fr);gap:1.1rem;align-items:start}.song-console{padding:.5rem .75rem;border-left:2px solid #c8b895}.song-console>p:first-child{margin-top:0}.song-console .rhythm-controls button{flex:1 1 4rem}.song-position{display:block}.song-position input{display:block;margin:.4rem 0}.song-position span{display:block}}
@media(min-width:760px){.song-console .rhythm-controls button{padding:.65rem .6rem;white-space:nowrap;overflow-wrap:normal}}
