.account-switcher {
  --account-text: #17212b;
  --account-muted: #64748b;
  --account-border: #e2e7ee;
  box-sizing: border-box;
  width: min(520px, calc(100% - 32px));
  margin: clamp(28px, 12vh, 108px) auto 32px;
  padding: clamp(16px, 5vw, 28px);
  color: var(--account-text);
  background: #fff;
  border: 1px solid var(--account-border);
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(23, 33, 43, .08);
}

.account-switcher .account-switch-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.account-switcher h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.3;
}

.account-switcher .account-switch-error {
  padding: 10px 12px;
  color: #9b2929;
  background: #fff1f0;
  border-radius: 8px;
}

.account-switcher .account-switch-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.account-switcher .account-switch-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px;
  min-height: 66px;
  padding: 7px 0;
  border-top: 1px solid var(--account-border);
}

.account-switcher .account-switch-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #475569;
  background: #f1f4f7;
  border-radius: 50%;
}

.account-switcher .account-switch-identity {
  min-width: 0;
}

.account-switcher .account-switch-identity > * {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-switcher .account-switch-identity span {
  color: var(--account-muted);
  font-size: 13px;
}

.account-switcher .account-current {
  grid-column: span 2;
  justify-self: end;
  padding: 4px 8px;
  color: #086846;
  background: #e7f6f0;
  border-radius: 999px;
  font-size: 12px;
}

.account-switcher .account-switch-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.account-switcher .account-switch-actions a,
.account-switcher button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 12px;
  color: var(--account-text);
  background: #fff;
  border: 1px solid var(--account-border);
  border-radius: 8px;
  text-decoration: none;
}

.account-switcher .account-forget-button {
  width: 44px;
  padding: 0;
  font-size: 16px;
}

@media (hover: hover) {
  .account-switcher .account-switch-list button:enabled:hover {
    background: var(--button-hover);
  }
}

.account-switcher .account-switch-list button:enabled:active {
  background: var(--button-selected);
}

.account-switcher .account-switch-actions .account-add-button {
  color: #fff;
  background: #253443;
  border-color: #253443;
}

.account-switcher button:disabled {
  opacity: .5;
}

.account-switcher :is(a, button):focus-visible {
  outline: 2px solid #0b815a;
  outline-offset: 2px;
}
