:root{--bg: #0e0e12;--panel: #17171f;--line: #2a2a35;--text: #f2f2f5;--muted: #9a9aa8;--accent: #ff4d79}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,Apple SD Gothic Neo,Noto Sans KR,sans-serif;-webkit-font-smoothing:antialiased}.app{max-width:520px;margin:0 auto;min-height:100%;display:flex;flex-direction:column;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}.topbar{display:flex;align-items:baseline;gap:8px;padding:16px 18px}.brand{font-weight:800;font-size:20px}.subtitle{color:var(--muted);font-size:14px}.capture{flex:1;display:flex;flex-direction:column;align-items:center;padding:0 18px 24px;position:relative}.hint{color:var(--muted);font-size:14px;text-align:center;margin:4px 0 14px}.viewport{position:relative;height:66vh;max-width:100%;aspect-ratio:3 / 4;margin:0 auto;background:#000;border-radius:16px;overflow:hidden;border:1px solid var(--line)}.viewport video{width:100%;height:100%;object-fit:cover;display:block}.grid{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none}.grid rect.cell{fill:none;stroke:#ffffffd9;stroke-width:1.5;vector-effect:non-scaling-stroke}.cam-fallback{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:var(--muted)}.shutter{margin:22px 0 12px;width:74px;height:74px;border-radius:50%;border:4px solid #fff;background:transparent;display:grid;place-items:center;cursor:pointer}.shutter span{width:58px;height:58px;border-radius:50%;background:#fff}.shutter:disabled{opacity:.4}.upload{color:var(--muted);font-size:15px;text-decoration:underline;cursor:pointer;padding:6px 10px}.center{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:24px;text-align:center}.spinner{width:42px;height:42px;border-radius:50%;border:4px solid var(--line);border-top-color:var(--accent);animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.small{color:var(--muted);font-size:13px}.progress{width:220px;height:8px;background:var(--line);border-radius:999px;overflow:hidden;margin:4px 0}.progress-bar{height:100%;background:var(--accent);border-radius:999px;transition:width .4s ease}.error-msg{color:var(--text);font-size:15px;max-width:320px}.editor{flex:1;display:flex;flex-direction:column;padding:8px 14px 20px}.editor-head{padding:4px 2px 12px;color:var(--muted);font-size:13px;text-align:center}.stage{position:relative;width:100%;border-radius:12px;overflow:hidden}.stage img{width:100%;display:block}.overlays{position:absolute;top:0;right:0;bottom:0;left:0}.ov{position:absolute;display:flex;align-items:flex-end;justify-content:center;padding-bottom:4%;pointer-events:none}.ov>*{pointer-events:auto}.price-chip{background:#0000009e;color:#fff;border:none;padding:4px 9px;border-radius:999px;font-weight:700;font-size:clamp(10px,3.4vw,15px);line-height:1;cursor:pointer;white-space:nowrap}.price-add{width:26px;height:26px;border-radius:50%;background:#ffffffeb;color:#111;border:none;font-size:18px;font-weight:700;line-height:1;cursor:pointer;display:grid;place-items:center;box-shadow:0 1px 4px #0006}.price-input{width:64px;max-width:80%;text-align:center;background:#fff;color:#111;border:2px solid var(--accent);border-radius:999px;padding:4px 6px;font-size:14px;font-weight:700}.editor-actions{display:flex;gap:10px;padding-top:16px}.editor-actions button{flex:1}.restart-link{display:block;margin:12px auto 0;background:transparent;border:none;color:var(--muted);font-size:14px;text-decoration:underline;cursor:pointer}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0000008c;display:flex;align-items:flex-end;justify-content:center;z-index:20}.sheet{width:100%;max-width:520px;max-height:88vh;overflow-y:auto;background:var(--panel);border-radius:20px 20px 0 0;padding:8px 18px calc(20px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}.sheet-grab{width:40px;height:4px;border-radius:2px;background:var(--line);margin:6px auto 14px}.sheet-title{font-size:16px;font-weight:700;margin-bottom:12px}.market-price{display:flex;align-items:baseline;gap:10px;padding:12px 14px;background:var(--bg);border-radius:12px}.market-label{color:var(--muted);font-size:13px}.market-range{font-size:20px;font-weight:800}.market-count{margin-left:auto;color:var(--muted);font-size:12px}.price-set{margin-top:14px}.price-set label{display:block;color:var(--muted);font-size:13px;margin-bottom:6px}.price-set-row{display:flex;align-items:center;gap:8px}.price-set-row input{flex:1;background:var(--bg);color:var(--text);border:2px solid var(--line);border-radius:10px;padding:10px 12px;font-size:18px;font-weight:700}.price-set-row input:focus{border-color:var(--accent);outline:none}.unit{color:var(--muted);font-size:15px}.quick{display:flex;gap:8px;margin-top:10px}.quick button{flex:1;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:999px;padding:7px 8px;font-size:13px;cursor:pointer}.sheet-loading{color:var(--muted);font-size:13px;text-align:center;padding:16px}.sheet-section{margin-top:18px}.sheet-section-title{font-size:14px;font-weight:700;margin-bottom:8px}.listings{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.listing{background:var(--bg);border-radius:10px;overflow:hidden}.listing img{width:100%;aspect-ratio:55/85;object-fit:cover;display:block}.listing-meta{padding:6px 8px;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px}.listing-meta strong{font-size:14px}.listing-meta .cheap{color:#3ddc84;font-size:11px}.listing-meta .pricey{color:#ff6b6b;font-size:11px}.listing-meta .seller{width:100%;color:var(--muted);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.samples{display:flex;flex-direction:column}.sample{display:flex;justify-content:space-between;padding:8px 2px;border-bottom:1px solid var(--line);font-size:14px}.sample span:first-child{color:var(--muted)}.sheet-actions{display:flex;gap:10px;margin-top:20px}.sheet-actions button{flex:1;padding:12px;border-radius:12px;font-size:15px}button{font-family:inherit}.primary{background:var(--accent);color:#fff;border:none;padding:9px 16px;border-radius:10px;font-weight:700;font-size:14px;cursor:pointer}.ghost{background:transparent;color:var(--text);border:1px solid var(--line);padding:8px 14px;border-radius:10px;font-size:14px;cursor:pointer}.ghost.full{margin:0 12px 12px}
