/* Shared compact geometry for the three collection dialogs. Desktop is unchanged. */
@media(max-width:760px), (max-height:500px) and (pointer:coarse){
 dialog.wolf-anniversary-panel,dialog.wolf-birthday,dialog.wolf-memories-panel{
  box-sizing:border-box;position:fixed;inset:0;margin:auto;
  width:min(620px,calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right)));
  max-width:calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right));
  height:min(78dvh,640px);max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  padding:18px;border-width:1px;border-radius:18px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;font:inherit;line-height:1.65;
 }
 dialog.wolf-anniversary-panel>header,dialog.wolf-birthday>header,dialog.wolf-memories-panel>.memory-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
 dialog.wolf-anniversary-panel>header h2,dialog.wolf-birthday>header h2,dialog.wolf-memories-panel>.memory-heading h2{font-size:21px;line-height:1.3;margin:0;min-width:0;overflow-wrap:anywhere}
 dialog.wolf-anniversary-panel>header button,dialog.wolf-birthday>header button,dialog.wolf-memories-panel>.memory-heading button{min-height:44px;min-width:44px;flex-shrink:0;margin-top:0}
}

/* The three collection ENTRY buttons share their own geometry and typography. */
#wolf-collection-memories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;max-width:660px;margin:16px 0;box-sizing:border-box}
#wolf-collection-memories>#wolf-anniversary,#wolf-collection-memories>#wolf-memories,#wolf-collection-memories>#wolf-birthday-wishes{
 appearance:none;-webkit-appearance:none;box-sizing:border-box;display:flex;align-items:center;justify-content:center;
 width:100%;min-width:0;height:44px;min-height:44px;max-height:44px;margin:0;padding:4px 6px;
 font-family:inherit;font-size:12px;font-weight:500;line-height:1.35;letter-spacing:0;text-align:center;white-space:normal;overflow-wrap:anywhere;
 border:1px solid #b9c7bc;border-radius:12px;background:#f6f8f3;color:#354d3b;box-shadow:none;cursor:pointer;
}
#wolf-collection-memories>button:focus-visible{outline:2px solid #315a43;outline-offset:3px}
