#account-dialog {
  width: min(580px, calc(100% - 32px));
}
#login-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#login-form label {
  font-size: 13px;
  color: var(--ink);
  font-weight: 650;
  margin-top: 10px;
}
#login-form select {
  border: 1px solid #cbd9d1;
  background: #fafcfb;
  border-radius: 10px;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 15px;
  width: 100%;
}
#login-form select:disabled {
  background: #f0f4f1;
  color: #6b7e73;
}
#login-submit {
  margin-top: 17px;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}
.stat-card {
  border: 1px solid var(--line);
  background: #f7faf8;
  padding: 17px;
  border-radius: 14px;
}
.stat-card > span {
  font-size: 12px;
  color: var(--muted);
}
.stat-card strong {
  display: block;
  font-size: 22px;
  margin: 7px 0;
  line-height: 1.4;
}
.stat-card small {
  font-size: 11px;
  color: var(--muted);
}
.recent-title {
  font-size: 16px;
  margin-top: 25px;
}
.recent-records {
  padding: 0;
  list-style: none;
}
.recent-records li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.recent-records strong {
  display: block;
  font-size: 13px;
}
.recent-records span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.account-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.account-actions .secondary-button {
  font-size: 13px;
}
.browse-note {
  margin: 16px 0 0;
  text-align: center;
}
.browse-note button {
  border: 0;
  background: none;
  color: var(--green);
  font-size: 13px;
  min-height: 40px;
  padding: 8px 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
#login-error:empty,
#storage-note:empty,
#limit-note:empty {
  display: none;
}
#login-error {
  color: #a43b24;
  background: #fff0e9;
  border-radius: 8px;
  padding: 10px 12px;
}
@media (max-width: 430px) {
  .stats-grid {
    gap: 8px;
  }
  .stat-card {
    padding: 12px;
  }
  .stat-card strong {
    font-size: 19px;
  }
}
