:root { --bg:#0e1015; --pan:#161922; --line:#262b38; --tx:#e9ecf3; --mut:#8b93a7; --acc:#7c5cff; --acc2:#22d3ee; }
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--tx); font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif; }
.top { padding: 18px 24px 8px; }
.brand { font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.brand b { background: linear-gradient(90deg, var(--acc), var(--acc2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tag { font-size: 11px; font-weight: 600; border: 1px solid var(--acc); color: #c4b5ff; border-radius: 99px; padding: 2px 8px; vertical-align: 4px; margin-left: 4px; }
.sub { margin: 4px 0 0; color: var(--mut); font-size: 13px; }
.wrap { display: grid; grid-template-columns: 340px 1fr; gap: 18px; padding: 12px 24px 32px; align-items: start; }
.panel { display: flex; flex-direction: column; gap: 12px; }
.step { background: var(--pan); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.step h2 { margin: 0 0 10px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.step h2 i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--acc); display: grid; place-items: center; font-size: 12px; }
.step h3 { margin: 12px 0 6px; font-size: 12px; color: var(--mut); font-weight: 600; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 1.5px dashed #3a4153; border-radius: 12px; padding: 18px 10px; cursor: pointer; text-align: center; transition: .15s; }
.drop:hover, .drop.over { border-color: var(--acc); background: rgba(124,92,255,.07); }
.drop input { display: none; }
.drop span { font-size: 12px; color: var(--mut); }
.btn { width: 100%; margin-top: 8px; border: 0; border-radius: 10px; padding: 11px; font: 600 14px inherit; font-family: inherit; color: #fff; background: linear-gradient(90deg, var(--acc), #5b7cff); cursor: pointer; }
.btn:disabled { opacity: .4; cursor: default; }
.btn.ghost { background: transparent; border: 1px solid #3a4153; color: var(--tx); }
.btn.rec { background: #ef4444; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; }
label { font-size: 13px; display: flex; align-items: center; gap: 8px; margin-top: 6px; }
select, input[type=range] { flex: 1; }
select { background: #0f1218; color: var(--tx); border: 1px solid #3a4153; border-radius: 8px; padding: 6px 8px; font-family: inherit; width: 100%; }
.chk { gap: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid #3a4153; background: #0f1218; color: var(--tx); border-radius: 99px; padding: 7px 12px; font: 13px inherit; font-family: inherit; cursor: pointer; }
.chips.sm button { padding: 5px 10px; font-size: 12px; }
.chips button.on { border-color: var(--acc); background: rgba(124,92,255,.22); color: #fff; }
.chips button:disabled { opacity: .35; }
.opt { display: none; }
.opt.show { display: block; }
.meta { margin: 8px 0 0; font-size: 12px; color: var(--mut); line-height: 1.5; }
.prog { height: 6px; background: #0f1218; border-radius: 9px; overflow: hidden; margin-top: 10px; }
.prog div { height: 100%; width: 0; background: linear-gradient(90deg, var(--acc), var(--acc2)); transition: width .15s; }
.stage { position: sticky; top: 12px; }
.view { position: relative; background: #07080b; border: 1px solid var(--line); border-radius: 14px; height: min(78vh, 900px); display: grid; place-items: center; overflow: hidden; }
#view { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--mut); text-align: center; padding: 20px; }
.empty b { color: var(--tx); font-size: 16px; }
.live { position: absolute; inset: 0; background: #07080b; display: flex; flex-direction: column; }
.livegrid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; }
.livegrid video, .livegrid canvas { width: 100%; height: 100%; object-fit: contain; background: #000; border-radius: 10px; min-height: 0; }
.livegrid video { transform: scaleX(-1); }
.livebar { display: flex; gap: 8px; align-items: center; padding: 8px; }
.livebar .btn { width: auto; margin: 0; padding: 9px 16px; }
.livebar span { font-size: 12px; color: var(--mut); }
.transport { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.transport button { width: 40px; height: 36px; border-radius: 10px; border: 1px solid #3a4153; background: var(--pan); color: #fff; cursor: pointer; }
.transport span { font-size: 12px; color: var(--mut); font-variant-numeric: tabular-nums; min-width: 86px; text-align: right; }
.how { margin-top: 14px; background: var(--pan); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 13px; color: #c9cfdc; }
.how summary { cursor: pointer; font-weight: 600; }
.how li { margin: 6px 0; line-height: 1.6; }
@media (max-width: 860px) {
  .wrap { grid-template-columns: 1fr; padding: 8px 16px 24px; }
  .stage { position: static; order: -1; }
  .view { height: 62vh; }
  .top { padding: 14px 16px 4px; }
}
#photoPrev { display: block; max-height: 140px; margin: 8px auto 0; background: repeating-conic-gradient(#222 0 25%, #2c2c2c 0 50%) 0 0/16px 16px; border-radius: 8px; }
.drop.small { padding: 12px 10px; }
