:root{--bg: #1f1f28;--bg-dark: #16161d;--bg-highlight: #2a2a37;--muted: #54546d;--fg-dim: #727169;--fg: #dcd7ba;--fg-light: #c8c093;--red: #e46876;--green: #98bb6c;--yellow: #e6c384;--link: #7e9cd8}*{margin:0;padding:0;box-sizing:border-box}body{font-family:Consolas,Monaco,Courier New,Courier,monospace;background:var(--bg);color:var(--fg);min-height:100vh}header{max-width:1100px;margin:0 auto;padding:1rem 1.5rem;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--bg-highlight)}header h1{font-size:1.1rem;font-weight:600;color:var(--fg-light)}.header-actions{display:flex;align-items:center;gap:.75rem}.tag{font-size:.7rem;color:var(--fg-dim);text-transform:uppercase;letter-spacing:.06em}main{max-width:1100px;margin:0 auto;padding:1.5rem;display:flex;flex-direction:column;gap:1.75rem}section{display:flex;flex-direction:column;gap:.75rem}.section-title{font-size:.8rem;font-weight:600;color:var(--fg-light);text-transform:uppercase;letter-spacing:.06em;border-bottom:1px solid var(--bg-highlight);padding-bottom:.4rem}.hint{font-size:.78rem;color:var(--fg-dim)}#dropzone{border:2px dashed var(--muted);padding:2rem 1rem;text-align:center;cursor:pointer;color:var(--fg-dim);font-size:.88rem;transition:border-color .15s,color .15s}#dropzone:hover,#dropzone.drag-over{border-color:var(--link);color:var(--fg)}#dropzone input{display:none}#photo-strip,#photo-select{display:flex;flex-wrap:wrap;gap:.5rem}.thumb{width:72px;height:72px;object-fit:cover;border:2px solid var(--bg-highlight);border-radius:3px;cursor:pointer;background:var(--bg-dark)}.thumb.selected{border-color:var(--yellow)}#face-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:.6rem}.face-card{display:flex;flex-direction:column;gap:.4rem;padding:.5rem;background:var(--bg-highlight);border:1px solid var(--muted);border-radius:4px;cursor:pointer;font-family:inherit;color:var(--fg);text-align:left}.face-card.active{border-color:var(--yellow)}.face-thumb{width:100%;aspect-ratio:1;background:var(--bg-dark) center/cover no-repeat;border:1px solid var(--bg-highlight);image-rendering:pixelated}.face-name{font-size:.72rem;color:var(--fg-dim)}.card{display:none;flex-direction:column;gap:.85rem;padding:1rem;background:var(--bg-dark);border:1px solid var(--bg-highlight);border-radius:4px}.card h3{font-size:.95rem;color:var(--fg-light)}.panel{display:flex;flex-direction:column;gap:.4rem}.panel-label{font-size:.72rem;color:var(--fg-dim);text-transform:uppercase;letter-spacing:.05em}.preview{max-width:280px;width:100%;background:var(--bg);border:1px solid var(--bg-highlight);image-rendering:pixelated}.picker-wrap{position:relative;touch-action:none;user-select:none;border:1px solid var(--bg-highlight);background:var(--bg);max-width:520px}.picker-wrap canvas{display:block}.picker-overlay{position:absolute;inset:0;cursor:crosshair}.picker-loupe{position:absolute;border:1px solid var(--link);border-radius:4px;pointer-events:none;image-rendering:pixelated;box-shadow:0 2px 8px #00000080}.controls{display:flex;flex-direction:column;gap:.6rem}.control-row{display:flex;align-items:center;gap:.75rem;font-size:.85rem;flex-wrap:wrap}.control-row>label{min-width:6rem;color:var(--fg-dim)}.control-row input[type=range]{flex:1;max-width:220px;accent-color:var(--link)}.control-row select{padding:.35rem .5rem;background:var(--bg-dark);color:var(--fg);border:1px solid var(--bg-highlight);font-family:inherit;font-size:.85rem}.param-value{min-width:3.5rem;text-align:right;color:var(--fg-light);font-size:.8rem;font-variant-numeric:tabular-nums}.check{display:flex;align-items:center;gap:.4rem;cursor:pointer;color:var(--fg-dim);min-width:0}.check input{accent-color:var(--link)}.btn{padding:.4rem .9rem;background:var(--bg-highlight);color:var(--fg);border:1px solid var(--muted);border-radius:3px;font-family:inherit;font-size:.8rem;cursor:pointer;transition:background .15s}.btn:hover{background:var(--muted)}.btn-quiet{background:transparent;color:var(--fg-dim)}#viewer{width:100%;height:460px;display:block;background:var(--bg-dark);border:1px solid var(--bg-highlight);border-radius:4px;touch-action:none}#status{font-size:.78rem;color:var(--fg-dim)}@media(max-width:720px){main{padding:1rem}#viewer{height:340px}}
