/*
 * Customer account — LAYOUT ONLY (Constitution XV).
 *
 * Same discipline as `css/portal.css` and gated by the same script: no hex literal, no
 * `font-family`, no colour function, no `:root`, and every `var(--token)` must be one
 * `css/style.css` already declares. An undeclared token is not a CSS error — the declaration is
 * silently dropped and the element renders unstyled, which is why check 5 derives the token list
 * from style.css rather than comparing against a list kept here.
 *
 * This is a CUSTOMER authenticated surface (constitution 1.2.0), so unlike the portal it also
 * carries the public storefront's look. It reuses style.css's components rather than restyling
 * them; everything below is structure.
 */

.account-shell {
  max-width: 60rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.account-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

/* 44x44 minimum touch target — Principle X, which binds this class unchanged. */
.account-nav a {
  display: inline-block;
  min-height: 44px;
  min-width: 44px;
  padding: 0.75rem 0.5rem;
}

.account-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.account-panel h2 {
  margin-top: 0;
}

.account-dog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.account-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}

.account-row:last-child {
  border-bottom: 0;
}

.account-field {
  display: block;
  margin-bottom: 1rem;
}

.account-field label {
  display: block;
  margin-bottom: 0.25rem;
}

.account-field input,
.account-field select {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem;
}

/* Validation errors are conveyed as TEXT in a live region, never by colour alone (Principle IX). */
.account-error {
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 2px solid var(--line);
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (max-width: 32rem) {
  .account-row {
    flex-direction: column;
  }
}
