:root{font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:400;line-height:1.5}body{color:#111827;background:#fff;margin:0}#app{text-align:left;width:100%;margin:0;padding:0}a{color:inherit;text-decoration:none}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}*{box-sizing:border-box}html,body{height:100%}body{color:#111827;background:#fff;min-height:100%;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}#app{flex-direction:column;width:100%;min-height:100vh;display:flex}.topbar{background:#fff;border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;gap:16px;padding:10px 20px;display:flex}.brand{font-size:20px;font-weight:600}.user-panel{align-items:center;gap:12px;display:flex}.user-name{color:#6b7280;font-size:13px}.layout-controls{gap:8px;margin-left:auto;margin-right:16px;display:flex}.layout-btn{cursor:pointer;color:#6b7280;background:#f3f4f6;border:1px solid #e5e7eb;border-radius:6px;justify-content:center;align-items:center;width:32px;height:32px;padding:0;transition:all .15s;display:flex}.layout-btn:hover{color:#111827;background:#e5e7eb;border-color:#d1d5db}.layout{flex:1;width:100%;min-height:0;display:flex}.sidebar{background:#f9fafb;border-right:1px solid #e5e7eb;flex-direction:column;align-content:start;gap:6px;width:100%;min-height:0;padding:16px 10px;transition:padding .3s;display:flex;overflow-y:auto}.sidebar.collapsed{align-items:center;padding:16px 8px}.sidebar.collapsed .nav-item-row{justify-content:center}.sidebar.collapsed .nav-item-label{display:none}.nav-title{color:#6b7280;text-transform:uppercase;letter-spacing:1px;margin-bottom:4px;font-size:13px}.nav-logo{color:inherit;border-radius:10px;justify-content:flex-start;align-items:center;gap:8px;padding:6px 4px;text-decoration:none;display:flex}.nav-logo:hover{background:#eef2ff}.nav-logo img{object-fit:contain;width:44px;height:44px;display:block}.nav-logo-text{color:#0f172a;letter-spacing:.2px;font-size:16px;font-weight:600}.nav-item{text-align:left;color:#111827;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:10px;align-items:center;gap:10px;width:100%;padding:10px 12px;text-decoration:none;transition:all .15s;display:flex}.nav-item.active,.nav-item.router-link-active,.nav-item:hover{background:#eef2ff;border-color:#c7d2fe}.sidebar.collapsed .nav-item{justify-content:center;padding:10px}.nav-item-row{justify-content:space-between;align-items:center;gap:10px;width:100%;display:flex}.nav-item-icon{color:#6b7280;flex-shrink:0;justify-content:center;align-items:center;display:flex}.nav-item.active .nav-item-icon,.nav-item:hover .nav-item-icon{color:#3b82f6}.nav-item-label{white-space:nowrap;text-overflow:ellipsis;flex:1;overflow:hidden}.nav-arrow{color:#6b7280;font-size:12px;transition:transform .2s}.nav-group{flex-direction:column;gap:4px;display:flex}.nav-group.expanded>.nav-item .nav-arrow{transform:rotate(180deg)}.subnav{flex-direction:column;gap:4px;margin-top:4px;padding-left:12px;transition:all .2s;display:flex}.subnav.hidden{display:none}.subnav-item{text-align:left;color:#6b7280;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:8px;align-items:center;gap:8px;width:100%;padding:8px 10px;font-size:13px;text-decoration:none;transition:all .15s;display:flex}.subnav-item.active,.subnav-item.router-link-active,.subnav-item:hover{color:#111827;background:#eef2ff;border-color:#c7d2fe}.subnav-item .nav-item-icon{width:16px;height:16px}.subnav-group{flex-direction:column;gap:4px;display:flex}.subnav-group-header{text-align:left;color:#111827;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:8px;width:100%;padding:8px 10px;font-size:13px;text-decoration:none;display:flex}.subnav-group-header:hover{background:#eef2ff;border-color:#c7d2fe}.subnav-group.expanded>.subnav-group-header .nav-arrow{transform:rotate(180deg)}.subnav-group>.subnav{padding-left:18px}.content{flex-direction:column;gap:16px;height:100%;min-height:0;padding:20px;display:flex;overflow-y:auto}.work-area,.work-input{background:#fff}.work-result{background:#f9fafb}.card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;min-width:0;max-width:100%;padding:20px;box-shadow:0 8px 24px #0f172a14}.card img,.card video,.content img,.content video,.resultbar img,.resultbar video{max-width:100%;height:auto}.section-title{margin-bottom:12px;font-size:18px;font-weight:600}.muted{color:#6b7280;font-size:13px}.status{white-space:pre-wrap;color:#111827;background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;padding:12px}label{color:#6b7280;margin-bottom:6px;font-size:13px;display:block}input,textarea,select{color:#111827;background:#fff;border:1px solid #d1d5db;border-radius:8px;width:100%;padding:10px;font-family:inherit}textarea{min-height:120px}button{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:8px;padding:9px 14px}button.secondary{color:#111827;background:#e5e7eb}button:disabled{color:#98a2b3;cursor:not-allowed;opacity:1;background:#e5e7eb}.form-group{margin-bottom:16px}.form-group:last-of-type{margin-bottom:20px}.form-group label{color:#6b7280;margin-bottom:6px;font-size:13px;display:block}.form-group input[type=checkbox]{width:auto;margin-bottom:0;margin-right:8px;display:inline-block}.form-group input[type=radio]{vertical-align:middle;flex:none;width:auto;margin:0 8px 0 0;padding:0;display:inline-block}.form-group label.checkbox-label,.form-group label.radio-label{display:flex}.checkbox-label{cursor:pointer;justify-content:flex-start;align-items:center;display:flex;color:#111827!important;margin-bottom:0!important;font-size:14px!important}.radio-label{cursor:pointer;align-items:flex-start;gap:8px;display:flex;color:#111827!important;margin-bottom:0!important;font-size:14px!important}.radio-label>div{flex:1}.toolbar{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-bottom:14px;display:grid}.toolbar .field{gap:6px;display:grid}.tag-row{background:#f3f4f6;border:1px solid #e5e7eb;border-radius:14px;flex-wrap:wrap;gap:6px;padding:4px;display:inline-flex}.tag{color:#6b7280;cursor:pointer;background:#f3f4f6;border:1px solid #0000;border-radius:10px;padding:8px 16px;font-size:13px;font-weight:600;transition:all .2s}.tag:hover{color:#374151;background:#e5e7eb}.tag.active{color:#fff;background:#2563eb;border-color:#2563eb;box-shadow:0 4px 12px #2563eb33}.app-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;display:grid}.app-card{background:#fff;border:1px solid #e5e7eb;border-radius:10px;gap:10px;padding:14px;display:grid}.app-card h3{margin:0;font-size:16px}.form-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;display:grid}.compact-form-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));align-items:start;gap:10px;display:grid}.compact-form-grid .form-group{margin-bottom:0}.compact-form-grid label{margin-bottom:4px}.compact-form-grid input,.compact-form-grid textarea,.compact-form-grid select{border-radius:8px;padding:8px}.inline-form{gap:10px;display:grid}.inline-form-row{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.inline-field{align-items:center;gap:6px;min-width:0;display:inline-flex}.inline-label{color:#6b7280;white-space:nowrap;font-size:12px}.inline-field input,.inline-field select{border-radius:8px;width:auto;min-width:110px;padding:8px}.taskbar,.resultbar{background:#f9fafb;border-left:1px solid #e5e7eb;align-content:start;gap:16px;min-height:0;padding:20px;display:grid;overflow-y:auto}.taskbar-header{justify-content:space-between;align-items:center;display:flex}.taskbar-actions{gap:8px;display:flex}.job-filters{gap:10px;display:grid}.job-list{gap:10px;max-height:360px;display:grid;overflow-y:auto}.job-item{cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:10px;gap:6px;padding:10px;display:grid}.job-item.active{border-color:#2563eb;box-shadow:0 0 0 1px #2563eb}.job-actions{flex-wrap:wrap;gap:8px;display:flex}.pill{color:#6b7280;background:#f9fafb;border:1px solid #e5e7eb;border-radius:999px;align-items:center;gap:6px;padding:2px 8px;font-size:12px;display:inline-flex}.pill.success{color:#0f766e;background:#10b9811f;border-color:#10b98159}.pill.warning{color:#b45309;background:#f59e0b1f;border-color:#f59e0b59}.pill.danger{color:#b91c1c;background:#ef44441f;border-color:#ef444459}.pill.info{color:#1d4ed8;background:#3b82f61f;border-color:#3b82f659}.radio-group{flex-wrap:wrap;gap:10px;display:flex}.radio-pill{color:#6b7280;cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:999px;align-items:center;gap:6px;padding:6px 10px;font-size:12px;display:inline-flex}.radio-pill input{margin:0}.hint{color:#6b7280;font-size:12px}.result-actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.result-actions button[disabled]{opacity:.6;cursor:not-allowed}.task-detail{gap:10px;display:grid}.task-actions{flex-wrap:wrap;gap:8px;display:flex}.split{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;display:grid}.agnes-preview-grid{flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;gap:16px;display:flex}.agnes-preview-item{grid-template-columns:max-content max-content;grid-template-areas:"image remove""meta meta";justify-content:start;align-items:end;gap:8px 12px;display:grid}.agnes-preview-image{object-fit:contain;border:1px solid #e5e7eb;border-radius:10px;max-height:260px;display:block}.agnes-preview-remove{grid-area:remove;align-self:end;margin-bottom:0}.agnes-preview-meta{grid-area:meta;min-width:0}.agnes-result-video{border-radius:10px;width:33.333%;display:block}.progress-card{background:#f9fafb;border:1px solid #e5e7eb;border-radius:10px;gap:10px;padding:12px;display:grid}.progress-header{justify-content:space-between;align-items:center;font-size:13px;display:flex}.progress-bar{background:#e5e7eb;border-radius:999px;height:8px;overflow:hidden}.progress-fill{background:#2563eb;width:0%;height:100%;transition:width .3s}.progress-steps{grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:8px;display:grid}.progress-step{color:#9ca3af;align-items:center;gap:6px;font-size:12px;display:flex}.progress-step .dot{background:#d1d5db;border-radius:50%;width:8px;height:8px}.progress-step.active{color:#111827}.progress-step.active .dot{background:#2563eb}.progress-step.failed{color:#b91c1c}.progress-step.failed .dot{background:#ef4444}.summary-grid{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;display:grid}.summary-item{background:#fff;border:1px solid #e5e7eb;border-radius:10px;gap:6px;padding:10px;display:grid}.summary-text{color:#111827;word-break:break-all;font-size:13px}.dashboard-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;display:grid}.metric-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;gap:6px;padding:14px;display:grid}.metric-value{color:#111827;font-size:20px;font-weight:600}.metric-label{color:#6b7280;font-size:12px}.section-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;gap:10px;padding:14px;display:grid}.list{gap:8px;display:grid}.list-item{background:#f9fafb;border:1px solid #e5e7eb;border-radius:10px;gap:4px;padding:8px 10px;display:grid}.list-item.is-clickable{cursor:pointer;border-color:#c7d2fe}.list-item.is-clickable:hover{background:#eef2ff}.list-title{color:#111827;font-size:13px}.list-meta{color:#6b7280;font-size:12px}.quick-actions{flex-wrap:wrap;gap:10px;display:flex}.health-row{align-items:center;gap:8px;display:flex}.health-pill{color:#374151;background:#e5e7eb;border-radius:999px;padding:4px 8px;font-size:12px}.health-pill.ok{color:#166534;background:#dcfce7}.health-pill.warn{color:#92400e;background:#fef3c7}.health-pill.err{color:#991b1b;background:#fee2e2}.resource-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;display:grid}.hidden{display:none}.login-overlay{background:linear-gradient(135deg,#eef2ff 0%,#f9fafb 100%);justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.login-box{background:#fff;border:1px solid #e5e7eb;border-radius:16px;width:100%;min-width:360px;max-width:400px;padding:32px 40px;box-shadow:0 20px 40px #0f172a1f}.login-header{text-align:center;margin-bottom:24px}.login-logo{object-fit:contain;width:64px;height:64px;margin-bottom:12px}.login-header h2{color:#0f172a;margin:0;font-size:22px}.login-form .form-group{margin-bottom:16px}.login-form .form-group label{margin-bottom:8px}.login-form input{padding:12px}.login-form button{padding:12px;font-size:14px;font-weight:600}.login-form .error-msg{color:#b91c1c;background:#fef2f2;border-radius:8px;margin-bottom:16px;padding:10px;font-size:13px}.fetch-panel .fetch-layout{grid-template-columns:minmax(0,1fr) 360px;align-items:start;gap:24px;display:grid}.fetch-panel .fetch-main{min-width:0}.fetch-panel .fetch-side{background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;min-width:0;padding:16px}.fetch-panel .form-grid{flex-direction:column;gap:8px;display:flex}.fetch-panel .fetch-intro{margin-bottom:6px}.fetch-panel .field-label{color:#111827;font-weight:600}.fetch-panel .form-section+.form-section{margin-top:12px}.fetch-panel .fetch-platforms{flex-wrap:nowrap;gap:14px}.fetch-panel .progress-card{padding:10px}.fetch-panel .summary-grid{gap:6px}.fetch-panel .summary-item{padding:8px}.fetch-panel .result-actions{gap:8px}.fetch-preview{--preview-height:360px;gap:8px;margin-top:8px;display:grid}.fetch-preview .preview-controls{justify-content:space-between;align-items:center;gap:10px;display:flex}.fetch-preview .preview-ratios{flex-wrap:nowrap;gap:8px}.fetch-preview .preview-frame{aspect-ratio:16/9;background:#000;border:1px solid #e5e7eb;border-radius:10px;width:100%;overflow:hidden}.fetch-preview video{object-fit:cover;width:100%;height:100%;display:block}.fetch-preview.ratio-9-16 .preview-frame{aspect-ratio:9/16;width:100%;max-width:270px;height:auto;margin:0 auto}.fetch-preview.ratio-16-9 .preview-frame{aspect-ratio:16/9;height:auto}@media (width<=1080px){.fetch-panel .fetch-layout{grid-template-columns:1fr}}.parse-panel .form-grid,.asr-panel .form-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));align-items:start;gap:12px;display:grid}.parse-panel .form-section,.asr-panel .form-section{gap:8px;display:grid}.parse-panel .form-span,.asr-panel .form-span{grid-column:1/-1}.parse-panel .form-actions,.asr-panel .form-actions{align-items:center;gap:12px;display:flex}.parse-panel .form-actions .status,.asr-panel .form-actions .status{margin:0}.option-grid{flex-wrap:wrap;gap:10px;display:flex}.option-item{color:#6b7280;background:#fff;border:1px solid #e5e7eb;border-radius:8px;align-items:center;gap:6px;padding:6px 10px;font-size:12px;display:inline-flex}.file-pill{color:#374151;background:#f9fafb;border:1px solid #e5e7eb;border-radius:999px;align-items:center;gap:6px;padding:6px 10px;font-size:12px;display:inline-flex}.parse-output{max-height:240px;overflow:auto}.ai-panel,.ai-panel iframe,.result-panel{background:#fff}.distribution-page{flex-direction:column;gap:16px;display:flex}.distribution-page .page-header{justify-content:space-between;align-items:center;padding-bottom:4px;display:flex}.distribution-page .page-header h2{margin:0;font-size:22px;font-weight:600}.distribution-page .header-actions{align-items:center;gap:12px;display:flex}.agent-status{color:#92400e;background:#fef3c7;border-radius:999px;align-items:center;gap:6px;padding:4px 10px;font-size:12px;display:inline-flex}.agent-status.online{color:#166534;background:#dcfce7}.agent-status .dot{background:#f59e0b;border-radius:50%;width:8px;height:8px}.agent-status.online .dot{background:#10b981}.distribution-page .tabs{border-bottom:1px solid #e5e7eb;gap:4px;padding-bottom:0;display:flex}.distribution-page .tab{color:#6b7280;cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;border-radius:8px 8px 0 0;padding:10px 16px;font-size:14px}.distribution-page .tab.active{color:#2563eb;background:0 0;border-bottom-color:#2563eb}.distribution-page .filters{gap:12px;margin-bottom:16px;display:flex}.distribution-page .filters select{width:auto;min-width:140px}.overview-tab{flex-direction:column;gap:20px;display:flex}.stats-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:16px;display:grid}.stat-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;gap:6px;padding:18px;display:grid}.stat-value{color:#111827;font-size:28px;font-weight:700}.stat-label{color:#6b7280;font-size:13px}.stat-card.success .stat-value{color:#10b981}.stat-card.danger .stat-value{color:#ef4444}.stat-card.info .stat-value{color:#3b82f6}.platform-stats{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;display:grid}.platform-stat{background:#fff;border:1px solid #e5e7eb;border-radius:10px;gap:4px;padding:14px;display:grid}.platform-name{font-size:14px;font-weight:600}.platform-count{color:#111827;font-size:20px;font-weight:700}.tasks-tab{flex-direction:column;gap:12px;display:flex}.task-list{gap:12px;display:grid}.task-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;gap:12px;padding:16px;display:grid}.task-card .task-header{justify-content:space-between;align-items:center;display:flex}.task-id{color:#6b7280;font-family:monospace;font-size:13px}.status-badge{border-radius:999px;align-items:center;padding:3px 10px;font-size:12px;font-weight:500;display:inline-flex}.task-card .task-body{gap:8px;display:grid}.task-meta{flex-wrap:wrap;align-items:center;gap:10px;font-size:14px;display:flex}.task-meta.small{color:#6b7280;font-size:12px}.platform-tag{font-size:13px;font-weight:600}.task-arrow{color:#9ca3af}.task-account{color:#111827;font-weight:500}.progress-bar{background:#f3f4f6;border-radius:999px;height:20px;position:relative;overflow:hidden}.progress-fill{background:#3b82f6;height:100%;transition:width .3s;position:absolute;top:0;left:0}.progress-text{color:#111827;justify-content:center;align-items:center;width:100%;height:100%;font-size:12px;font-weight:500;display:flex;position:absolute;top:0;left:0}.error-message{color:#b91c1c;background:#fef2f2;border-radius:8px;padding:8px 12px;font-size:13px}.error-label{font-weight:600}.work-url{color:#6b7280;font-size:13px}.work-url a{color:#2563eb;text-decoration:none}.work-url a:hover{text-decoration:underline}.task-actions{justify-content:flex-end;gap:8px;display:flex}.task-actions .danger{background:#ef4444}.empty-state{text-align:center;color:#6b7280;background:#f9fafb;border:1px dashed #d1d5db;border-radius:12px;padding:60px 20px;font-size:14px}.accounts-tab{flex-direction:column;gap:20px;display:flex}.platform-group{gap:12px;display:grid}.group-title{color:#111827;align-items:center;gap:6px;font-size:14px;font-weight:600;display:flex}.account-list{gap:10px;display:grid}.account-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;display:flex}.account-info{align-items:center;gap:12px;display:flex}.account-avatar{object-fit:cover;background:#e5e7eb;border-radius:50%;flex-shrink:0;width:44px;height:44px}.account-avatar.placeholder{background:linear-gradient(135deg,#e0e7ff,#c7d2fe)}.account-details{gap:2px;display:grid}.account-name{color:#111827;align-items:center;gap:8px;font-size:15px;font-weight:600;display:flex}.status-dot{border-radius:50%;flex-shrink:0;width:8px;height:8px}.account-meta{color:#6b7280;font-size:12px}.account-meta.small{color:#9ca3af;font-size:11px}.account-actions{align-items:center;gap:8px;display:flex}.modal-overlay{z-index:100;background:#00000080;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.modal{background:#fff;border-radius:16px;width:100%;max-width:480px;max-height:90vh;padding:24px;overflow-y:auto;box-shadow:0 20px 40px #00000026}.modal.large{max-width:640px}.modal h3{margin:0 0 20px;font-size:18px;font-weight:600}.modal-hint{color:#0c4a6e;background:#f0f9ff;border-radius:8px;margin-bottom:16px;padding:10px 12px;font-size:13px}.modal-actions{justify-content:flex-end;gap:10px;margin-top:8px;display:flex}.account-grid{flex-wrap:wrap;gap:8px;display:flex}.account-chip{color:#6b7280;cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:999px;align-items:center;gap:6px;padding:6px 12px;font-size:13px;transition:all .15s;display:inline-flex}.account-chip.selected{color:#fff;background:#2563eb;border-color:#2563eb}.account-chip .small{opacity:.8;font-size:11px}.empty-hint{color:#9ca3af;padding:12px;font-size:13px}
