/* The topology owns the first screen; summaries follow below the canvas. */
.topology-view .content{max-width:none;padding:20px 24px 0}
.topology-view .page-heading{margin-bottom:18px}
.topology-view .page-heading .eyebrow{display:none}
.topology-view .page-heading h1{font-size:26px;letter-spacing:-.7px}
.topology-view .page-heading p{margin-top:7px}
#page-topology>.graph-panel{display:flex;flex-direction:column;width:100%;height:max(440px,calc(100dvh - var(--graph-top,180px) - 20px));margin-bottom:24px}
#page-topology .graph-container{flex:1;min-height:0;background-color:#fafbf8;background-image:radial-gradient(#cbd6d2 .8px,transparent .8px);background-size:24px 24px}
#page-topology #network-graph{position:absolute;inset:0;display:block;width:100%;height:100%;min-height:0}
#page-topology .panel-heading{min-height:64px;flex:none}
#page-topology .graph-footnote{flex:none}
#topology-canvas,#topology-canvas *{-webkit-user-select:none;user-select:none}
#page-topology .bottom-grid{margin-bottom:22px}
#page-topology>.metrics-grid{margin-bottom:0}

/* Native dialog supplies the top layer, focus trap, backdrop and Escape key. */
html.drawer-open{overflow:hidden}
.node-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(440px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;padding:0;border:0;border-left:1px solid #dce5d7;border-radius:16px 0 0 16px;background:var(--paper);color:var(--ink);box-shadow:-16px 0 70px #17372f25;overflow:hidden;transform:translateX(100%);opacity:0;transition:transform .24s ease,opacity .24s ease,display .24s allow-discrete,overlay .24s allow-discrete}
.node-drawer[open]{display:flex;flex-direction:column;transform:translateX(0);opacity:1}
.node-drawer::backdrop{background:#17372f38;backdrop-filter:blur(2px);opacity:0;transition:opacity .24s ease,display .24s allow-discrete,overlay .24s allow-discrete}
.node-drawer[open]::backdrop{opacity:1}
.drawer-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px 28px 23px;border-bottom:1px solid var(--line);flex:none}
.drawer-heading .eyebrow{display:block;font-size:8px;letter-spacing:1.6px;margin-bottom:9px;color:var(--muted)}
.drawer-heading h2{font-size:22px;font-weight:550;letter-spacing:-.5px}
.drawer-heading .icon-button{align-self:flex-start;width:36px;height:36px;font-size:29px;line-height:1;background:#f2f5ef;color:#6c8069}
.node-drawer .inspector{display:flex;flex:1;overflow:auto;overscroll-behavior:contain;padding:28px;border:0;border-radius:0;box-shadow:none;min-height:0}
.node-drawer .inspector>.eyebrow{display:none}
.node-drawer .inspector-header{margin-bottom:24px;flex:none}
.node-drawer .inspector-header h2{font-size:25px}
.node-drawer .inspector-header small{font-size:11px}
.node-drawer .inspector-header .pill{font-size:9px;padding:6px 8px}
.node-drawer .node-avatar{width:48px;height:48px;font-size:14px}
.node-drawer .inspector-domain{font-size:12px;padding:14px;flex:none}
.node-drawer .detail-row{font-size:12px;padding:15px 0}
.node-drawer .detail-row dd.mono{font-size:11px}
.node-drawer .resource{margin-top:24px}
.node-drawer .resource-line{font-size:11px}
.node-drawer .inspector-note{font-size:12px;line-height:1.9;margin:25px 0}
.node-drawer .inspector>.button{font-size:12px;min-height:44px;margin-top:auto;flex:none}
.node-drawer .inspector>h2{font-size:25px;margin-bottom:16px}
.node-drawer .inspector>.muted{font-size:13px}
@starting-style{.node-drawer[open]{transform:translateX(100%);opacity:0}.node-drawer[open]::backdrop{opacity:0}}

@media(max-width:760px){
  .topology-view .content{padding:16px 12px 0}
  .topology-view .page-heading{display:flex;align-items:flex-start;gap:12px;margin-bottom:16px}
  .topology-view .page-heading h1{font-size:23px}
  .topology-view .page-heading p{font-size:10px;max-width:240px}
  .topology-view .page-heading>.button{margin:0;font-size:0;width:38px;height:38px;padding:10px;flex:none;gap:0}
  #page-topology>.graph-panel{height:max(400px,calc(100dvh - var(--graph-top,180px) - 14px));margin-bottom:18px}
  #page-topology .graph-panel>.panel-heading{display:flex;gap:8px;padding:12px;min-height:57px}
  #page-topology .segmented{margin:0}
  #page-topology .graph-caption{top:14px;left:14px}
  #page-topology .graph-caption p{max-width:140px;line-height:1.6}
  .node-drawer{width:min(440px,100vw);border-radius:0}
  .drawer-heading{padding:22px}
  .node-drawer .inspector{padding:24px 22px}
}
