/* i18n4live dashboard: one stylesheet, no framework. */
:root {
  --bg: #f7f7f9;
  --fg: #1d1d24;
  --muted: #62626f;
  --card: #ffffff;
  --line: #e2e2e8;
  --accent: #6441a5;
  --ok: #1a7f37;
  --warn: #9a6700;
  --bad: #b42318;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15151a;
    --fg: #e8e8ee;
    --muted: #a0a0ad;
    --card: #1e1e25;
    --line: #33333d;
    --accent: #a58ae0;
    --ok: #4ac26b;
    --warn: #d4a72c;
    --bad: #f47067;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--fg);
}
header, main, footer { max-width: 60rem; margin: 0 auto; padding: 1rem 1.25rem; }
header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
header a.brand { font-weight: 700; color: var(--fg); text-decoration: none; }
footer { color: var(--muted); font-size: 0.875rem; }
a { color: var(--accent); }
h1 { font-size: 1.75rem; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.2rem; margin: 0 0 0.75rem; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 0 0 1rem;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.75rem; }
.stat .label { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.stat .value { font-size: 1.1rem; font-weight: 600; }
.muted { color: var(--muted); }
.ok { color: var(--ok); }
.bad { color: var(--bad); }
.notice { border-left: 4px solid var(--warn); }
.error { border-left: 4px solid var(--bad); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
form.inline { display: inline; }
label { display: block; margin: 0 0 0.75rem; }
label.check { display: flex; gap: 0.5rem; align-items: center; }
input[type="text"], input[type="number"] {
  font: inherit;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg);
  width: 12rem;
}
button, .button {
  font: inherit;
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}
button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
button.danger { background: var(--bad); }
code, pre { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.9rem; }
pre, code.block {
  display: block;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  overflow-x: auto;
  word-break: break-all;
  white-space: pre-wrap;
}
ol li { margin-bottom: 0.4rem; }
