:root{--bg: #f5f3ec;--surface: #ffffff;--surface-soft: #fbfaf6;--surface-hover: #fbfaf6;--border: #e3e0d4;--text: #17142f;--text-dim: #5c5877;--text-faint: #77738f;--indigo: #17142f;--indigo-soft: #3a3660;--accent: #8fd6b4;--accent-hover: #a5e0c3;--green: #3aa57a;--yellow: #b8860b;--yellow-text: #8a6508;--red: #d67878;--red-bg: #f3d6d6;--lavender: #d9d6ec;--lavender-text: #3a3660;--gray: #77738f;--radius: 16px;--radius-btn: 12px;--radius-pill: 99px;--shadow: 0 4px 16px rgba(23, 20, 47, .06);--focus-ring: 0 0 0 2px #ffffff, 0 0 0 5px var(--indigo-soft)}*{margin:0;padding:0;box-sizing:border-box}html,body,#root{height:100%}body{background:var(--bg);color:var(--text);font-family:Golos Text,system-ui,sans-serif;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:7px 14px;border:1px solid transparent;border-radius:var(--radius-btn);font-size:13px;font-weight:600;font-family:inherit;cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease;white-space:nowrap}.btn:disabled{opacity:.5;cursor:not-allowed}.btn:focus-visible{outline:none;border-color:var(--indigo-soft);box-shadow:var(--focus-ring)}.btn-primary{background:var(--accent);color:var(--indigo)}.btn-primary:hover:not(:disabled){background:var(--accent-hover)}.btn-danger{background:#f8e4e4;border-color:#d9a0a0;color:#873232}.btn-danger:hover:not(:disabled){background:#f3d2d2;border-color:#c47b7b}.btn-ghost{background:transparent;border-color:var(--border);color:var(--text-dim)}.btn-ghost:hover:not(:disabled){border-color:var(--indigo);color:var(--text)}.btn-block{width:100%}.btn-small{min-height:30px;padding:6px 10px;font-size:12px}.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}.login-card{width:100%;max-width:360px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:32px 28px;display:flex;flex-direction:column;gap:16px}.login-logo{font-size:26px;font-weight:600;text-align:center;letter-spacing:.02em;color:var(--indigo)}.login-subtitle{text-align:center;color:var(--text-dim);font-size:13px;margin-top:-12px}.login-help{background:var(--surface-soft);border:1px solid var(--border);border-radius:12px;color:var(--text-dim);font-size:12.5px;line-height:1.45;padding:10px 12px}.field{display:flex;flex-direction:column;gap:6px}.field-label{font-size:12px;font-weight:600;color:var(--text-dim)}.field input{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:9px 12px;color:var(--text);font-size:14px;font-family:inherit;outline:none;transition:border-color .15s ease,box-shadow .15s ease}.field input:focus{border-color:var(--accent);box-shadow:var(--focus-ring)}.login-error{background:var(--red-bg);border:1px solid #e8bcbc;color:#b85e5e;border-radius:10px;padding:8px 12px;font-size:13px;text-align:center}body{overflow-x:hidden}body.drawer-lock{overflow:hidden}.sidebar{position:fixed;inset:0 auto 0 0;z-index:20;display:flex;flex-direction:column;width:264px;height:100vh;padding:16px;overflow-y:auto;background:#17142f;color:#f5f3ec;box-shadow:2px 0 18px #17142f38}.sidebar-brand,.topbar-title{display:flex;align-items:center;gap:8px;min-width:0;white-space:nowrap}.sidebar-brand{min-height:56px;padding:4px 8px 18px;border-bottom:1px solid rgba(245,243,236,.12)}.topbar-logo{width:26px;height:auto;align-self:center;flex-shrink:0}.topbar-brand{font-size:17px;font-weight:600;letter-spacing:.01em;color:#fff}.topbar-tagline{font-size:12.5px;font-weight:400;color:#f5f3ec99}.sidebar-nav{display:flex;flex:1 1 auto;flex-direction:column;gap:14px;padding:16px 0}.nav-group{display:flex;flex-direction:column;gap:7px}.nav-group-system{margin-top:4px;padding-top:16px;border-top:1px solid rgba(245,243,236,.18)}.nav-group-label{margin:0;padding:0 10px;color:#f5f3ec7a;font-size:10px;font-weight:700;line-height:1.25;letter-spacing:.06em;text-transform:uppercase}.nav-group-system .nav-group-label{color:#f5f3ec9e}.nav-group-links{display:flex;flex-direction:column;gap:4px}.nav-link{position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:38px;color:#f5f3ecc2;text-decoration:none;font-size:14px;font-weight:500;padding:8px 12px;border-radius:var(--radius-btn);transition:color .15s ease,background .15s ease;white-space:nowrap}.nav-link:before{content:"";position:absolute;left:4px;top:9px;bottom:9px;width:3px;border-radius:var(--radius-pill);background:transparent}.nav-link:hover{color:#fff;background:#ffffff14}.nav-link:focus-visible,.burger:focus-visible,.drawer-scrim:focus-visible,.drawer-close:focus-visible,.sidebar .btn-ghost:focus-visible,.topbar .btn-ghost:focus-visible{outline:none;border-color:var(--indigo-soft);box-shadow:var(--focus-ring)}.nav-link-active{color:var(--indigo);background:var(--accent);font-weight:600}.nav-link-active:before{background:var(--indigo)}.nav-link-active:hover{color:var(--indigo);background:var(--accent-hover)}.nav-link-admin{color:#f5f3ecad}.nav-link-active.nav-link-admin{color:var(--indigo)}.nav-link-chip{flex-shrink:0;padding:1px 6px;border-radius:var(--radius-pill);background:#d678782e;color:#f5f3ecb8;font-size:10px;font-weight:700;letter-spacing:.02em;text-transform:uppercase}.nav-link-active .nav-link-chip{background:#17142f21;color:var(--indigo)}.sidebar-footer{position:sticky;bottom:0;display:flex;align-items:center;gap:10px;padding:14px 4px 0;border-top:1px solid rgba(245,243,236,.12);background:#17142f}.topbar-user{min-width:0;overflow:hidden;color:#f5f3ecb8;font-size:13px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.sidebar-footer .topbar-user{flex:1 1 auto}.sidebar .btn-ghost,.topbar .btn-ghost,.mobile-menu .btn-ghost{border-color:#f5f3ec4d;color:#f5f3ecd9}.sidebar .btn-ghost:hover:not(:disabled),.topbar .btn-ghost:hover:not(:disabled),.mobile-menu .btn-ghost:hover:not(:disabled){border-color:var(--accent);color:var(--accent)}.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:flex-end;gap:16px;min-height:64px;padding:12px 24px;margin-left:264px;background:#17142ff5;color:#f5f3ec;box-shadow:0 2px 12px #17142f2e}.topbar .topbar-title{display:none;margin-right:auto}.topbar-right{display:flex;align-items:center;gap:12px;min-width:0}.burger{display:none;align-items:center;justify-content:center;width:44px;height:44px;background:transparent;border:none;border-radius:10px;cursor:pointer;flex-shrink:0}.burger:hover{background:#ffffff14}.burger-lines{position:relative;display:block;width:20px;height:2px;background:#f5f3ec;border-radius:2px;transition:background .2s ease}.burger-lines:before,.burger-lines:after{content:"";position:absolute;left:0;width:20px;height:2px;background:#f5f3ec;border-radius:2px;transition:transform .25s ease}.burger-lines:before{top:-6px}.burger-lines:after{top:6px}.burger[aria-expanded=true] .burger-lines{background:transparent}.burger[aria-expanded=true] .burger-lines:before{transform:translateY(6px) rotate(45deg)}.burger[aria-expanded=true] .burger-lines:after{transform:translateY(-6px) rotate(-45deg)}.drawer-layer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60}.drawer-scrim{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;padding:0;background:#17142f85;border:0;cursor:pointer}.mobile-menu{position:relative;z-index:1;display:flex;flex-direction:column;gap:10px;width:min(320px,92vw);height:100vh;padding:16px;overflow-y:auto;background:var(--indigo);color:#f5f3ec;box-shadow:14px 0 28px #17142f52}.drawer-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 0 12px;border-bottom:1px solid rgba(245,243,236,.12)}.mobile-menu .nav-link{min-height:44px}.mobile-menu-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding:12px 4px 0;border-top:1px solid rgba(245,243,236,.12)}@media(min-width:1024px){.content{max-width:1200px;margin:0 auto;margin-left:calc(264px + max(24px,(100vw - 264px - 1200px) / 2));margin-right:max(24px,(100vw - 264px - 1200px) / 2)}}@media(max-width:1023px){.sidebar{display:none}.topbar{justify-content:space-between;margin-left:0}.topbar .topbar-title{display:flex}.topbar-right{display:none}.burger{display:inline-flex}}@media(max-width:820px){.topbar{padding:10px 16px}.topbar-tagline{display:none}}.content{max-width:1200px;margin:0 auto;padding:24px}.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}.page-header h1{margin:0 0 6px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--text-faint);margin:0 0 4px}.muted{color:var(--text-dim);font-size:13px;line-height:1.5}.alert{border-radius:var(--radius-btn);padding:10px 14px;font-size:13px;margin-bottom:16px;border:1px solid transparent}.alert-error{background:var(--red-bg);color:#b85e5e;border-color:#e8bcbc}.alert-success{background:#e4f5ec;color:#2b7d5c;border-color:#bfe3ce}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px 16px;margin-top:16px}.form-grid label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:500;color:var(--text)}.form-grid input,.form-grid select,.form-grid textarea,.filters-row input,.filters-row select,.form-control{width:100%}.form-control,.form-grid input,.form-grid select,.form-grid textarea,.filters-row input,.filters-row select{min-height:40px;border:1px solid var(--border);border-radius:var(--radius-btn);background:var(--surface);color:var(--text);padding:9px 12px;font:inherit;transition:background .15s ease,border-color .15s ease,box-shadow .15s ease}.form-control::placeholder,.form-grid input::placeholder,.form-grid textarea::placeholder,.filters-row input::placeholder{color:var(--text-faint)}.form-control:hover:not(:disabled),.form-grid input:hover:not(:disabled),.form-grid select:hover:not(:disabled),.form-grid textarea:hover:not(:disabled),.filters-row input:hover:not(:disabled),.filters-row select:hover:not(:disabled){border-color:var(--indigo-soft)}.form-control:focus-visible,.form-grid input:focus-visible,.form-grid select:focus-visible,.form-grid textarea:focus-visible,.filters-row input:focus-visible,.filters-row select:focus-visible{outline:none;border-color:var(--indigo-soft);box-shadow:var(--focus-ring)}.form-control:disabled,.form-grid input:disabled,.form-grid select:disabled,.form-grid textarea:disabled,.filters-row input:disabled,.filters-row select:disabled{background:#efede5;border-color:#d4d0c2;color:var(--text-faint);cursor:not-allowed}.form-control[aria-invalid=true],.form-grid input[aria-invalid=true],.form-grid select[aria-invalid=true],.form-grid textarea[aria-invalid=true]{border-color:#873232;box-shadow:0 0 0 1px #8732322e}.field-helper,.field-error{display:block;font-size:12px;font-weight:500;line-height:1.4}.field-helper{color:var(--text-dim)}.field-error{color:#873232}.form-span-2{grid-column:1 / -1}.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}.filters-row{display:flex;flex-wrap:wrap;gap:10px;margin:4px 0 16px}.filters-row select,.filters-row input{min-width:180px}tr.selected-row{background:var(--lavender)}@media(min-width:1024px){.content{margin-left:calc(264px + max(24px,(100vw - 264px - 1200px) / 2));margin-right:max(24px,(100vw - 264px - 1200px) / 2)}}.banner{border-radius:var(--radius-btn);padding:10px 14px;font-size:13px;margin-bottom:16px}.banner-error{background:var(--red-bg);border:1px solid #e8bcbc;color:#b85e5e}.banner-success{background:#8fd6b440;border:1px solid rgba(58,165,122,.4);color:#2b7d5c}.banner-warn{background:#b8860b1a;border:1px solid rgba(184,134,11,.35);color:#96700a}.banner-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.page-title{font-size:22px;font-weight:600}.dashboard-toolbar{justify-content:flex-end;margin-bottom:16px}.empty-state{text-align:center;color:var(--text-faint);padding:80px 0;font-size:15px}.agents-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}.agent-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px;display:flex;flex-direction:column;gap:12px;transition:border-color .15s ease,box-shadow .15s ease}.agent-card:hover{border-color:#d3cfbf;box-shadow:0 6px 20px #17142f1a}.agent-card-busy{opacity:.7}.agent-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.agent-name{font-size:16px;font-weight:600;line-height:1.3}.agent-meta{display:flex;align-items:center;gap:8px;margin-top:3px}.agent-slug{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11.5px;color:var(--text-faint);background:var(--surface-soft);border:1px solid var(--border);border-radius:6px;padding:1px 6px}.agent-role{font-size:12px;color:var(--text-dim)}.agent-desc{color:var(--text-dim);font-size:13px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.agent-task-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.agent-task-stat{background:var(--surface-soft);border:1px solid var(--border);border-radius:10px;padding:9px 10px}.agent-task-stat-label{display:block;color:var(--text-faint);font-size:11px;font-weight:600;letter-spacing:.02em}.agent-task-stat-value{display:block;color:var(--text);font-size:20px;font-weight:700;line-height:1.2;margin-top:2px}.status{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;font-weight:600;white-space:nowrap;padding-top:2px}.status-dot{width:9px;height:9px;border-radius:50%;flex-shrink:0}.status-running{color:var(--green)}.status-running .status-dot{background:var(--green);box-shadow:0 0 0 3px #3aa57a33}.status-starting{color:var(--yellow)}.status-starting .status-dot{background:var(--yellow);box-shadow:0 0 0 3px #b8860b33;animation:pulse 1.4s ease-in-out infinite}.status-stopped{color:var(--gray)}.status-stopped .status-dot{background:var(--gray);box-shadow:0 0 0 3px #77738f26}.status-error{color:#c26060}.status-error .status-dot{background:var(--red);box-shadow:0 0 0 3px #d6787840}@keyframes pulse{0%,to{opacity:1}50%{opacity:.4}}.agent-badges{display:flex;flex-wrap:wrap;gap:6px}.badge{font-size:11px;font-weight:600;border-radius:var(--radius-pill);padding:2px 9px;letter-spacing:.02em}.badge-warn{background:#b8860b1a;border:1px solid rgba(184,134,11,.35);color:#96700a}.badge-tg{background:var(--lavender);border:1px solid #c8c4e2;color:var(--lavender-text)}.badge-success{background:#3aa57a1f;border:1px solid rgba(58,165,122,.35);color:#2b7d5c}.badge-neutral{background:var(--surface-soft);border:1px solid var(--border);color:var(--text-dim)}.badge-role{background:var(--lavender);border:1px solid #c8c4e2;color:var(--lavender-text)}.agent-actions{display:flex;gap:8px;margin-top:auto;padding-top:4px}.page-loading{display:flex;flex-direction:column;align-items:center;gap:12px;color:var(--text-dim);padding:80px 0}.spinner{width:26px;height:26px;border:3px solid var(--border);border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.agent-card-clickable{cursor:pointer}.agent-card-clickable:focus-visible{outline:none;border-color:var(--accent);box-shadow:var(--focus-ring)}.agent-page{display:flex;flex-direction:column;gap:16px}.back-link{align-self:flex-start;color:var(--text-dim);text-decoration:none;font-size:13px;font-weight:600;transition:color .15s ease}.back-link:hover{color:var(--green)}.back-link:focus-visible{outline:none;border-radius:8px;box-shadow:var(--focus-ring)}.agent-page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.agent-page-name{font-size:22px;font-weight:600;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.agent-page-slug{font-weight:400}.tabs{display:flex;gap:4px;border-bottom:1px solid var(--border);overflow-x:auto;scrollbar-width:thin}.tab{background:transparent;border:none;border-bottom:2px solid transparent;color:var(--text-dim);font-size:13.5px;font-weight:600;font-family:inherit;padding:8px 14px;cursor:pointer;white-space:nowrap;flex-shrink:0;transition:color .15s ease,border-color .15s ease}.tab:hover{color:var(--text)}.tab-active{color:var(--text);border-bottom-color:var(--green)}.chat-panel{display:flex;flex-direction:column;gap:12px}.chat-list{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px;min-height:320px;max-height:55vh;overflow-y:auto;display:flex;flex-direction:column;gap:10px}.chat-empty{margin:auto;color:var(--text-faint);font-size:14px}.chat-row{display:flex}.chat-row-user{justify-content:flex-end}.chat-row-assistant{justify-content:flex-start}.chat-bubble{max-width:75%;padding:9px 13px;border-radius:14px;font-size:14px;white-space:pre-wrap;word-break:break-word}.chat-bubble-user{background:var(--accent);color:var(--indigo);border-bottom-right-radius:4px}.chat-bubble-assistant{background:var(--surface-soft);border:1px solid var(--border);color:var(--text);border-bottom-left-radius:4px}.chat-tool{color:var(--text-faint);font-size:12px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;padding-left:4px;word-break:break-word}.chat-tool-failed{color:#c26060}.chat-tool-done{color:var(--text-faint)}.chat-cursor{display:inline-block;width:8px;height:15px;margin-left:2px;vertical-align:text-bottom;background:var(--green);animation:blink 1s steps(1) infinite}@keyframes blink{0%,to{opacity:1}50%{opacity:0}}.chat-form{display:flex;gap:10px;align-items:flex-end;min-width:0}.chat-input{flex:1;min-width:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-btn);padding:10px 12px;color:var(--text);font-size:14px;font-family:inherit;line-height:1.5;resize:vertical;outline:none;transition:border-color .15s ease,box-shadow .15s ease}.chat-input:focus{border-color:var(--accent);box-shadow:var(--focus-ring)}.chat-input:disabled{opacity:.6}.sessions-panel,.logs-panel{display:flex;flex-direction:column;gap:12px}.panel-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.sessions-table{width:100%;border-collapse:collapse;font-size:13px}.sessions-table th{text-align:left;color:var(--text-dim);font-size:12px;font-weight:600;padding:10px 14px;border-bottom:1px solid var(--border);white-space:nowrap}.sessions-table td{padding:9px 14px;border-bottom:1px solid var(--border);white-space:nowrap}.sessions-table tbody tr{cursor:pointer;transition:background .15s ease}.sessions-table tbody tr:hover{background:var(--surface-hover)}.sessions-table tbody tr:last-child td{border-bottom:none}.sessions-table tr.row-selected{background:#8fd6b42e}.cell-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px}.session-messages{display:flex;flex-direction:column;gap:10px}.session-messages-title{font-size:14px;font-weight:600}.session-messages-list{display:flex;flex-direction:column;gap:8px}.session-msg{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-btn);box-shadow:var(--shadow);padding:10px 12px}.session-msg-head{display:flex;align-items:center;gap:8px;margin-bottom:4px}.session-msg-role{font-size:12px;font-weight:600;color:var(--text-dim)}.session-msg-user .session-msg-role{color:var(--green)}.session-msg-tool .session-msg-role{color:var(--yellow)}.session-msg-toolname{font-size:11.5px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--yellow)}.session-msg-time{margin-left:auto;font-size:11.5px;color:var(--text-faint)}.session-msg-content{font-size:13px;white-space:pre-wrap;word-break:break-word}.token-sessions-shell{overflow:visible}.token-master-detail{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,420px);align-items:start;gap:16px}.token-sessions-list{min-width:0}.token-sessions-table tbody tr.token-session-row{transition:background .15s ease,box-shadow .15s ease}.token-sessions-table tbody tr.token-session-row:hover{background:var(--surface-hover)}.token-sessions-table tbody tr.token-session-row:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--indigo-soft)}.token-sessions-table tbody tr.token-session-row-selected,.token-sessions-table tbody tr.token-session-row-selected:hover{background:var(--lavender)}.token-detail-panel{position:sticky;top:84px;display:flex;flex-direction:column;min-height:360px;max-height:calc(100vh - 112px);overflow:hidden;background:var(--surface-soft);border:1px solid var(--border);border-radius:var(--radius)}.token-detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 14px 12px;background:var(--surface);border-bottom:1px solid var(--border)}.token-detail-title-block{min-width:0}.token-detail-title-block h3,.token-detail-placeholder h3{margin:0 0 6px;font-size:15px}.token-detail-meta,.token-detail-session-title,.token-detail-placeholder p,.token-detail-state{color:var(--text-faint);font-size:12.5px}.token-detail-meta,.token-detail-session-title{margin:0;overflow-wrap:anywhere}.token-detail-session-title{margin-top:4px;color:var(--text);font-weight:600}.token-detail-events{display:flex;flex:1 1 auto;flex-direction:column;gap:10px;min-height:0;padding:12px;overflow-y:auto}.token-detail-placeholder{margin:auto;max-width:280px;padding:24px;text-align:center}.token-detail-error{margin-bottom:0}.token-detail-state{margin:auto;text-align:center}.token-event-card{background:var(--surface);border:1px solid var(--border);border-left:4px solid var(--gray);border-radius:12px;padding:9px 11px}.token-event-head{display:flex;align-items:center;gap:8px;margin-bottom:5px;color:var(--text-faint);font-size:11.5px;flex-wrap:wrap}.token-event-role{font-weight:700}.token-event-tool{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.token-event-time{margin-left:auto;font-variant-numeric:tabular-nums}.token-event-content{margin:0;color:var(--text);font-family:inherit;font-size:12.5px;line-height:1.5;white-space:pre-wrap;word-break:break-word}.token-event-content-clamped{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:5}@media(max-width:900px){.token-master-detail{display:block}.token-detail-panel{position:fixed;inset:auto 0 0;z-index:70;max-height:88vh;min-height:min(520px,88vh);border-radius:18px 18px 0 0;box-shadow:0 -12px 32px #17142f3d;transform:translateY(110%);transition:transform .2s ease}.token-detail-panel-open{transform:translateY(0)}.token-detail-header{position:sticky;top:0;z-index:1}}.tail-select{display:inline-flex;align-items:center;gap:8px;color:var(--text-dim);font-size:13px}.tail-select select{background:var(--surface);border:1px solid var(--border);border-radius:10px;color:var(--text);font-size:13px;font-family:inherit;padding:6px 10px;outline:none;cursor:pointer}.tail-select select:focus{border-color:var(--accent);box-shadow:var(--focus-ring)}.logs-pre{background:var(--indigo);border:1px solid var(--indigo);border-radius:var(--radius);padding:14px 16px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;line-height:1.6;color:#c9c5e4;max-height:60vh;overflow:auto;white-space:pre-wrap;word-break:break-word}.chat-page{display:flex;flex-direction:column;gap:16px}.chat-list-shared{position:relative;min-height:380px;max-height:62vh}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.chat-feed-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.chat-filter-chips{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}.chat-search-label{flex:1 1 240px;min-width:min(100%,220px)}.chat-search-label input{width:100%;min-height:34px;background:var(--surface-soft);border:1px solid var(--border);border-radius:var(--radius-pill);color:var(--text);font:inherit;font-size:13px;padding:7px 12px;outline:none;transition:border-color .15s ease,box-shadow .15s ease}.chat-search-label input:focus,.filter-chip:focus-visible,.event-expand:focus-visible,.new-events-button:focus-visible{outline:none;border-color:var(--accent);box-shadow:var(--focus-ring)}.active-filter-strip{display:flex;align-items:center;gap:8px;flex-wrap:wrap;width:100%;color:var(--text-dim);font-size:12.5px}.event-card{width:100%;background:var(--surface-soft);border:1px solid var(--border);border-left:4px solid var(--gray);border-radius:14px;padding:10px 12px;box-shadow:0 2px 10px #17142f0a}.event-card.event-source-telegram{border-left-color:#6d66a8}.event-card.event-source-email{border-left-color:#3aa57a}.event-card.event-source-deploy{border-left-color:#b8860b}.event-card.event-source-sales{border-left-color:#7b9fd6}.event-card.event-source-operator{border-left-color:var(--accent)}.event-card-topline{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0;margin-bottom:5px}.event-lozenge{display:inline-flex;align-items:center;min-height:20px;border:1px solid var(--border);border-radius:var(--radius-pill);padding:1px 8px;font-size:11px;font-weight:700;line-height:1.35;letter-spacing:.02em;text-transform:uppercase;white-space:nowrap}.event-lozenge-source{background:#fff;color:var(--indigo-soft)}.event-source-telegram.event-lozenge-source{background:var(--lavender);border-color:#c8c4e2;color:var(--lavender-text)}.event-source-email.event-lozenge-source{background:#3aa57a1f;border-color:#3aa57a59;color:#2b7d5c}.event-source-deploy.event-lozenge-source{background:#b8860b1a;border-color:#b8860b59;color:#96700a}.event-status-error,.event-status-risk{background:var(--red-bg);border-color:#e8bcbc;color:#b85e5e}.event-status-deploy,.event-status-decision{background:#b8860b1a;border-color:#b8860b59;color:#96700a}.event-status-sent{background:#8fd6b440;border-color:#3aa57a66;color:#2b7d5c}.event-status-info{background:var(--surface);color:var(--text-dim)}.event-route{min-width:0;overflow:hidden;color:var(--text-dim);font-size:12.5px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.event-time{margin-left:auto;color:var(--text-faint);font-size:11.5px;white-space:nowrap}.event-card-summary{overflow:hidden;color:var(--text);font-size:13.5px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.event-card-body{margin-top:5px;color:var(--text-dim);font-size:13px;line-height:1.45;white-space:pre-wrap;word-break:break-word}.event-card-body-clamped{display:-webkit-box;overflow:hidden;-webkit-line-clamp:3;-webkit-box-orient:vertical}.event-expand{align-self:flex-start;margin-top:6px;padding:0;background:transparent;border:1px solid transparent;border-radius:6px;color:var(--green);cursor:pointer;font:inherit;font-size:12.5px;font-weight:700}.new-events-button{position:sticky;bottom:8px;align-self:center;z-index:2;margin-top:-2px;padding:7px 12px;background:var(--indigo);border:1px solid var(--indigo);border-radius:var(--radius-pill);box-shadow:0 8px 20px #17142f2e;color:#fff;cursor:pointer;font:inherit;font-size:12.5px;font-weight:700}.chat-author{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;color:var(--green);margin-bottom:3px}.chat-time{display:block;font-size:10.5px;color:var(--text-faint);margin-top:3px;text-align:right}.chat-time-user{color:#17142f8c}.chat-system{align-self:center;color:var(--text-faint);font-size:12px;text-align:center;padding:2px 8px}.chat-chip{align-self:center;max-width:90%;background:var(--surface-soft);border:1px solid var(--border);border-radius:var(--radius-pill);padding:4px 14px;font-size:12px;color:var(--text-dim);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-chip-route{font-weight:600;color:var(--text)}.chat-chip-sep{color:var(--text-faint)}.chat-chip-status{font-weight:600}.chat-chip-pending .chat-chip-status{color:var(--gray)}.chat-chip-running .chat-chip-status{color:var(--yellow)}.chat-chip-done .chat-chip-status{color:var(--green)}.chat-chip-error{border-color:#e8bcbc}.chat-chip-error .chat-chip-status{color:#c26060}.interactions-page{display:flex;flex-direction:column;gap:16px}.interactions-table td.cell-task{white-space:normal;max-width:380px;word-break:break-word}.ibadge{display:inline-block;font-size:11.5px;font-weight:600;border-radius:var(--radius-pill);padding:2px 10px;letter-spacing:.02em;white-space:nowrap}.ibadge-pending{background:#77738f1a;border:1px solid rgba(119,115,143,.35);color:var(--gray)}.ibadge-running{background:#b8860b1a;border:1px solid rgba(184,134,11,.35);color:#96700a}.ibadge-done{background:#8fd6b440;border:1px solid rgba(58,165,122,.4);color:#2b7d5c}.ibadge-error{background:#f8e4e4;border:1px solid #d9a0a0;color:#873232}.ibadge-blue{background:#3a36601a;border:1px solid rgba(58,54,96,.35);color:var(--indigo-soft)}.audit-requests{display:flex;flex-direction:column;gap:12px}.audit-section-title{font-size:15px;font-weight:600;color:var(--text)}.audit-requests-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:12px}.audit-request-card{padding:14px 16px;display:flex;flex-direction:column;gap:8px}.audit-request-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.audit-request-question{font-size:14px;font-weight:600;color:var(--text);white-space:pre-wrap;word-break:break-word}.audit-request-context{font-size:13px;color:var(--text-dim);white-space:pre-wrap;word-break:break-word}.audit-request-hint{font-size:12.5px;color:var(--text-faint)}.deploys-list{display:flex;flex-direction:column;gap:12px}.deploy-card{padding:16px;display:flex;flex-direction:column;gap:10px}.deploy-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.deploy-head-left{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.deploy-branch{color:var(--text-dim)}.deploy-summary{font-size:14px;color:var(--text);white-space:pre-wrap;word-break:break-word}.deploy-meta{display:flex;align-items:center;gap:16px;flex-wrap:wrap;font-size:12.5px;color:var(--text-faint)}.deploy-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.deploy-result{display:flex;flex-direction:column;gap:8px}.deploy-result-toggle{align-self:flex-start}.deploy-confirm-dialog{max-width:560px}.deploy-confirm-note{color:var(--text-dim);font-size:13px;margin-top:4px}.deploy-confirm-details{display:grid;gap:10px;margin:0}.deploy-confirm-details div{display:grid;grid-template-columns:120px 1fr;gap:10px;align-items:start}.deploy-confirm-details dt{color:var(--text-faint);font-size:12px;font-weight:700;letter-spacing:.03em;text-transform:uppercase}.deploy-confirm-details dd{margin:0;color:var(--text);word-break:break-word}.deploy-confirm-summary dd{white-space:pre-wrap}.sessions-table tr.row-detail{cursor:default}.sessions-table tr.row-detail:hover{background:transparent}.sessions-table tr.row-detail td{white-space:normal;padding:12px 14px;background:var(--surface-soft)}.detail-pre{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;line-height:1.6;color:var(--text-dim);max-height:40vh;overflow:auto;white-space:pre-wrap;word-break:break-word;margin:0}.detail-pre-error{color:#b85e5e}.detail-empty{color:var(--text-faint);font-size:12.5px}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#17142f73;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:24px}.modal{width:100%;max-width:440px;max-height:90vh;overflow-y:auto;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 12px 40px #17142f2e;padding:24px;display:flex;flex-direction:column;gap:16px}.modal-title{font-size:17px;font-weight:600}.modal-form{display:flex;flex-direction:column;gap:14px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:4px}.field-select,.field-textarea{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:9px 12px;color:var(--text);font-size:14px;font-family:inherit;outline:none;transition:border-color .15s ease,box-shadow .15s ease}.field-select{cursor:pointer}.field-textarea{resize:vertical;line-height:1.5}.field-select:focus,.field-textarea:focus{border-color:var(--accent);box-shadow:var(--focus-ring)}.agent-page-head-right{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.editor-panel{display:flex;flex-direction:column;gap:16px}.editor-block{display:flex;flex-direction:column;gap:10px}.editor-title{font-size:14px;font-weight:600}.editor-note{background:#b8860b14;border:1px solid rgba(184,134,11,.3);border-radius:10px;padding:8px 12px;color:#96700a;font-size:12.5px}.editor-note-muted{color:var(--text-dim);font-size:13px}.editor-textarea{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-btn);padding:12px 14px;color:var(--text);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px;line-height:1.6;min-height:220px;resize:vertical;outline:none;transition:border-color .15s ease,box-shadow .15s ease;-moz-tab-size:2;tab-size:2}.editor-textarea-tall{min-height:460px}.editor-textarea:focus{border-color:var(--accent);box-shadow:var(--focus-ring)}.editor-actions{display:flex;gap:10px;flex-wrap:wrap}.editor-details{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);padding:0}.editor-details summary{cursor:pointer;padding:12px 16px;font-size:13.5px;font-weight:600;color:var(--text-dim);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;transition:color .15s ease}.editor-details summary:hover{color:var(--text)}.editor-details[open] summary{border-bottom:1px solid var(--border);color:var(--text)}.editor-details .editor-block{padding:14px 16px}.toolset-panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:14px 16px;display:flex;flex-direction:column;gap:10px}.toolset-platform{font-size:13px;font-weight:600;color:var(--green)}.toolset-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px 16px}.check-label{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--text-dim);cursor:pointer;-webkit-user-select:none;user-select:none}.check-label:hover{color:var(--text)}.check-label input[type=checkbox]{width:15px;height:15px;accent-color:var(--green);cursor:pointer}@media(max-width:820px){.topbar{padding:10px 16px}.content{padding:16px 12px}.agents-grid{grid-template-columns:1fr}.chat-bubble{max-width:88%}.chat-list{padding:12px}.interactions-table td.cell-task{max-width:260px}.agent-page-name{font-size:19px}.page-title{font-size:20px}.modal{padding:18px 16px}.modal-overlay{padding:12px}.login-card{padding:26px 20px}}.settings-card{width:min(100%,560px);display:flex;flex-direction:column;gap:14px;padding:24px}.settings-section{display:flex;flex-direction:column;gap:10px;padding:16px;border:1px solid var(--border);border-radius:var(--radius-btn);background:var(--surface-soft)}.settings-section-head{display:flex;flex-direction:column;gap:3px}.settings-section-title{margin:0;font-size:15px;font-weight:700;color:var(--text)}.settings-section-description,.settings-hint{margin:0;color:var(--text-dim);font-size:13px}.settings-section-disabled{opacity:.68}.settings-section-disabled .settings-section-title{color:var(--text-dim)}.settings-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:8px}.settings-status{display:inline-flex;align-items:center;min-height:32px;border-radius:var(--radius-btn);padding:6px 10px;font-size:12.5px;line-height:1.35}.settings-muted{color:var(--text-faint)}.settings-dirty{background:#b8860b1a;border:1px solid rgba(184,134,11,.35);color:#96700a}.metadata-card{margin:1rem 0;padding:1rem;border:1px solid var(--border, #2f3542);border-radius:16px;background:#ffffff08}.metadata-grid{display:grid;grid-template-columns:minmax(160px,220px) minmax(180px,260px) 1fr auto;gap:.75rem;align-items:end}.metadata-card .field-label{display:flex;flex-direction:column;gap:.35rem;font-size:.9rem;color:var(--text-dim)}.text-input{width:100%;min-height:2.4rem;border:1px solid var(--border);border-radius:10px;padding:.55rem .7rem;background:var(--surface);color:var(--text);font-size:14px;font-family:inherit;outline:none;transition:border-color .15s ease,box-shadow .15s ease}.text-input:focus{border-color:var(--accent);box-shadow:var(--focus-ring)}.chat-session-bar,.session-messages-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.75rem}@media(max-width:800px){.metadata-grid{grid-template-columns:1fr}.chat-session-bar,.session-messages-head{align-items:stretch;flex-direction:column}}.secret-access-required{display:flex;flex-direction:column;gap:12px;border-color:#b8860b59;background:linear-gradient(180deg,rgba(184,134,11,.08),var(--surface))}.secret-access-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}.secret-form-note{margin:12px 0 0}.secret-success{display:flex;align-items:center;justify-content:space-between;gap:12px}.secret-success strong{display:block;margin-bottom:2px}.secret-success p{margin:0}.secret-copy-chip{display:inline-flex;align-items:center;gap:8px;max-width:100%;border:1px solid #bfe3ce;border-radius:var(--radius-pill);background:var(--surface);color:#23694d;padding:7px 10px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.secret-copy-chip code{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:min(320px,42vw)}.secret-copy-chip:hover{border-color:#7dbb99}.secret-copy-chip:focus-visible{outline:none;border-color:var(--indigo-soft);box-shadow:var(--focus-ring)}.secret-value-field{border:1px solid var(--border);border-radius:var(--radius-btn);background:var(--surface-soft);padding:12px}.secret-form-actions{align-items:center;justify-content:space-between}.secret-submit-reason{max-width:420px}.secret-status-lozenge{font-size:11.5px}.secret-clamped-cell,.secret-metadata-cell code{max-width:260px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;word-break:break-word}.secret-metadata-cell code{max-width:360px}.secret-empty-state{margin-top:12px;border:1px dashed var(--border);border-radius:14px;background:var(--surface-soft);padding:18px;color:var(--text-dim)}.secret-empty-state h3{color:var(--text);font-size:15px;margin-bottom:4px}.secret-detail-card{display:grid;grid-template-columns:minmax(160px,220px) minmax(240px,1fr) auto;gap:12px;align-items:start;margin:12px 0;padding:12px;border:1px solid var(--border);border-radius:var(--radius-btn);background:var(--surface-soft)}.secret-detail-card div{min-width:0}.secret-detail-card span{display:block;color:var(--text-faint);font-size:11px;font-weight:700;letter-spacing:.03em;text-transform:uppercase}.secret-detail-card strong,.secret-detail-card p{margin:3px 0 0;color:var(--text);word-break:break-word}.secret-revoke-dialog{max-width:560px}@media(max-width:800px){.secret-success,.secret-form-actions{align-items:stretch;flex-direction:column}.secret-copy-chip{justify-content:center}.secret-detail-card{grid-template-columns:1fr}}.attention-panel{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);padding:16px}.attention-panel-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px}.attention-panel-head h2{font-size:18px;margin-bottom:2px}.attention-panel-head p{color:var(--text-dim);font-size:13px}.attention-grid{display:grid;grid-template-columns:repeat(4,minmax(170px,1fr));gap:10px}.attention-card{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:72px;padding:12px 14px 12px 18px;border:1px solid var(--border);border-radius:14px;color:var(--text);background:var(--surface-soft);text-decoration:none;overflow:hidden}.attention-card:before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:var(--red)}.attention-card-warning:before{background:var(--yellow)}.attention-card span{color:var(--text-dim);font-weight:600}.attention-card strong{min-width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-pill);background:var(--red-bg);color:#a94747;font-size:18px}.attention-card-warning strong{background:#fff2c2;color:var(--yellow)}.attention-card-muted{opacity:.62}.attention-card-muted:before{background:var(--border)}.attention-card-muted strong{background:var(--lavender);color:var(--text-faint)}.attention-card:hover{border-color:var(--accent)}@media(max-width:1000px){.attention-grid{grid-template-columns:repeat(2,minmax(170px,1fr))}}@media(max-width:620px){.attention-grid{grid-template-columns:1fr}}.kanban-page{display:flex;flex-direction:column;gap:16px}.page-head-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.page-subtitle{color:var(--text-dim);margin-top:4px}.kanban-total{border:1px solid var(--border);border-radius:var(--radius-pill);padding:7px 13px;color:var(--text-dim);background:var(--surface);white-space:nowrap}.kanban-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;align-items:start}.kanban-column{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-soft);min-height:340px;overflow:hidden}.kanban-column-head{display:flex;justify-content:space-between;gap:10px;padding:14px;border-bottom:1px solid var(--border);background:var(--surface)}.kanban-column-head h2{font-size:15px;margin-bottom:2px}.kanban-column-head span{color:var(--text-faint);font-size:12px}.kanban-column-head strong{min-width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:var(--lavender);color:var(--lavender-text)}.kanban-cards{padding:12px;display:flex;flex-direction:column;gap:10px}.kanban-card{border:1px solid var(--border);border-radius:14px;background:var(--surface);padding:12px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:8px}.kanban-card-top,.kanban-card-meta{display:flex;justify-content:space-between;gap:10px;align-items:center}.kanban-card-task{font-weight:600;color:var(--text);word-break:break-word}.kanban-card-meta{color:var(--text-faint);font-size:12px;align-items:flex-start}.kanban-card-error,.kanban-card-result{border-radius:10px;padding:8px 10px;font-size:12px;line-height:1.45;word-break:break-word;display:flex;align-items:center;justify-content:space-between;gap:8px}.kanban-card-error{background:var(--red-bg);color:#b85e5e}.kanban-card-result{background:#8fd6b42e;color:#2b7d5c}.kanban-journal-link{border:0;background:transparent;color:inherit;font:inherit;font-weight:700;cursor:pointer;text-decoration:underline;white-space:nowrap}.panel-toolbar-wrap,.kanban-focus-chips{flex-wrap:wrap}.kanban-focus-chips{display:flex;gap:8px;align-items:center}.kanban-close-stale-row{display:flex;width:100%}.kanban-close-stale{width:100%;justify-content:center}.kanban-action-hint{width:100%;border:1px dashed var(--border);border-radius:10px;padding:7px 10px;color:var(--text-faint);font-size:12px;text-align:center}.kanban-empty{border:1px dashed var(--border);border-radius:14px;padding:16px;color:var(--text-faint);text-align:center;background:#ffffff73}@media(max-width:1180px){.kanban-board{grid-template-columns:repeat(2,minmax(240px,1fr))}}@media(max-width:700px){.page-head-row{flex-direction:column}.kanban-board{grid-template-columns:1fr}}.crm-page .page-header{margin-bottom:16px}.crm-filters{display:flex;flex-direction:column;gap:12px;margin-bottom:16px}.crm-filters-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.crm-filters-controls input,.crm-filters-controls select,.crm-form input,.crm-form select,.crm-form textarea,.crm-comment-form input,.crm-message-form input,.crm-message-form select,.crm-message-form textarea{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:8px 10px;color:var(--text);font:inherit;outline:none}.crm-search{flex:1 1 260px;min-width:200px}.crm-filters-loading{color:var(--text-dim);font-size:12.5px}.crm-filters-controls input:focus,.crm-filters-controls select:focus,.crm-form input:focus,.crm-form select:focus,.crm-form textarea:focus,.crm-comment-form input:focus,.crm-message-form input:focus,.crm-message-form select:focus,.crm-message-form textarea:focus{border-color:var(--indigo-soft);box-shadow:var(--focus-ring)}.crm-chip-reset{color:var(--text-faint)}.crm-layout{display:grid;grid-template-columns:340px minmax(0,1fr);gap:16px;align-items:start}.crm-list,.crm-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.crm-list{display:flex;flex-direction:column;overflow:hidden;max-height:calc(100vh - 220px);overflow-y:auto}.crm-list-item{display:flex;flex-direction:column;gap:8px;padding:13px 14px;background:transparent;border:0;border-left:3px solid transparent;border-bottom:1px solid var(--border);color:var(--text);text-align:left;cursor:pointer;font:inherit;transition:background .15s,border-color .15s}.crm-list-item:hover{background:var(--surface-soft)}.crm-list-item-active{background:var(--surface-soft);border-left-color:var(--indigo)}.crm-list-item-overdue,.crm-list-item-overdue.crm-list-item-active{border-left-color:var(--red)}.crm-list-top{display:flex;align-items:flex-start;gap:10px}.crm-list-headings{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.crm-list-title{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crm-list-meta,.crm-muted{color:var(--text-dim);font-size:12.5px}.crm-list-sub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crm-list-followup{display:flex;align-items:center;gap:6px;flex-wrap:wrap;color:var(--text-faint);font-size:12px}.crm-list-followup-label{font-weight:700;text-transform:uppercase;letter-spacing:.04em;font-size:10px;color:var(--text-faint)}.crm-list-followup.is-overdue,.crm-list-followup.is-overdue .crm-list-followup-label{color:#b85e5e}.crm-list-resp{color:var(--text-dim)}.crm-status{display:inline-flex;align-items:center;border-radius:var(--radius-pill);padding:3px 9px;background:var(--lavender);color:var(--lavender-text);font-size:12px;font-weight:700;white-space:nowrap;flex:0 0 auto}.crm-status-tone-new{background:#b8860b24;color:var(--yellow)}.crm-status-tone-progress{background:var(--lavender);color:var(--lavender-text)}.crm-status-tone-won{background:#3aa57a29;color:var(--green)}.crm-status-tone-lost{background:var(--red-bg);color:#b85e5e}.crm-status-tone-postponed{background:var(--surface-soft);color:var(--text-dim)}.crm-badge-row,.crm-card-badges{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.crm-card-badges{justify-content:flex-end}.crm-card{padding:18px}.crm-card-head{display:flex;justify-content:space-between;gap:16px;margin-bottom:14px}.crm-card-head h2{font-size:18px;margin-bottom:4px}.crm-card-head p{color:var(--text-dim);font-size:12.5px}.crm-finance-banner{background:#3aa57a14;border:1px solid rgba(58,165,122,.28);border-radius:12px;padding:12px 14px;margin-bottom:16px;display:flex;flex-direction:column;gap:10px}.crm-finance-line{font-size:13px;color:var(--text)}.crm-form{display:flex;flex-direction:column;gap:10px}.crm-form-section{border:1px solid var(--border);border-radius:12px;background:var(--surface-soft);padding:0 14px}.crm-form-section[open]{padding-bottom:14px}.crm-form-section-summary{cursor:pointer;font-weight:700;font-size:13px;padding:12px 0;list-style:none;color:var(--text);-webkit-user-select:none;user-select:none}.crm-form-section-summary::-webkit-details-marker{display:none}.crm-form-section-summary:before{content:"▸";display:inline-block;margin-right:8px;color:var(--text-faint);transition:transform .15s}.crm-form-section[open]>.crm-form-section-summary:before{transform:rotate(90deg)}.crm-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.crm-form-grid .field{display:flex;flex-direction:column;gap:5px}.crm-form textarea{min-height:74px;resize:vertical}.crm-wide{grid-column:1 / -1}.crm-checkbox-field{flex-direction:row;align-items:center;gap:8px;min-height:38px}.crm-checkbox-field input{width:auto}.crm-form-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.crm-timeline-block{margin-top:22px;padding-top:18px;border-top:1px solid var(--border)}.crm-section-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px;flex-wrap:wrap}.crm-section-head h3{font-size:16px;margin-bottom:4px}.crm-section-head p{color:var(--text-dim);font-size:12.5px}.crm-comment-form{display:flex;gap:8px;margin-bottom:12px}.crm-comment-form input{flex:1}.crm-message-composer{margin-bottom:14px}.crm-message-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.crm-message-form textarea{min-height:84px;resize:vertical}.crm-timeline{display:flex;flex-direction:column;gap:10px}.crm-timeline-row{border:1px solid var(--border);border-left:4px solid var(--border);border-radius:12px;padding:11px 13px;background:var(--surface)}.crm-timeline-inbound{border-left-color:var(--green)}.crm-timeline-outbound{border-left-color:var(--accent)}.crm-timeline-internal,.crm-timeline-comment{border-left-color:var(--lavender)}.crm-timeline-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;color:var(--text-dim);font-size:12px}.crm-timeline-tag{font-weight:700;color:var(--text)}.crm-timeline-author{color:var(--text-dim)}.crm-timeline-time{margin-left:auto;color:var(--text-faint)}.crm-timeline-subject{font-size:14px;margin:8px 0 4px}.crm-timeline-text{margin-top:6px;white-space:pre-wrap;word-break:break-word}.crm-timeline-source{margin-top:6px}@keyframes crm-shimmer{0%{background-position:-400px 0}to{background-position:400px 0}}.crm-sk{display:block;border-radius:8px;background:linear-gradient(90deg,var(--surface-soft) 25%,var(--border) 37%,var(--surface-soft) 63%);background-size:800px 100%;animation:crm-shimmer 1.4s ease-in-out infinite}.crm-skeleton-list{display:flex;flex-direction:column}.crm-skeleton-item{display:flex;gap:10px;padding:14px;border-bottom:1px solid var(--border)}.crm-sk-avatar{width:32px;height:32px;border-radius:50%;flex:0 0 32px}.crm-skeleton-lines{display:flex;flex-direction:column;gap:7px;flex:1}.crm-sk-line{height:11px}.crm-sk-w70{width:70%}.crm-sk-w60{width:60%}.crm-sk-w50{width:50%}.crm-sk-w40{width:40%}.crm-skeleton-detail{display:flex;flex-direction:column;gap:12px}.crm-skeleton-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:8px}.crm-sk-field{height:40px}.crm-sk-block{height:120px;margin-top:8px}@media(max-width:900px){.crm-layout{grid-template-columns:1fr}.crm-list{max-height:none}.crm-form-grid,.crm-skeleton-grid,.crm-message-form{grid-template-columns:1fr}}.btn-sm{padding:7px 12px;font-size:12.5px}.crm-funnel-card{display:flex;gap:18px;align-items:stretch;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px 18px;margin-bottom:14px;flex-wrap:wrap}.crm-funnel{display:flex;gap:8px;align-items:flex-end;flex:1 1 480px;min-width:320px;min-height:96px}.crm-funnel-col{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:5px;background:transparent;border:none;padding:4px 2px;border-radius:8px;cursor:pointer;font-family:inherit}.crm-funnel-col:hover{background:var(--surface-soft)}.crm-funnel-col.is-active{background:var(--surface-soft);box-shadow:inset 0 0 0 1px var(--accent)}.crm-funnel-count{font-size:12px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--text)}.crm-funnel-track{width:100%;height:56px;display:flex;align-items:flex-end;justify-content:center}.crm-funnel-fill{width:60%;min-height:3px;border-radius:5px 5px 3px 3px;background:linear-gradient(180deg,var(--accent),#b7e3cc);transition:height .2s ease}.crm-funnel-fill-won{background:linear-gradient(180deg,var(--green),#7cc7a4)}.crm-funnel-fill-lost{background:linear-gradient(180deg,var(--red),#e4b1b1)}.crm-funnel-label{font-size:9.5px;color:var(--text-faint);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}.crm-kpis{display:flex;gap:10px;align-items:stretch;flex:0 0 auto}.crm-kpi{display:flex;flex-direction:column;gap:2px;justify-content:center;min-width:96px;padding:10px 14px;background:var(--surface-soft);border:1px solid var(--border);border-radius:12px;cursor:pointer;font-family:inherit;text-align:left}.crm-kpi:hover{border-color:var(--accent)}.crm-kpi.is-active{box-shadow:inset 0 0 0 1px var(--indigo-soft)}.crm-kpi-value{font-size:20px;font-weight:800;font-variant-numeric:tabular-nums;color:var(--text);line-height:1.1}.crm-kpi-label{font-size:11px;color:var(--text-dim)}.crm-kpi-warn .crm-kpi-value{color:var(--red)}.crm-kpi-mid .crm-kpi-value{color:var(--yellow)}.crm-detail-head{display:flex;align-items:center;gap:12px;margin-bottom:14px}.crm-detail-heading{flex:1;min-width:0}.crm-detail-heading h2{font-size:18px;margin-bottom:3px;word-break:break-word}.crm-detail-sub{color:var(--text-dim);font-size:12.5px}.crm-detail-actions{flex:0 0 auto}.crm-detail-meta{color:var(--text-faint);font-size:12px}.crm-tabs{margin-bottom:16px}.crm-pane{display:flex;flex-direction:column;gap:16px}.crm-banner{display:flex;align-items:flex-start;gap:10px;padding:11px 14px;border-radius:12px;font-size:13px;line-height:1.4}.crm-banner-warn{background:#b8860b1a;border:1px solid rgba(184,134,11,.32);color:var(--text)}.crm-banner-info{background:var(--surface-soft);border:1px solid var(--border);color:var(--text-dim)}.crm-banner-icon{font-size:15px;line-height:1.3}.crm-kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px}.crm-kv-cell{display:flex;flex-direction:column;gap:3px;min-width:0}.crm-kv-label{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--text-faint)}.crm-kv-value{font-size:14px;color:var(--text);word-break:break-word}.crm-kv-inline{display:flex;align-items:center;gap:7px}.crm-kv-danger{color:var(--red);font-weight:600}.crm-pill{display:inline-block;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.03em;padding:2px 7px;border-radius:var(--radius-pill);vertical-align:middle}.crm-next-step{background:var(--surface-soft);border:1px solid var(--border);border-radius:12px;padding:12px 14px}.crm-next-step-label{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--text-faint);margin-bottom:5px}.crm-next-step-text{font-size:14px;color:var(--text);white-space:pre-wrap;word-break:break-word}.crm-quick-actions{display:flex;gap:8px;flex-wrap:wrap}.crm-qa-item{position:relative}.crm-popover{position:absolute;top:calc(100% + 6px);right:0;z-index:30;width:260px;display:flex;flex-direction:column;gap:10px;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow);padding:14px}.crm-popover .field{display:flex;flex-direction:column;gap:5px}.crm-popover textarea{min-height:64px;resize:vertical}.crm-popover-actions{display:flex;justify-content:flex-end}.crm-stream-block{display:flex;flex-direction:column;gap:12px}.crm-finance-empty{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:20px;border:1px dashed var(--border);border-radius:12px;background:var(--surface-soft)}@media(max-width:900px){.crm-kv{grid-template-columns:1fr}.crm-funnel-card{flex-direction:column}.crm-kpis{flex-wrap:wrap}.crm-popover{right:auto;left:0;width:min(260px,80vw)}}.agent-title-row,.kanban-assignee{display:flex;align-items:center;gap:10px;min-width:0}.agent-avatar{width:42px;height:42px;flex:0 0 42px;border-radius:50%;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--accent),var(--lavender));color:var(--indigo);font-weight:700;font-size:13px;border:1px solid rgba(23,20,47,.08)}.agent-avatar img{width:100%;height:100%;object-fit:cover;display:block}.agent-avatar-small{width:32px;height:32px;flex-basis:32px;font-size:11px}.kanban-assignee{border-radius:12px;background:var(--surface-soft);border:1px solid var(--border);padding:8px}.kanban-assignee-label{display:block;color:var(--text-faint);font-size:11px;line-height:1.2}.kanban-assignee strong{display:block;color:var(--text);font-size:13px;line-height:1.25}.session-message-filters{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 12px;flex-wrap:wrap}.session-role-filter-group{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.filter-caption{color:var(--text-dim);font-size:12px;font-weight:600}.filter-chip{border:1px solid var(--border);border-radius:var(--radius-pill);background:var(--surface);color:var(--text-dim);padding:5px 10px;font:inherit;font-size:12px;cursor:pointer;transition:border-color .15s ease,background .15s ease,color .15s ease}.filter-chip:hover{border-color:var(--accent);color:var(--text)}.filter-chip-active{background:var(--accent);border-color:var(--accent);color:var(--indigo);font-weight:600}.session-empty-filter{white-space:nowrap}.user-status{display:inline-flex;align-items:center;width:max-content;padding:3px 9px;border-radius:var(--radius-pill);font-size:12px;font-weight:600}.user-status-active{background:#3aa57a24;color:var(--green)}.user-status-inactive{background:var(--lavender);color:var(--lavender-text)}.users-active-field select{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:9px 12px;color:var(--text);font-size:14px;font-family:inherit}.users-note{margin-top:16px}.access-card{border:1px solid var(--border);border-radius:var(--radius-lg);padding:14px;background:var(--surface)}.access-card h3{margin:0 0 8px}.banner-warning{background:#fff8df;border-color:#ead08b;color:#7a5a00}.btn-secondary{background:var(--lavender);color:var(--lavender-text)}.management-page,.crm-page{display:flex;flex-direction:column;gap:16px}.mgmt-updated{color:var(--text-faint);font-size:12px}.mgmt-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}.mgmt-grid-metrics{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.mgmt-card,.mgmt-metric{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px}.mgmt-card h2,.mgmt-card h3{font-size:16px;margin-bottom:10px}.mgmt-metric{display:flex;flex-direction:column;gap:6px;min-height:92px}.mgmt-metric span{color:var(--text-dim);font-size:12px}.mgmt-metric strong{font-size:26px}.mgmt-metric-danger{background:var(--red-bg);border-color:#e8bcbc}.mgmt-metric-danger strong{color:#b85e5e}.mgmt-metric-warning{background:#b8860b17;border-color:#b8860b47}.mgmt-metric-warning strong{color:var(--yellow-text)}.mgmt-metric-muted{background:var(--surface-soft)}.mgmt-metric-muted strong{color:var(--text-faint)}.mgmt-metric-link{color:inherit;text-decoration:none}.mgmt-metric-link:hover .mgmt-metric,.mgmt-bar:hover{border-color:var(--accent)}.mgmt-metric-link:focus-visible{outline:none}.mgmt-metric-link:focus-visible .mgmt-metric,.mgmt-bar:focus-visible{border-color:var(--indigo-soft);box-shadow:var(--focus-ring)}.mgmt-bars{display:flex;flex-direction:column;gap:8px}.mgmt-bar,.mgmt-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border:1px solid var(--border);border-radius:10px;background:var(--surface-soft);color:inherit;text-decoration:none}.mgmt-degraded{background:#b8860b12}.section-title{font-size:18px;margin-top:8px}.section-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:8px}.dashboard-section{display:flex;flex-direction:column;gap:12px}.risk-panel{background:linear-gradient(135deg,#fff7f7,#fff 56%,#fbfaf6);border:1px solid #e8bcbc;border-radius:22px;box-shadow:var(--shadow);padding:18px}.risk-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.risk-panel-head h2{font-size:24px;line-height:1.15}.risk-eyebrow{color:#b85e5e;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.risk-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.risk-item{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:92px;padding:14px;border:1px solid var(--border);border-radius:16px;background:var(--surface);color:inherit;text-decoration:none;transition:border-color .15s ease,transform .15s ease}.risk-item:hover,.risk-item:focus-visible{transform:translateY(-1px)}.risk-item:hover{border-color:var(--accent)}.risk-item:focus-visible{outline:none;border-color:var(--indigo-soft);box-shadow:var(--focus-ring)}.risk-item-copy{display:flex;flex-direction:column;gap:4px;min-width:0}.risk-item-copy small{color:var(--text-dim);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.risk-item-copy .risk-item-hint{align-items:center;color:var(--text-dim);display:flex;flex-wrap:wrap;gap:6px}.risk-lozenge{border-radius:var(--radius-pill);display:inline-flex;font-size:11px;font-weight:700;line-height:1;padding:4px 7px;text-transform:uppercase}.risk-lozenge-warning{background:#b8860b24;color:var(--yellow-text)}.risk-lozenge-muted{background:#77738f1a;color:var(--text-faint)}.risk-item-value{align-items:center;border-radius:var(--radius-pill);display:inline-flex;flex-shrink:0;font-size:22px;font-weight:700;justify-content:center;min-width:48px;padding:6px 10px}.risk-item-danger{background:var(--red-bg);border-color:#e8bcbc}.risk-item-danger .risk-item-value{background:#fff;color:#b85e5e}.risk-item-warning{background:#b8860b17;border-color:#b8860b47}.risk-item-warning .risk-item-value{background:#fff;color:var(--yellow-text)}.risk-item-info .risk-item-value{background:#8fd6b440;color:var(--indigo)}.risk-item-muted{background:var(--surface-soft)}.risk-item-muted .risk-item-value{background:#77738f1a;color:var(--text-faint)}.agent-health-summary{align-items:center;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);display:flex;gap:18px;justify-content:space-between;padding:16px}.agent-health-summary div{display:flex;flex-direction:column;gap:2px}.agent-health-summary strong{font-size:28px}.agent-health-summary span,.agent-health-summary p{color:var(--text-dim)}.user-badges,.access-summary{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.access-summary{margin:8px 0 12px;color:var(--text-dim);font-size:13px}.lead-magnet-page{min-height:100vh;background:linear-gradient(180deg,#f5f3ec,#fbfaf6);color:var(--text);padding:32px 20px 56px}.lead-hero,.lead-section{width:min(1080px,100%);margin:0 auto 24px;background:var(--surface);border:1px solid var(--border);border-radius:24px;box-shadow:var(--shadow);padding:32px}.lead-hero{background:radial-gradient(circle at top right,rgba(143,214,180,.28),transparent 32%),var(--indigo);color:#fff;padding:44px}.lead-brand{display:inline-flex;align-items:center;border:1px solid rgba(255,255,255,.24);border-radius:var(--radius-pill);color:#ffffffd1;font-size:13px;margin-bottom:28px;padding:6px 12px}.lead-kicker{color:var(--accent);font-size:14px;font-weight:700;letter-spacing:.04em;margin-bottom:12px;text-transform:uppercase}.lead-hero h1{font-size:clamp(34px,5vw,58px);line-height:1.05;margin-bottom:20px;max-width:820px}.lead-hero p{color:#ffffffd1;font-size:18px;line-height:1.62;max-width:900px}.lead-hero p+p{margin-top:14px}.lead-cta-box{background:#edf8f2;border:1px solid rgba(58,165,122,.26);border-radius:18px;color:var(--text);margin-top:28px;padding:20px 22px}.lead-cta-box span{color:var(--green);display:block;font-size:12px;font-weight:800;letter-spacing:.08em;margin-bottom:8px;text-transform:uppercase}.lead-cta-box p{color:var(--text);font-size:17px;font-weight:700;line-height:1.5;margin:0}.lead-hero-contact-link{display:inline-flex;margin-top:14px;color:var(--indigo);font-size:15px;font-weight:800;text-decoration:underline;text-underline-offset:4px}.lead-contact-cta{width:min(1080px,100%);margin:0 auto 24px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:center;background:linear-gradient(135deg,#edf8f2,#fff);border:1px solid rgba(58,165,122,.28);border-radius:22px;color:var(--text);box-shadow:var(--shadow);padding:28px 30px}.lead-contact-cta-compact{margin-top:-4px}.lead-contact-eyebrow{color:var(--green);font-size:12px;font-weight:800;letter-spacing:.08em;margin-bottom:8px;text-transform:uppercase}.lead-contact-cta h2{font-size:30px;line-height:1.15;margin-bottom:12px}.lead-contact-cta p{color:var(--text-dim);font-size:17px;line-height:1.58;max-width:760px}.lead-contact-meta{display:flex;align-items:flex-start;flex-direction:column;gap:8px;min-width:220px;padding:18px;background:var(--surface);border:1px solid var(--border);border-radius:16px}.lead-contact-meta a{color:var(--indigo);font-weight:800;text-decoration:none}.lead-contact-meta a:hover{text-decoration:underline;text-underline-offset:3px}.lead-source-tag{color:var(--text-faint);display:block;font-size:12px;margin-top:4px}.lead-final-cta .lead-contact-cta{margin:0;width:100%;box-shadow:none}.lead-section h2{font-size:26px;line-height:1.2;margin-bottom:14px}.lead-section h3{font-size:18px;line-height:1.3;margin-bottom:10px}.lead-section p,.lead-section li{color:var(--text-dim);font-size:16px;line-height:1.62}.lead-section p+p{margin-top:10px}.lead-section ul{display:grid;gap:8px;list-style:disc;padding-left:22px}.two-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}.lead-highlight{background:var(--surface-soft);border-style:dashed}.lead-highlight p{color:var(--text);font-size:19px;font-weight:700}.checklist-grid{display:grid;gap:14px;grid-template-columns:repeat(3,minmax(0,1fr))}.checklist-card,.score-cards article{background:var(--surface-soft);border:1px solid var(--border);border-radius:18px;padding:20px}.lead-muted{color:var(--text-faint)!important;font-size:14px!important;margin-top:12px}.score-cards{display:grid;gap:14px;grid-template-columns:repeat(3,minmax(0,1fr))}.checklist-card{display:flex;flex-direction:column}.checklist-card-answered{border-color:var(--accent);background:var(--surface)}.checklist-answer{display:flex;gap:8px;margin-top:auto;padding-top:16px;flex-wrap:wrap}.answer-btn{flex:1 1 0;min-width:90px;display:flex;align-items:center;justify-content:center;gap:8px;padding:9px 10px;border:1px solid var(--border);border-radius:var(--radius-btn);background:var(--surface);color:var(--text-dim);font-size:13px;font-weight:600;cursor:pointer;transition:all .12s ease}.answer-btn:hover{border-color:var(--indigo-soft);color:var(--text)}.answer-btn .answer-pts{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:var(--radius-pill);background:var(--bg);font-size:12px;color:var(--text-faint)}.answer-btn-active{color:#fff;border-color:transparent}.answer-btn-active .answer-pts{background:#ffffff40;color:#fff}.answer-btn-2.answer-btn-active{background:var(--green)}.answer-btn-1.answer-btn-active{background:var(--yellow)}.answer-btn-0.answer-btn-active{background:var(--red)}.score-summary{position:sticky;top:12px;z-index:5;display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:16px 20px;margin-bottom:22px;background:var(--indigo);color:#fff;border-radius:var(--radius);box-shadow:var(--shadow)}.score-total{display:flex;align-items:baseline;gap:4px}.score-num{font-size:34px;font-weight:700;line-height:1}.score-max{font-size:16px;opacity:.7}.score-meta{flex:1;min-width:200px;display:flex;flex-direction:column;gap:6px}.score-progress-track{height:6px;border-radius:var(--radius-pill);background:#ffffff2e;overflow:hidden}.score-progress-fill{height:100%;border-radius:var(--radius-pill);background:var(--accent);transition:width .2s ease}.score-progress-label{font-size:13px;opacity:.85;margin:0}.score-result{font-size:14px;margin:0}.score-summary .lead-muted{color:#fffc!important;margin:0}.score-reset{padding:8px 14px;border-radius:var(--radius-btn);border:1px solid rgba(255,255,255,.3);background:transparent;color:#fff;font-weight:600;cursor:pointer}.score-reset:hover{background:#ffffff1f}.lead-logo{display:flex;align-items:center;gap:12px;margin-bottom:26px}.lead-logo-mark{width:46px;height:46px;border-radius:13px;flex-shrink:0;box-shadow:0 6px 18px #8fd6b447}.lead-logo-text{font-size:24px;font-weight:700;color:#fff;letter-spacing:-.01em}.score-cards article{transition:all .15s ease}.score-card-active{border-color:var(--accent)!important;background:var(--surface)!important;box-shadow:0 0 0 3px var(--accent),var(--shadow);transform:translateY(-2px)}.lead-final-cta{margin-bottom:0}@media(max-width:900px){.two-column,.checklist-grid,.score-cards,.lead-contact-cta{grid-template-columns:1fr}.lead-hero,.lead-section{padding:24px}}.users-detail-head{align-items:flex-start;gap:16px}.users-readonly-detail{display:flex;flex-direction:column;gap:16px}.users-detail-list,.users-secret-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}.users-detail-list div,.users-secret-list div{padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--surface-soft)}.users-detail-list dt,.users-secret-list dt{margin:0 0 5px;color:var(--text-faint);font-size:12px;font-weight:700;letter-spacing:.03em;text-transform:uppercase}.users-detail-list dd,.users-secret-list dd{margin:0;color:var(--text);word-break:break-word}.users-profile-actions,.users-access-actions{align-items:center;flex-wrap:wrap}.users-edit-state-row{min-height:22px}.users-dirty-copy{color:#96700a;font-size:13px;font-weight:700}.users-danger-zone{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:18px 0;padding:16px;border:1px solid rgba(185,76,76,.26);border-radius:var(--radius);background:#b94c4c0f}.users-danger-zone h3,.access-card h3{margin:0 0 6px}.users-access-dialog{max-width:520px}.users-danger-dialog{border-color:#b94c4c52}.users-dialog-hint,.users-copy-message{margin:0;color:var(--text-faint);font-size:12.5px;line-height:1.5}.users-dialog-warning{margin:0}.users-access-success{display:flex;flex-direction:column;gap:12px;margin-top:14px;padding:16px;border:1px solid rgba(94,151,117,.35);border-radius:var(--radius);background:#5e977514}.users-access-success p{margin:4px 0 0;color:var(--text-dim);font-size:13px;line-height:1.5}.users-secret-list{grid-template-columns:1fr}.users-secret-list code{white-space:normal;word-break:break-all}@media(max-width:760px){.users-detail-list{grid-template-columns:1fr}.users-danger-zone{flex-direction:column}.users-danger-zone .crm-form-actions,.users-profile-actions,.users-access-actions,.modal-actions{width:100%;justify-content:stretch}.users-danger-zone .btn,.users-profile-actions .btn,.users-access-actions .btn,.modal-actions .btn{flex:1 1 auto}}.qtasks-lede{color:var(--text-dim);max-width:72ch}.qtasks-live{display:inline-flex;align-items:center;gap:6px;margin-left:12px;font-size:13px;color:var(--text-faint)}.qtasks-live-dot{width:8px;height:8px;border-radius:50%;background:var(--gray)}.qtasks-live.is-on .qtasks-live-dot{background:var(--green);box-shadow:0 0 0 3px #3aa57a26}.qtasks-muted{color:var(--text-faint)}.qtasks-blank{padding:28px;border:1px dashed var(--border);border-radius:var(--radius);background:var(--surface-soft);text-align:center;color:var(--text-dim)}.qtasks-blank code{background:var(--surface);padding:1px 6px;border-radius:6px;border:1px solid var(--border)}.qtasks-summary{display:flex;gap:10px;margin:4px 0 14px}.qtasks-stat{font-size:13px;color:var(--text-dim);background:var(--surface-soft);border:1px solid var(--border);border-radius:var(--radius-pill);padding:5px 12px}.qtasks-stat strong{color:var(--text);font-variant-numeric:tabular-nums}.qtasks-stat-muted strong{color:var(--text-faint)}.qtasks-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.qtasks-chip{display:inline-flex;align-items:center;gap:7px;padding:4px 12px 4px 5px;border-radius:var(--radius-pill);border:1px solid var(--border);background:var(--surface);color:var(--text-dim);font-size:13px;font-weight:500;cursor:pointer;transition:border-color .15s,background .15s}.qtasks-chip:hover{border-color:var(--indigo-soft)}.qtasks-chip.is-busy{background:#8fd6b429;border-color:#8fd6b499}.qtasks-chip.is-busy:hover{border-color:var(--accent)}.qtasks-chip-count{min-width:18px;height:18px;padding:0 5px;border-radius:var(--radius-pill);background:var(--accent);color:var(--indigo);font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}.qtasks-chip.is-active .qtasks-chip-count{background:#ffffffeb;color:var(--indigo)}.qtasks-chip.is-active{background:var(--indigo);color:#fff;border-color:var(--indigo)}.qtasks-scroll{overflow-x:auto;margin:0 -4px;padding:0 4px 8px}.qtasks-board{display:flex;flex-direction:column;gap:10px;min-width:780px}.qtasks-row{display:grid;grid-template-columns:190px repeat(3,minmax(190px,1fr));gap:10px;align-items:start}.qtasks-row-head{position:sticky;top:0;z-index:2}.qtasks-colhead{display:flex;align-items:center;gap:8px;padding:8px 12px;font-size:12px;font-weight:600;letter-spacing:.03em;text-transform:uppercase;color:var(--text-faint);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-btn)}.qtasks-colhead-dot{width:8px;height:8px;border-radius:50%;background:var(--gray)}.qtasks-colhead[data-status=in_progress] .qtasks-colhead-dot{background:var(--accent)}.qtasks-colhead[data-status=blocked] .qtasks-colhead-dot{background:var(--red)}.qtasks-colcount{margin-left:auto;min-width:20px;text-align:right;color:var(--text-dim);font-variant-numeric:tabular-nums}.qtasks-agent-slot{display:flex;align-items:center;gap:10px;padding:8px 12px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-btn);position:sticky;left:0;z-index:1}.qtasks-agent-meta{display:flex;flex-direction:column;min-width:0;line-height:1.25}.qtasks-agent-name{font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.qtasks-coord{font-size:11px;color:var(--indigo-soft);font-weight:600}.qtasks-agent-badge{margin-left:auto;min-width:22px;height:22px;padding:0 6px;border-radius:var(--radius-pill);background:var(--lavender);color:var(--lavender-text);font-size:12px;font-weight:600;display:inline-flex;align-items:center;justify-content:center}.qtasks-cell{display:flex;flex-direction:column;gap:8px;padding:8px;background:var(--surface-soft);border:1px solid var(--border);border-radius:var(--radius-btn);min-height:44px}.qtasks-cell-empty{min-height:28px;border:1px dashed var(--border);border-radius:8px;opacity:.45}.qtask{background:var(--surface);border:1px solid var(--border);border-left:3px solid var(--gray);border-radius:10px;padding:9px 11px;box-shadow:var(--shadow)}.qtask[data-status=in_progress]{border-left-color:var(--accent)}.qtask[data-status=blocked]{border-left-color:var(--red)}.qtask-head{display:flex;gap:6px;font-size:13.5px;line-height:1.3}.qtask-id{color:var(--text-faint);font-variant-numeric:tabular-nums;flex:none}.qtask-title{font-weight:600;color:var(--text)}.qtask-desc{margin-top:4px;font-size:12.5px;color:var(--text-dim);line-height:1.4}.qtask-meta{margin-top:6px;font-size:11.5px;color:var(--text-faint)}.qtasks-idle{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px;padding:12px 14px;background:var(--surface-soft);border:1px solid var(--border);border-radius:var(--radius)}.qtasks-idle-label{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--text-faint)}.qtasks-idle-list{display:flex;flex-wrap:wrap;gap:8px 14px}.qtasks-idle-agent{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:var(--text-dim)}.qtasks-done{margin-top:16px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-soft);overflow:hidden}.qtasks-done-toggle{width:100%;display:flex;align-items:center;gap:10px;padding:12px 16px;background:none;border:none;cursor:pointer;font-size:14px;font-weight:600;color:var(--text)}.qtasks-caret{width:0;height:0;border-left:6px solid var(--text-faint);border-top:5px solid transparent;border-bottom:5px solid transparent;transition:transform .15s}.qtasks-caret.is-open{transform:rotate(90deg)}.qtasks-done-count{margin-left:auto;min-width:24px;height:22px;padding:0 8px;border-radius:var(--radius-pill);background:var(--surface);border:1px solid var(--border);color:var(--text-dim);font-size:12px;font-weight:600;display:inline-flex;align-items:center;justify-content:center}.qtasks-done-list{max-height:360px;overflow-y:auto;border-top:1px solid var(--border);background:var(--surface)}.qtasks-done-row{display:grid;grid-template-columns:52px 1fr 170px 130px;gap:12px;align-items:center;padding:8px 16px;border-bottom:1px solid var(--border);font-size:13px}.qtasks-done-row:last-child{border-bottom:none}.qtasks-done-id{color:var(--text-faint);font-variant-numeric:tabular-nums}.qtasks-done-title{color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.qtasks-done-agent{display:inline-flex;align-items:center;gap:7px;color:var(--text-dim);white-space:nowrap;overflow:hidden}.qtasks-done-time{color:var(--text-faint);font-variant-numeric:tabular-nums;text-align:right}.qtasks-chip .agent-avatar-small,.qtasks-idle-agent .agent-avatar-small,.qtasks-done-agent .agent-avatar-small{width:22px;height:22px;flex-basis:22px;font-size:10px}@media(max-width:720px){.qtasks-done-row{grid-template-columns:44px 1fr}.qtasks-done-agent,.qtasks-done-time{display:none}}.crm-header-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.crm-view-toggle{display:inline-flex;padding:3px;gap:3px;background:var(--surface-soft);border:1px solid var(--border);border-radius:var(--radius-pill)}.crm-view-toggle-btn{border:0;background:transparent;color:var(--text-dim);font:inherit;font-size:13px;font-weight:600;padding:7px 16px;border-radius:var(--radius-pill);cursor:pointer;transition:background .15s ease,color .15s ease}.crm-view-toggle-btn:hover{color:var(--text)}.crm-view-toggle-btn.is-active{background:var(--indigo);color:#fff}.crm-pipeline{display:flex;flex-direction:column;gap:12px}.crm-pipe-banner{display:flex;align-items:center;justify-content:space-between;gap:12px}.crm-pipe-banner-close{border:0;background:transparent;color:inherit;font-size:20px;line-height:1;cursor:pointer;padding:0 4px}.crm-pipe-hint{color:var(--text-faint);font-size:12px}.crm-pipe-board{display:flex;gap:12px;overflow-x:auto;padding-bottom:8px;align-items:stretch}.crm-pipe-column{flex:0 0 272px;width:272px;display:flex;flex-direction:column;border:1px solid var(--border);border-top:3px solid var(--border);border-radius:var(--radius);background:var(--surface-soft);min-height:320px;max-height:calc(100vh - 300px);transition:background .12s ease,box-shadow .12s ease}.crm-pipe-column-tone-new{border-top-color:var(--yellow)}.crm-pipe-column-tone-progress{border-top-color:var(--lavender-text)}.crm-pipe-column-tone-won{border-top-color:var(--green)}.crm-pipe-column-tone-lost{border-top-color:var(--red)}.crm-pipe-column-tone-postponed{border-top-color:var(--text-faint)}.crm-pipe-column.is-drop-target{background:#8fd6b429;box-shadow:inset 0 0 0 2px var(--accent)}.crm-pipe-column-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 12px 8px}.crm-pipe-column-head h2{font-size:13px;font-weight:700;color:var(--text);margin:0}.crm-pipe-column-head strong{min-width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:var(--lavender);color:var(--lavender-text);font-size:12px}.crm-pipe-cards{display:flex;flex-direction:column;gap:8px;padding:0 10px 12px;overflow-y:auto}.crm-pipe-empty{border:1px dashed var(--border);border-radius:12px;padding:14px;text-align:center;color:var(--text-faint);font-size:12px}.crm-pipe-card{border:1px solid var(--border);border-left:3px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:var(--shadow);padding:10px 11px;display:flex;flex-direction:column;gap:7px;cursor:pointer;transition:box-shadow .12s ease,transform .06s ease,opacity .12s ease}.crm-pipe-card:hover{box-shadow:0 4px 14px #17142f1f}.crm-pipe-card:active{transform:scale(.99)}.crm-pipe-card.is-dragging{opacity:.45}.crm-pipe-card-tone-new{border-left-color:var(--yellow)}.crm-pipe-card-tone-progress{border-left-color:var(--lavender-text)}.crm-pipe-card-tone-won{border-left-color:var(--green)}.crm-pipe-card-tone-lost{border-left-color:var(--red)}.crm-pipe-card-tone-postponed{border-left-color:var(--text-faint)}.crm-pipe-card.is-overdue{border-left-color:var(--red)}.crm-pipe-card-top{display:flex;align-items:center;gap:8px}.crm-pipe-card-name{font-weight:600;font-size:13.5px;color:var(--text);word-break:break-word;line-height:1.3}.crm-pipe-card-sub{color:var(--text-dim);font-size:12px;line-height:1.35;word-break:break-word}.crm-pipe-card-badges{display:flex;flex-wrap:wrap;gap:5px;align-items:center}.crm-pipe-card-amount{font-size:13px;font-weight:700;color:var(--green)}.crm-pipe-prompt-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;background:#17142f47;display:flex;align-items:center;justify-content:center;padding:16px}.crm-pipe-prompt{width:min(420px,100%);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 18px 48px #17142f47;padding:18px;display:flex;flex-direction:column;gap:12px}.crm-pipe-prompt-title{font-weight:700;font-size:14px;color:var(--text)}@media(max-width:700px){.crm-header-actions{width:100%;justify-content:space-between}.crm-pipe-column{flex-basis:240px;width:240px;max-height:none}}.crm-list-head{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid var(--border);background:var(--surface-soft);position:sticky;top:0;z-index:1;cursor:pointer;font-size:13px;color:var(--text-dim)}.crm-list-head-label{-webkit-user-select:none;user-select:none}.crm-list-check{flex:none;width:16px;height:16px;cursor:pointer;accent-color:var(--indigo)}.crm-list-row{display:flex;align-items:center;gap:10px;padding-left:12px;border-bottom:1px solid var(--border);transition:background .15s}.crm-list-row.is-selected{background:var(--surface-soft)}.crm-list-row .crm-list-item{flex:1;min-width:0;border-bottom:0}.crm-bulk-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:10px 14px;margin-bottom:12px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-btn);box-shadow:var(--shadow)}.crm-bulk-count{font-weight:600;color:var(--text)}.crm-bulk-group{display:flex;align-items:center;gap:6px}.crm-bulk-select{padding:6px 10px;border:1px solid var(--border);border-radius:var(--radius-btn);background:var(--surface-soft);color:var(--text);font:inherit}.crm-bulk-clear{margin-left:auto}.crm-bulk-result{display:flex;align-items:center;justify-content:space-between;gap:12px}.crm-bulk-result-close{flex:none;background:none;border:0;font-size:20px;line-height:1;cursor:pointer;color:inherit;padding:0 4px}.crm-chat{display:flex;flex-direction:column;gap:10px;max-height:520px;overflow-y:auto;padding:4px 2px}.crm-chat-empty{padding:18px;text-align:center;border:1px dashed var(--border);border-radius:var(--radius-btn);background:var(--surface-soft)}.crm-chat-bubble{max-width:72%;border:1px solid var(--border);border-radius:14px;padding:10px 14px;background:var(--surface)}.crm-chat-bubble.is-inbound{align-self:flex-start;border-bottom-left-radius:5px}.crm-chat-bubble.is-outbound{align-self:flex-end;background:#edf8f3;border-color:#cfe9dc;border-bottom-right-radius:5px}.crm-chat-bubble.is-internal{align-self:center;max-width:86%;background:var(--surface-soft);border-style:dashed;text-align:center;color:var(--text-dim);font-size:12.5px;padding:7px 14px}.crm-chat-bubble-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;font-size:12px;color:var(--text-dim)}.crm-chat-bubble.is-internal .crm-chat-bubble-head{justify-content:center}.crm-chat-channel{display:inline-flex;align-items:center;padding:1px 8px;border-radius:var(--radius-pill);background:var(--lavender);color:var(--lavender-text);font-size:11px;font-weight:600}.crm-chat-bubble.is-outbound .crm-chat-channel{background:var(--accent);color:var(--indigo)}.crm-chat-route{word-break:break-word}.crm-chat-time{margin-left:auto;color:var(--text-faint);font-size:11.5px;white-space:nowrap}.crm-chat-bubble.is-internal .crm-chat-time{margin-left:0}.crm-chat-subject{margin-top:6px;font-size:13.5px;font-weight:700;color:var(--text)}.crm-chat-body{margin-top:4px;white-space:pre-wrap;word-break:break-word}.crm-chat-body.is-clamped{display:-webkit-box;-webkit-line-clamp:12;-webkit-box-orient:vertical;overflow:hidden}.crm-chat-expand{margin-top:4px;border:none;background:none;padding:0;font:inherit;font-size:12px;color:var(--indigo-soft);text-decoration:underline;cursor:pointer}.crm-chat-failed{margin-top:6px;font-size:12px;font-weight:600;color:#b85e5e}.crm-chat-failed:before{content:"●";margin-right:5px;color:var(--red)}.crm-chat-filters{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px}.crm-chat-filter-group{display:flex;flex-wrap:wrap;gap:6px}.crm-chat-chip{border:1px solid var(--border);border-radius:var(--radius-pill);background:var(--surface);padding:4px 12px;font:inherit;font-size:12.5px;color:var(--text-dim);cursor:pointer;transition:border-color .15s ease,background .15s ease,color .15s ease}.crm-chat-chip:hover{border-color:var(--accent)}.crm-chat-chip.is-active{background:var(--indigo);border-color:var(--indigo);color:#fff}.crm-compose{display:flex;flex-direction:column;gap:10px;border-top:1px solid var(--border);padding-top:14px}.crm-compose-toggle{display:inline-flex;gap:2px;align-self:flex-start;background:var(--surface-soft);border:1px solid var(--border);border-radius:var(--radius-btn);padding:3px}.crm-compose-toggle-btn{border:none;background:transparent;border-radius:9px;padding:6px 14px;font:inherit;font-size:13px;color:var(--text-dim);cursor:pointer}.crm-compose-toggle-btn.is-active{background:var(--surface);color:var(--text);font-weight:600;box-shadow:0 1px 4px #17142f14}.crm-compose-send{display:flex;flex-direction:column;gap:10px}.crm-compose-channels{display:flex;gap:6px}.crm-compose-channel{border:1px solid var(--border);border-radius:var(--radius-btn);background:var(--surface);padding:6px 16px;font:inherit;font-size:13px;color:var(--text-dim);cursor:pointer;transition:border-color .15s ease,background .15s ease}.crm-compose-channel:hover:not(:disabled){border-color:var(--accent)}.crm-compose-channel.is-active{background:#edf8f3;border-color:var(--accent);color:var(--text);font-weight:600}.crm-compose-channel:disabled{opacity:.5;cursor:not-allowed}.crm-compose-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.crm-compose-wide{grid-column:1 / -1}.crm-compose-field{display:flex;flex-direction:column;gap:4px}.crm-compose-field span{font-size:12px;color:var(--text-dim)}.crm-compose-field input,.crm-compose-field select,.crm-compose-body{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:8px 10px;color:var(--text);font:inherit;outline:none}.crm-compose-field input:focus,.crm-compose-field select:focus,.crm-compose-body:focus{border-color:var(--indigo-soft);box-shadow:var(--focus-ring)}.crm-compose-field input:disabled,.crm-compose-field select:disabled,.crm-compose-body:disabled{background:var(--surface-soft);color:var(--text-faint)}.crm-compose-body{min-height:96px;resize:vertical}.crm-compose-note{font-size:12px;color:var(--text-faint)}.crm-compose-alert{margin-bottom:0}@media(max-width:900px){.crm-chat-bubble{max-width:92%}.crm-compose-grid{grid-template-columns:1fr}.crm-chat-time{margin-left:0}}
