:root{font-family:system-ui,sans-serif;color:#24303d;background:#f5f6f8;font-size:14px}*{box-sizing:border-box}body{margin:0}header{display:flex;align-items:center;justify-content:space-between;background:white;padding:24px 30px;border-bottom:1px solid #dbe0e6}h1{font-size:24px;margin:6px 0}small{letter-spacing:.12em;color:#526477}h2{font-size:18px;margin:0}#notice{padding:12px 30px;background:#fff4d9;color:#624d18}main{display:grid;grid-template-columns:250px 1fr;min-height:78vh}nav{padding:22px;border-right:1px solid #dbe0e6;background:white}input,select{padding:10px;width:100%;border:1px solid #bbc5d0;border-radius:4px;margin:10px 0}button{font:inherit;cursor:pointer;border:1px solid #ccd5df;background:white;color:inherit;border-radius:4px;padding:9px}button:focus-visible{outline:3px solid #4683ba}#systems{max-height:72vh;overflow:auto}#systems button{display:block;width:100%;text-align:left;border:0;margin:3px 0}#systems button.selected{background:#e5edf5;color:#174c7c}section{min-width:0;padding:24px}.heading{display:flex;justify-content:space-between;gap:15px;margin-bottom:18px;color:#536579}#map{background:white;border:1px solid #dbe0e6;border-radius:5px;overflow:auto;max-height:480px}svg{display:block;min-width:650px;width:100%}svg text{font:12px system-ui;fill:#263c52}.node rect{fill:#f8fafc;stroke:#aabccd}.node.center rect{fill:#e7f0f8;stroke:#457eac}.edge{stroke:#96a7b8;stroke-width:2;fill:none}.hit{stroke:transparent;stroke-width:18;cursor:pointer;fill:none}.node{cursor:pointer}.node:focus rect{stroke:#1966a0;stroke-width:3}#details{margin-top:20px;line-height:1.6}#details h3{font-size:19px;margin:0 0 8px}.status{display:inline-block;padding:3px 9px;background:#e8edf2;border-radius:3px}.low_activity,.high_activity{background:#fff0ce}.info{color:#566879}#chart{margin-top:15px;background:white;border:1px solid #dbe0e6;padding:12px}.trace{fill:none;stroke:#2373a9;stroke-width:2}.band{fill:#f8d597;opacity:.6}.chart-label{font-size:11px}footer{padding:16px 30px;color:#647386;border-top:1px solid #dbe0e6}@media(max-width:800px){main{grid-template-columns:180px 1fr}nav,section{padding:12px}header{padding:16px;gap:15px}#freshness{max-width:180px}}
.toolbar{display:flex;align-items:center;gap:14px;padding:14px 30px;border-bottom:1px solid #dbe0e6;background:white}.toolbar span{color:#637386}.overview main{grid-template-columns:1fr}.overview nav{display:none}.overview #map{max-height:none}.overview-edge{stroke:#99a8b8;stroke-width:1;opacity:.20;fill:none}.overview-edge.active{stroke:#286b9e;stroke-width:2.5;opacity:.85}.overview-node{cursor:pointer}.overview-node rect{fill:#fff;stroke:#b2c2d1}.overview-node:hover rect,.overview-node:focus rect{stroke:#286b9e;stroke-width:2;fill:#eef5fa}.overview-node text{font-size:13px}.overview-node .group-title{font-weight:650;font-size:15px}.component-buttons{display:flex;flex-wrap:wrap;gap:9px}.connection-list{display:flex;flex-direction:column;gap:6px;max-height:300px;overflow:auto}.connection-list button{text-align:left}body.overview section{padding:20px 30px}
.overview-node{transition:transform 420ms cubic-bezier(.2,.7,.2,1),opacity 350ms ease;transform-box:view-box}.overview-node.muted-service{opacity:.42}.overview-node.selected-service{opacity:1}.overview-node.selected-service rect{stroke:#286b9e;stroke-width:2;fill:#edf5fb}.overview-edge.muted-edge{opacity:.08}.group-health,.group-coverage{font-size:11px!important}.about{margin:12px 0;padding:12px 0;border-top:1px solid #dbe0e6;border-bottom:1px solid #dbe0e6}.about summary{cursor:pointer;font-weight:600}.about p{max-width:900px}.status.healthy,.status.available{background:#e2eee7;color:#2c6542}.status.down,.status.degraded{background:#ffe6df;color:#933b25}.status.stale,.status.unmonitored{background:#edf0f4;color:#5b6675}#component-map{margin-top:18px;overflow:auto}#component-map svg{background:white;border:1px solid #dbe0e6;border-radius:5px;min-width:800px}.flow-node rect{fill:#eef4f9;stroke:#99b1c5}.flow-node.external-component rect{fill:#fff;stroke-dasharray:5 3}.flow-node text{font-size:13px;font-weight:600}.flow-node .flow-health{font-size:11px;font-weight:400;fill:#627486}.flow-node,.flow-link{cursor:pointer}.flow-node:focus rect{stroke:#245da3;stroke-width:3}.flow-edge{stroke:#47799f;stroke-width:1.7;fill:none}.flow-link text{font-size:11px;paint-order:stroke;stroke:white;stroke-width:5px;stroke-linejoin:round;fill:#334e63}.flow-link:hover text{fill:#0753a6}#component-detail{margin-top:20px}@media(prefers-reduced-motion:reduce){.overview-node{transition:none}}
.overview-edge.selected-edge{opacity:.85;stroke:#47799f;stroke-width:2}.overview-edge.hidden-edge{display:none}.overview-node.muted-service:hover{opacity:.7}.overview #map svg{max-height:64vh}.flow-link:focus text{fill:#0753a6;text-decoration:underline}
.overview-connection{cursor:pointer}.overview-connection .overview-edge{opacity:.4;stroke-width:1.6}.overview-connection.selected-connection .overview-edge{opacity:.9;stroke-width:2}.overview-connection.hidden-connection{display:none}.overview-connection:hover .overview-edge,.overview-connection:focus .overview-edge{opacity:1;stroke:#1f5c88;stroke-width:2.5}.connection-hit{fill:none;stroke:transparent;stroke-width:12;pointer-events:stroke}.direction-legend{font-size:13px;color:#526477;max-width:950px}

.health-indicator circle{fill:#748294}.health-indicator[data-health="healthy"] circle,.health-indicator[data-health="available"] circle{fill:#23834d}.health-indicator[data-health="degraded"] circle{fill:#a96600}.health-indicator[data-health="down"] circle{fill:#bf3535}.health-indicator text{fill:white!important;font-size:10px!important;font-weight:750!important;pointer-events:none}.status.degraded{background:#fff0ce;color:#855500}.overview-node .group-health{font-size:10.5px!important}
.overview-connection:focus,.overview-node:focus,.flow-node:focus,.flow-link:focus{outline:none}

#map.connection-selected .overview-connection:not(.chosen-connection) .overview-edge{opacity:.12}
#map.connection-selected .chosen-connection .overview-edge{opacity:1;stroke:#17689c;stroke-width:3.5}
#map.connection-selected .overview-node.connection-endpoint{opacity:1}
#map.connection-selected .overview-node.connection-endpoint rect{stroke:#17689c;stroke-width:2.5;fill:#edf5fb}
#map.connection-selected .overview-node:not(.connection-endpoint){opacity:.3}

svg.service-icon{min-width:0;width:24px;height:24px;overflow:visible;fill:none;stroke:#426987;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.overview-node .service-title{font-size:13px;font-weight:650}.flow-node .service-title{font-size:11px;font-weight:600}
.overview #map svg.service-icon{max-height:none}
#component-map svg.service-icon{min-width:0;width:24px;height:24px;border:0;background:none}

.rehearsal{margin:16px 30px;padding:16px;border:2px solid #8392a4;border-radius:6px;background:white}.rehearsal.healthy{border-color:#23834d}.rehearsal.down{border-color:#bf3535;background:#fff3f1}.rehearsal p{margin:8px 0}.rehearsal small{letter-spacing:normal}

#notice:empty{display:none}
.connection-highlight{pointer-events:none}
.connection-highlight .overview-edge{opacity:1;stroke:#17689c;stroke-width:3.5}

.band.outside-band{fill:#d15d44;opacity:.8}
.availability-history{margin:20px 0;padding:16px;background:#fff;border:1px solid #dbe0e6;border-radius:5px}
.history-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.history-heading h4{font-size:15px;margin:0}
.history-heading label{display:flex;align-items:center;gap:8px;white-space:nowrap}
.history-heading select{width:auto;min-width:105px;margin:0;padding:5px}
.availability-history svg{margin-top:12px;min-width:0}
.history-track{fill:#fff;stroke:#c8d2dc}
.history-legend{display:flex;flex-wrap:wrap;gap:8px 16px;margin:8px 0;color:#526477;font-size:12px}
.history-legend span{display:inline-flex;align-items:center;gap:5px}
.history-legend i{display:inline-block;width:12px;height:12px;border:1px solid #c8d2dc}
.history-good{background:#23834d}.history-degraded{background:#a96600}.history-down{background:#bf3535}.history-unknown{background:#a8b1bc}.history-gap{background:#fff}
#chat-toggle{position:fixed;right:20px;bottom:20px;z-index:20;background:#245b83;color:white;border-color:#245b83;box-shadow:0 3px 12px #253b5050}
#chat-panel{position:fixed;right:20px;bottom:68px;width:min(420px,calc(100vw - 32px));height:min(610px,calc(100vh - 90px));z-index:21;background:white;border:1px solid #aabccd;border-radius:8px;box-shadow:0 8px 30px #24303d38;display:flex;flex-direction:column}
#chat-panel[hidden]{display:none}
.chat-header{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid #dbe0e6}
.chat-header strong{font-size:15px}.chat-header button{border:0;padding:4px 8px}
.chat-header #chat-close{font-size:22px;line-height:1}
.chat-scope{padding:10px 14px;margin:0;background:#eef5fa;color:#426078;font-size:12px;line-height:1.4}
#chat-messages{flex:1;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:10px}
.chat-message{max-width:90%;padding:9px 11px;margin:0;border-radius:10px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45}
.chat-message.assistant{align-self:flex-start;background:#eef2f6}
.chat-message.user{align-self:flex-end;background:#245b83;color:white}
#chat-form{display:grid;grid-template-columns:1fr auto;gap:7px;padding:12px;border-top:1px solid #dbe0e6}
#chat-form label{grid-column:1/-1;font-weight:600}
#chat-question{min-width:0;width:100%;resize:vertical;min-height:56px;padding:8px;font:inherit;border:1px solid #bbc5d0;border-radius:4px}
#chat-send{align-self:end;min-height:40px;background:#245b83;color:white}
#chat-send:disabled{opacity:.55;cursor:wait}
#tip{position:fixed;z-index:1000;max-width:340px;padding:8px 10px;background:#1f2d3b;color:#f2f5f8;border-radius:5px;font-size:12.5px;line-height:1.45;pointer-events:none;box-shadow:0 4px 14px rgba(0,0,0,.2)}#tip strong{display:block;margin-bottom:2px}#tip span{display:block;color:#d5dde6}
.lede{max-width:900px;margin:4px 0 10px}.more summary,.technical summary{cursor:pointer;font-weight:600;color:#335a7e}.more p{max-width:900px}
.hosts a{color:#1b5f93}.connections{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:4px 24px}.connections h4{margin:4px 0;font-size:13px;color:#536579}.connections ul{margin:0;padding-left:18px}
button.link{border:0;padding:0;background:none;color:#1b5f93;text-decoration:underline;font:inherit}
.status-row{margin:14px 0 4px}.deploy h4,.charts h4{font-size:15px;margin:16px 0 4px}.deploy p{margin:0}
.technical{margin:20px 0;padding:10px 0;border-top:1px solid #dbe0e6;font-size:13px;color:#445566}.technical p{margin:6px 0;overflow-wrap:anywhere}.technical code{font-size:11.5px}
.charts{margin:20px 0;padding:16px;background:#fff;border:1px solid #dbe0e6;border-radius:5px}.chart{margin:16px 0 8px}.chart svg{min-width:0}
.chart-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}.chart-head figcaption{font-weight:600}
.legend{display:flex;gap:6px;flex-wrap:wrap}.legend-item{display:inline-flex;align-items:center;gap:5px;padding:3px 8px;font-size:12px}.legend-item i{width:11px;height:11px;border-radius:2px;display:inline-block}.legend-item[aria-pressed=false]{opacity:.45;text-decoration:line-through}
.grid{stroke:#e3e8ee}.chart-hover{fill:transparent}.chart-hover:hover{fill:rgba(40,90,140,.08)}
.flow-link .hit{stroke:transparent;stroke-width:14;fill:none}.flow-link.cross .flow-edge{stroke-dasharray:6 4}.flow-link.lit .flow-edge{stroke:#0b5fa5;stroke-width:2.6}
.flow-label{cursor:pointer}.flow-label text{font-size:11px;paint-order:stroke;stroke:white;stroke-width:5px;stroke-linejoin:round;fill:#334e63}.flow-label.lit text{fill:#0753a6;font-weight:600}
.flow-category{font-size:10.5px!important;font-weight:500!important;fill:#6a7b8c!important}
.flow-item{cursor:pointer}.flow-item text{font-size:12px!important;font-weight:500!important}.flow-item .item-hit{fill:transparent;stroke:none!important}.flow-item:hover .item-hit,.flow-item:focus .item-hit{fill:#e7f0f8}.flow-item .health-indicator circle{r:5}.flow-item .health-indicator text{font-size:7px!important}.flow-item:hover text{fill:#0753a6}

/* Until the server accepts a sign-in, only the sign-in panel is shown. */
body.signed-out>:not(#signin){display:none!important}
body:not(.signed-out) #signin{display:none}
#signin{max-width:440px;margin:14vh auto 0;padding:36px 32px;background:white;border:1px solid #dbe0e6;border-radius:8px;text-align:center;line-height:1.5}
#signin h1{margin:8px 0 12px}#signin p{color:#526477;margin:0 0 22px}
#signin-button{display:flex;justify-content:center;min-height:44px}
#signin-message{margin:18px 0 0!important;color:#9c2f2f!important}#signin-message:empty{display:none}
.header-status{display:flex;align-items:center;gap:14px}
