/* 相册：全部 / 我存的 / 他存的，相簿，照片按日期，看大图，最近删除 */
.alb { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 18px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 18px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px; border-radius: 16px; flex: none; }
.seg button { height: 36px; border-radius: 12px; font-size: 13.5px; color: var(--ink-2); text-align: center; }
.seg button .mono { font-size: 11px; color: var(--ink-3); }
.seg button[aria-selected="true"] { background: var(--paper); box-shadow: var(--raise-s); color: var(--ink); font-weight: 700; }
.sec-label { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 500; letter-spacing: .2em; color: var(--ink-3); }
.sec-label button { height: 30px; font-size: 13px; letter-spacing: 0; color: var(--accent-ink); display: inline-flex; align-items: center; gap: 3px; }
.sec-label button svg { width: 12px; height: 12px; }
.albums { display: flex; gap: 12px; overflow-x: auto; margin: 0 -18px -18px; padding: 4px 18px 32px; scrollbar-width: none; }
.albums::-webkit-scrollbar { display: none; }
.album { width: 116px; flex: none; border-radius: 16px; padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.album.on { outline: 2px solid var(--accent); outline-offset: -2px; }
.album .cov { position: relative; height: 96px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.album .cov .pr { width: 78px; height: 70px; }
.album:nth-child(3n+1) .pr { transform: rotate(-3deg); }
.album:nth-child(3n+2) .pr { transform: rotate(2deg); }
.album:nth-child(3n) .pr { transform: rotate(-1deg); }
.album b { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album small { font-size: 11px; color: var(--ink-3); }

/* 相片：白边 + 投影，嵌在压凹的格子里 */
.pr { border-radius: 2px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--well-2);
  box-shadow: 0 0 0 3px #FBFAF7, -1px -1px 0 3px rgba(var(--hi), .9), calc(var(--lx) * 1px) 2px 4px 3px rgba(var(--sh), .16); }
.pr img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pr svg { width: 20px; height: 20px; color: rgba(43, 42, 39, .32); }
.day-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: -6px; }
.day-h b { font-family: var(--font-serif); font-size: 17px; font-weight: 700; }
.day-h .mono { font-size: 11px; color: var(--ink-3); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cell { position: relative; aspect-ratio: 1; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.cell .pr { width: 80%; height: 80%; }
.who { position: absolute; right: 5px; bottom: 5px; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--ink-2); background: var(--paper); box-shadow: var(--raise-s); }
.who.him { color: var(--accent-ink); }
.alb-empty { padding: 40px 0; text-align: center; font-size: 13px; color: var(--ink-3); }
.trash-link { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; color: var(--ink-2); text-align: left; width: 100%; }
.trash-link svg { width: 18px; height: 18px; flex: none; }
.trash-link .t { display: flex; flex-direction: column; flex: 1; }
.trash-link .t span { font-size: 13.5px; }
.trash-link .t small { font-size: 11.5px; color: var(--ink-3); }

/* 看大图（盖在相册上的一整张纸） */
.ph { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; animation: rise .3s var(--ease-paper); }
.ph-stage { position: relative; margin: 14px 18px 0; flex: 1; min-height: 240px; max-height: 420px; border-radius: 22px; display: flex; align-items: center; justify-content: center; touch-action: pan-y;
  background: var(--well); box-shadow: inset calc(var(--lx) * 4px) calc(var(--ly) * 6px) 12px rgba(var(--sh), .2), inset 1px 2px 2px rgba(var(--sh), .16), inset calc(var(--lx) * -2px) calc(var(--ly) * -2px) 0 rgba(var(--hi), .95); }
.ph-stage .pr { width: 74%; height: 82%; transform: rotate(-1.5deg); transition: transform .3s var(--ease-paper);
  box-shadow: 0 0 0 8px #FBFAF7, -1px -1px 0 8px rgba(var(--hi), .9), calc(var(--lx) * 2px) 5px 10px 8px rgba(var(--sh), .18), calc(var(--lx) * 8px) 18px 30px 8px rgba(var(--sh), .12); }
.ph-stage .pr svg { width: 40px; height: 40px; }
.ph-info { margin: 22px 18px 0; border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; flex: none; }
.ph-who { display: flex; align-items: center; gap: 10px; }
.ph-who .who { position: static; width: 28px; height: 28px; font-size: 12px; }
.ph-who .t { display: flex; flex-direction: column; }
.ph-who .t b { font-size: 13.5px; font-weight: 500; }
.ph-who .t small { font-size: 11.5px; color: var(--ink-3); }
.ph-who .tag { margin-left: auto; }
.ph-note { display: flex; gap: 10px; }
.ph-note > span { font-size: 12px; color: var(--ink-3); flex: none; padding-top: 2px; }
.ph-note p { margin: 0; font-family: var(--font-serif); font-size: 15px; font-weight: 600; line-height: 1.6; }
.ph-mine { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 12px; }
.ph-mine > span { font-size: 12px; color: var(--ink-3); flex: none; }
.ph-mine input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 14px; }
.ph-acts { padding: 18px 22px calc(24px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; flex: none; }
.ph-acts label { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); }
.ph-acts button, .ph-acts a { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.ph-acts svg { width: 20px; height: 20px; }
.ph-acts .del { color: var(--err-ink); }
