/* Scoped integration explorer. Recorded statuses stay visually distinct. */
.sg-shell{--sg-bg:#f5f4ec;--sg-panel:#fffef8;--sg-ink:#193a2c;--sg-muted:#687269;--sg-line:#dadfd3;--sg-green:#23734e;--sg-agent:#6979a7;--sg-review:#a77b3d;color:var(--sg-ink);font-family:var(--body,system-ui,sans-serif);max-width:1500px;margin:auto;padding:18px 0 42px}
.sg-shell *{box-sizing:border-box}.sg-header{display:flex;align-items:center;justify-content:space-between;gap:36px;padding:12px 0 28px}.sg-eyebrow{font-size:10px;letter-spacing:.15em;font-weight:700;color:var(--sg-muted)}
.sg-header h1{font-size:clamp(28px,3.5vw,46px);letter-spacing:-.045em;line-height:1.1;margin:12px 0 16px;font-weight:600}.sg-header p{font-size:15px;max-width:570px;color:var(--sg-muted);line-height:1.6;margin:0}.sg-totals{border-left:1px solid var(--sg-line);padding-left:28px;min-width:190px}.sg-totals strong{display:block;font-size:38px;font-weight:500;letter-spacing:-.04em}.sg-totals span{display:block;font-size:12px;line-height:1.5;color:var(--sg-muted)}
.sg-toolbar{display:flex;gap:14px;align-items:end;background:var(--sg-panel);border:1px solid var(--sg-line);border-radius:14px;padding:18px;margin-bottom:9px}.sg-toolbar label,.sg-inspector>label{display:block;font-size:11px;letter-spacing:.025em;font-weight:600}.sg-search-label{flex:1}.sg-shell input,.sg-shell select{display:block;background:white;color:var(--sg-ink);border:1px solid var(--sg-line);border-radius:7px;padding:10px 12px;margin-top:7px;font:inherit;font-size:13px;width:100%;min-height:41px}.sg-toolbar select{min-width:175px}.sg-shell button{font:inherit;cursor:pointer;border:1px solid var(--sg-line);border-radius:7px;background:var(--sg-panel);padding:10px 14px;color:var(--sg-ink);font-size:12px}.sg-shell button:hover{background:#edf2e6;border-color:#92ac98}.sg-shell button:disabled{opacity:.38;cursor:default}.sg-shell .sg-open{background:var(--sg-ink);color:white;min-height:41px}.sg-search-results{display:flex;gap:6px;flex-wrap:wrap;padding:0 0 9px}.sg-search-results:empty{padding:0}.sg-search-results span{align-self:center;font-size:12px;color:var(--sg-muted);padding:8px}.sg-scope-line{font-size:12px;color:var(--sg-muted);padding:7px 2px 12px}.sg-scope-line strong{color:var(--sg-ink)}
.sg-workspace{display:grid;grid-template-columns:minmax(0,1fr) 302px;gap:16px}.sg-map-panel{background:var(--sg-bg);border:1px solid var(--sg-line);border-radius:16px;overflow:hidden}.sg-focus-heading{padding:22px 24px 0;display:flex;justify-content:space-between;align-items:center;gap:15px}.sg-focus-heading h2{font-size:24px;letter-spacing:-.03em;margin:7px 0 0}.sg-focus-heading p{font-size:12px;color:var(--sg-muted);text-align:right}.sg-map-viewport{height:min(72vh,760px);min-height:460px;position:relative;overflow:hidden;touch-action:none;background:linear-gradient(135deg,#f7f7f0,#eff3eb)}.sg-diagram{width:100%;height:100%;display:block;max-height:none}.sg-map-controls{position:absolute;z-index:2;top:12px;right:12px;display:flex;gap:5px}.sg-map-controls button{background:rgba(255,254,248,.94);min-width:34px;padding:8px 10px}.sg-route{fill:none;stroke-width:1.4;cursor:pointer;opacity:.42;pointer-events:stroke}.sg-route:hover,.sg-route:focus{opacity:1;stroke-width:3;outline:none}.sg-route.sg-verified{stroke:var(--sg-green)}.sg-route.sg-agent_verified{stroke:var(--sg-agent);stroke-dasharray:7 4}.sg-route.sg-needs_review{stroke:var(--sg-review);stroke-dasharray:3 5}.sg-route.sg-unknown{stroke:var(--sg-muted);stroke-dasharray:2 6}.sg-arrow.sg-verified{fill:var(--sg-green)}.sg-arrow.sg-agent_verified{fill:var(--sg-agent)}.sg-arrow.sg-needs_review{fill:var(--sg-review)}.sg-arrow.sg-unknown{fill:var(--sg-muted)}
.sg-category-box{fill:rgba(255,254,248,.62);stroke:#d7dfd2;stroke-width:1}.sg-category-title{fill:var(--sg-ink);font-size:13px;font-weight:700}.sg-category-count{fill:var(--sg-muted);font-size:11px}.sg-node{cursor:pointer}.sg-node rect{fill:var(--sg-panel);stroke:#c9d3c4;stroke-width:1}.sg-node:hover rect,.sg-node:focus rect{stroke:var(--sg-green);stroke-width:2}.sg-node:focus{outline:none}.sg-node.sg-selected rect{fill:var(--sg-ink);stroke:var(--sg-ink);stroke-width:2}.sg-node-name{fill:var(--sg-ink);font-size:12px;font-weight:600}.sg-node-category{fill:var(--sg-muted);font-size:9px}.sg-node.sg-selected .sg-node-name{fill:white}.sg-node.sg-selected .sg-node-category{fill:#c5d8bf}
.sg-legend{border-top:1px solid var(--sg-line);padding:16px 20px;display:flex;gap:16px;flex-wrap:wrap;font-size:10px;color:var(--sg-muted)}.sg-key::before{content:'';display:inline-block;width:22px;border-top:2px solid var(--sg-green);margin-right:7px;vertical-align:middle}.sg-key.sg-agent_verified::before{border-color:var(--sg-agent);border-top-style:dashed}.sg-key.sg-needs_review::before{border-color:var(--sg-review);border-top-style:dotted}.sg-boundary{font-size:10px;line-height:1.6;color:var(--sg-muted);padding:0 20px 18px;margin:0}.sg-accessible{margin:0 20px 10px;border-top:1px solid var(--sg-line);padding-top:12px}.sg-accessible summary{cursor:pointer;font-size:12px;font-weight:650}.sg-accessible p{margin:9px 0}.sg-accessible ul{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:5px;list-style:none;margin:12px 0 4px;padding:0;max-height:230px;overflow:auto}.sg-accessible button{width:100%;text-align:left;padding:8px 10px;font-size:11px}.sg-accessible button[aria-pressed=true]{border-color:var(--sg-green);background:#e9f0e4}.sg-accessible button span{display:block;color:var(--sg-muted);font-size:9px;margin-top:4px}
.sg-inspector{background:var(--sg-panel);border:1px solid var(--sg-line);border-radius:16px;padding:20px;overflow-wrap:anywhere}.sg-inspector select{font-size:12px;margin-bottom:23px}.sg-status{display:inline-block;border-radius:20px;padding:5px 10px;background:#e8eee2;font-size:10px;text-transform:uppercase;letter-spacing:.07em}.sg-status.sg-agent_verified{background:#edf0f8;color:#526189}.sg-status.sg-needs_review{background:#f5eddb;color:#82632e}.sg-detail h3{font-size:22px;line-height:1.3;letter-spacing:-.025em;margin:13px 0 22px}.sg-detail dl{margin:0 0 20px}.sg-detail dl div{padding:9px 0;border-bottom:1px solid var(--sg-line)}.sg-detail dt{font-size:10px;color:var(--sg-muted);margin-bottom:4px}.sg-detail dd{font-size:12px;margin:0;line-height:1.5}.sg-detail h4{font-size:12px;margin:22px 0 12px}.sg-detail p{font-size:12px;line-height:1.65}.sg-detail pre{white-space:pre-wrap;font-size:10px}.sg-sources{padding:0;list-style:none}.sg-sources li{font-size:11px;line-height:1.6;border-bottom:1px solid var(--sg-line);padding:12px 0}.sg-sources span{display:block;color:var(--sg-muted)}.sg-sources a{color:var(--sg-green);text-decoration:underline;text-underline-offset:3px}.sg-shell .sg-muted{font-size:11px;color:var(--sg-muted);line-height:1.6}.sg-empty{padding:70px 28px;max-width:540px}.sg-empty h3{font-size:23px}.sg-empty p{color:var(--sg-muted);line-height:1.6}.sg-shell :focus-visible{outline:2px solid var(--sg-green);outline-offset:3px}.sg-detail .sg-failure{border-left:3px solid #ad5840;padding:9px 12px;background:#fff1e9;color:#823820}.sg-detail details{margin:14px 0;font-size:12px}.sg-detail summary{cursor:pointer;line-height:1.5}
@media(max-width:1050px){.sg-workspace{grid-template-columns:minmax(0,1fr)}.sg-inspector{display:block}.sg-detail dl{display:grid;grid-template-columns:1fr 1fr;gap:8px 24px}.sg-totals{display:none}}
@media(max-width:760px){.sg-toolbar{flex-wrap:wrap}.sg-search-label{flex-basis:100%}.sg-toolbar>label:not(.sg-search-label){flex:1;min-width:145px}.sg-focus-heading{display:block}.sg-focus-heading p{text-align:left}.sg-map-viewport{height:58vh;min-height:390px}.sg-legend{gap:12px}.sg-header h1{font-size:34px}}

.sg-toolbar{flex-wrap:wrap}.sg-toolbar label{min-width:0}.sg-toolbar select{max-width:290px}.sg-map-viewport{cursor:grab}.sg-map-viewport:active{cursor:grabbing}.sg-route{vector-effect:non-scaling-stroke;stroke-width:.7;opacity:.3}.sg-node-name{font-size:11px}.sg-category-title{font-size:13px}.sg-category-box{fill:#f5f7ed}.sg-inspector{min-width:0;max-height:940px;overflow:auto}.sg-diagram{min-width:0}.sg-shell select{max-width:100%}.sg-node:hover rect{stroke-width:3}.sg-map-panel{align-self:start}

.sg-compact circle{fill:#477b68;stroke:#f5f7ed;stroke-width:3}.sg-compact.sg-selected circle{fill:#bd722b;stroke:#193a2c}.sg-compact:hover circle,.sg-compact:focus circle{fill:#bd722b;stroke-width:7}.sg-compact .sg-node-name,.sg-compact .sg-node-category{display:none}.sg-route{opacity:.18}.sg-route:hover,.sg-route:focus{opacity:1;stroke-width:2}.sg-category-title{font-weight:600}.sg-category-count{display:none}
