.account-trigger {
  flex-shrink: 0;
  white-space: nowrap;
}

.account-trigger.account-connected {
  border-color: #397b73;
  color: #93ecda;
}

.account-dialog {
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  color: #f7eaff;
  border: 1px solid #594263;
  border-radius: 14px;
  padding: 20px;
  background: radial-gradient(ellipse at 100% 0%, #2c1b39, transparent 64%), #171322;
  box-shadow: 0 22px 80px #07050bbf;
  overflow: auto;
}

.account-dialog::backdrop {
  background: #0c0913bd;
}

.account-head, .account-summary, .account-footer, .account-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-head {
  justify-content: space-between;
  margin-bottom: 12px;
}

.account-head h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.3;
}

.account-close {
  padding: 3px 10px;
  font-size: 21px;
  line-height: 1.25;
}

.account-summary {
  font-weight: 760;
  overflow-wrap: anywhere;
}

.account-status-dot {
  flex: 0 0 8px;
  height: 8px;
  border-radius: 50%;
  background: #ce9ecb;
}

.account-signed-in .account-status-dot {
  background: #75e8ce;
  box-shadow: 0 0 12px #4bb39a55;
}

.account-pending .account-status-dot {
  background: #ffca7b;
}

.account-guest p, .account-member p, .account-message {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: #cfc1d6;
}

.account-guest p.account-import {
  color: #a991b0;
  font-size: 13px;
}

.account-google-slot:not(:empty), .account-actions:not(:empty) {
  margin-top: 14px;
}

.account-message:not(:empty) {
  margin-top: 14px;
  color: #ffdcb0;
}

.account-actions, .account-footer {
  flex-wrap: wrap;
}

.account-footer {
  justify-content: flex-end;
  margin-top: 16px;
}

.account-dialog .account-done {
  background: #f22f78;
  border-color: #ff75a5;
  color: white;
}

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

@media (max-width: 420px) {
  .account-dialog {
    padding: 16px;
  }
  .top-actions:has(.account-trigger) {
    gap: 3px;
  }
  .top-actions:has(.account-trigger) .small-button {
    padding-inline: 5px;
  }
}
