: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}.ext{font-size:.78rem;color:var(--link);text-decoration:none}.ext:hover{text-decoration:underline}#save-name{background:var(--bg-dark);color:var(--fg);border:1px solid var(--bg-highlight);border-radius:3px;padding:.3rem .5rem;font-family:inherit;font-size:.8rem;max-width:150px}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)}.segmented{display:flex;gap:0;width:fit-content;border:1px solid var(--muted);border-radius:4px;overflow:hidden}.seg{padding:.45rem 1.4rem;background:var(--bg-dark);color:var(--fg-dim);border:none;font-family:inherit;font-size:.85rem;cursor:pointer}.seg+.seg{border-left:1px solid var(--muted)}.seg.active{background:var(--bg-highlight);color:var(--fg-light)}#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)}.capture-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1rem}.capture-slot{display:flex;flex-direction:column;gap:.6rem;padding:.85rem;background:var(--bg-dark);border:1px solid var(--bg-highlight);border-radius:4px}.capture-slot h4{font-size:.85rem;color:var(--fg-light)}.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:fixed;top:12px;right:12px;z-index:1000;border:2px solid var(--link);border-radius:4px;pointer-events:none;image-rendering:pixelated;box-shadow:0 2px 12px #0009}.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 input[type=color]{width:48px;height:30px;padding:0;background:var(--bg-dark);border:1px solid var(--bg-highlight);cursor:pointer}.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}}
