* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #0f172a;
  color: #e5e7eb;
  font-family: "Outfit", system-ui, sans-serif;
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 30px 0 46px;
}

header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.back {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 700;
}

h1 {
  margin: 0;
  color: #fff;
  font-family: "Bowlby One SC", Impact, sans-serif;
  font-size: clamp(2rem, 6vw, 4.2rem);
  letter-spacing: 0;
}

p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.45;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 18px;
}

.panel {
  background: #111827;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 18px;
}

label {
  display: block;
  margin-bottom: 14px;
  color: #cbd5e1;
  font-weight: 700;
}

input,
textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid #334155;
  border-radius: 6px;
  background: #0b1220;
  color: #f8fafc;
  font: inherit;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

button {
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 13px 16px;
  background: #2dd4bf;
  color: #042f2e;
  font: 800 1rem "Outfit", system-ui, sans-serif;
  cursor: pointer;
}

button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.status {
  min-height: 22px;
  margin-top: 12px;
  color: #fbbf24;
  font-weight: 700;
}

.preview-panel {
  display: grid;
  gap: 10px;
  align-content: start;
}

h2 {
  margin: 2px 0 0;
  color: #f8fafc;
  font-size: 1rem;
}

.preview {
  min-height: 220px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #020617;
}

.preview img,
.preview video {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.empty {
  color: #64748b;
  font-weight: 700;
}

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