.galleryDateTrigger{margin-left:auto;flex-shrink:0;min-width:65px;padding:7px 10px;border:1px solid #8e7955;border-radius:8px;background:#242522;color:#f6dab2;font-size:12px;cursor:pointer}
.galleryDateModal[hidden]{display:none!important}
.galleryDateModal{position:fixed;inset:0;z-index:8000;display:flex;align-items:center;justify-content:center;padding:18px}
.galleryDateShade{position:absolute;inset:0;background:#090a0dd9}
.galleryDatePanel{position:relative;box-sizing:border-box;width:min(100%,510px);max-height:90vh;overflow:auto;background:#181b21;border:1px solid #5d5850;border-radius:15px;color:#f7f5f0;padding:23px;box-shadow:0 18px 65px #0009}
.galleryDateTop{display:flex;justify-content:space-between;align-items:center;gap:12px}.galleryDateTop h2{font-size:21px;margin:0}
.galleryDateTop button{border:0;background:transparent;color:#fff;font-size:27px;padding:2px 8px;cursor:pointer}
.galleryDatePanel p{font-size:13px;color:#d6d2c9;line-height:1.6}
#galleryDateForm{display:grid;gap:11px}
#galleryDateForm label{display:grid;gap:5px;font-size:13px;color:#e3d8cc}
#galleryDateForm input{box-sizing:border-box;width:100%;min-height:42px;padding:9px 12px;border-radius:7px;border:1px solid #777;background:#222630;color:white;font-size:16px}
#galleryDateForm input[readonly]{opacity:.72}
#galleryDateForm .galleryDateWarning{color:#efcf9e}
.galleryDateButtons{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:4px}
.galleryDateButtons button{padding:10px 13px;min-height:41px;border:1px solid #777;border-radius:8px;background:#2b2f36;color:white;cursor:pointer}
.galleryDateButtons button:last-child{background:#b69a6d;color:#181614;font-weight:bold}
.galleryDateButtons button:disabled{opacity:.45;cursor:default}
@media(max-width:680px){.galleryDateTrigger{padding:6px 8px;font-size:11px}.galleryDatePanel{padding:18px}.galleryDateButtons button{flex:1 1 auto}}

/* v11.15c safety: do not offer date-wide edit while multi-select is active. */
body.galleryMultiSelecting .galleryDateTrigger{display:none!important}
