:root {
  color-scheme: dark;
  --bg: #0c100f;
  --panel: #101613;
  --line: #26312b;
  --text: #e5ece6;
  --dim: #9ba99f;
  --green: #adf56b;
  --mono: Consolas, "Courier New", monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.5 Arial,
    sans-serif;
}
button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 12px;
}
button:hover {
  background: #202b23;
  border-color: #637c65;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--green);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.mast {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 0 32px;
  font: 12px var(--mono);
  letter-spacing: 1px;
}
.brand {
  color: var(--green);
  font: bold 24px Arial;
  letter-spacing: -1.5px;
}
.slash {
  color: #526656;
  font-size: 25px;
}
.private {
  margin-left: auto;
  color: var(--dim);
  font-size: 10px;
}
.eyebrow {
  font: 10px/1.5 var(--mono);
  letter-spacing: 2px;
  color: var(--green);
  margin: 0 0 12px;
}
.gate {
  min-height: calc(100dvh - 70px);
  max-width: 1440px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 65px 80px 0;
  position: relative;
  overflow: hidden;
}
.intro {
  padding: 30px 0 90px;
  z-index: 1;
}
.intro h1 {
  font-size: clamp(72px, 8.5vw, 128px);
  line-height: 0.94;
  font-weight: 500;
  letter-spacing: -7px;
  margin: 28px 0;
}
.lede {
  font-size: 19px;
  color: #b3c1b6;
  max-width: 400px;
  line-height: 1.65;
  margin: 32px 0;
}
.primary {
  display: inline-flex;
  gap: 42px;
  align-items: center;
  background: var(--green);
  color: #10200c;
  padding: 15px 21px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 15px;
}
.primary:hover {
  background: #c5ff91;
  color: #10200c;
}
.access-note {
  color: var(--dim);
  font-size: 12px;
  margin-top: 18px;
  line-height: 1.7;
}
#notice {
  color: var(--green);
  max-width: 390px;
}
.cover-map {
  position: relative;
  aspect-ratio: 1/1;
  min-width: 0;
  max-width: 550px;
  background: radial-gradient(circle, #25352555, transparent 63%);
}
.orbit {
  position: absolute;
  inset: 12%;
  border: 1px solid #3b543d;
  border-radius: 50%;
  transform: rotate(-30deg) scaleY(0.58);
}
.orbit.two {
  transform: rotate(35deg) scaleY(0.58);
  inset: 3%;
}
.orbit.three {
  transform: rotate(100deg) scaleY(0.58);
  inset: 7%;
}
.map-center {
  position: absolute;
  inset: 36%;
  display: grid;
  place-content: center;
  border: 1px solid #a2cb6d;
  border-radius: 50%;
  font: 50px var(--mono);
  color: #7b9971;
  background: #101a13;
}
.map-center span {
  position: absolute;
  color: var(--green);
  left: 43%;
  top: 24%;
  font-size: 42px;
}
.point {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 24px #adf56b55;
}
.point.a {
  left: 20%;
  top: 30%;
}
.point.b {
  right: 15%;
  bottom: 32%;
}
.point.c {
  left: 48%;
  top: 10%;
}
.point.d {
  left: 31%;
  bottom: 16%;
}
.cover-caption {
  position: absolute;
  bottom: -30px;
  width: 100%;
  text-align: center;
  font: 9px var(--mono);
  letter-spacing: 2px;
  color: #718d76;
}
.gate-foot {
  grid-column: 1/-1;
  align-self: end;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 20px 0;
  font: 10px var(--mono);
  color: var(--dim);
}
.project-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 27px 32px;
  border-bottom: 1px solid var(--line);
}
.project-bar h1 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.6px;
  margin: 0;
}
.project-bar .eyebrow {
  margin: 0 0 5px;
  font-size: 9px;
}
.muted {
  color: var(--dim);
}
.snapshot {
  font: 11px/1.8 var(--mono);
  color: var(--dim);
  text-align: right;
}
.snapshot strong {
  color: var(--text);
  font-weight: normal;
}
.workbench {
  display: grid;
  grid-template-columns: 250px minmax(360px, 1fr) 300px;
  min-height: 460px;
  height: calc(100dvh - 235px);
}
.navigator {
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.navigator label,
.list-heading,
.detail-label {
  font: 9px var(--mono);
  letter-spacing: 1.2px;
  color: var(--dim);
}
.search-wrap {
  position: relative;
  margin: 12px 0 18px;
}
.search-wrap input {
  width: 100%;
  background: #151e18;
  border: 1px solid #344039;
  padding: 11px 22px 11px 10px;
  border-radius: 4px;
  color: var(--text);
  font-size: 12px;
}
.search-wrap kbd {
  position: absolute;
  right: 10px;
  top: 11px;
  color: var(--dim);
}
.overview {
  font-size: 12px;
  text-align: left;
  border: none;
  padding: 10px 7px;
  margin-bottom: 9px;
}
.active {
  color: var(--green) !important;
  background: #adf56b12 !important;
}
.group-list {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  flex-shrink: 0;
}
.group-list button {
  font-size: 11px;
  border: 0;
  padding: 5px 7px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: 4px;
}
.group-list small {
  color: #778e7c;
  font: 9px var(--mono);
  padding-top: 3px;
}
.list-heading {
  display: flex;
  justify-content: space-between;
  margin: 18px 0 10px;
}
.file-list {
  overflow: auto;
  min-height: 80px;
}
.file-list button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  font: 11px/1.4 var(--mono);
  padding: 8px 7px;
  overflow-wrap: anywhere;
}
.file-list small {
  display: block;
  color: #718778;
  font: 9px/1.4 var(--mono);
  margin-top: 2px;
}
.canvas-panel {
  min-width: 0;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  background-image: radial-gradient(#25332a 1px, transparent 1px);
  background-size: 22px 22px;
}
.canvas-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 24px 0;
  background: linear-gradient(var(--bg), #0c100fcc, transparent);
  z-index: 1;
}
.canvas-head .eyebrow {
  font-size: 9px;
  margin-bottom: 5px;
}
.canvas-head h2 {
  font-size: 19px;
  font-weight: 400;
  margin: 0;
}
.canvas-head > span {
  font: 10px var(--mono);
  color: var(--dim);
}
.map-wrap {
  position: relative;
  min-height: 0;
  flex: 1;
}
.map-wrap svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  user-select: none;
  cursor: grab;
}
.map-wrap svg.dragging {
  cursor: grabbing;
}
#map-empty {
  position: absolute;
  top: 40%;
  width: 100%;
  text-align: center;
  color: var(--dim);
}
.edge {
  stroke: #3b5441;
  stroke-width: 1;
  fill: none;
  opacity: 0.58;
}
.edge.selected {
  stroke: var(--green);
  opacity: 0.8;
  stroke-width: 1.7;
}
.graph-node {
  cursor: pointer;
}
.graph-node circle {
  fill: #152319;
  stroke: #527653;
  stroke-width: 1.2;
  transition:
    fill 0.18s,
    stroke 0.18s;
}
.graph-node:hover circle,
.graph-node:focus circle {
  fill: #2c4127;
  stroke: var(--green);
}
.graph-node.selected circle {
  fill: var(--green);
  stroke: #d7ffb2;
}
.graph-node text {
  fill: #cbd9ce;
  font: 13px var(--mono);
  pointer-events: none;
}
.graph-node .node-count {
  fill: #7e9d86;
  font: 11px var(--mono);
}
.graph-node.selected .node-count {
  fill: #2a431c;
}
.graph-node .module-name {
  fill: #e1eee4;
  font-size: 16px;
}
.graph-node .file-name {
  font-size: 12px;
  paint-order: stroke;
  stroke: var(--bg);
  stroke-width: 5px;
  stroke-linejoin: round;
}
.map-tools {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px 20px;
  font: 10px var(--mono);
  color: var(--dim);
}
.map-tools div {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.map-tools button {
  padding: 5px 9px;
  font: 13px var(--mono);
  background: #101a14;
}
.legend {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 13px 20px;
  font: 9px var(--mono);
  color: var(--dim);
}
.legend i {
  display: inline-block;
  background: var(--green);
  border-radius: 50%;
  height: 5px;
  width: 5px;
  margin-right: 5px;
}
.inspector {
  border-left: 1px solid var(--line);
  padding: 25px 23px;
  overflow: auto;
}
.inspector h2 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  margin: 14px 0;
}
.inspector p {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.75;
}
.inspector .path {
  font: 10px/1.8 var(--mono);
  color: #849b8b;
  overflow-wrap: anywhere;
}
.inspector .source-link {
  display: block;
  margin: 22px 0;
  padding: 11px 12px;
  border: 1px solid #526e46;
  border-radius: 4px;
  color: var(--green);
  font-size: 12px;
}
.inspector .metrics {
  display: flex;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  gap: 30px;
  padding: 18px 0;
  margin: 22px 0;
}
.metrics b {
  font: 25px var(--mono);
  display: block;
  font-weight: normal;
  color: var(--text);
}
.metrics span {
  font: 9px var(--mono);
  color: var(--dim);
}
.detail-section {
  margin-top: 24px;
}
.detail-section h3 {
  font: 9px var(--mono);
  letter-spacing: 1.2px;
  color: var(--dim);
  margin-bottom: 10px;
}
.detail-section button {
  display: block;
  border: 0;
  width: 100%;
  text-align: left;
  padding: 6px 0;
  font: 11px var(--mono);
  overflow-wrap: anywhere;
}
.detail-section ul {
  padding: 0;
  list-style: none;
  font: 10px/1.9 var(--mono);
  color: #b2c2b7;
  overflow-wrap: anywhere;
}
.inspector .number {
  font: 56px/1 var(--mono);
  color: var(--green);
  margin: 27px 0 7px;
}
.inspector .explain {
  padding-top: 23px;
  margin-top: 23px;
  border-top: 1px solid var(--line);
}
.workspace-foot {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 30px;
  border-top: 1px solid var(--line);
  color: #899e8d;
  font: 9px/1.5 var(--mono);
}
.workspace-foot a {
  color: var(--text);
}
@media (min-width: 1700px) {
  .workbench {
    grid-template-columns: 280px minmax(360px, 1fr) 340px;
  }
}
@media (max-width: 1100px) {
  .workbench {
    grid-template-columns: 210px minmax(330px, 1fr) 245px;
  }
  .inspector {
    padding: 22px 16px;
  }
  .group-list {
    grid-template-columns: 1fr;
  }
  .group-list button {
    padding: 3px 7px;
  }
  .gate {
    padding: 50px 40px 0;
  }
}
@media (max-width: 850px) {
  .mast {
    padding: 0 18px;
    height: 60px;
    gap: 14px;
  }
  .private {
    display: none;
  }
  .mast #signout {
    margin-left: auto;
  }
  .project-bar {
    padding: 20px;
  }
  .snapshot {
    font-size: 9px;
  }
  .workbench {
    height: auto;
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .navigator {
    grid-row: 1/3;
    max-height: 1050px;
  }
  .canvas-panel {
    height: 560px;
  }
  .inspector {
    border-left: 0;
    border-top: 1px solid var(--line);
    min-height: 300px;
  }
  .workspace-foot {
    padding: 15px 20px;
    flex-direction: column;
    gap: 5px;
  }
  .gate {
    grid-template-columns: 1fr;
    padding: 30px 30px 0;
  }
  .intro {
    padding: 20px 0 55px;
  }
  .intro h1 {
    font-size: 90px;
  }
  .cover-map {
    display: none;
  }
  .lede {
    font-size: 17px;
  }
  .gate-foot {
    font-size: 9px;
    gap: 20px;
  }
}
@media (max-width: 540px) {
  .project-bar h1 {
    font-size: 20px;
  }
  .snapshot {
    max-width: 100px;
    overflow-wrap: anywhere;
  }
  .workbench {
    display: flex;
    flex-direction: column;
  }
  .navigator {
    max-height: 310px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px;
  }
  .navigator label,
  .group-list {
    display: none;
  }
  .search-wrap {
    margin: 0 0 5px;
  }
  .list-heading {
    margin: 8px 0;
  }
  .file-list {
    max-height: 170px;
    min-height: 0;
  }
  .canvas-panel {
    height: 480px;
    order: 1;
  }
  .inspector {
    order: 2;
    padding: 24px;
  }
  .canvas-head {
    padding: 20px 18px 0;
  }
  .map-tools {
    padding: 10px 14px;
  }
  .legend {
    padding: 12px 14px;
    font-size: 8px;
  }
  .project-bar .muted {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.canvas-head > div {
  min-width: 0;
  padding-right: 12px;
}
.canvas-head h2 {
  overflow-wrap: anywhere;
}
.canvas-head > span {
  flex-shrink: 0;
}
.graph-node .module-name {
  font-size: 13px;
}
.graph-node .node-count {
  font-size: 10px;
}

/* Keep sign-in visible on shorter laptop windows. */
@media (min-width: 851px) and (max-height: 780px) {
  .gate { padding-top: 20px; }
  .intro { padding-top: 0; padding-bottom: 25px; }
  .intro h1 { font-size: 92px; margin: 22px 0; }
  .lede { margin: 22px 0; font-size: 17px; }
}
.map-center { display: flex; align-items: center; justify-content: center; gap: 4px; }
.map-center span { position: static; }
