@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");:root{color-scheme:light;--bg:#f6f8fb;--bg-subtle:#ffffff;--surface:#ffffff;--surface-hover:#f8fafc;--border:#e5e9f2;--border-light:#d9e0ec;--text:#0f172a;--text-secondary:#334155;--text-muted:#64748b;--accent:#0f172a;--accent-hover:#1e293b;--accent-subtle:rgba(15,23,42,0.08);--green:#22c55e;--green-subtle:rgba(34,197,94,0.12);--amber:#f59e0b;--amber-subtle:rgba(245,158,11,0.12);--red:#ef4444;--red-subtle:rgba(239,68,68,0.12);--blue:#3b82f6;--blue-subtle:rgba(59,130,246,0.12);--radius:12px;--radius-sm:8px;--radius-lg:16px;--shadow:0 1px 2px rgba(15,23,42,0.04),0 8px 24px rgba(15,23,42,0.06);--shadow-lg:0 8px 32px rgba(15,23,42,0.10);--transition:150ms cubic-bezier(.4,0,.2,1)}*{box-sizing:border-box;margin:0;padding:0}body{background:var(--bg);color:var(--text);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:14px;line-height:1.6;-webkit-font-smoothing:antialiased}.shell{display:flex;min-height:100vh}.sidebar{width:240px;background:var(--bg-subtle);border-right:1px solid var(--border);padding:20px 0;position:fixed;top:0;left:0;bottom:0;display:flex;flex-direction:column;z-index:50;box-shadow:var(--shadow)}.sidebar-brand{padding:0 20px 20px;border-bottom:1px solid var(--border);margin-bottom:8px}.sidebar-brand h1{font-size:18px;font-weight:700;letter-spacing:-.3px}.sidebar-brand p{font-size:11px;color:var(--text-muted);margin-top:2px}.sidebar-nav{flex:1 1;padding:8px}.sidebar-footer{padding:8px;border-top:1px solid var(--border)}.nav-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:var(--radius-sm);color:var(--text-secondary);text-decoration:none;font-size:13px;font-weight:500;transition:all var(--transition);margin-bottom:2px}.nav-item:hover{background:var(--surface);color:var(--text)}.nav-item-active{background:#eef2f8;color:var(--text);border:1px solid var(--border)}.main-content{margin-left:240px;flex:1 1;min-height:100vh}.command-bar{position:-webkit-sticky;position:sticky;top:0;z-index:30;height:56px;border-bottom:1px solid var(--border);background:rgba(255,255,255,.95);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);justify-content:space-between;padding:0 28px}.command-bar,.command-bar-left{display:flex;align-items:center}.command-bar-left{gap:10px}.command-label{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--text-muted)}.command-value{font-size:13px;font-weight:600;color:var(--text)}.command-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.page{max-width:1160px;margin:0 auto;padding:24px 40px 36px;width:100%}.page-header{margin-bottom:24px;display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.page-header-main{flex:1 1}.page-actions{display:flex;align-items:center;gap:8px}.page-header h1{font-size:30px;font-weight:700;letter-spacing:-.8px;margin-bottom:4px}.page-header p{color:var(--text-secondary);font-size:14px;max-width:700px;line-height:1.55}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px;transition:border-color var(--transition);box-shadow:var(--shadow)}.card:hover{border-color:var(--border-light)}.card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.card-title{font-size:15px;font-weight:600}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:12px;gap:12px;margin-bottom:18px}.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px;display:flex;align-items:flex-start;gap:10px}.stat-icon{width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;letter-spacing:.04em;flex-shrink:0}.stat-value{font-size:26px;font-weight:700;letter-spacing:-1px;line-height:1}.stat-label{font-size:11px;color:var(--text-secondary);margin-top:4px}.form-group{margin-bottom:16px}.form-label{display:block;font-size:13px;font-weight:500;color:var(--text-secondary);margin-bottom:6px}.form-hint{font-size:11px;color:var(--text-muted);margin-top:4px}input,select,textarea{width:100%;padding:10px 11px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--bg);color:var(--text);font-size:12px;font-family:inherit;transition:border-color var(--transition);outline:none}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-subtle)}input::placeholder,textarea::placeholder{color:var(--text-muted)}textarea{resize:vertical}select{-webkit-appearance:none;-moz-appearance:none;appearance:none}.btn,select{cursor:pointer}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 16px;border-radius:var(--radius-sm);font-size:12px;font-weight:600;font-family:inherit;border:none;transition:all var(--transition);text-decoration:none}.btn-primary{background:var(--accent);color:white;box-shadow:0 1px 2px rgba(15,23,42,.14)}.btn-primary:hover{background:var(--accent-hover);box-shadow:0 2px 8px rgba(15,23,42,.2);transform:translateY(-1px)}.btn-secondary{background:var(--surface);color:var(--text);border:1px solid var(--border)}.btn-secondary:hover{background:var(--surface-hover);border-color:var(--border-light)}.btn-ghost{background:transparent;color:var(--text-secondary);padding:8px 12px}.btn-ghost:hover{color:var(--text);background:var(--surface)}.btn-xs{padding:4px 10px;font-size:11px}.btn-sm{padding:6px 12px;font-size:12px}.btn-lg{padding:10px 20px;font-size:13px}.btn:disabled{opacity:.5;cursor:not-allowed;transform:none!important}.badge{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:20px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.3px}.badge-success{background:var(--green-subtle);color:var(--green)}.badge-warning{background:var(--amber-subtle);color:var(--amber)}.badge-error{background:var(--red-subtle);color:var(--red)}.badge-info{background:var(--blue-subtle);color:var(--blue)}.badge-muted{background:var(--surface);color:var(--text-muted)}.badge-dot{width:6px;height:6px;border-radius:50%;background:currentColor}.table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius)}table{width:100%;border-collapse:collapse;font-size:13px}th{text-align:left;font-weight:600;font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:var(--text-muted);background:var(--bg-subtle)}td,th{padding:10px 14px;border-bottom:1px solid var(--border)}td{color:var(--text-secondary)}tr:last-child td{border-bottom:none}tr:hover td{background:var(--surface)}.empty-state{text-align:center;padding:48px 24px;color:var(--text-secondary)}.empty-state .empty-icon{display:inline-flex;align-items:center;justify-content:center;height:28px;padding:0 10px;border-radius:999px;border:1px solid var(--border);background:var(--surface-hover);font-size:11px;margin-bottom:12px;opacity:1}.empty-state h3{font-size:16px;font-weight:600;color:var(--text);margin-bottom:6px}.empty-state p{font-size:13px;max-width:360px;margin:0 auto 16px}.event-log{list-style:none}.event-item{display:flex;gap:12px;padding:10px 0;border-bottom:1px solid var(--border);font-size:13px}.event-item:last-child{border-bottom:none}.event-time{color:var(--text-muted);font-size:12px;white-space:nowrap}.event-level{width:8px;height:8px;border-radius:50%;flex-shrink:0;margin-top:5px}.event-level-info{background:var(--blue)}.event-level-warn{background:var(--amber)}.event-level-error{background:var(--red)}.event-level-audit{background:var(--green)}.run-output-card{margin-top:12px;background:linear-gradient(180deg,#ffffff,#f8fafc);border:1px solid var(--border);border-radius:12px;padding:12px;box-shadow:0 1px 2px rgba(15,23,42,.04)}.run-output-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}.run-output-title{font-size:13px;font-weight:700;color:var(--text);letter-spacing:-.01em}.run-output-meta{margin-top:2px;font-size:11px;color:var(--text-muted)}.run-output-pre{margin:0;padding:12px;background:#0f172a;color:#e2e8f0;border:1px solid #1e293b;border-radius:10px;white-space:pre-wrap;line-height:1.55;font-size:12px;max-height:340px;overflow:auto}.ops-board{grid-gap:14px}.ops-board,.ops-grid{display:grid;gap:14px}.ops-grid{grid-template-columns:.95fr 1.45fr;grid-gap:14px}.ops-sync{font-size:11px;color:var(--text-muted);padding:4px 8px;border-radius:999px;border:1px solid var(--border)}.ops-sync-loading{animation:pulse-soft 1.1s ease-in-out infinite}.ops-run-list{display:grid;grid-gap:8px;gap:8px;max-height:560px;overflow:auto}.ops-run-item{text-align:left;border:1px solid var(--border);background:var(--bg-subtle);border-radius:10px;padding:10px;cursor:pointer;transition:all var(--transition)}.ops-run-item:hover{border-color:var(--border-light);transform:translateY(-1px)}.ops-run-item-active{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-subtle)}.ops-run-main{align-items:center;margin-bottom:4px}.ops-run-main,.ops-run-sub{display:flex;justify-content:space-between}.ops-run-sub{font-size:11px;color:var(--text-muted)}.ops-detail{display:grid;grid-gap:10px;gap:10px}.ops-meta{display:grid;grid-template-columns:1fr 1fr;grid-gap:6px 10px;gap:6px 10px;font-size:12px}.ops-meta>div{min-width:0}.ops-section{border:1px solid var(--border);border-radius:10px;background:var(--bg-subtle);padding:10px}.ops-section-title{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);margin-bottom:6px}.ops-prompt{color:var(--text-secondary)}.ops-output,.ops-prompt{white-space:pre-wrap;font-size:12px}.ops-output{margin:0;max-height:180px;overflow:auto;background:#0f172a;color:#e2e8f0;border-radius:8px;border:1px solid #1e293b;padding:10px}.ops-timeline{display:grid;grid-gap:6px;gap:6px;max-height:220px;overflow:auto}.ops-timeline-row{display:flex;align-items:flex-start;gap:8px;font-size:12px;color:var(--text-secondary)}.ops-time{width:70px;color:var(--text-muted);font-size:11px;flex-shrink:0}.ops-dot{width:8px;height:8px;border-radius:50%;margin-top:5px;flex-shrink:0;background:var(--blue)}.ops-dot-error{background:var(--red)}.ops-dot-warn,.ops-dot-warning{background:var(--amber)}.ops-dot-audit,.ops-live-dot{background:var(--green)}.ops-live-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-left:6px;animation:pulse-live 1.2s ease-in-out infinite}@keyframes pulse-live{0%,to{transform:scale(1);opacity:.6}50%{transform:scale(1.3);opacity:1}}@keyframes pulse-soft{0%,to{opacity:.6}50%{opacity:1}}.chip-group{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.chip{padding:6px 14px;border-radius:20px;border:1px solid var(--border);background:transparent;color:var(--text-secondary);font-size:12px;font-family:inherit;cursor:pointer;transition:all var(--transition)}.chip-active,.chip:hover{border-color:var(--accent);color:var(--accent)}.chip-active{background:var(--accent-subtle)}.schedule-layout{display:grid;grid-template-columns:1.6fr 1fr;grid-gap:16px;gap:16px;align-items:start}.schedule-form-card{padding:22px}.schedule-step-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:10px;gap:10px;margin-bottom:16px}.schedule-step{border:1px solid var(--border);border-radius:var(--radius-sm);padding:10px;background:var(--bg-subtle)}.schedule-step-kicker{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);margin-bottom:2px}.schedule-step-title{font-size:12px;font-weight:600;color:var(--text)}.schedule-preview-card{position:-webkit-sticky;position:sticky;top:80px;padding:16px}.schedule-preview-title{font-size:12px;font-weight:600;margin-bottom:8px;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted)}.schedule-preview-list{display:grid;grid-gap:6px;gap:6px;margin-bottom:10px}.schedule-preview-item{border:1px solid var(--border);border-radius:var(--radius-sm);padding:7px 9px;background:var(--bg-subtle)}.schedule-preview-label{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);margin-bottom:2px}.schedule-preview-value{font-size:12px;color:var(--text);font-weight:500}.schedule-mini-note{border-top:1px solid var(--border);padding-top:10px;font-size:12px;color:var(--text-secondary)}.schedule-mini-links{margin-top:8px;font-size:11px;color:var(--text-muted)}.schedule-timeline{border-top:1px solid var(--border);padding-top:10px;display:grid;grid-gap:8px;gap:8px}.schedule-timeline-row{display:flex;align-items:flex-start;gap:8px;font-size:12px;color:var(--text-secondary)}.schedule-timeline-dot{width:8px;height:8px;margin-top:6px;border-radius:50%;background:var(--accent);flex-shrink:0}.schedule-modal-card{width:100%;max-width:640px;max-height:calc(100vh - 40px);overflow:hidden;display:flex;flex-direction:column;border-radius:16px;background:#fff;box-shadow:0 12px 24px rgba(0,0,0,.2)}.schedule-modal-header{display:flex;justify-content:space-between;align-items:center;padding:24px 32px;border-bottom:1px solid var(--border)}.schedule-modal-body{padding:24px 32px;overflow:auto;flex:1 1 auto;display:flex;flex-direction:column;gap:20px}.schedule-modal-footer-actions{display:flex;gap:12px;margin-top:6px;padding-top:12px;border-top:1px solid var(--border);background:transparent}.webhook-create-card{background:linear-gradient(180deg,#f8fafc,#f3f7ff);border:1px solid #dbe7ff;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:12px}.webhook-create-title-row{display:flex;align-items:center;gap:8px}.webhook-create-dot{width:8px;height:8px;border-radius:999px;background:var(--accent)}.webhook-create-title{font-size:13px;font-weight:600;color:var(--text)}.webhook-create-description{margin:0;font-size:12px;color:var(--text-secondary);line-height:1.55}.webhook-create-option{display:flex;flex-direction:column;gap:8px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:#fff}.webhook-create-label{display:flex;align-items:center;gap:8px;font-size:13px;cursor:pointer;color:var(--text)}.webhook-create-secret{font-size:11px;padding:6px 8px;border-radius:8px;background:var(--surface-hover);border:1px dashed var(--border);overflow-x:auto}.webhook-create-secret-inbound{color:var(--blue)}.webhook-create-secret-outbound{color:var(--amber)}.webhook-create-output-row{display:flex;flex-direction:column;gap:6px}.webhook-create-output-label{margin-bottom:0}@media (max-width:768px){.schedule-modal-body,.schedule-modal-header{padding:20px 18px}}@media (max-width:540px){.schedule-modal-body,.schedule-modal-header{padding:18px 14px}}.spinner{width:16px;height:16px;border:2px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin .6s linear infinite}@keyframes spin{to{transform:rotate(1turn)}}.grid-2{grid-template-columns:1fr 1fr;grid-gap:16px}.grid-2,.grid-3{display:grid;gap:16px}.grid-3{grid-template-columns:1fr 1fr 1fr;grid-gap:16px}.gap-sm{gap:8px}.mt-sm{margin-top:8px}.mt-md{margin-top:16px}.mt-lg{margin-top:24px}.mb-md{margin-bottom:16px}.flex{display:flex}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-md{gap:12px}.text-sm{font-size:12px}.text-muted{color:var(--text-muted)}.text-secondary{color:var(--text-secondary)}.font-mono{font-family:JetBrains Mono,Fira Code,monospace}.auth-layout{min-height:100vh;display:flex;align-items:center;justify-content:center;background:var(--bg);padding:24px}.auth-container{width:100%;max-width:440px}.auth-brand{text-align:center;margin-bottom:28px}.auth-brand h1{font-size:22px;font-weight:700;letter-spacing:-.4px}.auth-brand p{font-size:13px;color:var(--text-muted);margin-top:4px}.auth-footer{text-align:center;margin-top:16px;font-size:12px;color:var(--text-muted)}.auth-footer a{color:var(--text);text-decoration:underline;text-underline-offset:2px}.onboarding-layout{min-height:100vh;background:var(--bg)}.onboarding-topbar{height:56px;border-bottom:1px solid var(--border);background:var(--bg-subtle);display:flex;align-items:center;justify-content:space-between;padding:0 28px}.onboarding-topbar h1{font-size:15px;font-weight:700}.onboarding-body{max-width:800px;margin:0 auto;padding:32px 24px}.step-bar{display:flex;gap:4px;margin-bottom:24px}.step-segment{flex:1 1;height:4px;border-radius:2px;background:var(--border);transition:background .2s ease}.step-segment-active{background:var(--accent)}.step-label{font-size:11px;color:var(--text-muted);margin-bottom:4px;text-transform:uppercase;letter-spacing:.06em}.skeleton-page{max-width:1160px;margin:0 auto;padding:24px 40px 36px}.skeleton{border-radius:8px;background:linear-gradient(90deg,#eef2f7 20%,#f7f9fc 40%,#eef2f7 60%);background-size:200% 100%;animation:shimmer 1.4s infinite}.skeleton-title{width:220px;height:32px;margin-bottom:10px}.skeleton-text{width:480px;height:14px;margin-bottom:20px}.skeleton-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:12px;gap:12px;margin-bottom:18px}.skeleton-card{height:94px}.skeleton-block,.skeleton-card{border:1px solid var(--border);border-radius:var(--radius)}.skeleton-block{height:280px}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.mgmt-layout{display:grid;grid-template-columns:260px 1fr;grid-gap:20px;gap:20px;align-items:start}.mgmt-section-label{font-size:11px;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;margin-bottom:10px;display:flex;align-items:center;gap:6px}.mgmt-section-hint{font-weight:400;font-size:10px;text-transform:none;letter-spacing:0;color:var(--text-muted)}.team-card-list{display:flex;flex-direction:column;gap:6px}.team-list-item{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);text-align:left;cursor:pointer;transition:all var(--transition)}.team-list-item:hover{border-color:var(--accent);background:var(--surface-hover)}.team-list-item-active{border-color:var(--accent);background:var(--accent-subtle)}.team-list-avatar{width:32px;height:32px;border-radius:8px;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;flex-shrink:0}.team-list-name{font-size:13px;font-weight:600;color:var(--text)}.team-list-meta{font-size:11px;color:var(--text-muted);margin-top:1px}.agent-org-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));grid-gap:12px;gap:12px}.agent-org-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px;cursor:-webkit-grab;cursor:grab;transition:all var(--transition);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.agent-org-card:hover{border-color:var(--accent);box-shadow:var(--shadow)}.agent-org-card-drag-over{border-color:var(--blue);background:var(--blue-subtle);transform:scale(.98)}.agent-org-card-expanded{cursor:default;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-subtle);grid-column:1/-1}.agent-card-header{display:flex;align-items:flex-start;gap:10px;margin-bottom:8px}.agent-card-avatar{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;color:#fff;flex-shrink:0}.agent-role{font-size:13px;font-weight:600;color:var(--text)}.agent-id-label{font-size:10px;color:var(--text-muted);margin-top:1px}.agent-goal{font-size:11px;color:var(--text-muted);line-height:1.5}.agent-edit-hint{font-size:10px;color:var(--text-muted);border:1px solid var(--border);border-radius:4px;padding:2px 6px;flex-shrink:0;opacity:0;transition:opacity var(--transition)}.agent-org-card:hover .agent-edit-hint{opacity:1}.agent-add-card{display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px dashed var(--border);border-radius:var(--radius);padding:28px 16px;cursor:pointer;color:var(--text-muted);background:transparent;font-size:13px;transition:all var(--transition);min-height:100px}.agent-add-card:hover{border-color:var(--accent);color:var(--text);background:var(--accent-subtle)}.mgmt-page{max-width:1280px}.mgmt-shell{display:grid;grid-template-columns:minmax(260px,300px) 1fr;grid-gap:0;gap:0;align-items:stretch;min-height:calc(100vh - 180px);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;background:var(--surface);box-shadow:var(--shadow)}.mgmt-rail{background:var(--surface-hover);border-right:1px solid var(--border);display:flex;flex-direction:column;min-height:420px}.mgmt-rail-head{padding:14px 14px 10px;border-bottom:1px solid var(--border);background:var(--surface)}.mgmt-rail-search-wrap{position:relative}.mgmt-rail-search-wrap svg{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:var(--text-muted);pointer-events:none}.mgmt-rail-search{width:100%;padding:8px 10px 8px 34px;border:1px solid var(--border);border-radius:999px;font-size:13px;background:var(--surface);color:var(--text);outline:none;transition:border-color var(--transition),box-shadow var(--transition)}.mgmt-rail-search:focus{border-color:var(--blue);box-shadow:0 0 0 2px var(--blue-subtle)}.mgmt-rail-hint{font-size:11px;color:var(--text-muted);margin-top:8px;line-height:1.4}.mgmt-rail-list{flex:1 1;overflow-y:auto;padding:8px;display:flex;flex-direction:column;gap:2px}.mgmt-rail-item{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border:none;border-radius:var(--radius-sm);background:transparent;text-align:left;cursor:pointer;transition:background var(--transition);position:relative;color:inherit;font:inherit}.mgmt-rail-item:hover{background:rgba(59,130,246,.06)}.mgmt-rail-item-active{background:var(--surface);box-shadow:0 1px 2px rgba(15,23,42,.06)}.mgmt-rail-item-active:before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:0 3px 3px 0;background:var(--blue)}.mgmt-rail-avatar{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,var(--blue) 0,#1d4ed8 100%);color:#fff;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;flex-shrink:0}.mgmt-rail-item-body{min-width:0;flex:1 1}.mgmt-rail-title{font-size:13px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mgmt-rail-meta{font-size:11px;color:var(--text-muted);margin-top:2px}.mgmt-main{display:flex;flex-direction:column;min-width:0;background:var(--surface)}.mgmt-main-inner{padding:20px 24px 28px;flex:1 1;overflow-y:auto}.mgmt-detail-top{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid var(--border)}.mgmt-detail-title-row{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1 1}.mgmt-detail-title{font-size:22px;font-weight:500;letter-spacing:-.4px;color:var(--text);border:none;border-bottom:1px solid transparent;padding:4px 0;width:100%;max-width:520px;background:transparent;font:inherit;outline:none}.mgmt-detail-title:hover{border-bottom-color:var(--border-light)}.mgmt-detail-title:focus{border-bottom-color:var(--blue)}.mgmt-detail-sub{font-size:12px;color:var(--text-muted);display:flex;flex-wrap:wrap;align-items:center;gap:8px}.mgmt-id-pill{font-family:ui-monospace,monospace;font-size:11px;padding:2px 8px;border-radius:6px;background:var(--surface-hover);border:1px solid var(--border);color:var(--text-secondary)}.mgmt-detail-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.mgmt-status-pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:500;padding:6px 12px;border-radius:999px;border:1px solid var(--border);background:var(--surface-hover);color:var(--text-secondary)}.mgmt-status-pill-saving{border-color:var(--blue);color:var(--blue);background:var(--blue-subtle)}.mgmt-status-pill-ok{border-color:var(--green);color:#15803d;background:var(--green-subtle)}.mgmt-status-pill-err{border-color:var(--red);color:var(--red);background:var(--red-subtle)}.mgmt-segments{display:inline-flex;padding:4px;background:var(--surface-hover);border-radius:999px;border:1px solid var(--border);margin-bottom:20px}.mgmt-segment{border:none;background:transparent;padding:8px 16px;border-radius:999px;font-size:13px;font-weight:500;color:var(--text-secondary);cursor:pointer;transition:background var(--transition),color var(--transition);font-family:inherit}.mgmt-segment:hover{color:var(--text)}.mgmt-segment-active{background:var(--surface);color:var(--text);box-shadow:0 1px 3px rgba(15,23,42,.08)}.mgmt-yaml-card{border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.mgmt-yaml-card .form-group{margin:0}.mgmt-yaml-card textarea{border:none;border-radius:0;font-size:12px;line-height:1.5;min-height:280px;width:100%;padding:14px 16px;resize:vertical}.mgmt-yaml-toolbar{justify-content:space-between;padding:10px 14px;background:var(--surface-hover);border-bottom:1px solid var(--border);font-size:12px}.mgmt-empty-panel,.mgmt-yaml-toolbar{display:flex;align-items:center;color:var(--text-muted)}.mgmt-empty-panel{flex-direction:column;justify-content:center;text-align:center;padding:48px 24px;min-height:320px}.mgmt-empty-panel h3{font-size:18px;font-weight:500;color:var(--text);margin-bottom:8px}.mgmt-snackbar{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:2000;display:flex;align-items:center;gap:16px;padding:12px 20px;border-radius:var(--radius-sm);background:var(--text);color:var(--bg-subtle);box-shadow:var(--shadow-lg);font-size:14px;max-width:min(520px,calc(100vw - 32px))}.mgmt-snackbar-err{background:#b91c1c;color:#fff}@media (max-width:992px){.mgmt-shell{grid-template-columns:1fr;min-height:0}.mgmt-rail{border-right:none;border-bottom:1px solid var(--border);min-height:220px;max-height:40vh}}.filter-tabs{display:flex;gap:6px;margin-bottom:16px;flex-wrap:wrap}.filter-tab{display:flex;align-items:center;gap:6px;padding:5px 14px;border-radius:20px;font-size:12px;font-weight:500;cursor:pointer;border:1px solid var(--border);background:var(--surface);color:var(--text-secondary);transition:all var(--transition)}.filter-tab:hover{background:var(--surface-hover);border-color:var(--accent);color:var(--text)}.filter-tab-active{background:var(--accent);color:#fff;border-color:var(--accent)}.filter-tab-count{background:rgba(255,255,255,.25);border-radius:10px;padding:0 6px;font-size:10px;font-weight:700;min-width:18px;text-align:center}.filter-tab:not(.filter-tab-active) .filter-tab-count{background:var(--border);color:var(--text-muted)}.run-layout{display:grid;grid-template-columns:1fr 1fr;grid-gap:20px;gap:20px;align-items:start}.run-form-col{display:flex;flex-direction:column}.run-activity-col{min-height:380px}.card,.ops-section,.run-activity-col,.run-form-col,.run-output-card{min-width:0}.run-step-label{font-size:10px;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.07em;margin-bottom:12px}.connector-status-bar{margin-top:10px;font-size:12px;display:flex;align-items:center;gap:6px}.connector-status-ok{color:var(--green);display:flex;align-items:center;font-weight:500}.connector-status-warn{color:var(--amber);font-weight:500}.connector-status-warn a{color:inherit}.connector-page .page-header{align-items:flex-start}.connector-layout{max-width:720px;display:flex;flex-direction:column;gap:16px}.connector-count-pill{font-size:12px;font-weight:600;color:var(--text-secondary);padding:6px 12px;border-radius:999px;border:1px solid var(--border);background:var(--surface-hover)}.connector-toast{width:100%;padding:10px 14px;border-radius:var(--radius-sm);justify-content:flex-start;text-transform:none;font-size:12px;flex-wrap:wrap;gap:8px}.connector-empty{padding:8px 0 0}.connector-empty-inner{padding:32px 24px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:12px}.connector-zalo-icon{width:48px;height:48px;border-radius:12px;background:linear-gradient(145deg,#0068ff,#0046b8);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:22px;box-shadow:0 4px 14px rgba(0,104,255,.35)}.connector-zalo-icon-sm{width:40px;height:40px;font-size:18px;flex-shrink:0}.connector-bot-list{display:flex;flex-direction:column;gap:14px}.connector-bot-card{padding:20px}.connector-bot-card-head{margin-bottom:8px}.connector-bot-card-brand{display:flex;align-items:flex-start;gap:12px}.connector-bot-meta{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted)}.connector-bot-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;padding-top:16px;border-top:1px solid var(--border)}.connector-add-card .card-header{margin-bottom:8px}.connector-guide{background:var(--surface-hover);border:1px dashed var(--border-light)}.connector-guide-title{font-size:14px;font-weight:600;margin-bottom:12px;color:var(--text)}.connector-guide-list{font-size:13px;color:var(--text-secondary);padding-left:20px;display:flex;flex-direction:column;gap:8px;margin:0}.connector-guide-link{color:var(--blue);text-decoration:underline;text-underline-offset:2px}@media (max-width:1200px){.page,.skeleton-page{max-width:100%;padding-left:24px;padding-right:24px}.ops-grid,.schedule-layout{grid-template-columns:1fr}.schedule-preview-card{position:static;top:auto}}@media (max-width:992px){.page-header h1{font-size:26px}.mgmt-layout,.run-layout{grid-template-columns:1fr}.agent-org-grid,.skeleton-grid,.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:768px){.sidebar{display:none}.main-content{margin-left:0}.command-bar{position:static;padding:10px 12px;min-height:0;flex-wrap:wrap;gap:8px}.command-bar-left{width:100%;justify-content:space-between}.command-actions{width:100%;justify-content:flex-start}.command-actions .btn{flex:1 1 auto}.page,.skeleton-page{padding:16px}.page-header{flex-direction:column;margin-bottom:16px}.page-header h1{font-size:22px}.page-header p{font-size:13px}.page-actions{width:100%;justify-content:flex-start}.agent-org-grid,.grid-2,.grid-3,.ops-meta,.schedule-step-grid,.skeleton-grid,.stat-grid{grid-template-columns:1fr}.ops-output,.run-output-pre{max-height:240px}table{min-width:640px}}@media (max-width:540px){.btn,.btn-lg,.btn-sm{width:100%}.page-actions{flex-direction:column;align-items:stretch}.auth-layout,.card{padding:14px}.onboarding-topbar{padding:0 12px}.onboarding-body{padding:18px 12px}.chip{width:100%;justify-content:center}.filter-tab{width:100%;justify-content:space-between}}.crew-success-overlay{position:fixed;inset:0;z-index:900;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;animation:fadeIn .2s ease}.crew-success-card{max-width:440px;width:90vw;text-align:center;padding:36px 28px!important;border-radius:16px;box-shadow:0 16px 48px rgba(0,0,0,.25);animation:slideUp .25s ease}.crew-success-icon{width:56px;height:56px;border-radius:50%;background:var(--green);color:#fff;display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:700;margin:0 auto 16px}.crew-success-id{margin-top:12px;padding:10px 14px;background:var(--bg);border-radius:8px;display:flex;flex-direction:column;gap:2px}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}.help-fab-bar{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:830;width:min(560px,calc(100vw - 32px));display:flex;align-items:center;gap:10px;padding:10px 12px 10px 16px;background:var(--surface);border:1px solid var(--border);border-radius:999px;box-shadow:0 8px 32px rgba(0,0,0,.12),0 2px 8px rgba(0,0,0,.06);transform-origin:bottom center;transform:translateX(-50%) scale(var(--help-scale,1))}.help-fab-input{flex:1 1;min-width:0;border:none;background:transparent;font-size:14px;outline:none;color:var(--text);padding:0}.help-fab-input::placeholder{color:var(--text-muted);opacity:.85}.help-fab-send{flex-shrink:0;width:44px;height:44px;border-radius:50%;border:none;background:var(--accent);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:opacity .15s ease,transform .15s ease}.help-fab-send:hover:not(:disabled){opacity:.92;transform:scale(1.04)}.help-fab-send:disabled{opacity:.4;cursor:not-allowed}.help-fab-send svg{pointer-events:none}.page--dashboard-assistant{padding-bottom:96px}.help-dashboard-bar{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:830;width:min(640px,calc(100vw - 32px));display:flex;align-items:center;gap:10px;padding:10px 12px 10px 16px;background:var(--surface);border:1px solid var(--border);border-radius:999px;box-shadow:0 8px 32px rgba(0,0,0,.12),0 2px 8px rgba(0,0,0,.06)}.help-dashboard-label{flex-shrink:0;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted)}.help-dashboard-input{flex:1 1;min-width:0;border:none;background:transparent;font-size:14px;outline:none;color:var(--text)}.help-dashboard-input::placeholder{color:var(--text-muted);opacity:.85}.help-dashboard-send{flex-shrink:0;width:44px;height:44px;border-radius:50%;border:none;background:var(--accent);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:opacity .15s ease,transform .15s ease}.help-dashboard-send:hover:not(:disabled){opacity:.92;transform:scale(1.04)}.help-dashboard-send:disabled{opacity:.4;cursor:not-allowed}.help-dashboard-send svg{pointer-events:none}.help-panel.help-panel--dashboard{bottom:108px;max-height:min(520px,calc(100vh - 200px));z-index:820}.help-panel{position:fixed;bottom:92px;left:50%;transform:translateX(-50%);z-index:810;width:440px;max-width:calc(100vw - 32px);max-height:calc(100vh - 140px);background:var(--surface);border:1px solid var(--border);border-radius:16px;box-shadow:0 12px 40px rgba(0,0,0,.2);display:flex;flex-direction:column;animation:slideUp .2s ease;overflow:hidden;transform-origin:bottom center;transform:translateX(-50%) scale(var(--help-scale,1))}.help-panel:not(.help-panel--dashboard){bottom:96px;max-height:min(560px,calc(100vh - 200px))}.help-panel.help-panel--canvas{bottom:88px;width:min(1100px,calc(100vw - 32px));max-height:min(80vh,calc(100vh - 160px))}.help-panel-header{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid var(--border);background:var(--accent);color:#fff;border-radius:16px 16px 0 0}.help-panel-header h3{margin:0;font-size:15px;font-weight:600}.help-panel-close{background:none;border:none;color:#fff;cursor:pointer;font-size:20px;padding:0;line-height:1;opacity:.8;transition:opacity .1s}.help-panel-close:hover{opacity:1}.help-panel-body{flex:1 1 auto;overflow-y:auto;padding:16px 18px;display:flex;flex-direction:column;gap:6px}.help-msg{max-width:88%;padding:10px 14px;border-radius:14px;font-size:13px;line-height:1.55;word-break:break-word}.help-msg-bot{align-self:flex-start;background:var(--bg);color:var(--text);border-bottom-left-radius:4px}.help-msg-user{align-self:flex-end;background:var(--accent);color:#fff;border-bottom-right-radius:4px}.help-msg a{color:inherit;text-decoration:underline}.help-panel-footer{padding:12px 14px;border-top:1px solid var(--border);display:flex;gap:8px;align-items:center}.help-panel-footer input{flex:1 1;border:1px solid var(--border);border-radius:20px;padding:8px 14px;font-size:13px;outline:none;background:var(--bg);color:var(--text)}.help-panel-footer input:focus{border-color:var(--accent)}.help-panel-send{width:36px;height:36px;border-radius:50%;background:var(--accent);color:#fff;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:opacity .1s}.help-panel-send:disabled{opacity:.4;cursor:not-allowed}.help-quick-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}.help-quick-btn{background:var(--bg);border:1px solid var(--border);border-radius:16px;padding:6px 12px;font-size:12px;cursor:pointer;color:var(--text);transition:background .1s,border-color .1s}.help-quick-btn:hover{background:var(--surface-hover);border-color:var(--accent);color:var(--accent)}.help-typing{display:flex;gap:4px;align-self:flex-start;padding:10px 14px}.help-typing-dot{width:7px;height:7px;border-radius:50%;background:var(--text-muted);opacity:.5;animation:typingBounce .8s ease-in-out infinite}.help-typing-dot:nth-child(2){animation-delay:.15s}.help-typing-dot:nth-child(3){animation-delay:.3s}@keyframes typingBounce{0%,80%,to{transform:translateY(0);opacity:.4}40%{transform:translateY(-5px);opacity:1}}.help-confirm-bar{display:flex;gap:8px;padding:10px 14px;border-top:1px solid var(--border);background:var(--bg)}.help-confirm-bar button{flex:1 1;padding:8px 12px;border-radius:8px;font-size:13px;font-weight:500;cursor:pointer;border:1px solid var(--border);transition:background .1s}.help-confirm-apply{background:var(--accent);color:#fff;border-color:var(--accent)!important}.help-confirm-apply:hover{opacity:.9}.help-confirm-cancel{background:var(--surface);color:var(--text)}.help-confirm-cancel:hover{background:var(--surface-hover)}@media (max-width:540px){.help-panel{left:50%;transform:translateX(-50%);bottom:80px;width:calc(100vw - 16px)}.help-panel.help-panel--dashboard{bottom:100px;max-height:min(480px,calc(100vh - 180px))}.page--dashboard-assistant{padding-bottom:88px}.help-dashboard-bar{width:calc(100vw - 20px);padding:8px 10px 8px 14px;bottom:12px}.help-dashboard-label{display:none}.help-fab-bar{width:calc(100vw - 20px);padding:8px 10px 8px 14px;bottom:12px}}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:var(--border-light)}