.bsc-instrument {
  margin: 0;
  min-width: 0;
}

.bsc-console {
  color: #e8f4fa;
  background: #101b28;
  border: 1px solid #31465a;
  border-radius: .65rem;
  overflow: hidden;
}

.bsc-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #31465a;
}

.bsc-controls button {
  min-height: 44px;
  border: 0;
  background: #152230;
  color: #c3d4e1;
  padding: .55rem .3rem;
  font: inherit;
  font-size: clamp(.75rem, 1.7vw, .9rem);
  line-height: 1.2;
  font-weight: 650;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.bsc-controls button span {
  color: #b3c9d9;
  font: .72em ui-monospace, SFMono-Regular, Consolas, monospace;
  margin-right: .3em;
}

.bsc-controls button:hover { background: #253747; }
.bsc-controls button[aria-pressed="true"] { color: #12252e; background: #ace9f1; }
.bsc-controls button[aria-pressed="true"] span { color: #2c4f58; }
.bsc-controls button:focus-visible, .bsc-plot a:focus-visible { outline: 2px solid #e4f5fc; outline-offset: -4px; }
.bsc-controls button:focus-visible { outline: 3px solid #fff; outline-offset: -5px; box-shadow: inset 0 0 0 7px #0b1725; transition: none; }

.bsc-display {
  position: relative;
  overflow: hidden;
  height: clamp(13.25rem, 24vw, 18.5rem);
  background: #101b28;
}

.bsc-view {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  overflow: hidden;
}

.bsc-event { grid-template-rows: auto minmax(0, 1fr); }
.bsc-event .bsc-display-label { grid-row: 1; position: static; justify-self: start; padding: .7rem 1rem 0; }
.bsc-event-art { grid-row: 2; width: 100%; max-height: 100%; }

.bsc-display-label {
  position: absolute;
  inset: .9rem 1rem auto;
  margin: 0;
  color: #c6d9e7;
  font: .67rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .055em;
  pointer-events: none;
}

.bsc-plot {
  padding: 2.15rem .85rem .65rem;
  background:
    linear-gradient(#c6d9e712 1px, transparent 1px),
    linear-gradient(90deg, #c6d9e712 1px, transparent 1px), #101b28;
  background-size: 22px 22px;
}

.bsc-plot a {
  display: block;
  width: 100%;
  min-height: 0;
  height: 100%;
  max-width: 100%;
  background: #fff;
  border-radius: .2rem;
  overflow: hidden;
}

.bsc-enlarge {
  position: absolute;
  inset: .9rem .85rem auto auto;
  color: #c6d9e7;
  font: .67rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace;
  text-decoration: underline;
}

.bsc-plot a:hover .bsc-enlarge { color: #fff; }
.bsc-plot img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bsc-caption {
  margin-top: .7rem;
  min-height: 2.65em;
  color: var(--project-muted, var(--muted));
  font-size: .9rem;
  line-height: 1.4;
}

@media (max-width: 420px) {
  .bsc-caption { min-height: 4.2em; }
}
