.entry-lab {
  --lab-edge: #424439;
  --lab-paper: #f1ede2;
  --lab-metal: #71bbdd;
  --lab-gold: #ffbe56;
}
.entry-lab > .guide-kicker { color: #76511d; }
.entry-lab .entry-intro { margin: 0 0 22px; }
.entry-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid #3c3d34;
  border-top: 5px solid var(--amber);
  background: #20221d;
  color: #f1ede3;
}
.entry-console [hidden] { display: none; }
.entry-controls {
  min-width: 0;
  padding: 23px 20px;
  background: var(--lab-paper);
  color: var(--ink);
}
.entry-control { margin-bottom: 20px; }
.entry-control > :is(label, p:first-child) {
  display: block;
  margin: 0 0 8px;
  font: 600 12px/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: .055em;
}
.entry-control > :is(label, p:first-child) span {
  display: inline-block;
  margin-right: 5px;
  color: #815216;
}
.entry-control select, .entry-controls button {
  min-height: 44px;
  border: 1px solid #bdb4a3;
  border-radius: 0;
  background: #fcf8ef;
  color: #24251f;
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
}
.entry-control select { display: block; width: 100%; padding: 7px 9px; }
.entry-controls button { cursor: pointer; padding: 6px 8px; }
.entry-controls :is(button, select):focus-visible { outline: 3px solid #1f678c; outline-offset: 3px; }
.entry-controls button:hover { border-color: #24251f; }
.entry-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.entry-switch button[aria-pressed="true"], .entry-underside[aria-pressed="true"] {
  border-color: #24251f;
  background: #24251f;
  color: #fff8ed;
  box-shadow: inset 0 -3px var(--amber);
}
.entry-switch button i {
  display: inline-block;
  width: .58em;
  height: .58em;
  margin-right: 5px;
  background: #1d6b8b;
  vertical-align: 1px;
}
.entry-switch [data-equipment="jack"] i { background: #a85b09; }
.entry-switch [data-equipment="forklift"][aria-pressed="true"] i { background: var(--lab-metal); }
.entry-switch [data-equipment="jack"][aria-pressed="true"] i { background: var(--lab-gold); }
.entry-control .entry-pair { margin: 7px 0 0; font-size: 12px; color: #56574d; line-height: 1.45; }
.entry-actions { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 5px; }
.entry-actions .entry-replay { background: #f9b742; border-color: #8e5e1c; }
.entry-specimen { min-width: 0; }
.entry-specimen-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 5px 18px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--lab-edge);
  background: #262820;
}
.entry-specimen-head strong { font: 700 clamp(20px, 3vw, 27px)/1.1 var(--display); text-transform: uppercase; }
.entry-specimen-head span, .entry-stage-tag {
  color: #fbc773;
  font: 500 11px/1.35 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.entry-stage { position: relative; aspect-ratio: 1.18; overflow: hidden; background: #171915; }
.entry-stage :is(canvas, img) { display: block; width: 100%; height: 100%; object-fit: cover; }
.entry-stage img { object-fit: contain; }
.entry-stage-tag {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 5px 8px;
  border: 1px solid #646454;
  background: #1d201bef;
  color: #f7f0df;
  pointer-events: none;
}
.entry-readout, .entry-fallback { padding: 13px 16px; border-top: 1px solid var(--lab-edge); }
.entry-live { padding-left: 12px; border-left: 3px solid #aaddaa; }
.entry-readout[data-access="blocked"] .entry-live { border-left-color: #ff8b74; }
.entry-live strong { color: #b0e2b2; font: 600 12px/1.35 var(--mono); letter-spacing: .055em; text-transform: uppercase; }
.entry-readout[data-access="blocked"] .entry-live strong { color: #ff9c86; }
.entry-console :is(.entry-readout p, .entry-fallback) { max-width: none; margin: 4px 0 0; font-size: 14px; line-height: 1.45; }
.entry-readout .entry-specimen-note { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--lab-edge); color: #d0caba; }
.entry-lab .entry-caption { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.entry-table-caption { padding: 9px 12px; text-align: left; font: 500 12px/1.4 var(--mono); }
@media (min-width: 700px) {
  .entry-lab[data-interactive="true"] .entry-console { grid-template-columns: minmax(220px, 26%) minmax(0, 1fr); }
  .entry-controls { border-right: 1px solid #3c3d34; }
  .entry-stage { aspect-ratio: 1.8; }
  .entry-stage-tag { top: 13px; left: 13px; }
}
@media (max-width: 699px) {
  .entry-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 8px; padding: 13px; }
  .entry-control { margin: 0; }
  .entry-control:first-child, .entry-actions { grid-column: 1 / -1; }
  .entry-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry-control > :is(label, p:first-child) { font-size: 11px; }
}
@media print {
  .entry-controls, .entry-stage { display: none; }
  .entry-console, .entry-specimen-head, .entry-live strong, .entry-readout .entry-specimen-note { color: #111; background: #fff; }
}
.entry-stage .entry-path-tag {
  inset: auto 9px 9px auto;
  text-transform: none;
  letter-spacing: 0;
}
@media (max-width: 450px) {
  .entry-switch button { padding: 6px 3px; font-size: 13px; }
  .entry-switch button i { display: none; }
  .entry-stage .entry-path-tag { font-size: 10px; }
}
