/* Quantum-Like Lab by Ethan Dickey. */
.network-state-overlay {
  position: absolute;
  z-index: 4;
  left: 14px;
  top: 14px;
  width: min(490px, calc(100% - 28px));
  color: #e3eaf4;
  pointer-events: auto;
}
.network-state-overlay[hidden] {
  display: none;
}
.network-state-disclosure {
  background: #111c2cee;
  border: 1px solid #45566d;
  border-radius: 10px;
  box-shadow: 0 3px 18px #02081530;
  backdrop-filter: blur(8px);
}
.network-state-disclosure > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 39px;
  padding: 8px 11px;
  list-style: none;
  cursor: pointer;
}
.network-state-disclosure > summary::-webkit-details-marker {
  display: none;
}
.network-state-heading {
  color: #a8bcd4;
  font-size: 0.7rem;
  letter-spacing: 0.025em;
  white-space: nowrap;
}
.network-state-summary {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  flex: 1;
}
.network-state-chevron {
  margin-left: auto;
  color: #a8bcd4;
  transition: transform 0.15s;
}
.network-state-disclosure[open] > summary .network-state-chevron {
  transform: rotate(180deg);
}
.network-state-body {
  padding: 0 13px 12px;
  max-height: min(385px, 57vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid #344358;
  font-size: 0.78rem;
}
.network-state-body p {
  line-height: 1.55;
}
.network-state-provenance {
  color: #a3b7d0;
  margin: 10px 0 8px;
  font-size: 0.69rem;
}
.network-state-formula {
  line-height: 1.9;
  font-size: 0.93rem;
  margin-bottom: 10px;
}
.network-state-term {
  white-space: nowrap;
}
.network-state-ket {
  color: #d7e9ff;
  margin-left: 2px;
  font-family: ui-monospace, monospace;
}
.network-state-plus,
.network-state-ellipsis {
  color: #9bb4d1;
}
.network-state-weights {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 20px;
  color: #b5c7da;
  font-size: 0.74rem;
}
.network-state-weights b {
  color: #e4edf8;
  font-weight: 600;
}
.network-state-explanation {
  color: #bfcee0;
  margin: 10px 0;
}
.network-state-undefined {
  color: #efcea3;
}
.network-state-all > summary {
  cursor: pointer;
  color: #b6d6f5;
  padding: 5px 0;
}
.network-state-all p {
  font-size: 0.68rem;
  color: #a6b8cf;
}
.network-state-table-scroll {
  max-height: 190px;
  overflow: auto;
  border: 1px solid #35465b;
  border-radius: 5px;
  margin-top: 7px;
}
.network-state-table-scroll table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.72rem;
}
.network-state-table-scroll th,
.network-state-table-scroll td {
  padding: 5px 8px;
  text-align: left;
  border-bottom: 1px solid #28384b;
  white-space: nowrap;
}
.network-state-table-scroll thead th {
  position: sticky;
  top: 0;
  background: #182638;
  color: #b5c9e1;
}
.network-state-table-scroll tbody th {
  font-family: ui-monospace, monospace;
  font-weight: 500;
  color: #d7e9ff;
}
.network-state-body button {
  margin-top: 6px;
  font-size: 0.75rem;
}
@media (max-width: 520px) {
  .network-state-overlay {
    left: 8px;
    top: 8px;
    width: calc(100% - 16px);
  }
  .network-state-disclosure > summary {
    gap: 8px;
    padding: 7px 9px;
  }
  .network-state-summary {
    font-size: 0.71rem;
  }
  .network-state-body {
    max-height: min(335px, 51vh);
  }
}
@media (prefers-reduced-motion: reduce) {
  .network-state-chevron {
    transition: none;
  }
}
.network-state-summary {
  display: flex;
  align-items: center;
  gap: 10px;
}
.network-state-phase-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.network-state-phase-chip .ql-phase-marker {
  gap: 0;
}
.network-state-phase-chip .ql-phase-marker svg {
  width: 23px;
  height: 23px;
  flex-basis: 23px;
}
.network-state-phase-chip .ql-phase-sign {
  font-size: 0.67rem;
  min-width: 10px;
}
.network-state-chip-share {
  color: #d3e5ed;
  font-size: 0.7rem;
}
.network-state-phase-story {
  padding: 9px 10px;
  border: 1px solid #375563;
  border-radius: 7px;
  background: #112b35;
  margin: 9px 0 12px;
}
.network-state-phase-story strong {
  font-size: 0.77rem;
  color: #d8f3ed;
}
.network-state-phase-story p {
  margin: 6px 0;
}
.network-state-phase-story .network-state-phase-reference {
  color: #a6bdc9;
  font-size: 0.68rem;
}
.network-state-table-scroll .ql-phase-marker svg {
  width: 23px;
  height: 23px;
  flex-basis: 23px;
}
@media (max-width: 520px) {
  .network-state-summary {
    gap: 5px;
  }
  .network-state-phase-chip {
    gap: 2px;
  }
  .network-state-chip-share {
    font-size: 0.62rem;
  }
  .network-state-phase-chip .ql-phase-marker svg {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
  .network-state-phase-chip .ql-phase-sign {
    font-size: 0.61rem;
  }
}
