.profile-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:16px;align-items:start}
.profile-summary{text-align:center;position:sticky;top:84px}
.profile-avatar{width:116px;height:116px;margin:4px auto 14px;border-radius:24px;display:grid;place-items:center;overflow:hidden;background:linear-gradient(145deg,#dcecff,#b8d6ee);color:#105b94;font-size:34px;font-weight:900;border:4px solid #fff;box-shadow:0 8px 24px #12395a20}
.profile-avatar img{width:100%;height:100%;object-fit:cover}
.profile-photo-actions{display:flex;justify-content:center;margin:-5px 0 12px}
.profile-photo-actions label{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.profile-photo-actions input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}
.profile-summary h2{margin:0;font-size:19px}
.profile-summary p{margin:6px 0 12px;color:#748397;font-size:11px}
.profile-code{margin-top:18px;padding:12px;border-radius:10px;background:#f3f7fa;text-align:left}
.profile-code small,.profile-code b{display:block}
.profile-code small{color:#7c8998;font-size:9px;margin-bottom:4px}
.profile-code b{font-size:12px}
.profile-details{min-width:0}
.profile-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.profile-info{padding:12px;border:1px solid #e5ebf1;border-radius:10px;background:#fbfcfd;min-width:0}
.profile-info small,.profile-info b{display:block}
.profile-info small{margin-bottom:5px;color:#7d8997;font-size:9px;text-transform:uppercase}
.profile-info b{font-size:11px;overflow-wrap:anywhere}
.profile-note{margin-top:12px;padding:10px;border-radius:9px;background:#fff8df;color:#7b6208;font-size:10px;line-height:1.5}
.profile-history{grid-column:2}
.profile-history-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #edf0f4}
.profile-history-row:last-child{border-bottom:0}
.profile-history-row b,.profile-history-row small{display:block}
.profile-history-row b{font-size:11px}
.profile-history-row small,.profile-history-row span{margin-top:3px;color:#7d8997;font-size:9px}
.profile-modal{width:min(680px,calc(100vw - 20px))}
.profile-password{margin-top:4px;padding-top:14px;border-top:1px solid #e5ebf1}
.profile-password b,.profile-password small{display:block}
.profile-password small{margin-top:4px;color:#7d8997;font-size:9px}
.profile-photo-modal{width:min(520px,calc(100vw - 20px))}
.profile-photo-modal .modal-body{text-align:center}
.profile-photo-modal .modal-body>img{display:block;width:min(360px,100%);max-height:440px;margin:0 auto 12px;border-radius:16px;object-fit:contain;background:#edf3f8;box-shadow:0 10px 28px #12395a20}
.profile-photo-modal .modal-body>p{color:#657487;font-size:11px}
@media(max-width:760px){
  .profile-layout{grid-template-columns:1fr}
  .profile-summary{position:static;display:grid;grid-template-columns:90px 1fr;column-gap:14px;text-align:left;align-items:center}
  .profile-history{grid-column:auto}
  .profile-info-grid{grid-template-columns:1fr}
  .profile-avatar{grid-row:1/5;width:86px;height:86px;margin:0;border-radius:18px;font-size:26px}
  .profile-photo-actions{grid-column:1;grid-row:5;margin:8px 0 0}
  .profile-photo-actions label{width:100%;padding:8px 6px;font-size:9px}
  .profile-summary h2,.profile-summary p,.profile-summary .chip{grid-column:2}
  .profile-summary p{margin:3px 0 7px}
  .profile-summary .chip{justify-self:start}
  .profile-code{grid-column:1/-1;width:100%}
}
