:root {
  color-scheme: light;
  --bg: #f1efe7;
  --ink: #17262c;
  --muted: #627278;
  --panel: #fffdf7;
  --panel-2: #f2f5f0;
  --bench: #121a21;
  --line: #d2d9d3;
  --accent: #239568;
  --accent-2: #ff7557;
  --blue: #65a3ff;
  --yellow: #f2b84b;
  --green: #239568;
  --danger: #ff7b6e;
  --shadow: 0 14px 34px rgba(43, 54, 51, 0.1);
}

body.is-dark {
  color-scheme: dark;
  --bg: #0d141a;
  --ink: #f4f7f5;
  --muted: #a8b5bc;
  --panel: #1d2630;
  --panel-2: #25313c;
  --line: #3a4856;
  --accent: #47c685;
  --green: #47c685;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(54, 83, 75, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(54, 83, 75, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #f7f4eb 0%, #efeee8 55%, #e8eee9 100%);
  background-size: 32px 32px, 32px 32px, auto;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}

body.is-dark {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(135deg, #091016 0%, #111c22 52%, #0d1718 100%);
  background-size: 32px 32px, 32px 32px, auto;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 28px rgba(43, 54, 51, 0.08);
}

body.is-dark .topbar {
  background: rgba(9, 15, 20, 0.94);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #47c685, #1d8f74 58%, var(--accent-2));
  color: #fff;
  font-size: 1.45rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(38, 51, 61, 0.2);
}

.eyebrow,
h1,
h2,
h3,
p {
  margin-top: 0;
}

.eyebrow {
  margin-bottom: 0.25rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2.8vw, 2.25rem);
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1rem;
}

.status,
.topbar-btn,
.lab-status time {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--panel-2);
  color: var(--muted);
  white-space: nowrap;
}

.lab-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.lab-status time {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.topbar-btn {
  cursor: pointer;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #2fac72;
  box-shadow: 0 0 0 0.28rem rgba(47, 172, 114, 0.16);
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(16.5rem, 18.5rem) minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2rem) 2rem;
}

.module-panel,
.workspace,
.control-panel {
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.module-panel {
  align-self: start;
  max-height: calc(100vh - 6.25rem);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1rem;
}

@media (min-width: 1041px) {
  .module-panel {
    position: sticky;
    top: 0.85rem;
    box-sizing: border-box;
    height: calc(100vh - 1.7rem);
    max-height: none;
  }
}

.panel-head p {
  margin-bottom: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.search-box,
.control-row {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.book-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.book-map button {
  display: grid;
  place-items: center;
  min-height: 2rem;
  border: 0;
  border-radius: 0.45rem;
  background: linear-gradient(180deg, #ffffff, #edf2ed);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(18, 109, 98, 0.12);
}

.book-map button:hover,
.book-map button.is-active {
  background: linear-gradient(135deg, #19a872, #47c685);
  color: #fff;
  box-shadow: 0 8px 18px rgba(18, 109, 98, 0.18);
}

.lab-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.lab-stats div {
  min-width: 0;
  padding: 0.7rem 0.45rem;
  border-radius: 0.5rem;
  background: linear-gradient(180deg, #ffffff, #eef3ee);
  box-shadow: inset 0 0 0 1px rgba(18, 109, 98, 0.1);
}

.lab-stats strong,
.lab-stats span {
  display: block;
  text-align: center;
}

.lab-stats strong {
  color: var(--accent);
  font-size: 1.35rem;
}

.lab-stats span {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.featured-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.featured-chip {
  min-height: 3.1rem;
  border: 0;
  border-radius: 0.5rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.36), transparent 2rem),
    linear-gradient(135deg, #126d62, #34a381);
  color: #fff;
  padding: 0.5rem;
  text-align: left;
  box-shadow: 0 10px 22px rgba(18, 109, 98, 0.16);
}

.featured-chip:nth-child(2) {
  background: linear-gradient(135deg, #d45d3d, #e7a33f);
}

.featured-chip:nth-child(3) {
  background: linear-gradient(135deg, #3867b7, #52a0d4);
}

.featured-chip:nth-child(4) {
  background: linear-gradient(135deg, #6e5bbf, #bd6ea7);
}

.featured-chip span {
  display: block;
  font-size: 0.74rem;
  opacity: 0.86;
}

.featured-chip b {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.search-box input,
.control-row input,
.control-row select {
  width: 100%;
}

.search-box input,
.control-row select {
  min-height: 2.55rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--panel);
  color: var(--ink);
  padding: 0 0.75rem;
}

.module-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
  padding-bottom: 0.5rem;
}

.module-btn {
  display: grid;
  gap: 0.25rem;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.module-btn:hover,
.module-btn.is-active {
  border-color: rgba(18, 109, 98, 0.28);
  background: var(--panel-2);
}

.module-btn strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.module-btn small {
  color: var(--muted);
  line-height: 1.4;
}

.module-badge {
  border-radius: 0.35rem;
  background: rgba(212, 93, 61, 0.12);
  color: #9f432c;
  padding: 0.1rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
}

.workspace {
  min-width: 0;
  align-self: start;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(35, 149, 104, 0.035), transparent 9rem),
    var(--panel);
}

.workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.workspace-tools {
  display: grid;
  justify-items: end;
  gap: 0.55rem;
}

.mode-switch {
  display: inline-flex;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--panel-2);
}

.seg-btn {
  min-height: 2.35rem;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 0 0.78rem;
}

.seg-btn:last-child {
  border-right: 0;
}

.seg-btn.is-active {
  background: var(--accent);
  color: #fff;
}

.action-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.action-bar button {
  min-height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--panel);
  color: var(--ink);
  padding: 0 0.72rem;
  font-weight: 700;
}

.action-bar button:hover {
  border-color: rgba(18, 109, 98, 0.28);
  background: var(--panel-2);
  color: var(--accent);
}

.action-bar button[hidden] {
  display: none;
}

.workspace .action-bar button.is-active {
  border-color: #0d8e78;
  background: #0d8e78;
  color: #fff;
}

body.focus-mode .module-panel,
body.focus-mode .topbar {
  display: none;
}

body.focus-mode .app-shell {
  grid-template-columns: 1fr;
}

.lab-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16.5rem, 20rem);
  grid-template-areas:
    "canvas controls"
    "hint controls";
  gap: 1rem;
}

.canvas-wrap {
  --light-x: 50%;
  --light-y: 8%;
  position: relative;
  grid-area: canvas;
  align-self: start;
  height: fit-content;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(147, 171, 182, 0.34);
  border-radius: 0.55rem;
  background: var(--bench);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    inset 0 16px 34px rgba(255, 255, 255, 0.025),
    0 18px 34px rgba(0, 0, 0, 0.28);
}

.stage-status {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 1.85rem;
  padding: 0 0.6rem;
  border: 1px solid rgba(125, 219, 180, 0.24);
  border-radius: 0.4rem;
  background: rgba(8, 17, 22, 0.72);
  color: rgba(229, 246, 239, 0.88);
  font-size: 0.74rem;
  backdrop-filter: blur(8px);
}

.stage-status span {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #4bce91;
  box-shadow: 0 0 0.7rem rgba(75, 206, 145, 0.75);
}

.canvas-wrap::before,
.canvas-wrap::after {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  content: "";
}

.canvas-wrap::before {
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(71, 198, 133, 0.78), rgba(101, 163, 255, 0.68), transparent);
}

.canvas-wrap::after {
  inset: 0;
  box-shadow: inset 0 0 56px rgba(0, 0, 0, 0.32);
}

canvas {
  display: block;
  width: 100%;
  height: clamp(20rem, 46vw, 34rem);
  cursor: default;
  touch-action: none;
}

canvas.is-interactive {
  cursor: grab;
}

canvas.is-dragging {
  cursor: grabbing;
}

.canvas-hint {
  grid-area: hint;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background:
    linear-gradient(90deg, rgba(71, 198, 133, 0.08), transparent 35%),
    var(--panel-2);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.control-panel {
  grid-area: controls;
  max-height: min(39rem, calc(100vh - 9rem));
  overflow: auto;
  padding: 1rem;
  box-shadow: none;
}

.tool-section {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.tool-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.scenario-card {
  min-height: 4rem;
  border: 1px solid rgba(18, 109, 98, 0.14);
  border-radius: 0.5rem;
  background: linear-gradient(180deg, #ffffff, #eef3ee);
  color: var(--ink);
  padding: 0.58rem;
  text-align: left;
}

.scenario-card:hover {
  border-color: rgba(18, 109, 98, 0.34);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(18, 109, 98, 0.12);
}

.scenario-card.is-active {
  border-color: rgba(35, 149, 104, 0.72);
  background: rgba(35, 149, 104, 0.1);
  box-shadow: inset 0 0 0 1px rgba(35, 149, 104, 0.2);
}

.current-mode-grid {
  margin: 0.6rem 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.65rem 0;
}

.scenario-card b,
.scenario-card span {
  display: block;
}

.scenario-card b {
  color: var(--accent);
  font-size: 0.92rem;
}

.scenario-card span {
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.tool-btn,
.plain-btn,
.danger-btn {
  min-height: 2.45rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--panel);
  color: var(--ink);
}

.tool-btn.is-active,
.plain-btn:hover {
  border-color: rgba(18, 109, 98, 0.32);
  background: var(--accent);
  color: #fff;
}

.stack-actions {
  display: grid;
  gap: 0.5rem;
}

.plain-btn {
  text-align: left;
  padding: 0 0.75rem;
}

.danger-btn {
  width: 100%;
  border-color: rgba(169, 59, 54, 0.3);
  color: var(--danger);
}

.danger-btn:hover {
  background: rgba(255, 117, 87, 0.12);
}

.lesson-card,
.formula-box {
  padding: 0.72rem;
  border-radius: 0.5rem;
  background: linear-gradient(180deg, #f7faf6, #edf2ed);
  box-shadow: inset 0 0 0 1px rgba(18, 109, 98, 0.1);
}

.lesson-card b {
  color: var(--accent);
}

.lesson-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.88rem;
}

.formula-box {
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.5;
}

.control-row {
  margin-bottom: 1rem;
}

.control-row b {
  color: var(--ink);
  font-weight: 700;
}

input[type="range"] {
  accent-color: var(--accent);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.check-row input {
  accent-color: var(--accent);
}

.cap-readout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.cap-readout-grid span {
  min-width: 0;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 0.75rem;
}

.cap-readout-grid b {
  display: block;
  margin-top: 0.2rem;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.88rem;
}

.readout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.readout div {
  min-width: 0;
  padding: 0.72rem 0.62rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(126, 151, 164, 0.16);
  background: linear-gradient(180deg, #ffffff, #eef3ee);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.7);
}

body.is-dark .book-map button,
body.is-dark .lab-stats div,
body.is-dark .scenario-card,
body.is-dark .lesson-card,
body.is-dark .formula-box,
body.is-dark .readout div {
  background: linear-gradient(180deg, #26343f, #1a242d);
}

body.is-dark .search-box input,
body.is-dark .control-row select,
body.is-dark .mode-switch,
body.is-dark .action-bar button,
body.is-dark .tool-btn,
body.is-dark .plain-btn,
body.is-dark .danger-btn {
  background: #151f27;
}

.readout span,
.readout strong {
  display: block;
}

.readout span {
  color: var(--muted);
  font-size: 0.76rem;
}

.readout strong {
  margin-top: 0.25rem;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.notebook {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
}

.linked-analysis {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.analysis-head,
.chart-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.analysis-head {
  margin-bottom: 0.7rem;
}

.analysis-head h3,
.analysis-head .eyebrow,
.chart-panel header strong {
  margin: 0;
}

.analysis-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.analysis-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.analysis-legend b {
  color: inherit;
  font-weight: 600;
}

.analysis-legend i {
  display: inline-block;
  width: 1.15rem;
  height: 0.18rem;
  border-radius: 0.2rem;
  background: var(--accent);
}

.analysis-legend .series-two {
  background: var(--accent-2);
}

.analysis-legend .analysis-cursor i {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--yellow);
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.chart-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--panel);
}

.chart-panel header {
  min-height: 2.65rem;
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--ink);
  font-size: 0.82rem;
}

.chart-panel header span {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.chart-panel canvas {
  width: 100%;
  height: 12rem;
  background:
    linear-gradient(90deg, rgba(66, 102, 90, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(66, 102, 90, 0.05) 1px, transparent 1px),
    var(--panel);
  background-size: 32px 32px;
}

.notebook p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.concept-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
  min-width: min(24rem, 100%);
}

.concept-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.25rem 0.55rem;
  border-radius: 0.45rem;
  background: var(--panel-2);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 500;
}

.data-console {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.data-console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.data-console-head h3,
.data-console-head .eyebrow {
  margin-bottom: 0;
}

.data-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.capture-status,
.sample-rate {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.capture-status i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #9aa5a2;
}

.capture-status.is-running {
  color: var(--accent);
}

.capture-status.is-running i {
  background: var(--accent);
  box-shadow: 0 0 0 0.25rem rgba(35, 149, 104, 0.14);
}

.sample-rate select {
  min-height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: var(--panel);
  color: var(--ink);
  padding: 0 0.45rem;
}

.data-actions button,
.assistant-quick button,
.assistant-form button {
  min-height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--panel);
  color: var(--ink);
  padding: 0 0.75rem;
}

#sampleData,
.assistant-form button {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

#autoSample[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--panel);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.data-table th,
.data-table td {
  padding: 0.58rem 0.65rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

.data-table th:first-child,
.data-table td:first-child {
  text-align: center;
}

.data-table th {
  background: var(--panel-2);
  color: var(--muted);
  font-weight: 700;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover td {
  background: rgba(35, 149, 104, 0.055);
}

.assistant-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  min-height: 2.7rem;
  border: 1px solid #17784f;
  border-radius: 0.5rem;
  background: var(--accent);
  color: #fff;
  padding: 0 1rem;
  box-shadow: 0 12px 30px rgba(35, 149, 104, 0.28);
  font-weight: 700;
}

.assistant-toggle:hover,
.data-actions button:first-child:hover,
.assistant-form button:hover {
  filter: brightness(0.94);
}

.assistant-toggle span {
  display: inline-grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  margin-right: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0.3rem;
  font-size: 0.72rem;
}

.lab-tutor-entry {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  margin: 0.8rem;
  padding: 0.8rem;
  border: 1px solid rgba(35, 149, 104, 0.32);
  border-radius: 0.5rem;
  background: linear-gradient(135deg, rgba(35, 149, 104, 0.09), rgba(35, 149, 104, 0.025));
}

.lab-tutor-mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(35, 149, 104, 0.44);
  border-radius: 0.4rem;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
}

.lab-tutor-copy {
  min-width: 0;
}

.lab-tutor-copy strong {
  display: block;
  color: var(--ink);
  font-size: 0.86rem;
}

.lab-tutor-copy p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.lab-tutor-entry > button,
.lab-tutor-prompts button {
  min-height: 2rem;
  border: 1px solid rgba(35, 149, 104, 0.34);
  border-radius: 0.35rem;
  background: var(--panel);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.75rem;
}

.lab-tutor-entry > button {
  padding: 0 0.65rem;
}

.lab-tutor-prompts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}

.lab-tutor-entry > button:hover,
.lab-tutor-prompts button:hover {
  border-color: var(--accent);
  background: rgba(35, 149, 104, 0.08);
}

.assistant-panel {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: grid;
  grid-template-rows: auto auto minmax(10rem, 1fr) auto auto;
  width: min(24rem, calc(100vw - 2rem));
  max-height: min(42rem, calc(100vh - 2rem));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(31, 45, 41, 0.24);
}

.assistant-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}

.assistant-context span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assistant-context b {
  display: block;
  margin-top: 0.12rem;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assistant-panel[hidden] {
  display: none;
}

.assistant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
}

.assistant-head h2,
.assistant-head .eyebrow {
  margin-bottom: 0;
}

.assistant-close {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel-2);
  color: var(--ink);
  font-size: 1.35rem;
}

.assistant-messages {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  overflow-y: auto;
  padding: 1rem;
}

.assistant-message {
  max-width: 88%;
  padding: 0.7rem 0.8rem;
  border-radius: 0.5rem;
  background: var(--panel-2);
  color: var(--ink);
  line-height: 1.55;
  font-size: 0.88rem;
}

.assistant-message.is-user {
  justify-self: end;
  background: var(--accent);
  color: #fff;
}

.assistant-quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0 1rem 0.8rem;
}

.assistant-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  padding: 0.8rem 1rem 1rem;
  border-top: 1px solid var(--line);
}

.assistant-form input {
  min-width: 0;
  min-height: 2.55rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--panel);
  color: var(--ink);
  padding: 0 0.7rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1040px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .lab-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "canvas"
      "hint"
      "controls";
  }

  .chart-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .lab-status {
    grid-column: 1 / -1;
    justify-self: start;
    flex-wrap: wrap;
  }

  .app-shell {
    padding: 0.75rem;
  }

  .module-panel,
  .workspace,
  .control-panel {
    padding: 0.75rem;
  }

  .module-panel {
    max-height: min(28rem, 52vh);
  }

  .workspace-head,
  .notebook {
    align-items: stretch;
    flex-direction: column;
  }

  .workspace-tools {
    justify-items: stretch;
  }

  .action-bar {
    justify-content: flex-start;
  }

  .mode-switch {
    width: 100%;
  }

  canvas {
    height: clamp(16rem, 72vw, 23rem);
  }

  .control-panel {
    max-height: none;
  }

  .seg-btn {
    flex: 1 1 auto;
    padding: 0 0.35rem;
  }

  .canvas-hint {
    max-width: none;
  }

  .readout {
    grid-template-columns: 1fr;
  }

  .concept-tags {
    justify-content: flex-start;
  }

  .data-console-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .data-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .analysis-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .analysis-legend {
    justify-content: flex-start;
  }

  .chart-panel canvas {
    height: 10rem;
  }

  .assistant-panel {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    width: auto;
    max-height: calc(100vh - 1rem);
  }
}

/* Build 30: cinematic exhibition shell with a clear technical workspace. */
body.is-dark {
  --bg: #05080d;
  --ink: #eef7f8;
  --muted: #91a4ad;
  --panel: #0b131c;
  --panel-2: #111d27;
  --bench: #07121a;
  --line: rgba(126, 178, 188, 0.22);
  --accent: #42ddc5;
  --accent-2: #8979ff;
  --blue: #4bb9ff;
  --yellow: #d9b86f;
  --green: #42ddc5;
  --danger: #ff7a6b;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
  background:
    linear-gradient(90deg, rgba(4, 8, 13, 0.9), rgba(4, 8, 13, 0.5) 42%, rgba(4, 8, 13, 0.88)),
    linear-gradient(180deg, rgba(4, 8, 13, 0.25), rgba(4, 8, 13, 0.92)),
    url("./assets/quantum-fluid-bg.png") center top / cover fixed no-repeat,
    #05080d;
}

body.is-dark .topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 5.1rem;
  border-color: rgba(104, 185, 194, 0.18);
  background: rgba(4, 9, 14, 0.84);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(24px) saturate(128%);
}

body.is-dark .brand-mark {
  border: 1px solid rgba(112, 237, 218, 0.45);
  border-radius: 0.25rem;
  background:
    linear-gradient(145deg, rgba(66, 221, 197, 0.28), rgba(137, 121, 255, 0.18)),
    #0a1720;
  color: #f7ffff;
  box-shadow: 0 0 1.4rem rgba(66, 221, 197, 0.18);
}

body.is-dark .brand-copy h1 {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: clamp(1.35rem, 2.1vw, 1.95rem);
  font-weight: 650;
}

body.is-dark .brand-copy .eyebrow {
  color: #d9b86f;
}

body.is-dark .status,
body.is-dark .topbar-btn,
body.is-dark .lab-status time {
  border-color: rgba(126, 178, 188, 0.24);
  border-radius: 0.25rem;
  background: rgba(13, 26, 36, 0.72);
  color: #c8d6da;
}

body.is-dark .lab-status time {
  color: #eff9fa;
}

body.is-dark .status-dot {
  background: #42ddc5;
  box-shadow: 0 0 0.7rem rgba(66, 221, 197, 0.8);
}

.app-shell {
  gap: 0.85rem;
  padding: 0.85rem clamp(0.75rem, 2vw, 1.5rem) 1.5rem;
}

body.is-dark .module-panel {
  position: relative;
  border-color: rgba(119, 184, 194, 0.2);
  border-radius: 0.3rem;
  background:
    linear-gradient(145deg, rgba(16, 31, 42, 0.9), rgba(5, 12, 19, 0.92)),
    url("./assets/quantum-fluid-bg.png") 20% 15% / 44rem auto no-repeat;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(22px) saturate(120%);
  scrollbar-color: rgba(66, 221, 197, 0.42) transparent;
}

body.is-dark .module-panel::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, #d9b86f, rgba(66, 221, 197, 0.7), transparent 85%);
  content: "";
}

body.is-dark .panel-head {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(126, 178, 188, 0.16);
}

body.is-dark .panel-head h2 {
  color: #f2f8f8;
  font-size: 1.6rem;
}

body.is-dark .panel-head p {
  margin-bottom: 0;
  color: #8fa2aa;
  font-size: 0.83rem;
}

body.is-dark .book-map {
  margin-top: 0.9rem;
}

body.is-dark .book-map button {
  min-height: 2.15rem;
  border: 1px solid rgba(121, 170, 180, 0.18);
  border-radius: 0.25rem;
  background: rgba(12, 25, 34, 0.76);
  color: #a9bbc0;
  box-shadow: none;
}

body.is-dark .book-map button:hover,
body.is-dark .book-map button.is-active {
  border-color: rgba(66, 221, 197, 0.56);
  background: rgba(66, 221, 197, 0.13);
  color: #7af1df;
  box-shadow: inset 0 -2px 0 #42ddc5;
}

body.is-dark .lab-stats div {
  border: 1px solid rgba(126, 178, 188, 0.16);
  border-radius: 0.25rem;
  background: rgba(11, 24, 33, 0.75);
  box-shadow: none;
}

body.is-dark .lab-stats strong {
  color: #62e7d2;
}

body.is-dark .featured-chip {
  position: relative;
  min-height: 4.2rem;
  overflow: hidden;
  border: 1px solid rgba(129, 199, 205, 0.25);
  border-radius: 0.25rem;
  background:
    linear-gradient(115deg, rgba(4, 10, 16, 0.32), rgba(4, 10, 16, 0.86)),
    url("./assets/quantum-fluid-bg.png") center 34% / 36rem auto no-repeat;
  box-shadow: none;
}

body.is-dark .featured-chip:nth-child(2) {
  background-position: center, 72% 48%;
}

body.is-dark .featured-chip:nth-child(3) {
  background-position: center, 32% 63%;
}

body.is-dark .featured-chip:nth-child(4) {
  background-position: center, 90% 72%;
}

body.is-dark .featured-chip:hover {
  border-color: rgba(66, 221, 197, 0.62);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

body.is-dark .featured-chip span {
  color: #d9b86f;
  opacity: 1;
}

body.is-dark .search-box input {
  border-color: rgba(126, 178, 188, 0.22);
  border-radius: 0.25rem;
  background: rgba(4, 11, 17, 0.66);
  color: #eff8f9;
  outline: none;
}

body.is-dark .search-box input:focus {
  border-color: #42ddc5;
  box-shadow: 0 0 0 2px rgba(66, 221, 197, 0.14);
}

body.is-dark .module-list {
  gap: 0.35rem;
}

body.is-dark .module-btn {
  position: relative;
  border-radius: 0.2rem;
  background: rgba(8, 18, 26, 0.38);
}

body.is-dark .module-btn:hover,
body.is-dark .module-btn.is-active {
  border-color: rgba(66, 221, 197, 0.3);
  background: rgba(25, 54, 63, 0.56);
}

body.is-dark .module-btn.is-active::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #42ddc5, #8979ff);
  content: "";
}

body.is-dark .module-badge {
  border-radius: 0.2rem;
  background: rgba(217, 184, 111, 0.12);
  color: #e3c989;
}

.workspace {
  --ink: #14212a;
  --muted: #647179;
  --panel: #fbfcfa;
  --panel-2: #edf1ee;
  --line: #d5ddd8;
  --accent: #0d8e78;
  --accent-2: #6857d8;
  --blue: #267fc5;
  --yellow: #a77725;
  --green: #0d8e78;
  --danger: #c64e43;
  position: relative;
  border: 1px solid rgba(213, 221, 216, 0.95);
  border-radius: 0.3rem;
  background:
    linear-gradient(90deg, rgba(14, 142, 120, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(14, 142, 120, 0.03) 1px, transparent 1px),
    #f3f5f2;
  background-size: 32px 32px, 32px 32px, auto;
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.workspace::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 2px;
  background: linear-gradient(90deg, #d9b86f, #42ddc5 45%, #8979ff 78%, transparent);
  content: "";
}

.workspace-head {
  position: relative;
  padding: 0.15rem 0 0.8rem;
  border-bottom: 1px solid #d5ddd8;
}

.workspace-head h2 {
  color: #14212a;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
}

.workspace .eyebrow {
  color: #0d8e78;
}

.workspace .mode-switch {
  border-color: #ccd6d1;
  border-radius: 0.25rem;
  background: #e7ece8;
}

.workspace .seg-btn {
  border-color: #ccd6d1;
  color: #536168;
}

.workspace .seg-btn.is-active {
  background: #142a32;
  color: #ecfffb;
}

.workspace .action-bar button {
  border-color: #cbd5d0;
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.72);
  color: #25343b;
}

.workspace .action-bar button:hover {
  border-color: #0d8e78;
  background: #e7f4f0;
  color: #0d7e6b;
}

.canvas-wrap {
  border-color: rgba(73, 185, 192, 0.34);
  border-radius: 0.28rem;
  background:
    radial-gradient(circle at var(--light-x) var(--light-y), rgba(54, 164, 172, 0.14), transparent 35%),
    #07131b;
  box-shadow:
    inset 0 0 0 1px rgba(93, 217, 211, 0.07),
    inset 0 0 72px rgba(0, 0, 0, 0.42),
    0 18px 36px rgba(14, 33, 39, 0.24);
}

.canvas-wrap::before {
  height: 2px;
  background: linear-gradient(90deg, transparent, #d9b86f 20%, #42ddc5 52%, #8979ff 80%, transparent);
}

.canvas-wrap::after {
  box-shadow: inset 0 0 72px rgba(0, 0, 0, 0.32);
}

.stage-status {
  border-color: rgba(66, 221, 197, 0.3);
  border-radius: 0.22rem;
  background: rgba(5, 16, 22, 0.78);
}

.canvas-hint {
  border-color: #d1dbd6;
  border-radius: 0.25rem;
  background: linear-gradient(90deg, rgba(13, 142, 120, 0.08), rgba(255, 255, 255, 0.65));
  color: #55656c;
}

.workspace .control-panel {
  border-color: #d0d9d4;
  border-radius: 0.28rem;
  background: rgba(251, 252, 250, 0.94);
  color: #14212a;
  box-shadow: none;
  scrollbar-color: rgba(13, 142, 120, 0.44) transparent;
}

.workspace .tool-section {
  border-color: #d8dfdb;
}

.workspace .scenario-card,
.workspace .lesson-card,
.workspace .formula-box,
.workspace .readout div {
  border-color: rgba(13, 142, 120, 0.13);
  border-radius: 0.25rem;
  background: linear-gradient(180deg, #ffffff, #edf2ef);
  color: #14212a;
}

.workspace .scenario-card.is-active {
  border-color: rgba(13, 142, 120, 0.54);
  background: #e0f2ed;
}

.workspace .tool-btn,
.workspace .plain-btn,
.workspace .danger-btn,
.workspace .control-row select {
  border-color: #cfd8d3;
  border-radius: 0.25rem;
  background: #fbfcfa;
  color: #223139;
}

.workspace .tool-btn.is-active,
.workspace .plain-btn:hover {
  border-color: #0d8e78;
  background: #0d8e78;
  color: #fff;
}

.workspace .notebook,
.workspace .analysis-section,
.workspace .data-console {
  border-color: #d2dbd6;
  border-radius: 0.28rem;
  background: rgba(251, 252, 250, 0.88);
}

.workspace .chart-panel {
  border-color: #d3dcd7;
  border-radius: 0.25rem;
  background: #fbfcfa;
  box-shadow: none;
}

.workspace .chart-panel header {
  border-color: #d7dfdb;
  background: #eef2ef;
}

.workspace table {
  color: #26353c;
}

.workspace th {
  background: #e8eeea;
  color: #536168;
}

body.is-dark .assistant-toggle {
  border: 1px solid rgba(66, 221, 197, 0.46);
  border-radius: 0.25rem;
  background: rgba(7, 20, 28, 0.92);
  color: #75ecd9;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34), 0 0 1rem rgba(66, 221, 197, 0.12);
}

body.is-dark .assistant-panel {
  border-color: rgba(66, 221, 197, 0.3);
  border-radius: 0.3rem;
  background: rgba(7, 17, 24, 0.96);
  backdrop-filter: blur(22px);
}

@media (max-width: 760px) {
  body.is-dark {
    background-position: 65% top;
    background-size: auto 100vh;
  }

  body.is-dark .topbar {
    position: relative;
  }

  .app-shell {
    padding: 0.55rem;
  }

  .workspace {
    padding: 0.65rem;
  }

  .workspace-head {
    gap: 0.65rem;
  }

  .canvas-wrap,
  .workspace .control-panel,
  .workspace .chart-panel {
    border-radius: 0.2rem;
  }
}

body.is-dark .workspace .scenario-card,
body.is-dark .workspace .lesson-card,
body.is-dark .workspace .formula-box,
body.is-dark .workspace .readout div {
  background: linear-gradient(180deg, #ffffff, #edf2ef);
}

body.is-dark .workspace .scenario-card.is-active {
  background: #e0f2ed;
}

/* Build 89: shared WebGL workbench for the next deep-lab batch. */
.next-3d-canvas {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.next-3d-canvas.is-dragging {
  cursor: grabbing;
}

.canvas-wrap.is-next-3d #labCanvas {
  opacity: 0;
  pointer-events: none;
}

.canvas-wrap.is-next-3d .next-3d-canvas {
  display: block;
}

.canvas-wrap.is-next-3d .stage-status {
  z-index: 7;
  border-color: rgba(92, 227, 190, 0.42);
  background: rgba(3, 13, 18, 0.76);
}

.next-3d-hud {
  z-index: 8;
}

/* Build 82: genuine WebGL apparatus for the Lenz-law workbench. */
.canvas-wrap #labCanvas {
  position: relative;
  z-index: 1;
  transition: opacity 180ms ease;
}

.faraday-3d-canvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.faraday-3d-canvas.is-dragging {
  cursor: grabbing;
}

.canvas-wrap.is-faraday-3d #labCanvas {
  opacity: 0;
  pointer-events: none;
}

.canvas-wrap.is-faraday-3d .faraday-3d-canvas {
  display: block;
}

.canvas-wrap.is-faraday-3d .stage-status {
  z-index: 7;
  border-color: rgba(92, 227, 190, 0.42);
  background: rgba(3, 13, 18, 0.76);
}

.faraday-3d-hud {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.faraday-3d-hud[hidden] {
  display: none;
}

.faraday-3d-state {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: grid;
  min-width: min(17rem, 44%);
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(103, 220, 197, 0.3);
  border-radius: 0.35rem;
  background: rgba(3, 14, 19, 0.78);
  color: #eaf5f1;
  box-shadow: 0 0.7rem 1.7rem rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}

.faraday-3d-state span {
  color: #67e0c1;
  font-size: 0.68rem;
  font-weight: 750;
}

.faraday-3d-state strong {
  margin-top: 0.16rem;
  color: #ffffff;
  font-size: 0.92rem;
}

.faraday-3d-state small {
  margin-top: 0.18rem;
  color: rgba(221, 236, 232, 0.72);
  font-size: 0.68rem;
}

.faraday-3d-toolbar {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  gap: 0.3rem;
  padding: 0.3rem;
  border: 1px solid rgba(154, 183, 185, 0.27);
  border-radius: 0.35rem;
  background: rgba(3, 13, 18, 0.78);
  pointer-events: auto;
  backdrop-filter: blur(9px);
}

.faraday-3d-toolbar button {
  display: grid;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(144, 179, 181, 0.32);
  border-radius: 0.25rem;
  background: rgba(16, 36, 42, 0.94);
  color: #e7f2ef;
  font: 750 0.74rem/1 system-ui, sans-serif;
  cursor: pointer;
}

.faraday-3d-toolbar button:hover,
.faraday-3d-toolbar button:focus-visible {
  border-color: #61ddbd;
  color: #73ebca;
  outline: none;
}

.faraday-3d-selection {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  max-width: 42%;
  padding: 0.42rem 0.58rem;
  border-left: 2px solid #d7b25d;
  background: rgba(3, 14, 19, 0.72);
  color: rgba(236, 243, 240, 0.78);
  font-size: 0.68rem;
  pointer-events: none;
}

@media (max-width: 720px) {
  .faraday-3d-state {
    top: 0.65rem;
    right: 0.55rem;
    min-width: 0;
    width: 48%;
    padding: 0.48rem 0.55rem;
  }

  .faraday-3d-state strong {
    font-size: 0.72rem;
  }

  .faraday-3d-state small,
  .faraday-3d-state span,
  .faraday-3d-selection {
    font-size: 0.58rem;
  }

  .faraday-3d-toolbar {
    right: 0.5rem;
    bottom: 0.5rem;
  }

  .faraday-3d-toolbar button {
    width: 1.72rem;
    height: 1.72rem;
    min-width: 1.72rem;
    font-size: 0.62rem;
  }
}

.workspace .action-bar button.is-active,
body.is-dark .workspace .action-bar button.is-active {
  border-color: #0d8e78;
  background: #0d8e78;
  color: #fff;
}

/* Keep late component rules from restoring light controls in dark mode. */
body.is-dark .workspace .action-bar button:not(.is-active),
body.is-dark .workspace .seg-btn:not(.is-active),
body.is-dark .workspace .tool-btn:not(.is-active),
body.is-dark .workspace .plain-btn:not(.is-active),
body.is-dark .workspace .danger-btn,
body.is-dark .workspace .data-actions button:not([aria-pressed="true"]),
body.is-dark .workspace .lab-tutor-entry button,
body.is-dark .sandbox-apparatus button,
body.is-dark .canvas-wrap.is-sandbox-3d .faraday-3d-toolbar button {
  border-color: rgba(91, 210, 188, 0.24);
  background: #0a2025;
  color: #dcefed;
}

body.is-dark .workspace .action-bar button:not(.is-active):hover,
body.is-dark .workspace .seg-btn:not(.is-active):hover,
body.is-dark .workspace .tool-btn:not(.is-active):hover,
body.is-dark .workspace .plain-btn:not(.is-active):hover,
body.is-dark .workspace .lab-tutor-entry button:hover {
  border-color: rgba(82, 221, 196, 0.7);
  background: #12383c;
  color: #72ead6;
}

body.is-dark .workspace .mode-switch,
body.is-dark .workspace .notebook,
body.is-dark .workspace .data-console,
body.is-dark .workspace .data-table-wrap {
  border-color: rgba(91, 210, 188, 0.18);
  background: rgba(5, 18, 22, 0.9);
  color: #e9f5f3;
}

body.is-dark .workspace .notebook,
body.is-dark .workspace .data-console {
  box-shadow: inset 0 1px rgba(118, 235, 213, 0.04);
}

body.is-dark .workspace .lab-tutor-entry {
  border-color: rgba(82, 221, 196, 0.25);
  background: linear-gradient(135deg, rgba(24, 101, 91, 0.24), rgba(5, 18, 22, 0.82));
}

body.is-dark .workspace .lab-tutor-mark {
  border-color: rgba(117, 235, 214, 0.54);
  background: #168f7e;
  box-shadow: 0 0 1rem rgba(82, 221, 196, 0.16);
}

body.is-dark .workspace .data-table tbody tr:hover td {
  background: rgba(82, 221, 196, 0.07);
}

body.is-dark .workspace .analysis-legend,
body.is-dark .workspace .notebook p,
body.is-dark .workspace .sample-rate,
body.is-dark .workspace .capture-status {
  color: #91aaa8;
}

@media (min-width: 1041px) {
  .canvas-wrap.is-sandbox-3d { height: clamp(25rem, calc(100dvh - 15rem), 40rem); }
  .canvas-wrap.is-sandbox-3d > canvas { height: 100%; }
  .lab-layout:has(.is-sandbox-3d) .control-panel { max-height: clamp(25rem, calc(100dvh - 15rem), 40rem); }
}

/* Incline instruments stay outside the central manipulation area. */
.library-filter-row { display: flex; align-items: center; justify-content: space-between; min-height: 1.4rem; font-size: .72rem; color: var(--muted); }
.library-filter-row button { width: 1.6rem; height: 1.6rem; padding: 0; border: 1px solid var(--line); background: transparent; color: inherit; cursor: pointer; }
.library-filter-row button[hidden] { display: none; }
.incline-summary { display: grid; gap: .5rem; font-size: .76rem; }
.incline-summary span { display: flex; justify-content: space-between; gap: .5rem; color: var(--muted); }
.incline-summary b { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.incline-live b { color: #34b89c; }
.incline-surfaces { display: grid; gap: .4rem; }
.incline-surfaces button { display: flex; align-items: center; gap: .6rem; }
.surface-swatch { width: 1.4rem; height: .8rem; border: 1px solid rgba(255,255,255,.25); border-radius: 2px; }
.surface-wood { background: #c79562; }
.surface-felt { background: #76ac9c; }
.surface-rubber { background: #5b6978; }
.sandbox-3d-state { width: min(22rem, 55%); min-width: 0; }
.sandbox-3d-state small { line-height: 1.55; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sandbox-vector-layers { display: flex; flex-wrap: wrap; gap: .35rem .8rem; margin-top: .4rem; pointer-events: auto; }
.sandbox-vector-layers label { display: flex; align-items: center; gap: .2rem; cursor: pointer; }
.sandbox-vector-layers input { accent-color: #1ea78d; }
.sandbox-vector-layers span { color: inherit !important; font-size: .7rem; }
.canvas-wrap.is-sandbox-3d .faraday-3d-toolbar { bottom: .55rem; left: .55rem; right: .55rem; justify-content: flex-end; flex-wrap: wrap; padding-left: 8rem; }
.canvas-wrap.is-sandbox-3d .faraday-3d-selection { z-index: 1; bottom: 1.1rem; left: .75rem; max-width: 7rem; padding: .2rem; font-size: .6rem; }
.sandbox-apparatus { bottom: 3.75rem; }
.canvas-wrap.is-sandbox-3d button[aria-pressed="true"] { border-color: #20ac94; }
.canvas-hint:empty { display: none; }
body:has(.canvas-wrap.is-sandbox-3d) .assistant-toggle { display: none; }
@media (max-width: 720px) {
  .sandbox-3d-state { top: 3.2rem; right: .5rem; width: calc(100% - 1rem); padding: .4rem .5rem; }
  .canvas-wrap.is-sandbox-3d { height: 36rem; min-height: 36rem; }
  .canvas-wrap.is-sandbox-3d > canvas { height: 100%; }
  .sandbox-3d-state strong { font-size: .75rem; }
  .sandbox-3d-state small { font-size: .62rem; }
  .canvas-wrap.is-sandbox-3d .faraday-3d-toolbar { justify-content: center; padding-left: .3rem; gap: .2rem; }
  .canvas-wrap.is-sandbox-3d .faraday-3d-toolbar button { min-width: 0; padding: 0 .3rem; font-size: .6rem; }
  .canvas-wrap.is-sandbox-3d .faraday-3d-selection { bottom: 7.65rem; max-width: 11rem; background: rgba(5,20,25,.85); color: #e1f4ef; }
  .sandbox-apparatus { bottom: 3.5rem; }
}

/* Build 147: carry the aurora-cover palette through the full laboratory UI. */
body.is-dark {
  --bg: #030b0f;
  --ink: #eef8f6;
  --muted: #91aaa8;
  --panel: #07151a;
  --panel-2: #0c2024;
  --line: rgba(91, 210, 188, 0.2);
  --accent: #52ddc4;
  --accent-2: #8b7cf0;
  --yellow: #dfbd70;
  background:
    linear-gradient(115deg, rgba(9, 72, 68, 0.34), transparent 38%),
    linear-gradient(180deg, #02090d 0%, #06161a 56%, #030b10 100%);
}

body.is-dark .workspace {
  --ink: #edf8f6;
  --muted: #91aaa8;
  --panel: #07151a;
  --panel-2: #0c2024;
  --line: rgba(91, 210, 188, 0.2);
  --accent: #52ddc4;
  --accent-2: #8b7cf0;
  --blue: #59bfff;
  --yellow: #dfbd70;
  --green: #52ddc4;
  --danger: #ff8175;
  border-color: rgba(91, 210, 188, 0.24);
  background:
    linear-gradient(90deg, rgba(80, 216, 193, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(80, 216, 193, 0.03) 1px, transparent 1px),
    linear-gradient(145deg, rgba(8, 27, 31, 0.98), rgba(3, 13, 18, 0.99));
  background-size: 32px 32px, 32px 32px, auto;
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

body.is-dark .workspace-head {
  border-color: rgba(91, 210, 188, 0.18);
}

body.is-dark .workspace-head h2,
body.is-dark .workspace h3,
body.is-dark .workspace .control-row b,
body.is-dark .workspace table {
  color: #edf8f6;
}

body.is-dark .workspace .eyebrow,
body.is-dark .workspace .scenario-card b,
body.is-dark .workspace .chart-panel header span {
  color: #62e8d0;
}

body.is-dark .workspace .mode-switch {
  border-color: rgba(91, 210, 188, 0.22);
  background: rgba(5, 18, 22, 0.88);
}

body.is-dark .workspace .seg-btn {
  border-color: rgba(91, 210, 188, 0.18);
  color: #a8bfbd;
}

body.is-dark .workspace .seg-btn.is-active,
body.is-dark .workspace .action-bar button.is-active,
body.is-dark .workspace .tool-btn.is-active,
body.is-dark .workspace .plain-btn:hover {
  border-color: #52ddc4;
  background: #168f7e;
  color: #f4fffd;
}

body.is-dark .workspace .action-bar button,
body.is-dark .workspace .tool-btn,
body.is-dark .workspace .plain-btn,
body.is-dark .workspace .danger-btn,
body.is-dark .workspace .control-row select,
body.is-dark .workspace .sample-rate select,
body.is-dark .workspace .data-actions button,
body.is-dark .workspace input:not([type="range"]):not([type="checkbox"]):not([type="radio"]) {
  border-color: rgba(91, 210, 188, 0.22);
  background: rgba(7, 24, 29, 0.92);
  color: #e8f5f3;
}

body.is-dark .workspace .action-bar button:hover,
body.is-dark .workspace .data-actions button:hover {
  border-color: rgba(82, 221, 196, 0.7);
  background: rgba(32, 116, 104, 0.34);
  color: #75ead7;
}

body.is-dark .workspace .canvas-hint {
  border-color: rgba(91, 210, 188, 0.18);
  background: linear-gradient(90deg, rgba(28, 128, 113, 0.18), rgba(5, 17, 22, 0.9));
  color: #9ab1af;
}

body.is-dark .workspace .control-panel {
  border-color: rgba(91, 210, 188, 0.22);
  background: rgba(5, 18, 22, 0.95);
  color: #e9f5f3;
  scrollbar-color: rgba(82, 221, 196, 0.42) transparent;
}

body.is-dark .workspace .tool-section,
body.is-dark .workspace .notebook,
body.is-dark .workspace .linked-analysis,
body.is-dark .workspace .data-console {
  border-color: rgba(91, 210, 188, 0.16);
}

body.is-dark .workspace .scenario-card,
body.is-dark .workspace .lesson-card,
body.is-dark .workspace .formula-box,
body.is-dark .workspace .readout div,
body.is-dark .workspace .cap-readout-grid span {
  border-color: rgba(91, 210, 188, 0.16);
  background: linear-gradient(180deg, rgba(15, 42, 46, 0.96), rgba(7, 24, 29, 0.96));
  color: #eaf6f4;
  box-shadow: inset 0 1px rgba(145, 241, 222, 0.04);
}

body.is-dark .workspace .scenario-card.is-active {
  border-color: rgba(82, 221, 196, 0.58);
  background: rgba(24, 111, 98, 0.38);
}

body.is-dark .workspace .chart-panel {
  border-color: rgba(91, 210, 188, 0.18);
  background: #061419;
}

body.is-dark .workspace .chart-panel header {
  border-color: rgba(91, 210, 188, 0.16);
  background: rgba(12, 35, 39, 0.96);
  color: #eaf6f4;
}

body.is-dark .workspace .chart-panel canvas {
  background:
    linear-gradient(90deg, rgba(91, 210, 188, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(91, 210, 188, 0.05) 1px, transparent 1px),
    #061419;
  background-size: 32px 32px;
}

body.is-dark .workspace th {
  background: #0c2428;
  color: #a5bcba;
}

body.is-dark .workspace td {
  border-color: rgba(91, 210, 188, 0.12);
}

body.is-dark .workspace .concept-tags span {
  background: rgba(18, 67, 61, 0.45);
  color: #6ce5d2;
}

body.is-dark .canvas-wrap.is-sandbox-3d .stage-status,
body.is-dark .sandbox-3d-state,
body.is-dark .sandbox-apparatus,
body.is-dark .canvas-wrap.is-sandbox-3d .faraday-3d-toolbar,
body.is-dark .canvas-wrap.is-sandbox-3d .faraday-3d-selection {
  border-color: rgba(91, 210, 188, 0.26);
  background: rgba(5, 20, 25, 0.9);
  color: #dcecea;
}

body.is-dark .sandbox-3d-state span,
body.is-dark .sandbox-3d-state strong,
body.is-dark .sandbox-3d-state small {
  color: #a9c4c0;
}

body.is-dark .sandbox-apparatus button,
body.is-dark .canvas-wrap.is-sandbox-3d .faraday-3d-toolbar button {
  border-color: rgba(91, 210, 188, 0.24);
  background: #0b2428;
  color: #dff3ef;
}

.experiment-guide-dialog {
  width: min(58rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(28, 79, 76, 0.32);
  border-radius: 8px;
  background: #f7faf8;
  color: #162b30;
  box-shadow: 0 1.5rem 5rem rgba(0, 16, 22, 0.36);
}

.experiment-guide-dialog::backdrop {
  background: rgba(2, 15, 21, 0.72);
  backdrop-filter: blur(7px);
}

.experiment-guide-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 0.78fr) minmax(0, 1.5fr);
  min-height: 32rem;
}

.experiment-guide-identity {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 2.25rem;
  background: #0b242b;
  color: #eef8f5;
}

.experiment-guide-label {
  margin: 0 0 0.75rem;
  color: #62d9c5;
  font-size: 0.72rem;
  font-weight: 800;
}

.experiment-guide-subject {
  margin: 0;
  color: rgba(235, 247, 245, 0.66);
  font-size: 0.82rem;
  line-height: 1.65;
}

.experiment-guide-formula {
  display: flex;
  align-items: center;
  min-height: 9rem;
  margin: auto 0;
  overflow-wrap: anywhere;
  color: #f3cf68;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.3;
}

.experiment-guide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.experiment-guide-tags span {
  padding: 0.28rem 0.48rem;
  border: 1px solid rgba(101, 218, 198, 0.28);
  border-radius: 4px;
  color: #bce9e1;
  font-size: 0.68rem;
}

.experiment-guide-content {
  position: relative;
  min-width: 0;
  padding: 2.15rem 2.3rem 1.7rem;
  overflow-y: auto;
}

.experiment-guide-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 1px solid #ccd9d6;
  border-radius: 50%;
  background: #fff;
  color: #294247;
  font-size: 1.2rem;
  cursor: pointer;
}

.experiment-guide-content h2 {
  max-width: calc(100% - 3rem);
  margin: 0.28rem 0 0.35rem;
  font-size: 1.65rem;
  letter-spacing: 0;
}

.experiment-guide-content h3 {
  margin: 1.35rem 0 0.72rem;
  font-size: 0.88rem;
}

.experiment-guide-description {
  margin: 0;
  color: #60757a;
  line-height: 1.65;
}

.experiment-guide-points {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.experiment-guide-points li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  padding: 0.68rem 0.78rem;
  border: 1px solid #dbe5e2;
  border-radius: 6px;
  background: #fff;
}

.experiment-guide-points li > span {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: #0e7066;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
}

.experiment-guide-points p,
.experiment-guide-summary p {
  margin: 0;
  color: #40575c;
  font-size: 0.78rem;
  line-height: 1.6;
}

.experiment-guide-summary {
  margin-top: 1rem;
  padding-left: 0.9rem;
  border-left: 3px solid #d2ad48;
}

.experiment-guide-summary strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.76rem;
}

.experiment-guide-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.3rem;
}

.experiment-guide-actions button {
  min-height: 2.5rem;
  padding: 0 1rem;
  border: 1px solid #b9cbc7;
  border-radius: 5px;
  background: #fff;
  color: #17383b;
  font-weight: 750;
  cursor: pointer;
}

.experiment-guide-actions button.is-primary {
  border-color: #0d786d;
  background: #0d786d;
  color: #fff;
}

@media (max-width: 700px) {
  .experiment-guide-dialog {
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
  }

  .experiment-guide-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .experiment-guide-identity {
    min-height: 10rem;
    padding: 1.2rem 1.35rem;
  }

  .experiment-guide-formula {
    min-height: 4.5rem;
    margin: 0.65rem 0;
    font-size: 1.45rem;
  }

  .experiment-guide-content {
    padding: 1.35rem;
  }

  .experiment-guide-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1041px) {
  body.is-dark .module-panel {
    position: sticky;
    top: 0.85rem;
    height: calc(100vh - 1.7rem);
    max-height: none;
  }
}

body.is-dark .workspace .control-row select,
body.is-dark .workspace .mode-switch,
body.is-dark .workspace .action-bar button,
body.is-dark .workspace .tool-btn,
body.is-dark .workspace .plain-btn,
body.is-dark .workspace .danger-btn {
  background: #fbfcfa;
  color: #223139;
}

body.is-dark .workspace .mode-switch {
  background: #e7ece8;
}

body.is-dark .workspace .seg-btn.is-active,
body.is-dark .workspace .tool-btn.is-active,
body.is-dark .workspace .plain-btn:hover {
  background: #0d8e78;
  color: #fff;
}

/* Cinematic experiment entrance and path selector. */
body.entry-open {
  overflow: hidden;
}

.entry-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  background: #02070d;
  color: #f2f8f8;
  opacity: 1;
  transition: opacity 520ms ease, visibility 520ms ease;
}

.entry-screen::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(2, 7, 12, 0.56);
  content: "";
  pointer-events: none;
}

.entry-screen::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 72% 18%, rgba(75, 230, 184, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(3, 17, 27, 0.05), rgba(0, 4, 10, 0.42));
  content: "";
  opacity: 0.7;
  mix-blend-mode: normal;
  pointer-events: none;
  animation: entry-fluid-drift 12s ease-in-out infinite alternate;
  will-change: transform;
}

@media (max-width: 760px), (max-height: 680px) {
  .entry-screen {
    overflow-x: hidden;
    overflow-y: auto;
  }
}

.entry-screen.is-leaving {
  visibility: hidden;
  opacity: 0;
}

.entry-screen[hidden] {
  display: none;
}

#entryAurora {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.entry-forest {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
  filter: brightness(0.76) saturate(1.08) contrast(1.2);
}

@keyframes entry-fluid-drift {
  from {
    transform: translate3d(-2.5%, -1.5%, 0) scale(1.04);
  }
  to {
    transform: translate3d(3.5%, 2%, 0) scale(1.12);
  }
}

.entry-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto minmax(12rem, 1fr) auto;
  width: min(76rem, calc(100% - 3rem));
  min-height: calc(100vh - 3rem);
  margin: 1.5rem auto;
  border: 0;
  background: rgba(3, 10, 16, 0.32);
  box-shadow: none;
  backdrop-filter: blur(4px);
}

.entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.5rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid rgba(139, 205, 209, 0.18);
  background: rgba(3, 10, 16, 0.46);
}

.entry-signature {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.entry-signature span {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid rgba(91, 236, 218, 0.52);
  background: rgba(8, 25, 32, 0.78);
  color: #f6ffff;
  font-size: 1.35rem;
  font-weight: 800;
  box-shadow: 0 0 1.5rem rgba(66, 221, 197, 0.22);
}

.entry-signature b {
  color: #eaf4f5;
  font-size: 0.74rem;
  line-height: 1.35;
}

.entry-index {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: baseline;
  gap: 0.6rem;
  color: #9aadb4;
  font-size: 0.72rem;
}

.entry-index strong {
  color: #5fe5d1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 400;
}

.entry-title {
  align-self: center;
  max-width: 43rem;
  padding: 3rem clamp(1.4rem, 5vw, 4.5rem);
  text-shadow: 0 0.35rem 2rem rgba(0, 0, 0, 0.62);
}

.entry-title p,
.entry-selector-head p {
  margin-bottom: 0.55rem;
  color: #d9b86f;
  font-size: 0.72rem;
  font-weight: 700;
}

.entry-title h2 {
  margin-bottom: 0.8rem;
  color: #f4fafb;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 650;
  line-height: 1.08;
}

.entry-title > span {
  display: block;
  max-width: 37rem;
  color: #aec0c6;
  font-size: clamp(0.88rem, 1.4vw, 1.05rem);
  line-height: 1.7;
}

.entry-selector {
  border-top: 1px solid rgba(139, 205, 209, 0.2);
  background: rgba(3, 10, 16, 0.74);
  backdrop-filter: blur(18px) saturate(120%);
}

.entry-selector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.4rem 0.75rem;
}

.entry-selector-head h3 {
  margin: 0;
  color: #edf6f7;
  font-size: 1.15rem;
}

.entry-tabs {
  display: flex;
  border: 1px solid rgba(131, 187, 195, 0.25);
  background: rgba(6, 17, 24, 0.72);
}

.entry-tabs button {
  min-height: 2.35rem;
  border: 0;
  border-right: 1px solid rgba(131, 187, 195, 0.2);
  background: transparent;
  color: #8fa3aa;
  padding: 0 0.95rem;
}

.entry-tabs button:last-child {
  border-right: 0;
}

.entry-tabs button.is-active {
  background: #17343b;
  color: #73ead8;
  box-shadow: inset 0 -2px 0 #42ddc5;
}

.entry-options {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid rgba(131, 187, 195, 0.16);
  border-bottom: 1px solid rgba(131, 187, 195, 0.16);
}

.entry-options[hidden] {
  display: none;
}

.entry-choice {
  position: relative;
  display: grid;
  align-content: end;
  min-width: 0;
  min-height: 7.5rem;
  padding: 1rem;
  border: 0;
  border-right: 1px solid rgba(131, 187, 195, 0.16);
  background: rgba(8, 21, 29, 0.42);
  color: #eef8f8;
  text-align: left;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.entry-choice:last-child {
  border-right: 0;
}

.entry-choice::after {
  position: absolute;
  inset: auto 1rem 0;
  height: 2px;
  background: #42ddc5;
  opacity: 0;
  content: "";
  transition: opacity 180ms ease;
}

.entry-choice:hover,
.entry-choice:focus-visible {
  background: rgba(25, 59, 67, 0.72);
  box-shadow: inset 0 0 2.8rem rgba(66, 221, 197, 0.08);
  outline: none;
}

.entry-choice:hover::after,
.entry-choice:focus-visible::after {
  opacity: 1;
}

.entry-choice > span {
  position: absolute;
  top: 0.85rem;
  right: 0.9rem;
  color: #d9b86f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
}

.entry-choice b,
.entry-choice small {
  display: block;
}

.entry-choice b {
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.entry-choice small {
  min-height: 2.4em;
  overflow-wrap: anywhere;
  color: #879ba3;
  font-size: 0.72rem;
  line-height: 1.35;
}

.entry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.7rem 1.4rem;
}

.entry-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #8fa3aa;
  font-size: 0.75rem;
}

.entry-footer i {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #42ddc5;
  box-shadow: 0 0 0.8rem rgba(66, 221, 197, 0.82);
}

#entrySkip {
  min-height: 2.45rem;
  border: 1px solid rgba(114, 216, 207, 0.42);
  background: rgba(15, 40, 46, 0.78);
  color: #dffbf6;
  padding: 0 1rem;
  font-weight: 700;
}

#entrySkip:hover,
#entrySkip:focus-visible {
  border-color: #62e7d2;
  background: #163d43;
  outline: none;
}

@media (max-width: 900px) {
  .entry-shell {
    grid-template-rows: auto minmax(9rem, 1fr) auto;
    width: min(44rem, calc(100% - 1.5rem));
    min-height: calc(100vh - 1.5rem);
    margin: 0.75rem auto;
  }

  .entry-title {
    padding: 2rem 1.25rem;
  }

  .entry-title h2 {
    font-size: clamp(2.2rem, 10vw, 3.8rem);
  }

  .entry-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .entry-choice:nth-child(3) {
    border-right: 0;
  }

  .entry-choice:nth-child(-n + 3) {
    border-bottom: 1px solid rgba(131, 187, 195, 0.16);
  }
}

@media (max-width: 560px) {
  .entry-shell {
    width: calc(100% - 1rem);
    min-height: calc(100vh - 1rem);
    margin: 0.5rem;
  }

  .entry-header {
    min-height: 4.5rem;
    padding: 0.7rem 0.8rem;
  }

  .entry-index > span:first-child {
    display: none;
  }

  .entry-index {
    grid-template-columns: auto auto;
  }

  .entry-title {
    padding: 2.2rem 0.9rem;
  }

  .entry-title p {
    font-size: 0.62rem;
  }

  .entry-title h2 {
    font-size: clamp(2.1rem, 13vw, 3.2rem);
  }

  .entry-title > span {
    font-size: 0.82rem;
  }

  .entry-selector-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.8rem;
  }

  .entry-tabs {
    width: 100%;
  }

  .entry-tabs button {
    flex: 1;
  }

  .entry-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-choice,
  .entry-choice:nth-child(3) {
    min-height: 6.6rem;
    border-right: 1px solid rgba(131, 187, 195, 0.16);
    border-bottom: 1px solid rgba(131, 187, 195, 0.16);
  }

  .entry-choice:nth-child(2n) {
    border-right: 0;
  }

  .entry-choice:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .entry-footer {
    align-items: stretch;
    flex-direction: column;
    padding: 0.75rem 0.8rem;
  }

  #entrySkip {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .lab-tutor-entry {
    grid-template-columns: 2.2rem minmax(0, 1fr);
  }

  .lab-tutor-entry > button {
    grid-column: 1 / -1;
  }
}

/* Build 35: direct-manipulation controls for the experiment workbenches. */
.concept-tool-grid .tool-btn {
  min-height: 2.65rem;
}

.mini-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 0.6rem;
  padding: 0.55rem 0.65rem;
  border-left: 2px solid #0d8e78;
  background: #edf3f0;
  color: #59676d;
  font-size: 0.72rem;
}

.mini-status span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.mini-status i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #0d8e78;
  box-shadow: 0 0 0.55rem rgba(13, 142, 120, 0.4);
}

.mini-status b {
  color: #0d7d6a;
  white-space: nowrap;
}

.procedure-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #d1dad5;
}

.procedure-step {
  display: grid;
  justify-items: center;
  gap: 0.28rem;
  min-width: 0;
  min-height: 3.45rem;
  padding: 0.42rem 0.2rem;
  border: 0;
  border-right: 1px solid #d1dad5;
  background: #f8faf8;
  color: #657279;
  font-size: 0.7rem;
}

.procedure-step:last-child {
  border-right: 0;
}

.procedure-step span {
  display: grid;
  place-items: center;
  width: 1.28rem;
  height: 1.28rem;
  border: 1px solid #bdcac4;
  border-radius: 50%;
  background: #fff;
  font-size: 0.65rem;
}

.procedure-step.is-done span {
  border-color: #0d8e78;
  background: #dcefe9;
  color: #0d7d6a;
}

.procedure-step.is-active {
  background: #e4f2ed;
  color: #0a705f;
  box-shadow: inset 0 -2px 0 #0d8e78;
}

.procedure-step.is-active span {
  border-color: #0d8e78;
  background: #0d8e78;
  color: #fff;
}

.workspace .plain-btn.is-active {
  border-color: #0d8e78;
  background: #dff0eb;
  color: #0d7d6a;
}

@media (max-width: 560px) {
  .mini-status {
    align-items: flex-start;
    flex-direction: column;
  }

  .procedure-step {
    min-height: 3.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .entry-screen,
  .entry-choice,
  .entry-choice::after,
  .entry-screen::after {
    transition: none;
    animation: none;
  }
}

/* Full-viewport WebGL background with the interface kept crisp above it. */
.entry-screen {
  background: #02070b;
  isolation: isolate;
  contain: paint;
}

.entry-screen::after {
  opacity: 0.7;
  animation: none;
}

.entry-shell {
  grid-template-columns: minmax(0, 1fr) minmax(25rem, 31rem);
  grid-template-rows: auto minmax(0, 1fr);
  background: rgba(2, 8, 12, 0.12);
  backdrop-filter: none;
  transform: translateZ(0);
  backface-visibility: hidden;
}

#entryAurora {
  mix-blend-mode: normal;
  opacity: 0.94;
  contain: strict;
}

.entry-forest {
  opacity: 1;
}

.entry-header {
  grid-column: 1 / -1;
}

.entry-title {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  padding: 3rem clamp(2rem, 5vw, 5rem);
}

.entry-selector {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  margin: 2rem;
  border: 1px solid rgba(113, 206, 208, 0.27);
  background: rgba(5, 24, 31, 0.76);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(20px) saturate(124%);
}

.entry-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.entry-choice {
  min-height: 8.2rem;
}

.entry-choice:nth-child(3) {
  border-right: 0;
}

.entry-choice:nth-child(-n + 3) {
  border-bottom: 1px solid rgba(131, 187, 195, 0.16);
}

@media (max-width: 900px) {
  .entry-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(9rem, 1fr) auto;
  }

  .entry-header {
    grid-column: 1;
  }

  .entry-title {
    grid-column: 1;
    grid-row: 2;
  }

  .entry-selector {
    grid-column: 1;
    grid-row: 3;
    margin: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .entry-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-choice:nth-child(3) {
    border-right: 1px solid rgba(131, 187, 195, 0.16);
  }

  .entry-choice:nth-child(2n) {
    border-right: 0;
  }
}

/* Build 46: unified deep-lab controls for circuit, projectile and force workbenches. */
.tool-section .cap-readout-grid b,
.tool-section .mini-status b {
  font-variant-numeric: tabular-nums;
}

.tool-section .procedure-strip + .formula-box {
  margin-top: 0.65rem;
}

.workspace .tool-btn,
.workspace .plain-btn,
.workspace .scenario-card,
.workspace .procedure-step {
  touch-action: manipulation;
}

.workspace .scenario-card span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.35;
}

.workspace .scenario-card b {
  display: block;
  color: var(--ink);
  font-size: 0.86rem;
}

@media (max-width: 560px) {
  .workspace .scenario-grid {
    gap: 0.42rem;
  }

  .workspace .scenario-card {
    min-height: 3.7rem;
    padding: 0.48rem;
  }

  .workspace .procedure-step {
    min-height: 3.2rem;
  }

  .workspace .cap-readout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.equipment-rack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-2) 82%, transparent);
}

.equipment-item {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.55rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.equipment-item:nth-child(2n) {
  border-right: 0;
}

.equipment-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.equipment-object {
  position: relative;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(111, 140, 148, 0.42);
  border-radius: 0.3rem;
  background: linear-gradient(145deg, #eef3f1 0 36%, #aab7b7 38% 52%, #43535b 54% 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.75), 0 0.22rem 0.45rem rgba(4, 18, 24, 0.16);
}

.equipment-object::after {
  position: absolute;
  right: 0.2rem;
  bottom: 0.2rem;
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 50%;
  background: #3dd29a;
  box-shadow: 0 0 0.45rem rgba(61, 210, 154, 0.68);
  content: "";
}

.equipment-object i {
  color: #17303a;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
}

.equipment-item > span:last-child,
.equipment-item b,
.equipment-item small {
  display: block;
  min-width: 0;
}

.equipment-item b {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.77rem;
}

.equipment-item small {
  margin-top: 0.14rem;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.3;
}

body.is-dark .equipment-object {
  background: linear-gradient(145deg, #c9d3d2 0 33%, #6b7d82 35% 52%, #1c2c34 54% 100%);
}

@media (max-width: 420px) {
  .equipment-rack {
    grid-template-columns: 1fr;
  }

  .equipment-item,
  .equipment-item:nth-child(2n),
  .equipment-item:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .equipment-item:last-child {
    border-bottom: 0;
  }
}

/* Build 92: stage-first proportions and a compact instrument rail. */
@media (min-width: 1041px) {
  .lab-layout {
    grid-template-columns: minmax(0, 1fr) clamp(13.75rem, 15vw, 15.5rem);
    gap: 0.72rem;
  }

  .canvas-wrap > canvas {
    height: clamp(27rem, 45vw, 40rem);
  }

  .control-panel {
    max-height: clamp(27rem, 45vw, 40rem);
    padding: 0.65rem;
  }

  .tool-section {
    padding-bottom: 0.68rem;
    margin-bottom: 0.68rem;
  }

  .tool-section h3 {
    margin-bottom: 0.48rem;
    font-size: 0.88rem;
  }

  .control-row {
    gap: 0.3rem;
    margin-bottom: 0.68rem;
    font-size: 0.78rem;
  }

  .scenario-grid,
  .tool-grid {
    gap: 0.38rem;
  }

  .workspace .scenario-card {
    min-height: 3.35rem;
    padding: 0.43rem;
  }

  .workspace .scenario-card b {
    font-size: 0.76rem;
  }

  .workspace .scenario-card span {
    font-size: 0.64rem;
  }

  .cap-readout-grid,
  .readout {
    gap: 0.34rem;
  }

  .cap-readout-grid span,
  .readout div {
    padding: 0.43rem;
  }

  .cap-readout-grid span,
  .readout span {
    font-size: 0.66rem;
  }

  .cap-readout-grid b,
  .readout strong {
    margin-top: 0.12rem;
    font-size: 0.82rem;
  }

  .lab-tutor-entry {
    grid-template-columns: 1.85rem minmax(0, 1fr);
    gap: 0.45rem;
    margin: 0.55rem 0;
    padding: 0.55rem;
  }

  .lab-tutor-mark {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.66rem;
  }

  .lab-tutor-copy strong {
    font-size: 0.75rem;
  }

  .lab-tutor-copy p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.62rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .lab-tutor-entry > button {
    grid-column: 1 / -1;
  }

  .lab-tutor-prompts {
    gap: 0.3rem;
  }

  .lab-tutor-entry > button,
  .lab-tutor-prompts button {
    min-height: 1.8rem;
    font-size: 0.67rem;
  }

  .equipment-rack {
    grid-template-columns: 1fr;
  }

  .equipment-item,
  .equipment-item:nth-child(2n),
  .equipment-item:nth-last-child(-n + 2) {
    padding: 0.42rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .equipment-item:last-child {
    border-bottom: 0;
  }
}

.canvas-wrap.is-next-3d,
.canvas-wrap.is-faraday-3d {
  border-color: rgba(91, 202, 255, 0.48);
  box-shadow:
    inset 0 0 0 1px rgba(255, 181, 82, 0.08),
    inset 0 0 80px rgba(5, 10, 24, 0.3),
    0 20px 42px rgba(17, 41, 60, 0.28);
}

.canvas-wrap.is-next-3d::before,
.canvas-wrap.is-faraday-3d::before {
  background: linear-gradient(90deg, #49cfff, #8f7cff 38%, #ffb452 72%, #ff6b5f);
}

.canvas-wrap.is-next-3d .stage-status,
.canvas-wrap.is-faraday-3d .stage-status {
  border-color: rgba(86, 218, 255, 0.52);
  background: rgba(7, 18, 31, 0.78);
}

.faraday-3d-state {
  border-color: rgba(126, 121, 255, 0.4);
  background: rgba(8, 17, 31, 0.8);
}

.faraday-3d-state span {
  color: #66ddff;
}

/* Build 93: reusable rigid-body sandbox overlay. */
.sandbox-3d-canvas {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  width: 100%;
  height: 100%;
  cursor: default;
  touch-action: none;
}

.sandbox-3d-canvas.is-hovering-object {
  cursor: grab;
}

.sandbox-3d-canvas.is-hovering-handle {
  cursor: ns-resize;
}

.sandbox-3d-canvas.is-dragging {
  cursor: grabbing;
}

.canvas-wrap.is-sandbox-3d #labCanvas {
  opacity: 0;
  pointer-events: none;
}

.canvas-wrap.is-sandbox-3d .sandbox-3d-canvas {
  display: block;
}

.canvas-wrap.is-sandbox-3d .stage-status {
  z-index: 8;
  border-color: rgba(39, 121, 116, 0.36);
  background: rgba(248, 252, 250, 0.9);
  color: #183338;
}

.canvas-wrap.is-sandbox-3d {
  border-color: rgba(43, 119, 115, 0.38);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.52),
    0 18px 38px rgba(44, 69, 69, 0.18);
}

.canvas-wrap.is-sandbox-3d::before {
  background: linear-gradient(90deg, #2d827c, #67aaa2 55%, #cda94d);
}

.sandbox-3d-hud {
  z-index: 9;
}

.sandbox-3d-state {
  border-color: rgba(45, 118, 112, 0.34);
  background: rgba(249, 252, 250, 0.92);
  color: #183338;
  box-shadow: 0 0.65rem 1.5rem rgba(52, 76, 75, 0.16);
}

.sandbox-3d-state span { color: #14776d; }
.sandbox-3d-state strong { color: #10282d; }
.sandbox-3d-state small { color: #566c70; }
}

.sandbox-vector-legend {
  display: grid;
  grid-template-columns: repeat(5, auto auto);
  gap: 0.2rem 0.34rem;
  align-items: center;
  margin-top: 0.35rem;
  color: #3f565a;
  font-size: 0.55rem;
}

.sandbox-vector-legend i {
  width: 0.5rem;
  height: 0.16rem;
  border-radius: 0.08rem;
  background: currentColor;
}

.sandbox-vector-legend b {
  margin-right: 0.35rem;
  font-weight: 600;
}

.sandbox-vector-legend .is-gravity { color: #e95852; }
.sandbox-vector-legend .is-normal { color: #2fa8df; }
.sandbox-vector-legend .is-friction { color: #f2b84b; }
.sandbox-vector-legend .is-velocity { color: #28a36a; }
.sandbox-vector-legend .is-acceleration { color: #e97832; }

.sandbox-apparatus {
  position: absolute;
  left: 0.75rem;
  bottom: 3.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  max-width: calc(100% - 1.5rem);
  padding: 0.36rem;
  border: 1px solid rgba(57, 116, 112, 0.26);
  background: rgba(249, 252, 250, 0.92);
  pointer-events: auto;
  backdrop-filter: blur(10px);
}

.sandbox-apparatus button {
  min-height: 1.85rem;
  padding: 0 0.55rem;
  border: 1px solid rgba(57, 116, 112, 0.28);
  border-radius: 0.22rem;
  background: #f4f8f6;
  color: #18393b;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.sandbox-apparatus button:hover,
.sandbox-apparatus button:focus-visible {
  border-color: #21887c;
  background: #e0f1ec;
  color: #0f5d55;
  outline: none;
}

.canvas-wrap.is-sandbox-3d .faraday-3d-toolbar button {
  width: auto;
  min-width: 2.6rem;
  padding: 0 0.42rem;
}

.canvas-wrap.is-sandbox-3d .faraday-3d-toolbar,
.canvas-wrap.is-sandbox-3d .faraday-3d-selection {
  border-color: rgba(57, 116, 112, 0.28);
  background: rgba(249, 252, 250, 0.92);
  color: #29484b;
}

.canvas-wrap.is-sandbox-3d .faraday-3d-toolbar button {
  border-color: rgba(57, 116, 112, 0.28);
  background: #f4f8f6;
  color: #18393b;
}

.canvas-wrap.is-sandbox-3d button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

@media (max-width: 720px) {
  .sandbox-apparatus {
    right: 0.5rem;
    bottom: 3.25rem;
    left: 0.5rem;
    gap: 0.22rem;
    padding: 0.26rem;
  }

  .sandbox-apparatus button {
    flex: 1 1 calc(33.333% - 0.22rem);
    min-height: 1.55rem;
    padding: 0 0.2rem;
    font-size: 0.58rem;
  }

  .canvas-wrap.is-sandbox-3d .faraday-3d-selection {
    max-width: 50%;
  }

  .sandbox-vector-legend {
    grid-template-columns: repeat(3, auto auto);
    font-size: 0.5rem;
  }
}

.workspace .action-bar button.is-active,
body.is-dark .workspace .action-bar button.is-active {
  border-color: #0d8e78;
  background: #0d8e78;
  color: #fff;
}

body.is-dark .workspace .action-bar button:not(.is-active),
body.is-dark .workspace .seg-btn:not(.is-active),
body.is-dark .workspace .tool-btn:not(.is-active),
body.is-dark .workspace .plain-btn:not(.is-active),
body.is-dark .workspace .danger-btn,
body.is-dark .workspace .data-actions button:not([aria-pressed="true"]),
body.is-dark .workspace .lab-tutor-entry button,
body.is-dark .sandbox-apparatus button,
body.is-dark .canvas-wrap.is-sandbox-3d .faraday-3d-toolbar button {
  border-color: rgba(91, 210, 188, 0.24);
  background: #0a2025;
  color: #dcefed;
}

body.is-dark .workspace .action-bar button:not(.is-active):hover,
body.is-dark .workspace .seg-btn:not(.is-active):hover,
body.is-dark .workspace .tool-btn:not(.is-active):hover,
body.is-dark .workspace .plain-btn:not(.is-active):hover,
body.is-dark .workspace .lab-tutor-entry button:hover {
  border-color: rgba(82, 221, 196, 0.7);
  background: #12383c;
  color: #72ead6;
}

body.is-dark .workspace .mode-switch,
body.is-dark .workspace .notebook,
body.is-dark .workspace .data-console,
body.is-dark .workspace .data-table-wrap {
  border-color: rgba(91, 210, 188, 0.18);
  background: rgba(5, 18, 22, 0.9);
  color: #e9f5f3;
}

body.is-dark .workspace .notebook,
body.is-dark .workspace .data-console {
  box-shadow: inset 0 1px rgba(118, 235, 213, 0.04);
}

body.is-dark .workspace .lab-tutor-entry {
  border-color: rgba(82, 221, 196, 0.25);
  background: linear-gradient(135deg, rgba(24, 101, 91, 0.24), rgba(5, 18, 22, 0.82));
}

body.is-dark .workspace .lab-tutor-mark {
  border-color: rgba(117, 235, 214, 0.54);
  background: #168f7e;
  box-shadow: 0 0 1rem rgba(82, 221, 196, 0.16);
}

body.is-dark .workspace .data-table tbody tr:hover td {
  background: rgba(82, 221, 196, 0.07);
}

body.is-dark .workspace .analysis-legend,
body.is-dark .workspace .notebook p,
body.is-dark .workspace .sample-rate,
body.is-dark .workspace .capture-status {
  color: #91aaa8;
}
