.tabbar{grid-template-columns:repeat(5,minmax(0,1fr));padding-left:8px;padding-right:8px}
.tabbar button{font-size:.75rem}
.app-share-row{justify-content:space-between;align-items:center;gap:10px}
.offline-status{font-size:.75rem;color:#766c79;line-height:1.4;max-width:50%}
.offline-status[data-ready=true]{color:#28785e}
.album-heart{font-size:2.4rem;color:#a43c6b}
.album-add{background:#f3dbe7;color:#8c2856;border-color:#e7c8d8;margin:6px 0 0;min-height:50px}
.album-status{font-size:.85rem;color:var(--muted);line-height:1.5;min-height:1.5em}
.album-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}
.memory-card{min-width:0;background:white;border:1px solid var(--line);border-radius:18px;overflow:hidden}
.memory-media{background:#f0e8ef;min-height:180px;display:grid;align-content:center;position:relative}
.memory-media img,.memory-media video{width:100%;height:240px;display:block;object-fit:contain;background:#f0e8ef}
.memory-media a{display:block}
.memory-media .media-error{padding:18px;font-size:.85rem;line-height:1.5;color:#69546c}
.memory-copy{padding:14px}
.memory-copy time{font-size:.8rem;color:var(--muted)}
.memory-copy p{font-size:.95rem;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 14px}
.memory-tools{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.memory-tools button,.album-pages button{min-height:44px;background:#faf5f9;color:#713b59;border:1px solid var(--line);padding:8px 10px;border-radius:10px;font-size:.8rem}
.memory-tools button:first-child{flex-basis:100%}
.memory-tools button:disabled,.album-pages button:disabled{opacity:.5}
.album-pages{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:.85rem;margin:20px 0}
.album-pages[hidden]{display:none}
.album-help{margin-top:24px}
.album-help p{font-size:.85rem;color:var(--muted)}
.album-empty{grid-column:1/-1;padding:36px 22px;border:1px dashed #dbc6d5;border-radius:20px;text-align:center;background:#fff;color:#766c79;line-height:1.5}
.album-empty strong{display:block;color:#713b59;font-size:1.1rem;margin:8px 0}
.memory-close{border:0;background:#eee5eb;color:#713b59;border-radius:50%;width:40px;height:40px;flex-shrink:0;font-size:1.2rem}
#memoryFiles{font-size:16px;padding:12px;max-width:100%}
#memoryFilesLabel[hidden]{display:none}
#memoryDialog button:disabled{opacity:.6;cursor:wait}
.toast.show{pointer-events:auto}
@media(max-width:520px){.album-grid{grid-template-columns:minmax(0,1fr)}.memory-media img,.memory-media video{height:auto;max-height:420px;min-height:160px}.memory-copy{padding:16px}.memory-tools button:first-child{flex-basis:auto;flex:1}}
