/* Rich shape list: more shapes in view at once, grouped, with a visible count. Same parts, same functions. */
html:root .instrument.product31{grid-template-columns:minmax(0,1fr) 372px!important}
/* tabs: one quiet row style, the open one filled (unchanged role), counts beside the name in grey */
html:root #pitch-panel .library-tabs button small{display:inline!important;margin-left:5px;color:#9a9c94;font-size:10px;font-variant-numeric:tabular-nums}
html:root #pitch-panel .library-tabs button[aria-pressed=true] small{color:#c9cbc3}
/* group index: plain words, the groups on the current page underlined, the count in grey */
#rich-index{display:flex;flex-wrap:wrap;gap:2px 12px;margin:2px 0 8px;padding-bottom:6px;border-bottom:1px solid #e3e4de}
#rich-index[hidden]{display:none}
#rich-index button{background:transparent!important;border:0!important;padding:3px 0!important;font-size:12px;color:#55574f;border-radius:0!important}
#rich-index button small{margin-left:4px;color:#9a9c94;font-size:10px;font-variant-numeric:tabular-nums}
#rich-index button:hover{color:#252624}
#rich-index button[aria-current=true]{color:#252624;box-shadow:inset 0 -1.5px 0 #252624!important}
/* denser tiles: five across (four when narrow), picture 24 px, names may take two lines, every tile the same height */
html:root #pitch-panel #preset-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;column-gap:4px!important;row-gap:2px!important}
@media(max-width:1000px){html:root #pitch-panel #preset-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
html:root #pitch-panel #preset-grid .recipe{min-height:0!important;padding:4px 2px 4px!important;gap:2px!important;grid-template-rows:24px 26px!important;border-left:1.5px solid transparent!important;border-radius:0!important}
html:root #pitch-panel #preset-grid .recipe svg{max-height:24px!important;width:100%}
html:root #pitch-panel #preset-grid .recipe strong{font-size:10.5px!important;line-height:1.2!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal;overflow-wrap:anywhere;text-align:center;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;align-self:start}
html:root #pitch-panel #preset-grid .recipe.grp-start{border-left-color:#252624!important}
/* under the list: "1–30 of 62", where you are in the scroll */
html:root #grid-pager{display:flex;align-items:center;gap:10px;justify-content:flex-end;font-size:12px}
#rich-range{margin-right:auto;color:#55574f;font-variant-numeric:tabular-nums}
/* tighter: a smaller picture, two short lines for the name, the filter rows closer together */
html:root #pitch-panel #preset-grid .recipe{grid-template-rows:20px 25px!important;padding:3px 2px 3px!important}
html:root #pitch-panel #preset-grid .recipe svg{max-height:20px!important}
html:root #pitch-panel #preset-grid .recipe strong{font-size:10px!important;line-height:1.25!important}
html:root #pitch-panel .library-filter{padding-top:6px!important;padding-bottom:4px!important;row-gap:4px!important}
html:root #pitch-panel .library-filter :is(button,label){min-height:24px!important;padding-top:2px!important;padding-bottom:2px!important}
#rich-index{flex-wrap:nowrap;overflow:hidden;gap:2px 10px}
#rich-index button{white-space:nowrap}
@media(max-width:1000px){
 #rich-index{flex-wrap:wrap;gap:0 8px}
 #rich-index button{font-size:11px}
 #rich-index button small{display:none}
}
/* room for more rows: six tabs in one row, shorter tiles, tighter filter rows and footer */
html:root #pitch-panel .library-tabs{grid-template-columns:repeat(6,auto)!important;column-gap:2px!important;row-gap:0!important;justify-content:space-between}
html:root #pitch-panel .library-tabs button{padding:5px 7px!important;min-height:28px!important;font-size:12.5px}
html:root #pitch-panel .library-tabs button small{display:none!important}
html:root #pitch-panel #preset-grid .recipe{grid-template-rows:18px 24px!important;padding:2px 1px 2px!important}
html:root #pitch-panel #preset-grid .recipe svg{max-height:18px!important}
html:root #pitch-panel #preset-grid .recipe strong{line-height:1.2!important}
html:root #pitch-panel .library-footer{padding-top:2px!important;padding-bottom:2px!important;min-height:0!important}
html:root #pitch-panel .library-footer button{padding-top:2px!important;padding-bottom:2px!important;min-height:24px!important}
html:root #grid-pager{margin-top:2px!important}
html:root #grid-pager button{padding:2px 9px!important;min-height:24px!important}
@media(max-width:1000px){html:root #pitch-panel .library-tabs button{padding:4px 3px!important;font-size:11px}}
@media(max-width:1000px){html:root .instrument.product31{grid-template-columns:minmax(0,1fr) 290px!important}html:root #pitch-panel #preset-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
/* 11/17: the list scrolls inside itself (owner: Next was hard to see). No visible bar; the cut last row shows there is more. */
html:root #pitch-panel #preset-grid.scrolls{overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-width:none}
html:root #pitch-panel #preset-grid.scrolls::-webkit-scrollbar{display:none}
html:root #grid-pager{justify-content:flex-start}
html:root #rich-range{margin-right:0;font-size:11px;color:#77796f}
/* names over two lines split evenly (no single character left alone on the second line) */
html:root #pitch-panel #preset-grid .recipe strong{text-wrap:balance}
html:root #grid-pager{margin-top:6px!important}
/* 11/17: between 1000 and 1280 wide the list column grows with the window, so the tools under the picture keep their room
   (at 1080x720 a fixed 372 px pushed A/B under Before). Four across below 1260 (a long Japanese name took three lines at 1200). */
@media(min-width:1001px) and (max-width:1279px){html:root .instrument.product31{grid-template-columns:minmax(0,1fr) clamp(300px,29vw,372px)!important}}
@media(min-width:1001px) and (max-width:1259px){html:root #pitch-panel #preset-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
/* 11/17 19:03 owner screenshot fixes */
/* the group names wrap instead of being clipped ("Other 3" was cut at the right edge) */
html:root #rich-index{flex-wrap:wrap!important;overflow:visible!important;row-gap:0!important}
/* the thin line at the start of each group read as stray line pieces between tiles: gone */
html:root #pitch-panel #preset-grid .recipe.grp-start{border-left-color:transparent!important}
/* the last row fades out instead of being sliced through the names; no fade once at the end */
html:root #pitch-panel #preset-grid.scrolls:not(.at-end){-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 46px),transparent)!important;mask-image:linear-gradient(to bottom,#000 calc(100% - 46px),transparent)!important}
