.lab-stage {
  --lab-text: #eaf4ff;
  --lab-ice: #74dcff;
  --lab-ice-bright: #b6f2ff;
  --lab-violet: #b59aff;
  --lab-error: #ff9aad;
  position: relative;
  isolation: isolate;
  width: 100%;
  height: clamp(390px, 51vh, 460px);
  margin: 0;
  color: var(--lab-text);
  font: inherit;
}

.lab-stage *,
.lab-stage *::before,
.lab-stage *::after { box-sizing: border-box; }

.lab-stage button,
.lab-stage input,
.lab-stage select,
.lab-stage textarea { color: inherit; font: inherit; }

.lab-stage__case { display: none; }

.lab-stage__field { position:absolute; z-index:-1; inset:7px 7px 14px; overflow:visible; pointer-events:none; }

.lab-stage__field::before,
.lab-stage__field::after { position: absolute; content: ""; pointer-events: none; }

.lab-stage__field::before {
  inset: 0;
  opacity: .26;
  background: repeating-linear-gradient(90deg, transparent 0 79px, rgba(116, 220, 255, .18) 80px, transparent 81px);
  mask-image: linear-gradient(90deg, #000, transparent 27% 73%, #000);
}

.lab-stage__field::after {
  right: 1.3%;
  bottom: 7px;
  left: 1.3%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(116, 220, 255, .75) 8% 14%, transparent 14% 86%, rgba(181, 154, 255, .72) 86% 92%, transparent);
  box-shadow: 0 0 13px rgba(116, 220, 255, .24);
}

/* A floating circuit plane separates from the live console as scroll progress advances. */
.lab-stage__backplate {
  position: absolute;
  z-index: 0;
  top: 33%;
  right: 0;
  left: 0;
  height: 62%;
  overflow: visible;
  border: 0;
  background: linear-gradient(128deg, rgba(24, 50, 75, .28), rgba(9, 22, 38, .18) 48%, rgba(45, 36, 78, .17));
  box-shadow: inset 0 1px 0 rgba(201, 234, 255, .14), 0 0 30px rgba(57, 131, 184, .08);
  transform: translate3d(var(--explode-x, 0), var(--explode-y, 0), var(--explode-z, 0)) rotateX(var(--explode-xr, 0deg)) rotateY(var(--explode-yr, 0deg)) rotateZ(var(--explode-r, 0deg));
  transform-origin: center;
  will-change: transform;
  opacity: .16;
}

.lab-stage__backplate::before,
.lab-stage__backplate::after { position: absolute; pointer-events: none; content: ""; }
.lab-stage__backplate::before { inset: 8px; border: 0; box-shadow: inset 0 1px 0 rgba(223, 244, 255, .06); }
.lab-stage__backplate::after { top: 9px; right: 13px; left: 13px; height: 1px; background: linear-gradient(90deg, var(--lab-ice) 0 13%, transparent 13% 79%, var(--lab-violet) 79% 87%, transparent 87%); box-shadow: 0 0 10px rgba(116, 220, 255, .3); }

.lab-stage__backplate svg {
  position: absolute;
  inset: 13px;
  display: block;
  width: calc(100% - 26px);
  height: calc(100% - 26px);
  overflow: visible;
  fill: none;
  stroke: rgba(116, 220, 255, .34);
  stroke-width: 1;
}

.lab-stage__blueprint-heavy { stroke: rgba(135, 201, 240, .36); stroke-width: 1.5; }
.lab-stage__blueprint-fine { stroke: rgba(181, 154, 255, .42); stroke-width: .8; }

.lab-stage__crossbar { display:none;
  position: absolute;
  top: 14%;
  right: 12%;
  left: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(116, 220, 255, .8) 12% 88%, transparent);
  box-shadow: 0 0 12px rgba(116, 220, 255, .3);
  transform: translate3d(var(--explode-x, 0), var(--explode-y, 0), 0);
  transform-origin: center;
  will-change: transform;
}

.lab-stage__crossbar i { position: absolute; top: -3px; width: 1px; height: 7px; background: var(--lab-ice); opacity: .7; }
.lab-stage__crossbar i:nth-child(1) { left: 3%; }
.lab-stage__crossbar i:nth-child(2) { left: 31%; }
.lab-stage__crossbar i:nth-child(3) { right: 31%; }
.lab-stage__crossbar i:nth-child(4) { right: 3%; }

.lab-stage__side-rail { display:none;
  position: absolute;
  top: 21%;
  bottom: 17%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(116, 220, 255, .68) 18% 78%, transparent);
  box-shadow: 0 0 9px rgba(116, 220, 255, .17);
  will-change: transform;
}

.lab-stage__side-rail::before,
.lab-stage__side-rail::after { position: absolute; left: -2px; width: 5px; height: 1px; background: var(--lab-ice); content: ""; }
.lab-stage__side-rail::before { top: 6px; }
.lab-stage__side-rail::after { bottom: 6px; }
.lab-stage__side-rail--left { left: 4%; transform: translate3d(var(--explode-x, 0), var(--explode-y, 0), 0); }
.lab-stage__side-rail--right { right: 4%; transform: translate3d(var(--explode-x, 0), var(--explode-y, 0), 0); }

.lab-stage__gear { display: none; }

.lab-stage__light-strip { display:none;
  position: absolute;
  top: 77%;
  left: 8%;
  display: flex;
  gap: 8px;
  transform: translate3d(var(--explode-x, 0), var(--explode-y, 0), 0);
  will-change: transform;
}

.lab-stage__light-strip span { width: 5px; height: 5px; border: 1px solid rgba(217, 241, 255, .75); border-radius: 50%; background: var(--lab-ice); box-shadow: 0 0 9px rgba(116, 220, 255, .72); }
.lab-stage__light-strip span:first-child { background: var(--lab-violet); box-shadow: 0 0 9px rgba(181, 154, 255, .65); }

.lab-stage__drawer-shadow {
  position: absolute;
  z-index: 1;
  inset: 22px 2.8% 24px;
  border: 0;
  border-radius: 14px;
  background: rgba(3, 11, 21, .34);
  box-shadow: 0 0 55px rgba(42, 117, 166, .16), 0 25px 48px rgba(1, 6, 13, .3);
  backdrop-filter: blur(15px);
}

.lab-stage__drawer {
  position: absolute;
  z-index: 2;
  inset: 19px 2.8% 22px;
  display: grid;
  grid-template-rows: 38px minmax(0, 1fr) 56px 29px;
  min-width: 0;
  border: 1px solid rgba(160, 206, 237, .26);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(15, 31, 49, .97), rgba(9, 20, 34, .97) 55%, rgba(13, 23, 40, .98));
  box-shadow: inset 0 1px 0 rgba(222, 242, 255, .12), 0 18px 48px rgba(1, 7, 15, .3);
}

.lab-stage__drawer::before,
.lab-stage__drawer::after { display: none; }

.lab-stage__header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 0 14px;
  border-bottom: 1px solid rgba(153, 195, 227, .18);
  background: linear-gradient(180deg, rgba(29, 51, 73, .7), rgba(15, 31, 49, .74));
  color: #eaf4ff;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: .055em;
}

.lab-stage__brand-mark { position: relative; width: 18px; height: 18px; flex: 0 0 auto; }
.lab-stage__brand-mark i { position: absolute; display: block; border: 1.5px solid var(--lab-ice); }
.lab-stage__brand-mark i:nth-child(1) { inset: 1px 7px 5px 1px; border-right: 0; border-bottom: 0; }
.lab-stage__brand-mark i:nth-child(2) { inset: 6px 1px 1px 6px; border-top: 0; border-left: 0; border-color: var(--lab-violet); }
.lab-stage__brand-mark i:nth-child(3) { top: 8px; left: 1px; width: 8px; border-color: var(--lab-ice-bright); border-width: 1.5px 0 0; }
.lab-stage__brand { color: #f2f8ff; font-size: 13px; font-weight: 900; letter-spacing: .12em; white-space: nowrap; }
.lab-stage__brand b { color: var(--lab-ice); font-weight: 900; }
.lab-stage__instrument { margin-left: auto; color: #b8cde0; font-size: 13px; font-weight: 730; white-space: nowrap; }

.lab-stage__panel {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 11px 22px 8px;
  background: linear-gradient(115deg, rgba(24, 46, 67, .27), rgba(9, 20, 34, .2) 48%, rgba(41, 33, 66, .09));
  box-shadow: inset 0 1px rgba(220, 241, 255, .035), inset 0 -1px rgba(147, 190, 222, .08);
}

.lab-stage__loading-mark { display: flex; justify-content: center; align-items: center; gap: 5px; height: 100%; }
.lab-stage__loading-mark i { width: 3px; height: 22px; background: var(--lab-ice); box-shadow: 0 0 12px rgba(116, 220, 255, .45); }
.lab-stage__loading-mark i:nth-child(2) { height: 34px; background: var(--lab-violet); }

.lab-stage__module { display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; }
.lab-stage__module-heading { display: flex; align-items: center; min-height: 24px; color: #e5f1ff; font-size: 14px; font-weight: 760; letter-spacing: .01em; }

.lab-stage__equation { display: grid; grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr); align-items: end; gap: 14px; min-height: 104px; padding: 2px 2px 7px; }
.lab-stage__operand { display: block; min-width: 0; }
.lab-stage__operand > span { display: block; margin-bottom: 3px; color: #a9bfd3; font-size: 13px; font-weight: 700; }
.lab-stage__operand > div { display: flex; align-items: baseline; min-width: 0; gap: 8px; }
.lab-stage__operand input,
.lab-stage__operand output { display: block; width: min(100%, 270px); min-width: 0; padding: 0; border: 0; border-bottom: 1px solid rgba(139, 195, 231, .27); border-radius: 0; outline: none; background: transparent; color: var(--lab-ice-bright); font-size: clamp(42px, 5.4vw, 68px); font-weight: 780; letter-spacing: -.075em; line-height: .98; font-variant-numeric: tabular-nums; text-shadow: 0 0 22px rgba(116, 220, 255, .15); }
.lab-stage__operand input:focus { border-bottom: 1px solid var(--lab-ice); box-shadow: 0 3px 12px rgba(116, 220, 255, .17); }
.lab-stage__operand select { width: 130px; max-width: 43%; padding: 3px 17px 3px 2px; border: 0; border-bottom: 1px solid rgba(139, 195, 231, .3); border-radius: 0; background-color: rgba(14, 31, 48, .96); color: #d3e8fa; font-size: 13px; font-weight: 700; }
.lab-stage__operand select option { background: #102238; color: #eaf4ff; }
.lab-stage__operand--result { text-align: right; }
.lab-stage__operand--result > div { justify-content: flex-end; }
.lab-stage__operand--result output { width: auto; color: var(--lab-ice); }
.lab-stage__operand--result select { text-align: right; }
.lab-stage__equals { align-self: center; margin-top: 20px; color: var(--lab-violet); font-size: 36px; font-weight: 400; line-height: 1; text-align: center; text-shadow: 0 0 18px rgba(181, 154, 255, .28); }

.lab-stage__ruler-wrap { position: relative; flex: 1 1 auto; min-height: 75px; margin: 0 5px; border-top: 1px solid rgba(142, 189, 222, .17); }
.lab-stage__ruler { position: absolute; inset: 8px 0 0; width: 100%; height: 59px; overflow: visible; }
.lab-stage__ruler-axis { fill: none; stroke: rgba(170, 216, 245, .7); stroke-width: 1; }
.lab-stage__ruler-ticks { fill: none; stroke: rgba(175, 209, 235, .56); stroke-width: .8; }
.lab-stage__ruler-ticks line:nth-child(5n + 1) { stroke: rgba(202, 231, 251, .9); stroke-width: 1.15; }
.lab-stage__ruler-cap { position: absolute; top: 54px; color: #b7cde0; font-size: 13px; font-weight: 680; }
.lab-stage__ruler-cap--start { left: 0; }
.lab-stage__ruler-cap--center { left: 50%; color: #d0bfff; transform: translateX(-50%); }
.lab-stage__ruler-cap--end { right: 0; }
.lab-stage__ruler-pointer { position: absolute; top: 3px; bottom: 19px; left: var(--pointer-position, 50%); width: 1px; background: var(--lab-ice); box-shadow: 0 0 10px rgba(116, 220, 255, .8); transform: translateX(-50%); transition: left 100ms linear; }
.lab-stage__ruler-pointer i { position: absolute; top: 0; left: 50%; width: 9px; height: 9px; border: 1px solid #e7f8ff; background: var(--lab-violet); transform: translate(-50%, -2px) rotate(45deg); box-shadow: 0 0 0 1px var(--lab-violet), 0 0 12px rgba(181, 154, 255, .65); }
.lab-stage__ruler-pointer b { position: absolute; bottom: -1px; left: 50%; width: 11px; height: 3px; background: var(--lab-ice); transform: translateX(-50%); }
.lab-stage__ruler-reading { position: absolute; right: 0; bottom: 0; max-width: 70%; overflow: hidden; color: #bed1e2; font-size: 13px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.lab-stage__message { min-height: 18px; color: #a9bfd3; font-size: 13px; font-weight: 650; }
.lab-stage__message:empty { visibility: hidden; }
.lab-stage__panel[data-error="true"] .lab-stage__message { color: var(--lab-error); }
.lab-stage__panel[data-error="true"] .lab-stage__ruler-pointer { background: var(--lab-error); box-shadow: 0 0 12px rgba(255, 154, 173, .55); }

.lab-stage__limit-fields { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 15px; margin-top: 7px; }
.lab-stage__limit-fields label { display: block; min-width: 0; }
.lab-stage__limit-fields label > span { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; color: #b5c9dc; font-size: 13px; font-weight: 700; }
.lab-stage__limit-fields label > div { display: flex; align-items: baseline; gap: 5px; border-bottom: 1px solid rgba(139, 195, 231, .26); }
.lab-stage__limit-fields input { width: 100%; min-width: 0; height: 34px; padding: 2px 0 0; border: 0; outline: 0; background: transparent; color: #eaf4ff; font-size: clamp(23px, 2.7vw, 34px); font-weight: 740; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.lab-stage__limit-fields input:focus { border-bottom: 1px solid var(--lab-ice); box-shadow: 0 3px 10px rgba(116, 220, 255, .15); }
.lab-stage__limit-fields em { flex: 0 0 auto; color: #9fb4c8; font-size: 13px; font-style: normal; }

.lab-stage__range { position: relative; flex: 1 1 auto; min-height: 91px; margin: 6px 13px 0; padding-top: 18px; }
.lab-stage__range-track { position: relative; height: 25px; margin: 0 8px; border-top: 1px solid rgba(158, 204, 235, .44); border-bottom: 1px solid rgba(158, 204, 235, .44); background: linear-gradient(180deg, rgba(34, 70, 99, .42), rgba(13, 32, 51, .32)); }
.lab-stage__range-track::before { position: absolute; top: 50%; right: 0; left: 0; height: 1px; background: rgba(167, 207, 233, .28); content: ""; }
.lab-stage__range-band { position: absolute; z-index: 1; top: 4px; left: var(--range-start, 0%); width: var(--range-width, 100%); height: 13px; border: 1px solid rgba(116, 220, 255, .62); background: linear-gradient(90deg, rgba(50, 145, 194, .42), rgba(116, 220, 255, .3) 52%, rgba(138, 126, 216, .34)); box-shadow: inset 0 1px rgba(226, 249, 255, .2), 0 0 13px rgba(79, 184, 231, .18); }
.lab-stage__range-center { position: absolute; z-index: 2; top: -7px; left: var(--nominal-position, 50%); width: 2px; height: 35px; border: 0; background: var(--lab-violet); box-shadow: 0 0 0 1px rgba(181, 154, 255, .25), 0 0 12px rgba(181, 154, 255, .48); transform: translateX(-50%); }
.lab-stage__range-end { position: absolute; z-index: 2; top: -5px; width: 1px; height: 30px; background: rgba(226, 243, 255, .9); box-shadow: 0 0 7px rgba(116, 220, 255, .45); }
.lab-stage__range-end--left { left: 0; }
.lab-stage__range-end--right { left: 100%; }
.lab-stage__range-labels { position: relative; height: 36px; margin: 11px 8px 0; text-align: left; }
.lab-stage__range-labels > span { position: absolute; top: 0; }
.lab-stage__range-min { left: 0; text-align: left; }
.lab-stage__range-nominal { left: var(--nominal-position, 50%); transform: translateX(-50%); text-align: center; }
.lab-stage__range-max { right: 0; text-align: right; }
.lab-stage__range[data-nominal-side="left"] .lab-stage__range-nominal { transform: none; text-align: left; }
.lab-stage__range[data-nominal-side="right"] .lab-stage__range-nominal { transform: translateX(-100%); text-align: right; }
.lab-stage__range-labels small { display: block; color: #a8bfd4; font-size: 13px; font-weight: 680; }
.lab-stage__range-labels output { display: block; margin-top: 1px; color: #e6f3ff; font-size: clamp(16px, 1.7vw, 21px); font-weight: 760; font-variant-numeric: tabular-nums; letter-spacing: -.025em; white-space: nowrap; }
.lab-stage__range-nominal output { color: #d2c1ff; }
.lab-stage__range-collapsed { display: none; right: 0; left: 0; color: #e9f4ff; font-size: 13px; font-weight: 680; text-align: center; white-space: nowrap; }
.lab-stage__range[data-collapsed="true"] .lab-stage__range-min,
.lab-stage__range[data-collapsed="true"] .lab-stage__range-nominal,
.lab-stage__range[data-collapsed="true"] .lab-stage__range-max { display: none; }
.lab-stage__range[data-collapsed="true"] .lab-stage__range-collapsed { display: block; }
.lab-stage__range[data-collapsed="true"] .lab-stage__range-end,
.lab-stage__range[data-collapsed="true"] .lab-stage__range-center { display: none; }
.lab-stage__range[data-collapsed="true"] .lab-stage__range-band { left: calc(50% - 3px); width: 6px; background: var(--lab-ice); box-shadow: 0 0 13px rgba(116, 220, 255, .6); }
.lab-stage__range[data-error="true"] .lab-stage__range-band { width: 0; border-color: var(--lab-error); background: transparent; box-shadow: none; }
.lab-stage__range[data-error="true"] .lab-stage__range-end,
.lab-stage__range[data-error="true"] .lab-stage__range-center { display: none; }
.lab-stage__range[data-nominal-outside="true"] .lab-stage__range-center { background: var(--lab-violet); }
.lab-stage__limit-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 20px; padding-top: 4px; border-top: 1px solid rgba(142, 189, 222, .17); color: #a9bfd3; font-size: 13px; font-weight: 680; }
.lab-stage__limit-foot .lab-stage__message { text-align: right; }

.lab-stage__task-scene { position: relative; display: grid; flex: 1 1 auto; min-height: 0; place-items: center; padding: 9px 35px; }
.lab-stage__task-card { position: relative; display: flex; align-items: center; gap: 17px; width: min(100%, 700px); min-height: 103px; padding: 23px 22px; border: 1px solid rgba(140, 193, 228, .3); border-radius: 8px; background: linear-gradient(120deg, rgba(21, 44, 66, .93), rgba(14, 29, 46, .91)); box-shadow: inset 0 1px rgba(224, 243, 255, .08), 0 12px 30px rgba(1, 8, 18, .23); transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease; }
.lab-stage__task-card::before { position: absolute; top: -1px; left: 20px; width: 42px; height: 1px; background: linear-gradient(90deg, var(--lab-ice), var(--lab-violet)); content: ""; }
.lab-stage__task-toggle { display: flex; align-items: center; gap: 15px; min-width: 0; cursor: pointer; }
.lab-stage__task-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.lab-stage__task-check { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(165, 209, 239, .6); border-radius: 5px; background: rgba(6, 18, 31, .82); box-shadow: inset 0 0 12px rgba(59, 137, 181, .1); }
.lab-stage__task-check i { width: 18px; height: 10px; border-bottom: 2px solid transparent; border-left: 2px solid transparent; transform: rotate(-45deg) translate(2px, -2px); }
.lab-stage__task-toggle input:checked + .lab-stage__task-check { border-color: var(--lab-ice); background: rgba(64, 155, 197, .34); box-shadow: 0 0 14px rgba(116, 220, 255, .22); }
.lab-stage__task-toggle input:checked + .lab-stage__task-check i { border-color: var(--lab-ice-bright); }
.lab-stage__task-toggle input:focus-visible + .lab-stage__task-check { outline: 2px solid var(--lab-violet); outline-offset: 3px; }
.lab-stage__task-copy { color: #e6f2ff; font-size: clamp(17px, 2vw, 23px); font-weight: 730; letter-spacing: -.025em; line-height: 1.3; }
.lab-stage__task-stamp { display: grid; min-width: 58px; height: 29px; place-items: center; margin-left: auto; border: 1px solid rgba(141, 185, 216, .36); border-radius: 4px; color: #aac1d5; font-size: 13px; font-weight: 680; }
.lab-stage__module--tasks.is-done .lab-stage__task-card { border-color: rgba(116, 220, 255, .56); background: linear-gradient(120deg, rgba(27, 74, 99, .76), rgba(24, 37, 69, .86)); box-shadow: inset 3px 0 var(--lab-violet), 0 0 23px rgba(76, 174, 218, .14); }
.lab-stage__module--tasks.is-done .lab-stage__task-stamp { border-color: rgba(116, 220, 255, .62); color: var(--lab-ice-bright); }
.lab-stage__task-marks { position: absolute; right: 4%; bottom: 3px; display: flex; align-items: center; gap: 5px; }
.lab-stage__task-marks i { width: 14px; height: 1px; background: var(--lab-ice); opacity: .7; box-shadow: 0 0 7px rgba(116, 220, 255, .3); }
.lab-stage__task-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 20px; color: #a6bbcf; font-size: 13px; font-weight: 650; }

.lab-stage__text-workbench { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); align-items: stretch; flex: 1 1 auto; min-height: 0; gap: 11px; padding: 7px 0 5px; }
.lab-stage__text-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.lab-stage__text-pane > span { display: flex; justify-content: space-between; align-items: baseline; min-height: 19px; color: #b5c9dc; font-size: 13px; font-weight: 700; }
.lab-stage__text-pane textarea { width: 100%; min-height: 0; flex: 1 1 auto; resize: none; padding: 8px 10px; border: 1px solid rgba(130, 177, 211, .28); border-radius: 5px; outline: 0; background: linear-gradient(145deg, rgba(5, 16, 28, .8), rgba(12, 27, 43, .94)); color: #e2effc; box-shadow: inset 0 4px 16px rgba(1, 7, 14, .2); font-size: 14px; line-height: 1.48; }
.lab-stage__text-pane textarea:focus { border-color: rgba(116, 220, 255, .72); box-shadow: inset 0 0 0 1px rgba(116, 220, 255, .2), 0 0 16px rgba(67, 163, 207, .13); }
.lab-stage__text-pane--result textarea { border-left: 2px solid var(--lab-ice); background: linear-gradient(145deg, rgba(12, 28, 45, .93), rgba(17, 28, 49, .92)); }
.lab-stage__text-arrow { align-self: center; color: var(--lab-violet); font-size: 20px; font-weight: 400; text-align: center; }
.lab-stage__text-options { display: flex; align-items: center; gap: 13px; min-height: 29px; }
.lab-stage__text-options label { display: inline-flex; align-items: center; gap: 5px; color: #c0d2e3; font-size: 13px; font-weight: 650; white-space: nowrap; }
.lab-stage__text-options input { width: 13px; height: 13px; margin: 0; accent-color: var(--lab-ice); }
.lab-stage__text-options button { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; margin-left: auto; padding: 0 12px; border: 1px solid rgba(116, 220, 255, .55); border-radius: 5px; background: linear-gradient(115deg, rgba(28, 87, 118, .76), rgba(38, 54, 94, .68)); color: #e9f8ff; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 0 15px rgba(67, 163, 207, .11); }
.lab-stage__text-options button:hover { border-color: var(--lab-ice); background: rgba(42, 103, 136, .82); }
.lab-stage__text-options button:active { transform: translateY(1px); }

.lab-stage__image-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(150px, .75fr); align-items: stretch; flex: 1 1 auto; min-height: 0; gap: 18px; padding: 7px 0 5px; }
.lab-stage__image-frame { position: relative; display: grid; min-width: 0; min-height: 0; place-items: center; overflow: hidden; border: 1px solid rgba(137, 186, 220, .27); border-radius: 7px; background: repeating-linear-gradient(45deg, rgba(90, 133, 169, .07) 0 6px, transparent 6px 12px), linear-gradient(135deg, #081524, #102239); box-shadow: inset 0 0 22px rgba(1, 8, 17, .4); }
.lab-stage__frame-label { position: absolute; z-index: 1; top: 7px; left: 8px; padding: 2px 4px; background: rgba(9, 20, 33, .85); color: #c3d9eb; font-size: 13px; font-weight: 680; }
.lab-stage__image-art { width: min(85%, 325px); max-height: 88%; overflow: visible; transform: scale(var(--image-scale, .84)); transform-origin: center; transition: transform 100ms linear; filter: drop-shadow(0 0 9px rgba(70, 177, 224, .25)); }
.lab-stage__image-art rect { vector-effect: non-scaling-stroke; fill: #0d2033 !important; stroke: #70d5f4 !important; }
.lab-stage__image-art path { stroke: #96c9e8 !important; }
.lab-stage__image-art path:nth-of-type(3) { stroke: var(--lab-violet) !important; }
.lab-stage__image-art circle:first-of-type { fill: #7d6fc0 !important; stroke: #c1b2ff !important; }
.lab-stage__image-art circle:nth-of-type(2) { fill: #10263b !important; stroke: #9eeaff !important; }
.lab-stage__image-art circle:last-of-type { fill: var(--lab-ice-bright) !important; stroke: none !important; }
.lab-stage__scale-control { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.lab-stage__scale-value { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 5px; border-bottom: 1px solid rgba(142, 189, 222, .2); }
.lab-stage__scale-value small { color: #b4c9dc; font-size: 13px; font-weight: 680; }
.lab-stage__scale-value output { color: var(--lab-ice); font-size: clamp(27px, 3.3vw, 41px); font-weight: 760; letter-spacing: -.06em; font-variant-numeric: tabular-nums; text-shadow: 0 0 16px rgba(116, 220, 255, .2); }
.lab-stage__scale-control > label { margin-top: 13px; color: #c2d5e6; font-size: 13px; font-weight: 680; }
.lab-stage__scale-control input[type="range"] { width: 100%; height: 21px; margin: 6px 0 0; appearance: none; background: transparent; cursor: ew-resize; }
.lab-stage__scale-control input[type="range"]::-webkit-slider-runnable-track { height: 3px; border: 0; background: linear-gradient(90deg, rgba(121, 165, 196, .48), rgba(116, 220, 255, .7) 72%, rgba(181, 154, 255, .68)); }
.lab-stage__scale-control input[type="range"]::-moz-range-track { height: 3px; border: 0; background: linear-gradient(90deg, rgba(121, 165, 196, .48), rgba(116, 220, 255, .7) 72%, rgba(181, 154, 255, .68)); }
.lab-stage__scale-control input[type="range"]::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -6px; appearance: none; border: 1px solid #d4f4ff; border-radius: 50%; background: var(--lab-ice); box-shadow: 0 0 0 3px rgba(116, 220, 255, .13), 0 0 11px rgba(116, 220, 255, .65); }
.lab-stage__scale-control input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 1px solid #d4f4ff; border-radius: 50%; background: var(--lab-ice); box-shadow: 0 0 0 3px rgba(116, 220, 255, .13), 0 0 11px rgba(116, 220, 255, .65); }
.lab-stage__scale-ends { display: flex; justify-content: space-between; color: #9fb7ca; font-size: 13px; font-weight: 650; }
.lab-stage__scale-result { margin-top: 12px; color: #e2f1ff; font-size: 16px; font-weight: 720; font-variant-numeric: tabular-nums; letter-spacing: -.015em; white-space: nowrap; }
.lab-stage__image-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 20px; padding-top: 3px; border-top: 1px solid rgba(142, 189, 222, .17); color: #a6bbcf; font-size: 13px; font-weight: 650; }

.lab-stage__mode-bank { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-width: 0; border-top: 1px solid rgba(145, 191, 224, .22); border-bottom: 1px solid rgba(145, 191, 224, .18); background: rgba(7, 18, 31, .74); }
.lab-stage__mode { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; padding: 4px 9px; border: 0; border-right: 1px solid rgba(142, 189, 222, .13); background: transparent; color: #b8cadb; cursor: pointer; transition: background-color 130ms ease, color 130ms ease; }
.lab-stage__mode:last-child { border-right: 0; }
.lab-stage__mode::before { position: absolute; top: -1px; right: 0; left: 0; height: 1px; background: transparent; content: ""; }
.lab-stage__mode[aria-pressed="true"] { background: linear-gradient(180deg, rgba(42, 106, 141, .24), rgba(26, 49, 75, .32)); color: #f2f8ff; }
.lab-stage__mode[aria-pressed="true"]::before { background: linear-gradient(90deg, transparent, var(--lab-ice) 22% 72%, var(--lab-violet) 88%, transparent); box-shadow: 0 0 10px rgba(116, 220, 255, .44); }
.lab-stage__mode svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: square; stroke-linejoin: miter; }
.lab-stage__mode[aria-pressed="true"] svg { color: var(--lab-ice); filter: drop-shadow(0 0 5px rgba(116, 220, 255, .25)); }
.lab-stage__mode-name { overflow: hidden; color: inherit; font-size: 14px; font-weight: 680; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.lab-stage__mode:hover { background-color: rgba(80, 141, 180, .13); color: #eff8ff; }
.lab-stage__mode:focus-visible,
.lab-stage__tool-link:focus-visible,
.lab-stage__text-options button:focus-visible { z-index: 1; outline: 2px solid var(--lab-ice); outline-offset: -3px; }

.lab-stage__footer { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 0 12px; color: #a8bfd3; font-size: 13px; font-weight: 650; }
.lab-stage__footer-state { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: #e3effa; font-weight: 700; white-space: nowrap; }
.lab-stage__footer-state i { width: 6px; height: 6px; flex: 0 0 auto; border: 1px solid var(--lab-ice); border-radius: 50%; background: var(--lab-ice); box-shadow: 0 0 8px rgba(116, 220, 255, .52); }
.lab-stage__footer-note { overflow: hidden; color: #a0b4c7; text-overflow: ellipsis; white-space: nowrap; }
.lab-stage__tool-link { display: inline-flex; align-items: center; gap: 7px; min-height: 23px; margin-left: auto; padding: 0 7px; color: #d9edfc; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.lab-stage__tool-link b { color: var(--lab-ice); font-size: 15px; font-weight: 500; }
.lab-stage__tool-link:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--lab-ice); text-underline-offset: 3px; }

.lab-stage__corner { display: none; position: absolute; z-index: 3; width: 24px; height: 1px; background: linear-gradient(90deg, var(--lab-ice), rgba(116, 220, 255, .16)); box-shadow: 0 0 9px rgba(116, 220, 255, .38); }
.lab-stage__corner--tl { top: 12px; left: 25px; }
.lab-stage__corner--br { right: 25px; bottom: 14px; transform: rotate(180deg); }
.lab-stage.is-shifting .lab-stage__drawer { box-shadow: inset 0 1px 0 rgba(222, 242, 255, .15), 0 18px 48px rgba(1, 7, 15, .3), 0 0 30px rgba(116, 220, 255, .11); }

@media (max-height: 820px) and (min-width: 681px) {
  .lab-stage { height: clamp(390px, 51vh, 410px); }
  .lab-stage__drawer { grid-template-rows: 36px minmax(0, 1fr) 52px 27px; }
  .lab-stage__panel { padding-top: 8px; padding-bottom: 6px; }
  .lab-stage__equation { min-height: 91px; }
}

@media (max-width: 840px) and (min-width: 681px) {
  .lab-stage__drawer { right: 2.2%; left: 2.2%; }
  .lab-stage__panel { padding-right: 16px; padding-left: 16px; }
  .lab-stage__mode { gap: 5px; padding-right: 5px; padding-left: 5px; }
  .lab-stage__module--convert .lab-stage__equation { gap: 8px; }
  .lab-stage__operand select { width: 110px; }
}

@media (max-width: 680px) {
  .lab-stage { height: 470px; min-height: 470px; perspective: 900px; }
  .lab-stage__case { border-radius: 15px; }
  .lab-stage__field { inset: 6px 6px 14px; border-radius: 11px; }
  .lab-stage__backplate { top: 19%; right: -2%; left: -2%; height: 66%; }
  .lab-stage__crossbar { display:none; right: 13%; left: 13%; }
  .lab-stage__side-rail { display:none; top: 20%; bottom: 17%; }
  .lab-stage__side-rail--left { left: 3.3%; }
  .lab-stage__side-rail--right { right: 3.3%; }
  .lab-stage__light-strip { display:none; left: 9%; }
  .lab-stage__drawer-shadow { inset: 17px 3.1% 23px; }
  .lab-stage__drawer { inset: 15px 3.1% 21px; grid-template-rows: 36px minmax(0, 1fr) 51px 28px; border-radius: 10px; }
  .lab-stage__header { gap: 7px; padding: 0 9px; }
  .lab-stage__brand-mark { width: 16px; height: 16px; }
  .lab-stage__panel { padding: 9px 12px 5px; }
  .lab-stage__module-heading { min-height: 23px; }
  .lab-stage__equation { grid-template-columns: minmax(0, 1fr) 23px minmax(0, 1fr); gap: 7px; min-height: 100px; padding: 5px 0 6px; }
  .lab-stage__operand > div { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
  .lab-stage__operand input,
  .lab-stage__operand output { width: 100%; max-width: 100%; font-size: clamp(37px, 11vw, 48px); }
  .lab-stage__operand select { width: 100%; max-width: 100%; padding-top: 2px; padding-bottom: 2px; font-size: 16px; }
  .lab-stage__operand--result { text-align: right; }
  .lab-stage__operand--result > div { align-items: flex-end; }
  .lab-stage__operand--result select { text-align: right; }
  .lab-stage__equals { margin-top: 15px; font-size: 27px; }
  .lab-stage__ruler-wrap { min-height: 68px; margin-right: 2px; margin-left: 2px; }
  .lab-stage__ruler { top: 7px; height: 53px; }
  .lab-stage__ruler-cap { top: 48px; }
  .lab-stage__ruler-reading { max-width: 65%; }
  .lab-stage__limit-fields { gap: 8px; margin-top: 7px; }
  .lab-stage__limit-fields label > span { min-height: 23px; align-items: flex-start; flex-direction: column; gap: 1px; }
  .lab-stage__limit-fields input { height: 32px; font-size: 16px; }
  .lab-stage__range { min-height: 93px; margin: 7px 6px 0; padding-top: 18px; }
  .lab-stage__range-track { height: 22px; margin-right: 6px; margin-left: 6px; }
  .lab-stage__range-band { top: 3px; height: 12px; }
  .lab-stage__range-center { top: -7px; height: 33px; }
  .lab-stage__range-end { top: -5px; height: 28px; }
  .lab-stage__range-labels { height: 37px; margin-top: 10px; }
  .lab-stage__range-labels output { font-size: 16px; }
  .lab-stage__task-scene { padding: 7px 7px; }
  .lab-stage__task-card { gap: 10px; min-height: 92px; padding: 22px 12px 16px; }
  .lab-stage__task-toggle { gap: 10px; }
  .lab-stage__task-check { width: 30px; height: 30px; }
  .lab-stage__task-stamp { min-width: 58px; height: 29px; }
  .lab-stage__task-marks { right: 3%; bottom: 0; }
  .lab-stage__text-workbench { grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr); gap: 6px; padding: 5px 0 4px; }
  .lab-stage__text-pane textarea { padding: 6px; font-size: 16px; line-height: 1.4; }
  .lab-stage__text-options { flex-wrap: wrap; gap: 4px 9px; min-height: 38px; }
  .lab-stage__text-options input { width: 13px; height: 13px; }
  .lab-stage__text-options button { min-height: 30px; padding: 0 8px; }
  .lab-stage__image-layout { grid-template-columns: minmax(0, 1.1fr) minmax(102px, .8fr); gap: 10px; padding: 6px 0 4px; }
  .lab-stage__frame-label { top: 5px; left: 5px; max-width: calc(100% - 10px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lab-stage__image-art { width: 92%; max-height: 80%; }
  .lab-stage__scale-value output { font-size: 29px; }
  .lab-stage__scale-control > label { margin-top: 8px; }
  .lab-stage__scale-control input[type="range"] { margin-top: 3px; }
  .lab-stage__scale-result { margin-top: 8px; font-size: 14px; white-space: normal; }
  .lab-stage__mode { flex-direction: column; gap: 0; padding: 3px 2px 4px; }
  .lab-stage__mode svg { width: 16px; height: 16px; }
  .lab-stage__mode-name { max-width: 100%; font-size: 13px; }
  .lab-stage__footer { gap: 7px; padding: 0 7px; }
  .lab-stage__footer-note { display: none; }
  .lab-stage__tool-link { gap: 4px; padding: 0 3px; }
  .lab-stage__corner--tl { top: 10px; left: 17px; width: 19px; }
  .lab-stage__corner--br { right: 17px; bottom: 13px; width: 19px; }
}

@media (max-width: 360px) {
  .lab-stage__panel { padding-right: 9px; padding-left: 9px; }
  .lab-stage__limit-fields { gap: 5px; }
  .lab-stage__task-card { gap: 7px; padding-right: 8px; padding-left: 8px; }
  .lab-stage__task-copy { font-size: 14px; }
  .lab-stage__task-stamp { min-width: 36px; }
  .lab-stage__text-workbench { grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr); gap: 4px; }
  .lab-stage__image-layout { grid-template-columns: minmax(0, 1fr) 94px; gap: 7px; }
  .lab-stage__mode-name { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .lab-stage *,
  .lab-stage *::before,
  .lab-stage *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
