:root{color-scheme:light;--bg:#f5f7fb;--panel:#fff;--card:#fff;--line:#dce3ed;--text:#182a42;--muted:#5b6d83;--blue:#2764c4;--green:#167759;--red:#be3545;--orange:#936012;--purple:#7951b0}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;overflow-x:hidden;background:var(--bg);color:var(--text);font:14px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}button,input,select{font:inherit}button{cursor:pointer;background:#fff;border:1px solid #ccd6e3;border-radius:7px;color:var(--text);padding:7px 12px;font-weight:550;white-space:nowrap}button:hover{border-color:#8ca7cd;background:#edf3fc}button:disabled{opacity:.5;cursor:wait}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #5989d4;outline-offset:2px}button.quiet{background:transparent;color:var(--muted)}header{height:68px;display:flex;align-items:center;gap:16px;padding:0 22px;border-bottom:1px solid var(--line);background:#fff}.brand{color:var(--text);text-decoration:none;display:flex;gap:12px;align-items:center}.brand b{display:grid;place-items:center;background:#244d85;color:#fff;width:40px;height:40px;border-radius:10px;font-size:21px;letter-spacing:-2px}.brand>span{font-size:12px;letter-spacing:1.4px;font-weight:750}.brand small{display:block;color:var(--muted);font-size:12px;letter-spacing:.1px;font-weight:450}.head-mid{display:flex;gap:15px;align-items:center;flex:1;margin-left:18px}.pill{font-size:12px;border:1px solid var(--line);border-radius:5px;padding:3px 9px;color:var(--muted)}.muted{color:var(--muted)}#connection{color:var(--muted);font-size:12px;max-width:290px}h1,h2,p{margin:0}h1{font-size:24px;font-weight:700;letter-spacing:-.6px}h2{font-size:18px;font-weight:650}.eyebrow{font-size:10px;letter-spacing:1.4px;color:var(--muted);font-weight:650}.workspace{display:grid;grid-template-columns:220px minmax(0,1fr);height:calc(100vh - 68px);min-height:520px}.workspace.details-open{grid-template-columns:220px minmax(0,1fr) 310px}.nav,.details{background:var(--panel);overflow:auto;overflow-x:hidden}.nav{padding:24px 15px;display:flex;flex-direction:column;border-right:1px solid var(--line)}.nav h2{margin:5px 0 18px}.search{display:flex;gap:8px;align-items:center;border:1px solid #cbd7e5;background:#f8fafd;border-radius:7px;padding:7px 10px}.search>span{font-size:24px;line-height:1;color:var(--muted)}.search input{width:100%;border:0;background:transparent;color:var(--text);font-size:13px;min-width:0}.envs{margin:18px 0 5px;display:grid;gap:5px}.envs button{text-align:left;background:transparent;border-color:transparent;display:flex;align-items:center;gap:9px;padding:9px}.envs button.selected{background:#edf3fc;border-color:#d1e0f5;color:#1e539f}.envs button>span{min-width:0;white-space:normal;line-height:1.35}.envs em{font-style:normal;margin-left:auto;font-size:12px;color:var(--muted)}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#718095;flex:none}.dot.LIVE{background:var(--blue)}.dot.TEST{background:var(--green)}.dot.LAB{background:var(--purple)}.dot.EXTERNAL{background:var(--orange)}.section{margin:20px 0 8px}#groups button{display:flex;width:100%;padding:7px 9px;border:0;background:transparent;color:#405774;text-align:left;gap:7px;font-size:12px;white-space:normal}#groups button:hover{background:#f0f4fa}.nav-bottom{margin-top:auto;padding-top:26px}.nav-bottom p{font-size:11px;color:var(--muted);margin-top:16px}.source{font-size:12px;display:flex;align-items:flex-start;gap:7px;margin-top:12px}.source .dot{margin-top:5px}.source small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.working{background:var(--green)!important}.error{background:var(--red)!important}.unknown{background:#718095!important}.disabled{background:#7b7387!important}main{min-width:0;min-height:0;display:flex;flex-direction:column;position:relative}.map-title{display:flex;justify-content:space-between;align-items:center;padding:16px 22px 12px;gap:12px;background:#fff}.map-title h1{margin:2px 0}.map-title p{font-size:12px}.tools{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;max-width:620px}.tools button{font-size:12px;padding:6px 9px}#focus{color:#245aa6;border-color:#bdd0eb;background:#f1f6fd}.tools button[aria-pressed=true]{background:#245aa6;color:#fff;border-color:#245aa6}.map-key{display:flex;align-items:center;gap:22px;padding:9px 22px;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted);background:#fff}.map-key>span{display:flex;align-items:center;gap:7px}.map-key-help{margin-left:auto}.key-line{display:inline-block;width:22px;border-top:2px solid #91a3bd}.key-line.declared{border-top-style:dashed}.key-line.route{border-top:3px solid var(--green)}#canvas{flex:1;min-height:250px;overflow:hidden;position:relative;touch-action:none;background-color:#f6f8fc;background-image:radial-gradient(#cfd8e5 .8px,transparent .8px);background-size:20px 20px}#map{width:100%;height:100%;display:block;cursor:grab}#map.dragging{cursor:grabbing}.lane-bg{fill:#fff;fill-opacity:.76;stroke:#d5dfea;stroke-width:1.2}.lane-stripe{stroke:none}.lane-label{font-size:20px;fill:var(--text);font-weight:750;letter-spacing:-.3px}.lane-sub{font-size:12px;fill:var(--muted)}.section-bg{fill:#edf2f8;fill-opacity:.7;stroke:#dbe4ee}.node{cursor:pointer;outline:none}.node .card{fill:#fff;stroke:#c8d4e3;stroke-width:1.1}.node.group .card{fill:#f0f5fc;stroke:#b9cce5}.node .icon-bg{fill:#eff4fb;stroke:none}.node .node-glyph{fill:none;stroke:#3c638e;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.node:hover .card,.node:focus .card,.node.selected .card{stroke:#2c65b9;stroke-width:2.6}.node.selected .card{fill:#f2f7ff}.node.active .card{stroke:var(--green);stroke-width:2.5;fill:#f0fbf6}.node.error-node .card{stroke:var(--red);stroke-width:2;fill:#fff7f8}.node.planned .card{stroke-dasharray:5 3;fill:#faf8fd}.node text{pointer-events:none;fill:var(--text);font-size:13px;font-weight:600}.node .sub{fill:var(--muted);font-size:10px;font-weight:450}.node .status{fill:var(--muted);font-size:10px;font-weight:500}.node .status.state-error,.node .status.state-failed{fill:var(--red)}.node .status.state-working,.node .status.state-running{fill:var(--green)}.node .groupmark{fill:#456a97;font-size:18px}.node .status-dot{fill:#718095}.node .status-dot.state-error,.node .status-dot.state-failed{fill:var(--red)}.node .status-dot.state-working,.node .status-dot.state-running{fill:var(--green)}.node .status-dot.state-designed{fill:var(--purple)}.node .status.state-designed{fill:var(--purple)}.edge{fill:none;stroke:#8fa2bf;stroke-width:1.2;opacity:.55;marker-end:url(#arrow)}.edge.declared{stroke-dasharray:5 5;opacity:.45}.edge.related{stroke:#4b74af;stroke-width:2;opacity:1}.edge.muted-edge{opacity:.12}.edge.observed{stroke:var(--green);stroke-width:3;opacity:1}.edge.observed.completed{stroke:#3573b9}.edge.observed.failed{stroke:var(--red)}.edge.observed.unknown,.edge.observed.cancelled,.edge.observed.pending{stroke:#718095;stroke-dasharray:5 5}.node.route-node:not(.active):not(.error-node) .card{stroke:#3573b9;stroke-width:2}.canvas-note{position:absolute;bottom:14px;left:18px;color:#52657e;font-size:11px;pointer-events:none;background:#ffffffeb;padding:6px 9px;border:1px solid #dce3ed;border-radius:6px}.zoom{position:absolute;bottom:14px;right:18px;display:flex;gap:8px;align-items:center;padding:3px;border:1px solid #ccd6e3;border-radius:8px;background:#fff;box-shadow:0 2px 8px #1e365a0b}.zoom button{border:0;background:transparent;font-size:20px;padding:1px 9px}.zoom span{font-size:12px;color:var(--muted);min-width:38px;text-align:center}#empty{position:absolute;top:45%;left:20%;color:var(--muted)}.events{height:180px;flex:none;border-top:1px solid var(--line);background:#fff}.events.compact{height:44px}.events-head{display:flex;gap:14px;align-items:center;padding:7px 18px;border-bottom:1px solid var(--line);font-size:12px;height:44px}.events-head button{border:0;padding:0;background:transparent;font-size:12px}.events-head button span{margin-left:8px}.legend{margin-left:auto;color:var(--muted);display:flex;align-items:center;gap:6px;font-size:11px}.legend i{display:inline-block;border-radius:50%;width:6px;height:6px;margin-left:9px}#journal{height:135px;overflow:auto}.event{display:grid;grid-template-columns:80px 65px 65px 1fr;gap:12px;padding:6px 18px;border-bottom:1px solid #edf1f6;color:#405572;font-size:12px}.event-time{color:var(--muted);font-variant-numeric:tabular-nums}.event.level-error{color:var(--red)}.empty-message{padding:20px;color:var(--muted);font-size:13px}.details{display:none;border-left:1px solid var(--line);padding:0 20px 20px}.details-open .details{display:block}.tabs{display:flex;gap:12px;align-items:center;margin:0 -20px 22px;padding:13px 16px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:1}.tabs button{background:transparent;border:0;border-radius:0;padding:5px 0;color:var(--muted);font-size:13px}.tabs button.selected{color:var(--blue);border-bottom:2px solid var(--blue)}.tabs span{background:#e7effa;color:#245aa6;border-radius:4px;padding:1px 5px;font-size:11px}#details-close{margin-left:auto;font-size:22px;padding:0 5px}.placeholder{padding:20px 0;color:var(--muted)}.placeholder h2{font-size:19px;color:var(--text);margin:15px 0 12px}.placeholder p{font-size:13px;line-height:1.8;margin-bottom:13px}.node-icon{color:#456a97;width:42px;height:42px;background:#edf3fc;border-radius:10px;display:grid;place-items:center;font-size:28px}.info-title{overflow-wrap:anywhere;font-size:22px;margin:9px 0 6px}.technical-name{font-size:12px;color:var(--muted);overflow-wrap:anywhere;margin-bottom:16px}.state-tag{display:inline-flex;padding:4px 8px;border-radius:5px;border:1px solid #d4dfec;color:#425974;background:#f6f8fc;font-size:11px;margin:0 4px 8px 0}.info-description{color:#405572;font-size:13px;line-height:1.8;margin:12px 0 20px}dl{margin:0}dt{font-size:11px;color:var(--muted);margin-top:17px;font-weight:600}dd{margin:5px 0;color:#243d5c;font-size:12px;overflow-wrap:anywhere;white-space:pre-wrap}.info-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.info-actions button{font-size:12px}.coverage{margin-top:28px;padding:18px 0;border-top:1px solid var(--line);font-size:12px}.coverage strong{display:block;margin-top:6px;font-weight:600;color:var(--orange)}.coverage ul{padding-left:16px;color:var(--muted);font-size:12px;line-height:1.7}.coverage li{margin-top:8px}select{margin:8px 0 16px;width:100%;max-width:100%;background:#f8fafd;color:var(--text);border:1px solid #c5d3e4;border-radius:6px;padding:9px;font-size:12px}.trace-step{margin:0 0 12px;padding:13px;border:1px solid #d9e2ee;border-left:3px solid #91a3bb;border-radius:6px;background:#fafcfe}.trace-step.running{border-left-color:var(--green)}.trace-step.failed{border-left-color:var(--red)}.trace-step strong{font-size:13px}.trace-step p{font-size:12px;color:var(--muted);margin:6px 0}.trace-step button{padding:4px 8px;font-size:12px}.trace-info{font-size:12px;color:var(--muted);margin:10px 0 16px;white-space:pre-line}.workspace.focus-mode{grid-template-columns:minmax(0,1fr)}.workspace.focus-mode>.nav{display:none}.workspace.focus-mode.details-open{grid-template-columns:minmax(0,1fr) 310px}.login-page{display:grid;place-items:center;min-height:100vh;background:radial-gradient(ellipse at 30% 0,#e3edfc,transparent 65%),#f6f8fc}.login-page form{width:min(420px,92vw);border:1px solid #d4deec;border-radius:16px;padding:38px;background:#fff;box-shadow:0 20px 70px #284b8012}.login-symbol{font-size:32px;letter-spacing:-3px;font-weight:850;color:#244d85;margin-bottom:25px}.login-page h1{margin:8px 0}.login-page label{display:block;margin-top:22px;color:#405572;font-size:13px}.login-page input{margin-top:7px;display:block;width:100%;border:1px solid #bfcee1;border-radius:7px;background:#f9fbfe;padding:11px;color:var(--text)}.login-page button{margin-top:25px;width:100%;padding:12px;background:#285fae;border-color:#285fae;color:#fff}.login-page small{display:block;margin-top:18px;text-align:center}.login-page #login-error{color:var(--red);font-size:13px;margin-top:12px}
@media(min-width:1900px){.workspace{grid-template-columns:240px minmax(0,1fr)}.workspace.details-open{grid-template-columns:240px minmax(0,1fr) 340px}.workspace.focus-mode.details-open{grid-template-columns:minmax(0,1fr) 340px}.nav{padding:26px 20px}.map-title{padding:18px 26px 14px}}
@media(max-width:1200px){.workspace{grid-template-columns:190px minmax(0,1fr)}.workspace.details-open{grid-template-columns:190px minmax(0,1fr) 280px}.workspace.focus-mode.details-open{grid-template-columns:minmax(0,1fr) 280px}.nav{padding:18px 12px}.map-title{padding:13px 16px;align-items:flex-start}.head-mid{margin-left:0}.pill{display:none}.tools{max-width:330px}.map-key-help{display:none}.map-key{gap:12px}.canvas-note{font-size:10px;max-width:65%}.legend{display:none}}
@media(max-width:850px){header{gap:8px;padding:0 12px}.brand>span{font-size:10px;letter-spacing:1px}.head-mid{display:none}#connection{margin-left:auto;font-size:10px;max-width:140px}header button{font-size:11px;padding:6px}.workspace,.workspace.details-open{grid-template-columns:150px minmax(0,1fr)}.nav{padding:18px 8px}.nav h2{font-size:16px}.envs button{font-size:12px;padding:7px 4px}.details-open .details{position:absolute;right:0;top:68px;bottom:0;width:min(340px,85vw);z-index:4;box-shadow:-12px 0 40px #1c3c7020}.workspace.focus-mode.details-open{grid-template-columns:minmax(0,1fr)}.map-title{display:block}.tools{justify-content:flex-start;max-width:none;margin-top:10px}.tools button{font-size:10px}.map-title h1{font-size:22px}.map-key{gap:10px;padding:8px 12px;font-size:9px}.map-key>span:last-of-type{display:none}.canvas-note{display:none}.events-head{padding:7px 10px;gap:8px}.events-head button{font-size:11px}#event-count{font-size:10px}.event{grid-template-columns:60px 45px 40px 1fr;font-size:11px;gap:6px;padding:6px 10px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
/* The original V1 canvas remains available; V2 only changes presentation. */
.brand-logo{display:block;width:108px;height:48px;overflow:hidden;flex:none}.brand>span{letter-spacing:.8px}.version-switch{display:flex;border:1px solid #d6dfeb;border-radius:8px;padding:3px;background:#f3f6fa;gap:3px}.version-switch button{border:0;background:transparent;color:#627086;padding:6px 10px;font-size:12px}.version-switch button[aria-pressed=true]{background:#fff;color:#214f88;box-shadow:0 1px 5px #233c681c}.map-v2 #canvas{background-color:#f8fafc;background-size:24px 24px}.map-v2 .map-key .route{border-color:#e68b22}#story-bar{padding:8px 22px;display:flex;gap:20px;justify-content:space-between;align-items:center;color:#53657a;font-size:11px;border-bottom:1px solid #e2e8f0;background:#f8fafc}#story-bar b{color:#294561;font-weight:600}#execution-note{text-align:right;max-width:48%;color:#6a5b47}.story-board{fill:#fff;stroke:#d7e1ed;stroke-width:1.4}.story-board.board-LIVE{fill:#f5f9ff;stroke:#b8cee9}.story-board.board-TEST{fill:#f1faf6;stroke:#c3e3d4}.story-board.board-LAB{fill:#faf6ff;stroke:#ded0ef}.story-board.board-EXTERNAL{fill:#fffcf5;stroke:#e9dfc9}.story-heading{font-size:23px;font-weight:750;fill:#243d59;letter-spacing:-.4px}.story-caption{font-size:12px;fill:#61758c}.story-column{font-size:11px;font-weight:700;letter-spacing:1px;fill:#607b9b}.story-section{font-size:16px;font-weight:650;fill:#3d5876}.story-node .card{stroke:#c6d5e5;stroke-width:1.3;filter:drop-shadow(0 3px 5px #18345407)}.story-node.orchestrator .card{fill:#f6f0ff;stroke:#b89cdd;stroke-width:2}.story-node.owner .card{fill:#fffdf2;stroke:#d5bd66;stroke-width:1.8}.story-node.cluster .card{fill:#fff;stroke:#b6c8de}.story-node.database .card{fill:#f0f8fc;stroke:#a5c9dd}.story-node.channel .card{fill:#fff;stroke:#adcee2}.story-node .story-name{font-size:14px;font-weight:650;fill:#243d59}.story-node .hero-title{font-size:23px;font-weight:750;fill:#4e3377;letter-spacing:-.4px}.story-node .story-role{font-size:12px;font-weight:450;fill:#60718a}.story-node .story-children{font-size:12px;fill:#4e6b91;font-weight:550}.story-node .status{font-size:11px;font-weight:450}.story-node .node-glyph{stroke:#426d93;stroke-width:1.7}.story-node .expand-hit{fill:#edf3fa;stroke:none}.story-node .expand-control:hover .expand-hit,.story-node .expand-control:focus .expand-hit{fill:#d6e6fa}.story-node .expand-control{outline:none}.story-node .groupmark{font-size:20px}.story-node.planned .card{stroke-dasharray:6 4}.story-node.selected .card,.story-node:focus .card{stroke:#316dc0;stroke-width:2.8}.story-node.active .card{stroke:#e29329;stroke-width:3;fill:#fffaf0}.story-node.error-node .card{stroke:#c8414f;fill:#fff5f6}.story-node.route-node:not(.active):not(.error-node) .card{stroke:#3573b9;stroke-width:2}.story-edge{stroke:#7394b8;stroke-width:2;opacity:.7}.story-edge.declared{stroke-dasharray:6 4;opacity:.65}.story-edge.cross{opacity:.25;stroke-width:1.5}.story-edge.related{opacity:1;stroke:#275a9c;stroke-width:2.8}.story-edge.muted-edge{opacity:.1}.edge-label{font-size:11px;fill:#5a7494;paint-order:stroke;stroke:#f5f9ff;stroke-width:5;stroke-linejoin:round}.story-observed{stroke-width:3.5}.story-observed.flowing{stroke:#e3942f;stroke-dasharray:9 7;animation:flow-route 1s linear infinite}.paused .flowing{animation-play-state:paused}@keyframes flow-route{to{stroke-dashoffset:-32}}
@media(max-width:1200px){header{gap:10px;padding:0 15px}.brand-logo{width:92px}.head-mid{display:none}#connection{margin-left:auto}.brand>span{font-size:10px}.version-switch button{font-size:11px;padding:6px 8px}#story-bar{padding:7px 16px;font-size:10px}}
@media(max-width:850px){header{height:auto;min-height:68px;flex-wrap:wrap;padding-top:8px;padding-bottom:8px}.brand>span{display:none}.brand-logo{width:88px;height:40px}.version-switch{margin-left:auto}#connection{max-width:100px}header #refresh{display:none}#story-bar{display:block}#execution-note{display:block;text-align:left;max-width:none;margin-top:3px}}
@media(prefers-reduced-motion:reduce){.story-observed.flowing{animation:none;stroke-dasharray:9 5}}
/* V2 level navigation: the same graph, bounded detail, readable text at every width. */
.level-navigation .workspace{grid-template-columns:224px minmax(0,1fr);height:calc(100dvh - 68px);min-height:0;position:relative}
.level-navigation main{min-height:0;min-width:0}
.level-navigation .workspace.details-open{grid-template-columns:224px minmax(0,1fr)}
.level-navigation .details-open .details{position:absolute;z-index:12;inset:0 0 0 auto;width:360px;max-width:100%;box-shadow:-12px 0 40px #18345420;background:#fff;overflow:auto}
.level-navigation .workspace.focus-mode{grid-template-columns:minmax(0,1fr)}
.level-navigation #canvas{overflow:auto;min-height:160px;flex:1;background:#f5f8fc;touch-action:pan-y}
.level-navigation #map{position:absolute;inset:0;width:100%;height:100%;touch-action:none}
.level-navigation:not(.level-diagram) #canvas>.zoom,.level-navigation .canvas-note{display:none}
.level-navigation .map-title{padding:12px 18px;gap:12px;align-items:center}
.level-navigation .map-title h1{font-size:24px}.level-navigation .map-title .eyebrow{display:none}
.level-navigation .map-title p{font-size:12px;margin:3px 0}
.level-navigation .tools{max-width:unset;flex-wrap:wrap;gap:6px}
.level-navigation .tools button{min-height:40px;font-size:12px}
.level-navigation #open-traces{display:none}
#view-tabs{display:flex;gap:5px;padding:0 18px 10px;background:#fff;border-bottom:1px solid #e1e7ef}
#view-tabs button{min-height:42px;white-space:normal;border-color:transparent;color:#51657c}
#view-tabs button[aria-current=page]{background:#eaf2fc;border-color:#c5d7ee;color:#214f88}
#level-header{background:#fff;padding:8px 18px;border-bottom:1px solid #e1e7ef}
#breadcrumbs{display:flex;gap:5px;align-items:center;overflow-x:auto;max-width:100%;padding-bottom:2px}
#breadcrumbs button{flex-shrink:0;max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-height:40px;font-size:12px;border:0;background:#f2f5f9}
#breadcrumbs button:last-child{font-weight:700;color:#245b9e}
#level-notice{font-size:12px;margin:5px 0;max-height:42px;overflow:auto;color:#2a587b;overflow-wrap:anywhere}
#level-pager{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:12px}
#level-pager:not(:empty){padding-top:8px}#level-pager button{min-height:40px}
#level-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:18px;align-content:start}
.level-card{border:1px solid #d8e3ee;border-top:3px solid var(--accent);background:#fff;border-radius:12px;padding:16px;min-width:0;box-shadow:0 3px 10px #23406505;display:flex;flex-direction:column;gap:8px}
.level-card.chosen{outline:2px solid #2764c4}.level-card.has-error{border-top-color:#be3545}.level-card.has-active{box-shadow:0 0 0 2px #e29329}
.level-card-head{display:flex;align-items:center;gap:10px;min-height:40px}.level-card-head svg{flex:none}
.level-card .card-title{text-align:left;font-size:17px;line-height:1.35;font-weight:700;border:0;padding:0;background:none;overflow-wrap:anywhere;min-height:44px}
.card-preview{font-size:12px;color:#61758a;margin:0}.card-counts{font-size:14px;font-weight:650;margin:0}
.card-states{display:flex;flex-wrap:wrap;gap:4px;font-size:12px}.card-states span{background:#f2f5f9;border-radius:5px;padding:2px 6px}
.card-freshness{font-size:11px;color:#61758a;display:block}.card-actions{display:flex;gap:7px;margin-top:auto}.card-actions button{min-height:42px;flex:1}
.level-connections{grid-column:1/-1;background:#eef3f8;border-radius:10px;padding:12px 16px;font-size:12px;color:#4f647b}
.level-connections p{margin:5px 0;overflow-wrap:anywhere}.level-navigation .map-key{font-size:11px;padding:6px 18px}.level-navigation #story-bar{font-size:11px;padding:7px 18px}
#view-content{padding:18px;max-width:100%;overflow-wrap:anywhere}#view-content select{min-height:44px;width:100%;max-width:300px;margin-bottom:12px}
.process-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.process-card{text-align:left;padding:14px;min-height:94px;display:flex;flex-direction:column;gap:6px;font-weight:400;overflow-wrap:anywhere}.process-card strong{font-size:14px}.process-card small{color:#61758a;font-size:12px}
.source-card{padding:14px;border:1px solid #dce5ef;border-radius:9px;background:#fff;margin-bottom:10px;display:flex;flex-direction:column;gap:5px}.source-card p{margin:3px 0}.source-card small{display:block;color:#61758a}.source-card>span{font-size:12px}
.relations{display:flex;flex-direction:column;gap:6px}.relations button{text-align:left;min-height:44px;overflow-wrap:anywhere}.relations small{color:#61758a;font-size:12px;margin-bottom:8px}
.level-navigation .details button,.level-navigation .details select{min-height:44px}.level-navigation .details .tabs{position:sticky;top:0;z-index:2;background:#fff}.level-navigation .details dd{overflow-wrap:anywhere}
.level-navigation .events:not(.compact){max-height:180px}.level-navigation .events.compact{flex:none}
@media(min-width:1600px){.level-navigation .level-card{padding:20px;min-height:210px}.level-navigation .card-title{font-size:19px}.level-navigation #level-cards{gap:18px;padding:22px}}
@media(max-width:1100px){.level-navigation .workspace,.level-navigation .workspace.details-open{grid-template-columns:190px minmax(0,1fr)}#level-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.level-navigation #focus{display:none}.level-navigation .tools{margin-top:8px}.level-navigation .map-title{display:block}.level-navigation .brand>span{font-size:10px}}
@media(max-width:800px){
 .level-navigation header{height:76px;min-height:76px;padding:6px 12px;gap:6px;flex-wrap:wrap}.level-navigation .brand-logo{width:76px;height:30px}.level-navigation .brand>span{display:block;font-size:10px}.level-navigation .brand small{font-size:10px}.level-navigation .head-mid,.level-navigation header #refresh{display:none}
 .level-navigation #connection{font-size:11px;max-width:none;order:5;width:100%;margin:0}.level-navigation .version-switch{margin-left:auto}.level-navigation .version-switch button{font-size:11px;padding:6px;min-height:34px}.level-navigation #logout{font-size:11px;min-height:34px}
 .level-navigation .workspace,.level-navigation .workspace.details-open{height:calc(100dvh - 76px);display:flex;flex-direction:column;padding-bottom:62px}
 .level-navigation .nav{padding:8px 12px;border-right:0;border-bottom:1px solid #e1e7ef;flex:none;overflow:visible;background:#fff}.level-navigation .nav>*:not(.search){display:none}.level-navigation .nav .search{margin:0;height:42px}.level-navigation .nav input{font-size:16px}
 .level-navigation main{flex:1;display:flex;flex-direction:column;overflow:hidden}.level-navigation .map-title{padding:10px 12px;display:block}.level-navigation .map-title h1{font-size:21px;line-height:1.25}.level-navigation .map-title .tools{margin:6px 0 0;gap:6px;display:flex;flex-wrap:nowrap;overflow-x:auto}.level-navigation .tools button{min-height:42px;flex:none;font-size:12px}.level-navigation #fit{display:none}.level-navigation.level-diagram #fit{display:block}.level-navigation #details-toggle{margin-left:auto}
 .level-navigation #view-tabs{position:fixed;z-index:15;bottom:0;left:0;right:0;padding:6px 6px max(6px,env(safe-area-inset-bottom));gap:3px;box-shadow:0 -3px 16px #23406512;border-top:1px solid #dbe3ee}.level-navigation #view-tabs button{flex:1;min-height:48px;padding:5px 3px;font-size:12px;line-height:1.2;border-radius:7px}
 .level-navigation #level-header{padding:5px 12px}.level-navigation #breadcrumbs button{font-size:12px;max-width:180px}.level-navigation #level-notice{max-height:32px;font-size:11px}.level-navigation #level-pager{font-size:11px}.level-navigation #level-pager button{padding:5px 8px;min-height:40px}
 .level-navigation .map-key{display:none}.level-navigation #story-bar{display:none}.level-navigation .events{display:none}
 .level-navigation #level-cards{padding:12px;gap:12px}.level-navigation #canvas{min-height:120px}.level-navigation .details-open .details{position:fixed;inset:76px 0 62px;width:100%;max-width:100%;z-index:20;border-left:0;box-shadow:none;border-radius:16px 16px 0 0}.level-navigation .details #info,.level-navigation .details #trace-panel{padding:16px}.level-navigation .details .coverage{padding:16px}
 .level-navigation .process-list{grid-template-columns:1fr}.level-navigation .level-card{padding:14px;min-height:185px}.level-navigation .card-title{font-size:17px}.level-navigation .card-freshness{font-size:12px}.level-navigation .card-states{font-size:13px}.level-navigation .card-preview{font-size:13px}.level-navigation #view-content{padding:12px}
}
@media(max-width:520px){.level-navigation #level-cards{grid-template-columns:minmax(0,1fr)}.level-navigation .brand>span{display:none}.level-navigation header .brand-logo{width:86px}.level-navigation .level-card{min-height:190px}.level-navigation #level-pager span{width:100%}}
@media(max-height:500px) and (max-width:1000px){.level-navigation header{height:60px;min-height:60px}.level-navigation .workspace{height:calc(100dvh - 60px)}.level-navigation .nav{display:none}.level-navigation .map-title{padding:5px 12px;display:flex}.level-navigation #level-notice{display:none}.level-navigation .details-open .details{top:60px}.level-navigation #level-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* A bounded company overview; detail cards keep their full evidence. */
.level-card-head .node-glyph{fill:none;stroke:var(--accent);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.level-overview:not(.level-diagram) #breadcrumbs{display:none}
.level-overview:not(.level-diagram) #level-header:has(#level-notice[hidden]){padding:0;border:0}
.level-overview .level-card{min-height:0;padding:12px;gap:5px}
.level-overview .card-actions{display:none}
.level-overview .level-card-head{min-height:44px}
.level-overview .card-title{flex:1}
.level-overview .level-connections{padding:8px 12px}
@media(min-width:801px){.level-overview #level-cards{gap:10px;padding:14px}.level-overview .card-preview{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.level-overview .card-states{max-height:38px;overflow:auto}}
@media(max-width:800px){
 .level-overview #level-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px}
 .level-overview .level-card{padding:10px;min-height:0;gap:5px}
 .level-overview .level-card-head{gap:6px;align-items:flex-start}
 .level-overview .level-card-head svg{width:20px;height:20px;margin-top:10px}
 .level-overview .card-title{font-size:16px;line-height:1.25}
 .level-overview .card-preview,.level-overview .card-freshness{display:none}
 .level-overview .card-counts{font-size:12px;line-height:1.4}
 .level-overview .card-states{font-size:12px;line-height:1.3;max-height:52px;overflow:auto}
 .level-overview .level-card:nth-child(5):last-of-type{grid-column:1/-1}
}

.level-navigation .card-title{white-space:normal;min-width:0}
