:root {
  color-scheme: light;
  color: #000;
  background: #fff;
  font-family: Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
.login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
}
.login form { margin: 24px; }
.login input {
  width: min(240px, calc(100vw - 48px));
  padding: 12px;
  border: 1px solid #000;
  border-radius: 0;
  outline: none;
  color: #000;
  background: #fff;
  font: inherit;
}
.login input::placeholder { color: #000; opacity: 1; }
.login input:focus-visible { outline: 1px solid #000; outline-offset: 3px; }
#stage { width: 100%; height: 100dvh; }
canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; outline: none; }
canvas.dragging { cursor: grabbing; }
dialog {
  width: min(90vw, 80dvh);
  max-width: none;
  max-height: 90dvh;
  padding: 0;
  border: 1px solid #000;
  color: #000;
  background: #fff;
}
dialog::backdrop { background: #fff; }
#preview { display: block; width: 100%; image-rendering: pixelated; }
#close-details {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: #fff;
  cursor: pointer;
}
#close-details::before, #close-details::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 6px;
  width: 20px;
  height: 1px;
  background: #000;
  transform: rotate(45deg);
}
#close-details::after { transform: rotate(-45deg); }
#close-details:focus-visible { outline: 1px solid #000; }
