:root{font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;line-height:1.6;font-weight:400;color-scheme:light;color:#2c3e50;background:transparent;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}body{margin:0;min-width:320px;height:100vh;overflow:hidden;background:transparent}.container{max-width:1200px;margin:0 auto;padding:1rem;height:100vh;background:transparent;display:flex;flex-direction:column;overflow-y:auto}.header{text-align:center;margin-bottom:1rem;flex-shrink:0}.logo{max-width:300px;height:auto;margin-bottom:1rem;transition:transform .3s ease}.logo:hover{transform:scale(1.05)}.logos-container{display:flex;align-items:center;justify-content:center;gap:2rem;flex-wrap:wrap;margin-bottom:1rem}.powered-by{display:flex;align-items:center;gap:.75rem;padding:.75rem 1.5rem;background:linear-gradient(135deg,#ffffffe6,#f8fafce6);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid rgba(226,232,240,.8);border-radius:12px;box-shadow:0 4px 16px #00000014;transition:all .3s ease;text-decoration:none;color:inherit;cursor:pointer}.powered-by:hover{transform:translateY(-2px);box-shadow:0 8px 25px #0000001f;background:linear-gradient(135deg,#fffffff2,#f8fafcf2)}.powered-by span{font-size:.9rem;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.5px}.powered-by .logo{max-width:120px;height:auto;margin:0;transition:transform .3s ease}.powered-by .logo:hover{transform:scale(1.05)}.qsys-logo{max-width:200px;height:auto;transition:transform .3s ease}.qsys-logo:hover{transform:scale(1.05)}.qsys-logo-inline{height:1.7em;width:auto;vertical-align:text-top;margin:-.3rem .25rem}h1{color:#2c3e50;text-align:center;font-size:2.5rem;font-weight:700;margin:0;text-shadow:0 2px 4px rgba(0,0,0,.1)}.upload-section{background:#fffc;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:2px dashed #cbd5e0;border-radius:16px;padding:2rem;margin:1rem 0;text-align:center;transition:all .3s ease;box-shadow:0 4px 20px #0000001a;flex-shrink:0}.upload-section:hover{border-color:#718096;background:#ffffffe6;box-shadow:0 6px 25px #00000026}.upload-section.dragover{border-color:#22c55e;background:#22c55e1a}.file-input-wrapper{position:relative;display:inline-block}.file-input{position:absolute;opacity:0;width:0;height:0}.file-input-label{display:inline-flex;align-items:center;gap:.5rem;padding:1rem 2rem;background:linear-gradient(45deg,#3182ce,#2b77cb);color:#fff;border-radius:12px;cursor:pointer;font-weight:600;font-size:1.1rem;transition:all .3s ease;border:none;box-shadow:0 4px 15px #3182ce4d}.file-input-label:hover{transform:translateY(-2px);box-shadow:0 6px 20px #3182ce66}.file-input-label:disabled{opacity:.6;cursor:not-allowed;transform:none}.converting-indicator{display:flex;align-items:center;justify-content:center;gap:.5rem;margin-top:1rem;color:#4a5568;font-weight:500}.spinner{width:20px;height:20px;border:2px solid rgba(74,85,104,.3);border-top:2px solid #3182ce;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.controls-section{background:#fffc;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:16px;padding:1.5rem;margin:1.5rem 0;display:flex;align-items:center;justify-content:center;gap:1rem;flex-wrap:wrap;box-shadow:0 4px 20px #0000001a}.speed-control{display:flex;align-items:center;gap:.75rem;color:#4a5568;font-weight:500}.speed-slider{width:200px;height:6px;border-radius:3px;background:#e2e8f0;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer}.speed-slider::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:20px;height:20px;border-radius:50%;background:linear-gradient(45deg,#3182ce,#2b77cb);cursor:pointer;box-shadow:0 2px 6px #0000004d}.speed-slider::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:linear-gradient(45deg,#3182ce,#2b77cb);cursor:pointer;border:none;box-shadow:0 2px 6px #0000004d}.preview-section{background:#fffc;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:16px;padding:1.5rem;margin:1rem 0;box-shadow:0 4px 20px #0000001a;flex:1;display:flex;flex-direction:column;min-height:0}.preview-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;flex-shrink:0}.preview-controls{display:flex;gap:.5rem;align-items:center}.preview-title{color:#2c3e50;font-size:1.5rem;font-weight:600;margin:0}.frames-preview{display:flex;gap:1rem;overflow-x:auto;padding:1rem 0;background:#f8fafc4d;border-radius:12px;margin-bottom:1rem;flex:1;min-height:120px}.frames-preview::-webkit-scrollbar{width:8px}.frames-preview::-webkit-scrollbar-track{background:#f7fafc;border-radius:4px}.frames-preview::-webkit-scrollbar-thumb{background:#cbd5e0;border-radius:4px}.frames-preview::-webkit-scrollbar-thumb:hover{background:#a0aec0}.frame-image{width:60px;height:60px;object-fit:contain;border-radius:8px;cursor:pointer;transition:all .3s ease;border:2px solid transparent;background:#ffffffe6;padding:4px}.frame-image:hover{transform:scale(1.05);box-shadow:0 4px 12px #00000026;border-color:#3182ce}.frame-image.active{border-color:#22c55e;box-shadow:0 0 0 2px #22c55e4d;transform:scale(1.02)}.controls-and-actions{display:flex;justify-content:space-between;align-items:flex-end;gap:2rem;flex-wrap:wrap;flex-shrink:0}.controls-left{display:flex;align-items:center;gap:2rem;flex-wrap:wrap}.control-input{display:flex;align-items:center;gap:.75rem;color:#4a5568;font-weight:500}.control-name-input{padding:.5rem 1rem;border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:#2c3e50;font-size:.9rem;min-width:200px;transition:all .2s ease}.control-name-input:focus{outline:none;border-color:#3182ce;box-shadow:0 0 0 3px #3182ce1a}.action-buttons{display:flex;gap:1rem;flex-wrap:wrap}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .3s ease}.modal-content{background:#fff;border-radius:16px;max-width:90vw;max-height:90vh;overflow:hidden;box-shadow:0 20px 40px #0000004d;animation:slideIn .3s ease}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;border-bottom:1px solid #e2e8f0;background:#f8fafccc}.modal-title{margin:0;font-size:1.2rem;font-weight:600;color:#2c3e50}.modal-close{background:none;border:none;font-size:1.5rem;cursor:pointer;color:#64748b;padding:.25rem;border-radius:4px;transition:all .2s ease}.modal-close:hover{background:#ef44441a;color:#ef4444}.modal-frame{padding:2rem;display:flex;justify-content:center;align-items:center;min-height:300px}.modal-frame-image{max-width:100%;max-height:60vh;width:auto;height:auto;border-radius:8px;box-shadow:0 4px 20px #0000001a;object-fit:contain}.modal-navigation{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;border-top:1px solid #e2e8f0;background:#f8fafccc}.frame-info{font-weight:500;color:#64748b;font-size:.9rem}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideIn{0%{opacity:0;transform:scale(.9) translateY(-20px)}to{opacity:1;transform:scale(1) translateY(0)}}.btn{padding:.875rem 1.75rem;border-radius:12px;border:none;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;display:inline-flex;align-items:center;gap:.5rem}.btn-primary{background:linear-gradient(45deg,#3b82f6,#1d4ed8);color:#fff;box-shadow:0 4px 15px #3b82f64d}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 6px 20px #3b82f666}.btn-secondary{background:#f7fafc;color:#4a5568;border:1px solid #e2e8f0}.btn-secondary:hover{background:#edf2f7;transform:translateY(-1px)}.upload-instructions{margin-top:1rem;color:#718096;font-size:.9rem}@media (max-width: 768px){.container{padding:.5rem}.logos-container{gap:1rem}.logo{max-width:200px}.qsys-logo{max-width:150px}h1{font-size:2rem}.upload-section{padding:1.5rem;margin:.5rem 0}.preview-section{padding:1rem;margin:.5rem 0}.preview-header{flex-direction:column;gap:.5rem;align-items:stretch}.preview-controls{justify-content:center}.frames-preview{min-height:100px}.frame-image{width:50px;height:50px}.placeholder-frame{padding:1rem}.placeholder-icon{font-size:2rem}.controls-and-actions{flex-direction:column;align-items:stretch;gap:1rem}.controls-left{margin-bottom:0}.action-buttons{justify-content:center}.modal-content{max-width:95vw;max-height:95vh;margin:1rem}.animation-modal{max-width:95vw;max-height:85vh}.modal-animation{padding:1rem;min-height:200px}.animation-container{padding:1rem}.animation-frame-large{max-width:280px;max-height:200px}.modal-frame{padding:1rem;min-height:200px}.modal-navigation{flex-direction:column;gap:.5rem}.modal-navigation .btn{width:100%}}.placeholder-text{color:#a0aec0!important;opacity:.8}.placeholder-frames{min-height:auto;display:flex;align-items:center;justify-content:center;background:#f8fafc80;border:2px dashed #e2e8f0;border-radius:12px;flex:1}.placeholder-frame{text-align:center;padding:2rem}.placeholder-icon{font-size:3rem;margin-bottom:1rem;opacity:.6}.placeholder-frame .placeholder-text{font-size:1.1rem;font-weight:500}.btn:disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.speed-slider:disabled{opacity:.5;cursor:not-allowed}.animation-modal{max-width:600px;max-height:80vh}.animation-controls{display:flex;align-items:center;gap:.5rem}.btn-sm{padding:.5rem 1rem;font-size:.9rem}.modal-animation{padding:2rem;display:flex;justify-content:center;align-items:center;min-height:300px}.animation-container{display:flex;flex-direction:column;align-items:center;background:#f8fafccc;border-radius:12px;padding:2rem;border:2px solid #e2e8f0;max-width:100%}.animation-frame-large{max-width:400px;max-height:300px;width:auto;height:auto;border-radius:8px;box-shadow:0 4px 20px #0000001a;object-fit:contain}.frame-counter{margin-top:1rem;font-size:1rem;font-weight:600;color:#64748b}.animation-speed{margin-top:.5rem;font-size:.9rem;color:#94a3b8}
