:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: #111014;
  color: #f5f3f7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

main {
  width: min(960px, calc(100% - 32px));
  margin: 32px auto;
}

header {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

h1,
p {
  margin: 0;
}

.eyebrow {
  color: #bb91ef;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

progress {
  width: 100%;
}

#viewer {
  height: min(62vh, 600px);
  overflow: hidden;
  border: 1px solid #332b3d;
  border-radius: 14px;
  background: white;
}

#viewer canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

button {
  border: 1px solid #76569b;
  border-radius: 8px;
  padding: 10px 14px;
  background: #251d2e;
  color: inherit;
  cursor: pointer;
}

button:hover {
  background: #372744;
}

#controls[disabled] button {
  opacity: 0.45;
  pointer-events: none;
}

pre {
  overflow-x: auto;
  border-radius: 10px;
  padding: 16px;
  background: #1b181f;
  color: #ddd3e7;
}
