.member-profile-dialog,.member-photo-dialog,.member-listing-dialog{box-sizing:border-box;width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #59616c;border-radius:20px;background:#24272d;color:#f4f5f7;overflow:auto}.member-profile-dialog::backdrop,.member-photo-dialog::backdrop,.member-listing-dialog::backdrop{background:#000b}.member-profile-head{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;background:#24272d;border-bottom:1px solid #454c56}.member-profile-head h2{margin:0;color:#ff9e59;font:700 23px/1.3 Inter,sans-serif;text-transform:none}.member-profile-head button,.member-profile-body button{min-height:44px;border:1px solid #697583;border-radius:11px;background:#30353d;color:#fff;font:inherit;padding:9px 14px;cursor:pointer}.member-profile-body{padding:22px;overflow-wrap:anywhere}.member-profile-top{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.member-profile-avatar{width:108px;height:108px;min-width:108px;display:grid;place-items:center;border-radius:18px;overflow:hidden;background:#343b44;font-size:40px;padding:0!important}.member-profile-avatar img,.msg-avatar img,.sm-profile-image img{width:100%;height:100%;object-fit:contain;display:block}.msg-avatar{overflow:hidden}.member-profile-counts{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.member-profile-counts span{background:#30353d;border:1px solid #515b68;border-radius:12px;padding:12px}.member-profile-body h3{color:#ffad73;text-transform:none}.member-profile-body p,.member-profile-body small{color:#c9d0da}.member-profile-body a{color:#ffb174}.member-profile-offers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.member-profile-offer{text-align:left;display:flex;flex-direction:column;gap:9px;overflow:hidden;min-width:0}.member-profile-offer img{width:100%;height:160px;object-fit:cover;object-position:center;background:#171a1f;border-radius:8px}.member-profile-offer strong{font-size:17px;color:#fff}.member-profile-review{padding:16px 0;border-bottom:1px solid #515b68}.member-profile-review strong{color:#ffb174}.member-profile-error{color:#ffc7a5!important;white-space:pre-line}.member-photo-dialog{width:min(850px,calc(100vw - 24px))}.member-photo-large{display:grid;place-items:center;min-height:200px;padding:20px}.member-photo-large img{max-width:100%;max-height:70dvh;object-fit:contain}.member-photo-large .msg-avatar{width:min(65vw,450px);height:min(65vw,450px);font-size:96px}.member-listing-photos{display:grid;grid-template-columns:1fr 1fr;gap:10px}.member-listing-photos img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:center;background:#171a1f}.messages-chat-head [data-member-profile]{color:inherit;background:none;border:0;cursor:pointer;padding:0;text-align:left}.messages-chat-head button[data-member-profile]:not(.msg-icon){font:inherit;flex:1}.msg-person>.msg-avatar[data-member-profile],.msg-row .msg-avatar[data-member-profile],.msg-request .msg-avatar[data-member-profile]{cursor:pointer;border:1px solid #697583}.member-profile-body :is(button,a,input):focus-visible,.member-profile-head button:focus-visible{outline:3px solid #ff9e59;outline-offset:3px}.msg-proposal{border:1px solid #697583;border-radius:14px;background:#292e35;padding:18px;margin:12px 0}.msg-proposal h3{margin:0 0 8px;text-transform:none;color:#fff}.msg-proposal p{color:#cbd1da}.msg-proposal strong{font-size:21px;color:#ffad73}.msg-proposal-actions{display:flex;gap:10px;flex-wrap:wrap}.sm-unbinding-note{color:#cbd1da;font-size:13px;line-height:1.6}.sm-contact-actions [hidden]{display:none!important}@media(max-width:560px){.member-profile-body{padding:16px}.member-profile-head{padding:14px 16px}.member-profile-offers{grid-template-columns:1fr}.member-profile-top{gap:14px}.member-profile-avatar{width:86px;height:86px;min-width:86px}.member-listing-photos{grid-template-columns:1fr}.msg-proposal-actions button{width:100%}.member-profile-dialog,.member-photo-dialog,.member-listing-dialog{max-height:calc(100dvh - max(24px,env(safe-area-inset-top)) - env(safe-area-inset-bottom));margin:auto}}

/* Proposal cooldown: retain readable controls while sending is locked. */
.price-proposal-dialog button:disabled{opacity:.55;cursor:not-allowed}.price-proposal-dialog [data-proposal-quota]{font-weight:600;line-height:1.6}.price-proposal-dialog [hidden]{display:none!important}

.price-proposal-dialog form{display:grid;gap:14px}.price-proposal-dialog form label{display:grid;gap:8px}.price-proposal-dialog form input{box-sizing:border-box;width:100%;min-height:44px;padding:10px 12px;border:1px solid #697583;border-radius:10px;background:#30353d;color:#f4f5f7;font:inherit}.price-proposal-dialog form button{width:100%}

.listing-minimum-field small{font-weight:400;line-height:1.5}.listing-minimum-dialog [hidden]{display:none!important}.listing-minimum-dialog form,.listing-minimum-dialog form label{display:grid;gap:12px}.listing-minimum-dialog input{box-sizing:border-box;width:100%;min-height:44px;padding:10px 12px;border:1px solid #697583;border-radius:10px;background:#30353d;color:#f4f5f7;font:inherit}

.listing-minimum-field{grid-column:1 / -1}.listing-minimum-field input{box-sizing:border-box;width:100%;min-height:44px;padding:10px 12px;border:1px solid #697583;border-radius:10px;background:#30353d;color:#f4f5f7;font:inherit}

.member-photo-large .msg-avatar img{width:100%;height:100%;object-fit:cover}[data-avatar-preview][role=button]{cursor:zoom-in}

/* Member profiles display a fixed circular avatar, without editing controls. */
.member-profile-avatar{border-radius:50%;cursor:default}.member-profile-avatar img{object-fit:cover}

.price-proposal-dialog .proposal-confirmation{min-inline-size:0;margin:0;padding:12px 14px 14px;border:1px solid #59616c;border-radius:12px;background:#24272d}
.price-proposal-dialog .proposal-confirmation legend{padding-inline:6px;font-weight:700;color:#f4f5f7}
.price-proposal-dialog .proposal-confirmation p{margin:0;line-height:1.55;overflow-wrap:anywhere}
.price-proposal-dialog .proposal-confirmation p+p{margin-top:10px}
.price-proposal-dialog form .proposal-acknowledgement{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer}
.price-proposal-dialog form .proposal-acknowledgement input{appearance:auto;flex:none;width:20px;height:20px;min-height:0;margin:0;padding:0;accent-color:#f47621}
.price-proposal-dialog form [type=submit]{min-height:44px;white-space:normal}

.price-proposal-dialog form input[name="amount"],
.price-proposal-dialog form button.msg-primary[type="submit"],
.sm-contact-actions button[data-sm-offer],
#authDialog #registerForm .avatar-photo-actions button {
  border: 1px solid #ffbf73;
  border-radius: 11px;
  background: rgba(255, 177, 77, .27);
  color: #fff6e8;
}
.price-proposal-dialog form button.msg-primary[type="submit"]:enabled:hover,
.sm-contact-actions button[data-sm-offer]:enabled:hover,
#authDialog #registerForm .avatar-photo-actions button:enabled:hover {
  background: rgba(255, 177, 77, .36);
}
.price-proposal-dialog form input[name="amount"]:focus-visible,
.price-proposal-dialog form button.msg-primary[type="submit"]:focus-visible,
.sm-contact-actions button[data-sm-offer]:focus-visible,
#authDialog #registerForm .avatar-photo-actions button:focus-visible {
  outline: 2px solid #ffbd73;
  outline-offset: 2px;
}
.price-proposal-dialog form button.msg-primary[type="submit"]:disabled {
  opacity: 1;
  background: rgba(255, 177, 77, .16);
  border-color: #bc8b55;
  color: #e8cfac;
}

.price-proposal-dialog form input[name="amount"]::placeholder {
  color: #f1d7b5;
  opacity: 1;
}

#authDialog #registerForm .avatar-photo-picker {
  padding: 12px;
  background: #24272d;
  border-color: #59616c;
}
#registerForm .avatar-photo-picker strong {
  color: #f4f5f7;
}

.member-profile-dialog .member-profile-top {
  padding-block: 10px;
  background: radial-gradient(ellipse 180px 95% at 48px 50%,
    color-mix(in srgb, var(--profile-avatar-color, #f47621) 22%, transparent),
    transparent 100%);
}
.member-profile-dialog .member-profile-body > :is(.member-profile-top, .member-profile-counts, .member-profile-friendship:not(:empty)) {
  position: relative;
  padding-bottom: 16px;
}
.member-profile-dialog .member-profile-body > :is(.member-profile-top, .member-profile-counts, .member-profile-friendship:not(:empty))::after {
  content: "";
  position: absolute;
  inset-inline: 0 18px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, #c38951, rgba(195, 137, 81, .22));
  pointer-events: none;
}
