: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:1200px;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;grid-template-columns:1fr;gap:16px}.monitoring-block{background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;box-shadow:0 1px 2px #0f172a0f;display:flex;flex-direction:column}.monitoring-block--hosts{height:520px}.monitoring-block--queue{height:640px}.monitoring-block-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid #e5e7eb;flex-shrink:0}.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;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}.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:220px}.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(360px,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}
