:root {
  --bg: #0f172a;
  --panel: #111827;
  --accent: #38bdf8;
  --accent-2: #a78bfa;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --border: #1f2937;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.12), transparent 30%),
              radial-gradient(circle at 80% 0%, rgba(167, 139, 250, 0.12), transparent 35%),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.card {
  width: min(1100px, 100%);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
header h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.01em;
}
header p {
  margin: 6px 0 0 0;
  color: var(--muted);
  line-height: 1.4;
  font-size: 14px;
}
.section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 16px;
  min-height: 220px;
}
label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0b1220;
  color: var(--text);
  font-size: 14px;
}
.dropzone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  background: #0b1220;
  transition: border-color 120ms ease, background 120ms ease;
  cursor: pointer;
}
.dropzone.dragover {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.06);
}
.dropzone strong { color: var(--accent); }
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}
button {
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b1220;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 120ms ease, transform 120ms ease;
}
button:disabled { opacity: 0.5; cursor: not-allowed; }
button:hover:not(:disabled) { transform: translateY(-1px); }
.status {
  color: var(--muted);
  font-size: 13px;
  min-height: 18px;
}
.preview {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b1220;
  min-height: 320px;
  display: grid;
  place-items: center;
}
.preview img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  background: #0b1220;
}
.file-meta { color: var(--muted); font-size: 13px; margin-top: 6px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  margin-top: 8px;
}
.muted-link { color: var(--muted); text-decoration: none; }
.muted-link:hover { color: var(--accent); }
