/* Same colors as the shop app so the two feel like one business */
:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --surface2: #243044;
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --accent: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: #334155;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
#app { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }
h1 { margin: 8px 0 16px; font-size: 28px; }
h2 { margin: 0 0 12px; font-size: 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.big { font-size: 22px; font-weight: 600; margin: 0 0 12px; }
code { background: var(--surface2); padding: 1px 6px; border-radius: 4px; }

/* The logo file is black on clear; flip it to white on the dark page */
.logo { width: 280px; max-width: 80%; filter: invert(1); }
.small-logo { width: 110px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.center { max-width: 420px; margin: 8vh auto 0; text-align: center; }
.center form { text-align: left; }

form { display: grid; gap: 12px; }
label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
input {
  background: var(--bg); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px; font-size: 16px;
}
input:focus { outline: 2px solid var(--primary); border-color: transparent; }
button {
  background: var(--surface2); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 16px; font-size: 15px; cursor: pointer;
}
button:hover:not(:disabled) { border-color: var(--muted); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.primary { background: var(--primary); border-color: var(--primary); font-weight: 600; }
button.primary:hover:not(:disabled) { background: var(--primary-dark); }
button.link { background: none; border: none; color: var(--muted); padding: 0; justify-self: start; }
.msg { min-height: 1.5em; margin: 12px 0 0; }
.msg.error { color: var(--danger); }
.msg.ok { color: var(--accent); }

.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.topbar .title { font-size: 20px; font-weight: 700; margin-right: auto; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.wide { grid-column: 1 / -1; }
.stats { display: flex; gap: 24px; margin: 0; }
.stats dt { color: var(--muted); font-size: 13px; }
.stats dd { margin: 0; font-size: 22px; font-weight: 600; }

.row { grid-template-columns: 1fr 1.4fr 1fr auto; }
@media (max-width: 700px) { .row { grid-template-columns: 1fr; } }

table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 500; }
tr.off td { color: var(--muted); }
