:root {
  --bg: #0e1518;
  --bg-soft: #141c20;
  --panel: #f6f4f1;
  --panel-strong: #ffffff;
  --ink: #141414;
  --muted: #5b6066;
  --accent: #ff8a3d;
  --accent-dark: #d66a21;
  --outline: rgba(20, 20, 20, 0.12);
  --shadow: 0 16px 40px rgba(4, 8, 12, 0.22);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1b2730 0%, #0e1518 55%, #0b1012 100%);
  color: #f5f2ee;
}

.page {
  min-height: 100vh;
  padding: 40px 24px 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 8px;
}

h1 {
  font-family: "Unbounded", "Space Grotesk", sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 12px;
}

.lede {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.badge {
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 24px;
}

.panel {
  background: var(--panel);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.panel__section + .panel__section {
  margin-top: 24px;
}

.grid {
  display: grid;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
}

.field__label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.field--toggle {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--outline);
  background: rgba(20, 20, 20, 0.04);
}

.field--toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

input[type="number"],
input[type="file"],
input[type="color"],
input[type="range"] {
  font: inherit;
}

input[type="number"],
input[type="file"],
input[type="color"] {
  border-radius: 12px;
  border: 1px solid var(--outline);
  padding: 10px 12px;
  background: var(--panel-strong);
}

input[type="color"] {
  height: 44px;
  padding: 4px;
}

input[type="range"] {
  accent-color: var(--accent);
}

.hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.meta {
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline);
  padding: 16px 0;
}

.meta__label {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.meta__value {
  margin: 4px 0 0;
  font-weight: 600;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  background: var(--accent);
  color: #1b120b;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 18px rgba(255, 138, 61, 0.3);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(255, 138, 61, 0.35);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--outline);
  color: var(--ink);
  box-shadow: none;
}

.canvas-wrap {
  display: flex;
}

.canvas-shell {
  width: 100%;
  border-radius: var(--radius);
  background: #101518;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 24px;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.05) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.05) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
}

.canvas-shell.is-dragging {
  outline: 2px solid rgba(255, 138, 61, 0.6);
  outline-offset: 4px;
}

canvas {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.empty {
  position: absolute;
  text-align: center;
  padding: 32px;
  max-width: 320px;
  color: rgba(255, 255, 255, 0.7);
}

.drop-hint {
  position: absolute;
  inset: 20px;
  display: none;
  place-items: center;
  border-radius: 20px;
  border: 2px dashed rgba(255, 255, 255, 0.5);
  background: rgba(10, 14, 16, 0.78);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.canvas-shell.is-dragging .drop-hint {
  display: grid;
}

.empty__title {
  font-size: 18px;
  margin: 0 0 8px;
  color: #fff;
}

.empty__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .canvas-shell {
    min-height: 320px;
  }
}
