:root{
  --bg: #f5f2fa;
  --panel: #ffffff;
  --panel-2: #f1eef8;
  --line: #e0daf0;
  --accent: #6d28d9;
  --accent-soft: #ede4fc;
  --accent-dim: #f6f1fd;
  --text: #201a2e;
  --muted: #6f6480;
  --muted-2: #9c93ac;
  --good: #2e7d4f;
  --bad: #b3402f;
}

.content{ padding: 22px; }

.section-box{
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 16px;
}

.label{
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--muted);
}

.dropzone{
  border: 2px dashed var(--line);
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.dropzone:hover, .dropzone.dragover{ border-color: var(--accent); background: var(--accent-dim); }
.dropzone .icon{ font-size: 28px; margin-bottom: 8px; }
.dropzone .main{ font-size: 14px; font-weight: 600; }
.dropzone .sub{ font-size: 12px; color: var(--muted); margin-top: 4px; }
input[type=file]{ display: none; }

video{ max-width: 100%; max-height: 300px; display: block; margin: 0 auto; border-radius: 8px; }

.settings-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.field{ display: flex; flex-direction: column; gap: 6px; }
.field .rowss{ display: flex; justify-content: space-between; align-items: baseline; }
.field .val{ font-family: 'JetBrains Mono', monospace; color: var(--accent); font-size: 12px; }
input[type=range]{ width: 100%; accent-color: var(--accent); }

.btns{ display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

.app{
  padding: 11px 22px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
  font-family: 'Inter', sans-serif;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  transition: filter .15s ease;
}
.app:hover{ filter: brightness(1.08); }
.app:disabled{ opacity: 0.5; cursor: not-allowed; }
.gray{ background: var(--line); color: var(--text); }

.empty-state{ text-align: center; color: var(--muted-2); padding: 26px 10px; font-size: 13.5px; }
.loading{ text-align: center; padding: 20px 10px; color: var(--accent); font-family: 'JetBrains Mono', monospace; font-size: 13px; }

.progress-bar{ height: 8px; border-radius: 5px; background: var(--line); overflow: hidden; margin: 10px auto 0; max-width: 300px; }
.progress-bar .fill{ height: 100%; background: var(--accent); width: 0%; transition: width .1s linear; }

.result-wrap{ text-align: center; }
.result-wrap img{ max-width: 100%; max-height: 400px; border-radius: 8px; border: 1px solid var(--line); }
.result-stats{
  display: flex; justify-content: center; gap: 20px; margin-top: 12px;
  font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--muted); flex-wrap: wrap;
}
.result-stats b{ color: var(--accent); }

.note{
  margin-top: 14px; font-size: 12px; color: var(--muted); line-height: 1.6;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px;
}
