body{background-color:#0d1419;background-image:repeating-linear-gradient(125deg,transparent 0 105px,#24363c44 106px,transparent 107px 235px),radial-gradient(ellipse at 85% 0%,#19353899,transparent 54%)}header{background:#111a20d9}h1{margin-bottom:26px}.stage{background-image:linear-gradient(90deg,#547b7020 1px,transparent 1px),linear-gradient(#547b7020 1px,transparent 1px),radial-gradient(#455c62 1px,transparent 1px);background-size:84px 84px,84px 84px,14px 14px}.stage svg{aspect-ratio:1020/580;min-width:0;touch-action:none;user-select:none;cursor:grab}.stage svg:active{cursor:grabbing}.tools{position:absolute;top:8px;left:8px;z-index:1;display:flex;gap:3px;align-items:center;background:#131e24ed;padding:3px;border:1px solid #43555d;border-radius:7px}.tools button{font-size:14px;padding:1px 7px}.tools output{font:11px var(--mono);min-width:4ch;text-align:center}.tags{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0 14px}.tags span{font:11px/1.4 var(--mono);padding:3px 7px;border-radius:5px;color:#9bdedb;background:#163536}.tags span:first-child{color:#c4eda3;background:#2a3827}.tags span:last-child{color:#dcbeff;background:#33293d}details{margin:10px 0}summary{cursor:pointer;color:var(--cyan);font-weight:550}.edge.on .wire{stroke-width:4}.repo.on rect{stroke-width:3}#report p{line-height:1.65}@media(max-width:650px){.stage svg{aspect-ratio:1.35}.tools{top:4px;left:4px}.repo text{font-size:15px}}

/* Reserve a separate row so controls never cover a fitted endpoint. */
.tools{position:static;width:fit-content;margin:6px 8px;gap:5px}
.tools button{min-width:40px;min-height:38px;padding:5px 9px}
.tools output{font-size:13px}
.stage svg{aspect-ratio:1020/580;overflow:hidden}
.stage svg.compact{aspect-ratio:600/780}
.repo text{font-size:18px}
.compact .repo text{font-size:24px}
.tags span,.entry small,.legend{font-size:12px}
.panel .entry{font-size:14px;overflow-wrap:anywhere}
.panel details summary{padding:6px 0}
@media(max-width:650px){
  nav select{width:100%;margin-top:3px}
  .tools button,nav button,nav select{min-height:44px}
  .panel{padding:16px}
  .stage svg{aspect-ratio:1020/580}
}
@media(max-width:850px) and (orientation:landscape) and (max-height:520px){
  .stage svg{max-height:calc(100svh - 70px)}
}

.repo text{font-weight:400;stroke-width:2px}

.legend{justify-content:flex-start;gap:3px 12px;padding:9px 12px;border-bottom:0}
.legend a,#reference-entries h3{display:inline-flex;align-items:center;gap:6px}
.legend a{min-height:34px;color:var(--ink);text-underline-offset:3px;text-decoration-color:#718d91}
.legend a:hover{color:var(--cyan)}
.key-symbol{width:24px;height:22px;flex:none;overflow:visible}
#map-reference{margin-top:32px;padding-top:20px;border-top:1px solid var(--line)}
#reference-entries{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:10px;margin-top:16px}
#reference-entries section{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:14px;scroll-margin-block:12px}
#reference-entries h3{margin:0;color:var(--ink)}
#reference-entries p{margin:6px 0 0;color:#cedbd9}
#reference-entries section:target,#reference-entries section:focus{outline:2px solid var(--lime);outline-offset:1px;background:#213029}
@media(max-width:850px){.legend a{min-height:44px}}

.repository-profile{margin:14px 0 18px}
.repository-profile dt{font-size:14px;font-weight:650;color:var(--ink);margin-top:10px}
.repository-profile dd{font-size:14px;line-height:1.5;margin:2px 0 0;color:#cedbd9}
