/* Dedicated desktop libraries; phones keep the catalog inside the active content sheet. */
@media(min-width:761px){.workspace[data-section=text],.workspace[data-section=captions]{grid-template-columns:78px 240px minmax(240px,1fr) 300px}.workspace[data-section=text] .library,.workspace[data-section=captions] .library{display:flex}.workspace[data-section=farm] .library{display:none}.workspace[data-section=farm]{grid-template-columns:78px minmax(0,1fr) 310px}.workspace[data-section=text] .viewer-top #viewer-mode,.workspace[data-section=captions] .viewer-top #viewer-mode{display:none}}
#mobile-style-gallery{display:none}.variant-card canvas{width:100%;height:88px;object-fit:contain}.variant-card{min-height:120px}.shape-gallery{margin-bottom:16px}.shape-gallery h3{font-size:13px;margin:5px 0}.shape-gallery .small{font-size:10px}.variant-styles{gap:7px}.farm-sections{display:grid;gap:16px}.farm-open{display:block;text-align:center;padding:14px;border-radius:8px;text-decoration:none}.farm-sections p{line-height:1.6}.library #style-library{overflow-y:auto;min-height:0}.library h2{flex-shrink:0}.basic-styles{margin:12px 0}.basic-styles>summary{padding:9px 0;cursor:pointer;font-size:12px}.brand-heading{margin-top:18px!important}
.gallery-jumps{position:sticky;top:0;z-index:2;display:grid;grid-template-columns:repeat(2,1fr);gap:4px;padding:4px 0 8px;background:var(--panel)}.gallery-jumps button{font-size:10px;min-height:30px;padding:5px}.shape-gallery,.basic-styles,.preset-heading,.brand-heading{scroll-margin-top:80px}
@media(min-width:761px) and (max-width:1100px){.workspace[data-section=text],.workspace[data-section=captions]{grid-template-columns:64px 190px minmax(180px,1fr) 250px}.workspace[data-section=text] .library,.workspace[data-section=captions] .library{padding:10px}}
@media(max-width:760px){#mobile-style-gallery:not([hidden]){display:block;border:1px solid var(--line);border-radius:10px;margin:8px 0 14px;background:var(--panel)}#mobile-style-gallery>summary{cursor:pointer;font-weight:600;padding:14px;min-height:44px}#mobile-style-gallery .mobile-gallery-body{max-height:300px;overflow-y:auto;padding:10px;overscroll-behavior:contain}#mobile-style-gallery .style-card{height:125px;min-height:125px}#mobile-style-gallery .style-card canvas{height:70px}.inspector.ai-mode #mobile-style-gallery{display:none}.workspace[data-section=farm] .library{display:none}#mobile-style-gallery[hidden]{display:none!important}}
@media(max-width:760px){#mobile-style-gallery .mobile-gallery-body{max-height:360px}#mobile-style-gallery .gallery-jumps{gap:3px;padding:0 0 5px}#mobile-style-gallery .gallery-jumps button{min-height:27px;padding:4px}#mobile-style-gallery .brand-heading{margin:8px 0!important;font-size:13px}#mobile-style-gallery .style-guide{margin:5px 0;font-size:11px}#mobile-style-gallery .field,#mobile-style-gallery .style-search{font-size:11px;margin:5px 0;gap:3px}#mobile-style-gallery select,#mobile-style-gallery input{min-height:32px;padding:6px;font-size:12px}}

.gallery-filters{margin:8px 0 12px}.gallery-filters>summary{cursor:pointer;font-size:11px;min-height:32px;padding:7px 0}
