/* Same container gutter for product headings, filters and their trailing action. */
#products>.section-head,#products>.item-toolbar{padding-left:16px;padding-right:16px;box-sizing:border-box}
#products>.item-toolbar{min-height:48px;padding-top:8px;padding-bottom:8px;flex-wrap:nowrap}
#products>.item-toolbar>.filters{min-width:0;overflow-x:auto;flex:1}
#products .item-view-more{display:inline-flex;align-items:center;justify-content:center}
.pd-main .pd-image-limit:not(.at-limit){background:none;border:0;padding:0;color:#7b8796;font-size:12px;margin:8px 0}
.pd-editing .pd-basic-fields .pd-note{max-width:400px}
.pd-editing .pd-large-empty{background:#fafbfc;border:1px dashed #e5e9ef;color:#9aa3af}
.pd-main .pd-add-param{margin-top:16px;max-width:448px}
.pd-main .pd-add-param>button{width:auto;max-width:none}
.pd-main #pd-add-form{padding:16px;margin-top:8px;border-radius:4px;max-width:448px;display:grid;grid-template-columns:96px minmax(0,1fr);gap:8px 16px;align-items:center}
.pd-main #pd-add-form[hidden]{display:none}
.pd-main #pd-add-form label,.pd-main #pd-add-form input{margin:0}
.pd-main #pd-add-form button{justify-self:start;margin:0}
.pd-main #pd-add-form button:first-of-type{grid-column:2}
.pd-main #pd-add-form button:last-child{grid-column:2}
.pd-main .pd-block:has(#pd-add-form:not([hidden]))>p.muted{display:none}
.pd-editing #pd-videos:not(:has(.pd-file)),.pd-editing #pd-files:not(:has(.pd-file)){margin-bottom:16px}
.pd-page .pd-main{overflow-anchor:none}
.reading-back-top{position:fixed;bottom:32px;z-index:90;width:40px;height:40px;padding:8px;background:#fff;border:1px solid #dce2ea;border-radius:4px;box-shadow:0 4px 16px #1f304414;color:#657080}
.reading-back-top svg{width:24px;height:24px;display:block}
.reading-back-top[hidden]{display:none!important}
.mobile-h5 .reading-back-top{bottom:calc(80px + env(safe-area-inset-bottom));width:40px;height:40px}
.mobile-h5 .pd-main #pd-add-form{grid-template-columns:1fr;gap:8px}
.mobile-h5 .pd-main #pd-add-form button:first-of-type,.mobile-h5 .pd-main #pd-add-form button:last-child{grid-column:1}
.mobile-h5 #products>.item-toolbar{flex-wrap:nowrap}
.mobile-h5 #products>.item-toolbar>.filters{flex-wrap:nowrap;white-space:nowrap}

.pd-main #pd-add-form .pd-add-actions{grid-column:2;display:flex;gap:8px}.mobile-h5 .pd-main #pd-add-form .pd-add-actions{grid-column:1}
/* Both previews share an object heading; actions never break into characters. */
.sidepanel .side-head{display:flex;align-items:flex-start;gap:16px;min-width:0}
.sidepanel .side-head h2{font-size:16px;font-weight:600;line-height:24px;margin:0;min-width:0;flex:1;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.sidepanel .side-head>.open-detail{font-size:14px;line-height:24px;padding:0;white-space:nowrap;flex:0 0 auto;display:inline-flex;align-items:center;gap:4px}
.collection-product-preview{padding:0}
.collection-product-preview>[data-collection-default]{margin:0 0 8px;padding:4px 0;background:none;border:0;color:#657080}
.mobile-h5 .sidepanel .side-head{flex-wrap:wrap;gap:8px}
.mobile-h5 .sidepanel .side-head h2{flex-basis:100%}
.mobile-h5 .sidepanel .side-head>.open-detail{min-height:44px}

/* Freeze candidate: preserve sibling rhythm, including empty media. */
.pd-main section.pd-empty-section,.pd-editing #pd-videos:not(:has(.pd-file)),.pd-editing #pd-files:not(:has(.pd-file)){margin-bottom:32px}
.pd-main section.pd-empty-section h2,.pd-main h2{font-size:18px;line-height:26px;font-weight:600}
.pd-file>.pd-file-icon{flex:0 0 24px;width:24px}.pd-file>span:not(.pd-file-icon){flex:1;min-width:0}.pd-file>a,.pd-file>button{flex-shrink:0;white-space:nowrap}
.global-controls .scope-wrap{display:inline-flex;align-items:center;gap:8px;margin:0 8px;white-space:nowrap;flex-shrink:0}
.locked-note{background:#f4f7fb;color:#52647a;border:1px solid #dce5ef;padding:8px 16px;line-height:22px}
.locked-note.alert-error{background:#fff2f0;color:#b42318;border-color:#ffccc7}
.notice{background:#fff9ee;border:1px solid #f3d5a0;color:#8c5c16;padding:8px 16px}
.rs-frame,.workspace,.sidepanel,.terms-side,.pd-side,.context-selection{overflow-anchor:none}
html{scrollbar-gutter:stable}
@media(max-width:700px){.global-controls .scope-wrap{margin:0;gap:8px}.pd-file{gap:8px}.locked-note{padding:8px 16px}}
