
#selectionPoolRoot .sp-image-preview{display:block;flex-shrink:0;width:48px;height:48px;padding:0;border:0;background:white;cursor:zoom-in;border-radius:7px}
#selectionPoolRoot .sp-image-preview img{display:block;width:48px;height:48px;object-fit:contain}
.sp-gallery{box-sizing:border-box;width:min(1100px,calc(100vw - 40px));height:min(850px,calc(100dvh - 40px));max-width:none;max-height:none;padding:0;border:1px solid #dde3eb;border-radius:14px;background:#fff;color:#263344;box-shadow:0 24px 90px #0005;overflow:hidden;font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}
.sp-gallery[open]{display:flex;flex-direction:column}
.sp-gallery::backdrop{background:rgba(15,23,42,.72)}
.sp-gallery header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 20px;border-bottom:1px solid #e9edf2;flex-shrink:0}
.sp-gallery header>div{min-width:0}.sp-gallery strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px}
.sp-gallery-count{font-size:13px;color:#7b8492}
.sp-gallery button{font:inherit;cursor:pointer;border:0;border-radius:8px;background:#f1f4f8;color:#526078}.sp-gallery button:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}
.sp-gallery [data-gallery-close]{width:36px;height:36px;font-size:26px;flex-shrink:0}
.sp-gallery-stage{display:flex;align-items:center;gap:14px;padding:16px;flex:1;min-height:0;background:#fafbfc}
.sp-gallery-stage>button{flex-shrink:0;width:40px;height:56px;font-size:36px}.sp-gallery button:disabled{opacity:.25;cursor:default}
.sp-gallery-canvas{flex:1;min-width:0;height:100%;display:flex;align-items:center;justify-content:center}
.sp-gallery-canvas>img{display:block;width:100%;height:100%;object-fit:contain}.sp-gallery-error{color:#77808e;text-align:center}
.sp-gallery nav{display:flex;justify-content:flex-start;gap:10px;overflow:auto;flex-shrink:0;padding:12px 20px;border-top:1px solid #e9edf2}
.sp-gallery nav button{flex-shrink:0;width:64px;height:64px;padding:3px;background:white;border:2px solid transparent}.sp-gallery nav button[aria-current=true]{border-color:#3b82f6;background:#eff6ff}.sp-gallery nav img{width:100%;height:100%;object-fit:contain}
@media(max-width:600px){.sp-gallery{width:calc(100vw - 16px);height:calc(100dvh - 24px)}.sp-gallery-stage{padding:8px;gap:5px}.sp-gallery-stage>button{width:30px}.sp-gallery header{padding:10px 14px}}
