.profile-layout { grid-template-columns: 286px minmax(0, 1fr); align-items: start; }
.profile-summary { position: sticky; top: calc(var(--header-h) + 20px); padding: 22px; }
.profile-identity { text-align: center; }
.profile-avatar-wrap { width: 88px; height: 88px; position: relative; margin: 0 auto 13px; }
.profile-avatar { width: 88px; height: 88px; display: grid; place-items: center; border: 2px solid rgba(0,229,229,.42); border-radius: 27px; background: linear-gradient(145deg, var(--purple), #9332df 55%, var(--cyan)); box-shadow: 0 12px 30px rgba(113,39,255,.3); font: 800 28px Poppins; }
.profile-status { position: absolute; right: -2px; bottom: 4px; width: 18px; height: 18px; border: 4px solid var(--card); border-radius: 50%; background: var(--success); }
.profile-name { margin: 0; font-size: 20px; }
.profile-email { margin: 3px 0 12px; color: var(--muted); font-size: 11px; }
.profile-edit { min-height: 34px; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 20px 0 16px; padding: 13px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.profile-stat { min-width: 0; padding: 0 7px; text-align: center; border-right: 1px solid var(--border); }
.profile-stat:last-child { border: 0; }
.profile-stat strong { display: block; overflow: hidden; color: white; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.profile-stat small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.profile-actions { display: grid; gap: 7px; }
.profile-action { min-height: 42px; justify-content: flex-start; padding: 0 12px; color: #cbd4ed; }
.profile-action svg { width: 17px; color: var(--cyan); }
.profile-content { display: grid; gap: 14px; }
.profile-card { padding: 22px; }
.profile-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 5px; }
.profile-card-head h2 { margin: 5px 0 0; font-size: 21px; }
.profile-card-head > svg { width: 22px; color: var(--cyan); }
.profile-card .setting-row { min-height: 68px; }
.profile-card .setting-row > span { min-width: 0; padding-right: 10px; }
.profile-card .setting-row strong { font-size: 13px; }
.profile-card .setting-row small { display: block; margin-top: 3px; }
.profile-save { margin-top: 18px; }
.account-list { margin-top: 8px; }
.account-row { min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.account-row:last-child { border: 0; }
.account-row > svg { width: 19px; flex: 0 0 auto; color: #8797c4; }
.account-row span { min-width: 0; flex: 1; }
.account-row strong, .account-row small { display: block; }
.account-row small { color: var(--muted); font-size: 10px; }
.account-row .tag { flex: 0 0 auto; }

@media (max-width: 1023px) {
  body[data-page="profile"] .right-panel { display: none; }
  .profile-summary { position: static; }
}

@media (max-width: 767px) {
  body[data-page="profile"] .desktop-grid { padding: 10px 11px 28px; }
  body[data-page="profile"] .page-hero { min-height: 184px; margin-bottom: 12px; padding: 22px 19px; }
  body[data-page="profile"] .page-hero .hero-copy { width: 72%; }
  body[data-page="profile"] .page-hero .eyebrow { margin-bottom: 6px; font-size: 9px; }
  body[data-page="profile"] .page-hero h1 { margin-bottom: 7px; font-size: 29px; line-height: .95; }
  body[data-page="profile"] .page-hero p { margin-bottom: 0; font-size: 10px; line-height: 1.4; }
  body[data-page="profile"] .page-hero .hero-actions,
  body[data-page="profile"] .page-hero .hero-controls { display: none; }
  body[data-page="profile"] .page-hero .hero-art { width: 53%; height: 100%; right: -7%; opacity: .45; }
  .profile-layout { gap: 12px; }
  .profile-summary { padding: 16px; }
  .profile-identity { display: grid; grid-template-columns: 58px minmax(0,1fr) 38px; gap: 12px; align-items: center; text-align: left; }
  .profile-avatar-wrap, .profile-avatar { width: 58px; height: 58px; margin: 0; border-radius: 18px; }
  .profile-avatar { font-size: 19px; }
  .profile-status { right: -3px; bottom: 0; width: 15px; height: 15px; border-width: 3px; }
  .profile-identity-copy { min-width: 0; }
  .profile-name { overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
  .profile-email { overflow: hidden; margin: 2px 0 5px; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .profile-edit { width: 38px; min-height: 38px; padding: 0; border-radius: 11px; font-size: 0; }
  .profile-edit svg { width: 16px; margin: auto; }
  .profile-stats { margin: 15px 0 13px; padding: 11px 0; }
  .profile-stat strong { font-size: 12px; }
  .profile-stat small { font-size: 7px; }
  .profile-actions { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; }
  .profile-action { min-width: 0; min-height: 59px; flex-direction: column; justify-content: center; gap: 4px; padding: 5px; font-size: 9px; white-space: nowrap; }
  .profile-action svg { width: 18px; }
  .profile-content { gap: 12px; }
  .profile-card { padding: 17px 15px; border-radius: 16px; }
  .profile-card-head { align-items: center; margin-bottom: 2px; }
  .profile-card-head h2 { font-size: 18px; }
  .profile-card-head > svg { width: 19px; }
  .profile-card .setting-row { min-height: 65px; padding: 11px 0; }
  .profile-card .setting-row strong { font-size: 12px; }
  .profile-card .setting-row small { max-width: 225px; font-size: 9px; line-height: 1.35; }
  .profile-card .toggle { flex: 0 0 auto; }
  .profile-save { width: 100%; min-height: 44px; }
  .account-row { min-height: 55px; }
  .account-row strong { font-size: 11px; }
  .account-row small { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-width: 359px) {
  body[data-page="profile"] .page-hero .hero-copy { width: 82%; }
  .profile-action { font-size: 8px; }
  .profile-card .setting-row small { max-width: 180px; }
}
