.network-explorer-control {
  width: min(305px, calc(100vw - 54px));
  margin: 12px 12px 0 0 !important;
  color: #102a43;
  border: 1px solid rgba(16, 42, 67, .12);
  border-radius: 15px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 32px rgba(16, 42, 67, .18);
  backdrop-filter: blur(14px);
}

.network-master-toggle {
  display: flex;
  min-height: 48px;
  margin: 0;
  padding: 10px 11px 10px 13px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.network-master-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 800;
}

.network-master-copy i {
  color: #00a896;
  font-size: .9rem;
}

.network-switch {
  position: relative;
  width: 38px;
  height: 22px;
  flex: 0 0 auto;
}

.network-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.network-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd7d2;
  transition: background .2s ease, box-shadow .2s ease;
}

.network-switch span::after {
  position: absolute;
  content: "";
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(16, 42, 67, .24);
  transition: transform .2s ease;
}

.network-switch input:checked + span {
  background: #00a896;
}

.network-switch input:checked + span::after {
  transform: translateX(16px);
}

.network-switch input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(0, 168, 150, .2);
}

.network-filter-panel {
  padding: 10px;
  border-top: 1px solid #e2ebe7;
}

.network-filter-disclosure {
  display: flex;
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #31596a;
  font-size: .65rem;
  font-weight: 800;
  border: 0;
  border-top: 1px solid #e2ebe7;
  background: #f8fbfa;
}

.network-filter-disclosure span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.network-filter-disclosure .bi-funnel-fill {
  color: #00a896;
}

.network-filter-heading {
  display: flex;
  padding: 0 2px 9px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.network-filter-heading small,
.network-filter-heading strong {
  display: block;
}

.network-filter-heading small {
  color: #829ab1;
  font-size: .54rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.network-filter-heading strong {
  font-size: .74rem;
}

.network-filter-all {
  padding: 5px 7px;
  color: #087f72;
  font-size: .58rem;
  font-weight: 800;
  border: 1px solid #cce5df;
  border-radius: 8px;
  background: #eaf8f4;
}

.network-mode-list {
  display: grid;
  max-height: min(310px, calc(100vh - 280px));
  padding-right: 3px;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #b8cfc7 transparent;
}

.network-mode-filter {
  display: grid;
  min-width: 0;
  min-height: 34px;
  margin: 0;
  padding: 5px 6px;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  font-size: .6rem;
  font-weight: 700;
  border: 1px solid #e2ebe7;
  border-radius: 9px;
  background: #f8faf9;
  cursor: pointer;
}

.network-mode-filter:has(input:checked) {
  border-color: color-mix(in srgb, var(--mode-color) 38%, #dce8e3);
  background: color-mix(in srgb, var(--mode-color) 7%, #fff);
}

.network-mode-filter:has(input:disabled) {
  display: none;
}

.network-mode-filter input {
  width: .82rem;
  height: .82rem;
  margin: 0;
  accent-color: var(--mode-color);
}

.network-mode-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #fff;
  font-size: .58rem;
  border-radius: 6px;
  background: var(--mode-color);
}

.network-mode-filter > span:nth-of-type(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.network-mode-filter small {
  color: #829ab1;
  font-size: .54rem;
  font-weight: 800;
}

.network-status {
  display: flex;
  min-height: 33px;
  margin-top: 8px;
  padding: 7px 8px;
  align-items: center;
  gap: 7px;
  color: #627d72;
  font-size: .58rem;
  font-weight: 700;
  border-radius: 8px;
  background: #eef3f1;
}

.network-status i {
  color: #00a896;
}

.network-status.is-loading i {
  animation: networkStatusSpin .9s linear infinite;
}

@keyframes networkStatusSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
  .network-explorer-control {
    width: min(286px, calc(100vw - 58px));
    margin: 8px 8px 0 0 !important;
  }

  .network-mode-list {
    max-height: min(245px, calc(100vh - 260px));
  }
}
