/* Essential choices first; secondary controls remain one tap away. */
body[data-view=dance] #control-panel #dance-panel{margin-top:0;padding-top:0;border-top:0}
#dance-panel #harmony-section{border:0;background:transparent;box-shadow:none}
body[data-view=dance] #dance-panel #harmony-section[open]>summary{display:none}
body[data-view] #instrument-view #control-panel #harmony-section>.section-content{padding:2px 0 10px}
.dance-essential-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 4px;font-size:14px;font-weight:600;color:#596978}
#dance-panel .interval-tabs{margin:0 0 12px}
#dance-panel .dance-essential-actions{display:grid;grid-template-columns:minmax(90px,.65fr) minmax(0,1.35fr);align-items:end;gap:12px;margin-bottom:12px}
#dance-panel .dance-essential-actions .field-label{margin:0 0 4px;font-size:13px}
#dance-panel .dance-essential-actions select{min-height:44px;margin:0;width:100%;padding:8px;font-size:14px}
#dance-panel .dance-loop-actions{margin:0;gap:6px;min-width:0}
#dance-panel #dance-play-all{min-height:44px;margin:0;padding:8px 10px;font-size:14px;white-space:nowrap}
#dance-panel .dance-essential-actions .touch-record-button{width:44px;min-width:44px;height:44px;min-height:44px}
.dance-more-settings{margin:0 0 14px;border:1px solid #e0dce9;border-radius:14px;background:#faf9fd}
.dance-more-settings>summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;list-style:none;cursor:pointer;color:#7254a1;font-size:14px;font-weight:600}
.dance-more-settings>summary::-webkit-details-marker{display:none}
.dance-settings-icon{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.simple-chevron{margin-inline-start:auto;transition:transform .15s}
.dance-more-settings[open] .simple-chevron{transform:rotate(180deg)}
.dance-more-content{padding:0 12px 12px}
.dance-more-content .field-label{font-size:13px}
.dance-more-content .playback-priority p{font-size:12px;line-height:1.5}
.dance-more-content .dance-key-hint{margin:10px 0 0}
#dance-panel .section-heading{margin:10px 0 8px}
#dance-panel #available-title{margin:0;font-size:17px}
.context-help-button{display:inline-grid;place-items:center;flex:none;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:0;background:transparent;color:#708391;font-family:inherit;font-size:16px;font-weight:600;line-height:1;cursor:pointer}
.context-help-button{border-radius:50%;background:radial-gradient(circle at center,#edf3f5 0 12px,transparent 13px)}
.context-help-button:focus-visible,.dance-more-settings>summary:focus-visible{outline:2px solid #8460bb;outline-offset:2px}
.context-help-row{display:flex;justify-content:flex-end;min-height:44px;margin:0 0 4px}
.context-help-dialog{box-sizing:border-box;width:min(440px,calc(100vw - 28px));max-height:calc(100dvh - 40px);margin:auto;padding:20px;border:1px solid #dce6ea;border-radius:22px;background:#fbfdfd;color:#3d5360;box-shadow:0 18px 60px #1e394133;overflow:auto}
.context-help-dialog::backdrop{background:#20313e66}
.context-help-dialog header{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.context-help-dialog h2{flex:1;margin:0;font-size:18px;line-height:1.35}
.context-help-close{display:grid;place-items:center;flex:none;width:44px;height:44px;border:1px solid #dae4e9;border-radius:13px;background:white;color:#506773;font-size:24px;cursor:pointer}
.context-help-dialog p,.context-help-dialog .helper,.context-help-dialog .small{font-size:15px;line-height:1.6;margin:10px 0;color:inherit}
/* An attached pointer must not bring keyboard instructions back on an iPad. */
@media(any-pointer:coarse),(max-width:1100px){.dance-key-hint{display:none!important}}
@media(max-width:360px){#dance-panel .dance-essential-actions{gap:8px}#dance-panel #dance-play-all{padding:8px 6px;font-size:13px}}
@media(prefers-reduced-motion:reduce){.simple-chevron{transition:none}}
