.profile-html, .profile-html body { height: auto; min-height: 100%; overflow-x: hidden; overflow-y: auto; }
.profile-page { position: relative; isolation: isolate; min-height: 100svh; color: #f5eedc; }
.profile-page [hidden] { display: none !important; }
.profile-page .ambient-background { position: fixed; inset: 0; z-index: -1; }
.profile-page .site-header { position: relative; }
.profile-page :is(button,a,input,textarea):focus-visible { outline: 2px solid #f5eedc; outline-offset: 4px; }
.profile-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.profile-main { width: min(100%, 1440px); margin: 0 auto; padding: 18px var(--side) 80px; }
.profile-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid #f5eedc40; }
.profile-heading h1 { margin: 0; font-size: 36px; font-weight: 600; line-height: 1.1; }
.profile-heading a { color: inherit; font-size: 13px; text-underline-offset: 4px; }
.profile-layout { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); align-items: start; gap: clamp(32px, 6vw, 84px); padding-top: 32px; }
.profile-details, .profile-wishlist { min-width: 0; }
.profile-section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid #f5eedc40; }
.profile-section-heading h2 { margin: 0; font-size: 21px; font-weight: 600; }
.profile-section-heading p { margin: 7px 0 0; color: #d7cfb9; font-size: 13px; line-height: 1.45; }
.profile-count { font-size: 12px; color: #d7cfb9; white-space: nowrap; }
#profile-form { display: grid; gap: 15px; padding-top: 24px; }
.profile-photo-row { display: flex; align-items: center; gap: 18px; margin-bottom: 5px; }
.profile-avatar { display: grid; place-items: center; width: 88px; height: 88px; flex: 0 0 88px; overflow: hidden; border: 1px solid #f5eedc66; border-radius: 50%; background: #0009; color: #d7cfb9; }
.profile-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-avatar svg { width: 48px; height: 48px; }
.profile-photo-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.profile-photo-button, .profile-text-button { color: #f5eedc; font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.profile-photo-button { display: inline-flex; align-items: center; min-height: 36px; }
.profile-photo-button:has(+ input:focus-visible) { outline: 2px solid #f5eedc; outline-offset: 4px; }
.profile-text-button { border: 0; padding: 3px 0; background: transparent; }
.profile-field { display: grid; min-width: 0; gap: 6px; font-size: 12px; font-weight: 500; color: #e6dfcc; }
.profile-field input, .profile-field textarea { width: 100%; min-width: 0; border: 1px solid #f5eedc4d; border-radius: 3px; padding: 11px 12px; color: #f5eedc; background: #000a; font: inherit; font-size: 14px; }
.profile-field input { min-height: 42px; }
.profile-field textarea { min-height: 84px; resize: vertical; line-height: 1.45; }
.profile-field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.profile-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 16px; border: 1px solid #f5eedc66; border-radius: 3px; background: #000b; color: #f5eedc; font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.profile-primary:hover:not(:disabled) { background: #f5eedc20; }
.profile-primary:disabled { opacity: .5; cursor: not-allowed; }
.profile-note, .profile-feedback { margin: -5px 0 0; color: #d7cfb9; font-size: 12px; line-height: 1.5; }
.profile-feedback[data-state='error'] { color: #ffd1c5; }
.profile-empty { padding: 76px 20px; text-align: center; }
.profile-empty svg { width: 32px; height: 32px; color: #d7cfb9; }
.profile-empty h3 { margin: 14px 0 8px; font-size: 20px; }
.profile-empty p { margin: 0 0 22px; color: #d7cfb9; font-size: 14px; }
.profile-record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; padding-top: 24px; }
.profile-record { display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.profile-record-art { position: relative; width: min(100%, 250px); aspect-ratio: 1; }
.profile-record-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-record-remove { position: absolute; right: 7px; top: 7px; display: grid; place-items: center; width: 38px; height: 38px; padding: 8px; border: 0; border-radius: 50%; color: #fff4de; background: #000a; cursor: pointer; }
.profile-record-remove svg { width: 22px; height: 22px; fill: currentColor; stroke: currentColor; }
.profile-record h3 { margin: 13px 0 4px; max-width: 100%; font-size: clamp(16px, 1.6vw, 21px); line-height: 1.2; overflow-wrap: anywhere; }
.profile-record-artist { margin: 0; font-size: 14px; line-height: 1.4; }
.profile-record-album { margin: 4px 0 0; color: #d7cfb9; font-size: 12px; line-height: 1.4; }
.profile-record-bottom { width: min(100%, 250px); margin-top: auto; padding-top: 12px; }
.profile-record-price { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.profile-record-bottom .profile-primary { width: 100%; }
.profile-record-message { min-height: 0; margin: 8px 0 0; color: #d7cfb9; font-size: 12px; line-height: 1.4; }
.profile-record-message[data-state='error'] { color: #ffd1c5; }
@media (max-width: 760px) {
  .profile-main { padding-top: 12px; padding-bottom: 48px; }
  .profile-heading h1 { font-size: 30px; }
  .profile-layout { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-top: 24px; }
  .profile-record-grid { gap: 26px 16px; }
  .profile-record h3 { font-size: 15px; }
  .profile-record-artist { font-size: 12px; }
  .profile-record-album { font-size: 11px; }
}
@media (max-width: 380px) { .profile-main { padding-inline: 16px; } }
