[hidden] { display: none !important; }

.account-panel {
  padding: 22px;
  margin-bottom: 18px;
}

.account-panel h2,
.account-dialog h2 { margin: 0; }

.account-toolbar,
.account-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#subAccountsList { margin-top: 16px; }
.account-row-actions { white-space: nowrap; }
.account-row-actions button + button { margin-inline-start: 8px; }
.account-danger { color: var(--red); }

.account-password,
.account-credentials {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.account-password { max-width: 440px; }
.account-password button { justify-self: start; }
.account-password label,
.account-credentials label { display: grid; gap: 6px; }
.account-password p { margin: 0; color: var(--muted); font-size: 13px; }

.account-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--paper);
}

.account-dialog::backdrop { background: rgb(19 46 33 / 55%); }
.account-dialog h3 { margin: 20px 0 10px; }

#accountGameOptions {
  display: grid;
  gap: 10px;
}

#accountGameOptions fieldset {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

#accountGameOptions legend { padding: 0 4px; color: var(--green-dark); font-weight: 700; }
#accountGameOptions label { display: flex; align-items: center; gap: 6px; }
#accountGameOptions input { width: auto; accent-color: var(--green-dark); }
.account-actions { justify-content: flex-end; margin-top: 14px; }
.account-error { color: var(--red); }
.account-error:empty { display: none; }

