:root { --bg:#0d0b14; --panel:#16131f; --line:#2a2438; --fg:#e8e3f5; --dim:#9b93b0; --acc:#b04cff; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); font: 13px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; }
#app { display: flex; height: 100vh; }
#stage { flex: 1; position: relative; min-width: 0; }
#view { width: 100%; height: 100%; display: block; }
#stage.drag::after { content: ''; position: absolute; inset: 10px; border: 2px dashed var(--acc); border-radius: 12px; pointer-events: none; }
#dropHint { display: none; }
#stage.drag #dropHint { display: block; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 22px; background: #000a; padding: 12px 20px; border-radius: 10px; }
#hud { position: absolute; left: 14px; top: 12px; pointer-events: none; text-shadow: 0 1px 3px #000; }
.title { font-weight: 800; letter-spacing: .18em; font-size: 16px; }
.title small { font-weight: 400; letter-spacing: 0; color: var(--dim); margin-left: 6px; }
#status { color: var(--dim); margin-top: 2px; }
#status.err { color: #ff6b81; }
#camBtns { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 6px; }
#panel { width: 330px; overflow-y: auto; background: var(--panel); border-left: 1px solid var(--line); padding: 6px 14px 20px; }
section { border-bottom: 1px solid var(--line); padding: 8px 0 10px; }
h2 { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); margin: 4px 0 8px; display: flex; justify-content: space-between; }
.row { display: grid; grid-template-columns: 96px 1fr 40px; align-items: center; gap: 8px; margin: 3px 0; text-transform: capitalize; }
.row output { color: var(--dim); font-variant-numeric: tabular-nums; text-align: right; }
.row input[type=range] { width: 100%; accent-color: var(--acc); }
.row input[type=color] { width: 100%; height: 24px; border: 1px solid var(--line); background: none; padding: 0; }
.row.orig input[type=color] { opacity: .35; }
.check { display: flex; align-items: center; gap: 6px; margin: 3px 0; cursor: pointer; }
button, .file { background: #241f33; color: var(--fg); border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; cursor: pointer; font: inherit; }
button:hover, .file:hover { border-color: var(--acc); }
button.mini { padding: 2px 4px; font-size: 10px; }
.file input { display: none; }
.btns { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
.hint { color: var(--dim); font-size: 11px; margin: 4px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { --c: #555; border-left: 4px solid var(--c); }
.chip.on { background: color-mix(in srgb, var(--c) 35%, #241f33); border-color: var(--c); }
textarea { width: 100%; background: #0e0c15; color: var(--fg); border: 1px solid var(--line); border-radius: 6px; font: 11px/1.35 ui-monospace, monospace; padding: 6px; resize: vertical; word-break: break-all; }
#bytes { color: #7dff9a; letter-spacing: 0; text-transform: none; }
#bytes.over { color: #ff6b81; }
pre#json { font-size: 10px; color: var(--dim); max-height: 220px; overflow: auto; margin: 0; }
@media (max-width: 760px) { #app { flex-direction: column; } #stage { height: 55vh; flex: none; } #panel { width: 100%; flex: 1; } }

/* wardrobe */
.wslot { padding: 4px 0 6px; border-bottom: 1px dashed var(--line); }
.wslot:last-child { border-bottom: 0; }
.wslot .row { grid-template-columns: 96px 1fr; text-transform: none; }
.wslot select { width: 100%; background: #14121f; color: inherit; border: 1px solid var(--line); border-radius: 6px; padding: 3px 4px; font: inherit; }
.wslot .wcol { grid-template-columns: 54px 1fr 70px 1fr auto; font-size: 11px; }
.wslot .dim { color: var(--dim); text-transform: lowercase; }
.wslot [hidden] { display: none; }
