/* /opt/m-messenger/public-console/console.css – Verwaltungskonsole */
:root {
  --brand: #1565c0; --brand-ink: #fff; --brand-tint: #e3edfb;
  --bg: #f4f6f9; --surface: #fff; --ink: #18202b; --muted: #5f6b7a; --line: #dfe4ea;
  --danger: #c62828; --ok: #2e7d32; --warn: #b26a00; --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --brand: #64a8f0; --brand-ink: #0b1420; --brand-tint: #16263a; --bg: #0f141a; --surface: #182029; --ink: #e6ebf1;
    --muted: #9aa7b6; --line: #2a3542; --danger: #ef6b6b; --ok: #6cc070; --warn: #e0a040; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 var(--font); background: var(--bg); color: var(--ink); }
a { color: var(--brand); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.brand img { border-radius: 6px; }
nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
nav a, nav .link { padding: 6px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font: inherit; }
nav a.on { background: var(--brand-tint); color: var(--brand); font-weight: 600; }
main { max-width: 1200px; margin: 0 auto; padding: 16px; }
h1 { font-size: 22px; margin: 4px 0 12px; }
h2 { font-size: 17px; margin: 22px 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.narrow { max-width: 420px; margin: 40px auto; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.spread { justify-content: space-between; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.tile .v { font-size: 24px; font-weight: 650; font-variant-numeric: tabular-nums; }
.tile .l { color: var(--muted); font-size: 13px; }
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; }
tbody tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--brand-tint); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; background: var(--muted); }
.dot.ok { background: var(--ok); } .dot.error, .dot.missing { background: var(--danger); }
.err { color: var(--danger); }
form.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 14px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
label.full { grid-column: 1 / -1; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-width: 0; }
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; }
button { font: inherit; cursor: pointer; border: 0; border-radius: 8px; padding: 8px 14px; background: var(--brand); color: var(--brand-ink); font-weight: 600; }
button.ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); }
button.danger { background: transparent; color: var(--danger); border: 1px solid var(--line); }
button.link { background: none; color: var(--ink); font-weight: 400; }
button:disabled { opacity: .55; cursor: default; }
.stack > * + * { margin-top: 10px; }
#toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 10px; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; }
@media (max-width: 640px) { main { padding: 12px; } .tile .v { font-size: 20px; } }
details summary { cursor: pointer; color: var(--brand); padding: 4px 0; }
details[open] summary { margin-bottom: 8px; }
.code { font: 700 34px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .12em; text-align: center; padding: 6px 0; }
nav[hidden] { display: none; }
.center { text-align: center; }
img.qr { display: block; margin: 0 auto; width: 220px; height: 220px; image-rendering: pixelated; background: #fff; border-radius: 8px; }
