/* Quantum-Like Lab by Ethan Dickey. */
/* The network key sits below the canvas on an opaque background. */
.ql-network-legend {
  color: #e5eff5;
  background: #0d2230;
  border: 1px solid #345366;
  border-radius: 10px;
  padding: 12px 15px;
  margin: 10px 0 0;
  font-size: 0.79rem;
  line-height: 1.5;
}
.ql-network-legend[hidden] { display: none !important; }
.ql-legend-heading {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 10px;
}
.ql-legend-heading > strong { font-size: 0.82rem; }
.ql-legend-heading > span,
.ql-legend-count { color: #b9ceda; }
.ql-legend-heading > span { font-size: 0.72rem; }
.ql-legend-meaning { display: flex; align-items: center; gap: 13px; }
.ql-legend-meaning strong { color: #f1f8fb; font-size: 0.83rem; }
.ql-legend-meaning p { color: #ccdde7; margin: 3px 0 0; }
.ql-legend-sizes {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 66px;
  gap: 5px;
  min-height: 35px;
}
.ql-legend-sizes .small-dot,
.ql-legend-sizes .large-dot {
  display: block;
  border-radius: 50%;
  background: #8ddccc;
  border: 1px solid #c9fff3;
  flex-shrink: 0;
}
.ql-legend-sizes .small-dot { width: 9px; height: 9px; }
.ql-legend-sizes .large-dot { width: 25px; height: 25px; }
.ql-legend-sizes .size-arrow { color: #c6dbe7; font-size: 15px; }
.ql-legend-sizes.equal .small-dot,
.ql-legend-sizes.equal .large-dot { width: 17px; height: 17px; }
.ql-legend-sizes.equal .size-arrow { font-size: 0; }
.ql-legend-sizes.equal .size-arrow::after { content: "="; font-size: 15px; }
.ql-legend-sizes.residual .small-dot { background: #375a70; border-color: #8bb4ca; }
.ql-legend-sizes.residual .large-dot { background: #fd8da7; border-color: #ffd8e2; }
.ql-legend-colors {
  display: flex;
  align-items: center;
  gap: 7px 15px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.ql-legend-color-heading { color: #b9ceda; font-size: 0.74rem; }
.ql-legend-chip { display: inline-flex; gap: 5px; align-items: center; }
.ql-legend-chip i { width: 10px; height: 10px; border-radius: 50%; }
.ql-legend-line-key {
  border-top: 1px solid #345366;
  margin-top: 11px;
  padding-top: 9px;
}
.ql-legend-line-key > strong { color: #f1f8fb; font-size: 0.79rem; }
.ql-legend-line-key > p { margin: 3px 0 0; color: #ccdde7; }
.ql-legend-line-swatches { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 6px; }
.ql-legend-line-item { display: inline-flex; align-items: center; gap: 6px; font-size: 0.73rem; }
.ql-line-swatch { display: block; width: 23px; height: 0; border-top: 2px solid #8baabd; }
.ql-line-swatch.edited { border-color: #ffca85; }
.ql-line-swatch.removed { border-color: #fc8297; border-top-style: dashed; }
.ql-legend-line-key > .ql-legend-edit-note { color: #e8cc98; font-size: 0.73rem; margin-top: 7px; }
.ql-network-legend details { margin-top: 9px; }
.ql-network-legend summary {
  color: #bfd8e7;
  font-size: 0.74rem;
  cursor: pointer;
  width: fit-content;
}
.ql-network-legend details p { color: #ccdde7; margin: 9px 0 0; }
.ql-legend-count { font-size: 0.73rem; margin: 8px 0 0; }
.ql-legend-count.filtered,
.ql-legend-pending { color: #ffda9c; }
.ql-legend-pending { margin: 7px 0 0; }
@media (max-width: 600px) {
  .ql-network-legend { padding: 11px 12px; font-size: 0.77rem; }
  .ql-legend-heading { gap: 2px; margin-bottom: 9px; }
  .ql-legend-heading > span { width: 100%; font-size: 0.71rem; }
  .ql-legend-meaning { gap: 9px; }
  .ql-legend-sizes { flex-basis: 57px; }
  .ql-legend-meaning strong { font-size: 0.8rem; }
}

/* Keep this optional explanation attached to the canvas rather than the grid. */
.network-display > .network-key { margin:8px 0 0; padding:0; }
.network-key > summary { width:fit-content; padding:7px 11px; border:1px solid #3e6274; border-radius:7px; background:#102631; color:#c6e1e7; font-size:.9rem; cursor:pointer; }
.network-key > summary:focus-visible { outline:3px solid #9ee7d2; outline-offset:3px; }
.network-key > .ql-network-legend { margin:7px 0 0; }
.network-key[hidden], .watch-playback .network-key { display:none!important; }
