: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}}
