:root {
  --bg: #0f1729;
  --card: #121b2f;
  --accent: #5fd1ff;
  --text: #e6eefc;
  --muted: #90a0c1;
  --border: #1f2b44;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0,0,0,0.35);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(circle at 10% 20%, rgba(95,209,255,0.12), transparent 35%),
              radial-gradient(circle at 80% 0%, rgba(255,255,255,0.06), transparent 30%),
              #0b1220;
  color: var(--text);
}

.page {
  max-width: 960px;
  margin: 48px auto 64px;
  padding: 0 20px;
}

header h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 8px 0 12px;
  line-height: 1.2;
}

.eyebrow {
  display: inline-flex;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede { color: var(--muted); max-width: 640px; }

.uploader {
  margin: 28px 0;
}

.uploader__surface {
  position: relative;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 36px;
  background: linear-gradient(135deg, rgba(95,209,255,0.08), rgba(95,209,255,0.02));
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.uploader__surface.is-dragover {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(95,209,255,0.15), rgba(95,209,255,0.06));
}

.uploader__label { font-size: 20px; margin: 0 0 6px; }
.uploader__sub { margin: 0 0 8px; color: var(--muted); }
.uploader__hint { margin: 0; color: var(--muted); font-size: 13px; }

button {
  background: var(--accent);
  color: #041225;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 30px rgba(95,209,255,0.25);
}

button:hover { transform: translateY(-1px); }
button:active { transform: translateY(0); }

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

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 12px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.panel__head {
  font-weight: 600;
  margin-bottom: 12px;
}

#preview {
  width: 100%;
  height: 320px;
  background: #0a101d;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  resize: vertical;
}

.status { color: var(--muted); margin-bottom: 8px; }
.actions { display: flex; gap: 10px; }

progress {
  width: 100%;
  height: 12px;
  appearance: none;
  -webkit-appearance: none;
  margin-bottom: 10px;
}

progress::-webkit-progress-bar { background: #0a101d; border-radius: 999px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 999px; }

@media (max-width: 640px) {
  .page { margin: 28px auto 48px; }
  .uploader__surface { padding: 28px 18px; }
  #preview { height: 240px; }
}
