:root { --fg: #1c1e21; --muted: #6b7280; --bg: #fff; --line: #e5e7eb; --link: #1d4ed8; --head: #f3f4f6; }
@media (prefers-color-scheme: dark) {
  :root { --fg: #e5e7eb; --muted: #9ca3af; --bg: #111827; --line: #374151; --link: #93c5fd; --head: #1f2937; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--fg); background: var(--bg); }
a { color: var(--link); }
header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--head); }
header .brand { font-weight: 700; text-decoration: none; color: var(--fg); }
header nav { display: flex; gap: 16px; flex: 1; }
header .logout { margin: 0; }
main { padding: 16px; max-width: 1400px; margin: 0 auto; }
h1 { font-size: 1.4rem; margin: 0 0 8px; }
h2 { font-size: 1.1rem; margin: 24px 0 8px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--head); position: sticky; top: 0; }
table.facts { width: auto; }
tr.gone td { color: var(--muted); }
.official { display: inline-block; margin-right: 8px; white-space: nowrap; }
.official.trial { font-style: italic; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: var(--line); color: var(--fg); text-decoration: none; white-space: nowrap; }
.badge.warn, .badge.moved { background: #fde68a; color: #78350f; }
.badge.changed { background: #bfdbfe; color: #1e3a8a; }
.badge.new, .badge.reappeared { background: #bbf7d0; color: #14532d; }
.badge.gone { background: #fecaca; color: #7f1d1d; }
.badge.unnamed { background: transparent; border: 1px dashed var(--muted); color: var(--muted); font-weight: 400; }
.badge.trial { background: #e9d5ff; color: #581c87; }
.event { padding: 10px 0; border-bottom: 1px solid var(--line); }
.diffs { margin: 4px 0 0; padding-left: 20px; }
.error { color: #b91c1c; }
form.login { max-width: 320px; margin: 40px auto; display: grid; gap: 12px; }
form.login label { display: grid; gap: 4px; }
input, button { font: inherit; padding: 6px 8px; }
button { cursor: pointer; }
ul.apps { font-size: 1.1rem; }
.weekbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.weektitle h1 { margin: 0; }
.button { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--head); color: var(--fg); text-decoration: none; font-weight: 600; }
.button:hover { border-color: var(--muted); }
.button.disabled { opacity: 0.35; }
.badge.now { background: #bbf7d0; color: #14532d; vertical-align: middle; }
.small { font-size: 13px; }
h2.day { margin: 20px 0 6px; padding-bottom: 4px; border-bottom: 2px solid var(--line); }
table { table-layout: auto; }
.col-time { width: 80px; white-space: nowrap; }
.col-nro { width: 80px; }
