/* Modern account workspace — progressive enhancement over profile*.css */
#profile.profile-modern {
  --profile-ink: #111827;
  --profile-muted: #6b7280;
  --profile-line: #e5e7eb;
  --profile-soft: #f7f8fc;
  --profile-primary: #6258ed;
  --profile-primary-dark: #4f46d8;
  --profile-success: #0b966f;
  --profile-danger: #dc4054;
  --profile-warning: #c47b08;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  color: var(--profile-ink);
}

#profile.profile-modern,
#profile.profile-modern * {
  box-sizing: border-box;
}

#profile.profile-modern .profile-page-bar {
  min-height: 54px;
  margin: 0 0 20px;
  padding: 0 2px;
}

#profile.profile-modern .profile-page-bar h2 {
  color: var(--profile-ink);
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 800;
  letter-spacing: -.045em;
}

#profile.profile-modern .profile-page-bar p {
  margin-top: 7px;
  color: var(--profile-muted);
  font-size: 13px;
  line-height: 1.55;
}

#profile.profile-modern .profile-page-bar .icon-btn,
#profile.profile-modern .profile-page-bar button {
  min-width: 44px;
  min-height: 44px;
  border-radius: 13px;
}

#profile.profile-modern .profile-secure-badge {
  min-height: 38px;
  padding: 9px 13px;
  border-color: #c9eadf;
  background: #effaf6;
  color: #087b59;
  font-size: 10px;
  letter-spacing: .045em;
  box-shadow: 0 6px 18px rgba(8, 123, 89, .08);
}

#profile.profile-modern .profile-shell {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Explicitly neutralizes the application's generic `header` height. */
#profile.profile-modern .profile-head,
#profile.profile-modern header.profile-head,
#profile.profile-modern .profile-hero {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  height: auto !important;
  min-height: 210px;
  padding: 32px 36px 68px;
  overflow: hidden;
  border: 0;
  border-radius: 26px;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, .18), transparent 25%),
    radial-gradient(circle at 100% 110%, rgba(130, 121, 255, .9), transparent 38%),
    linear-gradient(135deg, #262349 0%, #4039b7 52%, #665cf3 100%);
  color: #fff;
  box-shadow: 0 22px 55px rgba(52, 46, 154, .19);
}

#profile.profile-modern .profile-head::before,
#profile.profile-modern .profile-hero::before {
  position: absolute;
  right: -52px;
  bottom: -104px;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  content: "";
}

#profile.profile-modern .profile-head::after,
#profile.profile-modern .profile-hero::after {
  position: absolute;
  top: 24px;
  right: 33px;
  width: 86px;
  height: 86px;
  border: 18px solid rgba(255, 255, 255, .055);
  border-radius: 50%;
  content: "";
}

#profile.profile-modern .profile-head > *,
#profile.profile-modern .profile-hero > * {
  position: relative;
  z-index: 1;
}

#profile.profile-modern .profile-head .modal-close {
  display: none;
}

#profile.profile-modern .profile-photo-editor {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  gap: 20px;
  min-width: 0;
  padding: 8px;
  border-color: transparent;
  border-radius: 22px;
}

#profile.profile-modern .profile-photo-editor.dragging {
  border-color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .11);
}

#profile.profile-modern .profile-avatar {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  border: 4px solid rgba(255, 255, 255, .72);
  border-radius: 28px;
  background-color: #7b73f6;
  font-size: 34px;
  line-height: 1;
  box-shadow: 0 18px 40px rgba(17, 15, 61, .32), inset 0 0 0 1px rgba(255, 255, 255, .24);
}

#profile.profile-modern .profile-photo-actions b {
  color: #fff;
  font-size: 13px;
  font-weight: 750;
}

#profile.profile-modern .profile-photo-actions small {
  max-width: 250px;
  margin-top: 5px;
  color: rgba(255, 255, 255, .69);
  font-size: 11px;
  line-height: 1.45;
}

#profile.profile-modern .profile-photo-actions > div {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

#profile.profile-modern .profile-photo-actions button {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .23);
  border-radius: 11px;
  background: rgba(255, 255, 255, .13);
  color: #fff;
  font-size: 10px;
  font-weight: 750;
  backdrop-filter: blur(10px);
}

#profile.profile-modern .profile-photo-actions button:hover {
  border-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .2);
  transform: translateY(-1px);
}

#profile.profile-modern .profile-photo-actions #profile-photo-remove {
  border-color: rgba(255, 210, 216, .34);
  background: rgba(153, 29, 48, .22);
  color: #ffe8eb;
}

#profile.profile-modern .profile-identity-copy,
#profile.profile-modern .profile-head > .profile-photo-editor + div {
  min-width: 210px;
  flex: 1 1 300px;
}

#profile.profile-modern .profile-head .eyebrow,
#profile.profile-modern .profile-hero .eyebrow {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, .62);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

#profile.profile-modern .profile-head h3,
#profile.profile-modern .profile-hero h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(25px, 2.5vw, 34px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.15;
}

#profile.profile-modern .profile-head p,
#profile.profile-modern .profile-hero p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  line-height: 1.55;
}

#profile.profile-modern .profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

#profile.profile-modern .profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 10px;
  font-weight: 750;
  backdrop-filter: blur(10px);
}

#profile.profile-modern .profile-badge.active::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #58e6ad;
  box-shadow: 0 0 0 4px rgba(88, 230, 173, .13);
  content: "";
}

#profile.profile-modern .profile-account-overview {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: -42px 26px 24px;
  padding: 14px;
  border: 1px solid rgba(227, 230, 239, .86);
  border-radius: 20px;
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 16px 38px rgba(22, 26, 45, .11);
  backdrop-filter: blur(18px);
}

#profile.profile-modern .profile-overview-item {
  min-width: 0;
  padding: 10px 14px;
  border-right: 1px solid #eceef4;
}

#profile.profile-modern .profile-overview-item:last-child {
  border-right: 0;
}

#profile.profile-modern .profile-overview-item small,
#profile.profile-modern .profile-overview-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#profile.profile-modern .profile-overview-item small {
  margin-bottom: 6px;
  color: #8a93a5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}

#profile.profile-modern .profile-overview-item span {
  color: #202638;
  font-size: 13px;
  font-weight: 750;
}

#profile.profile-modern #profile-form,
#profile.profile-modern .profile-workspace {
  display: block;
  width: 100%;
}

#profile.profile-modern .profile-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  align-items: start;
  gap: 18px;
}

#profile.profile-modern .profile-card,
#profile.profile-modern .profile-section {
  min-width: 0;
  padding: 27px 28px 30px;
  border: 1px solid #e8eaf0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 9px 30px rgba(22, 28, 45, .045);
}

#profile.profile-modern .security-section {
  border: 1px solid #e8eaf0;
}

#profile.profile-modern .profile-section-title {
  align-items: center;
  gap: 12px;
  margin-bottom: 23px;
}

#profile.profile-modern .profile-section-title > i {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
  background: #f0efff;
  color: #5f59df;
}

#profile.profile-modern .security-section .profile-section-title > i {
  background: #eaf8f3;
  color: #07805f;
}

#profile.profile-modern .profile-section-title svg {
  width: 19px;
  height: 19px;
}

#profile.profile-modern .profile-section-title b {
  color: #1a2030;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.015em;
}

#profile.profile-modern .profile-section-title small {
  margin-top: 4px;
  color: #7c8597;
  font-size: 11px;
  line-height: 1.45;
}

#profile.profile-modern .profile-grid,
#profile.profile-modern .security-section .profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 17px;
}

#profile.profile-modern .profile-grid label {
  display: block;
  color: #4c5568;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

#profile.profile-modern .profile-grid input {
  width: 100%;
  height: 50px;
  margin-top: 7px;
  padding: 0 15px;
  border: 1px solid #dce0e8;
  border-radius: 12px;
  outline: 0;
  background: #fbfcfe;
  color: #171c29;
  font-size: 13px;
  font-weight: 600;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

#profile.profile-modern .profile-grid input:hover:not(:disabled):not([readonly]) {
  border-color: #c7cbd7;
  background: #fff;
}

#profile.profile-modern .profile-grid input:focus {
  border-color: #6c63ee;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(98, 88, 237, .11);
}

#profile.profile-modern .profile-grid input:invalid:not(:placeholder-shown) {
  border-color: #e16a79;
  box-shadow: 0 0 0 4px rgba(220, 64, 84, .08);
}

#profile.profile-modern .profile-role-field input,
#profile.profile-modern .profile-grid input[readonly],
#profile.profile-modern .profile-grid input:disabled {
  border-color: #e7e9ee;
  background: #f3f5f8;
  color: #6b7486;
  cursor: not-allowed;
}

#profile.profile-modern .profile-password-input {
  position: relative;
}

#profile.profile-modern .profile-password-input input {
  padding-right: 52px;
}

#profile.profile-modern .password-toggle {
  position: absolute;
  right: 6px;
  bottom: 3px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #778095;
  cursor: pointer;
}

#profile.profile-modern .password-toggle:hover,
#profile.profile-modern .password-toggle:focus-visible {
  background: #f0efff;
  color: var(--profile-primary);
  outline: 0;
}

#profile.profile-modern .password-toggle svg {
  width: 18px;
  height: 18px;
}

#profile.profile-modern .password-strength {
  height: 6px;
  margin-top: 16px;
  overflow: visible;
  background: #eceef3;
}

#profile.profile-modern .password-strength span {
  min-width: 0;
  background: linear-gradient(90deg, #f0a327, #10a77b);
  transition: width .24s ease, background-color .24s ease;
}

#profile.profile-modern .password-strength small {
  top: 12px;
  color: #7d8697;
  font-size: 10px;
}

#profile.profile-modern .password-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 29px;
}

#profile.profile-modern .password-rule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f3f4f7;
  color: #747d8e;
  font-size: 9px;
  font-weight: 700;
}

#profile.profile-modern .password-rule::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a9afba;
  content: "";
}

#profile.profile-modern .password-rule.valid,
#profile.profile-modern .password-rule.is-valid {
  background: #eaf8f3;
  color: #087b5d;
}

#profile.profile-modern .password-rule.valid::before,
#profile.profile-modern .password-rule.is-valid::before {
  background: #0fa87c;
}

#profile.profile-modern .profile-actions {
  position: sticky;
  z-index: 20;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 14px 16px 14px 19px;
  border: 1px solid rgba(222, 225, 234, .92);
  border-radius: 17px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 15px 40px rgba(20, 25, 44, .12);
  backdrop-filter: blur(18px);
}

#profile.profile-modern .profile-actions > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

#profile.profile-modern .profile-actions button {
  min-height: 44px;
  padding-inline: 17px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 750;
}

#profile.profile-modern .profile-actions .primary {
  min-width: 190px;
  box-shadow: 0 9px 21px rgba(98, 88, 237, .22);
}

#profile.profile-modern .profile-actions .primary:disabled {
  box-shadow: none;
  cursor: wait;
  opacity: .68;
}

#profile.profile-modern .profile-actions > span,
#profile.profile-modern .profile-save-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  color: #7c8596;
  font-size: 10px;
  font-weight: 650;
}

#profile.profile-modern .profile-save-state::before {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #aeb4bf;
  content: "";
}

#profile.profile-modern .profile-save-state.dirty,
#profile.profile-modern .profile-save-state.is-dirty {
  color: var(--profile-warning);
}

#profile.profile-modern .profile-save-state.dirty::before,
#profile.profile-modern .profile-save-state.is-dirty::before {
  background: #e3a22d;
  box-shadow: 0 0 0 4px rgba(227, 162, 45, .12);
}

#profile.profile-modern .profile-save-state.saving,
#profile.profile-modern .profile-save-state.is-saving {
  color: var(--profile-primary);
}

#profile.profile-modern .profile-save-state.saving::before,
#profile.profile-modern .profile-save-state.is-saving::before {
  border: 2px solid #d8d5ff;
  border-top-color: var(--profile-primary);
  background: transparent;
  animation: profile-modern-spin .72s linear infinite;
}

#profile.profile-modern .profile-save-state.success,
#profile.profile-modern .profile-save-state.is-success {
  color: var(--profile-success);
}

#profile.profile-modern .profile-save-state.success::before,
#profile.profile-modern .profile-save-state.is-success::before {
  background: #12aa7e;
  box-shadow: 0 0 0 4px rgba(18, 170, 126, .11);
}

#profile.profile-modern .profile-save-state.error,
#profile.profile-modern .profile-save-state.is-error {
  color: var(--profile-danger);
}

#profile.profile-modern .profile-save-state.error::before,
#profile.profile-modern .profile-save-state.is-error::before {
  background: #df4659;
  box-shadow: 0 0 0 4px rgba(223, 70, 89, .1);
}

#profile.profile-modern.profile-loading .profile-shell,
#profile.profile-modern .profile-shell.profile-loading,
#profile.profile-modern .profile-workspace.profile-loading {
  pointer-events: none;
  opacity: .6;
  filter: saturate(.72);
}

#profile.profile-modern.profile-loading .profile-avatar,
#profile.profile-modern .profile-loading .profile-avatar {
  animation: profile-modern-pulse 1.15s ease-in-out infinite alternate;
}

#profile.profile-modern button,
#profile.profile-modern input,
#profile.profile-modern .profile-card,
#profile.profile-modern .profile-overview-item {
  transition: color .18s ease, background-color .18s ease, border-color .18s ease,
    box-shadow .18s ease, opacity .18s ease, transform .18s ease;
}

#profile.profile-modern button:focus-visible,
#profile.profile-modern input:focus-visible {
  outline: 3px solid rgba(98, 88, 237, .24);
  outline-offset: 2px;
}

@keyframes profile-modern-spin {
  to { transform: rotate(360deg); }
}

@keyframes profile-modern-pulse {
  from { opacity: .54; }
  to { opacity: 1; }
}

@media (max-width: 860px) {
  #profile.profile-modern .profile-head,
  #profile.profile-modern header.profile-head,
  #profile.profile-modern .profile-hero {
    min-height: 200px;
    padding: 28px 28px 68px;
  }

  #profile.profile-modern .profile-account-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #profile.profile-modern .profile-overview-item:nth-child(2) {
    border-right: 0;
  }

  #profile.profile-modern .profile-overview-item:nth-child(-n + 2) {
    padding-bottom: 15px;
    border-bottom: 1px solid #eceef4;
  }

  #profile.profile-modern .profile-card-grid {
    grid-template-columns: 1fr;
  }

  #profile.profile-modern .security-section {
    border-top: 1px solid #e8eaf0;
  }
}

@media (max-width: 560px) {
  #profile.profile-modern .profile-page-bar {
    gap: 10px;
  }

  #profile.profile-modern .profile-page-bar > div {
    order: 0;
    flex: 1 1 180px;
  }

  #profile.profile-modern .profile-page-bar h2 {
    font-size: 23px;
  }

  #profile.profile-modern .profile-page-bar p,
  #profile.profile-modern .profile-secure-badge {
    display: none;
  }

  #profile.profile-modern .profile-head,
  #profile.profile-modern header.profile-head,
  #profile.profile-modern .profile-hero {
    align-items: flex-start;
    min-height: 0;
    padding: 22px 20px 62px;
    border-radius: 21px;
  }

  #profile.profile-modern .profile-photo-editor {
    align-items: flex-start;
    flex-direction: row;
    width: 100%;
    padding: 0;
  }

  #profile.profile-modern .profile-avatar {
    width: 78px;
    height: 78px;
    flex-basis: 78px;
    border-radius: 22px;
    font-size: 27px;
  }

  #profile.profile-modern .profile-photo-actions small {
    display: none;
  }

  #profile.profile-modern .profile-photo-actions > div {
    margin-top: 8px;
  }

  #profile.profile-modern .profile-photo-actions button {
    min-height: 36px;
    padding-inline: 10px;
  }

  #profile.profile-modern .profile-identity-copy,
  #profile.profile-modern .profile-head > .profile-photo-editor + div {
    flex-basis: 100%;
  }

  #profile.profile-modern .profile-head h3,
  #profile.profile-modern .profile-hero h3 {
    font-size: 25px;
  }

  #profile.profile-modern .profile-account-overview {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: -38px 11px 18px;
    padding: 9px;
    border-radius: 17px;
  }

  #profile.profile-modern .profile-overview-item {
    padding: 10px;
  }

  #profile.profile-modern .profile-overview-item span {
    font-size: 11px;
  }

  #profile.profile-modern .profile-card-grid {
    gap: 13px;
  }

  #profile.profile-modern .profile-card,
  #profile.profile-modern .profile-section {
    padding: 21px 18px 24px;
    border-radius: 17px;
  }

  #profile.profile-modern .profile-section-title {
    margin-bottom: 19px;
  }

  #profile.profile-modern .profile-grid input {
    height: 48px;
  }

  #profile.profile-modern .profile-actions {
    position: sticky;
    bottom: 8px;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin-top: 13px;
    padding: 12px;
    border-radius: 15px;
  }

  #profile.profile-modern .profile-actions > span,
  #profile.profile-modern .profile-save-state {
    min-height: 24px;
    justify-content: center;
  }

  #profile.profile-modern .profile-actions > div {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    width: 100%;
  }

  #profile.profile-modern .profile-actions button,
  #profile.profile-modern .profile-actions .primary {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #profile.profile-modern *,
  #profile.profile-modern *::before,
  #profile.profile-modern *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Components used by the dedicated account page. */
#profile.profile-modern .profile-page-context {
  flex: 1;
  min-width: 0;
}

#profile.profile-modern .profile-page-context .eyebrow {
  display: block;
  color: #8b93a5;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .15em;
}

#profile.profile-modern .profile-page-context p {
  margin: 4px 0 0;
  font-size: 12px;
}

#profile.profile-modern .profile-status-badge {
  border-color: #ccecdf;
  background: #effaf6;
  color: #087b59;
  box-shadow: none;
}

#profile.profile-modern .profile-status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #27c690;
  box-shadow: 0 0 0 4px rgba(39, 198, 144, .14);
}

#profile.profile-modern .profile-head h2,
#profile.profile-modern .profile-hero h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(27px, 2.6vw, 36px);
  font-weight: 820;
  letter-spacing: -.045em;
  line-height: 1.12;
}

#profile.profile-modern .profile-role-badge svg {
  width: 14px;
  height: 14px;
}

#profile.profile-modern .profile-active-badge {
  border-color: rgba(96, 235, 179, .22);
  background: rgba(19, 117, 86, .24);
  color: #dffff2;
}

#profile.profile-modern .profile-photo-camera {
  position: absolute;
  z-index: 3;
  top: 73px;
  left: 76px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 3px solid #5149cb;
  border-radius: 11px;
  background: #fff;
  color: #554ce2;
  box-shadow: 0 8px 20px rgba(22, 20, 71, .28);
  cursor: pointer;
}

#profile.profile-modern .profile-photo-camera:hover {
  transform: translateY(-1px) scale(1.04);
}

#profile.profile-modern .profile-photo-camera svg {
  width: 15px;
  height: 15px;
}

#profile.profile-modern .profile-overview-item {
  display: flex;
  align-items: center;
  gap: 11px;
}

#profile.profile-modern .profile-overview-item > i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: #f0efff;
  color: #5f57e5;
}

#profile.profile-modern .profile-overview-item > i svg {
  width: 16px;
  height: 16px;
}

#profile.profile-modern .profile-overview-item > span {
  min-width: 0;
}

#profile.profile-modern .profile-overview-item b {
  display: block;
  overflow: hidden;
  color: #202638;
  font-size: 13px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#profile.profile-modern .profile-information-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid #e2e0ff;
  border-radius: 13px;
  background: #f7f6ff;
  color: #5149c7;
}

#profile.profile-modern .profile-information-note > i {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

#profile.profile-modern .profile-information-note p,
#profile.profile-modern .profile-information-note b,
#profile.profile-modern .profile-information-note span {
  display: block;
  margin: 0;
}

#profile.profile-modern .profile-information-note b {
  color: #302c83;
  font-size: 11px;
}

#profile.profile-modern .profile-information-note span {
  margin-top: 3px;
  color: #716ca5;
  font-size: 10px;
  line-height: 1.5;
}

#profile.profile-modern .profile-field-error {
  display: block;
  min-height: 0;
  margin-top: 5px;
  color: var(--profile-danger);
  font-size: 10px;
  font-weight: 650;
}

#profile.profile-modern .profile-field-error:empty {
  display: none;
}

#profile.profile-modern .profile-grid input[aria-invalid="true"] {
  border-color: #df5264;
  background: #fffafb;
  box-shadow: 0 0 0 4px rgba(220, 64, 84, .08);
}

#profile.profile-modern .profile-form-errors {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #ffd4da;
  border-radius: 12px;
  background: #fff4f5;
  color: #b82e42;
  font-size: 11px;
  font-weight: 700;
}

#profile.profile-modern .profile-form-errors[hidden] {
  display: none;
}

#profile.profile-modern .password-rule.matched {
  background: #eaf8f3;
  color: #087b5d;
}

#profile.profile-modern .password-rule.matched::before {
  background: #0fa87c;
  box-shadow: 0 0 0 3px rgba(15, 168, 124, .1);
}

#profile.profile-modern .password-strength[data-level="weak"] > span {
  background: #df4659;
}

#profile.profile-modern .password-strength[data-level="medium"] > span {
  background: #e5a126;
}

#profile.profile-modern .password-strength[data-level="strong"] > span {
  background: #0fa87c;
}

#profile.profile-modern .profile-action-status {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
}

#profile.profile-modern .profile-save-state > span,
#profile.profile-modern .profile-save-spinner {
  display: none;
}

#profile.profile-modern .profile-action-status > small {
  color: #929aab;
  font-size: 9px;
}

#profile.profile-modern .profile-actions button:disabled {
  cursor: not-allowed;
  opacity: .56;
}

#profile.profile-modern .profile-actions .primary:disabled {
  cursor: not-allowed;
}

#profile.profile-modern .profile-actions[aria-busy="true"] button:disabled,
#profile.profile-modern #profile-form[aria-busy="true"] .profile-save-button {
  cursor: wait;
}

@media (max-width: 860px) {
  #profile.profile-modern .profile-page-context p {
    display: none;
  }
}

@media (max-width: 560px) {
  #profile.profile-modern .profile-page-bar {
    gap: 10px;
  }

  #profile.profile-modern .profile-status-badge {
    margin-left: auto;
  }

  #profile.profile-modern .profile-photo-camera {
    top: 70px;
    left: 74px;
  }

  #profile.profile-modern .profile-actions > .profile-action-status {
    display: flex;
    align-items: center;
  }

  #profile.profile-modern .profile-actions > div:last-child {
    display: grid;
    grid-template-columns: 1fr;
  }
}
