.rhythm-intro{max-width:800px;line-height:1.7}
#rhythm-app{margin-top:28px;border:1px solid #cbd7ef;border-radius:22px;padding:clamp(12px,3vw,28px);background:#fff;min-width:0}
#rhythm-app .rhythm-selectors{display:flex;gap:16px;flex-wrap:wrap}
#rhythm-app .rhythm-selectors label{display:grid;gap:6px;min-width:0;flex:1 1 230px;font-weight:700}
#rhythm-app select{width:100%;max-width:100%;min-height:44px;font:inherit}
#rhythm-app .rhythm-reading{line-height:1.7;color:#384b6c;border-left:4px solid #5370cf;padding-left:12px}
#rhythm-app .rhythm-toolbar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;background:#f3f6ff;border-radius:14px;padding:12px;margin:16px 0}
#rhythm-app .rhythm-toolbar label{display:grid;gap:6px;flex:1 1 150px;min-width:0}
#rhythm-app input[type=range]{min-height:44px;width:100%;accent-color:#3653c5}
#rhythm-app .rhythm-reference{background:#fff9e9;border:1px solid #ddc37b;padding:16px;border-radius:16px;margin:16px 0}
#rhythm-app .rhythm-reference p{line-height:1.7;overflow-wrap:anywhere}
#rhythm-app .rhythm-voice{padding:12px;margin:18px 0;border:1px solid #c1cfe9;border-radius:14px;min-width:0}
#rhythm-app .rhythm-voice legend{padding:0 8px;font-weight:800;font-size:1.08rem}
#rhythm-app .rhythm-cells{display:grid;grid-template-columns:repeat(8,minmax(44px,1fr));gap:8px}
#rhythm-app .rhythm-cell{display:grid;place-items:center;gap:3px;min-width:44px;min-height:66px;padding:5px;background:#f3f6ff;border:2px solid #abbcdc;border-radius:10px;color:#243352;font:inherit;cursor:pointer}
#rhythm-app .rhythm-cell[aria-pressed=true]{background:#3452c4;border-color:#233e9b;color:#fff}
#rhythm-app .rhythm-number{font-size:.8rem;font-weight:600}
#rhythm-app .rhythm-cell strong{font-size:1.35rem;line-height:1}
#rhythm-app .rhythm-cell.given{border-style:dashed;cursor:default}
#rhythm-app .rhythm-cell.is-current{outline:3px solid #be7000;outline-offset:2px}
#rhythm-app .rhythm-cell:focus-visible{outline:4px solid #1c253f;outline-offset:3px;position:relative;z-index:1}
#rhythm-app .rhythm-position{background:#edf3ff;color:#24375f;border:1px solid #b8c9e8;padding:14px;border-radius:12px;line-height:1.6;margin:20px 0;font-weight:700;min-height:60px}
#rhythm-app .rhythm-loop{display:flex;gap:8px;align-items:center;min-height:44px;font-weight:600}
#rhythm-app .rhythm-loop input{width:24px;height:24px;accent-color:#3452c4}
#rhythm-app .button-row{margin:16px 0;gap:10px}
#rhythm-app button:not(.rhythm-cell){min-width:44px;min-height:44px;white-space:normal;font:inherit}
#rhythm-hint-view{margin:14px 0;line-height:1.6}
.rhythm-links{margin-top:32px}.rhythm-links p{line-height:1.6}
@media(max-width:700px){#rhythm-app .rhythm-cells{grid-template-columns:repeat(4,minmax(44px,1fr));gap:6px}#rhythm-app .rhythm-voice{padding:8px}#rhythm-app{padding:12px}#rhythm-app .rhythm-toolbar{align-items:stretch}#rhythm-app .rhythm-selectors{display:grid;grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){#rhythm-app *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
