#memory-dialog,#memory-photo-dialog{position:fixed;inset:auto;top:calc(var(--memory-top,0px) + var(--memory-height,100dvh)/2);left:calc(var(--memory-left,0px) + var(--memory-width,100vw)/2);transform:translate(-50%,-50%);margin:0;width:min(960px,calc(var(--memory-width,100vw) - 20px));height:min(850px,calc(var(--memory-height,100dvh) - 24px));max-width:none;max-height:none;padding:0;border:1px solid #c4a38c;border-radius:20px;background:#fff7ee;color:#72544a;overflow:hidden}.memory-shell{display:flex;flex-direction:column;height:100%;min-height:0}.memory-header{margin:0;display:flex;align-items:center;justify-content:space-between;padding:10px 16px;background:#f1ded0;flex-shrink:0}.memory-header h2{font-size:17px;margin:0}.memory-header button{font-size:24px}#memory-tools{display:flex;gap:8px;padding:10px 14px;flex-shrink:0}#memory-tools button{flex:1;font-size:13px}#memory-status{margin:8px 14px;padding:10px 12px;background:#f0e0cc;border-radius:10px;font-size:13px;flex-shrink:0;max-height:20%;overflow:auto}#memory-status:empty{display:none}#memory-status[data-kind=error]{background:#fbe0d8;color:#8b4839}#memory-status[data-kind=success]{background:#e5efdf;color:#426444}#memory-map-stage{flex:1;min-height:0;position:relative}#memory-map{height:100%;width:100%;background:#e8e4da}#memory-map .leaflet-tile-pane{filter:saturate(.5) sepia(.1)}#memory-map .leaflet-control-attribution{font-size:10px}#memory-tile-status{position:absolute;top:10px;left:10px;right:10px;z-index:500;background:#fff8edec;padding:8px;font-size:12px}#memory-wizard{min-height:0;overflow:auto;padding:10px 16px;overscroll-behavior:contain;scroll-padding:16px}#memory-step{font-size:13px;color:#926c59}#memory-step:focus{outline:none}.memory-picker{display:block;position:relative;padding:30px 10px;text-align:center;border:1px dashed #bb8d78;border-radius:15px;background:#efdacf;overflow:hidden}.memory-picker input{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;cursor:pointer}.memory-picker:focus-within{outline:2px solid #936e59}#memory-choices button{display:block;width:100%;margin-top:8px;text-align:left;min-height:44px;font-size:14px}#memory-location{font-size:13px}#memory-actions{display:flex;gap:8px;flex-shrink:0;padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));border-top:1px solid #d7bbaa;background:#fff8ef}#memory-actions button{margin:0;font-size:14px}#memory-next{flex:1;width:auto}.memory-provider{font-size:11px;margin:0;padding:7px 12px;text-align:center;flex-shrink:0;color:#846a5c}#memory-dialog[data-step="1"] #memory-map-stage,#memory-dialog[data-step="3"] #memory-map-stage{display:none}#memory-dialog[data-step="1"] #memory-wizard,#memory-dialog[data-step="3"] #memory-wizard{flex:1}#memory-dialog[data-step="2"] #memory-wizard{flex:0 1 auto;max-height:53%}#memory-dialog[data-step="2"] #memory-map-stage{min-height:110px}.memory-pin{width:54px;height:58px;padding:4px;background:#fff7e9;border:1px solid #b88e78;border-radius:9px;box-shadow:0 3px 7px #5f433d40;position:relative}.memory-pin img{width:44px;height:46px;object-fit:cover;border-radius:5px}.memory-pin span{position:absolute;right:-5px;top:-7px;background:#95695b;color:white;padding:2px 6px;border-radius:12px}.memory-gallery{width:210px;max-height:300px;overflow:auto}.memory-gallery article+article{border-top:1px solid #d6bda6;padding-top:12px;margin-top:12px}.memory-gallery img{width:100%;max-height:150px;object-fit:contain}.memory-gallery button{font-size:12px}.memory-gallery article>button:first-child{width:100%;padding:0;border:0;background:#eee1d3}.memory-gallery p{font-size:13px;overflow-wrap:anywhere}#memory-photo-dialog{background:#332721}#memory-photo-close{position:absolute;right:10px;top:10px}#memory-full-image{width:100%;height:100%;object-fit:contain}#memory-pagination{padding:0 12px;flex-shrink:0}#memory-pagination:has(button:not([hidden])){padding:8px 12px}@media(max-width:600px){#memory-dialog{width:calc(var(--memory-width,100vw) - 16px)}.memory-provider{font-size:10px}#memory-dialog[data-step="2"] #memory-wizard{max-height:54%}#memory-status{padding:8px 10px;font-size:12px}#memory-choices button{margin-top:6px}.memory-header{padding:8px 12px}}
