.profile-gallery-panel{margin-top:20px;border:1px solid var(--line);border-radius:14px;padding:18px;background:var(--panel);color:var(--text-primary);min-width:0}.profile-gallery-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.profile-gallery-header>div{min-width:0}.profile-gallery-header h3{margin:0 0 6px;font-size:18px}.profile-gallery-header p{margin:0 0 6px}.profile-gallery-header p,.profile-gallery-header small{color:var(--text-secondary);overflow-wrap:anywhere;line-height:1.5}.profile-gallery-count{white-space:nowrap;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;border-radius:7px;padding:6px 9px;color:var(--text-secondary);background:var(--canvas);font-size:12px}.profile-gallery-upload{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:16px}.profile-gallery-upload span{color:var(--text-secondary);max-width:100%}.profile-gallery-panel button,.profile-gallery-panel select{min-height:44px}.profile-gallery-panel button:disabled,.profile-gallery-panel select:disabled{cursor:not-allowed}.profile-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));grid-gap:14px;gap:14px;margin-top:16px}.profile-gallery-card{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.profile-gallery-image{aspect-ratio:16/10;overflow:hidden;background:var(--canvas);display:grid;place-items:center;color:var(--text-secondary);padding:0}.profile-gallery-image img{width:100%;height:100%;object-fit:contain;display:block}.profile-gallery-image>div{display:grid;justify-items:center;grid-gap:8px;gap:8px;padding:12px}.profile-gallery-image span{padding:12px;text-align:center}.profile-gallery-name{padding:10px 12px 0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-weight:600}.profile-gallery-controls{padding:12px;display:flex;flex-direction:column;gap:10px}.profile-gallery-controls label{display:grid;grid-gap:5px;gap:5px}.profile-gallery-controls label span{color:var(--text-secondary);font-size:12px;font-weight:600}.profile-gallery-controls select{width:100%;background:var(--panel);color:var(--text-primary);border:1px solid var(--line)}.profile-gallery-remove{color:var(--danger);border:1px solid var(--line);background:var(--panel)}.profile-gallery-remove:hover:not(:disabled){color:#fff;background:var(--danger)}.profile-gallery-confirm p{margin:0 0 8px}.profile-gallery-confirm{display:flex;gap:8px;flex-wrap:wrap}.profile-gallery-confirm p{width:100%}.profile-gallery-error{color:var(--danger);overflow-wrap:anywhere}.profile-gallery-error button{margin:8px 0 0 8px}.profile-gallery-empty{padding:18px;margin:16px 0 0;border:1px dashed var(--line);border-radius:10px;background:var(--canvas);color:var(--text-secondary)}.profile-gallery-public-label{display:block;padding:12px;color:var(--text-secondary)}@media (max-width:600px){.profile-gallery-panel{padding:14px}.profile-gallery-header{flex-wrap:wrap;gap:10px}.profile-gallery-header>div{flex:1 1 200px}.profile-gallery-count{flex-shrink:0}.profile-gallery-grid{grid-template-columns:minmax(0,1fr)}.profile-gallery-upload{align-items:stretch}.profile-gallery-upload button{flex:1 1}}