.preference-card { margin-top:18px; }
.preference-card fieldset { border:0; padding:14px 0; margin:0; border-bottom:1px solid rgba(231,192,117,.18); min-width:0; }
.preference-toggle,.preference-volume { display:flex; align-items:center; gap:12px; justify-content:space-between; }
.preference-toggle input { width:23px; height:23px; accent-color:#e6b653; }
.preference-volume { margin-top:12px; }
.preference-volume input { flex:1; min-width:60px; accent-color:#e6b653; }
.preference-volume output { min-width:44px; text-align:right; font-variant-numeric:tabular-nums; }
.preference-card p { color:#b8bbc1; font-size:13px; line-height:1.65; }
.preferences-links { display:grid; grid-template-columns:1fr; gap:8px; }
.preferences-links button { padding:12px; text-align:start; border:1px solid rgba(231,192,117,.25); background:rgba(18,22,29,.8); color:#e8cd98; border-radius:8px; }
.profile-edit { margin:8px 0 0; max-width:100%; }
.profile-card .avatar[role=button] { cursor:pointer; }
/* Profile uses the ordinary page scroll, including the phone keyboard viewport. */
.profile-card .avatar img,.profile-editor .avatar img { width:100%; height:100%; object-fit:cover; object-position:center; border-radius:50%; display:block; }
.profile-page { min-width:0; }
.profile-page .page-heading { margin-bottom:18px; }
#profileEditor.profile-editor { position:relative; inset:auto; margin:0 auto; width:100%; max-width:620px; min-width:0; box-sizing:border-box; height:auto; max-height:none; overflow:visible; padding:clamp(16px,4vw,28px); background:#11151e; color:#f7eedb; border:1px solid #675335; border-radius:18px; }
.profile-editor form { display:flex; flex-direction:column; gap:22px; min-width:0; width:100%; }
.profile-editor-heading { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip-path:inset(50%); }
.profile-avatar-section { display:grid; justify-items:center; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; min-width:0; }
.profile-avatar-section .avatar { grid-column:1 / -1; width:104px; height:104px; box-sizing:border-box; padding:0; display:grid; place-items:center; border:3px solid #e6b653; border-radius:50%; background:#363026; overflow:hidden; color:#f9d98c; font-size:42px; cursor:pointer; }
#profileAvatarHint { grid-column:1 / -1; margin:0 0 4px; text-align:center; font-size:13px; line-height:1.6; color:#b9b7b0; overflow-wrap:anywhere; }
.profile-file { position:relative; display:flex; justify-content:center; align-items:center; text-align:center; cursor:pointer; padding:10px; box-sizing:border-box; width:100%; min-width:0; min-height:46px; overflow:hidden; }
.profile-file:focus-within { outline:2px solid #f1d39d; outline-offset:2px; }
.profile-file:has(input:disabled) { opacity:.5; cursor:default; }
.profile-file input { position:absolute; inset:0; width:100%; height:100%; min-width:0; max-width:100%; opacity:0; cursor:pointer; }
#profileAvatarRemove { width:100%; min-width:0; min-height:46px; padding:10px; margin:0; overflow-wrap:anywhere; }
.profile-nickname-label { display:grid; gap:8px; min-width:0; }
.profile-editor input[name=nickname] { width:100%; min-width:0; box-sizing:border-box; min-height:48px; padding:12px; border:1px solid #675335; background:#1b202a; color:#fff; border-radius:8px; font-size:16px; scroll-margin:100px 0; }
.profile-editor small { color:#b9b7b0; font-size:13px; }
.profile-editor fieldset { padding:0; margin:0; border:0; min-width:0; }
.profile-editor legend { margin-bottom:12px; padding:0; font-weight:600; }
.profile-gender { display:flex; gap:12px; }
.profile-gender label { flex:1; display:flex; gap:10px; align-items:center; min-height:46px; padding:10px 12px; border:1px solid #675335; border-radius:10px; box-sizing:border-box; }
.profile-gender input { width:20px; height:20px; margin:0; accent-color:#e6b653; flex:none; }
.profile-avatar-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; width:100%; min-width:0; }
.profile-avatar-option { aspect-ratio:1; padding:3px; min-width:0; width:100%; border:2px solid transparent; border-radius:50%; background:#25262b; cursor:pointer; }
.profile-avatar-option img { display:block; width:100%; height:100%; aspect-ratio:1; border-radius:50%; object-fit:cover; }
.profile-avatar-option[aria-pressed=true] { border-color:#f0c96b; box-shadow:0 0 0 2px #65552d; }
.profile-editor button:disabled,.profile-editor input:disabled { opacity:.5; cursor:default; }
.profile-state { display:flex; flex-wrap:wrap; gap:10px; min-width:0; }
#profileIdentityNotice { margin:0; font-size:13px; line-height:1.6; color:#c9b589; }
#profileEditorStatus { flex-basis:100%; margin:0; font-size:14px; line-height:1.6; overflow-wrap:anywhere; color:#f2cc86; }
.profile-editor-actions { display:grid; grid-template-columns:1fr 1fr; gap:12px; min-width:0; }
.profile-editor-actions button { min-width:0; margin:0; min-height:48px; padding:10px; overflow-wrap:anywhere; }
#profileEditorStatus:empty,#preferencesStatus:empty,#preferencesHint:empty { display:none; }
@media (max-width:359px) { .profile-avatar-grid { gap:8px; } .profile-editor-actions { grid-template-columns:1fr; } }
.audio-auditions { margin-top:18px; border-top:1px solid rgba(231,192,117,.25); padding-top:16px; }
.audio-test-buttons { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.audio-test-buttons button { min-height:46px; margin:0; padding:10px 12px; line-height:1.4; }
#audioPlaybackStatus { min-height:22px; color:#f1d39d; font-weight:600; }
#preferencesStatus { overflow-wrap:anywhere; }
