.cable-map {
  overflow: hidden;
  margin: 0 0 24px;
  padding: 0;
  border-color: #36514b;
  background: radial-gradient(circle at 8% 0%, #3e674b43, transparent 35%),
    radial-gradient(circle at 95% 65%, #355b7040, transparent 38%), #152328;
}
.cable-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 28px 23px;
}
.cable-map-head .eyebrow { margin: 0 0 7px; color: #b3e896; }
.cable-map-head h2 { margin: 0; font-size: 26px; letter-spacing: -.045em; }
.cable-map-head p:not(.eyebrow) { margin: 6px 0 0; color: #a9bfba; font-size: 13px; }
.cable-map-count {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex: none;
  padding: 9px 13px;
  border: 1px solid #496651;
  border-radius: 999px;
  background: #264037;
  color: #bfe9a5;
}
.cable-map-count strong { font-size: 17px; line-height: 1; }
.cable-map-count span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.cable-map-scroll {
  position: relative;
  max-height: 620px;
  overflow: auto;
  border-top: 1px solid #3a534f;
  border-bottom: 1px solid #3a534f;
  background-color: #101e24;
  background-image: linear-gradient(#7594940b 1px, transparent 1px),
    linear-gradient(90deg, #7594940b 1px, transparent 1px),
    radial-gradient(circle at 50% 45%, #38596036, transparent 58%);
  background-size: 24px 24px, 24px 24px, auto;
  scrollbar-color: #526c68 #17282d;
}
.cable-map-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.cable-map-canvas { position: relative; width: 960px; min-height: 360px; }
.cable-map-column-label {
  position: absolute;
  top: 28px;
  z-index: 2;
  color: #7e9c9a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
}
.cable-map-column-label.left { left: 56px; }
.cable-map-column-label.right { left: 680px; }
.cable-map-lines { position: absolute; inset: 0; width: 960px; height: 100%; overflow: visible; }
.cable-map-wire { fill: none; stroke-linecap: round; stroke-linejoin: round; transition: opacity .2s, stroke-width .2s; }
.cable-map-wire.is-muted { opacity: .48; stroke-width: 2.5; }
.cable-map-wire.is-selected { opacity: 1; stroke-width: 4; filter: url(#cable-map-glow); }
.cable-map-wire-hit { fill: none; stroke: transparent; stroke-width: 20; pointer-events: stroke; cursor: pointer; }
.cable-map-wire-hit:hover + .cable-map-marker rect { fill: #284139; }
.cable-map-marker { cursor: pointer; }
.cable-map-marker rect { fill: #172b2d; stroke-width: 1.5; filter: drop-shadow(0 5px 7px #0008); }
.cable-map-marker text { fill: #edf8ed; font-size: 11px; font-weight: 800; font-family: Inter, ui-sans-serif, sans-serif; letter-spacing: .025em; }
.cable-map-node {
  position: absolute;
  z-index: 2;
  width: 224px;
  min-height: 110px;
  padding: 11px 13px;
  border: 1px solid #41605d;
  border-radius: 12px;
  background: linear-gradient(145deg, #253b3e, #192d33 85%);
  box-shadow: 0 11px 24px #0005, inset 0 1px #effffa0a;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.cable-map-node:hover, .cable-map-node:focus-visible { border-color: #a8df92; outline: none; box-shadow: 0 0 0 2px #a9ed7620, 0 13px 25px #0007; }
.cable-map-node.is-selected { border-color: #a8df92; box-shadow: 0 0 0 2px #a9ed7620, 0 13px 25px #0007; }
.cable-map-node-top { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.cable-map-node-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 7px;
  background: #3a5749;
  color: #bbef9a;
}
.cable-map-node-type { overflow: hidden; color: #9eb7b1; font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; text-overflow: ellipsis; white-space: nowrap; }
.cable-map-node-status { width: 6px; height: 6px; flex: none; margin-left: auto; border-radius: 50%; background: #728c8b; }
.cable-map-node-status.online { background: #a9ed76; box-shadow: 0 0 0 4px #a9ed7618; }
.cable-map-node-status.offline { background: #f39386; box-shadow: 0 0 0 4px #f3938618; }
.cable-map-node > strong { display: block; overflow: hidden; color: #f0f8f3; font-size: 13px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.cable-map-node > small { display: block; overflow: hidden; margin-top: 2px; color: #98b0ad; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.cable-map-node-ports { display: flex; gap: 4px; overflow: hidden; margin-top: 8px; }
.cable-map-node-ports span { max-width: 74px; overflow: hidden; padding: 2px 5px; border: 1px solid #4b6964; border-radius: 4px; color: #bad2cb; background: #1c3538; font-size: 9px; font-family: ui-monospace, monospace; text-overflow: ellipsis; white-space: nowrap; }
.cable-map-node-ports .no-port { color: #779491; }
.cable-map-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, .95fr); gap: 15px; padding: 19px 22px 12px; }
.cable-map-index, .cable-map-detail { min-width: 0; border: 1px solid #39524e; border-radius: 13px; background: #172a2c; }
.cable-map-index { padding: 15px; }
.cable-map-index-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.cable-map-index-head strong { font-size: 13px; }
.cable-map-index-head span { color: #8ba9a1; font-size: 10px; }
.cable-map-links { display: grid; gap: 6px; max-height: 226px; overflow-y: auto; }
.cable-map-link { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border: 1px solid #344b49; border-radius: 9px; background: #1c3132; color: #d7e9e2; text-align: left; }
.cable-map-link:hover, .cable-map-link.is-selected { border-color: #779c7b; background: #29423b; }
.cable-map-link > i { width: 9px; height: 30px; flex: none; border-radius: 3px; box-shadow: 0 0 10px currentColor; }
.cable-map-link > span:nth-child(2) { min-width: 0; flex: 1; }
.cable-map-link strong, .cable-map-link small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cable-map-link strong { font-size: 11px; }
.cable-map-link small { margin-top: 3px; color: #94b0a7; font-size: 10px; }
.cable-map-link-media { color: #9fbcb3; font-size: 9px; font-weight: 750; text-transform: uppercase; }
.cable-map-detail { padding: 16px; }
.cable-map-detail-top { display: flex; align-items: center; gap: 9px; }
.cable-map-detail-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 1px solid currentColor; border-radius: 8px; background: #233839; }
.cable-map-detail-top > div { min-width: 0; flex: 1; }
.cable-map-detail-top .eyebrow { margin: 0 0 3px; color: #a5c49c; font-size: 9px; }
.cable-map-detail h3 { overflow: hidden; margin: 0; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.cable-map-media { padding: 5px 7px; border-radius: 6px; background: #30463e; color: #b9d9bd; font-size: 9px; font-weight: 750; text-transform: uppercase; }
.cable-map-route { display: grid; grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr); align-items: center; gap: 5px; margin: 16px 0 14px; }
.cable-map-route > div { min-width: 0; padding: 9px 10px; border: 1px solid #3d5853; border-radius: 8px; background: #213738; }
.cable-map-route small, .cable-map-route strong, .cable-map-route span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cable-map-route small { color: #91aba1; font-size: 9px; font-weight: 750; letter-spacing: .09em; }
.cable-map-route strong { margin: 5px 0 3px; color: #e4f4e9; font-size: 11px; }
.cable-map-route span { color: #a9d5c4; font-size: 10px; font-family: ui-monospace, monospace; }
.cable-map-route > i { height: 3px; background: var(--cable-map-route-color); border-radius: 3px; box-shadow: 0 0 12px var(--cable-map-route-color); }
.cable-map-notes { margin: 0 0 12px; color: #9db4ac; font-size: 11px; line-height: 1.5; }
.cable-map-detail > .btn { min-height: 30px; padding: 5px 9px; font-size: 10px; }
.cable-map-caption { margin: 0; padding: 0 24px 18px; color: #819c96; font-size: 10px; }
.cable-map-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 45px 20px 50px; border-top: 1px solid #3a534f; text-align: center; }
.cable-map-empty > span { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 5px; border: 1px solid #487257; border-radius: 16px; background: #2b493b; color: #baf095; }
.cable-map-empty strong { font-size: 16px; }
.cable-map-empty p { margin: 0 0 8px; color: #9cb5aa; font-size: 12px; }
@media (max-width: 800px) {
  .cable-map-head { align-items: flex-start; padding: 21px 19px; }
  .cable-map-bottom { grid-template-columns: 1fr; padding: 15px 15px 10px; }
  .cable-map-scroll { max-height: 560px; }
}
@media (max-width: 520px) {
  .cable-map-head { flex-wrap: wrap; gap: 12px; }
  .cable-map-head h2 { font-size: 22px; }
  .cable-map-count { padding: 7px 10px; }
  .cable-map-caption { padding: 0 16px 17px; line-height: 1.45; }
  .cable-map-index-head { display: block; }
  .cable-map-index-head span { display: block; margin-top: 3px; }
}
