.adaptiveMenu {
  position: fixed;
  top: 56px;
  left: 12px;
  right: auto;
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: 34;
  pointer-events: auto;
  max-width: min(260px, calc(100vw - 24px));
  opacity: 1;
  transform: translateX(0);
  transition: opacity 220ms ease, transform 220ms ease;
}

.adaptiveMenu[aria-hidden="false"] {
  display: flex;
}

.adaptiveMenu[aria-hidden="false"].is-auto-hidden {
  opacity: 0;
  transform: translateX(-14px);
  pointer-events: none;
}

.vm-two-component-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 35;
}

.vm-two-component-overlay__region {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
}

.vm-two-component-overlay__region--alpha {
  left: 0;
}

.vm-two-component-overlay__region--beta {
  right: 0;
}

.vm-two-component-overlay__label {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--vm-font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  color: var(--vm-color-text-secondary);
  text-shadow: 0 1px 2px color-mix(in srgb, var(--vm-color-surface-base) 92%, transparent);
  user-select: none;
}

.vm-popover {
  background: var(--vm-color-surface-raised);
  color: var(--vm-color-on-raised);
  border: 1px solid var(--vm-color-border);
  border-radius: var(--vm-radius-lg);
  box-shadow: var(--vm-shadow-lg);
  padding: 12px;
  min-width: 240px;
  box-sizing: border-box;
}

.vm-popover__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.vm-popover__header h2 {
  margin: 0;
  font-size: var(--vm-text-base);
  font-weight: var(--vm-font-weight-strong);
  line-height: 1.2;
  color: var(--vm-color-text-primary);
}

.vm-popover__subtitle {
  margin-top: 2px;
  font-size: var(--vm-text-xs);
  font-weight: var(--vm-font-weight-emphasis);
  color: var(--vm-color-text-muted);
}

.vm-popover__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.vm-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--vm-color-border);
  border-radius: var(--vm-radius-md);
  background: var(--vm-color-surface-panel);
  color: var(--vm-color-text-primary);
  font-family: var(--vm-font-sans);
  font-size: var(--vm-text-base);
  font-weight: var(--vm-font-weight-emphasis);
  line-height: 1;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.vm-btn__icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vm-btn:hover {
  border-color: var(--vm-color-border-strong);
  background: var(--vm-color-surface-secondary);
}

.vm-btn:focus-visible {
  outline: none;
  box-shadow: var(--vm-shadow-focus-ring);
}

.vm-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.vm-btn--ghost {
  min-height: 28px;
  padding: 0 12px;
  background: transparent;
}

.vm-btn--sm {
  min-height: 28px;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 500;
}

.vm-btn--danger {
  color: var(--vm-color-text-secondary);
}

.vm-btn--danger:hover:not(:disabled) {
  color: #c92a2a;
  background: color-mix(in srgb, #c92a2a 8%, transparent);
}

.vm-btn--danger:focus-visible {
  outline: 2px solid color-mix(in srgb, #c92a2a 50%, transparent);
  outline-offset: 2px;
}

.vm-btn--icon {
  width: 28px;
  height: 28px;
  padding: 0;
}

.vm-btn--icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vm-btn--xs {
  width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vm-btn--xs svg {
  width: 12px;
  height: 12px;
}

#toolbar .vm-clear-files,
#toolbar .vm-help-btn {
  width: 100%;
  justify-content: flex-start;
  border-color: transparent;
  color: var(--vm-color-text-secondary);
  font-family: var(--vm-font-sans);
  font-size: 12px;
  font-weight: 500;
}

#toolbar .vm-clear-files {
  margin-top: 4px;
}

#toolbar .vm-clear-files:disabled {
  opacity: 0.4;
  pointer-events: none;
}

#toolbar .vm-clear-files > span,
#toolbar .vm-help-btn > span {
  color: inherit;
  font: inherit;
}

#toolbar .vm-help-btn:hover:not(:disabled) {
  color: var(--vm-color-text-primary);
  background: color-mix(in srgb, var(--vm-color-text-primary) 6%, transparent);
}

.vm-key-pill,
kbd,
.adaptiveShortcutKey {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  min-height: 24px;
  padding: 0 6px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--vm-color-border-strong) 80%, transparent);
  background: var(--vm-color-surface-panel);
  color: var(--vm-color-text-primary);
  font-family: var(--vm-font-mono);
  font-size: var(--vm-text-xs);
  font-weight: var(--vm-font-weight-strong);
  font-variant-ligatures: none;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-sizing: border-box;
}

.adaptiveShortcutKey {
  background: var(--vm-brand-negative);
  color: var(--vm-color-text-on-gold);
  border-color: color-mix(in srgb, var(--vm-brand-negative) 68%, rgba(15, 20, 30, 0.18));
}

#trajectoryPanel .motionPanelIconBtn:disabled,
#trajectoryPanel .motionPanelClose:disabled,
#trajectoryPanel input:disabled,
#trajectoryPanel input:disabled + label,
#vibrationPanel .motionPanelIconBtn:disabled,
#vibrationPanel .motionPanelClose:disabled,
#vibrationPanel input:disabled,
#vibrationPanel input:disabled + label {
  opacity: 0.5;
  cursor: default;
}

.vm-canvas-video-export__button.is-active {
  background: color-mix(in srgb, var(--vm-brand-negative) 16%, var(--vm-color-surface-control));
  border-color: color-mix(in srgb, var(--vm-brand-negative) 48%, var(--vm-color-border-control));
}

.vm-canvas-video-export__button.is-recording {
  animation: trajectoryVideoRecordPulse 2s ease-in-out infinite;
}

@keyframes trajectoryVideoRecordPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.65;
  }
}

.vm-canvas-video-export__overlay {
  position: absolute;
  inset: 0;
  display: none;
  z-index: 23;
  pointer-events: auto;
  touch-action: none;
}

.vm-canvas-video-export__overlay[aria-hidden="false"] {
  display: block;
}

.vm-canvas-video-export__overlay[data-state="recording"] {
  cursor: default;
}

.vm-canvas-video-export__overlay[data-state="recording"] .vm-canvas-video-export__frame,
.vm-canvas-video-export__overlay[data-state="recording"] .vm-canvas-video-export__dimensions,
.vm-canvas-video-export__overlay[data-state="recording"] .vm-canvas-video-export__actions {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.vm-canvas-video-export__frame {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  box-sizing: border-box;
  border: 1px dashed color-mix(in srgb, var(--vm-brand-negative) 50%, transparent);
  cursor: grab;
}

.vm-canvas-video-export__frame.is-dragging {
  cursor: grabbing;
}

.vm-canvas-video-export__handle {
  position: absolute;
  width: 24px;
  height: 24px;
  color: var(--vm-brand-negative);
}

.vm-canvas-video-export__handle::before,
.vm-canvas-video-export__handle::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 999px;
}

.vm-canvas-video-export__handle[data-corner="nw"] {
  left: -2px;
  top: -2px;
  cursor: nwse-resize;
}

.vm-canvas-video-export__handle[data-corner="nw"]::before {
  left: 0;
  top: 0;
  width: 24px;
  height: 3px;
}

.vm-canvas-video-export__handle[data-corner="nw"]::after {
  left: 0;
  top: 0;
  width: 3px;
  height: 24px;
}

.vm-canvas-video-export__handle[data-corner="ne"] {
  right: -2px;
  top: -2px;
  cursor: nesw-resize;
}

.vm-canvas-video-export__handle[data-corner="ne"]::before {
  right: 0;
  top: 0;
  width: 24px;
  height: 3px;
}

.vm-canvas-video-export__handle[data-corner="ne"]::after {
  right: 0;
  top: 0;
  width: 3px;
  height: 24px;
}

.vm-canvas-video-export__handle[data-corner="se"] {
  right: -2px;
  bottom: -2px;
  cursor: nwse-resize;
}

.vm-canvas-video-export__handle[data-corner="se"]::before {
  right: 0;
  bottom: 0;
  width: 24px;
  height: 3px;
}

.vm-canvas-video-export__handle[data-corner="se"]::after {
  right: 0;
  bottom: 0;
  width: 3px;
  height: 24px;
}

.vm-canvas-video-export__handle[data-corner="sw"] {
  left: -2px;
  bottom: -2px;
  cursor: nesw-resize;
}

.vm-canvas-video-export__handle[data-corner="sw"]::before {
  left: 0;
  bottom: 0;
  width: 24px;
  height: 3px;
}

.vm-canvas-video-export__handle[data-corner="sw"]::after {
  left: 0;
  bottom: 0;
  width: 3px;
  height: 24px;
}

.vm-canvas-video-export__dimensions {
  position: absolute;
  left: 0;
  top: 0;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(15, 20, 30, 0.85);
  color: #ffffff;
  font-family: var(--vm-font-sans);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
}

.vm-canvas-video-export__actions {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}

.vm-canvas-video-export__action {
  min-height: 30px;
  padding: 0 12px;
}

.vm-canvas-video-export__action--primary {
  border-color: color-mix(in srgb, #1f8f4e 72%, rgba(15, 20, 30, 0.25));
  background: #1f8f4e;
  color: #ffffff;
}

.vm-canvas-video-export__action--primary:hover:not(:disabled) {
  border-color: color-mix(in srgb, #1f8f4e 80%, rgba(15, 20, 30, 0.28));
  background: color-mix(in srgb, #1f8f4e 88%, white);
}

#helpFab {
  position: fixed;
  left: calc(var(--workspace-left-offset) + 16px);
  bottom: calc(var(--status-ribbon-height) + 30px);
  z-index: 33;
  width: 28px;
  height: 28px;
  padding: 0;
}

#helpFab.vm-btn {
  border-color: var(--vm-color-border-control);
  background: var(--vm-color-surface-control);
  color: var(--vm-color-on-control);
  box-shadow: var(--vm-shadow-control);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
}

#helpFab.vm-btn:hover {
  background: color-mix(in srgb, var(--vm-brand-accent) 12%, var(--vm-color-surface-control));
}

#helpOverlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  z-index: 60;
  padding: 16px;
  box-sizing: border-box;
}

#helpOverlay[aria-hidden="false"] {
  display: flex;
}

.vm-helpOverlayModal {
  width: min(640px, calc(100vw - 32px));
  max-height: 80vh;
  overflow: auto;
}

.vm-helpOverlayHeader {
  align-items: flex-start;
}

.vm-helpOverlayVersion {
  margin-left: 6px;
}

.vm-helpOverlayContent {
  margin-top: 14px;
}

.vm-helpSection+.vm-helpSection {
  margin-top: 14px;
}

.vm-helpSection .vm-section-label {
  margin-top: 0;
}

.vm-helpGrid {
  display: grid;
  gap: 8px;
}

.vm-helpRow {
  display: grid;
  grid-template-columns: minmax(0, 168px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.vm-helpKeys {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.vm-helpDescription {
  color: var(--vm-color-text-secondary);
  font-size: var(--vm-text-sm);
  line-height: 1.4;
}

.vm-helpPreferenceLabel {
  color: var(--vm-color-text-primary);
  font-size: var(--vm-text-sm);
  font-weight: var(--vm-font-weight-emphasis);
  line-height: 1.4;
}

@media (max-width: 720px) {
  .vm-helpRow {
    grid-template-columns: 1fr;
  }

  .vm-helpKeys {
    margin-bottom: 2px;
  }
}

#sidePanel.vm-view-panel {
  width: min(472px, calc(100vw - 24px));
  background: var(--vm-color-surface-raised);
  border: 1px solid var(--vm-color-border);
  border-radius: var(--vm-radius-lg);
  box-shadow: var(--vm-shadow-lg);
  padding: 12px;
}

#sidePanel.vm-view-panel #viewControls {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  margin-top: 12px;
}

.vm-view-controls {
  display: flex;
  flex-direction: column;
}

.vm-view-section+.vm-view-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--vm-color-border);
}

.vm-view-section .vm-section-label {
  margin-top: 0;
}

.vm-vec-row {
  display: grid;
  grid-template-columns: 64px repeat(3, minmax(0, 1fr)) 28px;
  gap: 8px;
  align-items: center;
}

.vm-vec-row+.vm-vec-row {
  margin-top: 8px;
}

.vm-field-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 32px;
  padding: 4px 0;
}

.vm-field-row+.vm-field-row {
  margin-top: 0;
}

.vm-field-row--toggle {
  grid-template-columns: 1fr;
}

.vm-field-row[data-disabled='true'] {
  opacity: 0.5;
  pointer-events: none;
}

.vm-vec-row>label,
.vm-field-row>label,
.vm-field-row>.vm-field-label,
.vm-stat-label {
  margin: 0;
  font-family: var(--vm-font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--vm-color-text-secondary);
  text-align: left;
  line-height: 1.3;
}

.vm-field-row>.vm-field-label {
  width: 115px;
  max-width: 115px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vm-field-row>.vm-field-control {
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.vm-stat-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
}

.vm-stat-value {
  font-family: var(--vm-font-mono);
  font-size: var(--vm-text-sm);
  font-weight: var(--vm-font-weight-emphasis);
  color: var(--vm-color-text-secondary);
}

#sidePanel .vm-num {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  width: 100%;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--vm-color-border-input);
  border-radius: var(--vm-radius-md);
  background: var(--vm-color-surface-panel);
  color: var(--vm-color-text-primary);
  box-sizing: border-box;
  font-family: var(--vm-font-mono);
  font-size: var(--vm-text-base);
  font-weight: var(--vm-font-weight-emphasis);
  font-variant-numeric: tabular-nums;
  cursor: ew-resize;
  user-select: none;
}

#sidePanel .vm-num.is-disabled {
  opacity: 0.5;
  cursor: default;
}

#sidePanel .vm-num.is-focused,
#sidePanel .vm-num:focus-within {
  outline: none;
  box-shadow: var(--vm-shadow-focus-ring);
  border-color: var(--vm-color-accent);
}

#sidePanel .vm-num__prefix {
  flex: 0 0 auto;
  color: var(--vm-color-text-label);
  font-family: var(--vm-font-sans);
  font-size: var(--vm-text-xs);
  font-weight: var(--vm-font-weight-strong);
  line-height: 1;
}

#sidePanel .vm-num__value {
  flex: 1 1 auto;
  min-width: 6ch;
  text-align: right;
  line-height: 1;
  white-space: nowrap;
}

#sidePanel .vm-num input.vm-num__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
}

#sidePanel .vm-num input.vm-num__input::-webkit-inner-spin-button,
#sidePanel .vm-num input.vm-num__input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.vm-slider {
  --vm-slider-fill-percent: 0%;
  --vm-slider-track-width: 188px;
  --vm-slider-value-width: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--vm-slider-value-width);
  gap: 10px;
  align-items: center;
  width: 100%;
}

.vm-slider__range {
  appearance: none;
  -webkit-appearance: none;
  width: min(100%, var(--vm-slider-track-width));
  height: 4px;
  margin: 0;
  border-radius: 999px;
  border: none;
  box-sizing: border-box;
  background: linear-gradient(90deg,
      var(--vm-color-accent) 0 var(--vm-slider-fill-percent),
      var(--vm-color-border-strong) var(--vm-slider-fill-percent) 100%);
  outline: none;
}

.vm-slider__range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--vm-color-surface-panel);
  background: var(--vm-brand-accent);
  box-shadow: 0 1px 3px rgba(15, 20, 30, 0.18);
  cursor: pointer;
}

.vm-slider__range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--vm-color-surface-panel);
  background: var(--vm-brand-accent);
  box-shadow: 0 1px 3px rgba(15, 20, 30, 0.18);
  cursor: pointer;
}

.vm-slider__range:focus-visible {
  box-shadow: var(--vm-shadow-focus-ring);
}

.vm-slider__value {
  width: var(--vm-slider-value-width);
  min-width: 0;
  padding: 2px 4px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--vm-color-text-primary);
  font-family: var(--vm-font-mono);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
  box-sizing: border-box;
}

.vm-slider__value:hover:not(:disabled) {
  border-color: var(--vm-color-border);
  background: var(--vm-color-surface-base);
}

.vm-slider__value:focus {
  border-color: var(--vm-brand-accent);
  background: var(--vm-color-surface-panel);
  outline: none;
}

.vm-slider__value:disabled {
  opacity: 0.5;
  cursor: default;
}

.vm-toggle {
  --vm-toggle-track: var(--vm-color-border-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 36px;
  height: 20px;
  flex: 0 0 auto;
}

.vm-toggle__input {
  appearance: none;
  -webkit-appearance: none;
  width: 36px;
  height: 20px;
  margin: 0;
  border: none;
  border-radius: 999px;
  background: var(--vm-toggle-track);
  cursor: pointer;
  transition: background-color 150ms ease, box-shadow 150ms ease;
  outline: none;
}

.vm-toggle__input:focus-visible {
  box-shadow: var(--vm-shadow-focus-ring);
}

.vm-toggle__input:checked {
  background: var(--vm-brand-accent);
}

.vm-toggle__input:disabled {
  opacity: 0.5;
  cursor: default;
}

.vm-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  transition: left 150ms ease;
}

.vm-toggle__input:checked+.vm-toggle__thumb {
  left: 18px;
}

.vm-copy.is-copied {
  color: var(--vm-color-accent);
  border-color: color-mix(in srgb, var(--vm-color-accent) 36%, var(--vm-color-border));
}

:root {
  --vm-button-group-track: var(--vm-color-surface-base);
  --vm-button-group-active: var(--vm-color-surface-panel);
}

.vm-sidebar-accordion__panel {
  --vm-button-group-track: color-mix(in srgb, var(--vm-color-text-primary) 6%, var(--vm-color-surface-panel));
  --vm-button-group-active: var(--vm-color-surface-panel);
}

.vm-button-group {
  display: inline-flex;
  align-items: stretch;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  background: var(--vm-button-group-track);
  border: 1px solid var(--vm-color-border);
  border-radius: 6px;
  padding: 2px;
  gap: 4px;
  box-sizing: border-box;
}

.vm-button-group__item {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: auto;
  padding: 4px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--vm-color-text-secondary);
  font-family: var(--vm-font-sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.vm-button-group__item:hover:not(:disabled) {
  color: var(--vm-color-text-primary);
}

.vm-button-group__item:focus-visible {
  outline: none;
  box-shadow: var(--vm-shadow-focus-ring);
}

.vm-button-group__item[aria-checked='true'],
.vm-button-group__item.active {
  background: var(--vm-button-group-active);
  color: var(--vm-color-text-primary);
  box-shadow: var(--vm-shadow-sm), 0 0 0 1px var(--vm-color-border);
  font-weight: 600;
}

.vm-button-group__item[aria-pressed='true'] {
  background: var(--vm-button-group-active);
  color: var(--vm-color-text-primary);
  box-shadow: var(--vm-shadow-sm), 0 0 0 1px var(--vm-color-border);
  font-weight: 600;
}

.vm-button-group__item:disabled {
  opacity: 0.5;
  cursor: default;
}

.vm-color-swatch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--vm-color-border);
  border-radius: 6px;
  background: var(--vm-color-surface-panel);
  box-shadow: var(--vm-shadow-sm);
  cursor: pointer;
  flex: 0 0 auto;
}

.vm-color-swatch:focus-within {
  box-shadow: var(--vm-shadow-focus-ring);
}

.vm-color-swatch__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.vm-color-swatch__preview {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  background: currentColor;
}

.floatingAuxInspector {
  position: fixed;
  z-index: 35;
  display: none;
  width: min(340px, calc(100vw - 24px));
  padding: 12px;
  border: 1px solid var(--vm-color-border-subtle);
  border-radius: 16px;
  background: var(--vm-color-surface-raised);
  box-shadow: var(--vm-shadow-lg);
  box-sizing: border-box;
}

.floatingAuxInspector.open {
  display: block;
}

.floatingAuxInspector button {
  border: none;
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  font-weight: var(--vm-font-weight-strong);
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

.floatingAuxInspector button.secondary {
  background: var(--vm-color-surface-secondary);
  color: var(--vm-color-text-primary);
}

.floatingAuxInspector button.secondary:hover,
.floatingAuxInspector button.secondary.active {
  background: var(--vm-color-surface-secondary-active);
  color: var(--vm-color-text-on-accent);
}

.floatingAuxInspectorFields .inspectorGroup {
  border: none;
  padding: 0;
  background: transparent;
  min-width: 0;
}

.floatingAuxInspectorFields .inspectorTitle {
  color: var(--tb-text-color-emphasis);
  font-size: var(--vm-text-sm);
  font-weight: var(--vm-font-weight-heading);
  margin-bottom: 8px;
}

.floatingAuxInspectorFields .inspectorRow {
  flex-wrap: nowrap;
  gap: 4px;
}

.floatingAuxInspectorFields .inspectorSelectRow {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.floatingAuxInspectorFields .inspectorSelectRow:last-child,
.floatingAuxInspectorFields .inspectorSelectRow:last-of-type {
  margin-bottom: 0;
}

.floatingAuxInspectorFields .inspectorSelectRow label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  min-width: 0;
  white-space: nowrap;
  color: var(--tb-text-color-subtle);
  font-size: var(--tb-text-size-label);
  font-weight: var(--tb-text-weight-semibold);
}

.floatingAuxInspectorFields .inspectorSelectRow select,
.floatingAuxInspectorFields .inspectorSelectRow input[type="number"] {
  width: 100%;
  min-width: 0;
  height: 30px;
  border: none;
  box-shadow: none;
  border-radius: var(--tb-radius-tight);
  background: var(--tb-surface-emphasis);
  color: var(--tb-text-color-icon);
  padding: 0 10px;
}

.floatingAuxInspectorFields .inspectorSelectRow select:focus,
.floatingAuxInspectorFields .inspectorSelectRow input[type="number"]:focus {
  outline: none;
  box-shadow: none;
}

#moldenInspector .moldenInspectorSummary,
#toolbar #moldenInspector .moldenInspectorSummary {
  color: var(--vm-color-text-secondary);
  font-size: var(--tb-text-size-meta);
  font-weight: var(--tb-text-weight-semibold);
  line-height: 1.35;
  padding-left: 0;
  margin: -1px 0 8px 0;
  min-height: 1em;
}

#moldenInspector .inspectorTitle,
#toolbar #moldenInspector .inspectorTitle {
  color: var(--text);
  font-size: var(--tb-text-size-label);
  font-weight: var(--tb-text-weight-bold);
}

#moldenInspector .inspectorSelectRow label,
#toolbar #moldenInspector .inspectorSelectRow label {
  color: var(--vm-color-text-secondary);
}

#moldenInspector .inspectorSelectRow select,
#moldenInspector .inspectorSelectRow input[type="number"],
#toolbar #moldenInspector .inspectorSelectRow select,
#toolbar #moldenInspector .inspectorSelectRow input[type="number"] {
  color: var(--tb-text-color-primary);
}

#moldenInspector #moldenGridRow,
#moldenInspector #moldenGridPaddingRow,
#toolbar #moldenInspector #moldenGridRow,
#toolbar #moldenInspector #moldenGridPaddingRow {
  grid-template-columns: 94px max-content;
}

#moldenInspector #moldenGridStep,
#moldenInspector #moldenGridPadding,
#toolbar #moldenInspector #moldenGridStep,
#toolbar #moldenInspector #moldenGridPadding {
  width: 132px;
  max-width: 100%;
  justify-self: start;
}

#viewInspector {
  width: min(208px, calc(100vw - 24px));
}

.floatingAuxInspectorView .viewInspectorGroup,
#toolbar .tb-toolbarInspectorView .viewInspectorGroup {
  border: none;
  border-top: 1px solid var(--tb-section-divider);
  border-radius: 0;
  padding: 8px 0 4px 0;
  background: transparent;
  display: grid;
  gap: 6px;
}

.floatingAuxInspectorView .viewInspectorGroup:first-child {
  border-top: none;
  padding-top: 0;
}

.floatingAuxInspectorView .viewInspectorTitle,
#toolbar .tb-toolbarInspectorView .viewInspectorTitle {
  color: var(--tb-text-color-emphasis);
  font-size: var(--tb-text-size-label);
  font-weight: var(--tb-text-weight-bold);
  margin: 0 0 2px;
}

.floatingAuxInspectorView button,
#toolbar .tb-toolbarInspectorView button {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.floatingAuxInspectorView .tb-quickActionBtn,
#toolbar .tb-toolbarInspectorView .tb-quickActionBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.floatingAuxInspectorView .tb-quickActionIcon,
#toolbar .tb-toolbarInspectorView .tb-quickActionIcon {
  font-size: var(--vm-text-lg);
  line-height: 1;
  opacity: 0.9;
  flex: 0 0 auto;
}

.floatingAuxInspectorView .tb-quickActionText,
#toolbar .tb-toolbarInspectorView .tb-quickActionText {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
}

#spinorInfoPanel {
  width: min(280px, calc(100vw - 24px));
}

.floatingAuxInspectorSpinor .spinorInfoPanelHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.floatingAuxInspectorSpinor .spinorInfoPanelTitle {
  margin: 0;
  color: var(--vm-color-text-primary);
  font-size: var(--vm-text-md);
  font-weight: var(--vm-font-weight-heading);
  line-height: 1.2;
}

.floatingAuxInspectorSpinor .spinorInfoPanelClose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-width: 30px;
  padding: 0;
}

.floatingAuxInspectorSpinor .spinorInfoPanelBody {
  display: grid;
  gap: 8px;
}

.floatingAuxInspectorSpinor .spinorInfoPanelBody p {
  margin: 0;
  color: var(--vm-color-text-secondary);
  font-size: var(--vm-text-sm);
  line-height: 1.45;
}

.floatingAuxInspectorSpinor .spinorInfoPhaseWheel {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--vm-color-border-subtle);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.92) 0 22%, transparent 24%),
    conic-gradient(#ff5252 0deg,
      #ff9b42 60deg,
      #f8ef42 120deg,
      #42d96b 180deg,
      #3ca8ff 240deg,
      #8f52ff 300deg,
      #ff52d1 360deg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

#toolbar .tb-toolbarInspectorView .tb-windowBtn {
  background: var(--tb-surface-emphasis);
  color: var(--tb-text-color-primary);
  border-radius: var(--tb-radius-tight);
}

#toolbar .tb-toolbarInspectorView #viewPanelBtn,
#toolbar .tb-toolbarInspectorView #coordsPanelBtn {
  width: auto;
  justify-self: start;
  padding-left: 12px;
  padding-right: 12px;
}

#toolbar .tb-toolbarInspectorView .tb-windowBtn:hover,
#toolbar .tb-toolbarInspectorView .tb-windowBtn.active {
  background: var(--tb-surface-emphasis-hover);
  color: var(--tb-text-color-strong);
}

#toolbar .tb-toolbarInspectorView .viewInspectorGroup.viewInspectorWindows {
  grid-template-columns: max-content max-content;
  justify-content: flex-start;
  align-items: start;
  column-gap: 6px;
  row-gap: 6px;
}

#toolbar .tb-toolbarInspectorView .viewInspectorGroup.viewInspectorWindows #trajectoryPanelBtn {
  grid-column: 1 / -1;
}

.floatingAuxInspectorView .viewPresetRow,
#toolbar .tb-toolbarInspectorView .viewPresetRow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 2px;
}

.floatingAuxInspectorView .viewPresetRow button,
#toolbar .tb-toolbarInspectorView .viewPresetRow button {
  justify-content: center;
  text-align: center;
  padding: 0 4px;
}

#toolbar #displayInspector .appearanceHiddenControl {
  display: none;
}

#toolbar #displayInspector .inspectorAccordion {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border-top: 1px solid var(--tb-section-divider);
  padding-top: 6px;
}

#toolbar #displayInspector .inspectorAccordionSummary,
#toolbar #displayInspector .inspectorSubsectionSummary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  user-select: none;
  padding: 2px 0 8px 0;
}

#toolbar #displayInspector .inspectorAccordionSummary::-webkit-details-marker,
#toolbar #displayInspector .inspectorSubsectionSummary::-webkit-details-marker {
  display: none;
}

#toolbar #displayInspector .inspectorAccordionSummary::after,
#toolbar #displayInspector .inspectorSubsectionSummary::after {
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  color: var(--tb-text-color-subtle);
  content: "▸";
  flex: 0 0 auto;
}

#toolbar #displayInspector details[open]>.inspectorAccordionSummary::after,
#toolbar #displayInspector details[open]>.inspectorSubsectionSummary::after {
  content: "▾";
  color: var(--tb-text-color-emphasis);
}

#toolbar #displayInspector .inspectorAccordionBody {
  display: grid;
  gap: 8px;
  padding: 12px;
  margin-top: 8px;
  background: var(--vm-color-surface-panel);
  border: 1px solid var(--vm-color-border);
  border-radius: var(--vm-radius-md);
  box-shadow: var(--vm-shadow-sm);
}

#toolbar #displayInspector,
#toolbar #displayInspector .inspectorGroup,
#toolbar #displayInspector .inspectorAccordionBody,
#toolbar #displayInspector .vm-appearance-section,
#toolbar #displayInspector .vm-field-row {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

#toolbar #displayInspector .inspectorAccordionBody>.secondary {
  justify-self: start;
  margin-top: 2px;
}

#toolbar #displayInspector .vm-appearance-section+.vm-appearance-section {
  margin-top: 16px;
}

#toolbar #displayInspector .vm-appearance-section .vm-section-label {
  margin: 0 0 8px;
}

#toolbar #displayInspector .vm-field-row>.vm-field-control>.vm-button-group,
#toolbar #displayInspector .vm-field-row>.vm-field-control>.vm-select,
#toolbar #displayInspector .vm-field-row>.vm-field-control>.vm-slider {
  width: 100%;
}

#toolbar #displayInspector .vm-field-row>.vm-field-control>.vm-button-group {
  display: inline-flex;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
}

#toolbar #displayInspector #elementColorBtn {
  justify-content: flex-start;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 28px;
  padding: 6px 8px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--vm-color-text-secondary);
  font-family: var(--vm-font-sans);
  font-size: 12px;
  font-weight: 500;
  box-shadow: none;
}

#toolbar #displayInspector #elementColorBtn:hover:not(:disabled) {
  color: var(--vm-color-text-primary);
  background: color-mix(in srgb, var(--vm-color-text-primary) 6%, transparent);
}

#toolbar #displayInspector #elementColorBtn:focus,
#toolbar #displayInspector #elementColorBtn:focus-visible {
  outline: none;
  box-shadow: var(--vm-shadow-focus-ring);
}

#toolbar #displayInspector .vm-button-group__item {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center !important;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: auto;
  padding: 4px 10px;
  border: 0;
  border-radius: 4px;
  font-family: var(--vm-font-sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--vm-color-text-secondary);
  text-align: center !important;
  white-space: nowrap;
}

#toolbar #displayInspector .vm-button-group__item[aria-checked='true'],
#toolbar #displayInspector .vm-button-group__item[aria-pressed='true'],
#toolbar #displayInspector .vm-button-group__item.active {
  background: var(--vm-button-group-active);
  color: var(--vm-color-text-primary);
  box-shadow: var(--vm-shadow-sm), 0 0 0 1px var(--vm-color-border);
  font-weight: 600;
}

#toolbar #displayInspector .vm-field-row>.vm-field-control>.vm-select {
  min-width: 0;
}

#toolbar #displayInspector .vm-field-row>.vm-field-control>.secondary {
  justify-self: start;
}

#toolbar #displayInspector .vm-appearance-hidden {
  display: none !important;
}

#toolbar #displayInspector .vm-field-control--group {
  min-width: 0;
}

#toolbar #displayInspector .vm-field-control--swatch {
  justify-content: flex-start;
}

#toolbar #displayInspector .vm-field-control--slider .vm-slider {
  --vm-slider-track-width: 100%;
}

#toolbar #displayInspector #appearanceTypefaceRow .vm-button-group__item {
  padding-left: 8px;
  padding-right: 8px;
}

.floatingAuxInspectorView .tb-quickActionText,
#toolbar .tb-toolbarInspectorView .tb-quickActionText {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
}
