.account-grid { grid-template-columns: minmax(0, 1fr) minmax(440px, 520px); align-items: start; }
.account-intro { position: sticky; top: 125px; padding-top: 70px; }
.account-card { width: 100%; }
.profile-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 7px 0 20px;
  padding-top: 24px;
  border-top: 1px solid #e8ecf2;
}
.profile-heading strong { color: #202a38; font-size: 17px; }
.profile-heading span { color: #8a96a7; font-size: 11px; }
.account-card .avatar-picker { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.account-card .avatar-picker legend { margin: 0 0 12px; padding: 0; color: #34435a; font-size: 13px; font-weight: 700; }
.avatar-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.account-card .avatar-option {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 88px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  background: #fbfcfe;
  cursor: pointer;
}
.account-card .avatar-option:has(input:checked) { border-color: #0878f9; background: #f2f8ff; box-shadow: 0 0 0 2px #0878f91a; }
.account-card .avatar-option:has(input:focus-visible) { outline: 3px solid #0878f9; outline-offset: 2px; }
.account-card .avatar-option input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; }
.avatar-option .profile-avatar { width: 46px; height: 46px; }
.avatar-option-name { color: #6f7d90; font-size: 10px; font-weight: 600; white-space: nowrap; }
.profile-field-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(100px, 1fr); gap: 12px; }
.profile-field-row > div { min-width: 0; }
.account-card .profile-field-row label { display: block; }
.account-card select {
  width: 100%;
  height: 45px;
  margin-bottom: 18px;
  padding: 0 13px;
  border: 1px solid #dfe6ef;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: #202a38;
  font: inherit;
  font-size: 14px;
}
.account-card select:focus { border-color: #0878f9; box-shadow: 0 0 0 3px #0878f91a; }
.account-card .demo-profile-button {
  width: 100%;
  margin-top: 12px;
  padding: 11px 14px;
  border: 1px solid #b6d5f8;
  border-radius: 10px;
  background: #f4f9ff;
  color: #1269bf;
  font-size: 12px;
  font-weight: 700;
}
.account-card .demo-profile-button:hover { background: #e8f3ff; }
.account-card.demo-mode .demo-profile-button { display: flex; align-items: center; justify-content: space-between; min-height: 46px; margin-top: 6px; border: 0; background: #0878f9; color: #fff; font-size: 14px; }
.account-card.demo-mode .demo-profile-button:hover { background: #006be7; }
.account-card.demo-mode #registerForm .account-submit:disabled { margin-top: 10px; background: #eef2f6; color: #8590a1; box-shadow: none; cursor: default; }
@media (max-width: 860px) {
  .account-grid { grid-template-columns: 1fr; }
  .account-intro { position: static; padding-top: 0; }
  .account-card { max-width: 560px; }
}
@media (max-width: 520px) {
  .profile-heading { display: block; }
  .profile-heading span { display: block; margin-top: 5px; }
  .avatar-options { gap: 5px; }
  .account-card .avatar-option { min-height: 77px; }
  .avatar-option .profile-avatar { width: 38px; height: 38px; }
  .avatar-option-name { font-size: 9px; }
}
