:root {
  --bg: #080a08;
  --surface: #0e110e;
  --surface-2: #141814;
  --surface-3: #1a1f1a;
  --line: #252c25;
  --line-strong: #354035;
  --text: #f2f6ef;
  --muted: #8e998c;
  --dim: #606a5f;
  --accent: #a7ff35;
  --accent-2: #6ae68e;
  --danger: #ff6577;
  --warning: #ffce5c;
  --radius: 14px;
  --shadow: 0 24px 90px rgba(0,0,0,.46);
}

* { box-sizing: border-box; }
html { color-scheme: dark; background: var(--bg); scroll-behavior: smooth; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: radial-gradient(circle at 50% -15%, rgba(167,255,53,.075), transparent 32rem), var(--bg);
  font-family: Outfit, system-ui, sans-serif;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }
.app-container { width: min(1820px, calc(100% - 40px)); max-width: 1820px; margin: 0 auto; padding: 30px 0 50px; }
.tool-header { padding: 28px 12px 36px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .19em; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px var(--accent); }
.tool-header h1 { margin: 11px 0 8px; font-size: clamp(35px, 5.6vw, 68px); line-height: .98; letter-spacing: -.055em; }
.tool-header h1 span { color: var(--accent); }
.tool-header h1 b { display: inline-block; margin-left: 5px; padding: 6px 8px 5px; transform: translateY(-.9em); border: 1px solid rgba(167,255,53,.4); border-radius: 6px; color: var(--accent); background: rgba(167,255,53,.08); font-size: 10px; letter-spacing: .14em; }
.tool-header p { margin: 14px auto 0; color: var(--muted); font-size: clamp(15px, 1.5vw, 18px); }

.drop-zone { position: relative; min-height: 460px; overflow: hidden; display: grid; place-items: center; border: 1px dashed #394537; border-radius: 20px; outline: none; background: linear-gradient(150deg, rgba(167,255,53,.035), transparent 45%), #0d100d; box-shadow: var(--shadow); transition: border-color .2s, transform .2s, background .2s; cursor: pointer; }
.drop-zone:hover, .drop-zone:focus-visible, .drop-zone.dragover { border-color: var(--accent); background: linear-gradient(150deg, rgba(167,255,53,.075), transparent 52%), #0d110d; }
.drop-zone.dragover { transform: scale(.997); }
.drop-rings i { position: absolute; inset: 50% auto auto 50%; width: 500px; height: 500px; border: 1px solid rgba(167,255,53,.055); border-radius: 50%; transform: translate(-50%,-50%); }
.drop-rings i:last-child { width: 310px; height: 310px; border-color: rgba(167,255,53,.09); }
.drop-content { position: relative; z-index: 1; max-width: 680px; padding: 48px 24px; text-align: center; }
.drop-icon { width: 78px; height: 78px; margin: 0 auto 23px; display: grid; place-items: center; border: 1px solid #32402f; border-radius: 20px; color: var(--accent); background: #151b14; box-shadow: inset 0 0 28px rgba(167,255,53,.06), 0 14px 35px rgba(0,0,0,.35); }
.drop-icon svg { width: 43px; }
.drop-content h2 { margin: 0; font-size: clamp(27px, 3vw, 39px); letter-spacing: -.035em; }
.drop-content > p { margin: 10px 0; color: var(--muted); }
kbd { padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 4px; color: #c9d2c6; background: #171b17; font-size: .78em; }
.drop-content > small { color: #667064; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.drop-actions { display: flex; justify-content: center; gap: 10px; margin-top: 27px; }
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 17px; border: 1px solid var(--line-strong); border-radius: 9px; background: #171b17; font-weight: 650; cursor: pointer; transition: transform .15s, border-color .15s, background .15s; }
.btn:hover { transform: translateY(-1px); border-color: #536151; }
.btn.primary { border-color: var(--accent); color: #10160b; background: var(--accent); box-shadow: 0 9px 28px rgba(167,255,53,.13); }
.btn.primary:hover { background: #b4ff51; }
.btn svg { width: 19px; }
.privacy { margin-top: 22px; display: inline-flex; align-items: center; gap: 7px; color: #71806f; font-size: 12px; }
.privacy svg { width: 15px; }

.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 18px 48px rgba(0,0,0,.25); }
.panel-head, .preview-head { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.panel-head em { display: block; margin-bottom: 4px; color: var(--accent); font-size: 9px; font-style: normal; font-weight: 800; letter-spacing: .17em; }
.panel-head h2 { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.panel-head h2 span { display: inline-grid; min-width: 24px; height: 20px; margin-left: 5px; place-items: center; border-radius: 10px; color: var(--muted); background: var(--surface-3); font-size: 10px; }
.head-actions { display: flex; gap: 6px; }
.icon-btn { width: 36px; height: 36px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface-2); cursor: pointer; }
.icon-btn:hover, .icon-btn.active { border-color: #53624f; color: var(--accent); }
.icon-btn.danger:hover { border-color: rgba(255,101,119,.45); color: var(--danger); }
.icon-btn svg { width: 18px; }

.setting { padding: 17px; border-bottom: 1px solid var(--line); }
.setting-title, .slider-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.setting-title label, .slider-title label, .block-label { color: #cad2c7; font-size: 12px; font-weight: 700; }
.setting-title span { color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.slider-title output { color: var(--accent); font-size: 11px; font-weight: 700; }
.pro-slider { width: 100%; height: 4px; accent-color: var(--accent); cursor: pointer; }
.range-labels { display: flex; justify-content: space-between; margin-top: 7px; color: var(--dim); font-size: 9px; }
.compact { display: grid; gap: 13px; }
.select-row, .color-row, .toggle { min-height: 51px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.select-row > span, .color-row > span:first-child, .toggle > span { display: grid; gap: 2px; color: #d6ddd3; font-size: 12px; font-weight: 600; }
.select-row small, .color-row small, .toggle small { color: var(--dim); font-size: 9px; font-weight: 400; }
select, input[type="number"], textarea { border: 1px solid var(--line-strong); border-radius: 7px; outline: none; color: #dfe5dc; background: var(--surface-2); }
select { max-width: 150px; padding: 8px 29px 8px 9px; font-size: 11px; }
input[type="number"] { width: 82px; padding: 8px; font-size: 11px; }
textarea { width: 100%; padding: 10px; resize: vertical; line-height: 1.4; }
select:focus, input:focus, textarea:focus { border-color: var(--accent); }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle i { position: relative; width: 38px; height: 22px; flex: 0 0 auto; border-radius: 12px; background: #2a3029; transition: background .2s; }
.toggle i::after { content: ""; position: absolute; width: 16px; height: 16px; top: 3px; left: 3px; border-radius: 50%; background: #8a9487; transition: transform .2s, background .2s; }
.toggle input:checked + i { background: rgba(167,255,53,.24); }
.toggle input:checked + i::after { transform: translateX(16px); background: var(--accent); }
.toggle:focus-within i { outline: 2px solid var(--accent); outline-offset: 2px; }
.color-row > span:last-child { display: flex; gap: 6px; }
input[type="color"] { width: 38px; height: 32px; padding: 2px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface-2); }
.color-row button, .ratio-grid button, .timeline-tools button, .batch-delay button { border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--surface-2); font-size: 10px; cursor: pointer; }

.toast { position: fixed; z-index: 50; left: 50%; bottom: 28px; max-width: min(440px, calc(100% - 30px)); padding: 12px 16px; transform: translateX(-50%); border: 1px solid #3c4939; border-radius: 9px; color: #e4eadf; background: #151a14; box-shadow: var(--shadow); font-size: 12px; }
.toast.error { border-color: rgba(255,101,119,.5); }
button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 720px) {
  .app-container { width: min(100% - 20px, 1820px); padding-top: 12px; }
  .tool-header { padding: 20px 5px 27px; }
  .drop-zone { min-height: 410px; }
  .drop-actions { flex-direction: column; }
  .drop-actions .btn { width: 100%; }
  .privacy { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

