.album-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:16px}
.album-grid .album-item{position:relative;aspect-ratio:1;width:100%;height:auto;min-width:0;min-height:0;padding:0;overflow:hidden;border:2px solid transparent;border-radius:6px;background:var(--raised)}
.album-grid .album-item img{width:100%;height:100%;min-height:0;aspect-ratio:1;object-fit:cover}
.album-grid .album-item.selected{border-color:var(--focus);box-shadow:none}
.album-grid .album-item .material-selection-mark{position:absolute;inset:6px 6px auto auto;display:grid;place-items:center;width:21px;height:21px;padding:0;border:1.5px solid #fff;border-radius:50%;background:#1118;color:#fff;font-size:11px;line-height:1;font-weight:600}
.album-grid .album-item.selected .material-selection-mark{background:var(--action);color:var(--on-action);border-color:var(--action)}
.album-page .title{font-size:28px}.album-page .album-status{font-size:13px;color:var(--ink);margin-top:18px}
.scene-materials{margin-top:12px;min-width:0}
.material-summary{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;font-size:11px;color:var(--muted)}
.scene-material-strip{display:flex;align-items:center;gap:8px;overflow-x:auto;padding:2px 0 5px;scrollbar-width:thin}
.scene-material-strip .material-preview,.scene-material-strip .material-add{display:grid;place-items:center;flex:0 0 60px;width:60px;height:60px;min-width:60px;min-height:60px;padding:0;border:1px solid var(--line);border-radius:6px;overflow:hidden;background:transparent;color:var(--muted)}
.scene-material-strip .material-preview img{width:100%;height:100%;object-fit:cover}
.scene-material-strip .material-add{border-style:dashed}
.scene-material-strip .material-add .cp-icon{width:18px;height:18px}
.scene-materials .material-use{display:block;font-size:11px;line-height:1.6;color:var(--muted);margin-top:3px}
#materialPicker{width:min(430px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);box-shadow:0 20px 60px #0005;font-family:var(--cp-ui-font);letter-spacing:0;overflow:hidden}
#materialPicker[open]{display:flex;flex-direction:column}
.material-picker-heading{display:flex;align-items:center;justify-content:space-between;flex:none;padding:18px 18px 12px;border-bottom:1px solid var(--line)}
.material-picker-heading small{font-size:12px;color:var(--muted)}
#materialPicker .material-picker-heading h2{margin:3px 0 0;font-size:20px;line-height:1.4;font-weight:500}
.material-picker-heading [data-material-close]{display:grid;place-items:center;width:28px;height:28px;min-width:28px;min-height:28px;padding:0;border-radius:4px}
.material-picker-heading [data-material-close] .cp-icon{width:16px;height:16px}
.material-picker-content{overflow:auto;min-height:0;padding:16px 18px 24px;overscroll-behavior:contain}
.material-album-label{font-size:13px;color:var(--muted)}
.material-picker-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;flex:none;gap:8px;padding:12px 18px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--surface)}
.material-picked-count{font-size:12px;color:var(--muted)}
.material-picker-actions{display:flex;align-items:center;gap:8px}
.material-picker-actions button{font-size:13px;padding:8px 14px;min-height:40px;border-radius:6px}
.material-picker-actions [data-material-save]{background:var(--action);color:var(--on-action)}
.material-picker-error{flex:0 0 100%;font-size:12px;color:var(--ink);line-height:1.6}
.material-picker-error:empty{display:none}
.resume-card>.material-cover-empty{flex:0 0 32%;display:grid;place-items:center;color:var(--muted);background:var(--raised)}
@media(hover:hover){.material-add:hover,.material-picker-heading button:hover{background:var(--raised)}}
