:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--bg:#1a1a1a;--card:#242424;--accent:#4caf50;--error:#e57373;--text:#ffffffeb;--muted:#fff9;font-family:system-ui,-apple-system,Microsoft JhengHei,sans-serif}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}body{background:var(--bg);min-height:100vh;color:var(--text);justify-content:center;margin:0;padding:2rem 1rem;display:flex}#app{width:100%;max-width:520px}.card{background:var(--card);border-radius:12px;padding:1.75rem;box-shadow:0 4px 24px #0000004d}h1{margin:0 0 .25rem;font-size:1.4rem}.subtitle{color:var(--muted);margin:0 0 1.5rem;font-size:.9rem}.dropzone{text-align:center;cursor:pointer;border:2px dashed #ffffff40;border-radius:10px;padding:2rem 1rem;transition:border-color .15s}.dropzone:hover,.dropzone.dragover{border-color:var(--accent)}.dropzone input[type=file]{display:none}.file-name{color:var(--muted);word-break:break-all;margin-top:.75rem;font-size:.85rem}.mode-info{background:#4caf501f;border:1px solid #4caf5066;border-radius:8px;margin-top:1.25rem;padding:.75rem 1rem;font-size:.9rem}.back-button{color:var(--text);cursor:pointer;background:0 0;border:1px solid #fff3;border-radius:6px;align-items:center;margin-bottom:.75rem;padding:.4rem .8rem;font-size:.85rem;display:inline-flex}.back-button:hover{border-color:var(--accent)}.preview-container{margin-top:1.25rem}.preview-label{color:var(--muted);margin-bottom:.4rem;font-size:.85rem}.preview-thumbs{flex-wrap:wrap;gap:.6rem;display:flex}.preview-thumbs img{object-fit:contain;background:#1c1c1c;border:1px solid #ffffff26;border-radius:10px;width:140px;height:140px}.field{margin-top:1.25rem}.field label{color:var(--muted);margin-bottom:.4rem;font-size:.85rem;display:block}.field input[type=number],.field input[type=text]{box-sizing:border-box;width:100%;color:var(--text);background:#1c1c1c;border:1px solid #fff3;border-radius:8px;padding:.6rem .7rem;font-size:1rem}button.primary{background:var(--accent);color:#0c1f0c;cursor:pointer;border:none;border-radius:8px;width:100%;margin-top:1.5rem;padding:.75rem;font-size:1rem;font-weight:600}button.primary:disabled{opacity:.5;cursor:not-allowed}.status{min-height:1.2rem;margin-top:1rem;font-size:.9rem}.status.error{color:var(--error)}.hidden{display:none!important}
