:root {
  --bg: #111214; --panel: #1b1d21; --line: #2c2f36; --text: #e8e6e3; --muted: #9aa0a8;
  --accent: #f0b429; --red: #ef5350; --orange: #ff9f43; --green: #4caf7d; --blue: #5aa9e6;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
header.top { display: flex; gap: 24px; align-items: center; padding: 12px 20px; background: #0b0b0c; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { color: var(--accent); font-weight: 700; letter-spacing: .02em; }
nav a { color: var(--text); margin-right: 16px; }
main { max-width: 1280px; margin: 0 auto; padding: 16px 20px 40px; }
footer { color: var(--muted); font-size: 12px; text-align: center; padding: 16px; border-top: 1px solid var(--line); }
h1 { font-size: 22px; margin: 8px 0 12px; }
h2 { font-size: 17px; margin: 28px 0 10px; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
h3 { font-size: 15px; margin: 16px 0 6px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.err { color: var(--red); font-size: 13px; }
.notice { background: #2b2410; border: 1px solid #5b4a12; padding: 10px 12px; border-radius: 6px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.tile b { display: block; font-size: 24px; }
.tile span { color: var(--muted); font-size: 13px; }
.tile.warn { border-color: var(--orange); }
table { border-collapse: collapse; width: 100%; }
table.list th, table.list td, table.kv th, table.kv td, table.diff td { border-bottom: 1px solid var(--line); padding: 7px 8px; text-align: left; vertical-align: top; }
table.list th { color: var(--muted); font-weight: 600; font-size: 13px; }
table.kv th { width: 260px; color: var(--muted); font-weight: 600; }
tr.quiet { opacity: .6; }
tr.ed-verworfen { opacity: .45; text-decoration: line-through; }
table.diff td:first-child { color: var(--muted); width: 140px; font-size: 13px; }
table.diff td:nth-child(2) { width: 120px; font-size: 13px; }
table.diff tr.add td:last-child { background: rgba(76, 175, 125, .12); }
table.diff tr.del td:last-child { background: rgba(239, 83, 80, .12); }
table.diff tr.again td:last-child { background: rgba(90, 169, 230, .10); }
.pre { white-space: pre-wrap; font-size: 13px; }
.chip { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; font-size: 12px; margin: 1px 2px; color: var(--text); }
.fact-offiziell_bestaetigt { border-color: var(--green); }
.fact-technische_aenderung { border-color: var(--blue); }
.fact-datamining_fund { border-color: var(--orange); }
.fact-spekulation { border-color: var(--red); }
.ver-verifiziert { border-color: var(--green); }
.ver-teilweise_verifiziert { border-color: var(--accent); }
.ver-ungeklaert { border-color: var(--red); }
.sev { display: inline-block; min-width: 54px; text-align: center; border-radius: 4px; padding: 1px 6px; font-size: 12px; font-weight: 700; }
.sev-hoch { background: var(--red); color: #fff; }
.sev-mittel { background: var(--orange); color: #111; }
.sev-niedrig { background: var(--blue); color: #111; }
.sev-info { background: var(--line); color: var(--muted); }
.health { font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: var(--line); }
.h-ok { background: var(--green); color: #111; }
.h-warnung { background: var(--orange); color: #111; }
.h-fehler { background: var(--red); color: #fff; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 4px 14px; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
form.inline { display: inline-block; margin-right: 12px; }
button, select { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; font: inherit; cursor: pointer; }
button.primary { background: var(--accent); color: #111; border-color: var(--accent); font-weight: 600; }
button:disabled { opacity: .5; cursor: default; }
ul.metrics li { margin: 4px 0; }
code { background: var(--panel); padding: 1px 5px; border-radius: 4px; }
@media (max-width: 1100px) { table.list { display: block; overflow-x: auto; } }
@media (max-width: 720px) { table.kv th { width: auto; } main { padding: 12px; } }

details.script { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; margin: 10px 0; }
details.script summary { cursor: pointer; }
.md h2 { font-size: 18px; } .md h3 { font-size: 16px; color: var(--text); } .md h4 { font-size: 14px; }
.md blockquote { border-left: 3px solid var(--accent); margin: 8px 0; padding: 4px 10px; color: var(--muted); }
.md pre.copy { background: #0d0e10; border: 1px solid var(--line); padding: 10px; white-space: pre-wrap; border-radius: 6px; }
.md li { margin: 3px 0; }
a.button { display: inline-block; border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; color: var(--text); }
a.button.primary { background: var(--accent); color: #111; border-color: var(--accent); font-weight: 600; }
a.button:hover { text-decoration: none; filter: brightness(1.08); }
.notice.ok { background: #12281c; border-color: #2c6b47; }
form.upload { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.login { max-width: 380px; margin: 48px auto; padding: 8px 20px 16px; }
.login label { display: block; margin: 12px 0; color: var(--muted); font-size: 13px; }
.login input { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.login button { width: 100%; margin-top: 8px; padding: 8px; }
nav form.logout { display: inline; }
nav form.logout button { padding: 2px 8px; font-size: 13px; }
