:root{--primary: #2563eb;--primary-dark: #1d4ed8;--primary-light: #dbeafe;--success: #16a34a;--success-light: #dcfce7;--warning: #d97706;--warning-light: #fef3c7;--danger: #dc2626;--danger-light: #fee2e2;--info: #0891b2;--info-light: #cffafe;--gray-50: #f9fafb;--gray-100: #f3f4f6;--gray-200: #e5e7eb;--gray-300: #d1d5db;--gray-400: #9ca3af;--gray-500: #6b7280;--gray-600: #4b5563;--gray-700: #374151;--gray-800: #1f2937;--gray-900: #111827;--sidebar-bg: #0f172a;--sidebar-active: #1e3a5f;--sidebar-hover: #1e293b;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif;line-height:1.5;font-weight:400;color:var(--gray-800);background-color:var(--gray-50)}*,*:before,*:after{margin:0;padding:0;box-sizing:border-box}body{min-height:100vh}.app{display:flex;min-height:100vh}.auth-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at top right,#dbeafe 0,var(--gray-50) 45%,#e0e7ff 100%)}.auth-card{width:min(100%,430px);background:#fff;border:1px solid var(--gray-200);border-radius:14px;overflow:hidden;box-shadow:0 18px 60px #0f172a24}.auth-brand{background:var(--sidebar-bg);padding:22px 24px}.auth-body{padding:28px}.auth-body h1{color:var(--gray-900);font-size:24px;margin-bottom:6px}.auth-body form{margin-top:24px}.auth-submit{width:100%;justify-content:center;margin-top:4px}.auth-switch{width:100%;margin-top:18px;border:0;background:transparent;color:var(--primary);cursor:pointer;font-size:13px}.auth-error{color:var(--danger);background:var(--danger-light);border-radius:6px;padding:9px 12px;font-size:13px;margin-bottom:12px}.auth-logout{margin:8px 0;color:var(--gray-700)}.dashboard-page{max-width:1440px;margin:0 auto}.dashboard-hero{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;padding:26px 28px;color:#fff;background:linear-gradient(120deg,#101b38,#172d58 58%,#1d4ed8);border-radius:16px;box-shadow:0 14px 34px #0f172a2e}.dashboard-hero h1{font-size:clamp(24px,3vw,36px);letter-spacing:-.8px;margin:5px 0 7px}.dashboard-hero p{color:#cbd5e1;margin:0;font-size:14px}.dashboard-kicker{display:block;color:#64748b;font-size:10px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase}.dashboard-hero .dashboard-kicker{color:#93c5fd}.dashboard-health-summary{display:flex;align-items:center;gap:9px;white-space:nowrap;padding:12px 15px;border:1px solid rgba(255,255,255,.16);border-radius:10px;background:#ffffff14;font-size:13px}.dashboard-health-summary small{color:#bfdbfe;margin-left:5px}.dashboard-status-strip{display:flex;flex-wrap:wrap;gap:10px 22px;align-items:center;margin:12px 0 28px;padding:12px 16px;background:#fff;border:1px solid #e2e8f0;border-radius:10px;color:#475569;font-size:12px}.dashboard-status-strip span{display:inline-flex;align-items:center;gap:7px}.dashboard-status-strip a,.dashboard-section-heading>a,.dashboard-panel-heading>a{color:var(--primary);font-size:12px;text-decoration:none;font-weight:700;margin-left:auto}.status-dot{display:inline-block;width:8px;height:8px;border-radius:999px;flex:0 0 auto}.status-dot-ok{background:#10b981;box-shadow:0 0 0 3px #d1fae5}.status-dot-warning{background:#f59e0b;box-shadow:0 0 0 3px #fef3c7}.status-dot-danger{background:#ef4444;box-shadow:0 0 0 3px #fee2e2}.dashboard-alert{padding:12px 16px;margin-bottom:18px;color:#991b1b;background:#fef2f2;border:1px solid #fecaca;border-radius:10px;font-size:13px}.dashboard-section{margin:26px 0}.dashboard-section-heading,.dashboard-panel-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:13px}.dashboard-section-heading h2,.dashboard-panel-heading h2{margin:3px 0 0;color:#0f172a;font-size:19px;letter-spacing:-.25px}.dashboard-actions-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.areas-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.area-chip{display:flex;align-items:center;gap:10px;padding:12px 14px;color:#0f172a;background:#fff;border:1px solid #e2e8f0;border-radius:11px;text-decoration:none;transition:transform .15s,border-color .15s,box-shadow .15s}.area-chip:hover{transform:translateY(-2px);border-color:#93c5fd;box-shadow:0 8px 20px #0f172a14}.area-chip span{font-size:18px}.area-chip b{font-size:12px}.area-chip small{color:#64748b;font-size:10px}.dashboard-action{display:flex;align-items:center;gap:12px;min-height:84px;padding:15px;color:#0f172a;background:#fff;border:1px solid #e2e8f0;border-radius:12px;text-decoration:none;box-shadow:0 4px 14px #0f172a0a;transition:transform .18s,box-shadow .18s,border-color .18s}.dashboard-action:hover{transform:translateY(-2px);border-color:#93c5fd;box-shadow:0 10px 24px #0f172a1a}.dashboard-action-icon{display:grid;place-items:center;width:38px;height:38px;color:#fff;border-radius:10px;font-size:19px}.dashboard-action span:nth-child(2){display:flex;flex:1;flex-direction:column;gap:4px}.dashboard-action strong{font-size:13px}.dashboard-action small{color:#64748b;font-size:11px}.dashboard-action-arrow{color:#94a3b8;font-size:18px}.action-blue .dashboard-action-icon{background:#2563eb}.action-violet .dashboard-action-icon{background:#7c3aed}.action-emerald .dashboard-action-icon{background:#059669}.action-amber .dashboard-action-icon{background:#d97706}.dashboard-pipeline{display:grid;grid-template-columns:repeat(6,1fr);gap:1px;overflow:hidden;border:1px solid #e2e8f0;border-radius:12px;background:#e2e8f0}.pipeline-node{position:relative;display:flex;flex-direction:column;gap:5px;min-height:118px;padding:16px 14px;color:#0f172a;background:#fff;text-decoration:none}.pipeline-node:hover{background:#f8fafc}.pipeline-node-icon{font-size:19px}.pipeline-node strong{font-size:12px}.pipeline-node b{font-size:22px;letter-spacing:-.6px}.pipeline-node small{color:#64748b;font-size:11px}.pipeline-connector{position:absolute;top:50%;right:-8px;z-index:1;color:#94a3b8;font-size:20px}.dashboard-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0}.dashboard-panel{padding:20px;background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 4px 14px #0f172a09}.dashboard-production-panel{min-height:278px}.production-list,.engine-list,.dashboard-activity-list,.dashboard-attention{display:flex;flex-direction:column;gap:4px}.production-list>a,.engine-list>div,.dashboard-activity-list>div,.dashboard-attention>div{display:flex;align-items:center;gap:11px;min-height:52px;padding:8px 5px;border-bottom:1px solid #f1f5f9;text-decoration:none;color:#0f172a}.production-list>a:last-child,.engine-list>div:last-child,.dashboard-activity-list>div:last-child{border-bottom:0}.production-list>a:hover{background:#f8fafc;border-radius:7px}.production-list span:nth-child(2),.engine-list span:nth-child(2),.dashboard-activity-list span:nth-child(2){display:flex;flex:1;flex-direction:column;gap:3px}.production-list strong,.engine-list strong,.dashboard-activity-list strong{font-size:12px}.production-list small,.engine-list small,.dashboard-activity-list small{color:#64748b;font-size:11px}.production-icon,.engine-icon{display:grid;place-items:center;width:30px;height:30px;color:#2563eb;background:#eff6ff;border-radius:8px;font-size:14px}.engine-ok{color:#059669;background:#ecfdf5}.engine-info{color:#7c3aed;background:#f5f3ff}.engine-warning{color:#d97706;background:#fffbeb}.engine-list b{color:#64748b;font-size:10px;letter-spacing:.7px}.dashboard-attention>div{justify-content:space-between}.dashboard-attention>div span:nth-child(2){flex:1;font-size:12px;color:#475569}.dashboard-attention b{font-size:11px;color:#334155}.dashboard-muted{color:#64748b;font-size:13px;margin:8px 0}.recommendation-chips{display:flex;flex-wrap:wrap;gap:8px}.recommendation-chips span{padding:9px 11px;color:#334155;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;font-size:12px}.recommendation-chips b{color:#2563eb;margin-right:4px}.dashboard-empty{max-width:600px;margin:40px auto;padding:28px;text-align:center}@media (max-width: 1000px){.dashboard-actions-grid,.areas-grid{grid-template-columns:repeat(2,1fr)}.dashboard-pipeline{grid-template-columns:repeat(3,1fr)}.pipeline-connector{display:none}}@media (max-width: 700px){.dashboard-hero{flex-direction:column;align-items:flex-start;padding:22px}.dashboard-columns,.dashboard-actions-grid,.areas-grid{grid-template-columns:1fr}.dashboard-pipeline{grid-template-columns:repeat(2,1fr)}.dashboard-status-strip{align-items:flex-start;flex-direction:column;gap:9px}}.sidebar{width:260px;background:var(--sidebar-bg);color:#fff;position:fixed;height:100vh;overflow-y:auto;display:flex;flex-direction:column;z-index:100}.sidebar-brand{padding:20px 20px 12px;border-bottom:1px solid var(--gray-700)}.sidebar-brand h2{font-size:16px;font-weight:700;color:#fff;letter-spacing:.5px}.sidebar-brand small{font-size:11px;color:var(--gray-400);display:block;margin-top:2px}.sidebar nav{flex:1;padding:8px 0}.sidebar nav a{display:flex;align-items:center;gap:10px;padding:10px 20px;color:var(--gray-400);text-decoration:none;font-size:14px;transition:all .15s;border-left:3px solid transparent}.sidebar nav a:hover{background:var(--sidebar-hover);color:#fff}.sidebar nav a.active{background:var(--sidebar-active);color:#fff;border-left-color:var(--primary);font-weight:500}.sidebar nav .nav-divider{height:1px;background:var(--gray-700);margin:8px 20px}.nav-section-label{padding:9px 20px 4px;color:#64748b;font-size:10px;font-weight:800;letter-spacing:1px;text-transform:uppercase}.sidebar-footer{padding:12px 20px;border-top:1px solid var(--gray-700);font-size:12px;color:var(--gray-500)}.main-content{margin-left:260px;padding:24px 32px;flex:1;min-height:100vh;background:var(--gray-50)}.page-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px}.page-header h1{font-size:22px;font-weight:700;color:var(--gray-900)}.page-subtitle{font-size:14px;color:var(--gray-500);margin-top:2px}.btn{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border:1px solid transparent;border-radius:6px;cursor:pointer;font-size:13px;font-weight:500;transition:all .15s;text-decoration:none}.btn:hover{opacity:.9}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-dark)}.btn-success{background:var(--success);color:#fff}.btn-danger{background:var(--danger);color:#fff}.btn-warning{background:var(--warning);color:#fff}.btn-secondary{background:var(--gray-200);color:var(--gray-700);border-color:var(--gray-300)}.btn-secondary:hover{background:var(--gray-300)}.btn-sm{padding:5px 10px;font-size:12px}.btn-xs{padding:3px 8px;font-size:11px}.btn-icon{padding:6px;min-width:32px;justify-content:center}.btn-group{display:flex;gap:8px;flex-wrap:wrap}.btn:disabled{opacity:.5;cursor:not-allowed}.card{background:#fff;border-radius:8px;border:1px solid var(--gray-200);box-shadow:0 1px 3px #0000000d}.card-header{padding:16px 20px;border-bottom:1px solid var(--gray-200);display:flex;justify-content:space-between;align-items:center}.card-header h3{font-size:15px;font-weight:600;color:var(--gray-800)}.card-body{padding:20px}.card-footer{padding:12px 20px;border-top:1px solid var(--gray-200);background:var(--gray-50);border-radius:0 0 8px 8px}.type-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.type-tab{padding:8px 16px;border:1px solid var(--gray-300);border-radius:999px;background:#fff;cursor:pointer;font-size:13px;font-weight:500;color:var(--gray-600);transition:all .15s}.type-tab:hover{border-color:var(--primary);color:var(--primary)}.type-tab.active{background:var(--primary);border-color:var(--primary);color:#fff}.type-badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:10px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;white-space:nowrap}.type-video-ia{background:var(--primary-light);color:var(--primary)}.type-upload-feed{background:var(--info-light);color:var(--info)}.type-clips{background:var(--warning-light);color:var(--warning)}.videos-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:16px}.video-card{background:#fff;border-radius:8px;border:1px solid var(--gray-200);box-shadow:0 1px 3px #0000000d;padding:16px;cursor:pointer;display:flex;flex-direction:column;gap:10px;transition:box-shadow .15s,border-color .15s}.video-card:hover{box-shadow:0 4px 12px #00000014;border-color:var(--gray-300)}.video-card-header{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.video-card-badges{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.video-title{font-size:14px;font-weight:600;color:var(--gray-900);word-break:break-word}.video-meta{display:flex;flex-direction:column;gap:4px}.meta-row{font-size:12px;color:var(--gray-600)}.meta-row .label{color:var(--gray-400);font-weight:500}.meta-row .value{color:var(--gray-700)}.video-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin-bottom:24px}.stat-card{background:#fff;border-radius:8px;border:1px solid var(--gray-200);padding:16px 20px;box-shadow:0 1px 3px #0000000d}.stat-card .stat-value{font-size:28px;font-weight:700;color:var(--gray-900)}.stat-card .stat-label{font-size:13px;color:var(--gray-500);margin-top:2px}.stat-card .stat-icon{float:right;font-size:24px;opacity:.6}.table-wrapper{background:#fff;border-radius:8px;border:1px solid var(--gray-200);box-shadow:0 1px 3px #0000000d;overflow:hidden}table{width:100%;border-collapse:collapse}th{padding:10px 16px;text-align:left;font-size:12px;font-weight:600;color:var(--gray-500);text-transform:uppercase;letter-spacing:.5px;background:var(--gray-50);border-bottom:1px solid var(--gray-200)}td{padding:12px 16px;font-size:13px;color:var(--gray-700);border-bottom:1px solid var(--gray-100)}tr:hover{background:var(--gray-50)}tr.clickable{cursor:pointer}tr.clickable:hover{background:var(--primary-light)}td.empty-cell{text-align:center;color:var(--gray-400);padding:40px}.badge{display:inline-block;padding:3px 8px;border-radius:4px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.3px}.badge-success{background:var(--success-light);color:var(--success)}.badge-warning{background:var(--warning-light);color:var(--warning)}.badge-danger{background:var(--danger-light);color:var(--danger)}.badge-info{background:var(--info-light);color:var(--info)}.badge-secondary{background:var(--gray-200);color:var(--gray-600)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-group{margin-bottom:14px}.form-group label{display:block;margin-bottom:4px;font-size:13px;font-weight:500;color:var(--gray-700)}.form-group input,.form-group select,.form-group textarea{width:100%;padding:8px 12px;border:1px solid var(--gray-300);border-radius:6px;font-size:14px;color:var(--gray-800);background:#fff;transition:border-color .15s}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light)}.form-group textarea{resize:vertical;min-height:80px}.form-group .form-hint{font-size:12px;color:var(--gray-400);margin-top:4px}.filter-bar{display:flex;gap:12px;margin-bottom:16px;flex-wrap:wrap;align-items:center}.filter-bar input,.filter-bar select{padding:8px 12px;border:1px solid var(--gray-300);border-radius:6px;font-size:13px;background:#fff}.filter-bar input{min-width:220px}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal{background:#fff;border-radius:12px;width:90%;max-width:560px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px #0000004d}.modal-wide{max-width:800px}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:16px 24px;border-bottom:1px solid var(--gray-200)}.modal-header h2{font-size:16px;font-weight:600;color:var(--gray-900)}.modal-close{background:none;border:none;font-size:22px;cursor:pointer;color:var(--gray-400);padding:4px}.modal-close:hover{color:var(--gray-700)}.modal-body{padding:20px 24px}.modal-actions{display:flex;gap:8px;justify-content:flex-end;padding:16px 24px;border-top:1px solid var(--gray-200)}.loading{text-align:center;padding:40px;color:var(--gray-500);display:flex;align-items:center;justify-content:center;gap:12px}.loading-full{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:80px 20px;color:var(--gray-500);gap:16px}.spinner{width:24px;height:24px;border:3px solid var(--gray-200);border-top-color:var(--primary);border-radius:50%;animation:spin .6s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.empty-state{text-align:center;padding:60px 20px;color:var(--gray-500)}.empty-icon{font-size:48px;margin-bottom:12px}.empty-state p{margin-bottom:16px;font-size:14px}.health-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;background:#fff;border:1px solid var(--gray-200);border-radius:20px;font-size:12px;color:var(--gray-600)}.health-dot{width:8px;height:8px;border-radius:50%}.toast{position:fixed;bottom:24px;right:24px;padding:12px 20px;border-radius:8px;color:#fff;font-size:13px;font-weight:500;z-index:9999;transform:translateY(20px);opacity:0;transition:all .3s;box-shadow:0 4px 12px #00000026}.toast.show{transform:translateY(0);opacity:1}.toast-success{background:var(--success)}.toast-error{background:var(--danger)}.toast-info{background:var(--info)}.progress-bar{width:100%;height:6px;background:var(--gray-200);border-radius:3px;overflow:hidden}.progress-bar .progress-fill{height:100%;border-radius:3px;transition:width .3s}.progress-fill.green{background:var(--success)}.progress-fill.blue{background:var(--primary)}.progress-fill.yellow{background:var(--warning)}.progress-fill.red{background:var(--danger)}.pipeline-steps{display:flex;gap:4px;margin:16px 0}.pipeline-step{flex:1;padding:8px;text-align:center;font-size:11px;border-radius:4px;background:var(--gray-100);color:var(--gray-500);font-weight:500}.pipeline-step.active{background:var(--primary-light);color:var(--primary)}.pipeline-step.done{background:var(--success-light);color:var(--success)}.pipeline-step.error{background:var(--danger-light);color:var(--danger)}@media (max-width: 768px){.sidebar{width:60px}.sidebar h2,.sidebar small,.sidebar nav a span{display:none}.sidebar nav a{justify-content:center;padding:12px}.main-content{margin-left:60px;padding:16px}.form-grid{grid-template-columns:1fr}.stats-grid{grid-template-columns:1fr 1fr}}.tabs{display:flex;gap:8px;flex-wrap:wrap}.hint{font-size:12px;color:var(--gray-500);margin:6px 0 0}.pick-list{max-height:260px;overflow-y:auto;border:1px solid var(--gray-200);border-radius:6px;padding:8px;display:grid;gap:4px}.pick-item{display:flex;gap:8px;align-items:flex-start;font-size:13px;color:var(--gray-700);padding:6px 8px;border-radius:4px}.pick-item:hover{background:var(--gray-50)}.campaign-card{margin-bottom:16px}.campaign-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.campaign-status{flex-shrink:0}.btn-row{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}.empty-text{color:var(--gray-500);font-size:13px;margin:0;padding:8px 0}.activity-list{list-style:none;margin:0;padding:0}.activity-item{display:flex;gap:10px;align-items:flex-start;padding:8px 0;border-bottom:1px solid var(--gray-100)}.activity-item:last-child{border-bottom:none}.activity-text{font-size:13px;color:var(--gray-700)}.activity-msg{line-height:1.4}.activity-time{font-size:11px;color:var(--gray-400);margin-top:2px}.error-row{padding:10px 0;border-bottom:1px solid var(--gray-100);font-size:13px;color:var(--gray-700)}.error-row:last-child{border-bottom:none}.error-text{font-size:12px;color:var(--danger);margin:4px 0 0;word-break:break-word}.btn-sm.btn-danger,.btn-sm.btn-warning{line-height:1}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--gray-300);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:var(--gray-400)}.gen-page{max-width:1440px;margin:0 auto}.motor-picker{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:12px 14px;margin-bottom:16px;background:#fff;border:1px solid #e2e8f0;border-radius:12px}.motor-picker-title{margin-right:6px;color:#64748b;font-size:10px;font-weight:800;letter-spacing:1.2px}.motor-option{display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:9px 14px;color:#334155;background:#f8fafc;border:1px solid #e2e8f0;border-radius:9px;cursor:pointer;font-size:13px;font-weight:700;transition:border-color .15s,background .15s}.motor-option small{color:#94a3b8;font-size:10px;font-weight:500}.motor-option.motor-active{color:#1e3a8a;background:#eff6ff;border-color:#bfdbfe}.motor-radio{width:14px;line-height:1}.gen-columns{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:16px}.engine-status-row{display:flex;align-items:center;gap:12px}.engine-status-copy{display:flex;flex:1;flex-direction:column;gap:3px}.engine-status-copy strong{font-size:13px;color:#0f172a}.engine-status-copy small{color:#64748b;font-size:11px;line-height:1.45}.card-header-inline{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;flex-wrap:wrap}.queue-legend{display:flex;gap:12px;align-items:center;font-size:11px;color:#64748b}.queue-legend span{display:inline-flex;align-items:center;gap:5px}.queue-dot{display:inline-block;width:9px;height:9px;border-radius:999px}.queue-queued{background:#eab308}.queue-running{background:#2563eb}.queue-done{background:#10b981}.queue-error{background:#ef4444}.queue-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 9px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap}.queue-badge:before{content:"";width:8px;height:8px;border-radius:999px;background:currentColor}.queue-badge.queue-queued{color:#a16207;background:#fef9c3}.queue-badge.queue-running{color:#1d4ed8;background:#dbeafe}.queue-badge.queue-done{color:#047857;background:#d1fae5}.queue-badge.queue-error{color:#b91c1c;background:#fee2e2}.queue-prompt-cell{max-width:340px;word-break:break-word}.pipeline-flow{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.pipeline-flow-step{display:inline-flex;align-items:center;gap:6px;padding:7px 11px;color:#475569;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:8px;font-size:11px;font-weight:800;letter-spacing:.6px}.pipeline-flow-step>span{display:grid;place-items:center;width:18px;height:18px;color:#fff;background:#2563eb;border-radius:999px;font-size:10px}.pipeline-flow-step b{color:#94a3b8}.uploads-table td{vertical-align:middle}.upload-file-cell{display:flex;align-items:center;gap:10px}.upload-file-cell strong{font-size:12px;display:block}.upload-file-cell small{color:#64748b;font-size:11px;display:block}.mini-steps{display:flex;flex-wrap:wrap;gap:3px;max-width:300px}.mini-step{padding:2px 6px;color:#94a3b8;background:#f1f5f9;border-radius:5px;font-size:9px;font-weight:700;letter-spacing:.4px}.mini-step-on{color:#1d4ed8;background:#dbeafe}.growth-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:18px}.growth-tab{display:inline-flex;align-items:center;gap:6px;padding:9px 14px;color:#475569;background:#fff;border:1px solid #e2e8f0;border-radius:9px;cursor:pointer;font-size:12px;font-weight:700}.growth-tab:hover{border-color:#bfdbfe}.growth-tab-active{color:#1e3a8a;background:#eff6ff;border-color:#bfdbfe}.activity-text strong{display:block;font-size:12px;color:#0f172a}.activity-text span{display:block;font-size:13px;color:#334155;margin:2px 0}.activity-text small{color:#94a3b8;font-size:11px}.activity-item{align-items:center}@media (max-width: 1000px){.gen-columns{grid-template-columns:1fr}}.dashboard-profile-search-card{padding:20px;background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 4px 14px #0f172a09}.dashboard-profile-search-form{max-width:760px}.dashboard-profile-search-form label{display:block;margin-bottom:6px;color:#334155;font-size:12px;font-weight:800}.dashboard-profile-search-row{display:flex;gap:8px}.dashboard-profile-search-row input,.dashboard-factory-fields input{width:100%;padding:10px 12px;border:1px solid #cbd5e1;border-radius:8px;color:#0f172a;background:#fff}.dashboard-profile-search-row input:focus,.dashboard-factory-fields input:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #dbeafe}.dashboard-profile-search-form small{display:block;margin-top:6px;color:#64748b;font-size:11px}.dashboard-search-note{color:#64748b;font-size:11px}.dashboard-profile-result{display:flex;align-items:flex-start;gap:16px;margin-top:22px;padding-top:18px;border-top:1px solid #f1f5f9}.dashboard-profile-avatar{display:grid;place-items:center;width:68px;height:68px;flex:0 0 auto;overflow:hidden;color:#1e3a8a;background:#dbeafe;border-radius:50%;font-size:25px;font-weight:800}.dashboard-profile-avatar img{width:100%;height:100%;object-fit:cover}.dashboard-profile-copy{min-width:0;flex:1}.dashboard-profile-copy strong{display:block;color:#0f172a;font-size:16px}.dashboard-profile-copy>span{color:#2563eb;font-size:12px;font-weight:700}.dashboard-profile-copy p{margin:8px 0;color:#475569;font-size:12px;white-space:pre-wrap}.dashboard-profile-metrics{display:flex;flex-wrap:wrap;gap:12px;color:#64748b;font-size:11px}.dashboard-profile-metrics b{color:#0f172a}.dashboard-profile-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}.dashboard-profile-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:22px;color:#475569;font-size:12px}.dashboard-profile-videos{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;margin-top:12px}.dashboard-profile-video{min-width:0;padding:9px;border:1px solid #e2e8f0;border-radius:10px;background:#fff}.dashboard-profile-video.selected{border-color:#2563eb;box-shadow:0 0 0 2px #dbeafe}.dashboard-profile-thumbnail{position:relative;display:grid;place-items:center;aspect-ratio:9 / 12;overflow:hidden;margin-bottom:8px;color:#94a3b8;background:#f1f5f9;border-radius:7px;font-size:11px;text-align:center}.dashboard-profile-thumbnail img{width:100%;height:100%;object-fit:cover}.dashboard-profile-thumbnail b{position:absolute;left:6px;bottom:6px;padding:3px 6px;color:#fff;background:#7c3aed;border-radius:5px;font-size:9px}.dashboard-profile-video>strong{display:-webkit-box;overflow:hidden;color:#0f172a;font-size:12px;line-height:1.35;-webkit-box-orient:vertical;-webkit-line-clamp:2}.dashboard-profile-video>small{display:block;margin:4px 0 8px;color:#64748b;font-size:10px}.dashboard-profile-video-actions{display:flex;gap:5px;flex-wrap:wrap}.dashboard-factory-handoff{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(0,1.7fr);gap:16px;margin-top:12px;padding:16px;border:1px solid #bfdbfe;border-radius:12px;background:#eff6ff}.dashboard-factory-handoff h3{margin:3px 0 5px;color:#1e3a8a;font-size:15px}.dashboard-factory-handoff p{margin:0;color:#475569;font-size:11px;word-break:break-all}.dashboard-factory-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.dashboard-factory-fields input:last-of-type{grid-column:1 / -1}.dashboard-factory-fields button{justify-content:center}.dashboard-handoff-actions{display:flex;gap:8px;flex-wrap:wrap}.dashboard-handoff-metadata{margin-top:8px}.dashboard-handoff-metadata-ok{display:flex;flex-direction:column;gap:3px;color:#15803d;font-size:11px;font-weight:600}.dashboard-handoff-metadata-ok small{color:#64748b;font-size:11px;font-weight:400;word-break:break-word}.dashboard-job-progress{margin-top:12px;padding-top:12px;border-top:1px solid #bfdbfe}.dashboard-job-progress-head{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:8px}.dashboard-job-progress-head span{color:#1e3a8a;font-size:10px;font-weight:700;letter-spacing:.08em}.dashboard-job-progress-head b{color:#1e40af;font-size:12px;text-transform:uppercase}.dashboard-job-steps{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px}.dashboard-job-step{display:flex;flex-direction:column;gap:2px;padding:7px 9px;border-radius:8px;background:#fff;border:1px solid #e2e8f0;font-size:11px}.dashboard-job-step>span{color:#334155;font-weight:600}.dashboard-job-step>b{color:#64748b;font-size:10px;text-transform:uppercase}.dashboard-job-step>small{color:#94a3b8;font-size:10px;word-break:break-word}.dashboard-job-step.step-ok{border-color:#bbf7d0;background:#f0fdf4}.dashboard-job-step.step-ok>b{color:#15803d}.dashboard-job-step.step-rodando{border-color:#bfdbfe;background:#eff6ff}.dashboard-job-step.step-rodando>b{color:#2563eb}.dashboard-job-step.step-erro{border-color:#fecaca;background:#fef2f2}.dashboard-job-step.step-erro>b{color:#b91c1c}.dashboard-job-done{margin-top:10px}.dashboard-note{margin-top:8px;padding:7px 10px;border-radius:8px;background:#fffbeb;border:1px solid #fde68a;color:#92400e;font-size:11px}.dashboard-job-done a{display:inline-block;color:#fff;background:#15803d;padding:7px 12px;border-radius:8px;font-size:12px;font-weight:700;text-decoration:none}.dashboard-job-done a+a{margin-left:8px;background:#1e40af}.dashboard-job-fases{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:6px;margin-top:10px}.dashboard-job-fase{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:8px 9px;border-radius:8px;background:#fff;border:1px solid #e2e8f0;font-size:11px}.dashboard-job-fase>span{font-size:14px}.dashboard-job-fase>b{color:#334155}.dashboard-job-fase>em{color:#64748b;font-size:10px;text-transform:uppercase;font-style:normal}.dashboard-job-fase>small{color:#94a3b8;font-size:10px;word-break:break-word;width:100%}.dashboard-job-fase.fase-ok{border-color:#bbf7d0;background:#f0fdf4}.dashboard-job-fase.fase-rodando{border-color:#bfdbfe;background:#eff6ff}.dashboard-job-fase.fase-erro{border-color:#fecaca;background:#fef2f2}@media (max-width: 700px){.dashboard-profile-result,.dashboard-factory-handoff{grid-template-columns:1fr;flex-direction:column}.dashboard-profile-result{display:grid}.dashboard-profile-actions{justify-content:flex-start}.dashboard-profile-search-row{flex-direction:column}.dashboard-factory-fields{grid-template-columns:1fr}.dashboard-factory-fields input:last-of-type{grid-column:auto}}
