.account-button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  width: 172px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d5e0d6;
  border-radius: 8px;
  color: var(--green);
  background: #fff;
  font: inherit;
  font-weight: 700;
}
.account-button[hidden] { display: none; }
.site-header .account-button { margin-left: 12px; }
.account-button svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.account-button > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.account-button:enabled:hover { background: #edf4ed; }
.account-button[aria-busy="true"] > * { display: none; }
.account-button[aria-busy="true"]::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid #d5e0d6;
  border-top-color: var(--green);
  border-radius: 50%;
}
@keyframes account-loading { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) {
  .account-button[aria-busy="true"]::before { animation: account-loading .75s linear infinite; }
}
.account-dialog { max-width: min(390px, calc(100vw - 32px)); }
.account-dialog h2 { overflow-wrap: anywhere; }
.account-name-form { display: grid; gap: 8px; margin: 16px 0; }
.account-name-form label { font-weight: 700; }
.account-name-form input {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #d5e0d6;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
}
.account-name-form button { justify-self: start; }
.account-name-form #account-name-help { margin: 0; color: #64765e; font-size: 13px; }
.account-message { margin: 0; }
.account-message:empty { display: none; }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.score-sign-in a { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .account-button { width: 44px; padding: 0; }
  .account-button > span { display: none; }
  .site-header .account-button { margin-left: 8px; }
  .header-inner:has(.account-button:not([hidden])) nav { margin-right: 4px; }
}
