:root {
  --paper: #f6f1e7; --card: #fffdf8; --ink: #2b2118; --muted: #7a6a5b; --line: #e4d9c6;
  --accent: #c2571f; --good: #3f7d4e; --bad: #b3402e; --warn: #b07a1a; --soft: #efe6d5;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 'Public Sans', system-ui, sans-serif; }
h1, h2, h3, .brand, .big { font-family: 'Newsreader', Georgia, serif; font-weight: 600; }
h1 { font-size: 30px; margin: 0 0 4px; }
h2 { font-size: 20px; margin: 0 0 12px; }
p { margin: 0 0 10px; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #f1e7d6; padding: 24px 16px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { font-size: 22px; padding: 0 8px 22px; }
.brand small { display: block; font: 400 12px 'Public Sans', sans-serif; color: #b9a995; margin-top: 2px; }
nav { display: flex; flex-direction: column; gap: 2px; }
nav button { all: unset; cursor: pointer; padding: 9px 12px; border-radius: 8px; color: #d9cbb6; display: flex; align-items: center; gap: 8px; }
nav button:hover { background: #3a2d22; }
nav button.active { background: var(--accent); color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #f0b429; display: inline-block; }
.side-foot { margin-top: auto; font-size: 12px; color: #b9a995; padding: 0 8px; }
main { padding: 32px 40px 80px; max-width: 1180px; width: 100%; }

.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.btn { font: 600 14px 'Public Sans', sans-serif; background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 9px 16px; cursor: pointer; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); padding: 5px 10px; font-size: 13px; }
.btn.ghost:hover { background: var(--soft); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.card .label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.big { font-size: 38px; line-height: 1.1; margin: 6px 0 2px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin-bottom: 22px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } .shell { grid-template-columns: 1fr; } .side { position: static; height: auto; } main { padding: 20px 16px 60px; } }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 500; padding: 6px 10px 8px; border-bottom: 1px solid var(--line); }
td { padding: 9px 10px; border-bottom: 1px solid var(--soft); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.scroll { overflow-x: auto; }

.cell { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 13px; cursor: pointer; border: 0; font-family: inherit; white-space: nowrap; }
.cell.yes { background: #dfeedd; color: var(--good); font-weight: 600; }
.cell.no { background: var(--soft); color: var(--muted); }
.cell.seen { background: #f5e6c4; color: var(--warn); }
.cell.err { background: #f6dcd6; color: var(--bad); }
.tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--soft); color: var(--muted); margin-left: 6px; vertical-align: middle; }
.lvl { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.lvl.hoog { background: #f6dcd6; color: var(--bad); } .lvl.midden { background: #f5e6c4; color: var(--warn); } .lvl.laag { background: var(--soft); color: var(--muted); }
.up { color: var(--good); } .down { color: var(--bad); }
.bar { height: 8px; border-radius: 4px; background: var(--soft); min-width: 90px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--muted); }
.us td { background: #fbeee4; } .us .bar i { background: var(--accent); }

.actions { list-style: none; margin: 0; padding: 0; }
.actions li { display: grid; grid-template-columns: 76px 64px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--soft); align-items: start; }
.actions li:last-child { border-bottom: 0; }
.add { display: flex; gap: 8px; margin-top: 14px; }
.add input { flex: 1; font: inherit; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.x { all: unset; cursor: pointer; color: var(--muted); padding: 0 6px; font-size: 18px; line-height: 1; }
.x:hover { color: var(--bad); }
.empty { text-align: center; padding: 34px 20px; color: var(--muted); }
.steps { margin: 8px 0 0; padding-left: 20px; } .steps li { margin-bottom: 6px; }
code { background: var(--soft); padding: 1px 6px; border-radius: 4px; font-size: 13px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.status::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.status.on { color: var(--good); } .status.on::before { background: var(--good); }
.status.off { color: var(--muted); }
.progress { height: 6px; background: var(--soft); border-radius: 3px; overflow: hidden; margin-top: 10px; }
.progress i { display: block; height: 100%; background: var(--accent); transition: width .4s; }
.error { background: #f6dcd6; color: var(--bad); border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; }
svg.chart { width: 100%; height: 150px; display: block; }
details summary { cursor: pointer; }
.issues { margin: 8px 0 0; padding: 0; list-style: none; } .issues li { padding: 4px 0; display: flex; gap: 10px; align-items: baseline; }

.modal { position: fixed; inset: 0; background: rgba(43, 33, 24, .5); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow-y: auto; z-index: 10; }
.modal[hidden] { display: none; }
.modal-box { background: var(--card); border-radius: 14px; max-width: 760px; width: 100%; padding: 28px 30px; position: relative; }
.modal-x { all: unset; position: absolute; top: 14px; right: 18px; font-size: 26px; cursor: pointer; color: var(--muted); }
.answer { white-space: pre-wrap; background: var(--paper); border-radius: 10px; padding: 16px 18px; margin: 12px 0 18px; max-height: 46vh; overflow-y: auto; }
.answer mark { background: #f7c9a8; padding: 0 2px; border-radius: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip { background: var(--soft); border-radius: 999px; padding: 2px 10px; font-size: 13px; }
.chip.us { background: var(--accent); color: #fff; font-weight: 600; }
