.account-page > .site-navigation { margin-bottom: 16px; }

.account-content {
  display: grid;
  gap: 14px;
}

.account-notice,
.flash,
.account-card {
  border: 2px groove #fff;
  background: #ddd;
}

.account-notice,
.flash {
  margin: 0;
  padding: 10px;
  font: 700 12px/1.4 Arial, sans-serif;
}

.account-notice { background: #fffdc7; }
.flash-success { color: var(--green); background: #e7f4df; }
.flash-error { color: var(--red); background: #ffd9d9; }

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 14px;
}

.account-card {
  min-width: 0;
  padding: 16px;
}

.account-card h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 4vw, 35px);
  line-height: 1;
}

.account-card h2::before { content: "[ "; color: var(--red); }
.account-card h2::after { content: " ]"; color: var(--red); }
.account-card > :last-child { margin-bottom: 0; }
.narrow-card { width: min(690px, 100%); margin: 0 auto; }

.eyebrow {
  margin: 0 0 7px;
  color: #555;
  font: 700 10px/1.2 "Courier New", monospace;
  letter-spacing: 0.1em;
}

.account-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.account-form label {
  display: grid;
  gap: 5px;
  font: 700 12px/1.35 Arial, sans-serif;
}

.account-form input {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 2px inset #fff;
  border-radius: 0;
  color: #000;
  background: #fff;
  font: 16px/1.3 Arial, sans-serif;
}

.account-content button,
.button-link {
  display: inline-block;
  min-height: 29px;
  padding: 5px 11px;
  border: 2px outset #fff;
  border-radius: 0;
  color: #000;
  cursor: pointer;
  background: #c0c0c0;
  font: 12px Arial, sans-serif;
  text-decoration: none;
}

.account-content button:hover,
.button-link:hover {
  color: #000;
  background: #d7d7d7;
  text-decoration: none;
}

.account-content button:active,
.button-link:active { border-style: inset; }
.secondary-button { color: var(--red); }

.field-help,
.help-text {
  color: #555;
  font: 11px/1.45 "Courier New", monospace;
}

.identity-list { margin: 18px 0; }

.identity-list div {
  display: grid;
  grid-template-columns: minmax(90px, 0.4fr) minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-top: 1px dotted #777;
}

.identity-list div:last-child { border-bottom: 1px dotted #777; }
.identity-list dt { font: 700 10px/1.35 "Courier New", monospace; text-transform: uppercase; }
.identity-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }

.dark-mode .account-notice,
.dark-mode .flash,
.dark-mode .account-card {
  color: #c5c8c6;
  border-color: #111;
  background: #282a2e;
}

.dark-mode .account-notice { background: #34331f; }
.dark-mode .flash-success { color: #b5bd68; background: #293027; }
.dark-mode .flash-error { color: #cc6666; background: #3a171c; }
.dark-mode .eyebrow,
.dark-mode .field-help,
.dark-mode .help-text { color: #969896; }

.dark-mode .account-form input {
  color: #c5c8c6;
  border-color: #111;
  background: #1d1f21;
}

.dark-mode .account-content button,
.dark-mode .button-link,
.dark-mode .button-link:visited {
  color: #c5c8c6;
  border-color: #111;
  background: #282a2e;
}

.dark-mode .account-content button:hover,
.dark-mode .button-link:hover { color: #c5c8c6; background: #373b41; }
.dark-mode .secondary-button { color: #cc6666; }

@media (max-width: 720px) {
  .account-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .identity-list div { grid-template-columns: 1fr; gap: 2px; }
}
