:root{color:#1f2937;background:#f3f4f6;font-family:Inter,Segoe UI,Roboto,Helvetica,Arial,sans-serif;line-height:1.5}*{box-sizing:border-box}body{margin:0}.monitoring-app{max-width:1800px;margin:0 auto;padding:24px}.monitoring-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:24px}.monitoring-header h1{margin:0 0 4px;font-size:28px}.monitoring-subtitle{margin:0;color:#6b7280}.monitoring-instance-link{color:#2563eb;text-decoration:none;font-weight:600;white-space:nowrap}.monitoring-instance-link:hover{text-decoration:underline}.monitoring-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}.monitoring-tab{border:1px solid #d1d5db;background:#fff;color:#374151;border-radius:999px;padding:8px 16px;cursor:pointer;font-weight:600}.monitoring-tab.is-active{background:#2563eb;border-color:#2563eb;color:#fff}.monitoring-grid{display:grid;gap:16px}.monitoring-block{background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 1px 2px #0f172a0f;min-width:0}.monitoring-block-header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid #e5e7eb}.monitoring-block-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.monitoring-block-refresh-indicator{font-size:12px;color:#2563eb;white-space:nowrap}.monitoring-block-header h2{margin:0;font-size:18px}.monitoring-block-meta{color:#6b7280;font-size:12px}.monitoring-block-body{padding:16px 18px 18px;overflow-x:auto}.monitoring-block-content.is-refreshing{opacity:.72;transition:opacity .15s ease}.worker-queue-table-scroll,.worker-queue-detail-scroll{overflow-y:auto;overscroll-behavior:contain}.worker-queue-table-scroll{max-height:320px}.worker-queue-detail-scroll{max-height:240px}.worker-queue-detail.is-refreshing .worker-queue-detail-scroll{opacity:.72}.worker-queue-command-button{display:inline-block;padding:2px 8px;border:0;border-radius:999px;background:#f3f4f6;color:#374151;font-size:11px;font-weight:700;text-transform:lowercase;cursor:pointer}.worker-queue-command-button:hover{background:#e5e7eb}.worker-queue-command-button.is-copied{background:#dcfce7;color:#166534}.monitoring-state{padding:16px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;color:#4b5563}.monitoring-state-error{color:#b91c1c;border-color:#fecaca;background:#fef2f2}.monitoring-state button,.monitoring-block-header button{margin-left:12px;border:1px solid #d1d5db;background:#fff;border-radius:8px;padding:6px 10px;cursor:pointer}.monitoring-table{width:100%;border-collapse:collapse}.monitoring-table th,.monitoring-table td{padding:10px 8px;border-bottom:1px solid #e5e7eb;text-align:left}.monitoring-table th{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#6b7280}.monitoring-table tr:last-child td{border-bottom:0}.monitoring-count{font-variant-numeric:tabular-nums;font-weight:700}.monitoring-priority{display:inline-block;min-width:28px;padding:2px 8px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:12px;font-weight:700;text-align:center}.worker-queue-chart{margin-bottom:16px;padding:12px;border:1px solid #e5e7eb;border-radius:10px;background:#f9fafb}.worker-queue-chart-empty{color:#6b7280;font-size:13px}.worker-queue-chart-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px;font-size:13px;color:#6b7280}.worker-queue-chart-header strong{color:#374151}.worker-queue-chart-svg{width:100%;height:auto;display:block}.worker-queue-chart-grid-line{stroke:#e5e7eb;stroke-width:1}.worker-queue-chart-axis-line{stroke:#9ca3af;stroke-width:1}.worker-queue-chart-axis-label,.worker-queue-chart-time-label{fill:#6b7280;font-size:10px}.worker-queue-chart-legend{display:flex;flex-wrap:wrap;gap:8px 14px;margin-bottom:10px}.worker-queue-chart-legend-item{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:#4b5563}.worker-queue-chart-legend-swatch{width:10px;height:10px;border-radius:2px;flex-shrink:0}.worker-queue-chart-bar-segment{stroke:#fff;stroke-width:.5}.monitoring-table-row-clickable{cursor:pointer}.monitoring-table-row-clickable:hover td{background:#f9fafb}.monitoring-table-row-clickable.is-selected td{background:#eff6ff}.worker-queue-name-button{border:0;background:transparent;padding:0;color:#2563eb;font:inherit;font-weight:600;cursor:pointer;text-align:left}.worker-queue-name-button:hover{text-decoration:underline}.worker-queue-detail{margin-top:16px;padding-top:16px;border-top:1px solid #e5e7eb}.worker-queue-detail-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}.worker-queue-detail-meta{display:block;margin-top:4px;color:#6b7280;font-size:12px;font-weight:400}.worker-queue-detail-close{border:1px solid #d1d5db;background:#fff;border-radius:8px;padding:6px 10px;cursor:pointer;flex-shrink:0}.worker-queue-detail-table{margin-top:8px}.worker-queue-status{display:inline-block;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:600;text-transform:lowercase}.worker-queue-status-new{background:#dbeafe;color:#1d4ed8}.worker-queue-status-processing{background:#fef3c7;color:#b45309}.host-resources-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(360px,100%),1fr));gap:16px}.host-resource-card{border:1px solid #e5e7eb;border-radius:12px;padding:16px;background:#fff;display:flex;flex-direction:column;max-height:420px}.host-resource-card.is-stale{border-color:#fcd34d;background:#fffbeb}.host-resource-card-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}.host-resource-card-header h3{margin:0 0 6px;font-size:16px}.host-resource-card-meta{display:flex;flex-wrap:wrap;gap:8px;color:#6b7280;font-size:12px}.host-resource-role{display:inline-block;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.03em}.host-resource-role-console{background:#ede9fe;color:#6d28d9}.host-resource-role-stasis{background:#fce7f3;color:#be185d}.host-resource-role-frontend{background:#dcfce7;color:#15803d}.host-resource-role-unknown{background:#f3f4f6;color:#4b5563}.host-resource-status{display:inline-block;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap}.host-resource-status-live{background:#dcfce7;color:#166534}.host-resource-status-snapshot{background:#dbeafe;color:#1d4ed8}.host-resource-status-missing{background:#fee2e2;color:#b91c1c}.host-resource-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:16px}.host-resource-metric{padding:10px 12px;border:1px solid #e5e7eb;border-radius:10px;background:#f9fafb}.host-resource-metric-label{color:#6b7280;font-size:11px;text-transform:uppercase;letter-spacing:.04em}.host-resource-metric-value{margin-top:4px;font-size:18px;font-weight:700;font-variant-numeric:tabular-nums}.host-resource-metric-hint{margin-top:4px;color:#6b7280;font-size:11px}.host-resource-processes{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}.host-resource-processes-title{margin-bottom:8px;font-size:13px;font-weight:700;color:#374151}.host-resource-process-table th,.host-resource-process-table td{font-size:12px}.host-resource-process-label{font-weight:600;word-break:break-word}.host-resource-process-sub{margin-top:2px;color:#6b7280;font-size:11px}.host-resource-type{display:inline-block;padding:2px 6px;border-radius:999px;font-size:10px;font-weight:700;text-transform:uppercase}.host-resource-type-worker{background:#eff6ff;color:#1d4ed8}.host-resource-type-stasis{background:#fce7f3;color:#be185d}.host-resource-type-console{background:#ede9fe;color:#6d28d9}.host-resource-type-web{background:#dcfce7;color:#15803d}.host-resource-type-system{background:#f3f4f6;color:#4b5563}.telephony{display:flex;flex-direction:column;gap:20px}.telephony-toolbar{display:flex;justify-content:flex-end}.telephony-periods{display:inline-flex;border:1px solid #d1d5db;border-radius:8px;overflow:hidden}.telephony-period{border:0;border-left:1px solid #d1d5db;background:#fff;color:#374151;padding:6px 12px;font-weight:600;cursor:pointer}.telephony-period:first-child{border-left:0}.telephony-period.is-active{background:#2563eb;color:#fff}.telephony-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.telephony-tile{padding:10px 12px;border:1px solid #e5e7eb;border-left-width:4px;border-radius:10px;background:#f9fafb}.telephony-tile-ok{border-left-color:#16a34a}.telephony-tile-warn{border-left-color:#d97706}.telephony-tile-bad{border-left-color:#dc2626;background:#fef2f2}.telephony-section-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}.telephony-section-header h3{margin:0;font-size:15px}.telephony-section-actions{display:flex;align-items:center;gap:12px;font-size:13px;color:#374151}.telephony-section-actions button{border:1px solid #d1d5db;background:#fff;border-radius:8px;padding:4px 10px;cursor:pointer}.telephony-scroll{max-height:480px;overflow:auto;overscroll-behavior:contain;border:1px solid #e5e7eb;border-radius:10px}.telephony-table th,.telephony-table td{padding:7px 8px;font-size:13px;white-space:nowrap}.telephony-scroll .telephony-table th{position:sticky;top:0;background:#fff;z-index:1}.telephony-hosts{display:flex;flex-direction:column;gap:12px}.telephony-host{border:1px solid #e5e7eb;border-radius:12px;padding:12px 14px;overflow-x:auto}.telephony-host.has-problems{border-color:#fca5a5}.telephony-host.is-stale{border-color:#fcd34d;background:#fffbeb}.telephony-host-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:8px}.telephony-host-header h3{margin:0 0 4px;font-size:15px}.telephony-host-meta{display:flex;flex-wrap:wrap;gap:4px 12px;color:#6b7280;font-size:12px}.telephony-status{display:inline-block;margin-left:6px;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap}.telephony-status:first-child{margin-left:0}.telephony-status-ok{background:#dcfce7;color:#166534}.telephony-status-noPing{background:#fef3c7;color:#b45309}.telephony-status-down{background:#fee2e2;color:#b91c1c}.telephony-row-problem td{background:#fef2f2}.telephony-ok{color:#15803d;font-weight:600}.telephony-warn{color:#b45309;font-weight:600}.telephony-bad{color:#b91c1c;font-weight:600}.telephony-muted,.telephony-sub{color:#6b7280;font-size:12px;font-weight:400}.telephony-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px}.telephony-company,.telephony-call-status{font-weight:600}.telephony-footnote{padding:8px}.telephony-problems{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:20px}.telephony-problems h4{margin:0 0 8px;font-size:13px;color:#374151}.telephony-problems h4:not(:first-child){margin-top:16px}.telephony-cause{display:grid;grid-template-columns:minmax(0,1fr) 80px 40px;align-items:center;gap:8px;font-size:13px;padding:3px 0}.telephony-cause-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.telephony-cause-bar{height:6px;border-radius:3px;background:#f3f4f6;overflow:hidden}.telephony-cause-bar span{display:block;height:100%;background:#f59e0b}.telephony-cause .monitoring-count{text-align:right}.telephony-log{max-height:320px;overflow-y:auto;overscroll-behavior:contain}.telephony-log-line{padding:5px 8px;border-left:3px solid #e5e7eb;margin-bottom:4px;font-size:12px;word-break:break-word}.telephony-log-error{border-left-color:#dc2626;background:#fef2f2}.telephony-log-warning{border-left-color:#d97706;background:#fffbeb}@media (max-width: 720px){.monitoring-app{padding:12px}.monitoring-header{flex-wrap:wrap;margin-bottom:16px}.monitoring-header h1{font-size:22px}.monitoring-tabs{margin-bottom:16px}.monitoring-block-header,.monitoring-block-body{padding:12px}.telephony-problems{grid-template-columns:1fr}}.monitoring-header-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;justify-content:flex-end}.monitoring-call-search{display:flex;gap:6px}.monitoring-call-search input{width:130px;border:1px solid #d1d5db;border-radius:8px;padding:6px 10px;font:inherit;font-size:13px}.monitoring-call-search button{border:1px solid #2563eb;background:#2563eb;color:#fff;border-radius:8px;padding:6px 12px;font-size:13px;font-weight:600;cursor:pointer}.monitoring-back-link,.telephony-call-link{color:#2563eb;text-decoration:none;font-weight:600}.monitoring-back-link:hover,.telephony-call-link:hover{text-decoration:underline}.monitoring-block--call-analysis .monitoring-block-header h2{display:flex;align-items:center;gap:8px}.ca{font-size:14px}.ca-heading{margin:24px 0 10px;padding-bottom:6px;border-bottom:1px solid #e5e7eb;font-size:15px}.ca-facts{display:flex;flex-wrap:wrap;align-items:center;gap:6px 20px}.ca-fact b{color:#4b5563;font-weight:600}.ca-crm-link{margin-left:auto;color:#2563eb;font-size:13px;text-decoration:none}.ca-crm-link:hover{text-decoration:underline}.ca-badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:600;line-height:18px;white-space:nowrap}.ca-badge.ca-tone-ok{background:#dcfce7;color:#15803d}.ca-badge.ca-tone-warning{background:#fef3c7;color:#b45309}.ca-badge.ca-tone-error{background:#fee2e2;color:#b91c1c}.ca-badge.ca-tone-muted{background:#f3f4f6;color:#6b7280}.ca-summary-box{margin-top:16px;padding:12px 14px;border-left:4px solid #2563eb;border-radius:8px;background:#eff6ff;line-height:1.55}.ca-summary-box-warning{border-color:#d97706;background:#fffbeb}.ca-summary-box-error{border-color:#dc2626;background:#fef2f2}.ca-result{margin-top:6px;font-weight:600}.ca-btn-light{margin-left:10px;border:1px solid #2563eb;background:#fff;color:#2563eb;border-radius:8px;padding:3px 10px;font-size:12px;cursor:pointer}.ca-btn-light:disabled{opacity:.6;cursor:not-allowed}.ca-ai-wait{display:flex;align-items:center;gap:10px}.ca-spinner{flex:none;width:16px;height:16px;border:2px solid #bfdbfe;border-top-color:#2563eb;border-radius:50%;animation:ca-spin .8s linear infinite}@keyframes ca-spin{to{transform:rotate(360deg)}}.ca-issues{list-style:none;margin:0;padding:0}.ca-issues li{margin-bottom:6px;padding:8px 12px;border-left:4px solid;border-radius:6px}.ca-issues li.ca-sev-error{border-color:#dc2626;background:#fef2f2}.ca-issues li.ca-sev-warning{border-color:#d97706;background:#fffbeb}.ca-issues li.ca-sev-info{border-color:#9ca3af;background:#f9fafb}.ca-details{margin-top:3px;color:#4b5563;font-size:13px}.ca-evt-link{color:#2563eb;font-size:12px}.ca-recommendations{margin:0;padding-left:20px}.ca-toolbar{display:flex;flex-wrap:wrap;gap:16px;margin-bottom:12px;font-size:13px;color:#374151}.ca-toolbar label{cursor:pointer;-webkit-user-select:none;user-select:none}.ca-flow{position:relative;margin-left:74px;border-left:2px solid #e5e7eb}.ca-step{position:relative;padding:0 0 14px 22px}.ca-t{position:absolute;left:-76px;top:2px;width:64px;text-align:right;font-size:12px;font-weight:600;color:#16a34a}.ca-dot{position:absolute;left:-8px;top:4px;width:14px;height:14px;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #d1d5db;background:#16a34a}.ca-step.ca-tone-warning .ca-dot{background:#d97706}.ca-step.ca-tone-error .ca-dot{background:#dc2626}.ca-step.ca-tone-muted .ca-dot{background:#9ca3af}.ca-card{padding:9px 12px;border:1px solid #e5e7eb;border-radius:8px;background:#fff}.ca-step.ca-tone-error .ca-card{border-color:#fecaca;background:snow}.ca-step.ca-tone-warning .ca-card{border-color:#fde68a}.ca-step.ca-tone-muted .ca-card{background:#f9fafb}.ca-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}.ca-title{font-weight:600}.ca-type{font-size:12px;color:#7c3aed}.ca-handler{font-size:12px;color:#2563eb}.ca-desc{margin-top:5px;font-size:13.5px;line-height:1.5}.ca-actions{margin:5px 0 0;padding-left:18px;font-size:13px;color:#374151}.ca-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin-top:6px;font-size:12px;color:#6b7280}.ca-bar{display:inline-block;min-width:2px;height:6px;border-radius:3px;background:#60a5fa;vertical-align:middle}.ca-step.ca-tone-warning .ca-bar{background:#fbbf24}.ca-step.ca-tone-error .ca-bar{background:#f87171}.ca-lag-high{color:#c2410c;font-weight:600}.ca-records{margin-top:6px}.ca-records summary,.ca-raw-log summary{cursor:pointer;font-size:12px;color:#6b7280}.ca-raw-log summary{font-size:13px}.ca-rec{padding:2px 0 2px 8px;border-left:3px solid transparent;font-size:11.5px;white-space:pre-wrap;word-break:break-word}.ca-rec.ca-lv-debug{color:#9ca3af}.ca-rec.ca-lv-warning{border-color:#d97706;background:#fffbeb}.ca-rec.ca-lv-error{border-color:#dc2626;background:#fef2f2;color:#991b1b}.ca-rt{color:#16a34a}.ca-caller{color:#9ca3af}.ca-hide-muted .ca-step.ca-is-muted,.ca-hide-debug .ca-rec.ca-lv-debug{display:none}.ca-lvl-error{color:#dc2626;font-weight:600}.ca-lvl-warning{color:#c2410c;font-weight:600}.ca-lvl-info{color:#0891b2}.ca-lvl-debug{color:#9ca3af}.ca-raw-scroll{max-height:640px;margin-top:8px}.ca-raw tr.ca-lv-error td{background:#fef2f2}.ca-raw tr.ca-lv-warning td{background:#fffbeb}.ca-raw tr.ca-lv-debug td{color:#9ca3af}.telephony-table.ca-raw td.ca-msg{min-width:400px;max-width:800px;white-space:pre-wrap;word-break:break-word}.ca-chat-launcher{position:fixed;right:24px;bottom:24px;z-index:50;border:0;border-radius:999px;padding:12px 18px;background:#2563eb;color:#fff;font:inherit;font-weight:600;box-shadow:0 4px 14px #0f172a33;cursor:pointer}.ca-chat-launcher:hover{background:#1d4ed8}.ca-chat{position:fixed;right:24px;bottom:24px;z-index:51;display:flex;flex-direction:column;width:440px;max-width:calc(100vw - 32px);height:600px;max-height:calc(100vh - 48px);overflow:hidden;border-radius:12px;background:#fff;box-shadow:0 8px 30px #0f172a40}.ca-chat-head{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;background:#2563eb;color:#fff;font-weight:600}.ca-chat-head button{border:0;background:none;color:#fff;font-size:13px;opacity:.9;padding:2px 6px;cursor:pointer}.ca-chat-head button:hover{opacity:1;text-decoration:underline}.ca-chat-body{flex:1;overflow-y:auto;padding:12px;background:#f9fafb}.ca-chat-msg{max-width:92%;margin-bottom:10px;padding:8px 11px;border-radius:10px;font-size:13.5px;line-height:1.5;white-space:pre-wrap;word-break:break-word}.ca-chat-user{margin-left:auto;border-bottom-right-radius:3px;background:#2563eb;color:#fff}.ca-chat-assistant{border:1px solid #e5e7eb;border-bottom-left-radius:3px;background:#fff}.ca-chat-failed{border:1px solid #fecaca;background:#fef2f2;color:#991b1b}.ca-chat-msg code{padding:0 3px;border-radius:3px;background:#eef1f4;color:#be185d;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px}.ca-chat-user code{background:#fff3;color:#fff}.ca-chat-msg a{color:#1d4ed8}.ca-chat-welcome{white-space:normal}.ca-chat-hints{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.ca-chat-hints button{border:1px solid #bfdbfe;border-radius:999px;background:#fff;color:#1d4ed8;padding:4px 10px;font-size:12.5px;cursor:pointer}.ca-chat-hints button:hover{background:#eff6ff}.ca-chat-typing{display:inline-flex;align-items:center;gap:4px}.ca-chat-typing span{width:6px;height:6px;border-radius:50%;background:#9ca3af;animation:ca-blink 1.2s infinite}.ca-chat-typing span:nth-child(2){animation-delay:.2s}.ca-chat-typing span:nth-child(3){animation-delay:.4s}@keyframes ca-blink{0%,80%,to{opacity:.3}40%{opacity:1}}.ca-chat-form{display:flex;gap:8px;padding:10px;border-top:1px solid #e5e7eb;background:#fff}.ca-chat-form textarea{flex:1;height:54px;resize:none;border:1px solid #d1d5db;border-radius:8px;padding:7px 9px;font:inherit;font-size:13.5px}.ca-chat-form textarea:focus{outline:none;border-color:#93c5fd;box-shadow:0 0 0 2px #2563eb26}.ca-chat-form button{border:0;border-radius:8px;padding:0 14px;background:#2563eb;color:#fff;font-weight:600;cursor:pointer}.ca-chat-form button:disabled{background:#93c5fd;cursor:not-allowed}@media (max-width: 720px){.ca-flow{margin-left:8px}.ca-t{position:static;width:auto;text-align:left}.ca-crm-link{margin-left:0}.ca-chat,.ca-chat-launcher{right:12px;bottom:12px}}
