/* Personal settings layout polish. */
@media (min-width: 861px) {
  body[data-view="profile"] .topbar,
  body[data-view="profile"] .profile-panel {
    width: min(1240px, 100%);
    margin-right: auto;
    margin-left: auto;
  }

  body[data-view="profile"] .topbar {
    margin-bottom: 14px;
  }

  body[data-view="profile"] .topbar h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  body[data-view="profile"] .profile-panel {
    margin-bottom: 28px;
  }

  body[data-view="profile"] .profile-panel > .section-head {
    display: none;
  }

  body[data-view="profile"] .profile-layout {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
  }

  body[data-view="profile"] .profile-card {
    border-color: #dbe7e3;
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(25, 47, 40, .07);
  }

  body[data-view="profile"] .profile-summary-card {
    align-content: start;
    gap: 14px;
    background: linear-gradient(180deg, #ffffff, #f8fbfa);
  }

  body[data-view="profile"] .profile-avatar-wrap {
    width: 108px;
    height: 108px;
    border-width: 4px;
    border-color: #d5e6e1;
    box-shadow: 0 8px 22px rgba(17, 107, 95, .1);
  }

  body[data-view="profile"] .profile-avatar-fallback {
    font-size: 36px;
  }

  body[data-view="profile"] .profile-avatar-actions {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 7px;
  }

  body[data-view="profile"] .profile-avatar-actions button {
    width: auto;
    min-width: 0;
    min-height: 34px;
    padding: 0 12px;
    white-space: nowrap;
    font-size: 12px;
  }

  body[data-view="profile"] .profile-avatar-note {
    text-align: center;
  }

  body[data-view="profile"] .profile-account-summary {
    gap: 0;
    margin-top: 2px;
    border: 1px solid #e1ebe7;
    border-radius: 10px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, .78);
  }

  body[data-view="profile"] .profile-account-summary div {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    min-height: 38px;
    align-items: center;
    border-bottom: 1px solid #edf2f0;
  }

  body[data-view="profile"] .profile-account-summary div:last-child {
    border-bottom: 0;
  }

  body[data-view="profile"] .profile-account-summary strong {
    font-size: 12px;
  }

  body[data-view="profile"] .profile-form-card {
    align-content: start;
    gap: 18px;
    padding: 22px 24px;
  }

  body[data-view="profile"] .profile-card-head {
    border-left: 4px solid #2e796d;
    padding-left: 11px;
  }

  body[data-view="profile"] .profile-card-head h3 {
    margin-bottom: 4px;
    font-size: 17px;
  }

  body[data-view="profile"] .profile-readonly-grid {
    gap: 14px;
  }

  body[data-view="profile"] .profile-readonly-grid label,
  body[data-view="profile"] .profile-password-form label {
    gap: 7px;
  }

  body[data-view="profile"] .profile-readonly-grid input,
  body[data-view="profile"] .profile-password-form input {
    height: 42px;
    border-radius: 9px;
    padding: 0 12px;
  }

  body[data-view="profile"] .profile-password-head {
    margin-top: 2px;
    border-top: 1px solid #e2ebe7;
    padding-top: 18px;
  }

  body[data-view="profile"] .profile-password-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
  }

  body[data-view="profile"] .profile-password-form button {
    grid-column: 1 / -1;
    width: 132px;
    min-height: 40px;
    justify-self: end;
  }

  body[data-view="profile"] .profile-readonly-notice {
    border-radius: 8px;
    padding: 10px 12px;
  }
}

@media (min-width: 861px) and (max-width: 1100px) {
  body[data-view="profile"] .profile-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 14px;
  }

  body[data-view="profile"] .profile-password-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

