:root{--text:#6b6375;--text-h:#08060d;--bg:#fff;--border:#e5e4e7;--code-bg:#f4f3ec;--accent:#aa3bff;--accent-bg:#aa3bff1a;--accent-border:#aa3bff80;--social-bg:#f4f3ec80;--shadow:#0000001a 0 10px 15px -3px, #0000000d 0 4px 6px -2px;--sans:system-ui, "Segoe UI", Roboto, sans-serif;--heading:system-ui, "Segoe UI", Roboto, sans-serif;--mono:ui-monospace, Consolas, monospace;font:18px/145% var(--sans);letter-spacing:.18px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}@media (width<=1024px){:root{font-size:16px}}@media (prefers-color-scheme:dark){:root{--text:#9ca3af;--text-h:#f3f4f6;--bg:#16171d;--border:#2e303a;--code-bg:#1f2028;--accent:#c084fc;--accent-bg:#c084fc26;--accent-border:#c084fc80;--social-bg:#2f303a80;--shadow:#0006 0 10px 15px -3px, #00000040 0 4px 6px -2px}#social .button-icon{filter:invert()brightness(2)}}body{margin:0}#root{text-align:center;border-inline:1px solid var(--border);box-sizing:border-box;flex-direction:column;width:1126px;max-width:100%;min-height:100svh;margin:0 auto;display:flex}h1,h2{font-family:var(--heading);color:var(--text-h);font-weight:500}h1{letter-spacing:-1.68px;margin:32px 0;font-size:56px}@media (width<=1024px){h1{margin:20px 0;font-size:36px}}h2{letter-spacing:-.24px;margin:0 0 8px;font-size:24px;line-height:118%}@media (width<=1024px){h2{font-size:20px}}p{margin:0}code,.counter{font-family:var(--mono);color:var(--text-h);border-radius:4px;display:inline-flex}code{background:var(--code-bg);padding:4px 8px;font-size:15px;line-height:135%}:root{color:#111;background-color:#f5f6fa;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5}body{background:#f5f6fa;margin:0}.login-wrapper{background:linear-gradient(135deg,#eef2ff,#f5f6fa);justify-content:center;align-items:center;min-height:100vh;display:flex}.login-card{background:#fff;border-radius:16px;flex-direction:column;gap:16px;min-width:320px;padding:32px;display:flex;box-shadow:0 20px 45px #0f172a1f}.login-card label{flex-direction:column;gap:4px;font-weight:500;display:flex}.login-card input{border:1px solid #d4d4d8;border-radius:8px;padding:10px;font-size:15px}.app{max-width:1200px;margin:0 auto;padding:24px}.header-subtitle{color:#64748b;margin:4px 0 0;font-size:15px}.card-subtitle{color:#94a3b8;margin:2px 0 0;font-size:14px}.toast{color:#fff;z-index:1000;border-radius:10px;padding:12px 16px;font-weight:600;position:fixed;top:24px;right:24px;box-shadow:0 10px 30px #0f172a33}.toast-info{background:#3b82f6}.toast-success{background:#16a34a}.toast-danger{background:#ef4444}.app-header{justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px;display:flex}.app-header h1{margin:0}.header-actions{align-items:center;gap:12px;display:flex}.card{background:#fff;border-radius:16px;margin-bottom:24px;padding:20px;box-shadow:0 12px 20px #0f172a0f}.card-header{justify-content:space-between;align-items:center;margin-bottom:16px;display:flex}.agent-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;display:grid}.agent-card{background:#f7f9fc;border:1px solid #e5e7eb;border-radius:12px;padding:16px}.agent-title{font-weight:600}.agent-status{margin-top:8px;font-weight:500}.status-running,.status-ok{border-left:4px solid #16a34a}.status-failed,.status-danger{border-left:4px solid #dc2626}.status-paused,.status-warning{border-left:4px solid #f97316}.status-open{border-left:4px solid #6366f1}.grid.two-columns{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px;display:grid}.task-form{flex-direction:column;gap:12px;display:flex}.task-form label{flex-direction:column;gap:4px;font-weight:500;display:flex}.task-form input,.task-form textarea,.task-form select{border:1px solid #d4d4d8;border-radius:8px;padding:10px;font-size:15px}.btn{cursor:pointer;background:#e5e7eb;border:none;border-radius:8px;padding:8px 14px;font-weight:600}.btn.primary{color:#fff;background:#4f46e5}.btn.success{color:#fff;background:#16a34a}.btn.warning{color:#fff;background:#f59e0b}.btn.danger{color:#fff;background:#dc2626}.muted{color:#6b7280}.muted.small{font-size:13px}.error-text{color:#dc2626;font-weight:600}.task-board{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;display:grid}.task-column{background:#f8fafc;border-radius:12px;min-height:150px;padding:12px}.task-card{background:#fff;border:1px solid #e5e7eb;border-radius:10px;margin-bottom:10px;padding:12px;box-shadow:0 6px 12px #0f172a0a}.task-header{justify-content:space-between;align-items:center;gap:8px;display:flex}.task-actions{flex-wrap:wrap;gap:8px;margin-top:8px;display:flex}.badge{border-radius:999px;padding:2px 8px;font-size:12px;font-weight:600;display:inline-block}.source-telegram{color:#365314;background:#d9f99d}.source-dashboard{color:#3730a3;background:#e0e7ff}.flow-grid{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px;display:grid}.flow-card{background:#fdfdfd;border:1px solid #e5e7eb;border-radius:12px;padding:16px}.flow-header{justify-content:space-between;align-items:center;margin-bottom:8px;display:flex}.flow-steps{flex-direction:column;gap:8px;margin-top:12px;display:flex}.flow-step{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:8px}.flow-step-name{font-weight:600}.flow-actions{flex-wrap:wrap;gap:8px;margin-top:12px;display:flex}.flow-live{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px;display:grid}.flow-live-left,.flow-live-right{background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;padding:16px}.log-table{border-collapse:collapse;width:100%}.log-table th,.log-table td{text-align:left;border-bottom:1px solid #e5e7eb;padding:8px}.row-error{background:#fee2e2}.log-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.log-title{font-weight:600}@media (width<=700px){.app{padding:16px}.app-header{flex-direction:column;align-items:flex-start}.task-board,.flow-grid,.agent-grid{grid-template-columns:1fr}}
