.network-status .network-body {
  padding: 32px 0 64px;
}
.network-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #3768bb;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.network-dot,
.network-event-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--state-color, #94a3b8);
}
.network-eyebrow .network-dot {
  background: #326bf1;
  box-shadow: 0 0 0 5px #326bf112;
  animation: network-pulse 3s ease-in-out infinite;
}
.network-toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  color: #637087;
  font-size: 13px;
}
.network-toolbar > [role="status"] {
  font-weight: 600;
  color: #334155;
}
.network-refresh {
  margin-left: auto;
  padding: 10px 18px;
  border: 1px solid #d8e1ef;
  border-radius: 8px;
  background: #fff;
  color: #285fd0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.network-refresh:disabled {
  opacity: 0.6;
  cursor: wait;
}
.network-refresh:focus-visible,
.network-chart-select select:focus-visible,
.network-location summary:focus-visible {
  outline: 3px solid #93b7ff;
  outline-offset: 3px;
}
.network-summary {
  display: grid;
  grid-template-columns: 0.65fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}
.network-summary article,
.network-chart,
.network-topology,
.network-bottom > article {
  border: 1px solid #e1e7f0;
  border-radius: 14px;
  background: #fff;
  padding: 24px;
}
.network-summary article > span {
  display: block;
  color: #68758b;
  font-size: 13px;
  margin-bottom: 12px;
}
.network-summary strong {
  font-size: 30px;
  font-weight: 600;
  color: #21314b;
}
.network-summary .network-connection-value {
  font-size: 22px;
}
.network-summary .network-last-update {
  font-size: 18px;
}
.network-visuals {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  margin-bottom: 38px;
}
.network-status h2 {
  font-size: 22px;
  line-height: 1.3;
  color: #21314b;
  margin: 0 0 10px;
}
.network-chart p,
.network-topology p,
.network-section-heading p,
.network-bottom p {
  font-size: 14px;
  line-height: 1.65;
  color: #68758b;
  margin: 0;
}
.network-chart header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}
.network-chart-select {
  max-width: 45%;
}
.network-chart-select select {
  max-width: 100%;
  padding: 8px;
  border: 1px solid #d8e1ef;
  border-radius: 7px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 13px;
}
.network-plot {
  position: relative;
  margin-top: 24px;
  min-height: 160px;
}
.network-plot svg {
  display: block;
  width: 100%;
  height: auto;
}
.network-grid {
  fill: none;
  stroke: #e8edf5;
  stroke-width: 1;
}
.network-trace {
  fill: none;
  stroke: #447de0;
  stroke-width: 2.5;
  stroke-linejoin: round;
}
.network-chart-dot {
  fill: #447de0;
  stroke: #fff;
  stroke-width: 1.5;
}
.network-chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 20px;
  background: #ffffffb8;
}
.network-chart-empty[hidden] {
  display: none;
}
.network-chart-axis {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: 11px;
  color: #7d899a;
}
.network-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 46px;
  gap: 10px;
}
.network-flow > div {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
  color: #45658f;
  font-size: 12px;
  text-align: center;
}
.network-flow svg {
  width: 38px;
  height: 38px;
}
.network-flow i {
  position: relative;
  width: 34px;
  height: 2px;
  background: #dce6f4;
  flex: none;
}
.network-flow i:after {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  width: 6px;
  height: 6px;
  background: #6593dc;
  border-radius: 50%;
  animation: network-flow 3s ease-in-out infinite;
}
.network-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.network-state-legend {
  display: flex;
  gap: 10px 16px;
  flex-wrap: wrap;
  max-width: 52%;
  font-size: 11px;
  color: #68758b;
}
.network-state-legend > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
[data-state="operational"] {
  --state-color: #35a77e;
}
[data-state="degraded"] {
  --state-color: #d5a040;
}
[data-state="outage"] {
  --state-color: #d46666;
}
[data-state="maintenance"] {
  --state-color: #6f89c9;
}
[data-state="unknown"] {
  --state-color: #a3afbf;
}
.network-locations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.network-location {
  border: 1px solid #e1e7f0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.network-location summary {
  display: grid;
  grid-template-columns: 36px 1fr auto 18px;
  align-items: center;
  gap: 12px;
  padding: 20px;
  list-style: none;
  cursor: pointer;
}
.network-location summary::-webkit-details-marker {
  display: none;
}
.network-flag {
  width: 32px;
  height: 32px;
}
.network-location-name {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.network-location-name strong {
  font-size: 16px;
  color: #273851;
}
.network-location-name > span {
  font-size: 12px;
  color: #68758b;
}
.network-location-state {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #68758b;
  font-size: 11px;
}
.network-chevron {
  width: 18px;
  height: 18px;
  color: #789;
  transition: transform 0.2s;
}
.network-location[open] .network-chevron {
  transform: rotate(180deg);
}
.network-location-preview {
  grid-column: 1/-1;
  display: flex;
  gap: 30px;
  padding-top: 6px;
}
.network-location-preview > span {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #7b8799;
  font-size: 11px;
}
.network-location-preview b {
  font-size: 17px;
  color: #33445e;
  font-weight: 600;
}
.network-history {
  grid-column: 1/-1;
  display: flex;
  gap: 3px;
  margin-top: 4px;
}
.network-history > span {
  height: 24px;
  min-width: 0;
  flex: 1;
  border-radius: 3px;
  background: var(--state-color, #a3afbf);
  opacity: 0.8;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.network-history > span:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.network-location-content {
  padding: 0 20px 20px;
  border-top: 1px solid #eef2f8;
}
.network-location-content dl {
  margin: 16px 0;
  font-size: 12px;
}
.network-location-content dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0;
}
.network-location-content dt {
  color: #7b8799;
}
.network-location-content dd {
  margin: 0;
  color: #33445e;
  text-align: right;
  max-width: 65%;
  line-height: 1.5;
}
.network-location-content a,
.network-help a {
  font-size: 13px;
  font-weight: 600;
  color: #326bf1;
}
.network-bottom {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  margin-top: 30px;
}
.network-events {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.network-events:empty {
  display: none;
}
.network-events li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #edf1f7;
}
.network-event-dot {
  margin-top: 6px;
  background: #94a3b8;
}
.network-event-dot.maintenance-dot {
  background: #d5a040;
}
.network-events strong {
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.network-events small {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  color: #68758b;
}
.network-help a {
  display: inline-block;
  margin-top: 18px;
}
@keyframes network-pulse {
  50% {
    box-shadow: 0 0 0 8px #326bf105;
  }
}
@keyframes network-flow {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateX(28px);
    opacity: 0;
  }
}
@media (max-width: 900px) {
  .network-visuals,
  .network-bottom {
    grid-template-columns: 1fr;
  }
  .network-flow {
    margin: 28px 0 8px;
  }
  .network-section-heading {
    flex-direction: column;
    gap: 16px;
  }
  .network-state-legend {
    max-width: 100%;
  }
  .network-summary {
    gap: 12px;
  }
  .network-summary article {
    padding: 18px;
  }
  .network-summary .network-connection-value {
    font-size: 18px;
  }
  .network-summary .network-last-update {
    font-size: 15px;
  }
}
@media (max-width: 600px) {
  .network-status .network-body {
    padding-top: 20px;
  }
  .network-summary {
    grid-template-columns: 1fr 1fr;
  }
  .network-summary article:last-child {
    grid-column: 1/-1;
  }
  .network-summary strong {
    font-size: 26px;
  }
  .network-locations {
    grid-template-columns: 1fr;
  }
  .network-chart,
  .network-topology,
  .network-bottom > article {
    padding: 20px;
  }
  .network-chart header {
    flex-direction: column;
  }
  .network-chart-select {
    max-width: 100%;
  }
  .network-toolbar {
    gap: 12px;
    font-size: 12px;
  }
  .network-toolbar > span:nth-child(2) {
    order: 3;
    width: 100%;
  }
  .network-location summary {
    padding: 16px;
    gap: 9px;
    grid-template-columns: 30px 1fr auto 16px;
  }
  .network-location-name strong {
    font-size: 15px;
  }
  .network-location-state {
    font-size: 10px;
  }
  .network-flag {
    width: 28px;
    height: 28px;
  }
  .network-location-preview {
    gap: 18px;
    flex-wrap: wrap;
  }
  .network-location-preview > span {
    gap: 6px;
  }
  .network-history {
    gap: 2px;
  }
  .network-history > span {
    height: 22px;
  }
  .network-chart-axis {
    font-size: 9px;
  }
  .network-location-content {
    padding: 0 16px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .network-status *,
  .network-status *:after {
    animation: none !important;
    transition: none !important;
  }
}
.manual-status-location {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 20px;
}
.manual-status-location h3 {
  font-size: 16px;
  font-weight: 600;
  color: #273851;
  margin: 0;
}
.manual-status-source {
  margin-top: 18px !important;
  font-size: 12px !important;
}
@media (max-width: 600px) {
  .manual-status-location {
    grid-template-columns: 30px 1fr auto;
    padding: 16px;
    gap: 9px;
  }
  .manual-status-location h3 {
    font-size: 15px;
  }
}
