:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none;color:#27334d;background:#f7f8fc;--ink:#24324e;--muted:#8590a5;--line:#e4e8f0;--blue:#456bd2;--purple:#8565bc;--amber:#ad8032;--radius:12px}
*{box-sizing:border-box}body{margin:0;display:flex;height:100dvh;min-height:540px;overflow:hidden}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid #a4bafb;outline-offset:3px}[hidden]{display:none!important}a{color:#4d6cc6;text-underline-offset:3px}svg{stroke-linecap:round;stroke-linejoin:round}button{touch-action:manipulation}

/* Workspace chrome */
.sidebar{width:220px;flex:0 0 220px;padding:26px 14px 18px;display:flex;flex-direction:column;background:#fbfcff;border-right:1px solid var(--line);z-index:4}.brand{display:flex;gap:11px;align-items:center;padding:0 8px 28px;color:#263653;text-decoration:none;font-size:25px;font-weight:650;letter-spacing:-.7px}.brand small{display:block;font-size:10px;font-weight:450;color:#919bb0;letter-spacing:.3px;margin-top:3px}.brand-mark{display:grid;place-items:center;width:35px;height:39px;border-radius:10px;background:#edf1fc;color:#5c75bd}.brand-mark svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.6}.search{display:flex;align-items:center;gap:8px;padding:10px 11px;margin-bottom:25px;border:1px solid #e2e7f0;border-radius:8px;background:#fff}.search svg{width:15px;height:15px;fill:none;stroke:#9aa5bb;stroke-width:1.6;flex-shrink:0}.search input{width:100%;min-width:0;border:0;background:transparent;font-size:11px;color:#42516d;outline:0}.search input::placeholder{color:#a0aabd}.tree-label{display:flex;justify-content:space-between;padding:0 9px 12px;font-size:9px;letter-spacing:1.25px;font-weight:650;color:#99a3b7}.tree-label span{letter-spacing:0;color:#73829f}#tree{overflow:auto;flex:1;min-height:0;scrollbar-width:thin;scrollbar-color:#d6deec transparent}.tree-row{display:flex;align-items:center;gap:7px;width:100%;min-height:31px;padding:8px 9px;background:transparent;border:0;border-radius:6px;text-align:left;color:#77849e;font-size:11px;line-height:1.35}.tree-row:hover{background:#f0f3fa;color:#4d628b}.tree-row.selected{background:#eaf0ff;color:#4668b9}.tree-row.root{font-size:12px;font-weight:650;color:#4f6081;margin-top:11px}.tree-row svg{width:14px;height:14px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.5}.row-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.tree-caret{width:9px;flex-shrink:0;color:#a3aec2;font-size:10px}.tree-badge{margin-left:auto;color:#9ca8bd;font-size:9px}.sidebar-bottom{padding:17px 8px 0;border-top:1px solid var(--line);margin-top:14px;font-size:10px;color:#72839e}.sidebar-bottom small{display:block;color:#a4adbf;font-size:9px;margin-top:6px}.local-dot{display:inline-block;width:6px;height:6px;background:#7c97cb;border-radius:50%;margin-right:6px}
main{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:23px 28px 17px;background:#fff}.eyebrow{font-size:9px;font-weight:600;letter-spacing:1.35px;color:#a0aabc;margin-bottom:8px}h1{font-size:25px;letter-spacing:-.65px;font-weight:620;color:#263653;margin:0}.top-actions{display:flex;gap:7px}.button{border:1px solid #dfe5ee;background:#fff;border-radius:7px;color:#748099;font-size:11px;font-weight:550;padding:9px 13px;white-space:nowrap}.button:hover{background:#f8faff;border-color:#aabce6;color:#506bb0}.button.primary{background:#4f70cd;border-color:#4f70cd;color:white}.button.primary:hover{background:#4162bf}.statusbar{display:flex;align-items:center;gap:23px;padding:0 28px 15px;background:#fff;color:#96a0b3;font-size:10px;border-bottom:1px solid var(--line)}.statusbar b{font-weight:450;color:#72819a;margin-left:4px}.status-dot{display:inline-block;width:5px;height:5px;background:#7892cb;border-radius:50%;margin-right:6px}.status-dot.gray{background:#b9c1d0}.save-status{margin-left:auto;font-size:9px;color:#8c9bb2}.save-status.error{color:#b27955}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 24px;background:#fff;border-bottom:1px solid var(--line);z-index:3}.view-tabs{display:flex;gap:3px;padding:3px;background:#f3f5f9;border-radius:8px}.view-tabs button{padding:8px 15px;border:0;background:transparent;color:#8b96ab;border-radius:5px;font-size:11px;font-weight:550}.view-tabs button[aria-selected=true]{color:#4b68b0;background:#fff;box-shadow:0 1px 4px #263e6514}.filters{display:flex;gap:7px}.filters select{font-size:10px;color:#8996ad;padding:7px 9px;border:1px solid #e3e8f1;border-radius:6px;background:white;max-width:180px}.scopebar{display:flex;justify-content:space-between;align-items:center;gap:14px;min-height:43px;padding:8px 24px;background:#fbfcfe;border-bottom:1px solid var(--line);color:#8d9ab1;font-size:10px}.scope-navigation{display:flex;align-items:center;gap:9px;min-width:0}.back-button{background:white;border:1px solid #e0e6f0;border-radius:6px;padding:4px 8px;color:#7589b4;font-size:15px;line-height:1.1}.back-button:hover{background:#edf2ff}.back-button:disabled{opacity:.35}#breadcrumbs{display:flex;align-items:center;gap:7px;min-width:0;flex-wrap:wrap;font-size:11px}#breadcrumbs a,#breadcrumbs button{border:0;background:none;color:#6682bd;padding:0;text-decoration:none;font-size:inherit}#breadcrumbs span{color:#99a5bb}#breadcrumbs button:hover{text-decoration:underline}#scope-description{color:#97a3b8;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.toggle-label{display:flex;align-items:center;gap:6px;font-size:10px;white-space:nowrap;cursor:pointer}.toggle-label input{width:12px;height:12px;accent-color:#657fd0;margin:0}

/* Canvas and scene cards */
.map-area{display:flex;flex:1;min-height:0;position:relative}.viewport{position:relative;flex:1;min-width:0;overflow:hidden;background:#f5f7fc;background-image:radial-gradient(#dbe1ed .8px,transparent .8px);background-size:24px 24px;touch-action:none;cursor:grab}.viewport.panning{cursor:grabbing}.map-stage{position:absolute;left:0;top:0;transform-origin:0 0;will-change:transform;min-width:1px;min-height:1px}#map-nodes{position:relative}#edge-layer{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:0}.edge-path{fill:none;stroke:#b3bfd6;stroke-width:1.5;opacity:.7}.edge-path.unconfirmed{stroke:#b7b6c8;stroke-dasharray:5 5;opacity:.55}.edge-path.highlighted{stroke:#748aca;stroke-width:2.1;opacity:1}.edge-path.impact-edge{stroke:#be9653;stroke-width:2;opacity:.9}.lane-heading{position:absolute;color:#95a2b9;font-size:10px;font-weight:650;letter-spacing:1.25px;text-transform:uppercase;white-space:nowrap;pointer-events:none}.lane-heading small{font-weight:400;letter-spacing:0;margin-left:8px}.scene-summary{position:absolute;left:24px;top:18px;z-index:2;display:flex;align-items:center;gap:14px;flex-wrap:wrap;max-width:calc(100% - 270px);color:#8797b2;font-size:10px;pointer-events:none}.scene-summary:empty{display:none}.scene-summary b,.scene-summary strong{font-weight:650;color:#607494}.scene-summary>span{display:inline-flex;gap:5px;align-items:center}.canvas-note{position:absolute;left:24px;top:44px;z-index:2;color:#a0abc0;font-size:10px;pointer-events:none;max-width:calc(100% - 50px);line-height:1.5}.scene-summary:empty+.canvas-note{top:21px}.scene-card{--type:#6b86c8;--type-bg:#edf2ff;position:absolute;display:block;padding:17px 18px;text-align:left;background:#fff;border:1px solid #dce3f0;border-radius:12px;box-shadow:0 3px 9px #30477507;color:#354563;cursor:pointer;z-index:1;transition:box-shadow .15s,border-color .15s,opacity .15s;user-select:none;overflow:visible;min-width:0;font-family:inherit}.scene-card:hover{border-color:#adbddd;box-shadow:0 6px 20px #3f528213;z-index:2}.scene-card.group-card{width:300px;height:180px;border-radius:16px;padding:18px 20px;border-color:#dce3f0}.scene-card.resource-card{width:250px;height:146px}.scene-card.selected{border:2px solid #6f8ade;padding:16px 17px;box-shadow:0 0 0 4px #839ded19,0 6px 18px #465d7c0c;z-index:3}.scene-card.group-card.selected{padding:17px 19px}.scene-card.dimmed,.scene-card.dim{opacity:.28}.scene-card.context{background:#fafbfe;border-style:dashed;opacity:.76}.scene-card.context.selected{opacity:1}.scene-card.shared{box-shadow:0 3px 9px #30477507,3px 3px 0 -1px #e9e7f6,4px 4px 0 0 #d8d5e9}.scene-card.dragging{cursor:grabbing;box-shadow:0 12px 28px #3d548526;z-index:5;transition:none}.scene-card.affected{border-color:#cba55f;box-shadow:0 0 0 3px #d9b1681f}.scene-card.impact-origin{border-color:#b88055;box-shadow:0 0 0 4px #c28c5821}.card-top{display:flex;align-items:center;gap:9px;height:28px;min-width:0;margin-bottom:11px}.type-icon{display:grid;place-items:center;width:29px;height:29px;flex:0 0 29px;border-radius:7px;background:var(--type-bg);color:var(--type)}.type-icon svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.55}.type-label{font-size:9px;text-transform:uppercase;letter-spacing:.7px;font-weight:550;color:var(--type);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.evidence-dot{display:inline-block;width:5px;height:5px;border-radius:50%;flex:0 0 5px;background:#79a1b2;margin-left:auto}.evidence-dot.verified{background:#7197b6}.evidence-dot.archive{background:#c4a76d}.evidence-dot.inferred{background:#b0a5c2}.evidence-dot.manual{background:#96a4c9}.drag-handle{color:#bbc5d7;border:0;background:transparent;padding:2px 4px;line-height:1;font-size:16px;cursor:grab;flex-shrink:0;border-radius:4px;touch-action:none}.drag-handle:hover{background:#f0f3fa;color:#879fc8}.drag-handle:active{cursor:grabbing}.drag-handle svg{height:14px;width:14px;fill:none;stroke:currentColor;stroke-width:1.5}.card-title{font-size:15px;font-weight:620;color:#344664;letter-spacing:-.2px;line-height:1.4;max-height:42px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;margin:0}.group-card .card-title{font-size:18px;line-height:1.35;max-height:49px;color:#344663}.card-subtitle{font-size:10px;line-height:1.5;color:#95a0b5;margin:5px 0 0;max-height:30px;overflow:hidden;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.resource-card .card-subtitle{max-height:15px;-webkit-line-clamp:1}.card-meta{position:absolute;bottom:13px;left:18px;right:18px;display:flex;align-items:center;gap:6px;min-height:16px;min-width:0;font-size:9px;color:#a0abc0;line-height:1.4}.group-card .card-meta{bottom:16px;left:20px;right:20px}.card-meta>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-meta b{font-weight:600;color:#7d8ea8}.card-open{margin-left:auto;display:inline-flex;align-items:center;gap:5px;border:0;border-radius:5px;background:#f1f4fb;padding:4px 7px;color:#8395bc;font-size:9px;line-height:1;white-space:nowrap;text-decoration:none}.card-open:hover{background:#e9efff;color:#5678c3}.group-count,.card-count{font-size:11px;color:#8696b2}.group-footer,.card-footer{position:absolute;bottom:15px;left:20px;right:20px;display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:10px;color:#99a5b9}.shared-badge,.context-badge,.card-badge{display:inline-flex;align-items:center;padding:3px 5px;border-radius:4px;font-size:8px;line-height:1.15;white-space:nowrap;background:#f0edf9;color:#9c89b5}.context-badge{background:#eef1f7;color:#9ca7bb}.access-mini{display:inline-flex;align-items:center;gap:5px;flex-wrap:nowrap;font-size:8px;white-space:nowrap;color:#9ba6ba}.access-mini>span{padding:2px 4px;border:1px solid #e4e8f1;border-radius:4px;line-height:1.3}.access-mini .admin{color:#667eaa;background:#edf2fb;border-color:#dce5f6}.access-mini .read{color:#8a7da4;background:#f2eef9;border-color:#e8e1f1}.access-mini .limited{color:#a58e5f;background:#faf5e9;border-color:#eee5cd}.access-mini .none,.access-mini .unavailable{color:#b18d88;background:#fbf1ef;border-color:#efdfdc}.access-mini .documented{border-style:dashed}
.scene-card.kind-server{--type:#6c87bd;--type-bg:#edf2fb;border-radius:10px;border-left:4px solid #a0b3d5;padding-left:15px}.scene-card.kind-server.selected{padding-left:15px}.scene-card.kind-server .type-icon{border:1px solid #dce5f2;border-radius:5px;background:#f3f6fc}.scene-card.kind-database{--type:#9b7fba;--type-bg:#f3edf9;border-color:#ded4eb;border-radius:23px 23px 12px 12px;border-top:3px solid #bda7d2;padding-top:15px}.scene-card.kind-database.selected{padding-top:16px;border-color:#8f87ce}.scene-card.kind-domain,.scene-card.kind-dns{--type:#739cac;--type-bg:#edf5f8;border-radius:24px;border-color:#d7e7ed}.scene-card.kind-dns .type-icon{border-radius:9px 3px 9px 3px}.scene-card.kind-service{--type:#8795ca;--type-bg:#f0f2fc;border-color:#dfe4f4;border-radius:12px 12px 8px 8px}.scene-card.kind-service .type-icon{border:1px solid #e0e5f7;border-radius:5px}.scene-card.kind-storage,.scene-card.kind-bucket,.scene-card.kind-volume{--type:#b39a65;--type-bg:#fbf6e9;border-color:#e9e0c9}.scene-card.kind-storage{border-radius:12px 12px 22px 22px}.scene-card.kind-bucket{border-radius:9px 9px 20px 20px}.scene-card.kind-volume{border-radius:9px}.scene-card.kind-monitoring{--type:#89a29d;--type-bg:#eff5f3;border-color:#dfe9e5}.scene-card.kind-registry{--type:#a58dac;--type-bg:#f6eff7;border-color:#e7ddec}.scene-card.kind-account{--type:#929cb6;--type-bg:#f0f2f8}.scene-card.kind-provider{--type:#8199ba;--type-bg:#eff3fa}.scene-card.kind-project{--type:#8385b7;--type-bg:#f0eff9}

/* Viewport tools */
.canvas-options{position:absolute;right:20px;top:16px;display:flex;align-items:center;gap:9px;border:1px solid #e1e7f1;background:#ffffffeb;padding:8px 10px;border-radius:8px;box-shadow:0 2px 5px #35457204;z-index:3;color:#99a5bb;font-size:10px}.canvas-options .toggle-label{font-size:10px}.detail-control{font-size:9px;color:#9eabc1}.canvas-options select{max-width:105px;background:transparent;border:0;font-size:10px;color:#8a9bbb;padding:0;outline:0}.control-divider{display:block;height:15px;border-left:1px solid #e4e9f2;margin:0 2px}.map-controls{position:absolute;bottom:19px;left:20px;display:flex;align-items:center;gap:4px;padding:5px;border:1px solid #dfe6f1;border-radius:8px;background:#fff;box-shadow:0 3px 9px #334f7310;z-index:3}.map-controls button{border:0;background:none;border-radius:4px;color:#8799bb;padding:6px 9px;font-size:10px;min-width:27px}.map-controls button:hover{background:#f0f4fd;color:#587ccc}.map-controls output{width:39px;text-align:center;color:#8e9ebb;font-size:10px}#zoom-in,#zoom-out,#fit{font-size:17px;padding:1px 8px}.map-legend{position:absolute;right:20px;bottom:20px;border:1px solid #e1e7f1;background:#ffffffeb;z-index:3;border-radius:8px;color:#96a5bf;box-shadow:0 3px 9px #334f7307;font-size:10px}.map-legend summary{list-style:none;cursor:pointer;padding:10px 12px;display:flex;align-items:center;gap:11px}.map-legend summary::-webkit-details-marker{display:none}.map-legend summary>span{display:grid;place-items:center;border:1px solid #d6deec;border-radius:50%;width:14px;height:14px;font-size:9px}.legend-content{display:grid;grid-template-columns:1fr 1fr;gap:12px 17px;padding:2px 15px 15px;font-size:9px;max-width:350px}.legend-content>span{display:flex;align-items:center;gap:6px;white-space:nowrap}.legend-type{display:block;width:10px;height:10px;border:1px solid #a6b8db;background:#ecf2fc;border-radius:2px}.legend-type.database{background:#f0e9f7;border-color:#c0a9d2;border-radius:50%/30%}.legend-type.service{background:#edf0fa;border-color:#b2bde4}.legend-type.domain{background:#edf5f8;border-color:#accbd8;border-radius:50%}.legend-type.storage{background:#f8f2e6;border-color:#cfba8a;border-radius:2px 2px 4px 4px}.legend-dot{width:5px;height:5px;border-radius:50%;background:#88a4ba;display:block}.legend-dot.archive{background:#c2aa78}.legend-dot.inferred{background:#b0a5bd}.legend-line{display:block;width:17px;border-top:1px dashed #b2bdd3}.empty-state{position:absolute;top:45%;left:50%;transform:translateX(-50%);font-size:13px;line-height:1.7;color:#9aa9bf;text-align:center;max-width:320px}.footer{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:11px 24px;border-top:1px solid var(--line);background:white;font-size:9px;color:#a0acc0;min-height:34px}

/* Object inspector and retained edit forms */
.inspector{width:330px;flex:0 0 330px;border-left:1px solid var(--line);background:#fff;overflow:auto;padding:22px;scrollbar-width:thin;z-index:4}.inspector-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.inspector .eyebrow{font-size:9px;line-height:1.65;letter-spacing:.8px}.icon-button{border:0;background:#f2f5fa;color:#95a2bb;border-radius:5px;width:27px;height:27px;flex-shrink:0;font-size:19px}.icon-button:hover{background:#eaf0fd;color:#6e89c2}.inspector h2{font-size:20px;line-height:1.4;font-weight:620;letter-spacing:-.35px;margin:8px 0 12px;overflow-wrap:anywhere;color:#3b4f74}.badge,.evidence-tag{display:inline-flex;align-items:center;gap:4px;border-radius:4px;padding:4px 6px;font-size:9px;background:#eff3f9;color:#90a1b9}.badge.archive,.evidence-tag.archive{background:#f9f4e9;color:#b5a074}.badge.inferred,.evidence-tag.inferred{background:#f3eff8;color:#a897bb}.badge.manual,.evidence-tag.manual{background:#f0f3fb;color:#99a6c6}.inspector-description{font-size:11px;color:#8f9db5;line-height:1.8;margin:14px 0}.source-link{display:block;font-size:10px;line-height:1.7;margin:9px 0 14px;overflow-wrap:anywhere;color:#8c9ec1}.detail-list{display:block;margin:0;padding-top:7px;border-top:1px solid #edf0f6}.detail-item{display:grid;grid-template-columns:92px 1fr;gap:11px;font-size:10px;line-height:1.75;padding:7px 0}.detail-item dt{color:#a2aec2}.detail-item dd{margin:0;color:#7c8fad;overflow-wrap:anywhere}.inspector-section{padding-top:17px;margin-top:18px;border-top:1px solid #eaf0f6}.inspector-section h3{font-size:9px;letter-spacing:.9px;color:#8599b9;font-weight:600;margin:0 0 13px}.connection{display:flex;align-items:center;gap:8px;width:100%;text-align:left;background:#f8fafe;border:1px solid #e8edf6;border-radius:6px;padding:9px;margin-bottom:6px;color:#8194b5;font-size:10px}.connection:hover{border-color:#b5c7e9;background:#f4f7ff}.connection-label{flex:1;min-width:0;overflow-wrap:anywhere}.connection strong{font-weight:550}.connection small{font-size:8px;color:#a8b4c9;line-height:1.5}.connection>span:first-child{color:#a8badd}.connection-heading{font-size:9px;color:#a7b4c8;margin:12px 0 7px}.inspector-empty{font-size:10px;line-height:1.7;color:#a8b4c7}.inspector-buttons{display:flex;flex-wrap:wrap;gap:6px}.inspector .button{font-size:10px;padding:8px 10px}.impact-box{background:#fcf8ee;color:#b29b70;padding:11px;font-size:10px;line-height:1.8;border-radius:6px;margin-top:12px}.impact-box button{border:0;background:none;padding:0;color:#a78f5d;text-decoration:underline;font-size:10px}.project-tags{display:flex;flex-wrap:wrap;gap:5px;margin:9px 0}.project-tag{font-size:9px;color:#95a0c5;background:#f0f1fa;border:1px solid #e5e7f4;border-radius:4px;padding:3px 6px}.project-tag.unknown{background:#f5f6f8;border-color:#e8ebf0;color:#a3acbd}.geography-detail{color:#91a0b9;font-size:11px;line-height:1.7;margin:8px 0}.dimension-section small{display:block;color:#a7b3c6;font-size:9px;line-height:1.65;margin:4px 0}.access-detail>div{border:1px solid #e7edf5;border-radius:7px;padding:11px;margin-bottom:10px}.access-detail h4{color:#8498b9;font-size:11px;font-weight:550;margin:0 0 9px}.access-summary{display:flex;align-items:flex-start;flex-direction:column;gap:6px}.access-level{padding:4px 7px;border-radius:4px;font-size:10px;font-weight:500;background:#f2f4f8;color:#a5afc0;line-height:1.5}.access-level.admin{background:#edf2fb;color:#8098c0}.access-level.read{background:#f2eff9;color:#a08db7}.access-level.limited{background:#fbf5e8;color:#b8a274}.access-level.none,.access-level.unavailable{background:#faf1ed;color:#bc9990}.access-level.documented{border:1px dashed #c7c8d4;padding:3px 6px}.access-status{color:#a6b2c7;font-size:9px;line-height:1.65;overflow-wrap:anywhere}.access-route{font:9px/1.7 ui-monospace,SFMono-Regular,Menlo,monospace;color:#9daecc;overflow-wrap:anywhere;max-width:100%}.access-source{font-size:10px;line-height:1.7;color:#a4b0c8;overflow-wrap:anywhere}.access-scope{font-size:11px;line-height:1.7;color:#93a3bd;margin:2px 0;overflow-wrap:anywhere}.access-scope.compact{font-size:9px}.evidence-detail p{font-size:11px;color:#92a3bf;line-height:1.7;margin:0 0 7px;overflow-wrap:anywhere}.evidence-detail small{font-size:10px;color:#acb6ca;line-height:1.6}.monitor-placeholder{border:1px dashed #dfe7f2;border-radius:6px;padding:11px;font-size:9px;color:#a3b2cc;line-height:1.7;margin-bottom:13px}.monitor-placeholder b{color:#8ea3c4;font-weight:550}.inspector label,.dialog-field{display:block;font-size:10px;color:#91a1bb;margin-bottom:13px}.inspector input,.inspector textarea,.dialog-field input,.dialog-field select,.dialog-field textarea{display:block;width:100%;padding:9px 10px;margin-top:6px;border:1px solid #e1e8f3;border-radius:6px;background:#fcfdff;color:#7e93b5;font-size:11px;outline:0}.inspector textarea,.dialog-field textarea{resize:vertical;min-height:72px;line-height:1.6}.annotation-hint{font-size:9px;line-height:1.7;color:#aab6cb;margin:9px 0}
dialog{width:445px;max-height:90dvh;border:1px solid #dfe6f1;border-radius:13px;padding:25px;box-shadow:0 24px 80px #25375d30;color:#4d638a}dialog::backdrop{background:#273c604d;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;gap:15px;margin-bottom:23px}.dialog-heading h2{font-size:21px;letter-spacing:-.35px;font-weight:600;margin:0;color:#597199}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:21px}.form-error{font-size:11px;line-height:1.6;color:#bd9785}.dialog-hint{font-size:10px;line-height:1.8;color:#a2b0c8}.dialog-field.inline{display:flex;align-items:center;gap:8px}.dialog-field.inline input{margin:0;width:auto}.import-summary{padding:13px;border:1px solid #e1e8f4;border-radius:7px;background:#f6f9fe;font-size:12px;line-height:1.9;color:#91a5c3}#toast{position:fixed;bottom:65px;left:50%;transform:translateX(-50%);background:#445f91;color:white;padding:12px 17px;font-size:11px;line-height:1.6;border-radius:8px;box-shadow:0 4px 18px #38537c20;max-width:min(600px,90vw);z-index:20}#toast.error{background:#a38371}

@media(min-width:1650px){.topbar{padding-top:27px;padding-bottom:20px}.inspector{width:360px;flex-basis:360px}.scene-summary{left:28px}}
@media(max-width:1150px){.sidebar{width:195px;flex-basis:195px;padding-left:11px;padding-right:11px}.topbar{padding-left:22px;padding-right:22px}h1{font-size:23px}.toolbar{padding:12px 18px;flex-wrap:wrap;gap:10px}.view-tabs button{padding:8px 12px}.scopebar{padding-left:18px;padding-right:18px}.scopebar>.toggle-label{font-size:9px}.inspector{width:300px;flex-basis:300px;padding:19px}.footer #view-help{display:none}.scene-summary{max-width:calc(100% - 260px);font-size:9px}.canvas-note{font-size:9px}.top-actions .button{padding:8px 10px}}
@media(max-width:850px){.sidebar{width:170px;flex-basis:170px}.brand{font-size:22px;gap:9px;padding-left:3px}.brand-mark{width:30px;height:34px}.search{padding:9px 8px;gap:5px}.search input{font-size:10px}.topbar{padding:19px 17px;gap:12px;align-items:flex-start}h1{font-size:21px;line-height:1.3}.top-actions{gap:5px;flex-wrap:wrap;justify-content:flex-end}.top-actions .button{font-size:10px;padding:7px 9px}.statusbar{padding-left:18px;padding-right:18px;gap:13px;font-size:9px}.statusbar .save-status{font-size:8px}.scopebar{align-items:flex-start;flex-wrap:wrap;gap:7px}.scopebar>.toggle-label{margin-left:36px}.scope-navigation{flex-wrap:wrap}.inspector{position:absolute;right:0;top:0;bottom:0;width:320px;box-shadow:-8px 0 30px #253d6812}.scene-summary{max-width:calc(100% - 40px);top:16px;left:18px}.canvas-options{top:auto;bottom:62px;right:16px;padding:7px 9px}.canvas-note{top:40px;left:18px}.map-controls{left:16px;bottom:17px}.map-legend{right:16px;bottom:17px}.map-legend summary{font-size:9px;padding:10px}.legend-content{max-width:285px;gap:10px 13px;font-size:8px}.footer{padding:10px 18px}}
@media(max-width:600px){.sidebar{width:52px;flex-basis:52px;padding:17px 8px}.brand{padding:0}.brand-mark{width:34px;height:36px}.brand>span:last-child,.sidebar .search,.tree-label,#tree,.sidebar-bottom{display:none}.topbar{padding:17px 13px 12px;gap:8px}h1{font-size:19px;max-width:165px}.eyebrow{font-size:7px;letter-spacing:.8px}.top-actions .button{font-size:9px;padding:7px}.statusbar{padding:0 13px 12px;flex-wrap:wrap;gap:7px;font-size:8px}.save-status{width:100%;margin-left:0}.toolbar{padding:10px 11px;gap:9px}.view-tabs{width:100%;justify-content:space-between}.view-tabs button{padding:7px 9px;font-size:10px}.filters{gap:6px}.filters select{font-size:9px;padding:6px 7px;max-width:155px}.scopebar{padding:8px 12px;font-size:9px}.scopebar .toggle-label{font-size:8px}.scope-navigation{gap:7px}#breadcrumbs{font-size:10px}#scope-description{font-size:9px}.scene-summary{font-size:9px;left:14px;gap:9px;top:13px}.canvas-note{font-size:8px;left:14px;top:38px;max-width:calc(100% - 28px)}.canvas-options{right:12px;bottom:59px;padding:7px 8px;gap:7px}.canvas-options .toggle-label,.canvas-options select{font-size:9px}.detail-control{font-size:8px}.map-controls{left:12px;bottom:14px;gap:0}.map-controls button{padding:5px 6px;font-size:9px}.map-controls output{width:34px;font-size:9px}#zoom-in,#zoom-out,#fit{font-size:16px;padding:1px 6px}.map-legend{right:12px;bottom:14px}.map-legend summary{font-size:8px;padding:10px 8px;gap:5px}.map-legend summary>span{width:12px;height:12px;font-size:8px}.legend-content{position:absolute;right:-1px;bottom:36px;width:250px;background:white;border:1px solid #e1e7f1;border-radius:7px;padding:12px;box-shadow:0 4px 14px #253d6812}.footer{padding:10px 12px;font-size:8px}.inspector{width:min(320px,100%)}dialog{max-width:90vw;padding:20px}}
/* Keep descriptions readable while type colors stay quiet. */
.resource-card .card-top{margin-bottom:8px}.resource-card .card-title{font-size:14px;line-height:1.4;max-height:40px}.resource-card .card-subtitle{margin-top:4px}.card-subtitle{color:#7f8da5}.card-meta{color:#8b98af}.type-label{font-weight:600}.inspector-description,.geography-detail,.access-scope{color:#6f809b}.detail-item dd{color:#687e9e}.detail-item dt,.connection small,.connection-heading{color:#8b9ab0}.connection{color:#6d83a5}.inspector-section h3,.access-detail h4{color:#6b83a5}.source-link,.evidence-detail p{color:#7f93b3}.access-level.admin{color:#5878a7}.access-level.read{color:#89719f}.access-level.limited{color:#9d8148}.access-level.none,.access-level.unavailable{color:#a27c73}.access-status,.access-route,.access-source,.annotation-hint{color:#8e9db6}.inspector label,.dialog-field{color:#798fab}.inspector input,.inspector textarea,.dialog-field input,.dialog-field select,.dialog-field textarea{color:#617a9f}.dialog-heading h2{color:#3d557e}.dialog-hint{color:#8b9db8}
.scene-card.selected{border-color:#6f8ade;box-shadow:0 0 0 4px #839ded19,0 6px 18px #465d7c0c}.scene-card.shared.selected{box-shadow:0 0 0 4px #839ded19,4px 4px 0 1px #e7e4f5}.scene-card.dragging{box-shadow:0 12px 28px #3d548526}
/* Scene renderer contract: summary above the canvas, buttons inside cards. */
#scene-summary{position:relative;left:auto;top:auto;max-width:none;min-height:67px;padding:13px 25px;display:flex;justify-content:space-between;align-items:center;gap:18px;pointer-events:auto;border-bottom:1px solid #e8edf5;background:#fbfcff;z-index:2;flex-wrap:nowrap}#scene-summary:empty{display:none}#scene-summary h2{font-size:17px;font-weight:600;line-height:1.35;letter-spacing:-.25px;color:#536889;margin:0 0 4px}#scene-summary p{font-size:10px;line-height:1.55;margin:0;color:#91a0b7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:70vw}#scene-summary>div:first-child{min-width:0}.scene-stats{display:flex;align-items:center;gap:9px;flex-shrink:0}.scene-stats b{font-size:23px;font-weight:550;color:#7085a9;letter-spacing:-.6px}.scene-stats span{font-size:9px;color:#a0adc3;max-width:155px;line-height:1.6}.canvas-note{top:20px}.canvas-note button{pointer-events:auto;background:white;border:1px solid #dee7f4;border-radius:5px;padding:5px 8px;font-size:10px;color:#7892bc;cursor:pointer}.card-title{border:0;background:transparent;padding:0;width:100%;text-align:left;font-family:inherit}.group-card .card-top{margin-bottom:8px}.group-card .card-title{font-size:17px;line-height:1.3;max-height:45px}.group-card .card-subtitle{font-size:10px;line-height:1.3;max-height:26px;margin-top:5px;-webkit-line-clamp:2}.group-card>.card-meta{bottom:15px;right:117px;display:flex;flex-direction:column;align-items:flex-start;gap:2px;font-size:9px}.group-card>.card-open{position:absolute;right:18px;bottom:17px;height:24px;padding:6px 8px}.group-details{position:absolute;right:48px;top:21px;background:none;border:0;padding:2px;color:#a6b5ce;font-size:14px;border-radius:4px}.group-details:hover{color:#688bbf;background:#eef3fe}.card-top>.drag-handle{margin-left:auto}.card-top>.evidence-dot+.drag-handle{margin-left:1px}.placement-label{display:block;max-width:100%;font-size:9px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-open.compact{padding:4px 5px;flex-shrink:0;margin-left:auto;min-width:23px;justify-content:center}.access-mini{display:inline-flex;gap:3px;padding:2px 4px;border:1px solid #e2e8f2;border-radius:4px;font-size:8px;line-height:1.3}.access-mini>b{font-size:8px;font-weight:650;color:inherit}.access-mini.admin{color:#6d83a9;background:#f0f4fc}.access-mini.read{color:#9283aa;background:#f5f1fa}.access-mini.limited{color:#a9915d;background:#fcf7e9}.access-mini.unavailable,.access-mini.none{color:#b49991;background:#faf3ef}.access-mini.documented{border-style:dashed}.lane-heading b{display:block;font-size:10px;line-height:1.4}.lane-heading span{display:block;max-width:280px;overflow:hidden;text-overflow:ellipsis;font-size:9px;line-height:1.5;text-transform:none;letter-spacing:0;color:#a8b5ca;margin-top:4px;font-weight:400}.nav-caption{font-size:9px;letter-spacing:1px;color:#a1aec3;padding:5px 8px 12px}.tree-row.child{padding-left:22px;font-size:10px}.model-help{font-size:10px;color:#9aabc4;border-top:1px solid #e6ecf5;margin:24px 8px 0;padding-top:13px}.model-help summary{cursor:pointer;color:#8b9dbc;font-size:10px;line-height:1.5}.model-help p{font-size:10px;line-height:1.75;margin:11px 0;color:#a3b1c8}.system-membership{display:flex;align-items:center;gap:7px;margin-bottom:7px;border:1px solid #e2e9f5;border-radius:6px;background:#f7faff;padding:6px}.system-membership button{border:0;background:none;font-size:10px;line-height:1.5;color:#7b92b6;text-align:left;padding:3px}.system-membership button:first-child{flex:1;min-width:0;overflow-wrap:anywhere}.system-membership button:last-child:not(:first-child){font-size:15px;color:#abb9d0;flex-shrink:0}.system-membership button:hover{color:#597dbb}#membership-target{display:block;width:100%;border:1px solid #dfe7f3;border-radius:6px;background:#fcfdff;color:#7c92b5;padding:8px;margin-top:7px;font-size:10px}.map-legend{display:flex;align-items:center;gap:12px;padding:10px 12px;max-width:calc(100% - 320px);font-size:9px;line-height:1.5}.map-legend>span{display:flex;align-items:center;gap:6px}.legend-line{border-top-style:solid}.legend-line.dashed{border-top-style:dashed}.edge-path.dashed{stroke-dasharray:5 5}.edge-path.muted{opacity:.24}
@media(max-width:1150px){#scene-summary{padding:12px 20px;min-height:62px}#scene-summary h2{font-size:16px}.scene-stats span{max-width:115px;font-size:8px}.scene-stats b{font-size:21px}.map-legend{gap:8px;font-size:8px}.map-legend>span:last-child:not(:first-child){display:none}}
@media(max-width:850px){#scene-summary{padding:11px 18px;gap:12px}#scene-summary p{max-width:55vw;font-size:9px}.scene-stats{gap:6px}.scene-stats span{max-width:90px}.map-legend{left:16px;right:auto;bottom:65px;max-width:calc(100% - 265px);padding:7px 9px}.map-legend>span:not(:first-child){display:none}.canvas-note{top:20px}}
@media(max-width:600px){#scene-summary{padding:10px 13px;min-height:58px}#scene-summary h2{font-size:14px}#scene-summary p{font-size:8px;max-width:48vw}.scene-stats b{font-size:19px}.scene-stats span{font-size:8px;max-width:75px}.map-legend{left:12px;right:auto;bottom:99px;max-width:calc(100% - 25px);font-size:8px;padding:5px 7px}.canvas-note{top:15px}}
/* Readable at canvas zoom: light surfaces, dark labels and distinct type accents. */
:root{--ink:#25334a;--muted:#58667b;--blue:#4562a0;--purple:#745196;--amber:#806320}
.brand,h1,.card-title,.group-card .card-title,.inspector h2,.dialog-heading h2{color:#25334a}.brand small,.search input,.search input::placeholder,.tree-label,.tree-label span,.tree-row,.tree-row.root,.sidebar-bottom,.sidebar-bottom small,.eyebrow,.statusbar,.statusbar b,.save-status,.filters select,.scopebar,.toggle-label,#scope-description,.nav-caption,.model-help,.model-help summary,.model-help p{color:#58667b}.tree-caret,.tree-badge{color:#758299}.tree-row.selected{color:#345896;background:#e8efff}.view-tabs button{color:#65728a}.view-tabs button[aria-selected=true]{color:#355894}.button{color:#52617a}.button.primary{color:#fff}.save-status.error{color:#996141}#breadcrumbs button,#breadcrumbs a{color:#4562a0}#breadcrumbs span{color:#65738a}.back-button{color:#4562a0}.scene-card{--type:#4562a0}.scene-card.kind-server{--type:#4562a0}.scene-card.kind-database{--type:#745196}.scene-card.kind-domain,.scene-card.kind-dns{--type:#3d768c}.scene-card.kind-service,.scene-card.kind-system{--type:#5966a8}.scene-card.kind-storage,.scene-card.kind-bucket,.scene-card.kind-volume{--type:#806320}.scene-card.kind-monitoring{--type:#476f65}.scene-card.kind-registry{--type:#806087}.scene-card.kind-account{--type:#5b6882}.scene-card.kind-provider{--type:#526b90}.scene-card.kind-project,.scene-card.kind-contour{--type:#695b93}.scene-card.kind-geography{--type:#3d768c}.type-label{font-size:10px;font-weight:600;color:var(--type)}.card-subtitle,.placement-label{font-size:11px;color:#58667b}.resource-card .card-subtitle{max-height:17px;line-height:1.45}.card-meta,.card-meta b,.group-count,.card-count,.group-footer,.card-footer{font-size:10px;color:#58667b}.card-meta{bottom:12px}.placement-label{font-size:10px}.group-card .card-subtitle{font-size:11px;line-height:1.3;max-height:29px}.group-card>.card-meta{font-size:10px;gap:1px;bottom:14px}.group-card>.card-open{color:#4562a0}.card-open,.card-open.compact{font-size:10px;color:#4562a0}.group-details{color:#617796}.drag-handle{color:#8b99b1}.shared-badge,.context-badge,.card-badge{font-size:9px;color:#745196}.context-badge{color:#63728a}.access-mini,.access-mini>b{font-size:9px;line-height:1.3}.access-mini{color:#617087;gap:3px;padding:2px 3px}.access-mini.admin{color:#4562a0}.access-mini.read{color:#745196}.access-mini.limited{color:#806320}.access-mini.unavailable,.access-mini.none{color:#946356}.scene-card.dimmed,.scene-card.dim{opacity:.4}.scene-card.context{opacity:.86}.lane-heading,.lane-heading b{font-size:11px;color:#536883;letter-spacing:1px;font-weight:650}.lane-heading span{font-size:10px;color:#718099;font-weight:400}.edge-path{pointer-events:stroke}.edge-path:hover{stroke:#607caf;stroke-width:2.2;opacity:1}.canvas-note,.canvas-options,.canvas-options select,.detail-control,.map-legend,.map-controls button,.map-controls output,.footer,.empty-state{color:#61718b}.canvas-note button{color:#4562a0}.canvas-note{font-size:11px}#scene-summary h2{color:#344963}#scene-summary p{font-size:11px;color:#63728a}.scene-stats b{color:#4562a0}.scene-stats span{font-size:10px;color:#63728a}.inspector-description,.geography-detail,.access-scope,.detail-item dd,.connection,.connection small,.connection-heading,.inspector-empty,.inspector label,.dialog-field,.inspector input,.inspector textarea,.dialog-field input,.dialog-field select,.dialog-field textarea,.access-status,.access-route,.access-source,.annotation-hint,.evidence-detail p,.evidence-detail small,.dimension-section small,.monitor-placeholder,.monitor-placeholder b,.dialog-hint,.import-summary,#membership-target,.system-membership button{color:#58667b}.detail-item dt,.inspector-section h3,.access-detail h4{color:#536984}.source-link{color:#4562a0}.badge,.evidence-tag{color:#586f8b}.badge.archive,.evidence-tag.archive{color:#806320}.badge.inferred,.evidence-tag.inferred{color:#745196}.badge.manual,.evidence-tag.manual{color:#4562a0}.access-level{color:#617087}.access-level.admin{color:#4562a0}.access-level.read{color:#745196}.access-level.limited{color:#806320}.access-level.none,.access-level.unavailable{color:#946356}.impact-box,.impact-box button{color:#806320}.system-membership button:last-child:not(:first-child){color:#7f8da5}.form-error{color:#996141}
@media(max-width:850px){#scene-summary p{font-size:10px}.scene-stats span{font-size:9px}.canvas-note{font-size:10px}}
@media(max-width:600px){#scene-summary p{font-size:9px}.scene-stats span{font-size:9px}.canvas-note{font-size:9px}}
.card-meta>.access-mini{flex-shrink:0;overflow:visible}.card-meta>.shared-badge{min-width:0;overflow:hidden;text-overflow:ellipsis}.card-meta>.card-open{flex-shrink:0}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.account-access-row{display:flex;gap:5px;overflow:visible!important}.account-access-row .access-mini{font-size:8px;padding:2px 3px}

/* Nested hierarchy: layout owns all coordinates and expanded frame dimensions. */
.hierarchy-item{position:absolute;box-sizing:border-box;user-select:none;touch-action:none}
.hierarchy-item.group-expanded,.hierarchy-item.group-collapsed{--group-line:#cbd7e8;--group-tint:#f0f4facc;--type:#4562a0;--type-bg:#eaf0fb;padding:0;border:1px solid var(--group-line);border-radius:14px;background:var(--group-tint);box-shadow:0 3px 9px #30477506;color:#25334a;cursor:grab;overflow:visible;z-index:auto}
.hierarchy-item.group-expanded{min-width:348px}
.hierarchy-item.group-collapsed{width:300px;height:154px;background:#fff;box-shadow:0 3px 10px #30477509}
.hierarchy-item.group-expanded:hover,.hierarchy-item.group-collapsed:hover{border-color:#aabdd9}
.hierarchy-item.kind-contour{--group-tint:#f3f0facc;--group-line:#d6cfe6;--type:#695b93;--type-bg:#eee9f8}
.hierarchy-item.kind-system{--group-tint:#eef3fccc;--group-line:#ccd8ef;--type:#4562a0;--type-bg:#e8effc}
.hierarchy-item.kind-provider{--group-tint:#edf3f9cc;--group-line:#c8d7e6;--type:#486b90;--type-bg:#e7f0f9}
.hierarchy-item.kind-account{--group-tint:#f1f3f8cc;--group-line:#d3dae5;--type:#5b6882;--type-bg:#eaedf5}
.hierarchy-item.kind-geography{--group-tint:#eff6f6cc;--group-line:#cce0e2;--type:#3d768c;--type-bg:#e8f3f5}
.hierarchy-item.kind-server.group-expanded{--group-tint:#edf2fbcc;--group-line:#c6d6ee;--type:#4562a0;--type-bg:#e8effb}
.hierarchy-item.kind-storage.group-expanded,.hierarchy-item.kind-database.group-expanded{--group-tint:#f8f5eecc;--group-line:#e1d7bd;--type:#806320;--type-bg:#f7efda}
.group-header{position:relative;display:flex;align-items:flex-start;gap:10px;width:100%;height:74px;padding:10px 14px;border-radius:13px 13px 0 0;cursor:grab;touch-action:none;z-index:2}
.group-expanded>.group-header{border-bottom:1px solid var(--group-line);background:#ffffff9c}
.group-header>.type-icon{width:31px;height:31px;flex-basis:31px;margin-top:3px;background:var(--type-bg);color:var(--type)}
.group-header>.h-copy,.group-header>.h-titles,.group-header>div:not(.group-actions){flex:1;min-width:0}
.h-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;max-height:38px;overflow:hidden;overflow-wrap:anywhere;margin:0;padding:0;background:transparent;border:0;text-align:left;color:#25334a;font-size:16px;line-height:19px;font-weight:650;letter-spacing:-.15px;cursor:grab}
.h-subtitle{display:block;margin:3px 0 0;color:#58667b;font-size:10px;line-height:14px;max-height:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.h-badge{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--group-line);border-radius:5px;background:#ffffffb3;color:#58667b;font-size:10px;font-weight:550;line-height:1.4;padding:3px 6px;white-space:nowrap;flex-shrink:0}
.group-header>.h-badge{margin-top:4px}
.group-actions{display:flex;align-items:center;gap:5px;flex:0 0 auto;padding-top:1px}
.group-actions button,.group-toggle,.expand-toggle,.group-info{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;border:1px solid #d6e0ed;border-radius:6px;background:#ffffffc9;color:#47658f;font-size:15px;line-height:1;cursor:pointer;flex-shrink:0;touch-action:manipulation}
.group-actions button:hover,.group-toggle:hover,.expand-toggle:hover,.group-info:hover{background:#eaf0fd;border-color:#9eb5dd;color:#355894}
.group-actions .group-focus,.group-focus{position:absolute;right:14px;bottom:8px;width:auto;height:21px;min-height:21px;gap:5px;padding:3px 5px;border:0;background:transparent;color:#486996;border-radius:4px;font-size:9px;line-height:1.4;cursor:pointer;white-space:nowrap}
.group-focus:hover{background:#e8effb;color:#355894}
.group-collapsed .group-focus{top:112px;bottom:auto;right:14px;height:25px;padding:5px 7px;background:#f0f4fb;border:1px solid #e0e7f3}
.group-collapsed>.group-header>.h-badge{position:absolute;left:15px;top:110px;margin:0;max-width:115px;overflow:hidden;text-overflow:ellipsis}
.group-collapsed .h-subtitle{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;max-height:30px;line-height:15px;margin-top:5px}
.group-collapsed>.group-footer{left:15px;right:137px;bottom:18px;display:flex;gap:6px;align-items:center;justify-content:flex-start;color:#58667b;font-size:10px;line-height:1.5}
.group-expanded>.group-footer{bottom:10px;left:24px;right:24px;font-size:10px;color:#65728a}
.group-children{position:absolute;left:0;top:0;width:100%;height:100%;padding:0;margin:0;pointer-events:none;z-index:auto}
.group-children>.hierarchy-item{pointer-events:auto}
.hierarchy-item.resource-card{position:absolute;width:250px;height:146px;cursor:grab}
.hierarchy-item.resource-card .card-top,.hierarchy-item.resource-card .card-title,.hierarchy-item.resource-card .card-subtitle,.hierarchy-item.resource-card .card-meta{cursor:grab}
.hierarchy-item.resource-card .card-open,.hierarchy-item.resource-card .card-top button,.hierarchy-item.resource-card .card-meta button{cursor:pointer}
.hierarchy-item.resource-card .drag-handle{cursor:grab}
.hierarchy-item.selected{border-color:#6987d5;box-shadow:0 0 0 3px #809dde25}
.hierarchy-item.group-expanded.selected,.hierarchy-item.group-collapsed.selected{padding:0;border-width:1px}
.hierarchy-item.dragging,.hierarchy-item.dragging>.group-header{cursor:grabbing}
.hierarchy-item.dragging{z-index:30!important;transition:none;box-shadow:0 10px 24px #314d7721}
.hierarchy-item.group-expanded.dragging{box-shadow:0 0 0 2px #91a8d53b,0 10px 24px #314d7714}
.hierarchy-item.context{border-style:dashed;opacity:.86}
.hierarchy-item.shared>.group-header .h-badge{color:#745196;background:#f4effa}
.hierarchy-item .shared-badge,.hierarchy-item .context-badge{font-size:9px}
.group-expanded .group-expanded{border-radius:11px}
.group-expanded .group-expanded>.group-header{border-radius:10px 10px 0 0}
.hierarchy-controls{position:absolute;left:20px;bottom:65px;display:flex;gap:5px;z-index:4;padding:4px;border:1px solid #dfe6f1;border-radius:7px;background:#fffffff2;box-shadow:0 2px 7px #334f7308}
.hierarchy-controls button{border:0;background:transparent;color:#526888;padding:6px 9px;font-size:10px;line-height:1.4;border-radius:4px;white-space:nowrap}
.hierarchy-controls button:hover{background:#edf2fc;color:#355894}
.map-controls{flex-wrap:nowrap;max-width:calc(100% - 40px)}
.map-controls #fit,.map-controls #readable{font-size:10px;padding:6px 8px;white-space:nowrap}
.map-controls #fit{background:#edf2fd;color:#355894}
.map-controls #readable{color:#526888}
.map-legend{bottom:66px;right:20px;left:auto;max-width:calc(100% - 295px)}
.canvas-note{max-width:calc(100% - 290px);font-size:11px;line-height:1.5}
.viewport.panning,.viewport.panning .hierarchy-item,.viewport.panning .group-header{cursor:grabbing}
.edge-path{pointer-events:stroke}
@media(max-width:1000px){.toolbar{flex-wrap:wrap}.canvas-note{max-width:calc(100% - 270px);font-size:10px}.map-legend{font-size:8px}.map-legend>span:not(:first-child){display:none}.hierarchy-controls{left:16px}.view-tabs button{padding-left:11px;padding-right:11px}}
@media(max-width:850px){.canvas-note{max-width:calc(100% - 36px)}.canvas-options{bottom:110px;right:16px}.map-legend{bottom:110px;left:16px;right:auto;max-width:calc(100% - 280px)}.hierarchy-controls{bottom:64px}.map-controls{max-width:calc(100% - 32px)}.map-controls #fit,.map-controls #readable{font-size:9px;padding:6px}.map-controls #reset-layout{font-size:9px;padding:6px}.view-tabs{flex-wrap:nowrap}}
@media(max-width:600px){.view-tabs button{padding:8px 7px;font-size:9px}.filters{flex-wrap:wrap}.hierarchy-controls{left:12px;bottom:59px;max-width:calc(100% - 24px)}.hierarchy-controls button{font-size:9px;padding:5px 7px}.map-controls{left:12px;max-width:calc(100% - 24px);gap:0}.map-controls button{min-width:21px}.map-controls #reset-layout{font-size:8px;padding:5px}.map-controls #fit,.map-controls #readable{font-size:8px;padding:5px}.map-controls output{width:31px;font-size:8px}.map-controls .control-divider{margin:0 1px}.canvas-options{bottom:105px;right:12px}.map-legend{display:none}.canvas-note{font-size:9px;max-width:calc(100% - 28px)}}

/* Final hierarchy integration: frame backgrounds → edges → headers → cards. */
#map-nodes{position:relative;z-index:auto}
#edge-layer{z-index:1;pointer-events:none}
#edge-layer .edge-path{pointer-events:stroke}
.hierarchy-item.group-expanded,.hierarchy-item.group-collapsed{z-index:auto;opacity:1}
.hierarchy-item.group-expanded.context,.hierarchy-item.group-collapsed.context,.hierarchy-item.group-expanded.dimmed,.hierarchy-item.group-collapsed.dimmed,.hierarchy-item.group-expanded.dim,.hierarchy-item.group-collapsed.dim{opacity:1}
.group-children{z-index:auto}
.group-header{z-index:2}
.hierarchy-item.resource-card,.hierarchy-item.resource-card:hover{z-index:3}
.hierarchy-item.resource-card.selected{z-index:4}
.group-collapsed>.group-description{position:absolute;left:15px;right:15px;top:78px;margin:0;max-height:30px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:#58667b;font-size:11px;line-height:15px;cursor:grab}
.nav-tree-line{display:flex;align-items:center;gap:0;min-width:0}
.nav-tree-toggle{display:flex;align-items:center;justify-content:center;width:20px;height:26px;flex:0 0 20px;border:0;border-radius:4px;background:transparent;color:#6d819f;padding:0;font-size:12px;line-height:1;cursor:pointer}
.nav-tree-toggle:hover{background:#eaf0fb;color:#355894}
.nav-tree-spacer{display:block;width:20px;flex:0 0 20px}
.nav-tree-line .tree-row{margin:0;min-width:0;flex:1}
#retry-layout{border:1px solid #b9c9e6;background:#edf2fc;color:#4562a0;border-radius:5px;padding:4px 8px;margin-left:7px;font-size:10px;line-height:1.4;cursor:pointer}
#retry-layout:hover{background:#e1eafd;border-color:#8fa9d8}
.hierarchy-item.kind-country,.hierarchy-item.kind-location{--group-tint:#eff6f6cc;--group-line:#cce0e2;--type:#3d768c;--type-bg:#e8f3f5}

/* Compact workspace: 174px of chrome above the desktop canvas. */
.sidebar{width:200px;flex-basis:200px;padding:16px 12px 12px}
.brand{font-size:24px;padding:0 6px 18px;gap:9px}
.brand-mark{width:32px;height:35px}
.search{margin-bottom:16px;padding:9px}
.tree-label{padding-bottom:8px}
.sidebar-bottom{padding-top:12px;margin-top:10px}
.topbar{height:44px;flex:0 0 44px;padding:8px 18px;gap:12px;align-items:center}
.topbar h1{font-size:20px;line-height:26px;letter-spacing:-.4px;max-width:none}
.top-actions{gap:6px;flex-wrap:nowrap}
.top-actions .button{height:28px;padding:5px 10px;font-size:11px;line-height:16px}
.statusbar{height:22px;flex:0 0 22px;padding:0 18px 5px;gap:18px;line-height:16px;flex-wrap:nowrap}
.statusbar .save-status{width:auto;margin-left:auto;white-space:nowrap}
.toolbar{height:40px;flex:0 0 40px;padding:4px 18px;gap:12px;flex-wrap:nowrap}
.view-tabs{height:30px;padding:2px;gap:2px;flex-shrink:0}
.view-tabs button{padding:5px 12px;font-size:11px;line-height:16px;white-space:nowrap}
.filters{gap:6px;min-width:0;flex-wrap:nowrap}
.filters select{height:28px;min-width:0;max-width:170px;padding:4px 7px;font-size:10px;line-height:18px}
.scopebar{height:30px;min-height:30px;flex:0 0 30px;padding:3px 18px;gap:12px;align-items:center;flex-wrap:nowrap}
.scope-navigation{flex:1;gap:8px;flex-wrap:nowrap}
.back-button{width:25px;height:22px;flex:0 0 25px;padding:1px 4px;line-height:18px}
#breadcrumbs{flex-wrap:nowrap;gap:6px;overflow:hidden}
#breadcrumbs button{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-shrink:1}
#breadcrumbs span{flex-shrink:0}
#scope-description{min-width:0}
.scopebar>.toggle-label{margin:0;flex-shrink:0}
#scene-summary{height:38px;min-height:38px;flex:0 0 38px;padding:6px 18px;gap:16px}
#scene-summary>div:first-child{display:flex;align-items:center;gap:12px;flex:1;min-width:0}
#scene-summary h2{font-size:14px;line-height:20px;margin:0;flex-shrink:0;max-width:50%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#scene-summary p{font-size:10px;line-height:15px;min-width:0;max-width:none;white-space:nowrap}
.scene-stats{gap:7px}
.scene-stats b{font-size:18px;line-height:22px}
.scene-stats span{font-size:9px;line-height:12px;max-width:145px}
.footer{height:24px;min-height:24px;flex:0 0 24px;padding:4px 18px;gap:14px;font-size:9px;line-height:15px}
.footer>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.footer #map-counts{flex-shrink:0}
.footer .canvas-note{position:static;max-width:none;font-size:9px;line-height:15px;pointer-events:auto}
.footer #view-help{flex-shrink:0}

/* One bottom row leaves the full canvas height available for objects. */
.canvas-dock{position:absolute;left:12px;right:12px;bottom:10px;display:flex;align-items:center;gap:7px;flex-wrap:wrap;z-index:5;pointer-events:none}
.canvas-dock>.hierarchy-controls,.canvas-dock>.map-controls,.canvas-dock>.canvas-options{position:static;max-width:none;min-height:34px;padding:3px;gap:3px;border-radius:7px;background:#fffffff5;pointer-events:auto}
.canvas-dock .hierarchy-controls button,.canvas-dock .map-controls button{height:26px;padding:4px 7px;font-size:10px;line-height:18px;white-space:nowrap}
.canvas-dock .map-controls #fit,.canvas-dock .map-controls #readable{padding:4px 7px;font-size:10px;line-height:18px}
.canvas-dock .map-controls #zoom-in,.canvas-dock .map-controls #zoom-out{font-size:16px;min-width:25px;padding:1px 5px}
.canvas-dock .map-controls output{width:36px;font-size:10px}
.canvas-dock>.canvas-options{gap:7px;padding:3px 8px}
.canvas-dock .canvas-options select{font-size:10px;max-width:100px}
.canvas-dock .detail-control{font-size:10px}
.canvas-help{position:relative}
.canvas-help>summary{display:grid;place-items:center;width:22px;height:22px;list-style:none;border:1px solid #d6e0ef;border-radius:50%;color:#4562a0;background:#f5f8ff;font-size:12px;cursor:pointer}
.canvas-help>summary::-webkit-details-marker{display:none}
.canvas-help[open]>summary{background:#e8efff;border-color:#9eb5dd}
.canvas-help #map-legend{display:flex;flex-direction:column;align-items:flex-start;gap:9px;left:auto;right:-9px;top:auto;bottom:34px;width:250px;max-width:none;padding:12px;background:#fff;font-size:10px;line-height:16px;box-shadow:0 5px 20px #253d681a}
.canvas-help #map-legend>span{display:flex}

@media(max-width:1100px){
  .toolbar{height:auto;flex-basis:auto;min-height:40px;flex-wrap:wrap;gap:5px;padding-top:4px;padding-bottom:4px}
  .footer #view-help{display:none}
  #scope-description{max-width:220px}
}
@media(max-width:850px){
  .sidebar{width:170px;flex-basis:170px}
  .topbar,.statusbar,.toolbar,.scopebar,#scene-summary,.footer{padding-left:12px;padding-right:12px}
  .topbar h1{font-size:18px}
  .top-actions .button{font-size:10px;padding-left:7px;padding-right:7px}
  .scopebar{height:auto;flex-basis:auto;min-height:30px;flex-wrap:wrap;gap:4px}
  .scope-navigation{flex-basis:100%}
  .scopebar>.toggle-label{margin-left:33px}
  #scene-summary>div:first-child{gap:7px}
  #scene-summary h2{max-width:65%;font-size:13px}
  #scene-summary p{font-size:9px}
  .scene-stats span{max-width:105px}
  .canvas-dock{left:10px;right:10px;bottom:8px;gap:5px}
}
@media(max-width:600px){
  .sidebar{width:52px;flex-basis:52px;padding:12px 8px}
  .brand{padding:0}
  .brand-mark{width:34px;height:35px}
  .topbar{height:auto;min-height:44px;flex-basis:auto;flex-wrap:wrap;gap:5px;padding-top:6px;padding-bottom:6px}
  .topbar h1{font-size:17px;line-height:22px}
  .statusbar{height:auto;min-height:22px;flex-basis:auto;gap:5px 12px;flex-wrap:wrap}
  .statusbar .save-status{width:100%;margin-left:0}
  .view-tabs{width:100%;height:28px}
  .view-tabs button{padding:4px 6px;font-size:9px}
  .filters{width:100%;gap:4px}
  .filters select{flex:1;max-width:34%;font-size:9px;padding-left:4px;padding-right:3px}
  #scene-summary{gap:7px}
  #scene-summary>div:first-child{display:block}
  #scene-summary h2{font-size:12px;line-height:17px;max-width:100%}
  #scene-summary p{font-size:8px;line-height:11px}
  .scene-stats b{font-size:16px}
  .scene-stats span{font-size:8px;max-width:70px}
  .footer{height:34px;min-height:34px;flex-basis:34px;flex-wrap:wrap;gap:0 8px;padding-top:2px;padding-bottom:2px}
  .footer .canvas-note{flex-basis:100%;font-size:8px;line-height:13px}
  .canvas-dock{left:7px;right:7px;gap:4px}
  .canvas-dock>.hierarchy-controls,.canvas-dock>.map-controls,.canvas-dock>.canvas-options{min-height:30px;padding:2px}
  .canvas-dock .hierarchy-controls button,.canvas-dock .map-controls button,.canvas-dock .map-controls #fit,.canvas-dock .map-controls #readable{height:24px;padding:3px 5px;font-size:9px}
  .canvas-dock>.canvas-options{padding-left:7px;padding-right:7px}
}

/* Compact topology nodes. Coordinates and expanded dimensions come from layout. */
.hierarchy-item.compact-node{--node-ink:#25334a;--node-muted:#58667b;--node-line:#c5d1e1;--node-fill:#fff;--node-accent:#526b90;--node-badge:#edf2f8;border:1px solid var(--node-line);border-radius:8px;background:var(--node-fill);padding:0;color:var(--node-ink);box-shadow:0 2px 5px #30477508}
.hierarchy-item.compact-node.group-expanded{min-width:0;background:var(--group-tint,#f2f5f9cc);overflow:visible;z-index:auto;opacity:1}
.hierarchy-item.compact-node.group-collapsed{width:248px;height:80px}
.hierarchy-item.compact-node.resource-card{width:208px;height:68px;padding:8px 10px}
.hierarchy-item.compact-node>.group-header{display:block;height:var(--header-height,58px);padding:0;border-radius:7px 7px 0 0;background:#ffffffc9;border-bottom:1px solid var(--node-line);color:var(--node-ink);z-index:2}
.hierarchy-item.compact-node.group-collapsed>.group-header{max-height:100%;border-bottom:0}
.hierarchy-item.compact-node>.group-header>.type-icon{position:absolute;left:10px;top:7px;width:17px;height:17px;min-width:17px;margin:0;padding:0;border:0;background:transparent;color:var(--node-accent);border-radius:3px}
.hierarchy-item.compact-node .type-icon svg{width:16px;height:16px;stroke-width:1.7}
.hierarchy-item.compact-node .node-kind{display:inline-flex;align-items:center;gap:4px;max-width:100%;padding:1px 5px;border-radius:3px;background:var(--node-badge);color:var(--node-accent);font-size:9px;font-weight:650;line-height:14px;letter-spacing:.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hierarchy-item.compact-node>.group-header>.node-kind{position:absolute;left:32px;top:7px;max-width:calc(100% - 116px)}
.hierarchy-item.compact-node>.group-header>.h-copy{position:absolute;left:10px;right:10px;top:28px;padding-right:27px;min-width:0}
.hierarchy-item.compact-node .h-title{display:block;max-height:17px;margin:0;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:650;line-height:17px;letter-spacing:-.1px;color:var(--node-ink)}
.hierarchy-item.compact-node .h-params,.hierarchy-item.compact-node .node-params{display:block;margin:2px 0 0;font-size:10px;font-weight:400;line-height:12px;max-height:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--node-muted)}
.hierarchy-item.compact-node .h-params{margin-top:0}
.hierarchy-item.compact-node .node-count{position:absolute;right:10px;bottom:8px;display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:18px;padding:1px 4px;border:1px solid var(--node-line);border-radius:4px;background:#ffffffd9;color:var(--node-muted);font-size:10px;font-weight:600;line-height:14px;white-space:nowrap}
.hierarchy-item.compact-node .group-actions{position:absolute;right:7px;top:5px;display:flex;align-items:center;gap:3px;padding:0}
.hierarchy-item.compact-node .group-actions button,.hierarchy-item.compact-node .leaf-info{position:static;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;min-width:22px;min-height:22px;flex:0 0 22px;margin:0;padding:0;border:1px solid #d4deeb;border-radius:4px;background:#ffffffc9;color:#496181;font-size:13px;line-height:20px;cursor:pointer;touch-action:manipulation}
.hierarchy-item.compact-node .group-actions button:hover,.hierarchy-item.compact-node .leaf-info:hover{background:#e7effd;border-color:#9bb2d5;color:#2f527e}
.hierarchy-item.compact-node>.group-footer,.hierarchy-item.compact-node>.card-meta{position:absolute;left:10px;right:10px;bottom:8px;min-height:15px;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:4px;font-size:9px;line-height:13px}
.hierarchy-item.compact-node>.compact-access{position:absolute;left:12px;right:12px;bottom:8px;display:flex;align-items:center;gap:4px;height:15px;white-space:nowrap;z-index:2}
.hierarchy-item.compact-node .access-mini{height:15px;min-height:15px;padding:0 3px;gap:2px;border-radius:3px;font-size:8px;line-height:13px}
.hierarchy-item.compact-node .access-mini>b{font-size:8px;line-height:13px}
.hierarchy-item.compact-node .shared-badge,.hierarchy-item.compact-node .context-badge{font-size:8px;line-height:12px;padding:1px 4px}
.hierarchy-item.compact-node>.resource-head{position:relative;display:flex;align-items:center;gap:5px;height:18px;min-width:0;margin:0 0 4px;z-index:2;cursor:grab}
.hierarchy-item.compact-node>.resource-head>.type-icon{display:grid;place-items:center;width:17px;height:17px;flex:0 0 17px;background:transparent;color:var(--node-accent);border:0;border-radius:3px}
.hierarchy-item.compact-node>.resource-head>.node-kind{padding:0 4px;line-height:15px;max-width:calc(100% - 50px)}
.hierarchy-item.compact-node>.resource-head>.leaf-info{margin-left:auto;width:20px;height:20px;min-width:20px;min-height:20px;flex-basis:20px;font-size:12px}
.hierarchy-item.compact-node.resource-card>.card-title{display:block;max-height:17px;width:100%;margin:0;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;line-height:17px;color:var(--node-ink);letter-spacing:-.1px;cursor:grab}
.hierarchy-item.compact-node>.group-description,.hierarchy-item.compact-node>.card-subtitle{display:none}

/* Rack servers: navy header, square chassis and readable address line. */
.hierarchy-item.shape-server{--node-line:#657c97;--node-fill:#fff;--node-accent:#365573;--node-badge:#e9eff7;border:2px solid var(--node-line);border-radius:7px;box-shadow:0 2px 4px #25394f12}
.hierarchy-item.shape-server.group-collapsed,.hierarchy-item.shape-server.resource-card{width:248px;height:110px}
.hierarchy-item.shape-server>.group-header{--node-ink:#fff;--node-muted:#dce7f5;--node-accent:#e5eef9;--node-badge:#425771;--node-line:#5e748e;background:#293e56;border-bottom-color:#405b79;border-radius:5px 5px 0 0}
.hierarchy-item.shape-server>.group-header .group-actions button{background:#354c67;border-color:#627a98;color:#f3f7ff}
.hierarchy-item.shape-server>.group-header .group-actions button:hover{background:#496482;border-color:#9bb2cf}
.hierarchy-item.shape-server>.group-header .node-count{background:#354c67;color:#e9f1fb;border-color:#6f859f}
.hierarchy-item.shape-server.resource-card{padding:8px 10px}
.hierarchy-item.shape-server>.resource-head{height:27px;margin:-8px -10px 7px;padding:4px 9px;background:#293e56;border-radius:5px 5px 0 0;--node-accent:#e5eef9;--node-badge:#425771}
.hierarchy-item.shape-server>.resource-head>.leaf-info{color:#eef4ff;border-color:#607894;background:#354c67}
.hierarchy-item.shape-server::after{content:"";position:absolute;right:10px;bottom:8px;width:22px;height:12px;border-top:2px solid #7c8ea3;border-bottom:2px solid #7c8ea3;background:linear-gradient(#7c8ea3,#7c8ea3) center/100% 2px no-repeat;pointer-events:none;opacity:.65}
.hierarchy-item.shape-server.group-expanded::after{display:none}
.hierarchy-item.shape-server>.card-meta,.hierarchy-item.shape-server>.group-footer{right:36px}
.hierarchy-item.shape-server>.compact-access{right:36px}

/* Storage cabinets and database cylinders have their own shapes and labels. */
.hierarchy-item.shape-storage{--node-line:#7ba49f;--node-fill:#f6fbfa;--node-accent:#2e6b64;--node-badge:#deefec;--group-tint:#edf6f3cc;border:1px solid var(--node-line);border-left:4px solid #6a9992;border-radius:7px 7px 12px 12px;box-shadow:0 2px 0 #d9e9e4}
.hierarchy-item.shape-storage.group-collapsed,.hierarchy-item.shape-storage.resource-card{width:228px;height:94px}
.hierarchy-item.shape-storage>.group-header{background:#e9f5f1;border-radius:6px 6px 0 0}
.hierarchy-item.shape-storage>.resource-head>.type-icon{background:#e1efea;border-radius:3px}
.hierarchy-item.shape-database{--node-line:#ad94c6;--node-fill:#faf7fd;--node-accent:#70468e;--node-badge:#eee4f7;--group-tint:#f5effacc;border:1px solid var(--node-line);border-top:4px solid #b69acb;border-bottom:3px solid #c7b4d7;border-radius:22px 22px 13px 13px / 11px 11px 9px 9px;box-shadow:inset 0 3px 0 #f1e9f8}
.hierarchy-item.shape-database.group-collapsed,.hierarchy-item.shape-database.resource-card{width:216px;height:84px}
.hierarchy-item.shape-database>.group-header{background:#f3ebfa;border-radius:18px 18px 0 0 / 8px 8px 0 0}
.hierarchy-item.shape-database>.resource-head>.type-icon{background:#eee4f7;border-radius:50%}
.hierarchy-item.shape-service{--node-line:#cad3e0;--node-fill:#fff;--node-accent:#526179;--node-badge:#eff2f7;border-radius:6px;box-shadow:none}
.hierarchy-item.shape-group{--node-line:#bccbdf;--node-fill:#fbfcff;--node-accent:#50668a;--node-badge:#e9eff8;border-radius:8px;box-shadow:0 2px 4px #30477506}
.hierarchy-item.shape-group.kind-contour,.hierarchy-item.shape-group.kind-project{--node-accent:#67558b;--node-badge:#eee9f7}
.hierarchy-item.shape-group.kind-provider{--node-accent:#416787;--node-badge:#e7eff7}
.hierarchy-item.shape-group.kind-account{--node-accent:#56647c;--node-badge:#e9edf5}
.hierarchy-item.shape-group.kind-country,.hierarchy-item.shape-group.kind-location{--node-accent:#3d7680;--node-badge:#e6f0f2}

/* DNS and domains stay flat and inline, with record type visible at a glance. */
.hierarchy-item.shape-address{--node-line:#98b0be;--node-fill:#f8fbfd;--node-accent:#426d81;--node-badge:#e6f0f6;--group-tint:#f2f7f9cc;border:1px dashed var(--node-line);border-radius:7px 12px 12px 7px;box-shadow:none}
.hierarchy-item.shape-address.group-collapsed{width:236px;height:64px}
.hierarchy-item.shape-address.resource-card{width:236px;height:52px}
.hierarchy-item.shape-address>.group-header{background:#f1f7fa;border-radius:6px 11px 0 0}
.hierarchy-item.shape-address.address-card{display:flex;align-items:center;gap:7px;padding:6px 8px}
.hierarchy-item.shape-address .record-kind{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:28px;max-width:64px;padding:3px 4px;border:1px solid #c2d4df;border-radius:4px;background:var(--node-badge);color:var(--node-accent);font-size:8px;font-weight:700;line-height:13px;letter-spacing:.2px;text-transform:uppercase;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hierarchy-item.shape-address .address-copy{flex:1;min-width:0}
.hierarchy-item.shape-address .address-copy>.card-title{display:block;max-height:16px;margin:0;padding:0;font-size:12px;line-height:16px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--node-ink)}
.hierarchy-item.shape-address .address-copy>.node-params{font-size:9px;line-height:12px;margin-top:1px}
.hierarchy-item.shape-address.address-card>.leaf-info{width:20px;height:20px;min-width:20px;min-height:20px;flex-basis:20px;font-size:12px;background:#f9fcff}

/* Keep grouping, selection and dragging independent from the type shape. */
.hierarchy-item.compact-node.group-expanded>.group-header{border-bottom-style:solid}
.hierarchy-item.compact-node.selected{border-color:#6684d1;box-shadow:0 0 0 3px #6684d12b}
.hierarchy-item.compact-node.context{border-style:dashed}
.hierarchy-item.compact-node.resource-card.selected{padding:8px 10px}
.hierarchy-item.shape-address.address-card.selected{padding:6px 8px}
.hierarchy-item.compact-node.dragging{z-index:30!important;box-shadow:0 0 0 2px #8ba5d33b,0 8px 18px #314d7724}

/* Short leaves keep their parameter line inside the existing 62/68px boxes. */
.hierarchy-item.compact-node.resource-card.kind-volume,.hierarchy-item.compact-node.resource-card.kind-bucket{padding:6px 10px}
.hierarchy-item.compact-node.resource-card:is(.kind-volume,.kind-bucket)>.resource-head{margin-bottom:2px}
.hierarchy-item.compact-node.resource-card.shape-service{padding:7px 10px}
.hierarchy-item.compact-node.resource-card.shape-service>.resource-head{margin-bottom:3px}
.hierarchy-item.compact-node.resource-card:is(.kind-volume,.kind-bucket,.shape-service)>.node-params{margin-top:1px}

/* Dense rows: objects keep their existing typefaces; space comes from padding. */
.hierarchy-item.compact-node.resource-card:is(.address-card,.service-row),
.hierarchy-item.compact-node.resource-card:is(.address-card,.service-row).selected{display:flex;align-items:center;gap:6px;padding:3px 6px;min-height:0}
.hierarchy-item.shape-address .record-kind{padding:0 3px;min-width:28px}
.hierarchy-item.shape-address .address-copy{display:flex;align-items:center;gap:7px}
.hierarchy-item.shape-address .address-copy>.card-title{flex:0 1 auto;min-width:20px;max-width:60%}
.hierarchy-item.shape-address .address-copy>.node-params{flex:1;min-width:0;margin:0}
.hierarchy-item.service-row>.type-icon{display:grid;place-items:center;flex:0 0 17px;width:17px;height:17px;background:transparent;color:var(--node-accent);padding:0;border:0}
.hierarchy-item.service-row>.service-copy{flex:1;min-width:0}
.hierarchy-item.service-row .card-title{font-size:13px;font-weight:600;line-height:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;color:var(--node-ink)}
.hierarchy-item.service-row .node-params{margin-top:1px}
.hierarchy-item.service-row>.leaf-info{width:20px;height:20px;min-width:20px;min-height:20px;flex-basis:20px}
.hierarchy-item.mailbox-row{--node-accent:#386e78;--node-line:#aac4c9;--node-fill:#f8fcfc}
.hierarchy-item.mailbox-row>.service-copy{display:flex;align-items:center;gap:7px}
.hierarchy-item.mailbox-row .card-title{flex:1;min-width:0}
.hierarchy-item.mailbox-row .node-params{flex:0 0 auto;margin:0}
.hierarchy-item.compact-node.slim-group>.group-header{display:flex;align-items:center;gap:6px;padding:0 6px}
.hierarchy-item.compact-node.slim-group>.group-header>.type-icon{position:static;flex:0 0 17px}
.hierarchy-item.compact-node.slim-group>.group-header>.node-kind{display:none}
.hierarchy-item.compact-node.slim-group>.group-header>.h-copy{position:static;flex:1;min-width:0;padding:0}
.hierarchy-item.compact-node.slim-group .h-params{display:none}
.hierarchy-item.compact-node.slim-group .node-count{position:static;flex:0 0 auto;height:18px;min-width:18px;padding:0 3px}
.hierarchy-item.compact-node.slim-group .group-actions{position:static;gap:3px;flex:0 0 auto}
.hierarchy-item.compact-node.slim-group.kind-account>.compact-access{bottom:6px}

/* Two-row workspace header. Search is usable with the object panel hidden. */
.visually-hidden,#scene-summary.visually-hidden{position:absolute!important;left:auto!important;top:auto!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap!important;border:0!important;min-height:0!important;flex:0!important}
body{min-height:360px}
.sidebar{width:236px;flex:0 0 236px;padding:12px 8px 8px}
.sidebar .brand{padding:0 8px 12px;font-size:25px;gap:8px}
.sidebar .brand-mark{width:30px;height:32px}
.sidebar .tree-label{padding-bottom:4px}
.sidebar .sidebar-bottom{padding-top:7px;margin-top:6px}
.sidebar .sidebar-bottom small{display:none}
.sidebar-hidden .sidebar{display:none}
.topbar{height:44px;min-height:44px;flex:0 0 44px;padding:5px 10px;gap:8px;justify-content:flex-start;position:relative;z-index:6;border-bottom:1px solid var(--line)}
.sidebar-toggle{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;padding:4px;border:1px solid #d4ddeb;background:white;color:#506585;border-radius:5px}
.sidebar-toggle:hover,.sidebar-toggle[aria-expanded=false]{background:#eaf0fa}
.sidebar-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6}
.topbar .view-tabs{padding:2px;gap:2px;flex-shrink:0}
.topbar .view-tabs button{height:28px;padding:4px 10px;font-size:11px;white-space:nowrap}
.topbar .save-status{margin-left:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.topbar .top-actions{gap:5px;flex-shrink:0}
.topbar .button{height:29px;padding:4px 9px}
.toolbar{height:40px;min-height:40px;flex:0 0 40px;padding:4px 10px;gap:10px;justify-content:flex-start;position:relative;z-index:5}
.toolbar .search{width:230px;flex:0 1 230px;min-width:130px;height:30px;margin:0;padding:5px 8px}
.toolbar .scope-navigation{flex:1;min-width:0;gap:7px}
.toolbar .back-button{height:26px;width:28px;padding:2px 5px;flex-shrink:0}
.toolbar #breadcrumbs{flex-wrap:nowrap;overflow:auto;scrollbar-width:none;white-space:nowrap;gap:5px}
.toolbar #breadcrumbs button{flex-shrink:0}
.toolbar-popover{position:relative;flex:0 0 auto;font-size:11px}
.toolbar-popover>summary{height:29px;display:flex;align-items:center;justify-content:center;padding:4px 9px;border:1px solid #d4ddeb;border-radius:5px;background:#fff;color:#526580;cursor:pointer;list-style:none;white-space:nowrap}
.toolbar-popover>summary::-webkit-details-marker{display:none}
.toolbar-popover>summary::after{content:'⌄';margin-left:6px}
.toolbar-popover>summary.active,.toolbar-popover[open]>summary{color:#315cab;background:#edf3ff;border-color:#b6c9ee}
.toolbar-popover>.popover-panel{position:absolute;top:calc(100% + 5px);right:0;min-width:170px;padding:10px;display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid #cdd8e8;border-radius:7px;box-shadow:0 8px 26px #223d6429;z-index:10}
.toolbar-popover:not([open])>.popover-panel{display:none}
.filter-menu>.popover-panel{width:260px}
.filter-menu .filters{display:flex;flex-direction:column;gap:9px}
.filter-menu .filters label{display:flex;flex-direction:column;gap:4px;color:#526580;font-size:11px}
.filter-menu .filters select{width:100%;max-width:none;height:30px;padding:4px 7px}
.filter-menu .statusbar{height:auto;min-height:0;padding:8px 0 0;border-top:1px solid var(--line);border-bottom:0;flex-direction:column;align-items:flex-start;gap:5px}
.type-menu>summary{max-width:190px;overflow:hidden;text-overflow:ellipsis;display:block;line-height:19px}
.type-menu>.popover-panel{width:310px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 110px);gap:8px;overflow:auto}
.type-menu-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px}
.type-menu-heading>div{display:flex;gap:5px}
.type-menu button{border:1px solid #d5dfec;background:#f7f9fc;color:#3e5f91;border-radius:4px;padding:4px 7px;font:inherit;cursor:pointer}
.type-menu button:hover{background:#eaf1fc}
.type-menu button:disabled{opacity:.45;cursor:default}
.type-options{overflow:auto;max-height:340px;min-height:64px;flex:0 1 auto;overscroll-behavior:contain}
.type-option{display:flex;align-items:center;gap:7px;min-height:30px;border-radius:4px;padding:1px 3px}
.type-option:hover,.type-option:focus-within{background:#f1f5fc}
.type-option label{display:flex;align-items:center;gap:7px;flex:1;min-width:0;cursor:pointer;color:#354b66;font-size:12px}
.type-option input{margin:0;accent-color:#456aa5;width:14px;height:14px;flex:0 0 14px}
.type-option svg{width:17px;height:17px;flex:0 0 17px;fill:none;stroke:currentColor;stroke-width:1.6;color:#577497}
.type-option small{margin-left:auto;color:#718199;font-size:11px;font-variant-numeric:tabular-nums}
.type-option button{font-size:10px;padding:3px 5px;background:transparent;border-color:transparent}
.type-hint{font-size:11px;line-height:1.4;color:#62748d;margin:0;padding-top:7px;border-top:1px solid #e0e6ef}
.type-menu :is(button,input):focus-visible{outline:2px solid #496caf;outline-offset:2px}
#empty-state p{margin:0 0 10px}
@media(max-width:760px){.type-menu>summary{max-width:135px}.type-menu>.popover-panel{right:-75px}.toolbar{gap:6px}.toolbar .search{min-width:100px}}
.footer{height:24px;min-height:24px;flex:0 0 24px;padding:2px 10px;gap:10px;flex-wrap:nowrap}
@media(max-width:1100px){.topbar .save-status{max-width:105px}.toolbar .search{width:185px;flex-basis:185px}.topbar .view-tabs button{padding:4px 7px}.footer .canvas-note{display:none}}
@media(max-width:760px){.sidebar{width:210px;flex-basis:210px}.topbar{height:auto;min-height:44px;flex-basis:auto;flex-wrap:wrap}.topbar .save-status{display:none}.topbar .top-actions{margin-left:auto}.toolbar .search{width:145px;flex-basis:145px}.toolbar .scope-navigation{overflow:hidden}.footer #view-help{display:none}.filter-menu>.popover-panel{width:min(260px,85vw)}}

/* Object cards: all header rules are scoped to direct children. Nested resources
   never inherit their parent's button placement, header geometry or text colour. */
.hierarchy-item.map-card{--object-ink:#28364c;--object-accent:#586d88;--object-line:#b9c8da;--object-fill:#fff;--object-tint:#f1f5fa;position:absolute;min-width:0;min-height:0;padding:0;border:1px solid var(--object-line);border-radius:7px;background:var(--object-fill);color:var(--object-ink);box-shadow:0 1px 3px #223c5210;overflow:visible}
.hierarchy-item.map-card.group-expanded{background:var(--object-tint);z-index:auto}
.hierarchy-item.map-card::after{display:none}
.hierarchy-item.map-card>.object-header{position:relative;display:block;box-sizing:border-box;width:100%;height:var(--header-height);padding:5px 8px;border:0;border-radius:6px 6px 0 0;background:var(--object-fill);color:var(--object-ink);cursor:grab;touch-action:none;z-index:2}
.hierarchy-item.map-card.group-expanded>.object-header{border-bottom:1px solid var(--object-line)}
.hierarchy-item.map-card:not(.group-expanded)>.object-header{height:100%}
.map-card>.object-header>.object-topline{display:flex;align-items:center;justify-content:space-between;gap:6px;height:20px;min-width:0}
.object-type{display:inline-flex;align-items:center;gap:5px;min-width:0;padding:1px 4px;border-radius:3px;background:var(--object-tint);color:var(--object-accent);font-size:9px;line-height:14px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.object-type>span:last-child{overflow:hidden;text-overflow:ellipsis}
.object-icon{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;flex:0 0 17px;color:var(--object-accent)}
.object-icon>svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.65;fill:none}
.map-card .object-actions{position:static;display:flex;align-items:center;gap:3px;flex:0 0 auto;margin:0;padding:0}
.map-card .object-action{position:static;display:inline-flex;align-items:center;justify-content:center;width:21px;height:21px;min-width:21px;min-height:21px;padding:0;margin:0;border:1px solid #cbd7e6;border-radius:4px;background:#ffffffcf;color:#455e7f;font-size:13px;line-height:19px;cursor:pointer}
.map-card .object-action:hover{background:#e8f0fc;border-color:#90aad0}
.map-card .object-count{position:static;display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 4px;border:1px solid var(--object-line);background:#ffffffcf;color:var(--object-accent);border-radius:4px;font-size:10px;line-height:16px;white-space:nowrap}
.map-card>.object-header>.object-name-line{display:flex;align-items:center;gap:7px;min-width:0;margin-top:2px;height:20px}
.map-card .object-title{display:block;flex:1;min-width:0;max-width:100%;margin:0;padding:0;font-size:13px;line-height:17px;font-weight:650;letter-spacing:-.1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--object-ink)}
.map-card>.object-header>.object-params{margin-top:3px;font-size:10px;line-height:12px;color:var(--object-accent);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.team-access{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;max-width:110px;height:17px;padding:0 4px;border-radius:4px;border:1px solid #d5dde7;background:#f5f7fa;color:#68778b;font-size:9px;line-height:15px;font-weight:500;white-space:nowrap}
.team-access>.access-dot{width:5px;height:5px;border-radius:50%;background:currentColor;flex:0 0 5px}
.team-access.admin{color:#267048;background:#edf8f0;border-color:#acd3b8}
.team-access.read{color:#315f9c;background:#edf4ff;border-color:#b5cae8}
.team-access.limited{color:#926615;background:#fff8e9;border-color:#dfcd9e}
.team-access.none,.team-access.unavailable{color:#a04343;background:#fff0ef;border-color:#e5b8b4}
.team-access.documented{border-style:dashed}
.team-access.access-icons{height:20px;max-width:none;gap:4px;padding:0;border:0;background:none;overflow:visible}
.access-indicator{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 22px;width:22px;height:20px;border:1px solid #ced8e4;border-radius:4px;background:#f4f7fa;color:#718095;vertical-align:middle}
.access-indicator svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
.access-indicator b{position:absolute;right:-3px;bottom:-3px;display:grid;place-items:center;min-width:9px;height:10px;padding:0 1px;background:inherit;border-radius:3px;font-size:9px;font-weight:750;line-height:10px}
.access-indicator.admin{color:#246f48;background:#edf8f0;border-color:#acd3b8}
.access-indicator.read{color:#315f9c;background:#edf4ff;border-color:#b5cae8}
.access-indicator.limited{color:#936817;background:#fff8e9;border-color:#dfcd9e}
.access-indicator.none,.access-indicator.unavailable{color:#a04343;background:#fff0ef;border-color:#e5b8b4}
.access-indicator.documented{border-style:dashed}
.access-indicator:focus-visible{outline:2px solid #5579b4;outline-offset:2px}
.access-legend{display:flex;flex-direction:column;gap:7px;font-size:11px;line-height:1.4;padding-top:5px;border-top:1px solid #dbe3ee}
.access-legend>span,.access-legend-levels>span{display:flex;align-items:center;gap:7px}
.access-legend-levels{display:flex;flex-wrap:wrap;gap:8px 12px}
.access-legend small{font-size:10px;line-height:1.4;color:#708098}
.canvas-help #map-legend{width:330px;max-width:calc(100vw - 30px);max-height:calc(100dvh - 140px);overflow:auto}
.capability-detail{margin-top:8px;border-top:1px solid #e2e8f1;padding-top:8px;font-size:11px;line-height:1.5}
.capability-heading{display:flex;align-items:center;gap:7px;color:#425a78}
.capability-heading>span:last-child:not(.access-indicator){margin-left:auto;color:#66758b;font-size:11px}
.capability-detail p{margin:5px 0;color:#61738b}
.capability-detail details>summary{cursor:pointer;color:#5b6f8b;font-size:11px}
.map-card.flat-card>.object-header{display:flex;align-items:center;gap:7px;padding:4px 7px;border-radius:inherit}
.map-card.kind-domain.flat-card .object-title{font-size:12px;line-height:16px}
.map-card.kind-server,.object-type-key.kind-server{--object-accent:#285695;--object-line:#7298c4;--object-fill:#edf4ff;--object-tint:#e3edfb}
.map-card.kind-server{border:1px solid var(--object-line);border-radius:5px}
.map-card.kind-server>.object-header{border-top:0;box-shadow:inset 0 3px 0 var(--object-accent)}
.map-card.kind-computer{--object-accent:#485c73;--object-line:#8b9db2;--object-fill:#f6f8fb;border-bottom:4px solid #8b9db2;border-radius:5px 5px 10px 10px}
.map-card.kind-hosting{--object-accent:#286b8c;--object-line:#8bbbcf;--object-fill:#f0faff;--object-tint:#eaf5fa;border-top:3px solid #69a7c2;border-radius:15px 15px 7px 7px}
.map-card.kind-hosting>.object-header{border-radius:12px 12px 0 0}
.map-card.kind-storage,.object-type-key.kind-storage{--object-accent:#99570e;--object-line:#ce9c59;--object-fill:#fff4e3;--object-tint:#f9e9cf}
.map-card.kind-storage{border:1px solid var(--object-line);border-radius:4px;box-shadow:0 2px 0 -1px var(--object-fill),0 3px 0 0 var(--object-line)}
.map-card.kind-database,.map-card.collection-database,.object-type-key.kind-database{--object-accent:#006b7d;--object-line:#68aebe;--object-fill:#eaf8fc;--object-tint:#d9f0f6}
.map-card.kind-database{border:1px solid var(--object-line);border-radius:20px 20px 12px 12px / 9px 9px 7px 7px}
.map-card.kind-database>.object-header{border-radius:18px 18px 10px 10px / 8px 8px 6px 6px;box-shadow:inset 0 2px 0 var(--object-line),inset 0 -3px 0 var(--object-line)}
.map-card.kind-application,.object-type-key.kind-application{--object-accent:#713ab1;--object-line:#b296d1;--object-fill:#f4edff;--object-tint:#eaddfa}
.map-card.kind-application{border:1px solid var(--object-line);border-radius:4px 12px 4px 4px}
.map-card.kind-application>.object-header{border-radius:3px 11px 3px 3px;box-shadow:inset 3px 0 0 var(--object-accent)}
.map-card.kind-website{--object-accent:#3d72a7;--object-line:#a2bfdc;--object-fill:#f4f9ff;--object-tint:#eef5fc;border-top:3px solid #8bb2d8;border-radius:7px 7px 3px 3px}
.map-card.kind-service,.object-type-key.kind-service{--object-accent:#526176;--object-line:#a8b3c2;--object-fill:#f1f4f8;--object-tint:#e6ebf2}
.map-card.kind-service{border-radius:3px}
.map-card.kind-domain,.map-card.kind-dns{--object-accent:#386c82;--object-line:#8eafb9;--object-fill:#f5fbfd;--object-tint:#edf5f8;border:1px dashed var(--object-line);border-radius:5px 16px 16px 5px}
.map-card.kind-mail{--object-accent:#916830;--object-line:#cdb68f;--object-fill:#fff9ed;--object-tint:#faf3e5;border-left:3px solid #b79863;border-radius:5px}
.map-card.collection-card{border:1px solid var(--object-line);border-top:3px double var(--object-line);border-radius:9px 9px 5px 5px}
.map-card.collection-dns{--object-accent:#386c82;--object-line:#8eafb9;--object-fill:#f5fbfd;--object-tint:#edf5f8}
.map-card.collection-mail{--object-accent:#916830;--object-line:#cdb68f;--object-fill:#fff9ed;--object-tint:#faf3e5}
.map-card.collection-website{--object-accent:#376fa4;--object-line:#8db1d5;--object-fill:#f3f8fe;--object-tint:#e9f2fb}
.inventory-filter{display:block;margin:8px 0;color:#62718a;font-size:11px}
.inventory-filter input{display:block;width:100%;margin-top:4px;padding:6px 8px;border:1px solid #c7d5e4;border-radius:5px;font:inherit;color:#26354e;background:#fff}
.map-card.collection-card .object-count{white-space:nowrap;font-size:9px}
.map-card.kind-network,.object-type-key.kind-network{--object-accent:#2e6d38;--object-line:#88b481;--object-fill:#edf8e9;--object-tint:#dfeed8}
.map-card.kind-network{border:1px solid var(--object-line);border-radius:13px}
.map-card.kind-network>.object-header{border-radius:12px;box-shadow:inset 0 -3px 0 var(--object-line)}
.map-card.kind-integration{--object-accent:#a06435;--object-line:#ccab8f;--object-fill:#fff8f0;--object-tint:#f9f0e6;border-right:4px solid #bc956b}
.map-card.kind-monitoring{--object-accent:#a05070;--object-line:#caa4b6;--object-fill:#fff5fa;border-left:4px solid #b9859c}
.map-card.kind-bucket{--object-accent:#99570e;--object-line:#ceab7e;--object-fill:#fff8ee;--object-tint:#faeedc;border-radius:4px 4px 16px 16px}
.map-card.kind-volume{--object-accent:#855d28;--object-line:#bca380;--object-fill:#fbf6ee;--object-tint:#f3ebdd;border-bottom:3px double var(--object-line);border-radius:5px}
.map-card.kind-registry{--object-accent:#9b6d41;--object-line:#ccb391;--object-fill:#fffaf2;border:2px dashed var(--object-line)}
.map-card.kind-contour,.map-card.kind-system,.map-card.kind-project{--object-accent:#67568d;--object-line:#c0b6d3;--object-fill:#faf9fe;--object-tint:#f3f1f8}
.map-card.kind-subproject{--object-accent:#4a6389;--object-line:#a9bed8;--object-fill:#f7faff;--object-tint:#edf3fb;border-left:3px solid #94accb}
/* Frames share the same header grid as leaves. A second outline and the group
   count distinguish containment; decoration never takes space from the text. */
.map-card.container-card{border-width:1px;border-radius:9px;box-shadow:0 2px 0 -1px var(--object-fill),0 3px 0 0 var(--object-line)}
.map-card.container-card>.object-header{border-radius:8px 8px 0 0;padding:5px 8px;box-shadow:inset 0 2px 0 var(--object-line)}
.map-card.container-card.group-collapsed>.object-header{border-radius:8px}
.object-type-legend{display:flex;flex-direction:column;gap:7px;padding-bottom:9px;border-bottom:1px solid #dbe3ee}
.object-type-legend>div{display:flex;flex-wrap:wrap;gap:5px}
.object-type-key{display:inline-flex;align-items:center;gap:5px;padding:4px 6px;border:1px solid var(--object-line);border-radius:4px;background:var(--object-fill);color:var(--object-accent);font-size:11px}
.object-type-legend small{color:#64758b;font-size:10px;line-height:1.4}
.hierarchy-item.map-card.selected{border-color:#577ed0;box-shadow:0 0 0 3px #6684d12b;padding:0}
.hierarchy-item.map-card.context{border-style:dashed}
.hierarchy-item.map-card.dragging{z-index:30!important;box-shadow:0 0 0 2px #8ba5d33b,0 8px 18px #314d7724}
.inventory-section>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;font-weight:650;cursor:pointer;color:#354d6e;padding:5px 0}
.inventory-section>summary::before{content:'▸';font-size:11px;color:#8392a8}
.inventory-section[open]>summary::before{content:'▾'}
.inventory-section>summary>span{margin-left:auto;color:#7a879c;font-size:11px}
.inventory-table{width:100%;border-collapse:collapse;table-layout:fixed;margin:7px 0;font-size:11px;line-height:1.5}
.inventory-table th,.inventory-table td{padding:5px 4px;text-align:left;vertical-align:top;border-bottom:1px solid #e4eaf2;overflow-wrap:anywhere}
.inventory-table th{color:#687b96;font-size:10px;font-weight:600}
.inventory-table small{display:block;color:#8290a3;font-size:10px;line-height:1.4;margin-top:3px}
.inventory-target{display:block;max-width:100%;border:0;background:transparent;padding:3px 0;text-align:left;font:inherit;color:#375da4;cursor:pointer;overflow-wrap:anywhere}
.inventory-target:hover{text-decoration:underline}
.inventory-target:focus-visible{outline:2px solid #577bd0;outline-offset:2px}
.inventory-route-note{display:block;color:#91651f;line-height:1.4;margin:3px 0;overflow-wrap:anywhere}
.inventory-section[data-section=dns] th:first-child{width:46px}
.inventory-section[data-section=dns] th:nth-child(2){width:80px}
.inventory-entry{margin:5px 0;border:1px solid #e3e9f1;border-radius:5px;padding:6px}
.inventory-entry>summary{font-size:11px;cursor:pointer;overflow-wrap:anywhere;color:#4e6381}
.inventory-entry p,.inventory-entry small{font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.inventory-entry pre{font:10px/1.5 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;margin:3px 0}
.access-detail>details{margin-top:7px;font-size:11px;line-height:1.5;color:#65758d}
.access-detail>details>summary{cursor:pointer}
.access-discrepancy{font-size:11px;color:#99652b}
.name-controls{display:flex;margin:-4px 0 8px}
.inspector .rename-button{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;color:#405e85;font-size:12px}
.rename-button svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7}
.original-name,.dialog-original{font-size:12px;line-height:1.5;color:#687b96;overflow-wrap:anywhere;margin:6px 0 10px}
.original-name span,.dialog-original strong{font-weight:500;color:#405673}
.login-page{display:grid;place-items:center;min-height:100vh;background:#f1f5fb;overflow:auto}
.login-page .login-card{flex:none;width:min(430px,calc(100vw - 32px));padding:30px;border:1px solid #d5dfed;border-radius:14px;background:white;box-shadow:0 12px 40px #26405f12}
.login-card h1{font-size:25px;color:#29435f;margin:12px 0}.login-card p{font-size:14px;line-height:1.55;color:#5d7088}
.login-card form,.access-settings-section form{display:grid;gap:12px}
.login-card label,.access-settings-section form>label{display:grid;gap:6px;font-size:13px;color:#405673}
.login-card input,.access-settings-section input:not([type=checkbox]),.access-settings-section select{width:100%;min-width:0;box-sizing:border-box;padding:9px 10px;border:1px solid #b8c9dc;border-radius:6px;font:inherit;color:#263b56;background:#fff}
.login-card .button{font-size:14px;padding:11px 14px;justify-content:center;width:100%}.login-divider{text-align:center;color:#8392a8;margin:18px 0;font-size:12px}
.login-footnote{text-align:center;font-size:12px!important}.access-dialog{width:min(640px,calc(100vw - 32px));max-height:85vh;overflow:auto;padding:24px;border:1px solid #bdcde1;border-radius:12px;color:#304a69;box-sizing:border-box}
.access-heading{display:flex;justify-content:space-between;gap:15px}.access-heading h2{font-size:21px;margin:0}.access-dialog p{font-size:13px;line-height:1.55;color:#667a93}
.access-settings-section{margin-top:20px;border-top:1px solid #dce5f0;padding-top:16px}.access-settings-section h3{font-size:15px;margin:0 0 10px}.access-bottom{margin-top:20px}
.passkey-row{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:13px;margin:10px 0}.user-settings{border:1px solid #d9e2ee;border-radius:7px;padding:12px;margin:10px 0}.user-settings>summary{cursor:pointer;font-size:14px}.user-settings form{padding-top:14px}.access-settings-section .grant-row{display:grid;grid-template-columns:minmax(140px,1fr) 155px;align-items:center;gap:12px}
button:disabled{cursor:not-allowed;opacity:.55}#access-feedback{color:#3d6195}.login-page [hidden],.access-dialog [hidden]{display:none!important}
