.lichtbak {
  --text: #eef6f0;
  --muted: #b7c9be;
  --line: #3d5246;
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #000000e6;
  display: grid;
  place-items: center;
  padding: 0.3rem;
}
.lichtbak .box {
  display: grid;
  grid-template-rows: 1fr auto;
  background: #12181e;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.25rem;
  width: min(98vw, 100%);
  height: min(98vh, 100%);
  max-width: 98vw;
  max-height: 98vh;
}
.bewerk-vak {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  background: #0c1014;
  border-radius: 0.45rem;
  overflow: hidden;
}
.bewerk-beeld {
  position: relative;
  max-width: 100%;
  max-height: 100%;
}
.bewerk-beeld canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  background: #0c1014;
}
.crop-kader {
  position: absolute;
  box-sizing: border-box;
  border: 2px solid #9be59b;
  box-shadow: 0 0 0 9999px #0008;
  touch-action: none;
  cursor: move;
}
.crop-kader i {
  position: absolute;
  width: 1.35rem;
  height: 1.35rem;
  background: #9be59b;
  border-radius: 0.2rem;
  touch-action: none;
}
.crop-kader i[data-h="nw"] { left: -0.45rem; top: -0.45rem; cursor: nwse-resize; }
.crop-kader i[data-h="ne"] { right: -0.45rem; top: -0.45rem; cursor: nesw-resize; }
.crop-kader i[data-h="se"] { right: -0.45rem; bottom: -0.45rem; cursor: nwse-resize; }
.crop-kader i[data-h="sw"] { left: -0.45rem; bottom: -0.45rem; cursor: nesw-resize; }
.crop-kader i[data-h="n"] { left: 50%; top: -0.4rem; width: 1.7rem; height: 0.7rem; margin-left: -0.85rem; cursor: ns-resize; }
.crop-kader i[data-h="s"] { left: 50%; bottom: -0.4rem; width: 1.7rem; height: 0.7rem; margin-left: -0.85rem; cursor: ns-resize; }
.crop-kader i[data-h="w"] { left: -0.4rem; top: 50%; width: 0.7rem; height: 1.7rem; margin-top: -0.85rem; cursor: ew-resize; }
.crop-kader i[data-h="e"] { right: -0.4rem; top: 50%; width: 0.7rem; height: 1.7rem; margin-top: -0.85rem; cursor: ew-resize; }
.lichtbak-tekst {
  position: absolute;
  left: 0.6rem;
  top: 0.5rem;
  margin: 0;
  color: #eef3f8;
  font-size: 0.85rem;
  font-weight: 650;
  text-shadow: 0 1px 4px #000;
  z-index: 2;
  pointer-events: none;
}
.bewerk-balk {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  padding: 0.4rem 0.3rem 0.25rem;
}
.bewerk-balk button {
  appearance: none;
  border: 0;
  background: #24303a;
  color: var(--text);
  font: inherit;
  font-weight: 650;
  border-radius: 0.65rem;
  min-height: 2.4rem;
  padding: 0 0.75rem;
  cursor: pointer;
}
.bewerk-balk button.groot {
  background: var(--accent);
  font-weight: 700;
  width: auto;
}
.bewerk-balk .kantel {
  flex: 1 1 14rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}
.bewerk-balk .kantel input[type="range"] {
  flex: 1;
  min-width: 5rem;
}
.bewerk-balk .kantel input[type="number"] {
  width: 3.2rem;
  appearance: textfield;
  -moz-appearance: textfield;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #0c1014;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-align: center;
  min-height: 2.4rem;
  padding: 0;
}
.bewerk-balk .kantel input[type="number"]::-webkit-outer-spin-button,
.bewerk-balk .kantel input[type="number"]::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}
.bewerk-balk .kantel .eenheid {
  color: var(--text);
  margin-left: -0.15rem;
}
.bewerk-fout {
  color: #ffb4a8;
  font-size: 0.82rem;
  width: 100%;
  margin: 0;
}
