.library {width:min(100%,472px); min-height:100svh; padding:max(26px,env(safe-area-inset-top)) 16px max(82px,calc(env(safe-area-inset-bottom) + 58px))}
.library[data-tab=awards] {width:min(100%,516px)}
.library-heading h1 {margin:0; font-size:30px; line-height:1.2; letter-spacing:.08em}
.collection-count {margin:7px 0 0; color:#7b7384; font-size:11px; letter-spacing:.12em; font-variant-numeric:tabular-nums}
.library-nav {position:fixed; z-index:3; left:50%; bottom:max(12px,env(safe-area-inset-bottom)); transform:translateX(-50%); width:min(calc(100% - 32px),440px); display:flex; gap:6px; pointer-events:none}
.library-nav .tool-pill {pointer-events:auto; background:#f8f6efef; box-shadow:0 1px 4px #342b351c}
.scopes {display:inline-flex; padding:3px; margin:17px 0 13px; border:1px solid #221b2514; border-radius:18px; background:#fff; box-shadow:0 2px 6px #00000014}
.scopes button {height:28px; padding:0 14px; border-radius:14px; color:#7b7384; font-size:12px; letter-spacing:.1em}
.scopes button[aria-pressed=true] {background:#221b25; color:white; font-weight:750}
.filters {display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:9px; margin-bottom:18px}
.grade-filter {display:flex; align-items:center; gap:6px}
.grade-filter .chip {min-width:30px; height:27px; padding:0 9px; border-radius:15px; font-size:11px; box-shadow:0 2px 5px #261c3029,inset 0 1px 0 #fff8}
.grade-filter .chip[aria-pressed=true] {outline:2px solid var(--ink); outline-offset:2px}
.filter {display:flex; align-items:center; max-width:145px; gap:4px; padding:0 6px 0 8px; border:1px solid #69584429; border-radius:14px; background:#fffcf5a1}
.filter span {color:#82725e; font-size:10px; white-space:nowrap}
.filter select {min-width:0; max-width:100px; border:0; padding:4px 0; font-size:11px; color:var(--ink); background:transparent}
.album-grid {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px}
.album-cell {position:relative; overflow:hidden; min-width:0; text-align:left; border-radius:11px; display:flex; flex-direction:column; align-items:stretch; padding:6px; gap:6px; box-shadow:0 2px 0 #f6f3ec,0 3px 0 #c9c3b6,0 12px 16px -11px #2a1c1066,inset 1px 1.5px 0 #ffffff80}
.album-cell.locked {color:#999184; border:1px solid #d4cec3; background:var(--grain),linear-gradient(155deg,#ece8df,#ded9ce)}
.silhouette,.thumb {position:relative; width:100%; flex:none; overflow:hidden; border-radius:5px}
.silhouette {display:grid; place-items:center; background:radial-gradient(ellipse,#f6f3eb90,transparent 80%); border:1px solid #afa99c59}
.silhouette svg {width:70%; height:90%; align-self:end; color:#b7b1a69c}
.slot-no {font:600 9px/1.25 ui-monospace,Menlo,monospace; letter-spacing:.06em}
.locked>.slot-no {flex:1; min-height:37px; display:grid; align-content:center; padding:0 7px; background:#f5f1e680; border:1px solid #c7beae8c; border-radius:5px}
.owned {background:var(--slab)}
.thumb {background:#423a46; box-shadow:0 0 0 1.5px #1c161f,0 0 0 2.5px #ffffff8c}
.thumb .chip {position:absolute; right:4px; top:4px; font-size:10px; padding:1px 3px}
.thumb .slot-no {position:absolute; left:5px; bottom:4px; color:white; text-shadow:0 1px 2px #24152c}
.thumb svg {position:absolute; bottom:4px; right:4px; width:12px; height:12px; fill:#fa9db6; color:#fff}
.thumb-meta {display:block; flex:1; padding:6px 8px; background:var(--grain),linear-gradient(180deg,#fbf6ea,#f1e7d3); border-radius:5px; box-shadow:0 0 0 1.5px #1c161f,0 0 0 2.5px #ffffff8c}
.thumb-name,.thumb-meta small {display:block}
.thumb-name {font-size:14px; line-height:1.2}
.thumb-meta small {font-size:10px; color:#6d6264; margin-top:2px}
.no-cards {grid-column:1/-1; margin:3px 0; padding:48px 0; border:1px dashed #7d705c45; border-radius:12px; text-align:center; font-size:12px; color:var(--muted)}
.library[data-tab=awards] .library-heading {display:flex; align-items:center; gap:12px; margin-bottom:14px}
.library[data-tab=awards] h1 {font-size:26px; letter-spacing:.14em}
.library[data-tab=awards] .collection-count {margin:0; color:#8a5a1c; font-size:13px; font-weight:700}
.library[data-tab=awards] .library-heading::after {content:""; flex:1; height:1px; background:linear-gradient(90deg,#b98e4c,#b98e4c00)}
.trophy-list {display:flex; flex-direction:column; gap:8px}
.trophy {display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:16px; background:linear-gradient(180deg,#fdfbf6,#f4efe5); box-shadow:inset 0 0 0 1px #e4dccb,0 10px 18px -16px #3a2a1a8c}
.medal {display:grid; place-items:center; width:38px; height:38px; flex:none; color:#b7b2a8}
.medal svg {width:27px; height:27px; opacity:.65}
.trophy-copy {flex:1; min-width:0}
.trophy h2 {margin:0; font-size:14px; font-weight:750; letter-spacing:.1em}
.trophy p {margin:4px 0; font-size:11.5px; letter-spacing:.04em; color:#7b7384; line-height:1.3}
.trophy progress {display:block; appearance:none; width:100%; height:5px; overflow:hidden; border:none; border-radius:4px; background:#221b2514; color:#c99a45}
.trophy progress::-webkit-progress-bar {border-radius:4px; background:#221b2514}
.trophy progress::-webkit-progress-value {border-radius:4px; background:linear-gradient(90deg,#c9963c,#f0c860)}
.trophy progress::-moz-progress-bar {border-radius:4px; background:linear-gradient(90deg,#c9963c,#f0c860)}
.award-status {min-width:43px; display:grid; gap:3px; justify-items:end; font-size:10px; color:#8c837a}
.award-status b {font-size:12px; color:var(--ink); font-variant-numeric:tabular-nums}
.earned .medal {color:#b28636; filter:drop-shadow(0 2px 2px #8f6c293a)}
.earned .medal svg {opacity:1; fill:#f5dc8a}
.earned .trophy-copy p,.earned .award-status {color:#8a5a1c}
