:root{color-scheme:light dark;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Inter,sans-serif;font-size:16px;--bg-primary: #0a0a0f;--bg-secondary: #13131a;--bg-card: #1a1a24;--bg-hover: #20202e;--accent-primary: #8b5cf6;--accent-secondary: #ec4899;--accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);--text-primary: #f1f5f9;--text-secondary: #94a3b8;--text-muted: #64748b;--border-color: rgba(255, 255, 255, .08);--shadow-sm: 0 2px 8px rgba(0, 0, 0, .3);--shadow-md: 0 4px 16px rgba(0, 0, 0, .4);--shadow-lg: 0 8px 32px rgba(0, 0, 0, .5);--shadow-glow: 0 0 24px rgba(139, 92, 246, .3);--top-nav-height: 64px;background:var(--bg-primary);color:var(--text-primary)}@media (max-width: 768px){:root{font-size:14px}}body{margin:0;min-height:100vh;background:linear-gradient(180deg,#0a0a0f,#13131a);background-attachment:fixed}*{box-sizing:border-box}.app-shell{min-height:100vh;display:flex;flex-direction:column}.top-nav{position:sticky;top:0;z-index:200;height:var(--top-nav-height);background:#0a0a0fd9;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--border-color)}.nav-inner{display:flex;align-items:center;justify-content:space-between;height:100%;max-width:1200px;margin:0 auto;padding:0 1.5rem;gap:1.5rem}.nav-tabs{display:flex;gap:.75rem}.nav-tab{border-radius:999px;border:1px solid var(--border-color);background:transparent;color:var(--text-secondary);padding:.6rem 1.25rem;cursor:pointer;font-size:.85rem;transition:background .2s ease,color .2s ease,border .2s ease;box-shadow:none;position:static}.nav-tab:hover{background:var(--bg-hover);color:var(--text-primary);transform:none;box-shadow:none}.nav-tab.active{background:var(--accent-gradient);color:#fff;border-color:transparent;box-shadow:var(--shadow-glow);transform:none}.nav-tab:before{display:none}.app-content{flex:1}.preview-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:999;background:#06060cbf;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;padding:2rem}.preview-dialog{width:100%;max-width:min(960px,95vw);max-height:90vh;background:var(--bg-card);border-radius:20px;border:1px solid var(--border-color);box-shadow:var(--shadow-lg);display:flex;flex-direction:column;overflow:hidden}.preview-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1.25rem;padding:1.25rem 1.5rem 1rem;border-bottom:1px solid var(--border-color)}.preview-header h2{margin:0;font-size:1.05rem;font-weight:600}.preview-header small{display:block;margin-top:.5rem;color:var(--text-secondary);font-size:.75rem}.icon-button{background:transparent;border:1px solid var(--border-color);color:var(--text-secondary);width:38px;height:38px;padding:0;display:inline-flex;align-items:center;justify-content:center;font-size:1rem;box-shadow:none}.icon-button:hover{background:var(--bg-hover);color:var(--text-primary);transform:none;box-shadow:var(--shadow-sm)}.icon-button:before{display:none}.preview-body{padding:1.5rem;overflow-y:auto;display:flex;flex-direction:column;gap:1.75rem}.preview-video-wrapper{display:flex;flex-direction:column;align-items:center;gap:.75rem;margin:0 auto}.preview-video-wrapper.landscape{max-width:min(920px,90vw)}.preview-video-wrapper.portrait{max-width:min(520px,70vw)}.preview-video-wrapper.square{max-width:min(600px,80vw)}.preview-video-wrapper video{width:100%;max-height:70vh;border-radius:16px;background:var(--bg-secondary);box-shadow:var(--shadow-md);object-fit:contain;margin:0}.preview-video-footer{width:100%;display:flex;flex-direction:column;gap:.75rem}.preview-video-meta{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.preview-video-meta strong{font-size:.95rem;font-weight:600}.preview-video-footer p{margin:0;color:var(--text-secondary)}.preview-video-actions{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.preview-video-actions a{font-size:.85rem}.orientation-badge{background:linear-gradient(135deg,#6366f1,#8b5cf6);font-size:.7rem;padding:.4rem .75rem}.orientation-portrait{background:linear-gradient(135deg,#ec4899,#f97316)}.orientation-square{background:linear-gradient(135deg,#06b6d4,#22d3ee)}.app-layout{min-height:calc(100vh - var(--top-nav-height));display:flex;flex-direction:column}.app-header{text-align:center;padding:2rem 2rem 1.5rem;border-bottom:1px solid var(--border-color);background:#0a0a0fcc;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);position:sticky;top:var(--top-nav-height);z-index:100}.app-header h1{font-size:1.5rem;font-weight:700;background:var(--accent-gradient);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin:0 0 .5rem;letter-spacing:-.02em}.app-header p{color:var(--text-secondary);font-size:.875rem;margin:0;line-height:1.4}@media (max-width: 768px){.app-header{padding:1.5rem 1rem 1rem}.app-header h1{font-size:1.25rem}.app-header p{font-size:.8rem}}.layout-columns{display:flex;flex:1;height:calc(100vh - var(--top-nav-height) - 140px);overflow:hidden}.sidebar-form{width:25%;min-width:300px;max-width:380px;background:var(--bg-secondary);border-right:1px solid var(--border-color);overflow-y:auto;overflow-x:hidden;padding:1.25rem;box-sizing:border-box}.main-content{flex:1;overflow-y:auto;padding:1.5rem;background:var(--bg-primary)}.tab{flex:1;border-radius:999px;border:1px solid var(--border-color);background:var(--bg-secondary);color:var(--text-secondary);padding:.65rem 1rem;font-size:.85rem;cursor:pointer;transition:background .2s ease,color .2s ease,box-shadow .2s ease;box-shadow:none;position:static}.tab:hover{background:var(--bg-hover);color:var(--text-primary);transform:none}.tab.active{background:var(--accent-gradient);color:#fff;border-color:transparent;box-shadow:var(--shadow-glow);transform:none}.tab:before{display:none}section{background:var(--bg-card);border-radius:16px;padding:1.5rem;margin-bottom:1.5rem;border:1px solid var(--border-color);box-shadow:var(--shadow-sm)}.form-section{background:var(--bg-card);border-radius:16px;padding:1.25rem;border:1px solid var(--border-color);box-sizing:border-box;width:100%;max-width:100%;overflow:hidden}h2{margin-top:0;font-weight:600;font-size:1rem;color:var(--text-primary);margin-bottom:.875rem}h3{font-size:.9rem;font-weight:600;color:var(--text-primary);margin-bottom:.75rem}p{font-size:.875rem;line-height:1.6}label{display:block;font-weight:500;margin-bottom:.5rem;color:var(--text-secondary);font-size:.75rem;text-transform:uppercase;letter-spacing:.05em}.form-section label{font-size:.75rem;margin-bottom:.4rem}.form-section .grid{gap:1rem}.form-section input,.form-section select,.form-section textarea{font-size:.875rem;padding:.75rem;box-sizing:border-box;width:100%}.form-section textarea{min-height:100px}.form-section small{font-size:.75rem;display:block;word-wrap:break-word}input[type=text],input[type=number],textarea,select{width:100%;padding:.75rem;border-radius:12px;border:1px solid var(--border-color);font-size:.875rem;background-color:var(--bg-secondary);color:var(--text-primary);transition:border-color .2s ease,box-shadow .2s ease;box-sizing:border-box}input[type=text]:focus,input[type=number]:focus,textarea:focus,select:focus{outline:none;border-color:var(--accent-primary);box-shadow:0 0 0 3px #8b5cf61a}textarea{min-height:120px;resize:vertical;font-family:inherit;line-height:1.6}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;border-radius:12px;padding:.875rem 1.75rem;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s ease;color:#fff;background:var(--accent-gradient);box-shadow:var(--shadow-sm);position:relative;overflow:hidden}button:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(135deg,#fff3,#fff0);opacity:0;transition:opacity .2s ease}button:disabled{opacity:.4;cursor:not-allowed;box-shadow:none}button:not(:disabled):hover{transform:translateY(-2px);box-shadow:var(--shadow-glow)}button:not(:disabled):hover:before{opacity:1}button:not(:disabled):active{transform:translateY(0)}button.secondary{background:var(--bg-secondary);border:1px solid var(--border-color);box-shadow:var(--shadow-sm)}button.secondary:hover{background:var(--bg-hover);box-shadow:var(--shadow-md)}button.link{background:none;color:var(--accent-primary);box-shadow:none;padding:0;margin:0;border-radius:0}button.link:hover{color:var(--accent-secondary);transform:none;box-shadow:none}.progress-bar{height:8px;border-radius:999px;background-color:#8b5cf626;overflow:hidden;margin-top:.75rem;position:relative}.progress-bar__fill{height:100%;background:var(--accent-gradient);transition:width .3s ease;box-shadow:0 0 12px #8b5cf680}.grid{display:grid;gap:1.5rem}.grid.two{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}.tasks-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:1px solid var(--border-color);flex-wrap:wrap;gap:1rem}.tasks-header h2{margin:0;font-size:1rem;font-weight:600;color:var(--text-primary)}.task-count{color:var(--text-secondary);font-size:.75rem;padding:.375rem .75rem;background:var(--bg-card);border-radius:999px;border:1px solid var(--border-color)}.storage-actions{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.jobs-list{display:flex;flex-direction:column;gap:1rem}.empty-state{text-align:center;padding:4rem 2rem;background:var(--bg-card);border-radius:16px;border:1px dashed var(--border-color)}.empty-icon{font-size:4rem;margin-bottom:1rem;opacity:.3}.empty-state p{color:var(--text-secondary);font-size:1rem;margin:0}@media (max-width: 1024px){.layout-columns{flex-direction:column;height:auto}.sidebar-form{width:100%;max-width:100%;border-right:none;border-bottom:1px solid var(--border-color);max-height:60vh}.main-content{min-height:50vh}}@media (max-width: 768px){:root{--top-nav-height: 56px}.nav-inner{flex-direction:column;align-items:flex-start;justify-content:center;padding:0 1rem;gap:.75rem}.nav-tabs{width:100%}.nav-tab{flex:1;text-align:center;padding:.6rem .75rem}.layout-columns{flex-direction:column;height:auto}.sidebar-form{padding:1rem;max-height:none;width:100%;max-width:100%;border-right:none;border-bottom:1px solid var(--border-color)}.main-content,.form-section{padding:1rem}.grid.two{grid-template-columns:1fr}.preview-overlay{padding:1rem;align-items:flex-end}.preview-dialog{max-height:92vh;border-radius:16px}.preview-body{padding:1rem;gap:1.25rem}.preview-video-wrapper video{max-height:55vh}.preview-video-meta{flex-direction:column;align-items:flex-start;gap:.5rem}.preview-video-actions{width:100%;flex-direction:column;align-items:stretch}.preview-video-actions button,.preview-video-actions a{width:100%;text-align:center}button{font-size:.875rem;padding:.75rem 1.25rem}h2{font-size:.95rem}h3{font-size:.85rem}}video{width:100%;border-radius:16px;margin-top:.75rem;background:var(--bg-secondary);box-shadow:var(--shadow-md);transition:transform .2s ease,box-shadow .2s ease}video:hover{transform:scale(1.02);box-shadow:var(--shadow-lg)}.badge{display:inline-flex;align-items:center;gap:.4rem;font-size:.75rem;font-weight:700;padding:.5rem 1rem;border-radius:999px;background:var(--accent-gradient);color:#fff;text-transform:uppercase;letter-spacing:.05em;box-shadow:var(--shadow-sm)}.badge.status-queued{background:linear-gradient(135deg,#6366f1,#8b5cf6)}.badge.status-processing{background:linear-gradient(135deg,#f59e0b,#f97316)}.badge.status-generating{background:linear-gradient(135deg,#10b981,#14b8a6)}.badge.status-succeeded{background:linear-gradient(135deg,#22c55e,#10b981)}.badge.status-failed{background:linear-gradient(135deg,#ef4444,#dc2626)}.badge.status-unknown{background:linear-gradient(135deg,#4b5563,#6b7280)}.tag{font-size:.75rem;border-radius:8px;background-color:#8b5cf61a;color:var(--text-secondary);padding:.375rem .75rem;border:1px solid rgba(139,92,246,.2);font-weight:500}.alert{background-color:#ef444426;border:1px solid rgba(239,68,68,.3);color:#fca5a5;padding:.875rem 1rem;border-radius:10px;margin-bottom:1rem;font-size:.8rem;line-height:1.5}.sidebar-form .alert{font-size:.75rem;padding:.75rem .875rem}input[type=file]{margin-top:.5rem;padding:.75rem;border:1px dashed var(--border-color);border-radius:12px;background:var(--bg-secondary);color:var(--text-secondary);cursor:pointer;width:100%;transition:border-color .2s ease}input[type=file]:hover{border-color:var(--accent-primary)}small{color:var(--text-muted);font-size:.875rem;line-height:1.5}code{background:var(--bg-secondary);padding:.25rem .5rem;border-radius:6px;font-size:.875em;color:var(--accent-primary);font-family:Fira Code,Courier New,monospace}a{color:var(--accent-primary);text-decoration:none;transition:color .2s ease}a:hover{color:var(--accent-secondary);text-decoration:underline}
