.dayPlaceEdit{margin-left:auto;border:1px solid #8887;background:transparent;color:inherit;border-radius:9px;padding:7px 11px;cursor:pointer;font-size:12px}
.dayPlaceMemo{margin:5px 0 16px;color:#bfc2c9;white-space:pre-wrap;font-size:14px}
.placeSections{display:grid;gap:25px}.placeGroup{min-width:0}.placeHeading{display:flex;align-items:center;gap:12px;margin:8px 0}.placeTitle{font-size:18px;font-weight:700;margin:0}.placeDescription{margin:0 0 10px;color:#bfc2c9;white-space:pre-wrap;font-size:13px}
.placeAssign{position:absolute;bottom:8px;left:8px;z-index:8;max-width:calc(100% - 16px);padding:5px 8px;background:#151515eb;color:white;border:1px solid #777;border-radius:6px;font-size:12px}
.placesModal{position:fixed;inset:0;z-index:2147483646;background:#000b;display:flex;align-items:center;justify-content:center;padding:16px;color:#fff}
.placesPanel{background:#24262b;border:1px solid #777;border-radius:14px;padding:20px;width:min(650px,100%);max-height:90dvh;overflow:auto;box-shadow:0 18px 50px #0008}
.placesPanel header{display:flex;justify-content:space-between;align-items:center;gap:12px}.placesPanel h3{margin:0 0 15px;font-size:19px}
.placesPanel label{display:grid;gap:7px}.placesPanel input,.placesPanel textarea{width:100%;min-width:0;box-sizing:border-box;padding:10px;border-radius:8px;border:1px solid #666;background:#111;color:white;font:inherit}
.placesRows{display:grid;gap:10px;margin:14px 0}.placesRow{display:grid;grid-template-columns:1fr 1fr auto auto auto;gap:5px;align-items:center}
.placesPanel button{cursor:pointer;border:1px solid #777;background:#393c42;color:white;border-radius:7px;padding:8px}
.placesButtons{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap}.placesError{color:#ff9b9b}
@media(max-width:650px){.placesRow{grid-template-columns:1fr 1fr auto auto auto}.placesRow input{font-size:12px;padding:7px}.placesRow button{padding:6px 4px}}

/* v11.14a: touch-friendly place dropdown above thumbnail */
.mediaWrap .placeAssign{z-index:40;pointer-events:auto;touch-action:manipulation;min-height:36px;max-width:calc(100% - 16px);font-size:13px;appearance:auto;-webkit-appearance:menulist}
.mediaWrap .mediaCard{z-index:0}

/* v11.14c: opening bulk-place selection must not scroll the page upward. */
#placesBatchPanel:not([hidden]){
 position:fixed!important;
 inset:auto!important;
 left:50%!important;
 top:50%!important;
 transform:translate(-50%,-50%)!important;
 z-index:2147483645!important;
 width:min(580px,calc(100vw - 32px))!important;
 max-height:calc(100dvh - 40px)!important;
 overflow:auto!important;
 box-sizing:border-box!important;
 box-shadow:0 0 0 100vmax rgba(0,0,0,.65),0 16px 60px rgba(0,0,0,.65)!important;
}

/* v11.15 selection and layout consistency */
body:has(#selectionToggle[aria-pressed="true"]) .placeAssign{display:none!important}
.placeSections,.placeGroup{overflow-anchor:none}

/* v11.15a: selection cannot alter thumbnail geometry or auto-scroll anchors */
#gallery .mediaWrap,#gallery .placeGroup,#gallery .placeSections{overflow-anchor:none}
#gallery .cardCheckbox{touch-action:manipulation}

/* v11.15b: restore browser scroll anchoring in date/place groups */
#gallery .mediaWrap,#gallery .placeGroup,#gallery .placeSections,.placeSections,.placeGroup{overflow-anchor:auto!important}
