/* Shared layout for the account-area pages: account, keys, credits, activity.
   Each page sets <main class="acct-shell"> and includes an <aside class="acct-side">
   followed by <div class="acct-body"> wrapping its content.
   This rule's specificity (main.acct-shell) beats per-page `main { ... }`. */

main.acct-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.25rem;
  align-items: start;
}

.acct-side {
  position: sticky;
  top: 1.5rem;
  align-self: start;
  border: 1px solid var(--border-strong, #1f3327);
  background: #000;
  padding: 1.1rem 0.6rem 1.25rem;
}

.acct-side-title {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-dim, #10b981);
  padding: 0 0.7rem 0.85rem;
  border-bottom: 1px dashed var(--border, #2a2a2a);
  margin-bottom: 0.6rem;
}

.acct-side-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem;
  color: var(--fg-muted, #6e8268);
  text-decoration: none;
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  border-left: 2px solid transparent;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}
.acct-side-link:hover {
  color: var(--fg, #e6e6e6);
  background: rgba(255, 255, 255, 0.03);
}
.acct-side-link .prompt { color: var(--accent-dim, #10b981); }
.acct-side-link.active {
  color: var(--accent, #00ff41);
  border-left-color: var(--accent, #00ff41);
  background: rgba(0, 217, 126, 0.06);
  text-shadow: 0 0 6px var(--accent-glow, rgba(0, 217, 126, 0.4));
}
.acct-side-link.active .prompt { color: var(--accent, #00ff41); }

.acct-body { min-width: 0; }

@media (max-width: 760px) {
  main.acct-shell { grid-template-columns: 1fr; gap: 1.5rem; }
  .acct-side { position: static; }
}
