.account-service-action {
  appearance: none;
  padding: 4px 0;
  color: #3f5570;
  background: none;
  border: 0;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}

.auth-switch .auth-switch-divider {
  margin: 0 7px;
  color: #b1bdc9;
  font-weight: 400;
}

.auth-switch .auth-switch-action {
  padding: 0;
  color: #3f5570;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font: inherit;
  font-weight: 700;
  line-height: inherit;
  vertical-align: baseline;
}

.auth-switch .auth-switch-action:hover,
.auth-switch .auth-switch-action:focus-visible {
  color: #1f3855;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-service-action:hover,
.account-service-action:focus-visible {
  color: #1f3855;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.member-account-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
  padding: 15px 18px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 18px #314c6b12;
}

.member-account-bar-heading {
  display: flex;
  flex: 1;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.member-account-bar-heading strong {
  flex: none;
  color: #344a63;
  font-size: 15px;
}

.member-account-bar-heading span {
  color: #8290a1;
  font-size: 12px;
}

.member-account-bar-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 9px;
}

.member-account-bar .account-service-action {
  min-height: 32px;
  padding: 6px 12px;
  color: #435168;
  background: #f7f9fc;
  border: 1px solid #dce4ed;
  border-radius: 6px;
  text-decoration: none;
}

.member-account-bar .account-service-action:hover,
.member-account-bar .account-service-action:focus-visible {
  color: #2f455e;
  background: #eef3f8;
  border-color: #b8c7d7;
  text-decoration: none;
}

.member-account-bar .account-service-action.is-danger {
  color: #b64655;
  background: #fffafa;
  border-color: #edc9cf;
}

.member-account-bar .account-service-action.is-danger:hover,
.member-account-bar .account-service-action.is-danger:focus-visible {
  color: #9d3543;
  background: #fff2f4;
  border-color: #ddaeb6;
}

.account-service-modal[hidden] {
  display: none;
}

.account-service-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.account-service-backdrop {
  position: absolute;
  inset: 0;
  background: #1625388c;
  backdrop-filter: blur(2px);
}

.account-service-dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 28px 28px 24px;
  outline: none;
  background: #fff;
  border: 1px solid #e6edf4;
  border-radius: 12px;
  box-shadow: 0 20px 60px #16253838;
  text-align: center;
}

.account-service-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #8a98a9;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.account-service-close:hover,
.account-service-close:focus-visible {
  color: #435168;
  background: #f1f5f9;
}

.account-service-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 13px;
  color: #3f5570;
  background: #edf3f8;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 23px;
  font-style: italic;
  font-weight: 700;
}

.account-service-dialog h2 {
  margin: 0;
  color: #2f455e;
  font-size: 20px;
}

.account-service-message {
  margin: 11px 0 21px;
  color: #66778c;
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-line;
}

.account-service-confirm {
  min-width: 112px;
  min-height: 40px;
  padding: 9px 22px;
  color: #fff;
  background: #3f5570;
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.account-service-confirm:hover,
.account-service-confirm:focus-visible {
  background: #304761;
}

body.account-service-open {
  overflow: hidden;
}

@media (max-width: 590px) {
  .member-account-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }

  .member-account-bar-heading {
    display: block;
  }

  .member-account-bar-heading span {
    display: block;
    margin-top: 4px;
  }

  .member-account-bar-actions {
    width: 100%;
  }

  .member-account-bar .account-service-action {
    flex: 1;
  }

  .account-service-dialog {
    padding: 25px 20px 21px;
  }
}
