/* Account pages (/signup, /login, /dashboard, /admin) — builds on
   /style.css's tokens so they match the landing page. */

body.console {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.console-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.console-brand:hover {
  text-decoration: none;
}

.console-brand img {
  width: 26px;
  height: 26px;
}

.console-top nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.console-top nav a {
  color: var(--text-muted);
  font-weight: 600;
}

.console-main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem 3rem;
}

.console-main.narrow {
  max-width: 440px;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

.card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.muted {
  color: var(--text-muted);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.field input,
.inline-form input {
  font: inherit;
  font-weight: 400;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
}

.field input:focus,
.inline-form input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.btn {
  font: inherit;
  font-weight: 700;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg-elevated);
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-hover);
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn.block {
  width: 100%;
}

.btn.ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--border-strong);
}

.btn.ghost:hover {
  background: var(--accent-soft);
}

.btn.small {
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
}

.btn.danger {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.35);
}

.error-text {
  color: #b42318;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.status-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.status-pill.APPROVED {
  background: var(--sage-soft);
}

.status-pill.PENDING {
  background: var(--gold-soft);
}

.status-pill.REJECTED,
.status-pill.DISABLED {
  background: rgba(180, 35, 24, 0.12);
  color: #b42318;
}

.inline-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.inline-form input {
  flex: 1;
  min-width: 12rem;
}

.new-key {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px dashed var(--gold);
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
}

.new-key code {
  display: block;
  margin: 0.5rem 0;
  padding: 0.6rem;
  background: var(--bg-elevated);
  border-radius: 8px;
  word-break: break-all;
  font-size: 0.85rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

tr.revoked td {
  color: var(--text-muted);
  text-decoration: line-through;
}

tr.revoked td:last-child {
  text-decoration: none;
}

.row-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.seg {
  display: inline-flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.seg button.active {
  background: var(--accent);
  color: var(--bg-elevated);
}

.switch-link {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
}

.snippet {
  font-size: 0.82rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  overflow-x: auto;
}
