.account-page {
  max-width: 1000px;
  margin: auto;
}
.account-panel {
  border: 1px solid var(--rule);
  border-radius: 4px;
  min-width: 0;
  padding: clamp(18px, 3vw, 30px);
  margin: 0 0 24px;
  background: var(--paper, #fffdf7);
}
.account-panel h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.5rem;
}
.account-panel h3 {
  font-size: 1.05rem;
}
.account-panel input,
.account-panel select {
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--ink-2);
  background: var(--field);
  color: inherit;
  font: inherit;
  font-size: 16px;
  box-sizing: border-box;
}
.account-panel .field {
  margin: 0 0 18px;
}
.account-panel .field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}
.account-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}
.account-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.account-list {
  list-style: none;
  padding: 0;
}
.account-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: space-between;
  overflow-wrap: anywhere;
}
.account-list small {
  display: block;
}
.account-list .text-button {
  min-height: 44px;
}
.account-panel .form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.credential-panel {
  border: 2px solid var(--ink-2);
}
.credential-panel dd {
  margin: 8px 0 16px;
  font-family: monospace;
  font-size: 1.1rem;
  overflow-wrap: anywhere;
  user-select: all;
}
.account-panel button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.account-badge {
  font-size: 0.78em;
  border: 1px solid currentColor;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
}
.account-verified {
  color: #2f6659;
}
.account-heading > h2 { min-width: 0; overflow-wrap: anywhere; }
.account-heading > .text-button { flex-shrink: 0; }
.account-panel p > a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.account-panel hr { border: 0; border-top: 1px solid var(--rule); margin: 24px 0; }
.account-panel h3 { margin-bottom: 12px; }
.account-panel .field-helper { margin-top: 8px; }
#account-login > p { margin-top: 16px; margin-bottom: 0; }
#account-message:focus {
  outline: 2px solid currentColor;
}
@media (max-width: 767px) {
  .account-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .account-panel .button {
    white-space: normal;
  }
  .account-heading {
    flex-wrap: wrap;
  }
}
@media (max-width: 639px) {
  .account-panel { padding: 20px 16px; margin-bottom: 20px; }
  .account-panel h2 { font-size: 22px; line-height: 1.45; }
  .account-panel h3 { font-size: 17px; }
  .account-panel .form-actions { gap: 10px; }
  .account-panel form > .button,
  .account-panel form .form-actions > .button,
  .credential-panel .form-actions > .button { flex: 1 1 100%; width: 100%; min-width: 0; }
  #account-submissions + .form-actions { justify-content: space-between; }
  #account-submissions + .form-actions > .button { min-width: 84px; }
  .account-list li > :first-child { min-width: 0; }
  .account-list small { font-size: 13px; }
}
@media (prefers-color-scheme: dark) {
  .account-verified { color: #92cdb8; }
}
