/* UniHub diagram readability pass — 2026-08-12 */
.system-head,
.system-foot {
  height: 48px;
  padding-inline: 20px;
  font-size: 10px;
  color: #9db3c7;
}

.live {
  color: #d4e0ea;
}

.live i {
  width: 8px;
  height: 8px;
}

.sys-col {
  top: 52px;
  width: 30%;
  gap: 22px;
}

.sys-col.input {
  left: 4%;
}

.sys-col.output {
  right: 4%;
}

.sys-col > small {
  font-size: 9px;
  color: #9bb3c8;
}

.sys-node {
  min-height: 78px;
  padding: 14px 16px;
  border-color: #345b79;
  background: #0d2d4c;
}

.sys-node.accent {
  border-color: #ff7a33;
  background: #15334f;
}

.sys-node b {
  font-size: 14px;
}

.sys-node span {
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.35;
  color: #abc0d2;
}

.sys-core b {
  font-size: 14px;
}

.sys-core small {
  font-size: 9px;
  color: #a3b9cb;
}

.connectors path {
  stroke: #476a86;
  stroke-width: 1.35;
}

@media (max-width: 820px) and (min-width: 561px) {
  .sys-node b {
    font-size: 13px;
  }

  .sys-col > small {
    font-size: 9px;
  }
}

@media (max-width: 560px) {
  .system-head,
  .system-foot {
    min-height: 48px;
    height: auto;
    padding: 13px 14px;
    font-size: 9px;
    line-height: 1.35;
  }

  .system-head {
    gap: 14px;
  }

  .system-canvas {
    height: auto;
    min-height: 0;
    padding: 24px 14px;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .sys-col {
    position: relative;
    inset: auto !important;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .sys-col > small {
    grid-column: 1 / -1;
    margin: 0 0 2px;
    font-size: 10px;
    color: #b1c5d5;
  }

  .sys-node {
    min-height: 74px;
    padding: 10px 6px;
    align-items: center;
    text-align: center;
  }

  .sys-node b {
    font-size: 12px;
    line-height: 1.2;
  }

  .sys-node span {
    display: none;
  }

  .sys-core {
    position: relative;
    inset: auto;
    transform: none;
    width: 100%;
    height: 92px;
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: 1fr 1fr;
    justify-content: center;
    align-items: center;
    column-gap: 13px;
    padding: 14px;
    border: 1px solid #3d6482;
    background: rgba(10, 41, 72, .78);
  }

  .core-ring {
    display: none;
  }

  .core-dot {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 54px;
    height: 54px;
  }

  .core-dot img {
    width: 40px;
    height: 40px;
  }

  .sys-core b {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin: 0;
    font-size: 13px;
    text-align: left;
  }

  .sys-core small {
    display: block;
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    font-size: 9px;
    text-align: left;
  }

  .connectors {
    display: none;
  }

  .system-foot {
    gap: 12px;
  }

  .system-foot span:first-child {
    max-width: 205px;
  }
}
