.profile-page {
  min-width: 0;
  height: 100%;
  overflow: auto;
  padding: 0 0 16px;
  color: #203047;
  letter-spacing: 0;
}

.profile-page-head {
  margin: 0 2px 14px;
}

.profile-page-head h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: 0;
}

.profile-page-head p {
  margin: 3px 0 0;
  color: #65748a;
  font-size: 13px;
}

.profile-form {
  display: grid;
  gap: 14px;
}

.profile-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9e2e8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(27, 44, 61, .08);
}

.profile-card-head {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid #e1e8ed;
}

.profile-card-head h2 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0;
}

.profile-card-head p {
  margin: 2px 0 0;
  color: #6b798c;
  font-size: 11px;
}

.profile-heading-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  border-radius: 50%;
  background: #e2f4f4;
  color: #00969d;
}

.profile-heading-icon svg {
  width: 20px;
  height: 20px;
}

.profile-personal-body {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  padding: 12px 16px;
}

.profile-avatar-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 18px 0 2px;
  border-right: 1px solid #dfe7ec;
  text-align: center;
}

.profile-avatar-preview {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 9px;
  border: 1px solid #d5e3e8;
  border-radius: 50%;
  background: #e2f3f4;
  color: #008f97;
  font-size: 25px;
  font-weight: 800;
}

.profile-avatar-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-avatar-column > strong {
  font-size: 12px;
}

.profile-avatar-column > small {
  margin-top: 2px;
  color: #68778c;
  font-size: 10px;
}

.profile-avatar-column .profile-upload-button {
  position: relative;
  overflow: hidden;
  margin-top: 9px;
  border-color: #0b9ba2;
  background: #fff;
  color: #008d94;
}

.profile-avatar-column .profile-upload-button:hover {
  background: #edf8f8;
}

.profile-upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.profile-avatar-remove {
  margin-top: 5px;
  border: 0;
  background: transparent;
  color: #a34249;
  font-size: 10px;
  cursor: pointer;
}

.profile-inline-error {
  margin-top: 4px;
  color: #ad3b42 !important;
}

.profile-personal-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  align-content: center;
  gap: 12px 24px;
  min-width: 0;
  padding: 0 0 0 32px;
}

.profile-personal-fields > label {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.profile-personal-fields > label[hidden] {
  display: none;
}

.profile-personal-fields > label > span:first-child {
  font-size: 11px;
  font-weight: 750;
}

.profile-personal-fields .input[readonly] {
  background: #eef2f5;
  color: #67768a;
  cursor: not-allowed;
}

.profile-password-input {
  position: relative;
  display: block;
}

.profile-password-input .input {
  width: 100%;
  padding-right: 40px;
}

.profile-password-input button {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0 6px 6px 0;
  background: transparent;
  color: #697a8d;
  cursor: pointer;
}

.profile-password-input button:hover {
  background: #eef7f7;
  color: #008f97;
}

.profile-password-input button svg {
  width: 17px;
  height: 17px;
}

.profile-password-error {
  grid-column: 1 / -1;
  margin: -8px 0 0;
  padding: 7px 9px;
  border-left: 3px solid #c84848;
  background: #fff1f1;
  color: #9f3038;
  font-size: 11px;
}

.profile-alert-row {
  display: grid;
  grid-template-columns: minmax(285px, .75fr) minmax(520px, 1.55fr);
}

.profile-alert-row + .profile-alert-row {
  border-top: 1px solid #e5ebef;
}

.profile-alert-row-single {
  grid-template-columns: 1fr;
}

.profile-alert-row-single .profile-alert-toggle {
  border-right: 0;
}

.profile-alert-toggle,
.profile-sound-setting {
  min-width: 0;
  min-height: 72px;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
}

.profile-alert-toggle {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 42px;
  border-right: 1px solid #dfe7ec;
  cursor: pointer;
}

.profile-sound-setting {
  display: grid;
  grid-template-columns: 44px minmax(145px, 1fr) 124px minmax(180px, .9fr) 38px;
}

.profile-alert-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #e8f5f5;
  color: #00979e;
}

.profile-alert-icon svg {
  width: 23px;
  height: 23px;
}

.profile-alert-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.profile-alert-copy strong {
  font-size: 12px;
}

.profile-alert-copy small {
  color: #6d7b8e;
  font-size: 10px;
  line-height: 1.35;
}

.profile-switch {
  position: relative;
  width: 42px;
  height: 24px;
  display: inline-flex;
  flex: 0 0 42px;
}

.profile-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.profile-switch > span {
  width: 42px;
  height: 24px;
  border-radius: 12px;
  background: #aeb9c3;
  box-shadow: inset 0 0 0 1px rgba(20, 42, 58, .08);
  transition: background .15s ease;
}

.profile-switch > span::after {
  content: "";
  width: 18px;
  height: 18px;
  display: block;
  margin: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(24, 43, 59, .25);
  transition: transform .15s ease;
}

.profile-switch input:checked + span {
  background: #079ba2;
}

.profile-switch input:checked + span::after {
  transform: translateX(18px);
}

.profile-switch input:focus-visible + span {
  outline: 3px solid rgba(0, 157, 165, .18);
  outline-offset: 2px;
}

.profile-sound-setting > .input {
  width: 100%;
}

.profile-volume-control {
  min-width: 0;
  display: grid;
  grid-template-columns: 18px minmax(80px, 1fr) 38px;
  align-items: center;
  gap: 8px;
  color: #66788e;
}

.profile-volume-control svg {
  width: 18px;
  height: 18px;
}

.profile-volume-control input[type="range"] {
  width: 100%;
  accent-color: #079ba2;
  cursor: pointer;
}

.profile-volume-control output {
  color: #66788e;
  font-size: 10px;
  text-align: right;
}

.profile-volume-control.is-disabled {
  opacity: .42;
}

.profile-sound-preview {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #d6e0e7;
  border-radius: 6px;
  background: #f4f7f9;
  color: #264965;
  cursor: pointer;
}

.profile-sound-preview svg {
  width: 16px;
  height: 16px;
}

.profile-sound-preview:hover {
  border-color: #66b8bc;
  background: #edf8f8;
  color: #008e96;
}

.profile-sound-preview:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.profile-save-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: -2px;
  padding-top: 10px;
  border-top: 1px solid #dbe3e9;
}

.profile-save-bar .btn {
  min-width: 155px;
  min-height: 40px;
}

.topbar-profile-menu {
  position: relative;
  min-width: 0;
}

.topbar-profile {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 5px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
}

.topbar-profile:hover {
  background: rgba(255, 255, 255, .1);
}

.topbar-profile-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  overflow: hidden;
  border-radius: 50%;
  background: #e5f4f5;
  color: #1f5770;
  font-size: 12px;
  font-weight: 800;
}

.topbar-profile-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.topbar-profile-name {
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.topbar-profile-chevron {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  opacity: .78;
  transition: transform .16s ease;
}

.topbar-profile[aria-expanded="true"] .topbar-profile-chevron {
  transform: rotate(180deg);
}

.topbar-profile-panel {
  position: absolute;
  z-index: 90;
  top: calc(100% + 9px);
  right: 0;
  width: 178px;
  padding: 6px;
  border: 1px solid #d7e0e7;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(20, 34, 52, .22);
  color: #263547;
}

.topbar-profile-panel form {
  margin: 0;
}

.topbar-profile-panel a,
.topbar-profile-panel button {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.topbar-profile-panel a:hover,
.topbar-profile-panel button:hover,
.topbar-profile-panel a:focus-visible,
.topbar-profile-panel button:focus-visible {
  outline: 0;
  background: #edf7f7;
  color: #087e83;
}

.topbar-profile-panel svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}

.topbar-profile-panel form {
  padding-top: 4px;
  border-top: 1px solid #e6ebef;
}

@media (max-width: 1180px) {
  .profile-personal-fields {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .profile-alert-row {
    grid-template-columns: 1fr;
  }

  .profile-alert-toggle {
    border-right: 0;
    border-bottom: 1px solid #e5ebef;
  }
}

@media (max-width: 760px) {
  .profile-page {
    height: auto;
    overflow: visible;
  }

  .profile-personal-body {
    grid-template-columns: 1fr;
  }

  .profile-avatar-column {
    padding: 0 0 16px;
    border-right: 0;
    border-bottom: 1px solid #dfe7ec;
  }

  .profile-personal-fields {
    grid-template-columns: 1fr;
    padding: 16px 0 0;
  }

  .profile-sound-setting {
    grid-template-columns: 44px minmax(0, 1fr) 38px;
  }

  .profile-sound-setting > .input,
  .profile-volume-control {
    grid-column: 2 / 4;
  }

  .profile-sound-preview {
    grid-column: 3;
    grid-row: 1;
  }

  .topbar-profile-name {
    display: none;
  }

  .topbar-profile {
    padding: 2px;
  }

  .topbar-profile-chevron {
    display: none;
  }

  .topbar-profile-panel {
    right: -4px;
  }
}

@media (max-width: 480px) {
  .profile-card-head,
  .profile-personal-body,
  .profile-alert-toggle,
  .profile-sound-setting {
    padding-left: 12px;
    padding-right: 12px;
  }

  .profile-alert-toggle {
    grid-template-columns: 40px minmax(0, 1fr) 42px;
  }

  .profile-sound-setting {
    grid-template-columns: 40px minmax(0, 1fr) 38px;
  }

  .profile-alert-icon {
    width: 40px;
    height: 40px;
  }

  .profile-save-bar .btn {
    width: 100%;
  }
}
