/* The console, and deliberately not the app.
 *
 * Warm and plain against Mapwork's cool dark blue, because the one mistake
 * worth designing against here is doing something to the wrong thing while
 * believing you are somewhere else. Two tools that look alike is how that
 * happens. */

:root {
  --ink: #f2e9dd;
  --muted: #a99a86;
  --ground: #1d1206;
  --raised: #2a1c0c;
  --rule: #3d2b16;
  --accent: #e0a34a;
  --danger: #e06a4a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 1.5rem;
  max-width: 60rem;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}

h1 { margin: 0; font-size: 1.375rem; }
h2 { font-size: 1.0625rem; margin: 1.5rem 0 0.5rem; }

.where {
  margin: 0.25rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Production says so, loudly and permanently. A banner that only appears when
 * something is wrong is one nobody reads; this one is always there, so its
 * absence is the signal. */
body.production .where { color: var(--danger); font-weight: 700; }
body.production { border-top: 4px solid var(--danger); }

.note { color: var(--muted); font-size: 0.875rem; margin: 0 0 0.75rem; }

.error {
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--danger);
  border-radius: 0.5rem;
  color: var(--danger);
  margin: 0 0 1rem;
}

[hidden] { display: none !important; }

.sign-in { display: grid; gap: 0.5rem; max-width: 22rem; }

.sign-in input {
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  background: var(--raised);
  color: var(--ink);
  /* 16px minimum, or iOS zooms the page on focus and never zooms back. */
  font: inherit;
}

.sign-in button {
  padding: 0.625rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  background: var(--accent);
  color: #1d1206;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.who { color: var(--muted); font-size: 0.875rem; }
.who strong { color: var(--ink); }

.link {
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0 0 0 0.5rem;
}

button:focus-visible,
input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The table is wider than a phone and that is fine — it scrolls inside its own
 * box rather than making the page scroll sideways. */
.table-scroll { overflow-x: auto; }

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

th, td {
  text-align: left;
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}

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

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