*{box-sizing:border-box}html,body{color:#111827;background:radial-gradient(circle at top,#e5edff,#f3f4f6);min-height:100%;margin:0;padding:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}body{justify-content:center;align-items:center;display:flex}.app-root{justify-content:center;align-items:center;width:100%;min-height:100vh;padding:24px 16px;display:flex}.card{background:#fff;border:1px solid #d1d5dbe6;border-radius:18px;width:100%;max-width:520px;padding:24px 20px 14px;box-shadow:0 18px 30px #0f172a14}.card-header{margin-bottom:16px}.card-title{align-items:center;gap:8px;font-size:1.4rem;font-weight:650;display:flex}.card-subtitle{color:#6b7280;margin-top:4px;font-size:.9rem}.badge{color:#1d4ed8;background:#3b82f614;border:1px solid #3b82f64d;border-radius:999px;padding:2px 8px;font-size:.7rem}.form-group{margin-bottom:12px}.label{color:#111827;margin-bottom:4px;font-size:.82rem;font-weight:500;display:block}.input,.select{color:#111827;background:#f9fafb;border:1px solid #d1d5db;border-radius:10px;outline:none;width:100%;padding:9px 10px;font-size:.9rem}.input::file-selector-button{color:#f9fafb;cursor:pointer;background:#2563eb;border:none;border-radius:8px;margin-right:8px;padding:6px 10px;font-size:.8rem}.input:focus,.select:focus{background:#fff;border-color:#2563eb;box-shadow:0 0 0 1px #2563eb4d}.helper{color:#6b7280;margin-top:3px;font-size:.78rem}.button-row{align-items:center;gap:8px;margin-top:10px;display:flex}.button-primary{color:#fff;cursor:pointer;background:linear-gradient(90deg,#2563eb,#4f46e5);border:none;border-radius:999px;align-items:center;gap:6px;padding:8px 16px;font-size:.9rem;font-weight:500;display:inline-flex}.button-primary:disabled{opacity:.6;cursor:not-allowed}.status-text{color:#6b7280;font-size:.8rem}.status-text.error{color:#b91c1c}.download-box{color:#14532d;background:#ecfdf3;border:1px solid #bbf7d0;border-radius:12px;margin-top:14px;padding:10px;font-size:.85rem}.download-link{color:#15803d;border:1px solid #22c55e;border-radius:999px;margin-top:6px;padding:6px 12px;font-size:.82rem;text-decoration:none;display:inline-block}.download-link:hover{background:#dcfce7}.footer{color:#6b7280;border-top:1px dashed #d1d5db;justify-content:space-between;align-items:center;margin-top:12px;padding-top:10px;font-size:.78rem;display:flex}.footer-logo{align-items:center;gap:6px;display:flex}.footer-logo img{border:1px solid #94a3b8cc;border-radius:999px;width:18px;height:18px}.mode-toggle{background:#f3f4f6;border:1px solid #d1d5db;border-radius:999px;margin:10px 0 6px;padding:2px;display:inline-flex}.mode-button{color:#6b7280;cursor:pointer;background:0 0;border:none;border-radius:999px;padding:5px 10px;font-size:.8rem}.mode-button.active{color:#f9fafb;background:#2563eb}.custom-controls{background:#f9fafb;border:1px solid #d1d5db;border-radius:12px;margin-top:8px;padding:8px 10px}.slider-row{margin-bottom:10px}.slider-header{justify-content:space-between;align-items:center;margin-bottom:4px;display:flex}.label-inline{color:#111827;font-size:.82rem;font-weight:500}.slider-value{color:#6b7280;font-size:.78rem}.slider{appearance:none;background:#e5e7eb;border-radius:999px;outline:none;width:100%;height:4px}.slider::-webkit-slider-thumb{appearance:none;cursor:pointer;background:#2563eb;border:2px solid #fff;border-radius:50%;width:14px;height:14px;margin-top:-5px}.slider::-moz-range-thumb{cursor:pointer;background:#2563eb;border:2px solid #fff;border-radius:50%;width:14px;height:14px}.slider-labels{color:#9ca3af;justify-content:space-between;margin-top:2px;font-size:.72rem;display:flex}.custom-footer-row{justify-content:space-between;align-items:center;gap:8px;margin-top:6px;display:flex}.chip-button{color:#374151;cursor:pointer;background:#f9fafb;border:1px solid #d1d5db;border-radius:999px;padding:4px 10px;font-size:.75rem}.chip-button:hover{background:#e5e7eb}.preview-section{background:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;margin-top:12px;padding:8px 10px}.preview-column{flex:1}.preview-title{color:#4b5563;margin-bottom:4px;font-size:.78rem;font-weight:500}.audio-player{width:100%}@media (max-width:480px){.card{padding:20px 16px 12px}.card-title{font-size:1.2rem}}.tool-chips{flex-wrap:wrap;gap:6px;max-height:72px;margin:10px 0 6px;padding-bottom:2px;display:flex;overflow-x:auto}.tool-chip{color:#4b5563;cursor:pointer;white-space:nowrap;background:#f9fafb;border:1px solid #e5e7eb;border-radius:999px;align-items:center;gap:4px;padding:4px 10px;font-size:.78rem;display:inline-flex}.tool-chip span{font-size:.85em}.tool-chip.active{color:#f9fafb;background:#2563eb;border-color:#2563eb}.tool-chip-emoji{font-size:.9rem}.tool-subtitle{color:#6b7280;margin-bottom:6px;font-size:.78rem}.tab-row{background:#f3f4f6;border:1px solid #e5e7eb;border-radius:999px;gap:6px;margin-bottom:10px;padding:2px;display:inline-flex}.tab-button{color:#6b7280;cursor:pointer;background:0 0;border:none;border-radius:999px;padding:5px 12px;font-size:.82rem}.tab-button.active{color:#f9fafb;background:#111827}.video-list{background:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;margin-top:8px;padding:8px 10px}.video-list-header{justify-content:space-between;align-items:center;margin-bottom:6px;display:flex}.video-table-wrapper{width:100%;overflow-x:auto}.video-table{border-collapse:collapse;width:100%;font-size:.8rem}.video-table th,.video-table td{text-align:left;border-bottom:1px solid #e5e7eb;padding:6px 8px}.video-table th{color:#4b5563;font-weight:600}.video-name-cell{text-overflow:ellipsis;white-space:nowrap;max-width:220px;overflow:hidden}.reorder-buttons{gap:4px;display:flex}.reorder-btn{cursor:pointer;background:#f9fafb;border:1px solid #d1d5db;border-radius:999px;padding:2px 6px;font-size:.7rem}.reorder-btn:disabled{opacity:.4;cursor:default}.frames-section{background:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;margin-top:12px;padding:8px 10px}.frames-grid{grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:8px;margin-top:6px;display:grid}.frame-item{flex-direction:column;align-items:center;gap:4px;font-size:.75rem;display:flex}.frame-thumb{object-fit:cover;border:1px solid #e5e7eb;border-radius:8px;width:100%}.gif-section{background:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;margin-top:12px;padding:8px 10px}.gif-preview{border:1px solid #e5e7eb;border-radius:10px;max-width:100%}.preview-row{flex-direction:column;gap:12px;display:flex}
