:root {
  --bg: #0e1116;
  --card: #151a22;
  --accent: #3ee6a3;
  --accent-dark: #1f8f66;
  --danger: #ff5c5c;
  --text: #f4f6fb;
  --muted: #9aa3b2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Sora", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 20% 20%, #1b2433, #0b0e13 60%),
              radial-gradient(900px 600px at 80% 80%, #182531, #0b0e13 60%);
  min-height: 100vh;
}

.page {
  display: grid;
  gap: 24px;
  padding: 24px;
}

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.brand {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3ee6a3, #51c3ff);
  color: #0b0e13;
  font-weight: 700;
  display: grid;
  place-items: center;
  letter-spacing: 1px;
}

.block {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

label {
  font-size: 0.95rem;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #2a3343;
  background: #0f141c;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

textarea {
  resize: vertical;
}

button {
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #0b0e13;
  font-weight: 700;
  cursor: pointer;
}

button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid #2a3343;
}

button.danger {
  background: var(--danger);
  color: #0b0e13;
}

.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 10px;
  background: #0f141c;
  color: var(--text);
  border: 1px solid #2a3343;
  text-decoration: none;
  font-weight: 600;
}

.msg {
  color: var(--muted);
  min-height: 20px;
}

.viewer {
  background: #0b0e13;
  border-radius: 16px;
  overflow: hidden;
  min-height: 60vh;
  border: 1px solid #1f2a3a;
}

.viewer iframe {
  width: 100%;
  height: 80vh;
  border: 0;
}

.row {
  display: grid;
  gap: 12px;
}

.status {
  background: #0b0e13;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #1f2a3a;
  min-height: 120px;
  white-space: pre-wrap;
}

.hidden {
  display: none;
}

@media (min-width: 900px) {
  .page {
    grid-template-columns: 420px 1fr;
    align-items: start;
  }
  .viewer iframe {
    height: 75vh;
  }
}
