/* 11/11 (owner: in a small window the layout is not steady). The header used to switch at 1000, 1100, 1200 and
   1320 px: the wordmark, the long ".mid" text, the "Sound" label and the gaps appeared or vanished at once, so the
   items jumped while the window was resized. Here every one of them changes continuously with the width instead. */
.instrument.product31{padding-left:clamp(26px,calc(26px + (100vw - 940px)*.13),34px)!important;padding-right:clamp(26px,calc(26px + (100vw - 940px)*.13),34px)!important}
.product31 .top{gap:clamp(12px,calc(12px + (100vw - 940px)*.17),22px)!important}
/* Text never appears cut: the wordmark's second line and the long .mid hint are either whole or absent. While they
   are absent, an empty margin of the same width grows with the window and reaches their full width exactly where
   they appear, so nothing to their right moves at the switch. */
.wordmark span{flex:none}
@media(max-width:1239.98px){.wordmark span{display:none!important}.wordmark{margin-right:clamp(0px,calc((100vw - 1082px)*.5),79px)}}
.product31 #preset-open{margin-left:clamp(12px,calc(12px + (100vw - 940px)*.077),35px)!important;min-width:0!important}
#midi-drop-zone{flex:0 0 auto!important;min-width:0!important;margin-left:clamp(12px,calc(12px + (100vw - 940px)*.17),22px)!important;padding:0 12px 0 9px!important;gap:9px!important}
#midi-drop-zone .zone-short{display:none!important}
#midi-drop-zone .zone-text{display:flex!important;flex:none;width:116px;overflow:hidden}
#midi-drop-zone .zone-long,#midi-drop-zone small{display:block!important}
@media(max-width:1299.98px){#midi-drop-zone .zone-text{display:none!important}#midi-drop-zone{margin-right:clamp(0px,calc((100vw - 1050px)*.5),125px)!important}}
.sound-pick{margin-left:clamp(12px,calc(12px + (100vw - 940px)*.017),22px)!important;gap:8px!important}
#sound-pick .sound-k{display:inline-block!important;width:32px;overflow:hidden}
@media(max-width:1259.98px){#sound-pick .sound-k{display:none!important}#sound-pick{margin-right:clamp(0px,calc((100vw - 1180px)*.5),40px)}}
#sound-pick .sound-v{max-width:clamp(120px,calc(120px + (100vw - 1000px)*.3),220px)!important}
.product31 .top-right{gap:clamp(3px,calc(3px + (100vw - 1100px)*.05),8px)!important}
.product31 .top-right button{padding-left:clamp(7px,calc(7px + (100vw - 1100px)*.03),10px)!important;padding-right:clamp(7px,calc(7px + (100vw - 1100px)*.03),10px)!important}
/* 11/11 (owner's small-window screenshot): the shape list is cut by the row below it, which looked broken. The last
   24 px of the list now fade out, so a cut row reads as "more below". */
#preset-grid{-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(to bottom,#000 calc(100% - 24px),transparent)}
/* 11/11 (owner: "被ってる", the sound name drawn over Undo in the plug-in): the sound picker never shrinks below its
   own content (its name is cut with an ellipsis inside a bounded width instead); the progression name gives way. */
.sound-pick{flex:0 0 auto!important}
#sound-pick{flex:0 0 auto!important;overflow:hidden}
#preset-open{flex:0 1 auto;min-width:0;overflow:hidden}
#active-progression{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* 11/13 (owner's screen: the button read just "進"): the words "Progression presets" never shrink; only the progression name gives way */
#preset-open .preset-action{flex:none!important;overflow:visible}
.instrument.product31 #preset-open{min-width:auto!important;overflow:visible!important}
.instrument.product31 #preset-open #active-progression{min-width:0;overflow:hidden;text-overflow:ellipsis}
#preset-open #active-progression{flex:0 1 auto}
@media(max-width:1100px){#preset-open #active-progression{display:none}}
#preset-grid{-webkit-mask-image:none!important;mask-image:none!important}
/* 11/13: the header keeps every word whole; the progression name beside "Progression presets" goes first when space runs out */
@media(max-width:1500px){.instrument.product31 #preset-open #active-progression{display:none}}
