#pfProductGallery{width:min(880px,94vw);max-height:86vh;padding:22px;border:1px solid #536563;border-radius:16px;background:#f1f4f3;color:#192b2b;overflow:auto;box-shadow:0 24px 80px #0007}#pfProductGallery::backdrop{background:#091514aa}#pfProductGallery header{position:static;display:flex;align-items:center;justify-content:space-between;background:none;color:inherit;padding:0;gap:15px}#pfProductGallery h2{margin:0;font-size:24px}#pfProductGallery header p,.pf-gallery-note{font-size:12px;color:#536563}#pfProductGallery button{border:1px solid #668e88;border-radius:7px;padding:10px 14px;background:#e0eeea;color:#183e38;cursor:pointer}#pfProductGallery button:disabled{opacity:.5;cursor:default}#pfGalleryGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px;margin:16px 0}.pf-gallery-card{background:white;border:1px solid #d2dcda;border-radius:10px;padding:12px;min-width:0}.pf-gallery-card img{width:100%;height:155px;object-fit:contain;background:#edf0ef;border-radius:6px}.pf-gallery-card h3{font-size:15px;margin:10px 0 4px;overflow-wrap:anywhere}.pf-gallery-card p{font-size:12px;margin:5px 0 12px}.pf-gallery-card button{width:100%}#pfGalleryStatus{min-height:22px;font-size:13px}.pf-instance-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}.pf-instance-fields input{width:100%;box-sizing:border-box;min-height:36px}#pfSceneObjects button,#pfSceneObjects select{width:100%;margin:4px 0}#pfGalleryQuick{width:100%;margin-bottom:6px}#pfSceneWarning{color:#e2b984}@media(max-width:600px){#pfProductGallery{padding:14px}#pfGalleryGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.pf-gallery-card{padding:8px}.pf-gallery-card img{height:120px}#pfProductGallery h2{font-size:20px}#pfProductGallery button{padding:10px;font-size:12px}}

#pfSceneSelect{display:none!important}
#pfSceneCards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:10px 0}
#pfSceneObjects #pfSceneCards .pf-scene-card{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;padding:6px;border:1px solid #67877d;border-radius:8px;background:#263d36;color:#eaf7f2;text-align:center;margin:0;min-height:94px}
#pfSceneObjects #pfSceneCards .pf-scene-card[aria-pressed=true]{background:#365b50;border-color:#54d6ba;box-shadow:inset 0 -3px #54d6ba}
.pf-scene-card img{width:100%;height:56px;object-fit:contain;border-radius:4px;background:#edf0ef}.pf-scene-card span{font:11px/1.3 system-ui;max-width:100%;overflow-wrap:anywhere}.pf-scene-card small{font-size:10px;color:#ffdb9a}.pf-scene-card small:empty{display:none}
#pfObjectFree{width:auto!important}#pfProductGallery .pf-gallery-delete{margin-top:7px;background:transparent;color:#963a36;border-color:#c9a19f;font-size:11px}
#pfProductGallery .pf-gallery-tools{margin-top:14px;display:flex;gap:8px}#pfProductGallery header{height:auto!important;min-height:0!important}#pfProductGallery header p{white-space:normal}
@media(max-width:420px){#pfSceneCards{grid-template-columns:repeat(3,minmax(0,1fr))}.pf-scene-card img{height:48px}#pfProductGallery .pf-gallery-delete{padding:8px 4px}}

#pfSceneObjects .pf-free-note{font:11px/1.45 system-ui;color:inherit;opacity:.8;margin:5px 0 10px}

#pfStudioOpening{border-top:1px solid #45606b;margin-top:14px;padding-top:10px}#pfStudioOpeningNote{font-size:12px;line-height:1.5;color:#b5c7ce}#pfStudioOpening .grid{display:grid;grid-template-columns:1fr;gap:3px}
