/* ==========================================================================
   橙星沉浸式虚拟实验室
   所有规则均限定在 virtual-lab 命名空间内，避免影响批注画布的浅色主题。
   ========================================================================== */
.virtual-lab-backdrop {
  --vl-bg: #070c11; --vl-deep: #05090d; --vl-surface: #101922; --vl-surface-2: #15212b; --vl-surface-3: #1a2833; --vl-line: #293a46; --vl-line-strong: #405563; --vl-text: #f1f7f5; --vl-soft: #c4d2ce; --vl-muted: #81928d; --vl-primary: #35c78c; --vl-primary-strong: #18a86f; --vl-primary-soft: rgba(53, 199, 140, 0.13); --vl-data: #ff755f; --vl-warning: #f4a43b; --vl-blue: #5aa9ff; --vl-grid: rgba(116, 149, 156, 0.075); --vl-radius: 10px; position: fixed; inset: 0; z-index: 10000; display: grid; min-width: 0; padding: 12px; place-items: center; color: var(--vl-text); background: radial-gradient(circle at 50% -10%, rgba(53, 199, 140, 0.13), transparent 36%), rgba(3, 7, 10, 0.94); color-scheme: dark; isolation: isolate; animation: vl-backdrop-in 180ms ease-out both; }
.asset-library-backdrop.virtual-lab-backdrop {
  z-index: 10000; padding: 12px; background: radial-gradient(circle at 50% -10%, rgba(53, 199, 140, 0.13), transparent 36%), rgba(3, 7, 10, 0.94); }
.virtual-lab-backdrop[hidden],
.vl-guide-backdrop[hidden],
.vl-curve-popover[hidden] {
  display: none !important; }
.virtual-lab-backdrop *,
.virtual-lab-backdrop *::before,
.virtual-lab-backdrop *::after {
  box-sizing: border-box; }
.virtual-lab-backdrop button,
.virtual-lab-backdrop input,
.virtual-lab-backdrop select {
  font: inherit; }
.virtual-lab-backdrop button {
  cursor: pointer; }
.virtual-lab-backdrop button:focus-visible,
.virtual-lab-backdrop input:focus-visible,
.virtual-lab-backdrop select:focus-visible {
  outline: 2px solid var(--vl-primary); outline-offset: 2px; }
.virtual-lab-backdrop ::selection {
  color: #06100d; background: #6be2b4; }
.virtual-lab-backdrop ::-webkit-scrollbar {
  width: 8px; height: 8px; }
.virtual-lab-backdrop ::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.025); }
.virtual-lab-backdrop ::-webkit-scrollbar-thumb {
  border: 2px solid transparent; border-radius: 999px; background: #3b4d58; background-clip: padding-box; }
.virtual-lab-backdrop ::-webkit-scrollbar-thumb:hover {
  background: #526874; background-clip: padding-box; }
/* 外壳与顶栏
   -------------------------------------------------------------------------- */
.virtual-lab-shell {
  position: relative; display: grid; grid-template-rows: 64px minmax(0, 1fr); width: min(1880px, calc(100vw - 24px)); height: min(1080px, calc(100dvh - 24px)); min-width: 0; min-height: 0; overflow: hidden; border: 1px solid var(--vl-line-strong); border-radius: 14px; color: var(--vl-text); background: linear-gradient(var(--vl-grid) 1px, transparent 1px), linear-gradient(90deg, var(--vl-grid) 1px, transparent 1px), var(--vl-bg); background-size: 24px 24px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.025), 0 28px 86px rgba(0, 0, 0, 0.58); animation: vl-shell-in 240ms cubic-bezier(0.2, 0.75, 0.3, 1) both; }
.asset-library-dialog.virtual-lab-shell {
  grid-template-rows: 64px minmax(0, 1fr); width: min(1880px, calc(100vw - 24px)); height: min(1080px, calc(100dvh - 24px)); max-height: none; overflow: hidden; border-color: var(--vl-line-strong); border-radius: 14px; color: var(--vl-text); background: var(--vl-bg); box-shadow: 0 28px 86px rgba(0, 0, 0, 0.58); }
.vl-topbar {
  position: relative; z-index: 20; display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 20px; padding: 0 18px; border-bottom: 1px solid var(--vl-line); background: rgba(8, 14, 19, 0.94); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); backdrop-filter: blur(15px); }
.asset-library-dialog.virtual-lab-shell > .vl-topbar {
  align-items: center; padding: 0 18px; border-bottom-color: var(--vl-line); background: rgba(8, 14, 19, 0.94); }
.vl-brand {
  display: flex; min-width: 0; align-items: center; gap: 11px; }
.vl-brand > span:first-child,
.vl-brand > i:first-child {
  display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 1px solid rgba(53, 199, 140, 0.38); border-radius: 11px; color: var(--vl-primary); background: var(--vl-primary-soft); box-shadow: inset 0 0 16px rgba(53, 199, 140, 0.08); font-size: 20px; font-style: normal; }
.vl-brand > div {
  min-width: 0; }
.vl-brand strong {
  display: block; overflow: hidden; color: #f8fbfa; font-size: 17px; font-weight: 850; letter-spacing: 0.01em; text-overflow: ellipsis; white-space: nowrap; }
.vl-brand small {
  display: block; margin-top: 2px; overflow: hidden; color: var(--vl-muted); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.vl-top-actions {
  display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 8px; }
.vl-top-actions button,
.vl-workspace-actions button,
.vl-view-tabs button,
.vl-path-buttons button,
.vl-transport button {
  min-width: 0; min-height: 34px; padding: 0 12px; border: 1px solid var(--vl-line); border-radius: 7px; color: var(--vl-soft); background: rgba(20, 30, 39, 0.88); font-size: 12px; font-weight: 750; transition: 140ms ease; }
.vl-top-actions button:hover,
.vl-workspace-actions button:hover,
.vl-view-tabs button:hover,
.vl-path-buttons button:hover,
.vl-transport button:hover {
  border-color: #4f6877; color: #fff; background: #1b2934; transform: translateY(-1px); }
.vl-top-actions button.is-active,
.vl-workspace-actions button.is-active,
.vl-view-tabs button.is-active,
.vl-path-buttons button.is-active,
.vl-transport button.is-active {
  border-color: var(--vl-primary); color: #ddfff2; background: var(--vl-primary-soft); box-shadow: inset 0 0 12px rgba(53, 199, 140, 0.08); }
.vl-layout {
  display: grid; grid-template-columns: 286px minmax(0, 1fr); min-width: 0; min-height: 0; overflow: hidden; }
/* 课程目录
   -------------------------------------------------------------------------- */
.vl-sidebar {
  position: relative; z-index: 5; display: flex; min-width: 0; min-height: 0; flex-direction: column; overflow: hidden; border-right: 1px solid var(--vl-line); background: linear-gradient(180deg, rgba(20, 31, 40, 0.98), rgba(10, 17, 23, 0.98)); }
.vl-sidebar-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 10px; }
.vl-sidebar-head > div {
  min-width: 0; }
.vl-sidebar-head h2,
.vl-sidebar-head h3 {
  margin: 0; color: #f4faf7; font-size: 16px; line-height: 1.25; }
.vl-sidebar-head p {
  margin: 4px 0 0; overflow: hidden; color: var(--vl-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.vl-stage-tabs,
.vl-subject-tabs {
  display: grid; gap: 5px; padding: 0 14px; }
.vl-stage-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 7px; }
.vl-subject-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 10px; }
.vl-stage-tabs button,
.vl-subject-tabs button {
  min-width: 0; min-height: 31px; padding: 0 7px; overflow: hidden; border: 1px solid var(--vl-line); border-radius: 7px; color: #9daea9; background: rgba(255, 255, 255, 0.025); font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; transition: 140ms ease; }
.vl-stage-tabs button:hover,
.vl-subject-tabs button:hover {
  color: #eef8f4; border-color: #48606e; background: rgba(255, 255, 255, 0.055); }
.vl-stage-tabs button.is-active,
.vl-subject-tabs button.is-active {
  color: #07130f; border-color: var(--vl-primary); background: var(--vl-primary); box-shadow: 0 5px 15px rgba(53, 199, 140, 0.17); }
.vl-search {
  position: relative; margin: 0 14px 11px; }
.vl-search::before {
  position: absolute; z-index: 1; left: 11px; top: 50%; color: #70847e; content: "⌕"; font-size: 17px; pointer-events: none; transform: translateY(-52%); }
.vl-search input {
  width: 100%; height: 36px; padding: 0 12px 0 33px; border: 1px solid var(--vl-line); border-radius: 8px; color: var(--vl-text); background: #0c141b; outline: 0; }
.vl-search input::placeholder {
  color: #637670; }
.vl-search input:focus {
  border-color: var(--vl-primary); box-shadow: 0 0 0 3px rgba(53, 199, 140, 0.1); }
.vl-course-tree {
  min-height: 0; flex: 1; overflow: auto; padding: 0 10px 18px; overscroll-behavior: contain; }
.vl-category {
  margin: 0 0 7px; overflow: hidden; border: 1px solid transparent; border-radius: 9px; background: rgba(255, 255, 255, 0.018); transition: 150ms ease; }
.vl-category:hover,
.vl-category.is-expanded {
  border-color: var(--vl-line); background: rgba(255, 255, 255, 0.03); }
.vl-category > button,
.vl-category > summary,
.vl-category > header {
  display: flex; width: 100%; min-height: 42px; align-items: center; gap: 9px; padding: 8px 10px; border: 0; color: var(--vl-soft); background: transparent; text-align: left; list-style: none; }
.vl-category > summary {
  cursor: pointer; }
.vl-category > summary::-webkit-details-marker {
  display: none; }
.vl-category > button::after,
.vl-category > summary::after {
  margin-left: auto; color: #71837e; content: "›"; font-size: 18px; transition: transform 150ms ease; }
.vl-category.is-expanded > button::after,
.vl-category.is-expanded > summary::after,
.vl-category[open] > summary::after {
  transform: rotate(90deg); }
.vl-category > button strong,
.vl-category > summary strong,
.vl-category > header strong {
  min-width: 0; flex: 1; overflow: hidden; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.vl-category > button small,
.vl-category > summary small,
.vl-category > header small {
  flex: none; color: #6f837c; font-size: 9px; }
.vl-category > div,
.vl-category > ul {
  display: grid; max-height: 1100px; gap: 5px; margin: 0; padding: 0 6px 7px; overflow: hidden; opacity: 1; visibility: visible; list-style: none; transition: max-height 240ms cubic-bezier(.2,.8,.2,1), opacity 160ms ease, padding 240ms ease, visibility 0s linear 0s; }
.vl-category:not(.is-expanded):not([open]) > div,
.vl-category:not(.is-expanded):not([open]) > ul {
  display: grid; max-height: 0; padding-bottom: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: max-height 220ms cubic-bezier(.4,0,.2,1), opacity 120ms ease, padding 220ms ease, visibility 0s linear 220ms; }
.vl-experiment-item {
  position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; width: 100%; min-width: 0; min-height: 43px; align-items: center; gap: 8px; padding: 6px 8px; overflow: hidden; border: 1px solid transparent; border-radius: 7px; color: #9fb0ab; background: transparent; text-align: left; transition: 140ms ease; }
.vl-experiment-item::before {
  display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid #344853; border-radius: 7px; color: #8ea29b; background: #17232d; content: attr(data-index); font-size: 9px; font-weight: 850; }
.vl-experiment-item:hover {
  color: #f1f8f5; border-color: #3d5360; background: #182630; }
.vl-experiment-item.is-active {
  color: #e9fff6; border-color: rgba(53, 199, 140, 0.72); background: linear-gradient(90deg, rgba(53, 199, 140, 0.18), rgba(53, 199, 140, 0.05)); box-shadow: inset 3px 0 var(--vl-primary); }
.vl-experiment-item.is-active::before {
  color: #081610; border-color: var(--vl-primary); background: var(--vl-primary); }
.vl-experiment-item > span,
.vl-experiment-item > strong {
  min-width: 0; overflow: hidden; font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.vl-experiment-item > small {
  color: #6d817a; font-size: 9px; }
/* 主实验工作区
   -------------------------------------------------------------------------- */
.vl-main {
  display: flex; min-width: 0; min-height: 0; flex-direction: column; overflow: hidden; background: radial-gradient(circle at 20% 8%, rgba(53, 199, 140, 0.05), transparent 28%), rgba(8, 14, 19, 0.84); }
.vl-workspace-head {
  display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 16px 10px; }
.vl-workspace-title {
  min-width: 0; }
.vl-workspace-title > span,
.vl-workspace-title > small {
  display: block; margin-bottom: 3px; overflow: hidden; color: var(--vl-primary); font-size: 9px; font-weight: 850; letter-spacing: 0.07em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.vl-workspace-title h1,
.vl-workspace-title h2 {
  margin: 0; overflow: hidden; color: #f6fbf9; font-size: clamp(18px, 1.55vw, 25px); line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.vl-workspace-title p {
  max-width: 820px; margin: 4px 0 0; overflow: hidden; color: #91a39e; font-size: 10px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.vl-workspace-actions {
  display: flex; flex: none; align-items: center; gap: 7px; }
.vl-workspace-actions button {
  min-height: 33px; white-space: nowrap; }
.vl-workspace-grid {
  display: grid; grid-template-columns: minmax(480px, 1fr) minmax(300px, 354px); min-width: 0; min-height: 0; flex: 1; gap: 11px; overflow: hidden; padding: 0 16px 14px; }
.vl-stage-panel,
.vl-inspector,
.vl-panel,
.vl-relations {
  border: 1px solid var(--vl-line); border-radius: var(--vl-radius); background: rgba(16, 25, 34, 0.94); }
.vl-stage-panel {
  display: grid; grid-template-rows: auto minmax(320px, 1fr) auto auto; min-width: 0; min-height: 0; overflow: hidden; }
.vl-stage-panel > header {
  display: flex; min-width: 0; min-height: 42px; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 10px 6px 13px; border-bottom: 1px solid var(--vl-line); }
.vl-stage-panel > header h3 {
  margin: 0; overflow: hidden; color: #dce9e5; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.vl-view-tabs {
  display: flex; min-width: 0; align-items: center; gap: 5px; overflow-x: auto; }
.vl-view-tabs button {
  min-height: 28px; padding: 0 9px; flex: none; font-size: 10px; }
.vl-stage-canvas {
  position: relative; display: grid; min-width: 0; min-height: 320px; overflow: hidden; place-items: center; border-bottom: 1px solid var(--vl-line); background: radial-gradient(circle at 50% 46%, rgba(53, 199, 140, 0.08), transparent 42%), linear-gradient(rgba(91, 119, 128, 0.075) 1px, transparent 1px), linear-gradient(90deg, rgba(91, 119, 128, 0.075) 1px, transparent 1px), #080e13; background-size: auto, 28px 28px, 28px 28px, auto; isolation: isolate; }
.vl-stage-canvas::before {
  position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, transparent 49.88%, rgba(110, 145, 153, 0.11) 50%, transparent 50.12%), linear-gradient(transparent 49.88%, rgba(110, 145, 153, 0.11) 50%, transparent 50.12%); content: ""; pointer-events: none; }
.vl-stage-canvas::after {
  position: absolute; z-index: 4; inset: 10px; border: 1px solid rgba(107, 137, 145, 0.11); border-radius: 8px; content: ""; pointer-events: none; }
.vl-stage-canvas > svg,
.vl-stage-canvas > canvas {
  display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.vl-stage-canvas > .is-highlighted,
.vl-stage-canvas.is-highlighted {
  filter: drop-shadow(0 0 10px rgba(53, 199, 140, 0.5)); }
.vl-stage-canvas.is-focus {
  border-color: var(--vl-primary); box-shadow: inset 0 0 0 2px var(--vl-primary), inset 0 0 38px rgba(53, 199, 140, 0.1), 0 0 22px rgba(53, 199, 140, 0.18); }
.vl-stage-canvas.is-running::after,
.is-running .vl-stage-canvas::after {
  border-color: rgba(53, 199, 140, 0.55); box-shadow: inset 0 0 22px rgba(53, 199, 140, 0.08); animation: vl-live-frame 1.8s ease-in-out infinite; }
.vl-step-strip {
  display: flex; min-width: 0; min-height: 44px; align-items: center; gap: 7px; overflow-x: auto; padding: 7px 10px; border-bottom: 1px solid var(--vl-line); background: #0d151c; }
.vl-step-strip button,
.vl-step-strip > span {
  display: flex; min-width: max-content; min-height: 27px; align-items: center; gap: 6px; padding: 0 9px; border: 1px solid #273943; border-radius: 999px; color: #7f918c; background: #121d25; font-size: 9px; font-weight: 750; }
.vl-step-strip button::before,
.vl-step-strip > span::before {
  display: grid; width: 16px; height: 16px; place-items: center; border-radius: 50%; color: #a3b1ad; background: #283841; content: attr(data-step); font-size: 8px; }
.vl-step-strip .is-active {
  color: #dffff3; border-color: rgba(53, 199, 140, 0.65); background: var(--vl-primary-soft); }
.vl-step-strip .is-active::before {
  color: #07140f; background: var(--vl-primary); }
.vl-transport {
  display: flex; min-width: 0; align-items: center; gap: 7px; padding: 9px 10px; background: #101922; }
.vl-transport button {
  min-height: 32px; padding: 0 13px; flex: none; }
.vl-transport button:first-child,
.vl-transport .is-running {
  color: #07150f; border-color: var(--vl-primary); background: var(--vl-primary); box-shadow: 0 6px 16px rgba(53, 199, 140, 0.18); }
.vl-transport .is-running {
  animation: vl-control-pulse 1.6s ease-in-out infinite; }
.vl-transport output,
.vl-transport > span {
  min-width: 0; margin-left: auto; overflow: hidden; color: #82958f; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
/* 数据检查器
   -------------------------------------------------------------------------- */
.vl-inspector {
  min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; background: rgba(17, 26, 35, 0.98); }
.vl-panel {
  border: 0; border-bottom: 1px solid var(--vl-line); border-radius: 0; background: transparent; }
.vl-panel:last-child {
  border-bottom: 0; }
.vl-panel > header,
.vl-panel > h3 {
  display: flex; min-height: 38px; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 9px 11px 6px; color: #e4eeeb; font-size: 12px; font-weight: 850; }
.vl-panel > header small,
.vl-panel > h3 small {
  color: #70847d; font-size: 9px; font-weight: 650; }
.vl-choice-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0 11px 10px; }
.vl-choice-grid button,
.vl-choice-grid label {
  display: grid; min-width: 0; min-height: 45px; align-content: center; gap: 2px; padding: 7px 9px; overflow: hidden; border: 1px solid var(--vl-line); border-radius: 7px; color: #adbbb7; background: #131e27; text-align: left; transition: 140ms ease; }
.vl-choice-grid button:hover,
.vl-choice-grid label:hover {
  border-color: #49606d; background: #182630; }
.vl-choice-grid button.is-active,
.vl-choice-grid label.is-active,
.vl-choice-grid label:has(input:checked) {
  color: #e7fff5; border-color: var(--vl-primary); background: linear-gradient(120deg, rgba(53, 199, 140, 0.24), rgba(53, 199, 140, 0.08)); }
.vl-choice-grid strong,
.vl-choice-grid small {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vl-choice-grid strong {
  font-size: 10px; }
.vl-choice-grid small {
  color: #72857f; font-size: 8px; }
.vl-metric-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 0 11px 10px; }
.vl-metric {
  min-width: 0; min-height: 53px; padding: 7px 8px; overflow: hidden; border: 1px solid var(--vl-line); border-radius: 7px; background: #121c25; }
.vl-metric span,
.vl-metric small {
  display: block; overflow: hidden; color: #82948f; font-size: 8px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.vl-metric strong,
.vl-metric output {
  display: block; margin-top: 3px; overflow: hidden; color: var(--vl-data); font-family: "SFMono-Regular", Consolas, monospace; font-size: 16px; font-weight: 850; letter-spacing: -0.025em; text-overflow: ellipsis; white-space: nowrap; }
.vl-metric:nth-child(3n + 2) strong,
.vl-metric:nth-child(3n + 2) output {
  color: var(--vl-warning); }
.vl-metric:nth-child(3n) strong,
.vl-metric:nth-child(3n) output {
  color: #e4f3ef; }
.vl-path-buttons {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0 11px 10px; }
.vl-path-buttons button {
  min-height: 31px; padding: 0 8px; font-size: 10px; }
.vl-path-buttons button.is-active {
  color: #07150f; background: var(--vl-primary); }
.vl-slider {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; padding: 4px 11px 10px; }
.vl-slider label,
.vl-slider > span {
  overflow: hidden; color: #a9b9b4; font-size: 9px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.vl-slider output {
  color: var(--vl-primary); font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; font-weight: 850; }
.vl-slider input[type="range"] {
  grid-column: 1 / -1; width: 100%; height: 5px; margin: 3px 0; padding: 0; border: 0; border-radius: 999px; appearance: none; background: linear-gradient( 90deg, var(--vl-primary) 0 var(--vl-progress, 55%), #34444f var(--vl-progress, 55%) 100% ); outline: 0; accent-color: var(--vl-primary); }
.vl-slider input[type="range"]::-webkit-slider-thumb {
  width: 15px; height: 15px; border: 2px solid #dff9ef; border-radius: 50%; appearance: none; background: var(--vl-primary); box-shadow: 0 0 0 3px rgba(53, 199, 140, 0.13); }
.vl-slider input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px; border: 2px solid #dff9ef; border-radius: 50%; background: var(--vl-primary); }
.vl-layer-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 2px 11px 11px; }
.vl-layer-grid label {
  display: flex; min-width: 0; align-items: center; gap: 7px; color: #aab9b5; font-size: 9px; font-weight: 700; cursor: pointer; }
.vl-layer-grid input {
  width: 13px; height: 13px; flex: 0 0 13px; margin: 0; padding: 0; accent-color: var(--vl-primary); }
/* 公式与关系卡片
   -------------------------------------------------------------------------- */
.vl-relations {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 9px; border: 0; border-radius: 0; background: #0e171e; }
.vl-relation-card {
  min-width: 0; min-height: 58px; padding: 8px 10px; overflow: hidden; border: 1px solid var(--vl-line); border-radius: 7px; background: linear-gradient(140deg, rgba(53, 199, 140, 0.045), transparent 60%), #131e27; }
.vl-relation-card > span,
.vl-relation-card > small {
  display: block; overflow: hidden; color: #81948e; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.vl-relation-card > strong,
.vl-relation-card > output {
  display: block; margin-top: 5px; overflow: visible; color: #f1a04f; font-family: Georgia, "Times New Roman", serif; font-size: 13px; font-style: italic; font-weight: 700; line-height: 1.48; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
.vl-badge {
  display: inline-flex; min-height: 20px; align-items: center; gap: 5px; padding: 2px 7px; border: 1px solid rgba(53, 199, 140, 0.34); border-radius: 999px; color: #8de7c3; background: rgba(53, 199, 140, 0.1); font-size: 8px; font-weight: 850; letter-spacing: 0.035em; white-space: nowrap; }
.vl-badge::before {
  width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; content: ""; }
.vl-badge.is-running {
  color: #66efb7; animation: vl-badge-pulse 1.35s ease-in-out infinite; }
.vl-badge.is-highlighted {
  color: #ffb45e; border-color: rgba(245, 168, 63, 0.38); background: rgba(245, 168, 63, 0.1); }
.vl-empty {
  display: grid; min-height: 220px; padding: 28px; place-items: center; align-content: center; gap: 7px; color: #71847e; text-align: center; }
.vl-empty::before {
  display: grid; width: 48px; height: 48px; place-items: center; border: 1px dashed #41535e; border-radius: 15px; color: var(--vl-primary); background: rgba(53, 199, 140, 0.06); content: "⌁"; font-size: 25px; }
.vl-empty strong {
  color: #bdcac6; font-size: 13px; }
.vl-empty p {
  max-width: 300px; margin: 0; font-size: 10px; line-height: 1.65; }
/* 实验指南
   -------------------------------------------------------------------------- */
.vl-guide-backdrop {
  position: absolute; z-index: 80; inset: 0; display: grid; padding: 24px; place-items: center; background: rgba(2, 6, 9, 0.78); backdrop-filter: blur(6px); animation: vl-backdrop-in 160ms ease-out both; }
.vl-guide-dialog {
  display: flex; width: min(620px, calc(100vw - 48px)); max-height: min(760px, calc(100dvh - 70px)); min-height: 0; flex-direction: column; overflow: hidden; border: 1px solid #435764; border-radius: 12px; color: var(--vl-soft); background: radial-gradient(circle at 85% -10%, rgba(53, 199, 140, 0.12), transparent 30%), #121b24; box-shadow: 0 24px 72px rgba(0, 0, 0, 0.52); animation: vl-guide-in 190ms cubic-bezier(0.2, 0.8, 0.25, 1) both; }
.vl-guide-dialog > header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 17px 18px 14px; border-bottom: 1px solid var(--vl-line); }
.vl-guide-dialog > header > div {
  min-width: 0; }
.vl-guide-dialog > header span {
  display: block; margin-bottom: 4px; color: var(--vl-primary); font-size: 9px; font-weight: 850; letter-spacing: 0.08em; }
.vl-guide-dialog h2,
.vl-guide-dialog h3 {
  margin: 0; color: #f4faf7; font-size: 19px; }
.vl-guide-dialog > header button {
  display: grid; width: 31px; height: 31px; flex: 0 0 31px; padding: 0; place-items: center; border: 1px solid var(--vl-line); border-radius: 7px; color: #9baaa6; background: #17232d; font-size: 18px; }
.vl-guide-dialog > div,
.vl-guide-dialog > article {
  min-height: 0; overflow: auto; padding: 17px 19px 20px; overscroll-behavior: contain; }
.vl-guide-dialog h4 {
  display: flex; align-items: center; gap: 7px; margin: 2px 0 9px; color: #e9f2ef; font-size: 12px; }
.vl-guide-dialog h4::before {
  width: 6px; height: 6px; border-radius: 2px; background: var(--vl-primary); box-shadow: 0 0 8px rgba(53, 199, 140, 0.55); content: ""; }
.vl-guide-dialog p,
.vl-guide-dialog li {
  color: #afbfba; font-size: 11px; line-height: 1.75; }
.vl-guide-dialog ul,
.vl-guide-dialog ol {
  margin: 7px 0 16px; padding-left: 22px; }
.vl-guide-dialog blockquote {
  margin: 13px 0; padding: 11px 13px; border-left: 3px solid var(--vl-primary); border-radius: 0 7px 7px 0; color: #cae3da; background: rgba(53, 199, 140, 0.07); font-size: 11px; line-height: 1.7; }
/* 曲线浮层
   -------------------------------------------------------------------------- */
.vl-curve-popover {
  position: absolute; z-index: 30; top: 52px; right: 12px; width: min(380px, calc(100% - 24px)); min-width: 0; padding: 12px; border: 1px solid #4a5d69; border-radius: 9px; color: var(--vl-soft); background: rgba(20, 30, 39, 0.97); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.48); backdrop-filter: blur(12px); animation: vl-popover-in 150ms ease-out both; }
.vl-curve-popover > header {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.vl-curve-popover > header strong {
  overflow: hidden; color: #edf6f3; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.vl-curve-popover > header button {
  display: grid; width: 26px; height: 26px; padding: 0; place-items: center; border: 1px solid var(--vl-line); border-radius: 6px; color: #9fafaa; background: #18242d; }
.vl-curve-popover svg,
.vl-curve-popover canvas {
  display: block; width: 100%; height: auto; min-height: 150px; border: 1px solid var(--vl-line); border-radius: 7px; background: linear-gradient(rgba(114, 143, 150, 0.11) 1px, transparent 1px), linear-gradient(90deg, rgba(114, 143, 150, 0.11) 1px, transparent 1px), #0c141a; background-size: 30px 30px; }
.vl-curve-popover p {
  margin: 8px 0 0; color: #869a94; font-size: 9px; line-height: 1.55; }
/* 1280 级笔记本
   -------------------------------------------------------------------------- */
@media (max-width: 1399px) {
  .virtual-lab-shell,
  .asset-library-dialog.virtual-lab-shell {
    grid-template-rows: 58px minmax(0, 1fr); }
  .vl-layout {
    grid-template-columns: 248px minmax(0, 1fr); }
  .vl-topbar {
    padding-inline: 14px; }
  .vl-brand strong {
    font-size: 15px; }
  .vl-workspace-head {
    padding: 10px 12px 8px; }
  .vl-workspace-grid {
    grid-template-columns: minmax(430px, 1fr) minmax(278px, 315px); gap: 8px; padding: 0 12px 11px; }
  .vl-sidebar-head {
    padding: 11px 11px 8px; }
  .vl-stage-tabs,
  .vl-subject-tabs {
    padding-inline: 11px; }
  .vl-search {
    margin-inline: 11px; }
  .vl-subject-tabs,
  .vl-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vl-metric strong,
  .vl-metric output {
    font-size: 14px; }
}
@media (max-width: 1180px) {
  .virtual-lab-backdrop {
    padding: 8px; }
  .virtual-lab-shell,
  .asset-library-dialog.virtual-lab-shell {
    width: calc(100vw - 16px); height: calc(100dvh - 16px); border-radius: 11px; }
  .vl-layout {
    grid-template-columns: 218px minmax(0, 1fr); }
  .vl-top-actions {
    gap: 5px; }
  .vl-top-actions button {
    padding-inline: 9px; font-size: 10px; }
  .vl-workspace-grid {
    display: block; overflow: auto; }
  .vl-stage-panel {
    min-height: min(630px, calc(100dvh - 146px)); }
  .vl-inspector {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 8px; overflow: visible; }
  .vl-panel {
    border-right: 1px solid var(--vl-line); }
  .vl-panel:nth-child(2n) {
    border-right: 0; }
}
/* 900 px 窄屏
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .vl-layout {
    grid-template-columns: 200px minmax(0, 1fr); }
  .vl-brand small {
    display: none; }
  .vl-top-actions button {
    max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .vl-workspace-title p {
    max-width: 440px; }
  .vl-workspace-actions {
    max-width: 270px; overflow-x: auto; }
  .vl-workspace-actions button {
    flex: none; padding-inline: 9px; font-size: 10px; }
  .vl-stage-panel {
    min-height: 590px; }
  .vl-stage-canvas {
    min-height: 350px; }
  .vl-relations {
    gap: 5px; }
  .vl-relation-card {
    padding-inline: 7px; }
}
/* 600 px 手机 / 小平板
   -------------------------------------------------------------------------- */
@media (max-width: 700px) {
  .virtual-lab-backdrop,
  .asset-library-backdrop.virtual-lab-backdrop {
    padding: 0; }
  .virtual-lab-shell,
  .asset-library-dialog.virtual-lab-shell {
    grid-template-rows: calc(54px + env(safe-area-inset-top)) minmax(0, 1fr); width: 100vw; height: 100dvh; border-width: 0; border-radius: 0; }
  .vl-topbar {
    gap: 8px; padding: env(safe-area-inset-top) calc(58px + env(safe-area-inset-right)) 0 max(9px, env(safe-area-inset-left)); }
  .vl-brand {
    gap: 7px; }
  .vl-brand > span:first-child,
  .vl-brand > i:first-child {
    width: 31px; height: 31px; flex-basis: 31px; border-radius: 9px; font-size: 17px; }
  .vl-brand strong {
    max-width: 180px; font-size: 13px; }
  .vl-top-actions {
    max-width: none; flex: 0 0 auto; overflow: visible; }
  .vl-top-actions button {
    min-width: 38px; min-height: 38px; flex: none; padding-inline: 0; font-size: 0; }
  .vl-top-actions [data-vl-action="focus"]::before,
  .vl-top-actions [data-vl-action="expand"]::before {
    font-size: 16px; line-height: 1; }
  .vl-top-actions [data-vl-action="focus"]::before {
    content: "◎"; }
  .vl-top-actions [data-vl-action="expand"]::before {
    content: "⛶"; }
  .vl-top-actions [data-vl-action="close"] {
    position: fixed; z-index: 10003; top: calc(5px + env(safe-area-inset-top)); right: max(7px, env(safe-area-inset-right)); display: grid; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; place-items: center; border-color: rgba(255, 117, 95, 0.45); color: #fff; background: rgba(255, 117, 95, 0.14); font-size: 24px; line-height: 1; touch-action: manipulation; }
  .vl-layout {
    display: flex; flex-direction: column; overflow: hidden; }
  .vl-sidebar {
    display: grid; grid-template-columns: minmax(126px, 0.8fr) minmax(0, 1.2fr); grid-template-rows: auto auto auto; max-height: 210px; flex: 0 0 auto; border-right: 0; border-bottom: 1px solid var(--vl-line); }
  .vl-sidebar-head {
    grid-column: 1; grid-row: 1; padding: 8px 9px 5px; }
  .vl-sidebar-head h2,
  .vl-sidebar-head h3 {
    font-size: 13px; }
  .vl-stage-tabs {
    grid-column: 1; grid-row: 2; padding: 0 9px; }
  .vl-subject-tabs {
    grid-column: 1; grid-row: 3; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 9px 8px; margin: 0; }
  .vl-stage-tabs button,
  .vl-subject-tabs button {
    min-height: 27px; font-size: 9px; }
  .vl-search {
    grid-column: 2; grid-row: 1; margin: 7px 9px 5px 4px; }
  .vl-search input {
    height: 31px; }
  .vl-course-tree {
    grid-column: 2; grid-row: 2 / 4; padding: 0 8px 8px 3px; }
  .vl-category > button,
  .vl-category > summary,
  .vl-category > header {
    min-height: 34px; padding-block: 5px; }
  .vl-experiment-item {
    min-height: 36px; }
  .vl-main {
    flex: 1; }
  .vl-workspace-head {
    gap: 9px; padding: 8px 9px 7px; }
  .vl-workspace-title > span,
  .vl-workspace-title > small,
  .vl-workspace-title p {
    display: none; }
  .vl-workspace-title h1,
  .vl-workspace-title h2 {
    font-size: 15px; }
  .vl-workspace-actions {
    max-width: 55%; }
  .vl-workspace-actions button {
    min-height: 29px; padding-inline: 8px; font-size: 9px; }
  .vl-workspace-grid {
    padding: 0 8px 9px; }
  .vl-stage-panel {
    grid-template-rows: auto minmax(300px, 1fr) auto auto; min-height: 540px; }
  .vl-stage-panel > header {
    align-items: flex-start; flex-direction: column; gap: 5px; padding-block: 7px; }
  .vl-view-tabs {
    width: 100%; }
  .vl-stage-canvas {
    min-height: 300px; }
  .vl-relations {
    grid-template-columns: 1fr; }
  .vl-relation-card {
    min-height: 48px; }
  .vl-transport {
    overflow-x: auto; }
  .vl-transport output,
  .vl-transport > span {
    display: none; }
  .vl-inspector {
    grid-template-columns: 1fr; }
  .vl-panel {
    border-right: 0; }
  .vl-guide-backdrop {
    padding: 10px; }
  .vl-guide-dialog {
    width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .vl-guide-dialog > header,
  .vl-guide-dialog > div,
  .vl-guide-dialog > article {
    padding: 14px; }
  .vl-curve-popover {
    position: fixed; top: auto; right: 8px; bottom: 8px; left: 8px; width: auto; }
}
@media (max-width: 480px) {
  .vl-brand strong {
    max-width: 125px; }
  .vl-top-actions {
    max-width: 44%; }
  .vl-sidebar {
    grid-template-columns: 128px minmax(0, 1fr); }
  .vl-workspace-title h1,
  .vl-workspace-title h2 {
    max-width: 125px; }
  .vl-workspace-actions {
    max-width: calc(100% - 130px); }
  .vl-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vl-choice-grid,
  .vl-path-buttons,
  .vl-layer-grid {
    grid-template-columns: 1fr; }
}
/* 动效与无障碍
   -------------------------------------------------------------------------- */
@keyframes vl-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes vl-shell-in {
  from { opacity: 0; transform: translateY(8px) scale(0.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes vl-guide-in {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes vl-popover-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes vl-live-frame {
  0%, 100% { opacity: 0.58; }
  50% { opacity: 1; }
}
@keyframes vl-control-pulse {
  0%, 100% { box-shadow: 0 5px 14px rgba(53, 199, 140, 0.16); }
  50% { box-shadow: 0 5px 24px rgba(53, 199, 140, 0.38); }
}
@keyframes vl-badge-pulse {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .virtual-lab-backdrop,
  .virtual-lab-shell,
  .vl-guide-dialog,
  .vl-curve-popover,
  .vl-stage-canvas::after,
  .vl-transport .is-running,
  .vl-badge.is-running {
    animation: none !important; transition: none !important; }
}
/* DOM integration overrides: virtual-lab.js runtime structure
   -------------------------------------------------------------------------- */
body.virtual-lab-open { overflow: hidden; }
.vl-brand-mark { position: relative; overflow: hidden; padding: 0; background: transparent !important; }
.vl-brand-mark img { display: block; width: 100%; height: 100%; max-width: 36px; max-height: 36px; border-radius: inherit; object-fit: cover; }
.vl-brand > em { padding: 3px 6px; border: 1px solid #344955; border-radius: 5px; color: #8fa39d; background: #111b23; font-size: 9px; font-style: normal; font-weight: 850; }
.vl-top-stats { display: flex; min-width: 0; align-items: center; gap: 6px; margin-left: auto; color: #788c86; font-size: 9px; }
.vl-top-stats > span { display: flex; align-items: center; gap: 6px; margin-right: 8px; color: #80dcb8; font-weight: 750; white-space: nowrap; }
.vl-top-stats > span i { width: 6px; height: 6px; border-radius: 50%; background: var(--vl-primary); box-shadow: 0 0 9px var(--vl-primary); }
.vl-top-stats > b { color: #eef8f4; font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; }
.vl-top-stats > small { margin-right: 7px; color: #70827d; font-size: 8px; }
.virtual-lab-shell.is-expanded { width: 100vw; height: 100dvh; max-width: none; max-height: none; border-radius: 0; }
.virtual-lab-shell.is-focus .vl-layout { grid-template-columns: minmax(240px, 286px) minmax(0, 1fr); }
.virtual-lab-shell.is-focus .vl-workspace-head,
.virtual-lab-shell.is-focus .vl-step-strip,
.virtual-lab-shell.is-focus .vl-relations { display: none; }
.virtual-lab-shell.is-focus .vl-workspace-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 354px); padding-top: 12px; }
.virtual-lab-shell.is-focus .vl-stage-panel { grid-template-rows: auto minmax(320px, 1fr); }
.virtual-lab-shell.is-focus .vl-stage-canvas { border-bottom: 0; box-shadow: inset 0 0 0 1px rgba(53, 199, 140, 0.45), 0 0 26px rgba(53, 199, 140, 0.1); }
.virtual-lab-shell.is-focus.is-sidebar-collapsed .vl-layout,
.virtual-lab-shell.is-inspector-collapsed .vl-workspace-grid,
.virtual-lab-shell.is-focus.is-inspector-collapsed .vl-workspace-grid { grid-template-columns: minmax(0, 1fr); }
.vl-sidebar-head > div:first-child { display: flex; align-items: center; gap: 9px; }
.vl-sidebar-head > div:first-child > div { min-width: 0; }
.vl-sidebar-head strong { display: block; color: #eff7f4; font-size: 15px; }
.vl-sidebar-head small { display: block; max-width: 150px; margin-top: 2px; overflow: hidden; color: #71847e; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.vl-sidebar-icon { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; border: 1px solid #355046; border-radius: 8px; color: var(--vl-primary); background: rgba(53, 199, 140, 0.08); }
.vl-count { flex: none; padding: 5px 7px; border: 1px solid #31474f; border-radius: 7px; color: #70837d; background: #111c24; font-size: 8px; }
.vl-count b { color: var(--vl-primary); font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.vl-stage-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vl-search { display: block; }
.vl-search::before { content: none; }
.vl-search > span { position: absolute; z-index: 1; left: 11px; top: 50%; color: #70847e; font-size: 15px; pointer-events: none; transform: translateY(-52%); }
.vl-category.is-active { border-color: rgba(53, 199, 140, 0.28); background: rgba(53, 199, 140, 0.035); }
.vl-category > button > span { display: grid; width: 24px; height: 24px; flex: 0 0 24px; place-items: center; border: 1px solid #344752; border-radius: 6px; color: #7f948d; background: #131f28; font-size: 8px; font-weight: 850; }
.vl-category.is-active > button > span { color: #07150f; border-color: var(--vl-primary); background: var(--vl-primary); }
.vl-experiment-item > span strong,
.vl-experiment-item > span small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vl-experiment-item > span small { margin-top: 2px; color: #657a74; font-size: 8px; font-weight: 600; }
.vl-experiment-item > em { padding: 3px 5px; border-radius: 999px; color: #71857e; background: #1c2a33; font-size: 8px; font-style: normal; }
.vl-experiment-item > em.is-featured { color: #ffb65e; background: rgba(244, 164, 59, 0.11); }
.vl-workspace-title > div { display: flex; min-width: 0; align-items: center; gap: 8px; }
.vl-workspace-actions button.is-primary { color: #07150f; border-color: var(--vl-primary); background: var(--vl-primary); box-shadow: 0 7px 18px rgba(53, 199, 140, 0.16); }
.vl-stage-panel { grid-template-rows: auto minmax(320px, 1fr) auto; }
.vl-stage-panel > header > div:first-child { display: flex; min-width: 0; align-items: center; gap: 7px; }
.vl-stage-panel > header > div:first-child strong { overflow: hidden; color: #dce9e5; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.vl-stage-panel > header > div:first-child small { color: #6e827b; font-size: 8px; white-space: nowrap; }
.vl-live-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #697b76; box-shadow: 0 0 0 3px rgba(105, 123, 118, 0.12); }
.vl-stage-canvas.is-running { --vl-live-color: var(--vl-primary); }
.vl-stage-panel:has(.vl-stage-canvas.is-running) .vl-live-dot { background: var(--vl-primary); box-shadow: 0 0 9px var(--vl-primary); animation: vl-badge-pulse 1.2s ease-in-out infinite; }
.vl-step-strip button::before { content: none; }
.vl-step-strip button > i { display: grid; width: 16px; height: 16px; place-items: center; border-radius: 50%; color: #a3b1ad; background: #283841; font-size: 8px; font-style: normal; }
.vl-step-strip button.is-active > i { color: #07140f; background: var(--vl-primary); }
.vl-panel > header > span { color: #6f837c; font-size: 8px; }
.vl-panel > header > button { min-height: 26px; padding: 0 7px; border: 1px solid #2e424d; border-radius: 6px; color: #82968f; background: #131f28; font-size: 8px; }
.vl-metric.is-warm strong { color: var(--vl-warning); }
.vl-metric.is-danger strong { color: var(--vl-data); text-shadow: 0 0 12px rgba(255, 117, 95, 0.2); }
.vl-metric.is-cool strong { color: #dff9ef; }
.vl-slider > span { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 8px; }
.vl-slider > small { display: flex; grid-column: 1 / -1; justify-content: space-between; color: #647871; font-size: 8px; }
.vl-slider > small i { font-style: normal; }
.vl-relations { display: block; padding: 8px 9px 9px; }
.vl-relations > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; color: #81938e; font-size: 8px; }
.vl-relations > header strong { color: #c9d8d3; font-size: 10px; }
.vl-relations > header span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vl-relations > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.vl-guide-dialog { position: relative; }
.vl-guide-dialog > button { position: absolute; z-index: 2; top: 12px; right: 12px; display: grid; width: 30px; height: 30px; padding: 0; place-items: center; border: 1px solid var(--vl-line); border-radius: 7px; color: #9baaa6; background: #17232d; font-size: 17px; }
.vl-guide-kicker { display: block; padding-right: 38px; color: var(--vl-primary); font-size: 9px; font-weight: 850; letter-spacing: 0.07em; }
.vl-guide-dialog section { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--vl-line); }
.vl-guide-dialog section h3 { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.vl-guide-dialog section h3 > i { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 7px; color: var(--vl-primary); background: var(--vl-primary-soft); font-size: 9px; font-style: normal; }
.vl-guide-dialog ol li { margin-bottom: 7px; }
.vl-guide-dialog ol li strong,
.vl-guide-dialog ol li small { display: block; }
.vl-guide-dialog ol li small { color: #70837d; font-size: 9px; }
.vl-curve-chart { overflow: hidden; border: 1px solid var(--vl-line); border-radius: 7px; background: #091117; }
.vl-curve-chart svg { display: block; width: 100%; height: auto; }
.vl-curve-popover [data-vl-curve-content] > p { margin: 8px 0 0; color: #869a94; font-size: 9px; line-height: 1.55; }
.vl-stage-canvas.is-running .vl-electrons circle { animation: vl-particle-flow 1.6s linear infinite; animation-delay: calc(var(--i, 0) * -0.16s); }
.vl-stage-canvas.is-running .vl-bubble,
.vl-stage-canvas.is-running .vl-bubbles circle { animation: vl-rise 1.8s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.13s); }
.vl-stage-canvas.is-running .vl-ray { animation: vl-ray-pulse 1.25s ease-in-out infinite alternate; }
.vl-stage-canvas.is-running .vl-math-point { filter: drop-shadow(0 0 7px rgba(255, 117, 95, 0.75)); }
[data-vl-probe]:focus-visible { outline: none; filter: drop-shadow(0 0 9px #35c78c); }
@keyframes vl-particle-flow { 0% { transform: translateX(-16px); opacity: 0.35; } 50% { opacity: 1; } 100% { transform: translateX(54px); opacity: 0.35; } }
@keyframes vl-rise { 0% { transform: translateY(12px) scale(0.75); opacity: 0.3; } 55% { opacity: 0.9; } 100% { transform: translateY(-18px) scale(1.05); opacity: 0.15; } }
@keyframes vl-ray-pulse { from { opacity: 0.38; } to { opacity: 0.92; } }
@media (max-width: 1180px) { .vl-top-stats > small { display: none; } .vl-top-stats { gap: 9px; } }
@media (max-width: 980px) { .vl-top-stats { display: none; } }
@media (max-width: 700px) { .vl-relations > div { grid-template-columns: 1fr; } .vl-stage-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .vl-stage-canvas.is-running .vl-electrons circle, .vl-stage-canvas.is-running .vl-bubble, .vl-stage-canvas.is-running .vl-bubbles circle, .vl-stage-canvas.is-running .vl-ray { animation: none !important; } }

/* Domain 3D presentation layer: shared across physics, chemistry, biology and earth science. */
.orange-star-domain-3d-host {
  background:
    radial-gradient(circle at 42% 34%, rgba(53, 125, 111, 0.13), transparent 38%),
    linear-gradient(145deg, #0c1820 0%, #050c12 58%, #02070b 100%);
  border-color: rgba(100, 142, 153, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(229, 250, 245, 0.055),
    inset 0 -36px 64px rgba(0, 0, 0, 0.2),
    0 18px 44px rgba(0, 0, 0, 0.24);
}
.orange-star-domain-3d-host::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(154, 222, 201, 0.045);
  border-radius: inherit;
  box-shadow: inset 0 0 52px rgba(21, 66, 66, 0.12);
}
.orange-star-domain-3d-canvas {
  filter: saturate(1.06) contrast(1.025);
}
.orange-star-domain-3d-toolbar {
  z-index: 5;
  padding: 5px;
  border: 1px solid rgba(106, 149, 158, 0.3);
  border-radius: 11px;
  background: rgba(5, 17, 23, 0.56);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26), inset 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px) saturate(1.22);
}
.orange-star-domain-3d-toolbar button {
  position: relative;
  overflow: hidden;
  min-height: 34px;
  border-color: rgba(111, 153, 163, 0.44);
  background: linear-gradient(180deg, rgba(19, 38, 46, 0.94), rgba(7, 22, 29, 0.9));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045), 0 5px 14px rgba(0, 0, 0, 0.17);
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.orange-star-domain-3d-toolbar button:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07), 0 7px 18px rgba(0, 0, 0, 0.22);
}
.orange-star-domain-3d-toolbar button.is-active,
.orange-star-domain-3d-toolbar button[aria-pressed="true"] {
  background: linear-gradient(180deg, #6ce2ad, #38bf86);
  box-shadow: 0 0 0 1px rgba(126, 241, 189, 0.22), 0 7px 21px rgba(36, 197, 132, 0.21);
}
.orange-star-domain-3d-detail {
  z-index: 4;
  padding: 11px 13px;
  border-color: rgba(87, 218, 160, 0.5);
  background: linear-gradient(135deg, rgba(7, 31, 31, 0.94), rgba(4, 16, 23, 0.91));
  box-shadow: 0 13px 32px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px) saturate(1.18);
}
.orange-star-domain-3d-detail strong {
  letter-spacing: 0.015em;
  text-shadow: 0 0 14px rgba(86, 226, 166, 0.16);
}
.orange-star-domain-3d-hint {
  z-index: 4;
  border-color: rgba(103, 150, 159, 0.35);
  background: linear-gradient(135deg, rgba(8, 25, 31, 0.84), rgba(5, 17, 23, 0.78));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

/* 专注控制台与实验临时批注
   -------------------------------------------------------------------------- */
.vl-layout,
.vl-workspace-grid { position: relative; }
.vl-sidebar-toggle { display: none; }
.virtual-lab-shell.is-focus .vl-sidebar-toggle {
  position: absolute;
  z-index: 8;
  top: 8px;
  right: 8px;
  display: grid;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid #3b535c;
  border-radius: 7px;
  color: #a8bbb5;
  background: rgba(12,22,28,.9);
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
}
.virtual-lab-shell.is-focus .vl-sidebar-toggle:hover { color: #e8fff5; border-color: #5d7d73; background: #192a2d; }
.virtual-lab-shell.is-focus .vl-sidebar-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 160ms ease; }
.virtual-lab-shell.is-focus .vl-sidebar-toggle span,
.vl-inspector-toggle span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.virtual-lab-shell.is-focus .vl-sidebar-head { padding-right: 48px; }
.virtual-lab-shell.is-focus.is-sidebar-collapsed .vl-sidebar {
  position: absolute;
  z-index: 24;
  top: 10px;
  left: 8px;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.virtual-lab-shell.is-focus.is-sidebar-collapsed .vl-sidebar > :not(.vl-sidebar-toggle) { display: none; }
.virtual-lab-shell.is-focus.is-sidebar-collapsed .vl-sidebar-toggle {
  position: static;
  transform: none;
}
.virtual-lab-shell.is-focus.is-sidebar-collapsed .vl-sidebar-toggle svg { transform: rotate(180deg); }
.vl-inspector {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.vl-inspector-content {
  min-width: 0;
  min-height: 0;
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
}
.vl-inspector-content > .vl-panel:first-child > header { padding-right: 46px; }
.vl-inspector-toggle {
  position: absolute;
  z-index: 8;
  top: 8px;
  right: 8px;
  display: grid;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid #3b535c;
  border-radius: 7px;
  color: #8fa29c;
  background: rgba(12,22,28,.9);
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
}
.vl-inspector-toggle:hover { color: #e8fff5; border-color: #5d7d73; background: #192a2d; }
.vl-inspector-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 160ms ease; transform: rotate(180deg); }
.virtual-lab-shell.is-inspector-collapsed .vl-inspector-content { display: none; }
.virtual-lab-shell.is-inspector-collapsed .vl-inspector {
  position: absolute;
  z-index: 24;
  top: 20px;
  right: 24px;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.virtual-lab-shell.is-inspector-collapsed .vl-inspector-toggle { position: static; }
.virtual-lab-shell.is-inspector-collapsed .vl-inspector-toggle svg { transform: none; }
.virtual-lab-shell.is-focus.is-sidebar-collapsed .vl-stage-panel > header { padding-left: 48px; }
.virtual-lab-shell.is-inspector-collapsed .vl-stage-panel > header { padding-right: 48px; }
.vl-relation-card { min-height: 70px; }
.vl-relation-card .vl-relation-formula { min-height: 38px; display: flex; align-items: center; }
.vl-relation-card .vl-math-display { overflow: visible; }

.vl-annotation-canvas,
.vl-annotation-laser {
  position: absolute;
  z-index: 52;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
  touch-action: none;
}
.vl-annotation-laser { z-index: 53; }
.vl-annotation-canvas.is-pen,
.vl-annotation-canvas.is-eraser,
.vl-annotation-canvas.is-laser { cursor: crosshair; }
.vl-annotation-floating {
  --vl-annotation-color: #ef4650;
  position: absolute;
  z-index: 60;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  color: #f4faf7;
}
.vl-annotation-fab {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  width: 58px;
  height: 58px;
  padding: 7px;
  place-items: center;
  align-content: center;
  gap: 2px;
  border: 3px solid rgba(220,255,242,.78);
  border-radius: 50%;
  color: #f7fffc;
  background: linear-gradient(145deg, #315b51, #1c3933);
  box-shadow: 0 12px 32px rgba(0,0,0,.42), 0 0 0 1px rgba(53,199,140,.22);
  cursor: grab;
  touch-action: none;
}
.vl-annotation-fab:active { cursor: grabbing; }
.vl-annotation-fab svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.vl-annotation-fab span { font-size: 8px; font-weight: 850; }
.vl-annotation-fab[aria-expanded="true"] { border-color: var(--vl-annotation-color); box-shadow: 0 0 0 5px color-mix(in srgb, var(--vl-annotation-color) 18%, transparent), 0 14px 38px rgba(0,0,0,.48); }
.vl-annotation-panel {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: 326px;
  padding: 12px;
  border: 1px solid #4c6960;
  border-radius: 18px;
  color: #f2f8f6;
  background: linear-gradient(155deg, rgba(45,69,63,.98), rgba(28,48,43,.99));
  box-shadow: 0 22px 54px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.05);
  backdrop-filter: blur(16px);
  animation: vl-guide-in 160ms cubic-bezier(.2,.8,.25,1) both;
}
.vl-annotation-panel[hidden] { display: none !important; }
.vl-annotation-panel > header {
  display: grid;
  grid-template-columns: 18px minmax(0,1fr) 28px;
  align-items: center;
  gap: 8px;
  padding: 0 1px 10px;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.vl-annotation-panel > header:active { cursor: grabbing; }
.vl-annotation-panel > header > span { color: #9db3ac; font-size: 18px; letter-spacing: -4px; }
.vl-annotation-panel > header > div { min-width: 0; }
.vl-annotation-panel > header strong,
.vl-annotation-panel > header small { display: block; }
.vl-annotation-panel > header strong { font-size: 13px; }
.vl-annotation-panel > header small { margin-top: 2px; color: #91a59f; font-size: 8px; }
.vl-annotation-panel > header button {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid #536d65;
  border-radius: 8px;
  color: #bdcbc7;
  background: rgba(8,17,14,.22);
  font-size: 17px;
}
.vl-annotation-tools { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.vl-annotation-tools button {
  display: grid;
  min-height: 62px;
  padding: 7px 5px;
  place-items: center;
  align-content: center;
  gap: 4px;
  border: 1px solid #60766f;
  border-radius: 11px;
  color: #f0f7f4;
  background: rgba(76,96,90,.45);
  font-size: 9px;
  font-weight: 800;
  transition: 140ms ease;
}
.vl-annotation-tools button:hover { border-color: #8ca59d; background: rgba(88,111,104,.58); transform: translateY(-1px); }
.vl-annotation-tools button.is-active { border-color: var(--vl-annotation-color); color: #fff; background: color-mix(in srgb, var(--vl-annotation-color) 78%, #243b35); box-shadow: 0 8px 18px color-mix(in srgb, var(--vl-annotation-color) 24%, transparent); }
.vl-annotation-tools svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.vl-annotation-settings {
  display: grid;
  grid-template-columns: 96px minmax(0,1fr);
  gap: 8px;
  margin-top: 9px;
}
.vl-annotation-settings label {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 8px 9px;
  border: 1px solid rgba(112,137,129,.32);
  border-radius: 10px;
  color: #b8c6c2;
  background: rgba(11,23,19,.23);
  font-size: 8px;
  font-weight: 750;
}
.vl-annotation-settings input { width: 100%; min-width: 0; accent-color: var(--vl-annotation-color); }
.vl-annotation-settings input[type="color"] { height: 28px; padding: 2px; border: 1px solid #6c817a; border-radius: 7px; background: transparent; }
.vl-annotation-settings output { color: #fff; font-family: Consolas,monospace; }

@media (max-width: 1180px) {
  .vl-inspector { display: flex; }
  .vl-inspector-content { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); overflow: visible; }
  .virtual-lab-shell.is-focus .vl-layout { grid-template-columns: 218px minmax(0,1fr); }
  .virtual-lab-shell.is-focus.is-sidebar-collapsed .vl-layout { grid-template-columns: minmax(0,1fr); }
  .virtual-lab-shell.is-focus .vl-workspace-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(278px,315px); overflow: hidden; }
  .virtual-lab-shell.is-focus.is-inspector-collapsed .vl-workspace-grid { grid-template-columns: minmax(0,1fr); }
  .virtual-lab-shell.is-focus .vl-inspector { margin-top: 0; }
  .virtual-lab-shell.is-focus .vl-inspector-content { display: block; overflow: auto; }
}
@media (max-width: 700px) {
  .vl-annotation-floating { right: 12px; bottom: 12px; }
  .vl-annotation-panel { width: min(326px, calc(100vw - 24px)); }
  .virtual-lab-shell.is-focus .vl-layout { display: grid; grid-template-columns: minmax(0,1fr); position: relative; }
  .virtual-lab-shell.is-focus .vl-sidebar {
    position: absolute;
    z-index: 24;
    top: 8px;
    bottom: 8px;
    left: 8px;
    display: flex;
    width: min(286px, calc(100vw - 70px));
    max-height: none;
    border: 1px solid #3c515c;
    border-radius: 10px;
    box-shadow: 0 18px 44px rgba(0,0,0,.46);
  }
  .virtual-lab-shell.is-focus.is-sidebar-collapsed .vl-sidebar {
    top: 8px;
    bottom: auto;
    width: 28px;
    border: 0;
    box-shadow: none;
  }
  .virtual-lab-shell.is-focus .vl-workspace-grid { display: block; overflow: auto; }
  .virtual-lab-shell.is-focus .vl-inspector { margin-top: 8px; }
  .virtual-lab-shell.is-focus.is-inspector-collapsed .vl-inspector { margin-top: 0; }
}

.vl-metric:is(button) { width: 100%; color: inherit; text-align: left; cursor: pointer; transition: 140ms ease; }
.vl-metric:is(button):hover { border-color: #587381; background: #172630; transform: translateY(-1px); }
.vl-metric:is(button).is-selected { border-color: var(--vl-primary); background: linear-gradient(135deg, rgba(53,199,140,.22), rgba(53,199,140,.06)); box-shadow: inset 3px 0 var(--vl-primary), 0 0 14px rgba(53,199,140,.08); }
