.account { max-width: 620px; margin: 20px auto; }
.account h1 { font-size: 22px; margin: 0 0 16px; }
.account form { max-width: 480px; }
.account label { display: block; margin: 12px 0; font-size: 13px; }
.account input {
  display: block;
  width: 100%;
  padding: 9px 10px;
  margin-top: 5px;
  background: #131722;
  color: #edf1f7;
  border: 1px solid #394158;
  border-radius: 6px;
  font: inherit;
}
.account button { cursor: pointer; }
.account-links { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 20px 0; font-size: 13px; }
.account-ok, .account-error { padding: 10px 12px; border-radius: 6px; font-size: 13px; }
.account-ok { background: #143b2d; color: #9cf0ce; }
.account-error { background: #451722; color: #ffbdc8; }

.account-dashboard { max-width: 860px; margin: 0 auto; font-size: 14px; }
.account-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.account-header > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; min-width: 0; }
.account-header strong { font-size: 16px; }
.account-welcome, .account-muted { color: var(--muted); font-size: 12px; }
.account-welcome { overflow-wrap: anywhere; }
.account-header form { margin: 0; flex-shrink: 0; }
.account-menu { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.account-dashboard .account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  opacity: 1;
}
.account-dashboard .account-button:hover { background: rgba(255, 255, 255, .09); }
.account-dashboard .account-button:focus-visible { outline: 2px solid var(--brand2); outline-offset: 3px; }
.account-dashboard .account-button[aria-current='page'] { background: rgba(139, 92, 246, .2); border-color: rgba(139, 92, 246, .55); }
.account-dashboard .account-button-primary { background: rgba(139, 92, 246, .28); border-color: rgba(139, 92, 246, .45); }
.account-dashboard .account-button-primary:hover { background: rgba(139, 92, 246, .4); }
.account-tools { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.account-tool { min-width: 0; }
.account-tool summary { list-style: none; }
.account-tool summary::-webkit-details-marker { display: none; }
.account-tool[open] { flex: 1 1 280px; max-width: 480px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0, 0, 0, .12); }
.account-tool[open] summary { margin-bottom: 10px; }
.account-tool p { margin: 0 0 10px; line-height: 1.5; }
.account-list-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; color: var(--muted); }
.account-count { padding: 2px 6px; border-radius: 4px; background: rgba(255, 255, 255, .08); font-variant-numeric: tabular-nums; }
.account-list { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: rgba(0, 0, 0, .12); }
.account-list-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; }
.account-list-row + .account-list-row { border-top: 1px solid var(--line); }
.account-list-info { min-width: 0; }
.account-list-info h2 { font-size: 14px; line-height: 1.4; margin: 0 0 3px; overflow-wrap: anywhere; }
.account-list-actions { display: flex; gap: 6px; flex-shrink: 0; }
.account-empty { margin: 0; padding: 18px 14px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.account-dashboard #app .btnPrimary, .account-dashboard #app .btnGhost, .account-dashboard #app .btn, .account-dashboard #app .btnDanger { padding: 7px 10px; border-radius: 6px; font-size: 12px; }

@media (max-width: 520px) {
  .account-dashboard { margin: 0; }
  .account-list-row { align-items: flex-start; flex-direction: column; gap: 8px; padding: 11px 12px; }
  .account-list-actions { flex-wrap: wrap; }
  .account-tool[open] { flex-basis: 100%; max-width: none; }
}
