:root {
  --achtergrond: rgba(24, 26, 28, 0.86);
  --tekst: #f2efe9;
  --gedempt: #b9b4aa;
  --accent: #e0a35c;
  --fout: #ff8a7a;
}

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #bfd8ea;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--tekst);
}

canvas { display: block; touch-action: none; }

#paneel {
  position: absolute;
  top: 12px;
  left: 12px;
  width: min(340px, calc(100vw - 24px));
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--achtergrond);
  font-size: 14px;
  line-height: 1.4;
}

#paneel header { display: flex; align-items: center; justify-content: space-between; }
#paneel h1 { margin: 0; font-size: 17px; }
#paneel h2 { margin: 10px 0 4px; font-size: 13px; color: var(--accent); }
#paneel ul { margin: 0; padding-left: 18px; }
#paneel label { display: block; margin-top: 10px; }
#paneel select, #paneel input { font: inherit; margin-left: 6px; }
#paneel input { width: 70px; }
#paneel details { margin-top: 10px; }
#paneel summary { cursor: pointer; color: var(--accent); }
#paneel.ingeklapt #paneel-inhoud { display: none; }

#inklappen {
  background: none;
  border: 1px solid var(--gedempt);
  color: var(--tekst);
  border-radius: 6px;
  width: 28px;
  height: 24px;
  cursor: pointer;
}

#info { margin-top: 10px; }
#info .omschrijving { color: var(--gedempt); margin-bottom: 6px; }
#info table { border-collapse: collapse; width: 100%; }
#info td { padding: 1px 0; vertical-align: top; }
#info td:last-child { text-align: right; white-space: nowrap; padding-left: 8px; }
#info .waarschuwing { color: var(--fout); margin-top: 6px; }
#info .meting { color: var(--accent); margin-top: 6px; }

#melding {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--achtergrond);
  font-size: 15px;
  pointer-events: none;
}
#melding.fout { color: var(--fout); white-space: pre-wrap; }

#hoofdruimte {
  position: absolute;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--achtergrond);
  color: var(--fout);
  font-weight: 600;
  pointer-events: none;
}
