.history-heading{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.history-heading>div{flex:1 1 320px}.history-heading h1{margin-bottom:.45rem}.history-list{display:grid;gap:.8rem}.history-card{display:flex;gap:1rem;align-items:flex-start;margin:0}.history-cover{flex:0 0 80px;aspect-ratio:2/3;display:grid;place-items:center;border-radius:10px;overflow:hidden;background:var(--surface,#1d2530);font-size:2rem}.history-cover img{width:100%;height:100%;object-fit:cover}.history-details{min-width:0;flex:1}.history-details h2{font-size:1.1rem;margin:.1rem 0 .45rem;overflow-wrap:anywhere}.history-details p{margin:.35rem 0;overflow-wrap:anywhere}.history-details time{font-size:.8rem;color:var(--muted,#a4adba)}.history-actions{margin-top:.7rem;flex-wrap:wrap}.history-pagination{display:flex;align-items:center;justify-content:center;gap:1rem;flex-wrap:wrap;margin:1.5rem 0}
.profile-avatar-wrap{position:relative;flex:none}
.profile-identity h1{min-width:0;max-width:100%;overflow-wrap:anywhere}
.profile-edit-pencil{position:absolute;inset-block-end:0;inset-inline-end:0;width:34px;min-height:34px;padding:0;border-radius:50%;border:2px solid var(--panel);box-shadow:0 2px 8px #0007}
.profile-edit-pencil:hover{transform:none}
.profile-edit-pencil::before{content:"";position:absolute;inset:-5px}
.profile-edit-dialog{width:min(430px,calc(100% - 24px));max-height:calc(100% - 24px);padding:clamp(16px,4vw,24px);color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:16px;overscroll-behavior:contain;overflow:auto}
.profile-edit-dialog::backdrop{background:#050910b8}
.profile-edit-dialog form{display:grid;gap:14px}
.profile-edit-dialog h2,.profile-edit-dialog p{margin:0}
.profile-edit-name{display:grid;gap:6px}
.profile-edit-name input{font-size:16px}
.profile-edit-photo{display:flex;align-items:center;gap:14px}
.profile-edit-photo .profile-avatar{width:72px;height:72px;font-size:34px}
.profile-edit-actions{display:flex;flex-wrap:wrap;gap:8px}
.profile-edit-actions button{min-height:44px}
.profile-edit-quote{display:grid;gap:4px;border-top:1px solid var(--line);padding-top:12px}
.profile-edit-quote:has([data-profile-price]:empty),.profile-edit-dialog [role=status]:empty{display:none}
.profile-edit-quote [data-insufficient-gems]{color:#ffc0c6}
.profile-edit-footer{justify-content:flex-end}
.profile-edit-footer button:disabled{cursor:default}
@media(max-width:480px){.history-card{gap:.75rem;padding:.8rem}.history-cover{flex-basis:64px}.history-details h2{font-size:1rem}.history-actions .button,.history-actions button{min-height:44px}.history-actions{align-items:stretch}.history-pagination{gap:.5rem}}
