:root {
  font-family: Inter, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: #263c49;
  background: #8a9aa8;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html,
body,
#lab {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
button,
select,
summary {
  font: inherit;
  cursor: pointer;
}
button,
select {
  color: inherit;
  border: 1px solid #55728438;
  background: #f2f6f5e8;
  border-radius: 11px;
  padding: 10px 13px;
  min-height: 44px;
}
button:hover {
  background: #fff;
}
button:active {
  transform: scale(0.98);
}
button:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #d39c41;
  outline-offset: 3px;
}
button[aria-pressed='true'],
button.selected {
  background: #2f5265;
  color: #fff;
  border-color: #2f5265;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button[hidden],
[hidden] {
  display: none !important;
}
.world {
  position: absolute;
  inset: 0;
}
.world canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
.top {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 23px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  pointer-events: none;
}
.brand {
  display: grid;
  gap: 7px;
  text-shadow: 0 1px 18px #e5eff3;
}
.brand strong {
  font-size: 25px;
  font-weight: 550;
  letter-spacing: 3px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  opacity: 0.75;
}
.brand small {
  font-size: 12px;
}
.scene-options {
  display: flex;
  align-items: start;
  gap: 8px;
  pointer-events: auto;
}
.icon {
  width: 44px;
}
.nodes-menu {
  position: relative;
  background: #eff4f2e8;
  border-radius: 11px;
  min-height: 44px;
}
.nodes-menu summary {
  padding: 12px 15px;
  list-style: none;
}
.nodes-menu > div {
  position: absolute;
  right: 0;
  top: 50px;
  width: 165px;
  padding: 6px;
  background: #f0f4f3f5;
  border: 1px solid #99adb6;
  border-radius: 12px;
  display: grid;
  gap: 4px;
  z-index: 10;
}
.nodes-menu [aria-current='true'] {
  background: #d2e5e9;
}
.position-label {
  position: absolute;
  left: 28px;
  top: 121px;
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background: #416a7a;
}
.session-state {
  border-left: 1px solid #607a87;
  padding-left: 9px;
  font-variant-numeric: tabular-nums;
}
.node-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.node-hotspot,
.object-hotspot {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: auto;
  white-space: nowrap;
  font-size: 12px;
  background: #f4f8f1d9;
  box-shadow: 0 5px 24px #243b4a1a;
  border-color: #f4faff99;
  border-radius: 22px;
}
.node-hotspot span {
  margin-right: 7px;
  color: #466e82;
}
.object-hotspot {
  color: #326377;
  background: #edfbfae3;
  border: 1px solid #89b9c5;
}
.object-hotspot span {
  color: #2e9baa;
}
.tool-card,
.reality,
.help {
  position: absolute;
  z-index: 6;
  border: 1px solid #e7f3f488;
  background: #ecf2f0f5;
  box-shadow: 0 12px 45px #24384530;
  border-radius: 20px;
  backdrop-filter: blur(14px);
  padding: 18px;
}
.tool-card {
  right: 25px;
  top: 97px;
  width: 320px;
  max-height: calc(100% - 195px);
  overflow: auto;
}
.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.card-heading h2 {
  margin: 3px 0;
  font-size: 18px;
  font-weight: 550;
}
.card-heading small {
  font-size: 10px;
  letter-spacing: 1px;
  color: #597583;
}
.card-heading button {
  padding: 0;
  width: 40px;
  min-height: 40px;
  border: none;
  background: transparent;
  font-size: 23px;
}
.muted,
.edit-note {
  color: #64808b;
  font-size: 12px;
  line-height: 1.6;
}
.tool-card label {
  display: block;
  font-size: 12px;
  margin: 15px 0 8px;
}
.segments {
  display: flex;
  gap: 5px;
}
.segments button {
  flex: 1;
  padding: 8px 5px;
  font-size: 12px;
}
.wide {
  width: 100%;
  margin-top: 8px;
}
.outline {
  background: transparent;
}
.tool-card select {
  width: 100%;
}
.primary {
  background: #355c6e;
  color: #fff;
  border: 0;
}
.primary:hover {
  background: #254b5d;
}
.reality {
  right: 25px;
  top: 100px;
  width: 440px;
  padding: 15px;
}
.physical-canvas {
  height: 240px;
  overflow: hidden;
  border-radius: 12px;
  margin-top: 12px;
  background: #d9dedf;
}
.physical-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.readings {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
}
.force-reading {
  color: #85602d;
  font-size: 12px;
  margin: 10px 0;
}
.actions {
  display: flex;
  gap: 6px;
}
.actions button {
  font-size: 12px;
  flex: 1;
  padding: 8px;
}
.end-reason {
  font-size: 11px;
  color: #5f7c87;
  margin-bottom: 0;
}
.help {
  right: 25px;
  top: 97px;
  width: min(410px, calc(100% - 32px));
  font-size: 13px;
  line-height: 1.8;
  z-index: 12;
}
.dock {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  background: #eaf0ede8;
  border: 1px solid #e9f4f3aa;
  border-radius: 17px;
  padding: 6px;
  box-shadow: 0 8px 24px #203b4e29;
  white-space: nowrap;
}
.dock button {
  border: 0;
  background: transparent;
  font-size: 13px;
}
.dock button[aria-pressed='true'] {
  background: #325a6c;
}
.dock span {
  font-size: 17px;
  vertical-align: -1px;
  margin-right: 3px;
}
.dock i {
  width: 1px;
  height: 23px;
  background: #aac0c7;
  margin: 0 3px;
}
.hint {
  position: absolute;
  left: 50%;
  bottom: 91px;
  transform: translateX(-50%);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  color: #2b4755;
  background: #e4eeedcf;
  padding: 6px 14px;
  border-radius: 12px;
  max-width: 80%;
  pointer-events: none;
}
.node-transition {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: #dce6e8;
  opacity: 0;
  z-index: 20;
}
.node-transition.flash {
  animation: nodeChange 0.3s cubic-bezier(0.2, 0, 0, 1);
}
@keyframes nodeChange {
  0% {
    opacity: 0.65;
    transform: scale(1.012);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}
.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 (prefers-reduced-motion: reduce) {
  .node-transition.flash {
    animation: none;
  }
  button:active {
    transform: none;
  }
}
@media (max-width: 650px) {
  .top {
    left: 16px;
    right: 16px;
    top: 16px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .brand {
    gap: 4px;
  }
  .brand strong {
    font-size: 21px;
  }
  .brand small {
    font-size: 10px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .scene-options {
    gap: 5px;
  }
  .scene-options select {
    font-size: 11px;
    max-width: 165px;
  }
  .position-label {
    left: 16px;
    top: 150px;
    font-size: 10px;
  }
  .dock {
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100% - 22px);
    gap: 0;
    padding: 4px;
    justify-content: space-between;
  }
  .dock button {
    font-size: 10px;
    padding: 8px 6px;
  }
  .dock span {
    display: none;
  }
  .dock i {
    margin: 0 1px;
  }
  .hint {
    bottom: 77px;
    font-size: 10px;
    width: calc(100% - 30px);
    max-width: none;
  }
  .tool-card,
  .reality {
    right: 12px;
    top: 188px;
    width: calc(100% - 24px);
    max-height: calc(100% - 283px);
    overflow: auto;
    padding: 12px;
  }
  .physical-canvas {
    height: 190px;
  }
  .tool-card label {
    margin-top: 9px;
  }
  .tool-card .muted {
    display: none;
  }
  .tool-card .edit-note {
    margin: 7px 0;
  }
  .help {
    right: 12px;
    top: 110px;
    max-height: calc(100% - 210px);
    overflow: auto;
  }
  .node-hotspot,
  .object-hotspot {
    font-size: 10px;
    padding: 9px 11px;
  }
  .reality .end-reason {
    font-size: 10px;
  }
}
@media (max-height: 620px) and (min-width: 651px) {
  .physical-canvas {
    height: 170px;
  }
  .reality {
    top: 80px;
  }
  .tool-card {
    top: 80px;
    max-height: calc(100% - 165px);
  }
}
