* { box-sizing: border-box; }
:root {
  color-scheme: dark;
  --bg: #0b0b0d;
  --card: #151518;
  --card2: #1c1c20;
  --text: #f7f7f8;
  --muted: #a8a8b0;
  --line: #2a2a30;
  --accent: #f3f3f3;
  --accentText: #111;
}
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { min-height: 100vh; }
.app { width: min(720px, 100%); margin: 0 auto; padding: 18px 14px calc(30px + env(safe-area-inset-bottom)); }
.hero { padding: 16px 4px 10px; }
.eyebrow { margin: 0 0 5px; font-size: 11px; letter-spacing: .16em; color: var(--muted); font-weight: 700; }
h1 { margin: 0; font-size: clamp(30px, 9vw, 48px); line-height: 1; letter-spacing: -.04em; }
.sub { margin: 12px 0 0; color: var(--muted); line-height: 1.45; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-top: 12px; }
.card h2 { font-size: 17px; margin: 0 0 14px; }
.dropzone { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:145px; border:1.5px dashed #3b3b42; border-radius:15px; background:var(--card2); cursor:pointer; text-align:center; padding:18px; }
.dropzone.drag { border-color:#fff; background:#242429; }
.dropzone input { display:none; }
.drop-title { font-weight:800; font-size:18px; }
.drop-sub { margin-top:6px; color:var(--muted); font-size:13px; }
.count-row { display:flex; align-items:center; justify-content:space-between; margin-top:12px; gap:12px; }
button, select { font: inherit; }
button { border:0; border-radius:12px; cursor:pointer; font-weight:750; }
button:disabled { opacity:.45; cursor:not-allowed; }
.ghost { padding:9px 12px; color:var(--text); background:#222227; }
.presets { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.preset { padding:12px 10px; background:#232328; color:#ddd; border:1px solid #303036; }
.preset.active { background:#f1f1f2; color:#111; border-color:#f1f1f2; }
.controls { display:grid; gap:14px; margin-top:18px; }
.controls label { display:grid; grid-template-columns:1fr auto; gap:8px; font-size:14px; }
.controls label span { color:var(--muted); }
.controls input[type=range] { grid-column:1/-1; width:100%; accent-color:#fff; }
.select-label { display:grid; gap:8px; font-size:14px; margin-top:12px; }
.select-label:first-of-type { margin-top:0; }
select { width:100%; background:#222227; color:var(--text); border:1px solid #34343a; border-radius:12px; padding:12px; }
.toggle-row { display:flex; gap:9px; align-items:center; margin-top:14px; color:#dedee4; font-size:14px; }
.note { font-size:12px; line-height:1.45; color:var(--muted); margin:12px 0 0; }
.preview-head { display:flex; justify-content:space-between; gap:12px; align-items:baseline; }
.preview-head span { color:var(--muted); font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:58%; }
.preview-wrap { position:relative; display:flex; align-items:center; justify-content:center; background:#08080a; border-radius:14px; overflow:hidden; min-height:220px; max-height:520px; }
#previewCanvas { width:100%; height:auto; display:none; }
#previewEmpty { color:#73737c; font-size:13px; padding:40px 14px; text-align:center; }
.primary, .secondary { width:100%; padding:15px 16px; font-size:16px; }
.primary { background:#fff; color:#111; }
.secondary { margin-top:12px; background:#2b2b31; color:#fff; }
.progress-wrap { margin-top:14px; }
.progress { height:10px; background:#27272d; border-radius:999px; overflow:hidden; }
#progressBar { width:0%; height:100%; background:#fff; transition:width .15s ease; }
.progress-text { display:flex; justify-content:space-between; gap:12px; color:var(--muted); font-size:12px; margin-top:7px; }
.status { color:#cfcfd5; line-height:1.45; font-size:13px; margin:12px 0 0; }
.hidden { display:none !important; }
footer { color:#696971; font-size:11px; text-align:center; padding:18px 10px 0; line-height:1.4; }
@media (min-width: 600px) {
  .presets { grid-template-columns:repeat(4,1fr); }
  .card { padding:18px; }
}


.wow-btn {
  background: linear-gradient(135deg, #f8f8f8, #d7e7ff);
  color: #111;
  border-color: #d7e7ff;
}
.preset.wow-btn.active {
  background: linear-gradient(135deg, #ffffff, #b8d7ff);
  color: #111;
  border-color: #ffffff;
}
