#photoLibrary{display:none}
body.photo-library-active.editor-v45.has-media #siteAppRoot .app-main{grid-template-rows:48px minmax(0,1fr) 116px!important}
body.photo-library-active.editor-v45.has-media #siteAppRoot #photoLibrary{display:flex;grid-column:1/-1;grid-row:3;min-width:0;min-height:0;flex-direction:column;border:1px solid #dce3e7;border-radius:12px;background:#fff;overflow:hidden}
#photoLibrary[hidden]{display:none!important}
.photo-library-bar{display:flex;align-items:center;gap:10px;padding:6px 10px;flex-shrink:0;min-height:36px}
.photo-library-title{font-size:13px;color:#23342d;white-space:nowrap}
.photo-library-hint{font-size:12px;color:#6b777f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.photo-library-bar button{height:28px;min-width:44px;border:1px solid #d5ded9;border-radius:7px;background:#f6f9f7;color:#284b39;padding:0 9px;font:600 12px system-ui;white-space:nowrap;cursor:pointer}
.photo-library-add{margin-left:auto}
.photo-library-list{display:flex;gap:7px;padding:2px 10px 4px;min-height:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;touch-action:pan-x;flex:1}
.photo-library-item{display:flex;flex:0 0 178px;min-width:0;align-items:center;gap:8px;border:1px solid #dce3e6;border-radius:8px;padding:4px;background:#f7f9fa;text-align:left;color:#28333b;cursor:pointer}
.photo-library-item[aria-selected=true]{border:2px solid #34664c;background:#edf5ef;padding:3px}
.photo-library-item:active,.photo-library-bar button:active{background:#dcebe1}
.photo-library-item:focus-visible,.photo-library-bar button:focus-visible{outline:2px solid #c56a3c;outline-offset:1px}
.photo-library-item img,.photo-library-placeholder{width:38px;height:44px;object-fit:contain;background:#e6ece9;border-radius:4px;flex:none}
.photo-library-placeholder{display:grid;place-items:center;font-size:14px;color:#6c8275}
.photo-library-label{display:flex;flex-direction:column;gap:3px;min-width:0}
.photo-library-label b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}
.photo-library-label small{font-size:11px;color:#65756c;white-space:nowrap}
.photo-library-bottom{display:flex;gap:8px;align-items:center;min-height:16px;padding:0 10px 3px;font-size:10px;color:#737f78;flex:none}
.photo-library-status{color:#a1432e}
#photoLibrary button:disabled{opacity:.55;cursor:wait}
.photo-library-failed-remove{flex:0 0 44px;border:1px solid #edd0c8;background:#fff3ef;border-radius:8px;color:#a1432e;font-size:20px;cursor:pointer}
@media(max-width:759px){
 body.photo-library-active.editor-v45.has-media #siteAppRoot .app-main{grid-template-rows:42px minmax(110px,.78fr) minmax(0,1.22fr) 99px!important}
 body.photo-library-active.editor-v45.has-media #siteAppRoot #photoLibrary{grid-row:4;border-radius:10px}
 .photo-library-bar{padding:4px 7px;gap:6px;min-height:32px}.photo-library-hint{display:none}.photo-library-bar button{height:28px;font-size:11px;padding:0 7px}
 .photo-library-list{padding:1px 7px 3px;gap:5px}.photo-library-item{flex-basis:145px}.photo-library-item img,.photo-library-placeholder{height:35px;width:31px}
 .photo-library-bottom{font-size:10px;padding:0 7px 2px}.photo-library-note{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body.photo-library-active.editor-keyboard-open.editor-v45.has-media #siteAppRoot .app-main{grid-template-rows:36px minmax(45px,.5fr) minmax(0,1.5fr) 76px!important}
 body.editor-keyboard-open .photo-library-bottom{display:none}
}
@media(min-width:600px) and (max-height:520px){
 body.photo-library-active.editor-v45.has-media #siteAppRoot .app-main{grid-template-columns:minmax(0,1fr) minmax(290px,45%)!important;grid-template-rows:38px minmax(0,1fr) 84px!important}
 body.photo-library-active.editor-v45.has-media #siteAppRoot .editor-card{grid-column:2!important;grid-row:2!important}
 body.photo-library-active.editor-v45.has-media #siteAppRoot #photoLibrary{grid-row:3}
 .photo-library-bottom{display:none}.photo-library-item img,.photo-library-placeholder{height:31px}
}
