:root {
  --bg: #08090d;
  --panel: rgba(255,255,255,0.075);
  --panel-2: rgba(255,255,255,0.115);
  --text: #f7f7fb;
  --muted: #a2a7b8;
  --line: rgba(255,255,255,0.14);
  --accent: #7c5cff;
  --accent-2: #27d7a2;
  --danger: #ff5e7a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(124,92,255,.28), transparent 28rem),
    radial-gradient(circle at 90% 20%, rgba(39,215,162,.18), transparent 26rem),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0; }
.hero { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 28px; }
.eyebrow { color: var(--accent-2); text-transform: uppercase; letter-spacing: .16em; font-weight: 800; font-size: 12px; }
h1 { margin: 0; font-size: clamp(38px, 7vw, 82px); line-height: .92; max-width: 820px; letter-spacing: -0.07em; }
h2 { margin: 0 0 18px; font-size: 20px; }
.subtext { max-width: 650px; color: var(--muted); font-size: 18px; line-height: 1.55; }
.badge { border: 1px solid var(--line); padding: 10px 14px; border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.06); white-space: nowrap; }
.grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 18px; align-items: stretch; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 28px; padding: 24px; box-shadow: 0 20px 80px rgba(0,0,0,.25); backdrop-filter: blur(20px); }
.dropzone { display: grid; place-items: center; text-align: center; min-height: 210px; border: 1.5px dashed var(--line); border-radius: 22px; background: rgba(255,255,255,.04); cursor: pointer; padding: 24px; transition: .2s; }
.dropzone:hover, .dropzone.drag { border-color: rgba(124,92,255,.9); background: rgba(124,92,255,.10); }
.dropzone input { display: none; }
.dropzone span { font-size: 20px; font-weight: 800; }
.dropzone small { color: var(--muted); margin-top: 8px; display: block; }
.preview { width: 100%; margin-top: 16px; border-radius: 18px; border: 1px solid var(--line); max-height: 320px; object-fit: contain; background: rgba(0,0,0,.3); }
.settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
label { color: var(--muted); font-size: 13px; font-weight: 700; }
input, select { width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.25); color: var(--text); outline: none; }
.check { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: var(--text); }
.check input { width: auto; margin: 0; }
button, .button { display: inline-flex; align-items: center; justify-content: center; border: 0; text-decoration: none; color: white; background: linear-gradient(135deg, var(--accent), #4b80ff); padding: 14px 18px; border-radius: 16px; font-weight: 900; cursor: pointer; min-height: 48px; }
button:disabled { opacity: .55; cursor: not-allowed; }
.button.secondary { background: var(--panel-2); border: 1px solid var(--line); }
.hint { color: var(--muted); font-size: 13px; line-height: 1.5; }
.result { display: flex; flex-direction: column; min-height: 650px; }
.status { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; color: var(--muted); background: rgba(0,0,0,.22); margin-bottom: 16px; white-space: pre-wrap; }
.status.ok { color: var(--accent-2); }
.status.err { color: var(--danger); }
.viewer { flex: 1; min-height: 500px; width: 100%; border-radius: 22px; background: radial-gradient(circle, #2a2d38, #101116); border: 1px solid var(--line); }
.actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.notes { margin-top: 18px; color: var(--muted); line-height: 1.6; }
.hidden { display: none !important; }
@media (max-width: 900px) { .grid, .settings { grid-template-columns: 1fr; } .hero { flex-direction: column; } }
