/* Admin "machine room" — loaded only by layouts/admin. Overrides the ledger
   tokens from the tailwind build (link order puts this file after it). */

:root {
  /* Warm copper palette, neutrals tinted toward the amber hue */
  --color-canvas: light-dark(oklch(0.962 0.008 80), oklch(0.215 0.012 60));
  --color-surface: light-dark(oklch(0.988 0.005 80), oklch(0.252 0.014 60));
  --color-ink: light-dark(oklch(0.26 0.02 60), oklch(0.93 0.01 80));
  --color-ink-muted: light-dark(oklch(0.47 0.02 65), oklch(0.72 0.015 70));
  --color-ink-faint: light-dark(oklch(0.53 0.015 70), oklch(0.63 0.012 70));
  --color-edge: light-dark(oklch(0.885 0.015 80), oklch(0.325 0.015 60));
  --color-accent: light-dark(oklch(0.53 0.12 60), oklch(0.78 0.13 70));
  --color-accent-ink: light-dark(oklch(0.985 0.008 80), oklch(0.24 0.04 60));

  /* Sharper corners + industrial display face for the whole section */
  --radius-md: 0.1875rem;
  --font-display: "Barlow Semi Condensed", ui-sans-serif, system-ui, sans-serif;
}

/* Control-panel header: dark in both themes */
.admin-header {
  background: oklch(0.19 0.015 60);
  border-bottom: 1px solid oklch(0.3 0.02 60);
  color: oklch(0.88 0.012 80);
}
.admin-header a { transition: color 0.15s; }
.admin-header a:hover { color: oklch(0.99 0.005 80); }
.admin-header a:focus-visible {
  outline: 2px solid oklch(0.78 0.13 70);
  outline-offset: 2px;
}
.admin-stamp {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  background: oklch(0.78 0.13 70);
  color: oklch(0.22 0.04 60);
}
.admin-header nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(0.72 0.015 70);
}
.admin-header nav a[aria-current="page"] { color: oklch(0.99 0.005 80); }

/* Uppercase micro-label */
.admin-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink-faint);
}

/* Dashboard module: full hairline border, no shadow */
.admin-module {
  display: block;
  border: 1px solid var(--color-edge);
  border-radius: 0.1875rem;
  background: var(--color-surface);
  padding: 1rem 1.25rem 1.25rem;
  transition: border-color 0.15s;
}
a.admin-module:hover { border-color: var(--color-accent); }
a.admin-module:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Machine-room table headers (all admin tables) */
thead th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
