/* 地科 3D 實驗室 — the shell every lab page shares: a top bar, chapters on the left, the 3D stage, the lesson panel on the right.
   The scene may be photo-real; the UI around it stays flat like the rest of the site (no gradients, no glow). */
.lab, .lab * { box-sizing: border-box; }
html.lab-page, .lab-page body { height: 100%; }
.lab-page body { overflow: hidden; background: #0B1117; font-family: var(--body); font-size: 16px; line-height: 1.7; }
.lab {
  --rail: 216px; --panel: 368px; --bar: 60px;
  --bg: #0B1117; --card: #121B23; --card2: #18232D; --edge: rgba(241, 247, 251, 0.10);
  --ink: #E8EEF2; --dim: #A9B7C0; --mute: #6F818B; --accent: #F2A03D; --on-accent: #0A0E14;
  display: grid; grid-template: var(--bar) minmax(0, 1fr) / var(--rail) minmax(0, 1fr) var(--panel);
  grid-template-areas: "bar bar bar" "rail stage panel"; height: 100dvh; color: var(--ink);
}

/* ---------- top bar ---------- */
.lab-bar { grid-area: bar; display: flex; align-items: center; gap: 14px; padding: 0 14px 0 16px; border-bottom: 1px solid var(--edge); background: var(--bg); min-width: 0; }
.lab-back { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--dim); font-size: 14px; flex: none; }
.lab-back img { width: 32px; height: 32px; border-radius: 9px; }
.lab-back:hover { color: var(--ink); }
.lab-name { min-width: 0; display: flex; align-items: center; gap: 12px; padding-left: 14px; border-left: 1px solid var(--edge); }
.lab-name > div { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.lab-code { flex: none; font: 400 13px var(--pixel); letter-spacing: 0.04em; color: var(--on-accent); background: var(--accent); padding: 1px 7px; border-radius: 5px; }
.lab-name b { font: 400 18px var(--serif); letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lab-name small { font-size: 12.5px; color: var(--mute); letter-spacing: 0.06em; white-space: nowrap; }
.lab-progress { display: flex; gap: 4px; margin-left: 10px; }
.lab-progress i { width: 18px; height: 3px; border-radius: 2px; background: var(--edge); }
.lab-progress i.on { background: var(--accent); }
.lab-progress i.done { background: color-mix(in srgb, var(--accent) 45%, transparent); }
.lab-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.lab-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--dim); cursor: pointer; }
.lab-icon:hover { background: var(--edge); color: var(--ink); }
.lab-icon svg { width: 20px; height: 20px; }
.lab-cta-top { margin-left: 6px; }
.lab-cta-top.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 12px; box-shadow: 0 3px 0 var(--d); }

/* ---------- chapters ---------- */
.lab-rail { grid-area: rail; overflow-y: auto; border-right: 1px solid var(--edge); padding: 14px 10px 24px; background: var(--bg); scrollbar-width: thin; }
.lab-rail h2 { font-size: 12px; color: var(--mute); letter-spacing: 0.14em; margin: 4px 10px 10px; font-family: var(--body); }
.lab-rail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.lab-rail button { width: 100%; display: flex; gap: 12px; align-items: baseline; text-align: left; font: inherit; color: var(--dim); background: transparent; border: 0; border-radius: 10px; padding: 9px 10px; cursor: pointer; line-height: 1.45; }
.lab-rail button:hover { background: var(--card); color: var(--ink); }
.lab-rail button.on { background: var(--card2); color: var(--ink); }
.lab-rail button.on .num { color: var(--accent); }
.lab-rail .num { font: 400 15px var(--serif); color: var(--mute); flex: none; min-width: 1.6em; font-variant-numeric: tabular-nums; }
.lab-rail .t { font-size: 15px; }
.lab-keys { margin: 22px 10px 0; font-size: 12.5px; color: var(--mute); line-height: 2; }
.lab-keys kbd { display: inline-block; min-width: 22px; text-align: center; padding: 0 5px; margin-right: 4px; border-radius: 5px; background: var(--card2); color: var(--dim); font: 12px var(--body); line-height: 20px; }

/* ---------- the stage ---------- */
.lab-stage { grid-area: stage; position: relative; overflow: hidden; background: #000; min-width: 0; }
.lab-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; }
.lab-stage .layer2d { position: absolute; inset: 0; pointer-events: none; }
.lab-head { position: absolute; left: 28px; top: 22px; pointer-events: none; max-width: 60%; z-index: 2; }
.lab-head small { display: flex; align-items: center; gap: 10px; font: 500 12px var(--body); letter-spacing: 0.22em; color: var(--accent); }
.lab-head small::before { content: ""; width: 22px; height: 1px; background: var(--accent); }
.lab-head h1 { font: 700 clamp(26px, 2.8vw, 38px) var(--serif); letter-spacing: 0.06em; margin-top: 6px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75); }
.lab-head em { display: block; font: italic 400 17px Georgia, "Times New Roman", serif; color: var(--accent); margin-top: 2px; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); }
.lab-head em:empty { display: none; }
/* thin corner marks around the stage, like a viewfinder */
.lab-frame { position: absolute; inset: 12px; pointer-events: none; z-index: 1; }
.lab-frame i { position: absolute; width: 18px; height: 18px; border: 0 solid rgba(232, 238, 242, 0.32); }
.lab-frame i:nth-child(1) { left: 0; top: 0; border-width: 1px 0 0 1px; } .lab-frame i:nth-child(2) { right: 0; top: 0; border-width: 1px 1px 0 0; }
.lab-frame i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 1px 1px; } .lab-frame i:nth-child(4) { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.lab-board { position: absolute; inset: 0; width: 100%; height: 100%; display: none; pointer-events: none; }
/* the answer card: what the exam would ask, live */
.lab-card { position: absolute; z-index: 2; min-width: 230px; max-width: 300px; background: rgba(10, 13, 18, 0.92); border: 1px solid rgba(232, 238, 242, 0.12); border-radius: 12px; padding: 12px 14px 10px; pointer-events: none; }
.lab-card.at-bl { left: 20px; bottom: 20px; } .lab-card.at-br { right: 20px; bottom: 20px; } .lab-card.at-tr { right: 20px; top: 20px; } .lab-card.at-ml { left: 20px; top: 50%; transform: translateY(-50%); }
.has-scrub .lab-card.at-bl, .has-scrub .lab-card.at-br { bottom: 96px; }
.lab-card h3 { display: flex; align-items: center; gap: 8px; font: 500 12px var(--body); letter-spacing: 0.16em; color: var(--dim); margin-bottom: 6px; }
.lab-card h3::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.lab-card dl { margin: 0; }
.lab-card dl div { display: flex; justify-content: space-between; gap: 18px; padding: 5px 0; border-top: 1px solid rgba(232, 238, 242, 0.07); font-size: 14px; }
.lab-card dt { color: var(--dim); }
.lab-card dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.lab-card .hi dd { color: var(--accent); }
.lab-card .big dd { font: 700 18px var(--serif); color: var(--accent); }
/* the exam table in the panel */
.lab-facts { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.lab-facts th, .lab-facts td { padding: 8px 6px; border-bottom: 1px solid var(--edge); text-align: left; vertical-align: top; line-height: 1.55; }
.lab-facts tbody th { color: var(--accent); font: 700 15px var(--serif); white-space: nowrap; width: 1%; padding-right: 12px; }
.lab-facts thead th { color: var(--mute); font-weight: 400; font-size: 12.5px; }
.lab-facts td:last-child { color: var(--dim); }
.lab-facts tr.on th, .lab-facts tr.on td { background: rgba(232, 238, 242, 0.05); }
.lab-facts tr.on td { color: var(--ink); }
.lab-hud { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lab-hud .chip { background: rgba(9, 13, 18, 0.86); border-radius: 10px; padding: 6px 12px; display: flex; gap: 12px; align-items: baseline; font-size: 13px; color: var(--dim); }
.lab-hud .chip b { font-weight: 400; color: var(--ink); font-size: 17px; font-variant-numeric: tabular-nums; }
.lab-hud .chip:empty { display: none; }
.lab-dock { position: absolute; left: 50%; bottom: 16px; z-index: 2; transform: translateX(-50%); display: flex; gap: 4px; padding: 5px; border-radius: 14px; background: rgba(9, 13, 18, 0.86); max-width: calc(100% - 24px); overflow-x: auto; scrollbar-width: none; }
.lab-dock:empty { display: none; }
.lab-dock button { font: inherit; font-size: 14px; color: var(--dim); background: transparent; border: 0; border-radius: 10px; padding: 7px 14px; cursor: pointer; white-space: nowrap; }
.lab-dock button:hover { color: var(--ink); background: var(--edge); }
.lab-dock button.on { color: var(--on-accent); background: var(--accent); }
.has-scrub .lab-dock { bottom: 92px; }
.has-scrub .lab-hint { display: none; }

/* time scrubber: the one control every time-based lab shares */
.lab-scrub { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; display: flex; align-items: center; gap: 16px; padding: 10px 16px 8px 10px; border-radius: 14px; background: rgba(9, 13, 18, 0.9); }
.lab-play { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--accent); color: var(--on-accent); cursor: pointer; }
.lab-play svg { width: 18px; height: 18px; }
.lab-track { position: relative; flex: 1; min-width: 0; height: 44px; }
.lab-track::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 4px; border-radius: 2px; background: rgba(241, 247, 251, 0.12); }
.lab-track .fill { position: absolute; left: 0; top: 13px; height: 4px; border-radius: 2px; background: var(--accent); pointer-events: none; }
.lab-track input { position: absolute; left: -8px; right: -8px; top: 0; width: calc(100% + 16px); height: 30px; margin: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
.lab-track input::-webkit-slider-runnable-track { height: 30px; background: transparent; }
.lab-track input::-moz-range-track { height: 30px; background: transparent; }
.lab-track input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: 6px; border-radius: 50%; background: #F1F7FB; border: 0; }
.lab-track input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #F1F7FB; border: 0; }
.lab-track .tick { position: absolute; top: 25px; transform: translateX(-50%); font-size: 12px; color: var(--mute); white-space: nowrap; pointer-events: none; }
.lab-scrub-val { flex: none; min-width: 6.5em; text-align: right; font-size: 15px; font-variant-numeric: tabular-nums; line-height: 1.35; }
.lab-scrub-val small { display: block; font-size: 12px; color: var(--mute); }
.seg.sm { flex: none; flex-wrap: nowrap; gap: 4px; }
.seg.sm button { font-size: 13px; padding: 5px 10px; background: transparent; }
.seg.sm button.on { background: #E8EEF2; color: #0A0E14; }
.lab-hint { position: absolute; left: 18px; bottom: 18px; font-size: 12.5px; color: rgba(232, 238, 242, 0.55); pointer-events: none; }
.lab-tag { position: absolute; transform: translate(-50%, -50%); font-size: 13px; color: var(--ink); background: rgba(9, 13, 18, 0.78); padding: 2px 9px; border-radius: 7px; white-space: nowrap; pointer-events: none; line-height: 1.5; }
.lab-tag.gold, .lab-tag.now { color: var(--on-accent); background: var(--accent); }
.lab-tag.dim { background: transparent; color: var(--dim); font-size: 12.5px; text-shadow: 0 1px 3px #000; }
.lab-tag.plain { background: transparent; text-shadow: 0 1px 4px #000, 0 0 2px #000; }
.lab-inset { position: absolute; z-index: 1; background: rgba(9, 13, 18, 0.9); border-radius: 14px; padding: 10px 12px 10px; pointer-events: auto; }
.lab-inset.at-bl { left: 16px; bottom: 16px; } .lab-inset.at-br { right: 16px; bottom: 16px; }
.lab-inset.at-tr { right: 16px; top: 16px; } .lab-inset.at-tl { left: 16px; top: 120px; }
.has-scrub .lab-inset.at-bl, .has-scrub .lab-inset.at-br { bottom: 92px; }
.lab-view { background: transparent; border: 1px solid rgba(232, 238, 242, 0.12); }
.lab-view .hole { border-radius: 10px; }
.lab-view .cap { margin-top: 8px; text-align: center; font-size: 14px; line-height: 1.5; }
.lab-view .cap b { color: var(--accent); font-weight: 400; }
.lab-view .cap:empty { display: none; }
.lab-inset h3 { font-size: 12.5px; color: var(--dim); letter-spacing: 0.08em; margin-bottom: 4px; font-family: var(--body); }
.lab-inset canvas { display: block; }

/* loading */
.lab-load { position: absolute; inset: 0; display: grid; place-items: center; background: #0B1117; z-index: 5; transition: opacity .4s; }
.lab-load.gone { opacity: 0; pointer-events: none; }
.lab-load div { text-align: center; color: var(--dim); font-size: 14px; }
.lab-load img { width: 72px; margin: 0 auto 14px; }
.lab-load .bar { width: 160px; height: 3px; border-radius: 2px; background: var(--edge); margin: 12px auto 0; overflow: hidden; }
.lab-load .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.lab-fail { color: var(--ink); max-width: 22em; }

/* ---------- lesson panel ---------- */
.lab-panel { grid-area: panel; overflow-y: auto; border-left: 1px solid var(--edge); background: var(--bg); padding: 22px 22px 40px; scrollbar-width: thin; }
.ch-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.lab-panel .ch-num { font: italic 400 46px/0.95 Georgia, "Times New Roman", serif; color: var(--accent); flex: none; }
.lab-panel h2 { font: 700 23px var(--serif); letter-spacing: 0.04em; line-height: 1.3; }
.ch-head em { display: block; font: italic 400 14.5px Georgia, "Times New Roman", serif; color: var(--mute); margin-top: 2px; }
.lab-panel .lead { color: #D2DCE2; font-family: var(--body); font-size: 15.5px; line-height: 1.85; max-width: none; }
.lab-panel .lead b, .lab-panel li b, .lab-rule b { color: var(--accent); font-weight: 400; }
.lab-panel .lead p + p { margin-top: 10px; }
.lab-try { display: flex; gap: 10px; align-items: flex-end; margin-top: 16px; }
.lab-try img { width: 32px; height: auto; flex: none; }
.lab-try p { background: var(--card2); border-radius: 12px 12px 12px 4px; padding: 9px 12px; font-size: 14.5px; line-height: 1.65; color: var(--ink); }
.lab-rule { margin: 14px 0 6px; padding: 11px 14px; border-radius: 12px; background: var(--card2); font-size: 15px; line-height: 1.75; }
.lab-rule::before { content: "重點"; display: block; font-size: 12px; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 2px; }
.lab-sec { margin-top: 22px; }
.lab-sec > h3 { font-size: 12px; letter-spacing: 0.14em; color: var(--mute); margin-bottom: 10px; font-family: var(--body); display: flex; align-items: center; gap: 10px; }
.lab-sec > h3::after { content: ""; flex: 1; height: 1px; background: var(--edge); }
.lab-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: flex; flex-direction: column; gap: 8px; }
.lab-steps li { counter-increment: s; display: flex; gap: 12px; font-size: 15px; color: #D2DCE2; line-height: 1.7; }
.lab-steps li::before { content: counter(s, decimal-leading-zero); font: 400 14px var(--serif); color: var(--accent); flex: none; padding-top: 2px; }

/* controls */
.ctl { display: flex; flex-direction: column; gap: 14px; }
.ctl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.ctl-row label { font-size: 14.5px; color: var(--dim); }
.ctl-row output { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.ctl-row input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); height: 22px; margin: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-label { font-size: 14.5px; color: var(--dim); margin-bottom: -6px; }
.seg button, .lab-btn { font: inherit; font-size: 14.5px; color: var(--dim); background: var(--card2); border: 0; border-radius: 10px; padding: 7px 13px; cursor: pointer; line-height: 1.4; }
.seg button:hover, .lab-btn:hover { color: var(--ink); background: #22303B; }
.seg button.on { color: var(--on-accent); background: var(--accent); }
.lab-btn.primary { color: #fff; background: var(--brand-deep); }
.lab-btn.primary:hover { background: #1592CD; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
.tog { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--dim); cursor: pointer; user-select: none; }
.tog input { appearance: none; width: 36px; height: 20px; border-radius: 10px; background: #2A3842; position: relative; cursor: pointer; flex: none; margin: 0; transition: background .15s; }
.tog input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #C9D3D9; transition: transform .15s; }
.tog input:checked { background: var(--brand-deep); }
.tog input:checked::after { transform: translateX(16px); background: #fff; }
.togs { display: flex; flex-wrap: wrap; gap: 10px 20px; }

/* readouts and formulas */
.reads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.read { background: var(--card); border-radius: 10px; padding: 8px 12px; }
.read span { display: block; font-size: 12.5px; color: var(--mute); }
.read b { font-weight: 400; font-size: 18px; font-variant-numeric: tabular-nums; }
.read b small { font-size: 13px; color: var(--dim); margin-left: 3px; }
.read.wide { grid-column: 1 / -1; }
.formula { background: var(--card); border-radius: 12px; padding: 12px 14px; font-size: 15.5px; line-height: 1.9; font-variant-numeric: tabular-nums; }
.formula .f { font-family: "Times New Roman", var(--serif); font-size: 18px; }
.formula .v, .formula b { color: var(--accent); font-weight: 400; }
.formula p { margin: 0; }
.formula small { display: block; color: var(--mute); font-size: 13px; line-height: 1.6; margin-top: 4px; }
.note-box { font-size: 14px; color: var(--dim); line-height: 1.75; background: var(--card); border-radius: 12px; padding: 10px 14px; }
.note-box b { color: var(--ink); font-weight: 400; }
.lab-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lab-table th, .lab-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--edge); }
.lab-table th { color: var(--mute); font-weight: 400; font-size: 12.5px; }
.lab-table tr.on td { color: var(--accent); }

/* the way back to the app: buttons only */
.lab-cta { margin-top: 30px; padding: 16px; border-radius: 14px; background: var(--card); }
.lab-cta p { font-size: 15px; color: #D2DCE2; line-height: 1.7; margin-bottom: 12px; }
.lab-cta p b { color: var(--ink); font-weight: 400; }
.lab-cta .btns { gap: 10px; }
.lab-next { margin-top: 16px; display: flex; gap: 8px; }
.lab-next button { flex: 1; }

.lab :focus-visible { outline: 3px solid var(--brand-text); outline-offset: 2px; }

/* ---------- narrower screens ---------- */
@media (max-width: 1180px) { .lab { --rail: 190px; --panel: 330px; } .lab-progress { display: none; } }
@media (max-width: 960px) {
  .lab-page body { overflow: auto; }
  .lab { display: block; height: auto; }
  .lab-bar { position: sticky; top: 0; z-index: 10; height: 56px; padding: 0 8px 0 10px; gap: 10px; }
  .lab-back span { display: none; }
  .lab-name { padding-left: 10px; }
  .lab-name b { font-size: 16px; }
  .lab-cta-top { display: none; }
  .lab-stage { height: min(62vh, 560px); height: min(62svh, 560px); }
  .lab-head { left: 16px; top: 14px; max-width: 70%; }
  .lab-head h1 { font-size: 22px; margin-top: 2px; }
  .lab-head em { font-size: 14px; }
  .lab-head small { font-size: 10.5px; }
  .lab-frame { inset: 6px; }
  .lab-card { min-width: 0; max-width: 200px; padding: 8px 10px 6px; }
  .lab-card.at-bl { left: 8px; bottom: 8px; } .lab-card.at-br { right: 8px; bottom: 8px; } .lab-card.at-tr { right: 8px; top: 8px; }
  .has-scrub .lab-card.at-bl, .has-scrub .lab-card.at-br { bottom: 74px; }
  .lab-card dl div { font-size: 12.5px; padding: 3px 0; gap: 10px; }
  .lab-card h3 { font-size: 11px; margin-bottom: 2px; }
  .lab-hud .chip { padding: 4px 9px; font-size: 12px; }
  .lab-hud .chip b { font-size: 14.5px; }
  .lab-hint { display: none; }
  .lab-inset { padding: 6px 8px; border-radius: 12px; }
  .lab-inset h3 { font-size: 11.5px; margin-bottom: 2px; }
  .lab-inset.at-tr { right: 8px; top: 8px; } .lab-inset.at-bl { left: 8px; } .lab-inset.at-br { right: 8px; }
  .has-scrub .lab-inset.at-bl, .has-scrub .lab-inset.at-br { bottom: 76px; }
  .lab-view .cap { font-size: 12.5px; margin-top: 4px; }
  .lab-scrub { left: 8px; right: 8px; bottom: 8px; gap: 10px; padding: 6px 10px 4px 6px; }
  .lab-scrub .seg.sm { display: none; }
  .lab-scrub-val { min-width: 4.6em; font-size: 14px; }
  .has-scrub .lab-dock { bottom: 74px; }
  .lab-head { max-width: calc(100% - 150px); }
  .lab-rail { position: sticky; top: 56px; z-index: 9; border: 0; border-bottom: 1px solid var(--edge); padding: 8px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .lab-rail h2, .lab-keys { display: none; }
  .lab-rail ol { flex-direction: row; gap: 4px; }
  .lab-rail li { flex: none; }
  .lab-rail button { padding: 6px 12px; white-space: nowrap; gap: 6px; }
  .lab-rail .num { min-width: 0; font-size: 13px; }
  .lab-rail .t { font-size: 14px; }
  .lab-panel { border: 0; padding: 18px 16px 48px; overflow: visible; }
}

/* labels on the scene: a second line in small type, a blue variant for the "seen from Earth" side */
.lab-tag { text-align: center; }
.lab-tag small { display: block; font-size: 11.5px; color: var(--dim); line-height: 1.4; }
.lab-tag.gold small, .lab-tag.now small { color: rgba(10, 14, 20, 0.75); }
.lab-tag.blue { color: #0A0E14; background: #6CC4F5; }
.year-box .note-box { margin-top: 10px; }

/* phone: the answer card sits in the lesson, under the title */
.lab-panel > .lab-card { position: static; transform: none; max-width: none; min-width: 0; margin: 4px 0 14px; padding: 10px 14px 8px; }
.lab-panel > .lab-card dl div { font-size: 14px; padding: 5px 0; }
.lab-panel > .lab-card h3 { font-size: 12px; }

/* bright table-top stage (sandbox labs): the UI around it stays dark, the writing on the scene turns dark */
.light-stage .lab-stage { background: #D9DCE4; }
.light-stage .lab-head h1 { color: #1E2530; text-shadow: none; }
.light-stage .lab-head small { color: #8A5A12; }
.light-stage .lab-head small::before { background: #8A5A12; }
.light-stage .lab-head em { color: #8A5A12; text-shadow: none; }
.light-stage .lab-frame i { border-color: rgba(30, 37, 48, 0.3); }
.light-stage .lab-hint { color: rgba(30, 37, 48, 0.55); }
.light-stage .lab-tag.plain { color: #1E2530; text-shadow: 0 0 3px #fff, 0 0 2px #fff; }
.light-stage .lab-tag.dim { color: #3A4452; text-shadow: 0 0 3px #fff; }
.light-stage .lab-tag small { color: #C9D3D9; }
.light-stage .lab-load { background: #D9DCE4; }
.light-stage .lab-load div { color: #3A4452; }
