Files
ServiceMap-Public/frontend/src/styles.css
NuklearRabbit adc2c70c21 ServiceMap: update tests and backend/app (+7 areas)
Public changes compared with the previous published export:
89 files changed.

Affected areas:
- backend/app: 21 files
- dependencies: 5 files
- deployment and CI: 6 files
- documentation: 2 files
- frontend: 3 files
- frontend/src: 20 files
- project files: 1 file
- tests: 30 files
- unraid: 1 file

Changed files:
- Updated: ".env.example"
- Updated: "Dockerfile.unraid"
- Updated: "README.md"
- Updated: "backend/Dockerfile"
- Added: "backend/app/alerts.py"
- Updated: "backend/app/auth.py"
- Added: "backend/app/backups.py"
- Updated: "backend/app/config_io.py"
- Updated: "backend/app/demo.py"
- Updated: "backend/app/discovery.py"
- Updated: "backend/app/discovery_store.py"
- Updated: "backend/app/docker_discovery.py"
- Updated: "backend/app/events.py"
- Updated: "backend/app/evidence.py"
- Updated: "backend/app/health.py"
- Updated: "backend/app/incidents.py"
- Added: "backend/app/loops.py"
- Updated: "backend/app/main.py"
- Updated: "backend/app/models.py"
- Updated: "backend/app/observation.py"
- Updated: "backend/app/probes.py"
- Added: "backend/app/response_cache.py"
- Updated: "backend/app/scheduler.py"
- Updated: "backend/app/semantic.py"
- Updated: "backend/app/store.py"
- Updated: "backend/pyproject.toml"
- Updated: "backend/tests/test_api.py"
- Updated: "backend/tests/test_config_io.py"
- Updated: "backend/tests/test_demo.py"
- Updated: "backend/tests/test_discovery_v120.py"
- Updated: "backend/tests/test_health.py"
- Updated: "backend/tests/test_probes.py"
- Updated: "backend/tests/test_scheduler.py"
- Updated: "backend/tests/test_v130_probe_reachability.py"
- Updated: "backend/tests/test_v160_evidence_changes.py"
- Added: "backend/tests/test_v163_alerts.py"
- Added: "backend/tests/test_v163_backups.py"
- Added: "backend/tests/test_v163_data_integrity.py"
- Added: "backend/tests/test_v163_efficiency.py"
- Added: "backend/tests/test_v163_health_performance.py"
- Added: "backend/tests/test_v163_loops.py"
- Added: "backend/tests/test_v163_management.py"
- Added: "backend/tests/test_v163_realtime.py"
- Added: "backend/tests/test_v163_security.py"
- Added: "backend/tests/test_v163_semantic_etag.py"
- Added: "compose.demo.yaml"
- Updated: "compose.yaml"
- Added: "docker-compose.broker.yml"
- Updated: "docker-compose.yml"
- Updated: "docs/ARCHITECTURE.md"
- Added: "frontend/e2e/a11y.spec.ts"
- Updated: "frontend/e2e/demo.spec.ts"
- Updated: "frontend/index.html"
- Updated: "frontend/nginx.conf"
- Updated: "frontend/package-lock.json"
- Updated: "frontend/package.json"
- Updated: "frontend/playwright.config.ts"
- Updated: "frontend/src/App.tsx"
- Updated: "frontend/src/LivingEdge.tsx"
- Added: "frontend/src/activityView.test.ts"
- Added: "frontend/src/activityView.ts"
- Updated: "frontend/src/api.ts"
- Added: "frontend/src/apiAuth.test.ts"
- Added: "frontend/src/components/ActionsMenu.tsx"
- Added: "frontend/src/components/ConfirmDialog.test.tsx"
- Added: "frontend/src/components/ConfirmDialog.tsx"
- Added: "frontend/src/components/StatusIcon.tsx"
- Updated: "frontend/src/demo/DemoWalkthrough.test.ts"
- Updated: "frontend/src/demo/DemoWalkthrough.tsx"
- Added: "frontend/src/elk-worker-url.d.ts"
- Added: "frontend/src/labels.ts"
- Updated: "frontend/src/main.tsx"
- Added: "frontend/src/realtime/refreshPlan.test.ts"
- Added: "frontend/src/realtime/refreshPlan.ts"
- Updated: "frontend/src/realtime/useRealtimeEvents.ts"
- Added: "frontend/src/routing/urlState.test.ts"
- Added: "frontend/src/routing/urlState.ts"
- Updated: "frontend/src/styles.css"
- Added: "frontend/src/topology/GraphListView.test.tsx"
- Added: "frontend/src/topology/GraphListView.tsx"
- Updated: "frontend/src/topology/ServiceNode.tsx"
- Updated: "frontend/src/topology/TopologyCommandBar.tsx"
- Added: "frontend/src/topology/semanticGraph.test.ts"
- Updated: "frontend/src/topology/semanticGraph.ts"
- Added: "frontend/src/topologyLayout.test.ts"
- Updated: "frontend/src/topologyLayout.ts"
- Updated: "package-lock.json"
- Updated: "package.json"
- Updated: "unraid/my-servicemap.xml"

Export provenance/manifests refreshed; excluded from the change summary.

Publish curated ServiceMap source from af46f684e468dffd3a5190e28d3b572d4c26bfd7
2026-11-20 13:51:46 +01:00

698 lines
60 KiB
CSS
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
:root {
/* Layered dark theme: each surface one step lighter than the one below. */
--bg: #0f1216;
--surface-1: #151a21;
--surface-2: #1b212a;
--surface-3: #232b36;
--line: #2a333f;
--line-strong: #3b4654;
--text: #e8edf3;
--text-2: #b9c4d0;
--text-3: #8f9cab;
/* One accent for interaction and selection. */
--accent: #5fb0ec;
--accent-strong: #8ccaf7;
--accent-soft: rgba(95, 176, 236, .14);
--accent-line: #2f6390;
--accent-fill: #2a6ea3;
--accent-fill-hover: #3582bd;
/* Status: same meaning everywhere, always paired with an icon or label. */
--ok: #5ad68f;
--ok-line: #2f6b4b;
--ok-bg: #14261d;
--warn: #f2bf4f;
--warn-line: #7a5d22;
--warn-bg: #2a2214;
--bad: #f57f8d;
--bad-line: #7c3a44;
--bad-bg: #2c161b;
--maint: #b3a6e0;
--maint-line: #4d4675;
--maint-bg: #1f1c33;
--unknown: #9aa6b4;
/* Shape and rhythm. */
--radius-sm: 6px;
--radius-md: 10px;
--radius-lg: 14px;
--radius-pill: 999px;
--fs-xs: 11px;
--fs-sm: 12px;
--fs-md: 13px;
--fs-base: 14px;
--fs-lg: 16px;
--fs-xl: 20px;
--fs-2xl: 26px;
font-family: "Inter Variable", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
font-size: var(--fs-base);
color: var(--text);
background: var(--bg);
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(1200px 500px at 50% -10%, var(--surface-1) 0, var(--bg) 70%); }
button, input, select, textarea { font: inherit; }
button { border: 1px solid var(--line-strong); border-radius: var(--radius-md); padding: 10px 14px; background: var(--surface-3); color: var(--text); cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
button:hover:not(:disabled) { border-color: var(--text-3); background: #2a3340; }
button.primary { border-color: var(--accent-fill); background: var(--accent-fill); color: #fff; font-weight: 600; }
button.primary:hover:not(:disabled) { border-color: var(--accent-fill-hover); background: var(--accent-fill-hover); }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { cursor: not-allowed; opacity: .6; }
button.ghost { background: var(--surface-1); }
button.ghost:hover:not(:disabled) { background: var(--surface-2); }
button.danger { color: var(--bad); border-color: var(--bad-line); background: var(--bad-bg); }
button.text-button { padding: 0; border: 0; background: transparent; color: var(--text-3); font-size: var(--fs-sm); }
input, select, textarea { width: 100%; margin-top: 6px; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 10px 11px; color: var(--text); background: var(--surface-1); }
textarea { min-height: 270px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--fs-sm); line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(95, 176, 236, .55); }
label { color: var(--text-3); font-size: var(--fs-md); }
fieldset { min-width: 0; }
.shell { width: min(1540px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0 42px; }
.topbar, .hero, .panel-heading, .inspector-title { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar { min-height: 58px; padding: 6px 0 12px; }
.brand-lockup { display: flex; align-items: center; gap: 10px; }
.brand-lockup img { width: 38px; height: 38px; }
.toolbar, .button-row { display: flex; align-items: center; gap: 9px; }
.button-row.wrap { flex-wrap: wrap; }
.eyebrow, .kicker { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-size: var(--fs-xs); color: var(--text-3); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: var(--fs-2xl); letter-spacing: -.02em; }
h1 small { color: var(--text-3); font-size: var(--fs-sm); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
h2 { max-width: 760px; margin-bottom: 9px; font-size: clamp(29px, 3.6vw, 46px); line-height: 1.04; letter-spacing: -.035em; }
h3 { margin: 6px 0 12px; font-size: var(--fs-xl); letter-spacing: -.02em; }
.hero { margin-bottom: 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(21, 26, 33, .92), rgba(21, 26, 33, .86)); }
.operations-strip { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-1); }
.operations-strip > div:first-child { display: grid; gap: 3px; }
.operations-strip strong { font-size: var(--fs-lg); }
.operations-strip small { color: var(--text-3); font-size: var(--fs-sm); }
.canvas-card { position: relative; }
.canvas-toolbar { position: absolute; z-index: 5; top: 10px; right: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; max-width: calc(100% - 20px); pointer-events: none; }
.canvas-toolbar > * { pointer-events: auto; }
.canvas-note { padding: 4px 10px; border-radius: var(--radius-pill); background: rgba(21, 26, 33, .9); border: 1px solid var(--line); color: var(--text-2); font-size: var(--fs-sm); }
.service-row-wrap { display: flex; align-items: center; gap: 8px; }
.service-row-wrap > input[type="checkbox"] { flex: 0 0 auto; width: 16px; height: 16px; }
.service-row-wrap > .service-table-row, .service-row-wrap > .service-table-head { flex: 1 1 auto; }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-2); }
.checkbox-field { display: inline-flex; align-items: center; gap: 6px; }
.inline-form { display: grid; gap: 8px; margin-top: 10px; }
.inline-form label { display: grid; gap: 4px; }
.activity-list { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 6px; }
.activity-list li { display: grid; grid-template-columns: 150px minmax(140px, 220px) 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-1); font-size: var(--fs-md); }
.activity-type { color: var(--text-3); font-family: ui-monospace, monospace; font-size: var(--fs-sm); }
@media (max-width: 760px) { .activity-list li { grid-template-columns: 1fr; } }
.backup-list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; max-width: 640px; }
.backup-list li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-1); }
.backup-list li > span { flex: 1; display: grid; }
.backup-list small { color: var(--text-3); font-size: var(--fs-sm); }
.settings-form { display: grid; gap: 12px; max-width: 560px; }
.settings-form label { display: grid; gap: 4px; }
.settings-form small { color: var(--text-3); font-size: var(--fs-sm); }
.unlock-panel { display: grid; gap: 8px; max-width: 560px; margin: 0 0 12px auto; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-1); }
.unlock-panel label { display: grid; gap: 4px; font-weight: 600; }
.unlock-panel small { color: var(--text-3); font-size: var(--fs-sm); }
.unlock-panel code { font-size: var(--fs-xs); }
.unlock-error { color: var(--bad); font-size: var(--fs-md); }
.unlock-actions { display: flex; gap: 8px; }
.live-status { margin-left: 8px; padding: 1px 8px; border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0; text-transform: none; }
.live-status-live { color: var(--ok); background: rgba(34, 197, 94, .12); }
.live-status-connecting { color: var(--text-2); background: rgba(95, 176, 236, .14); }
.live-status-offline { color: var(--warn); background: rgba(251, 191, 36, .14); }
.compact-hero { align-items: center; }
.compact-hero h2 { margin: 3px 0; font-size: clamp(20px, 2vw, 28px); }
.compact-hero .kicker { margin-bottom: 3px; }
.compact-hero .muted { font-size: var(--fs-sm); line-height: 1.4; }
.demo-mode .hero { margin-bottom: 10px; padding: 18px 22px; }
.demo-mode .hero h2 { max-width: 650px; font-size: clamp(28px, 3vw, 39px); }
.muted { max-width: 760px; margin-bottom: 0; color: var(--text-3); line-height: 1.55; }
.muted.compact { margin-top: 10px; font-size: var(--fs-md); }
.error-banner, .notice-banner { margin-bottom: 14px; padding: 11px 13px; border-radius: var(--radius-md); }
.error-banner { border: 1px solid var(--bad-line); background: var(--bad-bg); color: var(--bad); }
.notice-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--ok-line); background: var(--ok-bg); color: var(--ok); }
.demo-banner, .demo-confirm { align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; padding: 14px 16px; border-radius: var(--radius-lg); }
.demo-banner { display: grid; grid-template-columns: minmax(0, 1fr) auto; border: 1px solid var(--warn-line); background: linear-gradient(110deg, var(--warn-bg), var(--ok-bg)); }
.demo-confirm { display: flex; }
.demo-confirm { border: 1px solid var(--line-strong); background: var(--surface-2); }
.demo-banner strong, .demo-confirm strong { display: block; margin-top: 4px; color: var(--warn); font-size: var(--fs-lg); }
.demo-confirm strong { color: var(--text); }
.demo-banner p, .demo-confirm p { margin: 4px 0 0; color: var(--text-2); font-size: var(--fs-md); line-height: 1.45; }
.demo-confirm p { color: var(--text-2); }
.demo-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; flex-wrap: wrap; }
.demo-walkthrough { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; border-top: 1px solid var(--warn-line); }
.demo-walkthrough-copy { min-width: 0; }
.demo-walkthrough-copy strong { font-size: var(--fs-base); }
.demo-walkthrough-copy p { max-width: 700px; }
.demo-walkthrough-actions { display: flex; flex: 0 0 auto; gap: 8px; flex-wrap: wrap; }
.health-summary { display: grid; grid-template-columns: repeat(4, minmax(64px, 1fr)); gap: 6px; min-width: 300px; }
.health-summary div, .incident-metrics div { padding: 9px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-1); }
.health-summary strong, .incident-metrics strong { display: block; font-size: var(--fs-xl); }
.health-summary span, .incident-metrics span { color: var(--text-3); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; }
.panel-tabs { display: flex; gap: 7px; margin-bottom: 12px; overflow-x: auto; }
.panel-tabs button { flex: 0 0 auto; padding: 8px 12px; border-color: var(--line); background: var(--surface-1); color: var(--text-3); }
.panel-tabs button:hover:not(:disabled) { color: var(--text); }
.panel-tabs button.active { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); font-weight: 600; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.topology-workspace:has(.topology-drawer) { grid-template-columns: minmax(0, 1fr) minmax(330px, 380px); }
.demo-mode .canvas-card { min-height: 480px; height: min(620px, calc(100vh - 360px)); }
.canvas-card { min-height: 500px; height: min(700px, calc(100vh - 370px)); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); box-shadow: 0 26px 90px rgba(0,0,0,.28); }
.empty-state { height: 100%; min-height: 620px; display: grid; place-content: center; gap: 8px; padding: 30px; text-align: center; color: var(--text-3); }
.empty-state strong { color: var(--text); font-size: var(--fs-xl); }
.side-panel { display: grid; min-width: 0; align-content: start; gap: 12px; height: min(700px, calc(100vh - 370px)); min-height: 500px; overflow-x: hidden; overflow-y: auto; padding-right: 2px; }
.topology-drawer { position: sticky; top: 14px; border-left: 1px solid var(--line); padding-left: 14px; }
.panel-section { min-width: 0; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(21, 26, 33, .95); box-shadow: 0 18px 50px rgba(0,0,0,.18); }
.form-section { padding: 0; }
.form-section summary { padding: 16px 19px; cursor: pointer; list-style: none; }
.form-section summary::-webkit-details-marker { display: none; }
.form-section summary::after { content: '+'; color: var(--text-3); font-size: var(--fs-lg); }
.form-section[open] summary::after { content: '−'; }
.form-section .service-form { padding: 0 19px 19px; }
.tall-panel { min-height: 520px; }
.service-form { display: grid; gap: 13px; margin-top: 13px; }
.field-row { display: grid; grid-template-columns: 1fr 105px; gap: 10px; }
.semantic-fields { display: grid; gap: 9px; margin: 4px 0; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-md); }
.semantic-fields legend { padding: 0 5px; color: var(--text-3); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; }
.semantic-fields .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.semantic-fields .muted { align-self: end; font-size: var(--fs-xs); }
.dependency-fieldset { display: grid; gap: 7px; margin: 0; padding: 11px; border: 1px solid var(--line); border-radius: var(--radius-md); max-height: 150px; overflow-y: auto; }
.dependency-fieldset legend { padding: 0 5px; color: var(--text-3); font-size: var(--fs-sm); }
.check-row { display: flex; align-items: center; gap: 8px; }
.check-row input { width: auto; margin: 0; }
.inspector-section { min-height: 280px; }
.observation-callout { border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text-2); }
.root-cause-label { display: inline-block; margin-top: 2px; color: var(--warn); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; }
.inspector-callout { display: grid; gap: 5px; margin: 13px 0; padding: 11px 12px; border-radius: var(--radius-md); font-size: var(--fs-sm); line-height: 1.4; }
.inspector-callout strong { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .06em; }
.inspector-callout span, .inspector-callout small { color: var(--text-2); }
.root-cause-callout { border: 1px solid var(--warn-line); background: var(--warn-bg); color: var(--warn); }
.impacted-callout { border: 1px solid var(--warn-line); background: var(--warn-bg); color: var(--warn); }
.inspector dl { display: grid; gap: 8px; margin: 15px 0; }
.inspector dl div { display: grid; grid-template-columns: 125px minmax(0, 1fr); gap: 9px; }
dt { color: var(--text-3); font-size: var(--fs-sm); }
dd { margin: 0; overflow-wrap: anywhere; color: var(--text); font-size: var(--fs-sm); }
.probe-detail { padding: 10px; border-radius: var(--radius-md); background: var(--surface-1); color: var(--text-2); font-size: var(--fs-sm); line-height: 1.45; }
.health-pill { display: inline-flex; padding: 5px 9px; border-radius: var(--radius-pill); border: 1px solid currentColor; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.status-healthy { color: var(--ok) !important; }
.status-degraded { color: var(--warn) !important; }
.status-down { color: var(--bad) !important; }
.status-unknown { color: var(--text-3) !important; }
.status-unmonitored { color: var(--text-3) !important; }
.history-strip { display: flex; align-items: flex-end; gap: 4px; min-height: 24px; margin: 13px 0; padding: 7px 8px; border-radius: var(--radius-md); background: var(--bg); overflow-x: auto; }
.history-dot { flex: 0 0 8px; width: 8px; height: 18px; border-radius: var(--radius-sm); background: currentColor; opacity: .85; }
.incident-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin: 15px 0; }
.candidate-list, .docker-list { display: grid; gap: 9px; margin-top: 14px; }
.candidate { width: 100%; display: grid; gap: 5px; text-align: left; background: var(--surface-1); }
.candidate strong { font-size: var(--fs-base); }
.candidate small, .docker-card small { color: var(--text-3); line-height: 1.4; overflow-wrap: anywhere; }
.config-label { display: grid; gap: 4px; margin: 14px 0; }
.full-button { width: 100%; margin-top: 11px; }
.docker-card { display: grid; gap: 7px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-1); }
.docker-card > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.docker-card > div span { color: var(--text-3); font-size: var(--fs-xs); }
.empty-inline { padding: 18px 0 8px; color: var(--text-3); font-size: var(--fs-md); }
.react-flow__node { min-width: 165px; border: 1px solid var(--line-strong) !important; background: var(--surface-2) !important; color: var(--text) !important; border-radius: var(--radius-lg) !important; padding: 0 !important; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: var(--fs-sm); }
.react-flow__node.service-node { min-width: 198px; overflow: visible; }
.react-flow__node.application-node { min-width: 226px; border-radius: var(--radius-lg) !important; }
.application-node .service-node-body { min-height: 122px; background: linear-gradient(145deg, rgba(21, 26, 33, .88), rgba(21, 26, 33, .96)); }
.scope-label { display: block; margin: 8px 0 4px; color: var(--text-3); font-size: var(--fs-xs); }
.node-kicker { color: var(--accent); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; }
.react-flow__node.service-node .react-flow__handle { width: 8px; height: 8px; border: 2px solid var(--line-strong); background: var(--surface-3); }
.service-node-body { display: grid; gap: 4px; min-height: 108px; padding: 12px 14px; border-radius: var(--radius-md); }
.service-node-body strong { overflow-wrap: anywhere; font-size: var(--fs-base); line-height: 1.15; }
.service-node-body small { color: var(--text-3); font-size: var(--fs-xs); }
.node-badges { min-height: 15px; }
.node-badge { display: inline-flex; padding: 2px 5px; border-radius: var(--radius-sm); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; }
.app-micro-topology { display: flex; gap: 4px; margin: 6px 0 2px; }
.app-micro-topology i { display: grid; width: 16px; height: 16px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--text-2); background: var(--surface-3); font-size: var(--fs-xs); font-style: normal; font-weight: 800; }
.app-micro-topology i.role-database, .app-micro-topology i.role-cache, .app-micro-topology i.role-storage { border-radius: var(--radius-sm); background: var(--ok-bg); }
.app-micro-topology i.role-proxy, .app-micro-topology i.role-api { border-radius: var(--radius-sm); background: var(--line-strong); }
.root-cause-badge { background: var(--warn-line); color: var(--warn); }
.impacted-badge { background: var(--warn-line); color: var(--warn); }
.node-status { width: fit-content; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.react-flow__node.service-node:has(.root-cause-badge) { border-color: var(--warn-line) !important; box-shadow: 0 0 0 2px rgba(211,155,56,.28), 0 12px 36px rgba(211,155,56,.2); }
.react-flow__node.selected { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Root-cause nodes are pre-selected by the graph; mark them as root cause, not as the operator's selection. */
.react-flow__node.selected:has(.root-cause-badge) { outline-color: var(--warn); }
.react-flow__node.status-healthy { border-color: var(--ok-line) !important; box-shadow: 0 10px 34px rgba(47,128,90,.12); }
.react-flow__node.status-degraded { border-color: var(--warn-line) !important; box-shadow: 0 10px 34px rgba(154,115,48,.12); }
.react-flow__node.status-down { border-color: var(--bad-line) !important; box-shadow: 0 10px 34px rgba(155,65,77,.14); }
.react-flow__node.status-unmonitored { border-color: var(--line-strong) !important; box-shadow: none; }
.react-flow__edge-path { stroke: var(--line-strong); stroke-width: 2; }
.living-edge-path { fill: none; stroke: var(--line-strong); stroke-width: 2; transition: stroke .18s ease, stroke-width .18s ease, opacity .18s ease; }
.living-edge-routes_to { stroke: var(--line-strong); stroke-dasharray: 8 4; }
.living-edge-review { stroke: var(--line-strong); stroke-dasharray: 3 6; opacity: .68; }
.living-edge-path.is-selected { stroke: var(--accent); stroke-width: 3.2; }
.living-edge-signal { fill: none; stroke: var(--accent); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 2 20; animation: servicemap-edge-signal 1.7s linear infinite; filter: drop-shadow(0 0 3px rgba(95, 176, 236, .8)); }
.edge-down .living-edge-path { stroke: var(--bad-line); }
.edge-degraded .living-edge-path { stroke: var(--warn-line); }
.edge-down .living-edge-signal, .edge-degraded .living-edge-signal { stroke: var(--warn); }
@keyframes servicemap-edge-signal { to { stroke-dashoffset: -44; } }
@media (prefers-reduced-motion: reduce) { .living-edge-signal { animation: none; stroke-dasharray: none; opacity: .85; } }
.react-flow__edge-marker { fill: var(--line-strong); }
.react-flow__edge.edge-down .react-flow__edge-path { stroke: var(--bad-line); }
.react-flow__edge.edge-degraded .react-flow__edge-path { stroke: var(--warn-line); }
.react-flow__edge.edge-down .react-flow__edge-marker { fill: var(--bad-line); }
.react-flow__edge.edge-degraded .react-flow__edge-marker { fill: var(--warn-line); }
.react-flow__controls { border: 1px solid var(--line); overflow: hidden; border-radius: var(--radius-md); }
.react-flow__controls { box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.react-flow__controls button { width: 30px; height: 30px; padding: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--surface-2); color: var(--text-2); }
.react-flow__controls button:hover:not(:disabled) { border-color: var(--line); background: var(--surface-3); color: var(--text); }
.react-flow__controls button svg { fill: currentColor; max-width: 13px; max-height: 13px; }
.react-flow__attribution { background: transparent !important; opacity: .45; }
.react-flow__attribution a { color: var(--text-3) !important; }
.react-flow__minimap { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--bg) !important; }
/* v1.1 information architecture */
.overview-grid, .incident-workspace, .services-workspace { display: grid; gap: 16px; }
.overview-grid { grid-template-columns: minmax(0, 1.35fr) minmax(300px, .9fr); }
.overview-lead { min-height: 270px; }
.overview-lead h2 { margin: 9px 0; font-size: clamp(28px, 3vw, 42px); }
.overview-incident { min-height: 270px; }
.summary-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 28px; }
.summary-cards button { display: block; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-1); text-align: left; }
.summary-cards strong { display: block; font-size: var(--fs-2xl); }
.summary-cards span { color: var(--text-2); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; }
.overview-root-list { max-height: 220px; overflow-y: auto; padding-right: 4px; }
.coverage-overview { grid-column: span 2; }
.coverage-overview h3 { margin-bottom: 0; }
.coverage-breakdown { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.coverage-breakdown div { padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-1); }
.coverage-breakdown strong, .coverage-breakdown span { display: block; }
.coverage-breakdown strong { font-size: var(--fs-xl); }
.coverage-breakdown span { margin-top: 3px; color: var(--text-3); font-size: var(--fs-xs); line-height: 1.25; text-transform: uppercase; letter-spacing: .06em; }
.event-panel { grid-column: 1 / -1; }
.event-list { display: grid; gap: 2px; margin-top: 12px; }
.event-row { display: flex; align-items: flex-start; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.event-dot { flex: 0 0 8px; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(95, 176, 236, .12); }
.event-row strong, .event-row small { display: block; }
.event-row strong { font-size: var(--fs-md); }
.event-row small { margin-top: 3px; color: var(--text-3); font-size: var(--fs-xs); }
.incident-workspace { grid-template-columns: minmax(0, 1.05fr) minmax(320px, .85fr); }
.incident-list-panel, .incident-detail-panel { min-height: 560px; }
.incident-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text-3); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; }
.incident-card.resolved { opacity: .72; }
.review-filters { display: grid; grid-template-columns: minmax(170px, 1fr) repeat(2, minmax(130px, auto)); gap: 10px; margin-top: 16px; }
.review-filters label { display: grid; gap: 5px; color: var(--text-2); font-size: var(--fs-sm); }
.review-filters input, .review-filters select { min-width: 0; width: 100%; margin: 0; }
.incident-list-panel .review-filters { grid-template-columns: minmax(170px, 1fr) minmax(130px, 170px); }
.timeline { display: grid; gap: 0; margin-top: 20px; }
.timeline-row { display: grid; grid-template-columns: 17px minmax(0, 1fr); gap: 10px; min-height: 58px; }
.timeline-line { position: relative; width: 9px; height: 9px; margin-top: 4px; border: 2px solid var(--accent); border-radius: 50%; background: var(--surface-1); }
.timeline-line::after { content: ''; position: absolute; top: 7px; left: 2px; width: 1px; height: 50px; background: var(--line-strong); }
.timeline-row:last-child .timeline-line::after { display: none; }
.timeline-row strong, .timeline-row small { display: block; }
.timeline-row strong { font-size: var(--fs-md); line-height: 1.35; }
.timeline-row small { margin-top: 3px; color: var(--text-3); font-size: var(--fs-xs); }
.services-workspace { grid-template-columns: minmax(0, 1fr); align-items: start; }
.services-workspace:has(.service-drawer) { grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); }
.service-drawer { position: sticky; top: 14px; display: grid; align-content: start; gap: 12px; max-height: calc(100vh - 42px); overflow-y: auto; padding: 0 2px 2px 14px; border-left: 1px solid var(--line); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 0; }
.table-panel { min-height: 630px; }
.table-toolbar { display: grid; grid-template-columns: minmax(180px, 1.5fr) auto repeat(5, minmax(105px, 1fr)); gap: 9px; margin-bottom: 15px; }
.search-field { min-width: 0; }
.service-table { display: grid; gap: 1px; overflow-x: auto; }
.service-table-head, .service-table-row { display: grid; grid-template-columns: minmax(180px, 1.25fr) minmax(115px, .8fr) minmax(110px, .65fr) minmax(130px, .9fr) minmax(100px, .7fr) minmax(75px, .45fr) minmax(75px, .45fr); gap: 12px; align-items: center; min-width: 920px; }
.service-table-head { padding: 8px 12px; color: var(--text-3); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; }
.service-table-row { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-1); color: var(--text); text-align: left; }
.service-table-row:hover { background: var(--surface-2); }
.service-table-row[aria-pressed="true"] { border-color: var(--accent); background: var(--surface-3); box-shadow: inset 3px 0 var(--accent); }
.monitoring-cell { display: grid; gap: 2px; }
.service-table-row span { min-width: 0; overflow-wrap: anywhere; font-size: var(--fs-sm); }
.service-table-row strong, .service-table-row small { display: block; }
.service-table-row strong { font-size: var(--fs-md); }
.service-table-row small { margin-top: 3px; color: var(--text-3); font-size: var(--fs-xs); }
.graph-tools { display: none; }
.topology-command-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-bottom: 12px; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(21, 26, 33, .94); box-shadow: 0 16px 40px rgba(0,0,0,.14); }
.topology-command-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.filter-chip { justify-self: start; padding: 4px 8px; border-color: var(--line-strong); border-radius: var(--radius-pill); background: var(--surface-3); color: var(--text); font-size: var(--fs-xs); }
.topology-command-actions input { width: 175px; margin: 0; padding: 7px 9px; font-size: var(--fs-sm); }
.compact-button { padding: 7px 9px; border-radius: var(--radius-md); font-size: var(--fs-xs); }
.filter-popover { position: relative; }
.filter-popover summary { cursor: pointer; list-style: none; padding: 7px 9px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-1); color: var(--text); font-size: var(--fs-xs); }
.filter-popover summary::-webkit-details-marker { display: none; }
.filter-popover > div { position: absolute; z-index: 12; right: 0; top: calc(100% + 7px); display: grid; grid-template-columns: repeat(2, minmax(145px, 1fr)); gap: 9px; width: 330px; padding: 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-1); box-shadow: 0 20px 50px rgba(0,0,0,.42); }
.filter-popover label { font-size: var(--fs-xs); }
.filter-popover select { padding: 7px 8px; font-size: var(--fs-sm); }
.mode-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.mode-tabs button { padding: 7px 9px; font-size: var(--fs-xs); }
.mode-tabs button.active { border-color: var(--accent); background: var(--surface-3); }
.topology-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--text-2); font-size: var(--fs-sm); }
.domain-node .service-node-body { min-width: 205px; }
.application-node .service-node-body { min-width: 225px; }
.component-node .service-node-body { min-width: 198px; }
.react-flow__node.domain-node { border-style: double; }
.filter-row { display: grid; grid-template-columns: minmax(0, 1fr) 125px; gap: 8px; }
.detail-grid { display: grid; gap: 8px; margin: 15px 0; }
.detail-grid div { display: grid; grid-template-columns: 125px minmax(0, 1fr); gap: 9px; }
.discovery-panel, .config-panel { max-width: 980px; min-height: 620px; }
.suggestion { display: grid; gap: 4px; margin-top: 9px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-2); }
.suggestion small { color: var(--text-3); }
.suggestion button { margin-top: 4px; }
.discovery-workspace { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); align-items: start; }
.discovery-workspace > .discovery-observations { grid-column: 1 / -1; }
.discovery-panel, .suggestion-panel, .discovery-observations { min-height: 0; }
.discovery-summary { display: grid; grid-template-columns: repeat(5, minmax(72px, 1fr)); gap: 8px; margin: 18px 0 12px; }
.discovery-summary div { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-1); }
.discovery-summary strong { font-size: var(--fs-xl); }
.discovery-summary span { color: var(--text-3); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .07em; }
.discovery-callout, .notice-inline { display: grid; gap: 4px; margin: 13px 0; padding: 11px 12px; border: 1px solid var(--ok-line); border-radius: var(--radius-md); background: var(--ok-bg); color: var(--ok); font-size: var(--fs-sm); line-height: 1.45; }
.probe-safety-callout { display: grid; gap: 7px; margin: 13px 0; padding: 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-2); color: var(--text); font-size: var(--fs-sm); line-height: 1.45; }
.probe-safety-callout span, .probe-safety-callout small { color: var(--text-2); }
.coverage-change-list { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; }
.coverage-change-list > div { display: grid; gap: 2px; padding: 8px 9px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-1); }
.coverage-change-list strong { font-size: var(--fs-sm); }
.coverage-change-list small { font-size: var(--fs-xs); line-height: 1.35; }
.discovery-callout span { color: var(--ok); }
.notice-inline { display: block; color: var(--text); border-color: var(--line-strong); background: var(--surface-2); }
.suggestion-list { display: grid; gap: 10px; margin-top: 14px; max-height: 720px; overflow-y: auto; padding-right: 2px; }
.discovery-panel .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.review-confirm { margin-top: 14px; padding: 14px; border: 1px solid var(--warn-line); border-radius: var(--radius-md); background: var(--warn-bg); }
.review-confirm p { color: var(--warn); line-height: 1.5; }
.show-more { margin-top: 12px; }
.suggestion-card { display: grid; gap: 7px; padding: 13px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-1); }
.suggestion-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.suggestion-card-heading strong { display: block; margin-top: 4px; font-size: var(--fs-base); line-height: 1.3; }
.suggestion-card > small { color: var(--text-3); }
.evidence-list { display: grid; gap: 4px; margin-top: 6px; }
.evidence-list strong { color: var(--text-2); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .07em; }
.evidence-list small { display: block; color: var(--text-3); line-height: 1.4; overflow-wrap: anywhere; }
.provider-statuses { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.provider-statuses small { border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 3px 7px; }
.change-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 9px; margin-top: 14px; align-items: start; }
.snapshot-picker { display: grid; gap: 5px; max-width: 440px; margin: 14px 0; color: var(--text-2); font-size: var(--fs-sm); }
.change-card { padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-1); }
.change-card summary { display: grid; gap: 4px; cursor: pointer; }
.change-card summary strong { color: var(--text); }
.change-card summary small { color: var(--text-2); }
.change-fields { display: grid; gap: 6px; margin: 10px 0; }
.change-fields div { display: grid; gap: 2px; padding: 7px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.change-fields strong { font-size: var(--fs-xs); text-transform: capitalize; }
.change-fields small { overflow-wrap: anywhere; color: var(--text-2); }
.current-evidence-callout { border-color: var(--ok-line); background: var(--surface-2); }
.observation-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 6px; margin: 14px 0; }
.observation-row { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 3px 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-1); }
.observation-row strong { overflow-wrap: anywhere; font-size: var(--fs-sm); }
.observation-row span, .observation-row small { color: var(--text-3); font-size: var(--fs-xs); }
.observation-row small { grid-column: 1 / -1; }
.candidate-details { margin-top: 14px; }
.candidate-details summary { cursor: pointer; color: var(--text-2); font-size: var(--fs-sm); }
.compact-list { max-height: 430px; overflow-y: auto; }
.group-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.group-chips button { padding: 6px 8px; font-size: var(--fs-xs); }
.group-chips button.active { border-color: var(--accent); background: var(--surface-3); }
.edge-inspector { border-color: var(--line-strong); }
.edge-inspector .detail-grid { max-height: 280px; overflow-y: auto; }
.flap-badge { margin-left: 4px; background: var(--maint-line); color: var(--maint); }
.status-recovering { color: var(--text-2) !important; }
.status-maintenance { color: var(--maint) !important; }
.react-flow__edge.edge-dimmed { opacity: .28; }
.react-flow__edge.edge-down .react-flow__edge-path, .react-flow__edge.edge-degraded .react-flow__edge-path { stroke-dasharray: 7 5; }
.react-flow__node.status-recovering { border-color: var(--line-strong) !important; }
.react-flow__node.status-maintenance { border-color: var(--maint-line) !important; }
.react-flow__node.service-node:has(.flap-badge) { border-style: dashed !important; }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 1120px) {
.workspace { grid-template-columns: 1fr; }
.side-panel { max-height: none; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
.tall-panel { grid-column: 1 / -1; }
.canvas-card { height: 620px; min-height: 620px; }
.services-workspace, .incident-workspace { grid-template-columns: 1fr; }
.discovery-workspace { grid-template-columns: 1fr; }
.discovery-workspace > .discovery-observations { grid-column: auto; }
.service-side { max-height: none; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
.coverage-overview { grid-column: auto; }
.topology-command-bar { grid-template-columns: 1fr; }
.topology-command-actions { justify-content: flex-start; }
.topology-drawer, .service-drawer { position: static; height: auto; max-height: none; border-left: 0; padding-left: 0; overflow: visible; }
}
@media (max-width: 760px) {
.shell { width: min(100% - 24px, 1540px); padding-top: 18px; }
.topbar, .hero, .operations-strip { align-items: flex-start; flex-direction: column; }
.toolbar { width: 100%; flex-wrap: wrap; }
.toolbar button { flex: 1 1 auto; }
.health-summary { min-width: 0; width: 100%; grid-template-columns: repeat(2, 1fr); }
.canvas-card { height: 520px; min-height: 520px; }
.side-panel { grid-template-columns: 1fr; }
.service-side { grid-template-columns: 1fr; }
.field-row { grid-template-columns: 1fr; }
.discovery-panel .field-row, .review-filters, .incident-list-panel .review-filters { grid-template-columns: 1fr; }
.table-toolbar, .overview-grid { grid-template-columns: 1fr; }
.summary-cards { grid-template-columns: repeat(2, 1fr); }
.coverage-breakdown { grid-template-columns: repeat(2, 1fr); }
.change-list { grid-template-columns: 1fr; }
.topology-command-actions input { width: 100%; flex: 1 1 180px; }
.filter-popover > div { position: fixed; right: 12px; left: 12px; top: auto; width: auto; }
.discovery-summary { grid-template-columns: repeat(2, 1fr); }
.inspector-title { align-items: flex-start; }
.panel-heading { flex-wrap: wrap; gap: 12px; }
.panel-heading > label { flex: 1 1 100%; }
.demo-banner { display: flex; align-items: flex-start; flex-direction: column; }
.demo-confirm, .demo-walkthrough { align-items: flex-start; flex-direction: column; }
.demo-actions { width: 100%; }
.demo-actions button, .demo-walkthrough-actions button { flex: 1 1 auto; }
}
/* Accessibility: a visible focus ring for keyboard users (WCAG 2.4.7, 1.4.11). */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.react-flow__node:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: var(--radius-lg); }
main:focus { outline: none; }
.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; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: var(--radius-md); background: var(--surface-3); color: var(--text); }
.skip-link:focus { top: 12px; }
.flow-host { width: 100%; height: 100%; }
.graph-list { height: 100%; overflow: auto; padding: 56px 16px 16px; }
.graph-list ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.graph-list li { display: grid; gap: 4px; }
.graph-list button { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 100%; text-align: left; }
.graph-list small { padding-left: 14px; color: var(--text-2); font-size: var(--fs-sm); }
.graph-list-status { min-width: 128px; font-size: var(--fs-sm); font-weight: 700; }
.graph-list .status-healthy .graph-list-status { color: var(--ok); }
.graph-list .status-degraded .graph-list-status, .graph-list .status-recovering .graph-list-status { color: var(--warn); }
.graph-list .status-down .graph-list-status { color: var(--bad); }
.graph-list .status-unknown .graph-list-status, .graph-list .status-unmonitored .graph-list-status, .graph-list .status-maintenance .graph-list-status { color: var(--text-2); }
.graph-list-flag { padding: 2px 8px; border: 1px solid currentColor; border-radius: var(--radius-pill); color: var(--warn); font-size: var(--fs-xs); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
.confirm-dialog { width: min(520px, calc(100% - 32px)); padding: 20px 22px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface-2); color: var(--text); box-shadow: 0 30px 90px rgba(0,0,0,.55); }
.confirm-dialog::backdrop { background: rgba(21, 26, 33, .72); }
.confirm-dialog h2 { margin: 0 0 8px; font-size: var(--fs-lg); }
.confirm-dialog-body p { margin: 0 0 16px; color: var(--text-2); font-size: var(--fs-base); line-height: 1.5; }
.confirm-dialog .button-row { justify-content: flex-end; }
/* Numbers line up in KPIs, tables and metrics. */
.health-summary strong, .summary-cards strong, .metric strong, .service-table, .detail-grid dd, .history-strip, time { font-variant-numeric: tabular-nums; }
/* Lucide icons sit on the text baseline; icon + label buttons get a fixed gap. */
.status-icon { flex: none; vertical-align: -2px; }
.health-pill .status-icon, .node-status .status-icon { margin-right: 3px; }
button:has(> svg) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
button > svg { flex: none; opacity: .9; }
.panel-tabs button > svg { opacity: .75; }
.panel-tabs button.active > svg { opacity: 1; color: var(--accent); }
/* ── App shell ─────────────────────────────────────────────────────────
One sticky header: brand, live status, KPI chips and actions on the
first row, workspaces on the second. On phones the workspaces move to a
bottom bar. */
:root { --topbar-h: 98px; --page-w: min(1760px, calc(100% - 32px)); }
.shell { width: 100%; margin: 0; padding: 0 0 32px; }
.shell > :not(.topbar):not(.skip-link):not(dialog) { width: var(--page-w); margin-left: auto; margin-right: auto; }
.topbar { position: sticky; top: 0; z-index: 40; display: block; min-height: 0; margin-bottom: 14px; padding: 0; border-bottom: 1px solid var(--line); background: rgba(21, 26, 33, .94); backdrop-filter: blur(10px); }
.topbar-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand status actions" "nav nav nav"; align-items: center; column-gap: 16px; width: var(--page-w); margin: 0 auto; }
.topbar .brand-lockup { grid-area: brand; gap: 10px; height: 54px; }
.topbar .brand-lockup img { width: 28px; height: 28px; }
.topbar .brand-lockup h1 { margin: 0; font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.01em; }
.topbar-status { grid-area: status; display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
.topbar-status .live-status { margin: 0; }
.kpi-chips { display: flex; gap: 6px; }
.kpi-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface-2); font-size: var(--fs-md); }
.kpi-chip strong { color: var(--text); font-variant-numeric: tabular-nums; }
.topbar .toolbar { grid-area: actions; gap: 6px; }
.topbar .toolbar .primary { padding: 8px 14px; }
.icon-button { width: 36px; height: 36px; padding: 0; }
.topbar .panel-tabs { grid-area: nav; display: flex; gap: 2px; margin: 0 0 -1px; overflow-x: auto; scrollbar-width: none; }
.topbar .panel-tabs::-webkit-scrollbar { display: none; }
.topbar .panel-tabs button { padding: 9px 12px 10px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--text-3); font-size: var(--fs-md); }
.topbar .panel-tabs button:hover:not(:disabled) { border-color: var(--line-strong); background: transparent; color: var(--text); }
.topbar .panel-tabs button.active { border-color: var(--accent); background: transparent; color: var(--text); }
.nav-more { display: none; }
.actions-menu { position: relative; }
.actions-menu-panel { position: absolute; top: calc(100% + 6px); right: 0; z-index: 60; display: grid; gap: 2px; min-width: 210px; padding: 6px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-2); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.actions-menu-panel button { justify-content: flex-start; width: 100%; padding: 9px 10px; border-color: transparent; background: transparent; }
.actions-menu-panel button:hover:not(:disabled) { border-color: transparent; background: var(--surface-3); }
.actions-menu-footer { margin-top: 4px; padding: 6px 10px 2px; border-top: 1px solid var(--line); color: var(--text-3); font-size: var(--fs-xs); }
.unlock-popover { position: absolute; top: calc(100% + 6px); right: max(16px, calc((100% - 1760px) / 2)); z-index: 60; width: min(440px, calc(100vw - 32px)); margin: 0; background: var(--surface-2); border-color: var(--line-strong); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-bottom: 12px; padding: 8px 14px; border: 1px solid var(--bad-line); border-radius: var(--radius-md); background: var(--bad-bg); font-size: var(--fs-md); }
.status-line strong { color: var(--bad); }
.status-line span { color: var(--text-2); }
.status-line .text-button { margin-left: auto; color: var(--text); font-size: var(--fs-md); text-decoration: underline; }
.status-line-offline { border-color: var(--warn-line); background: var(--warn-bg); }
.status-line-offline strong { color: var(--warn); }
/* ── Topology fills the viewport; the inspector is a drawer over it ── */
.topology-workspace, .topology-workspace:has(.topology-drawer) { position: relative; display: block; }
.canvas-card, .demo-mode .canvas-card { height: calc(100dvh - var(--topbar-h) - 100px); min-height: 460px; }
.shell:has(.status-line) .canvas-card { height: calc(100dvh - var(--topbar-h) - 150px); }
.topology-drawer { position: absolute; top: 10px; right: 10px; bottom: 10px; z-index: 6; display: block; width: min(400px, calc(100% - 20px)); height: auto; min-height: 0; max-height: none; padding: 16px; overflow-y: auto; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: rgba(21, 26, 33, .97); box-shadow: -16px 0 48px rgba(0, 0, 0, .45); }
.topology-drawer > .panel-section { padding: 0; border: 0; background: transparent; box-shadow: none; }
.topology-drawer .inspector-section { min-height: 0; }
.drawer-close { position: absolute; top: 10px; right: 10px; z-index: 1; }
.topology-drawer .inspector-title { padding-right: 44px; }
.topology-workspace:has(.topology-drawer) .canvas-toolbar { right: 420px; }
@media (max-width: 1120px) {
.topology-workspace, .topology-workspace:has(.topology-drawer) { display: block; }
.topology-drawer { position: absolute; display: block; height: auto; max-height: none; padding: 16px; border: 1px solid var(--line-strong); overflow-y: auto; }
.topology-workspace:has(.topology-drawer) .canvas-toolbar { right: 10px; }
}
@media (max-width: 760px) {
:root { --topbar-h: 54px; --page-w: calc(100% - 24px); }
.shell { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
/* backdrop-filter would make the header the containing block of the fixed bottom bar. */
.topbar { margin-bottom: 12px; background: var(--surface-1); backdrop-filter: none; }
.topbar-inner { grid-template-areas: "brand status actions"; column-gap: 8px; }
.topbar .brand-lockup { height: 54px; }
.topbar .brand-lockup h1 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.topbar-status .live-status { display: none; }
.kpi-chips { gap: 4px; }
.kpi-chip { gap: 3px; padding: 3px 6px; font-size: var(--fs-sm); }
.topbar .toolbar { flex-wrap: nowrap; width: auto; }
.topbar .toolbar button { flex: none; }
.topbar .toolbar .primary { width: 36px; height: 36px; padding: 0; }
.toolbar-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.topbar .panel-tabs { position: fixed; right: 0; bottom: 0; left: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; margin: 0; padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); overflow: visible; border-top: 1px solid var(--line); background: rgba(21, 26, 33, .97); backdrop-filter: blur(10px); }
.topbar .panel-tabs button { display: flex; flex-direction: column; gap: 3px; min-height: 52px; padding: 6px 2px; border: 0; border-radius: var(--radius-md); font-size: var(--fs-xs); }
.topbar .panel-tabs button.active { background: var(--accent-soft); color: var(--text); }
.topbar .panel-tabs .nav-secondary { display: none; }
.topbar .panel-tabs .nav-more { display: flex; }
.topbar .panel-tabs.nav-more-open .nav-secondary { display: flex; }
.canvas-card, .demo-mode .canvas-card, .shell:has(.status-line) .canvas-card { height: calc(100dvh - var(--topbar-h) - 250px); min-height: 380px; }
.topology-drawer { position: fixed; top: auto; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); left: 0; z-index: 44; width: auto; max-height: 55dvh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: 0 -16px 48px rgba(0, 0, 0, .5); }
.unlock-popover { right: 12px; }
.status-line .text-button { margin-left: 0; }
}
/* ── Graph: node cards ────────────────────────────────────────────────
Name first, status as a coloured left edge plus icon and label, facts as
chips, a single root-cause marker. */
.react-flow__node.service-node { border-left-width: 4px !important; box-shadow: 0 8px 22px rgba(0, 0, 0, .3) !important; }
.react-flow__node.status-healthy { border-left-color: var(--ok) !important; }
.react-flow__node.status-degraded { border-left-color: var(--warn) !important; }
.react-flow__node.status-down { border-left-color: var(--bad) !important; }
.react-flow__node.status-recovering { border-left-color: var(--accent) !important; }
.react-flow__node.status-maintenance { border-left-color: var(--maint) !important; }
.react-flow__node.status-unknown, .react-flow__node.status-unmonitored { border-left-color: var(--unknown) !important; }
.react-flow__node.domain-node { border-style: solid !important; }
.react-flow__node.service-node:has(.root-cause-badge) { border-color: var(--warn-line) !important; box-shadow: 0 0 0 1px var(--warn-line), 0 10px 30px rgba(0, 0, 0, .35) !important; }
.service-node-body, .domain-node .service-node-body, .application-node .service-node-body, .component-node .service-node-body { display: grid; align-content: start; gap: 6px; box-sizing: border-box; width: 236px; min-width: 0; min-height: 128px; padding: 11px 13px 12px; background: none; }
.node-head { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--text-3); }
.node-kind-icon { flex: none; }
.node-head .node-kicker { overflow: hidden; color: var(--text-3); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0; text-overflow: ellipsis; text-transform: none; white-space: nowrap; }
.service-node-body .node-name { display: -webkit-box; overflow: hidden; color: var(--text); font-size: var(--fs-lg); font-weight: 700; line-height: 1.2; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.node-state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.service-node-body .node-status { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0; text-transform: none; }
.node-flag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border: 1px solid var(--warn-line); border-radius: var(--radius-pill); background: var(--warn-bg); color: var(--warn); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0; }
.node-flag.flap-badge { border-color: var(--line-strong); background: var(--surface-1); color: var(--text-2); }
.node-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.node-chip { padding: 1px 7px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface-1); color: var(--text-2); font-size: var(--fs-xs); line-height: 1.6; }
.node-chip.criticality-critical { border-color: var(--bad-line); color: var(--text); }
.node-chip-alert { border-color: var(--bad-line); background: var(--bad-bg); color: var(--bad); }
.service-node-body .node-note { display: -webkit-box; overflow: hidden; color: var(--text-3); font-size: var(--fs-xs); line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
/* ── Graph: edges ─────────────────────────────────────────────────────
Calm by default; colour only on the incident path, the selection and the
hovered node's relations. */
.living-edge-path { stroke: #4a5664; stroke-width: 1.6; }
.react-flow__edge.animated .living-edge-path { stroke-dasharray: none; animation: none; }
.react-flow__edge.edge-down .living-edge-path, .react-flow__edge.edge-degraded .living-edge-path { stroke: #4a5664; stroke-dasharray: none; }
.react-flow__edge.edge-down .living-edge-path.has-signal { stroke: var(--bad); stroke-width: 2.2; }
.react-flow__edge.edge-degraded .living-edge-path.has-signal { stroke: var(--warn); stroke-width: 2.2; }
.living-edge-path.has-signal { stroke: var(--accent); stroke-width: 2.2; }
.living-edge-path.is-dimmed { opacity: .18; }
.living-edge-signal { stroke-width: 2.4; }
.react-flow__edge .react-flow__edge-marker, .react-flow__edge.edge-down .react-flow__edge-marker, .react-flow__edge.edge-degraded .react-flow__edge-marker { fill: #4a5664; }
.react-flow__arrowhead polyline { stroke: #4a5664 !important; fill: #4a5664 !important; }
/* ── Panels: headings ──────────────────────────────────────────────── */
h2 { max-width: none; margin-bottom: 8px; font-size: var(--fs-xl); line-height: 1.25; letter-spacing: -.01em; }
h3 { font-size: var(--fs-lg); letter-spacing: -.01em; }
.overview-lead h2, .demo-mode .hero h2 { font-size: var(--fs-2xl); line-height: 1.15; }
.compact-hero h2 { font-size: var(--fs-xl); }
.settings-panel h2:not(:first-of-type) { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.locked-note { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.locked-note p { margin: 0; }
/* ── Services: one filter row and a compact table ──────────────────── */
.table-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.table-toolbar > label { flex: 0 1 150px; min-width: 120px; color: var(--text-3); font-size: var(--fs-sm); }
.table-toolbar > .search-field { flex: 1 1 240px; }
.table-toolbar > .checkbox-field { flex: none; min-width: 0; align-self: center; margin-top: 18px; white-space: nowrap; }
.table-toolbar > .checkbox-field input { width: 16px; height: 16px; margin: 0; }
.table-toolbar input, .table-toolbar select { margin-top: 4px; padding: 8px 10px; }
.table-toolbar .toolbar-end { margin-left: auto; padding: 9px 14px; }
.table-panel { min-height: 0; }
.service-table { gap: 0; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: clip; }
.service-table > .service-row-wrap { padding-left: 12px; border-bottom: 1px solid var(--line); }
.service-table > .service-row-wrap:last-of-type { border-bottom: 0; }
.service-table > .service-row-wrap:first-child { position: sticky; top: var(--topbar-h); z-index: 2; background: var(--surface-2); }
.service-table-head { padding: 9px 12px; }
.service-table-row { padding: 9px 12px; border: 0; border-radius: 0; background: transparent; }
.service-table-row:hover:not(:disabled) { border: 0; background: var(--surface-2); }
.service-row-wrap:has(.service-table-row[aria-pressed="true"]) { background: var(--accent-soft); box-shadow: inset 3px 0 var(--accent); }
.service-table-row[aria-pressed="true"] { border: 0; background: transparent; box-shadow: none; }
.service-table.no-metrics .service-table-head, .service-table.no-metrics .service-table-row { grid-template-columns: minmax(180px, 1.3fr) minmax(115px, .8fr) minmax(110px, .7fr) minmax(130px, .9fr) minmax(110px, .7fr); }
.service-table.no-metrics .service-table-head > :nth-child(n + 6), .service-table.no-metrics .service-table-row > :nth-child(n + 6) { display: none; }
.service-table-row .status-icon { margin-right: 4px; }
/* ── Activity: per day, readable rows ──────────────────────────────── */
.activity-days { display: grid; gap: 18px; margin-top: 8px; }
.activity-day h3 { position: sticky; top: var(--topbar-h); z-index: 1; margin: 0 0 6px; padding: 6px 0; background: var(--surface-1); color: var(--text-2); font-size: var(--fs-md); font-weight: 600; letter-spacing: 0; }
.activity-list { margin: 0; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.activity-list li.activity-row { grid-template-columns: 52px 24px minmax(0, 1fr) auto; gap: 10px; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.activity-list li.activity-row:last-child { border-bottom: 0; }
.activity-row time { color: var(--text-3); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.activity-icon { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--surface-3); color: var(--text-2); }
.tone-ok .activity-icon { background: var(--ok-bg); color: var(--ok); }
.tone-warn .activity-icon { background: var(--warn-bg); color: var(--warn); }
.tone-bad .activity-icon { background: var(--bad-bg); color: var(--bad); }
.tone-maint .activity-icon { background: var(--maint-bg); color: var(--maint); }
.tone-accent .activity-icon { background: var(--accent-soft); color: var(--accent); }
.activity-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; }
.activity-text strong { font-size: var(--fs-md); }
.activity-message { color: var(--text-3); font-size: var(--fs-sm); }
.activity-count { padding: 0 7px; border-radius: var(--radius-pill); background: var(--surface-3); color: var(--text-2); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.activity-services { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; max-width: 46%; }
.activity-more { align-self: center; color: var(--text-3); font-size: var(--fs-xs); }
.activity-services .compact-button { padding: 3px 8px; white-space: nowrap; }
.activity-list li.activity-row { align-items: center; }
@media (max-width: 760px) {
.activity-list li.activity-row { grid-template-columns: 44px 24px minmax(0, 1fr); }
.activity-services { grid-column: 3; justify-content: flex-start; max-width: none; }
}
/* ── Loading skeletons in the final layout ─────────────────────────── */
.graph-skeleton { display: grid; grid-template-columns: repeat(4, 200px); gap: 28px 64px; place-content: center; height: 100%; padding: 32px; }
.skeleton-card, .skeleton-row { display: block; border-radius: var(--radius-md); background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: servicemap-shimmer 1.4s ease-in-out infinite; }
.skeleton-card { height: 112px; border-left: 4px solid var(--line-strong); }
.skeleton-card:nth-child(2n) { transform: translateY(40px); }
.table-skeleton { display: grid; gap: 1px; }
.skeleton-row { height: 46px; border-radius: 0; }
@keyframes servicemap-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (max-width: 760px) { .graph-skeleton { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 16px; } }
/* Freshness next to the live status; amber once live updates stop. */
.freshness { color: var(--text-3); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; white-space: nowrap; }
.freshness.is-stale { color: var(--warn); }
@media (max-width: 760px) { .freshness { display: none; } }