.void-page::before {
  background:
    radial-gradient(circle at 83% 8%, rgba(228,243,242,.07), transparent 31rem),
    linear-gradient(112deg, #000 0%, #050505 48%, #000 100%);
}

.void-main { min-height: 70vh; }

.void-tool {
  padding-top: clamp(3.5rem, 7vw, 6.5rem);
  padding-bottom: clamp(5rem, 9vw, 8rem);
}

.void-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
  padding-bottom: clamp(2.8rem, 5vw, 4.5rem);
}

.void-heading h1 {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 5.8rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .2em;
  text-shadow: 0 0 16px rgba(255,255,255,.23);
}

.void-heading__intro {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  color: var(--soft);
  font-size: clamp(.78rem, 1.15vw, .92rem);
  line-height: 1.75;
}

.void-workspace {
  display: grid;
  grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
}

.void-controls {
  display: grid;
  gap: 1rem;
}

.void-panel,
.void-stage {
  border: 1px solid var(--line);
  background: rgba(0,0,0,.5);
}

.void-panel { padding: 1.25rem; }

.panel-heading,
.stage-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.void-panel h2,
.void-stage h2 {
  margin: 0;
  font-size: .67rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .2em;
}

.panel-heading > span,
.stage-heading p,
.text-button {
  color: #737373;
  font-family: inherit;
  font-size: .56rem;
  letter-spacing: .1em;
}

.text-button {
  padding: .25rem 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.text-button:hover,
.text-button:focus-visible { color: #fff; }
.text-button:disabled { color: #444; cursor: not-allowed; }

.drop-zone {
  min-height: 13rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .65rem;
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px dashed #414141;
  text-align: center;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.drop-zone.is-dragging {
  border-color: #e4f3f2;
  background: rgba(228,243,242,.035);
  box-shadow: inset 0 0 22px rgba(228,243,242,.04);
}

.drop-zone:focus-within .void-button--primary {
  outline: 1px solid #fff;
  outline-offset: 5px;
}

.drop-zone p {
  margin: 0;
  font-size: .69rem;
  letter-spacing: .14em;
}

.drop-zone > span,
.upload-limit {
  color: #707070;
  font-size: .62rem;
  line-height: 1.65;
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.upload-limit { margin: .8rem 0 0; }

.void-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .75rem 1rem;
  border: 1px solid #4a4a4a;
  border-radius: 0;
  background: #050505;
  color: var(--white);
  font-family: inherit;
  font-size: .63rem;
  line-height: 1.2;
  letter-spacing: .14em;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.void-button:hover,
.void-button:focus-visible {
  border-color: #d9e4e2;
  background: #0d0e0d;
}

.void-button:disabled {
  border-color: #242424;
  color: #505050;
  cursor: not-allowed;
}

.void-button--primary { margin-top: .5rem; }

.adjustments { padding-bottom: 1.4rem; }

.range-control {
  margin-top: 1.15rem;
}

.range-control > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .55rem;
  color: #9b9b9b;
  font-size: .58rem;
  line-height: 1.4;
  letter-spacing: .11em;
}

.range-control output { color: #e1e1df; }

.range-control input[type="range"] {
  width: 100%;
  height: 1.6rem;
  margin: 0;
  accent-color: #e4f3f2;
  cursor: pointer;
}

.palette-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-top: 1.35rem;
}

.palette-controls label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  color: #9b9b9b;
  font-size: .56rem;
  letter-spacing: .09em;
}

.palette-controls input[type="color"] {
  width: 2.1rem;
  height: 1.8rem;
  padding: 2px;
  border: 1px solid #444;
  border-radius: 0;
  background: #000;
  cursor: pointer;
}

.toggle-control {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-top: 1.3rem;
  color: #9b9b9b;
  font-size: .58rem;
  letter-spacing: .1em;
  cursor: pointer;
}

.toggle-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-control span {
  width: 2rem;
  height: 1rem;
  padding: 2px;
  border: 1px solid #4a4a4a;
  background: #070707;
}

.toggle-control span::after {
  content: "";
  display: block;
  width: .62rem;
  height: .62rem;
  background: #707070;
  transition: transform 150ms ease, background-color 150ms ease;
}

.toggle-control input:checked + span::after {
  background: #e4f3f2;
  transform: translateX(.95rem);
}

.toggle-control input:focus-visible + span {
  outline: 1px solid #fff;
  outline-offset: 4px;
}

.void-stage {
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.5rem);
}

.stage-heading {
  min-height: 2.3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #181818;
}

.stage-heading p { margin: 0; }

.void-canvas-wrap {
  position: relative;
  min-height: clamp(25rem, 55vw, 45rem);
  display: grid;
  place-items: center;
  margin-top: 1.25rem;
  overflow: hidden;
  border: 1px solid #191919;
  background:
    linear-gradient(45deg, #080808 25%, transparent 25%),
    linear-gradient(-45deg, #080808 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #080808 75%),
    linear-gradient(-45deg, transparent 75%, #080808 75%),
    #050505;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

#void-canvas {
  display: none;
  width: auto;
  height: auto;
  max-width: calc(100% - clamp(1rem, 5vw, 4rem));
  max-height: calc(72vh - 2rem);
  background: #202320;
}

.void-canvas-wrap.has-image #void-canvas { display: block; }

.canvas-empty {
  display: grid;
  place-items: center;
  gap: 1.4rem;
  color: #555;
  text-align: center;
}

.void-canvas-wrap.has-image .canvas-empty { display: none; }

.canvas-empty span {
  width: clamp(7rem, 16vw, 12rem);
  aspect-ratio: 1;
  border: 1px solid #282828;
  border-radius: 50%;
  box-shadow: 0 0 45px rgba(255,255,255,.025), inset 0 0 35px rgba(255,255,255,.025);
}

.canvas-empty p {
  margin: 0;
  font-size: .62rem;
  letter-spacing: .14em;
}

.stage-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: 1.25rem;
}

.stage-actions p {
  max-width: 30rem;
  margin: 0;
  color: #777;
  font-size: .62rem;
  line-height: 1.65;
}

.void-button--download { min-width: 12.5rem; }
.void-button--download span { margin-left: .7rem; }

.void-error {
  min-height: 1.1rem;
  margin: 1rem 0 0;
  color: #d6a6a6;
  font-size: .64rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .void-heading { align-items: start; flex-direction: column; gap: 1.5rem; }
  .void-workspace { grid-template-columns: 1fr; }
  .void-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .void-canvas-wrap { min-height: min(70vw, 36rem); }
}

@media (max-width: 650px) {
  .void-heading h1 { letter-spacing: .12em; }
  .void-controls { grid-template-columns: 1fr; }
  .void-stage { padding: .85rem; }
  .void-canvas-wrap { min-height: 68vw; }
  .stage-actions { align-items: stretch; flex-direction: column; }
  .void-button--download { width: 100%; }
  .palette-controls { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .drop-zone,
  .void-button,
  .toggle-control span::after { transition: none; }
}
