.memory-share-dialog{width:min(560px,calc(100vw - 40px));max-height:90dvh;overflow:auto;border:1px solid #aebfc3;border-radius:18px;padding:24px;background:#f8f5ee;color:#183846;font-family:system-ui,sans-serif;box-sizing:border-box;}
.memory-share-dialog::backdrop{background:rgba(8,18,22,.76);}
.memory-share-dialog h2{margin:0 0 12px;}.memory-share-dialog p{font-size:14px;line-height:1.6;}.memory-share-dialog img{display:block;width:100%;height:auto;margin-bottom:18px;}.memory-share-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px;}.memory-share-actions button{padding:10px 14px;border:1px solid #aebfc3;border-radius:9px;background:#fffdf8;color:#183846;cursor:pointer;}.memory-share-actions button:disabled{opacity:.5;}
.memory-province-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;}
.memory-province-actions .memory-province-edit{margin-top:0;}
.memory-share-provinces{display:grid;gap:10px;margin:20px 0;max-height:42dvh;overflow:auto}
.memory-share-provinces label{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid #cbd4d4;border-radius:10px;background:#fffdf7;cursor:pointer}
.memory-share-provinces input{width:20px;height:20px;accent-color:#244957;flex:none}
.memory-share-provinces label:has(input:disabled){opacity:.55;cursor:default}
.memory-share-selection .memory-share-actions{flex-wrap:wrap}
.memory-shelf-share-actions{display:flex;gap:8px;flex-wrap:wrap;flex:none}
.memory-shelf-share-actions button,.memory-share-management-row button{padding:10px 14px;border:1px solid #b8c8cc;border-radius:10px;background:#fffdf7;color:#244957;font:600 13px sans-serif;cursor:pointer}
.memory-shelf-head{display:flex;gap:20px;justify-content:space-between;align-items:flex-start;padding-right:76px}
.memory-shelf-head>div:first-child{min-width:0}
.memory-share-management-row{padding:16px 0;border-bottom:1px solid #cbd4d4}.memory-share-management-row h3{margin:0;overflow-wrap:anywhere}.memory-share-management button:disabled{opacity:.5;cursor:wait}
@media(max-width:760px){.memory-shelf-head{flex-wrap:wrap;padding-right:60px}.memory-shelf-share-actions{width:100%;gap:8px}.memory-shelf-share-actions button{padding:9px 10px}}
