:root {
  color-scheme: dark;
  font-family: Inter, "IBM Plex Sans KR", "Pretendard", system-ui, sans-serif;
  background: #151515;
  color: #f1f1f1;
}
* { box-sizing: border-box; }
body { margin: 0; background: #171717; }
.topbar {
  height: 54px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; border-bottom: 1px solid #333; background: #1d1d1d; position: sticky; top: 0; z-index: 10;
}
.topbar strong { letter-spacing: .08em; }
.muted { color: #9c9c9c; }
.topbar .muted { margin-left: 10px; font-size: 12px; }
.pill { padding: 7px 10px; border: 1px solid #3b3b3b; border-radius: 8px; font-size: 12px; }
.layout { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 14px; padding: 14px; min-height: calc(100vh - 54px); }
.panel { background: #202020; border: 1px solid #343434; border-radius: 12px; padding: 16px; min-width: 0; }
.section-title { font-size: 13px; font-weight: 700; margin: 4px 0 10px; color: #d8d8d8; }
.dropzone { height: 260px; border: 1px dashed #555; border-radius: 10px; background: #181818; display: grid; place-items: center; cursor: pointer; overflow: hidden; text-align: center; }
.dropzone.drag { border-color: #aaa; background: #222; }
.dropzone img { width: 100%; height: 100%; object-fit: contain; display: none; }
.dropzone.has-image img { display: block; }
.dropzone.has-image #dropText { display: none; }
#dropText b, #dropText small { display: block; }
#dropText small { margin-top: 7px; color: #888; }
.status { font-size: 12px; margin: 8px 0 18px; min-height: 18px; }
label { display: block; font-size: 12px; color: #bdbdbd; margin: 10px 0; }
select, textarea { width: 100%; margin-top: 6px; background: #151515; color: #eee; border: 1px solid #3e3e3e; border-radius: 8px; padding: 10px; outline: none; }
select:focus, textarea:focus { border-color: #777; }
textarea { resize: vertical; line-height: 1.5; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.toggle-row input { width: 18px; height: 18px; }
.note { font-size: 12px; color: #979797; line-height: 1.5; margin: 8px 0 12px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
button { border-radius: 8px; border: 1px solid #454545; padding: 11px 12px; cursor: pointer; font-weight: 700; }
button:disabled { opacity: .35; cursor: not-allowed; }
.secondary { background: #292929; color: #eee; }
.primary { background: #ececec; color: #111; border-color: #ececec; }
.quote { margin-top: 12px; padding: 12px; border-radius: 8px; border: 1px solid #4b4b4b; background: #181818; font-size: 13px; line-height: 1.6; }
.right { display: flex; flex-direction: column; min-height: 600px; }
.result-empty { flex: 1; display: grid; place-items: center; min-height: 480px; background: #111; border: 1px solid #303030; border-radius: 10px; color: #666; }
video { width: 100%; max-height: calc(100vh - 180px); background: #000; border-radius: 10px; }
.meta { color: #999; font-size: 12px; white-space: pre-wrap; }
.download { margin-top: 10px; color: #fff; }
.hidden { display: none !important; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }
