.site-map-shell {
  width: min(900px, 100%);
  margin: 0 auto 2rem;
}

.site-map-header {
  margin-bottom: 1.25rem;
  text-align: center;
}

.site-map-header h1 {
  margin: 0 0 0.35rem;
  font-family: "Uncial Antiqua", "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #d4af37;
}

.site-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  color: rgba(190, 210, 225, 0.9);
  text-align: center;
}

.site-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.site-map-legend i {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 3px;
  display: inline-block;
}

.site-map-blocked {
  max-width: 42rem;
  margin: 4rem auto;
  padding: 1.25rem;
  border: 1px solid rgba(179, 18, 18, 0.45);
  border-radius: 12px;
  background: rgba(20, 8, 8, 0.85);
  color: #ffd8d8;
  text-align: center;
}

.wire-board {
  display: grid;
  gap: 1.35rem;
}

.wire-zone {
  position: relative;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 14px;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(14, 18, 24, 0.96), rgba(4, 6, 10, 0.98)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.015) 0,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px,
      transparent 24px
    );
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.55);
}

.wire-zone__title {
  margin: 0 0 0.75rem;
  font: 700 0.92rem/1.2 Arial, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d4af37;
}

.wire-zone__desc {
  margin: -0.35rem 0 0.85rem;
  color: rgba(175, 195, 210, 0.85);
  font-size: 0.84rem;
  line-height: 1.4;
}

.wire-trunk {
  position: relative;
  margin: 0 auto 0.85rem;
  width: 3px;
  height: 1.1rem;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.75), rgba(100, 180, 255, 0.65));
  border-radius: 999px;
}

.wire-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  align-items: stretch;
}

.wire-row + .wire-row {
  margin-top: 0.65rem;
}

.wire-row--pages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

.wire-node {
  position: relative;
  flex: 0 1 auto;
  min-width: min(100%, 160px);
  max-width: 100%;
  border-radius: 10px;
  padding: 0.65rem 0.72rem;
  border: 1px solid rgba(120, 170, 210, 0.35);
  background: rgba(6, 12, 20, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 6px 16px rgba(0, 0, 0, 0.28);
}

.wire-node::before {
  content: "";
  position: absolute;
  top: -0.55rem;
  left: 50%;
  width: 2px;
  height: 0.55rem;
  transform: translateX(-50%);
  background: rgba(100, 180, 255, 0.55);
}

.wire-zone > .wire-row:first-of-type .wire-node::before {
  display: none;
}

.wire-node--page {
  min-width: 0;
  border-color: rgba(212, 175, 55, 0.42);
  background: linear-gradient(180deg, rgba(18, 16, 10, 0.95), rgba(6, 6, 6, 0.98));
}

.wire-node--chrome {
  border-color: rgba(212, 175, 55, 0.55);
}

.wire-node--nav {
  border-color: rgba(100, 180, 255, 0.45);
}

.wire-node--button {
  border-color: rgba(120, 200, 255, 0.42);
}

.wire-node--panel {
  border-style: dashed;
  border-color: rgba(180, 140, 255, 0.5);
  min-width: min(100%, 220px);
}

.wire-node--modal {
  border-style: dashed;
  border-color: rgba(255, 120, 160, 0.55);
  background: rgba(24, 8, 16, 0.88);
}

.wire-node--external {
  border-color: rgba(160, 160, 160, 0.4);
  opacity: 0.95;
}

.wire-node--local {
  border-color: rgba(120, 255, 180, 0.45);
}

.wire-node__kind {
  display: inline-block;
  margin-bottom: 0.28rem;
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  font: 700 0.58rem/1.2 Arial, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(220, 235, 248, 0.92);
  background: rgba(255, 255, 255, 0.08);
}

.wire-node__label {
  margin: 0 0 0.25rem;
  font: 700 0.86rem/1.25 Arial, sans-serif;
  color: #eefaff;
}

.wire-node__label a {
  color: inherit;
  text-decoration: none;
}

.wire-node__label a:hover,
.wire-mini__label a:hover,
.wire-node__file a:hover,
.wire-link-arrow a:hover {
  text-decoration: underline;
}

.wire-mini__label a,
.wire-node__file a,
.wire-link-arrow a {
  color: inherit;
  text-decoration: none;
}

.wire-node__file {
  margin: 0 0 0.35rem;
  font: 600 0.68rem/1.2 "Consolas", "Courier New", monospace;
  color: rgba(160, 210, 255, 0.85);
}

.wire-node__desc {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.42;
  color: rgba(185, 200, 215, 0.92);
}

.wire-node__children {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 0.45rem;
}

.wire-link-arrow {
  display: block;
  margin: 0.15rem 0 0.2rem;
  font: 700 0.62rem/1 Arial, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(140, 200, 255, 0.75);
}

.wire-mini {
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
}

.wire-mini__label {
  margin: 0 0 0.15rem;
  font: 700 0.76rem/1.25 Arial, sans-serif;
  color: #eefaff;
}

.wire-mini__desc {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.38;
  color: rgba(175, 190, 205, 0.92);
}

.wire-mini--modal {
  border-style: dashed;
  border-color: rgba(255, 120, 160, 0.45);
}

.wire-mini--opens {
  border-color: rgba(180, 140, 255, 0.4);
}

.wire-mini__children {
  margin-top: 0.4rem;
  padding-left: 0.45rem;
  border-left: 2px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 0.35rem;
}

.wire-mini__children .wire-mini {
  font-size: 0.95em;
  background: rgba(0, 0, 0, 0.22);
}

.wire-node.is-hidden {
  display: none;
}

.wire-zone.is-hidden {
  display: none;
}

@media (max-width: 640px) {
  .wire-row {
    flex-direction: column;
    align-items: stretch;
  }

  .wire-node {
    min-width: 0;
  }
}
