.analysis-stage-experience {
  position: fixed;
  inset: var(--pagebar-height) 0 0;
  z-index: 210;
  color: #eef7fb;
  pointer-events: none;
}

.ui-operation-feedback,
.ui-operation-feedback__status,
.ui-operation-feedback__spinner { box-sizing: border-box; }
.ui-operation-feedback {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: grid;
  place-items: center;
  padding: 16px;
  pointer-events: none;
}
.ui-operation-feedback[hidden] { display: none !important; }
.ui-operation-feedback__status {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(360px, 100%);
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid rgba(151, 196, 214, .38);
  border-radius: 8px;
  color: #eef7fb;
  background: rgba(6, 16, 24, .96);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .32);
  font: 14px/1.4 Arial, sans-serif;
}
.ui-operation-feedback__status > div { min-width: 0; }
.ui-operation-feedback__status strong,
.ui-operation-feedback__status small { display: block; overflow-wrap: anywhere; }
.ui-operation-feedback__status small { margin-top: 3px; color: #adc6d2; font-size: 12px; }
.ui-operation-feedback__status small:empty { display: none; }
.ui-operation-feedback__spinner {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(140, 234, 255, .22);
  border-top-color: #8ceaff;
  border-radius: 50%;
  animation: ui-operation-spin .8s linear infinite;
}
@keyframes ui-operation-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .ui-operation-feedback__spinner { animation: none; }
}

.analysis-stage-experience[hidden] {
  display: none !important;
}

.stage-import-target[hidden],
.stage-context[hidden] {
  display: none !important;
}

body.analysis-experience-enabled #controls {
  display: none;
}

body.analysis-experience-enabled.analysis-results-ready #controls,
body.analysis-experience-enabled.analysis-results-ready #visualToolDock,
body.analysis-experience-enabled.analysis-results-ready #flowStudioDock,
body.analysis-experience-enabled.analysis-results-ready #resultSourceBadge,
body.analysis-experience-enabled.analysis-results-ready #objectTreePanel {
  display: none !important;
}

body.analysis-setup-mode #settingsPanel,
body.analysis-setup-mode #objectTreePanel,
body.analysis-setup-mode #viewAnglePanel,
body.analysis-setup-mode #axisHelperCanvas,
body.analysis-setup-mode .label,
body.analysis-setup-mode #visualToolDock,
body.analysis-setup-mode #resultSourceBadge {
  display: none !important;
}

body.analysis-stage-orient canvas {
  cursor: grab;
}

body.analysis-stage-orient .analysis-stage-experience.is-rotating ~ canvas,
body.analysis-stage-orient canvas:active {
  cursor: grabbing;
}

.analysis-stage-head {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 112px;
  z-index: 4;
  display: grid;
  grid-template-columns: 42px minmax(180px, auto) minmax(180px, 420px);
  align-items: center;
  gap: 13px;
  pointer-events: none;
}

.stage-scene-toolbar {
  position: static;
  z-index: auto;
  display: none;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  height: 26px;
  box-sizing: border-box;
  margin-left: auto;
  padding: 2px;
  border: 1px solid rgba(157, 198, 215, 0.25);
  border-radius: 6px;
  background: rgba(7, 17, 25, 0.72);
  box-shadow: none;
  pointer-events: auto;
}

body.analysis-experience-enabled #pageBar .stage-scene-toolbar {
  display: flex;
}

body.analysis-experience-enabled #pageBar #pageSystemStatus {
  margin-left: 0;
}

.stage-scene-toolbar button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
  height: 20px;
  padding: 2px 7px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: rgba(225, 240, 246, 0.72);
  background: transparent;
  font: inherit;
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
}

.stage-scene-toolbar button:hover,
.stage-scene-toolbar button.is-active {
  border-color: rgba(111, 221, 247, 0.48);
  color: #eafbff;
  background: rgba(66, 184, 214, 0.16);
}

.stage-scene-toolbar button > span { font-size: 14px; line-height: 1; }
.stage-scene-toolbar button > strong { font-size: 9px; font-weight: 900; white-space: nowrap; }
.stage-toolbar-divider { width: 1px; height: 16px; margin: 0 1px; background: rgba(157, 198, 215, 0.2); }
.stage-scene-toolbar .stage-toolbar-distributed,
.stage-scene-toolbar .stage-toolbar-share { padding-inline: 6px; }
.stage-toolbar-distributed i { width: 7px; height: 7px; border-radius: 50%; background: #71808c; box-shadow: 0 0 0 3px rgba(113, 128, 140, 0.12); }
.stage-toolbar-distributed small { min-width: 18px; color: rgba(218, 235, 242, 0.5); font-size: 8px; font-weight: 900; }
.stage-toolbar-distributed.is-active i { background: #54e1a0; box-shadow: 0 0 0 3px rgba(84, 225, 160, 0.15); }
.stage-toolbar-distributed.is-active small { color: #75ebb2; }
.stage-toolbar-share i { width: 7px; height: 7px; border-radius: 50%; background: #71808c; box-shadow: 0 0 0 3px rgba(113, 128, 140, 0.12); }
.stage-toolbar-share small { color: rgba(218, 235, 242, 0.5); font-size: 8px; font-weight: 900; }
.stage-toolbar-share em { color: rgba(218, 235, 242, 0.46); font-size: 8px; font-style: normal; font-weight: 800; white-space: nowrap; }
.stage-toolbar-share.is-active i,
.stage-toolbar-share.is-busy i { background: #54e1a0; box-shadow: 0 0 0 3px rgba(84, 225, 160, 0.15); }
.stage-toolbar-share.is-active small,
.stage-toolbar-share.is-busy small { color: #75ebb2; }
.stage-toolbar-share.is-busy i { animation: stage-share-pulse 1.1s ease-in-out infinite; }
.stage-toolbar-share.is-connecting { cursor: wait; opacity: 0.78; }

@keyframes stage-share-pulse {
  50% { opacity: 0.42; }
}

body.analysis-experience-enabled #viewAngleToggle { display: none !important; }
body.analysis-experience-enabled .analysis-stage-experience[data-navigation-mode="pan"] ~ canvas { cursor: move; }

.stage-viz-workspace {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 12;
  display: none;
  grid-template-columns: minmax(0, 1.65fr) minmax(330px, 1fr);
  width: min(850px, calc(100vw - 36px));
  height: min(520px, calc(100vh - var(--pagebar-height) - 90px));
  border: 1px solid rgba(158, 197, 214, 0.26);
  border-radius: 8px;
  color: #eef8fc;
  background: rgba(7, 17, 25, 0.9);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.stage-result-inspector,
.stage-viz-browser {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.stage-viz-browser {
  display: grid;
  grid-template-columns: 190px minmax(230px, 1fr);
  grid-template-rows: 55px minmax(0, 1fr);
  border-right: 1px solid rgba(151, 194, 211, 0.16);
}

.analysis-stage-experience.is-results .stage-viz-workspace {
  display: grid;
}

.stage-viz-workspace.is-collapsed {
  display: none !important;
}

.stage-viz-workspace.is-collapsed .stage-viz-add,
.stage-viz-workspace.is-collapsed .stage-viz-layer-list,
.stage-viz-workspace.is-collapsed .stage-viz-geometry,
.stage-viz-workspace.is-collapsed .stage-result-content {
  display: none;
}

.stage-viz-workspace[data-panel-mode="create"] {
  grid-template-columns: 1fr;
  width: min(620px, calc(100vw - 36px));
  height: auto;
  max-height: min(520px, calc(100vh - var(--pagebar-height) - 90px));
}

.stage-viz-workspace[data-panel-mode="create"] .stage-viz-browser {
  grid-template-columns: 1fr;
  grid-template-rows: 55px auto;
  border-right: 0;
}

.stage-viz-workspace[data-panel-mode="create"].is-guided {
  height: min(560px, calc(100vh - var(--pagebar-height) - 44px));
  max-height: calc(100vh - var(--pagebar-height) - 44px);
}

.stage-viz-workspace[data-panel-mode="create"].is-guided .stage-viz-browser {
  grid-template-rows: 55px minmax(0, 1fr);
}

.stage-viz-workspace[data-panel-mode="create"] .stage-result-inspector,
.stage-viz-workspace[data-panel-mode="create"] .stage-viz-geometry { display: none; }

.stage-viz-workspace[data-panel-mode="edit"] {
  top: 18px;
  bottom: auto;
  left: 336px;
  width: min(850px, calc(100vw - 354px));
}

.stage-viz-workspace[data-panel-mode="edit"] .stage-viz-browser {
  grid-template-columns: 1fr;
  grid-template-rows: 55px minmax(0, 1fr);
}

.stage-viz-workspace[data-panel-mode="edit"] .stage-viz-add { display: none; }
.stage-viz-workspace[data-panel-mode="edit"] .stage-viz-guide { display: none !important; }
.stage-viz-workspace[data-panel-mode="edit"] .stage-viz-panel-close { display: none; }

.stage-viz-panel-close {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(151, 194, 211, 0.22);
  border-radius: 5px;
  color: #dcecf2;
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  font-size: 21px;
  cursor: pointer;
}

.stage-viz-workspace[data-panel-mode="create"] .stage-viz-add {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border: 0;
  overflow: visible;
}

.stage-viz-workspace[data-panel-mode="create"] .stage-viz-add[hidden],
.stage-viz-guide[hidden] { display: none; }

.stage-viz-workspace[data-panel-mode="create"] .stage-viz-add > button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 3px 8px;
  min-height: 76px;
  padding: 10px;
}

.stage-viz-workspace[data-panel-mode="create"] .stage-viz-add .stage-viz-icon { grid-row: 1 / 3; }
.stage-viz-workspace[data-panel-mode="create"] .stage-viz-add strong { font-size: 11px; }
.stage-viz-workspace[data-panel-mode="create"] .stage-viz-add small { color: rgba(205, 226, 235, 0.5); font-size: 8px; line-height: 1.3; }

.stage-viz-guide {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 13px;
  padding: 14px;
  min-height: 0;
  overflow: hidden;
}

.stage-viz-guide-progress { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 6px; }
.stage-viz-guide-progress i { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid rgba(151,194,211,.24); border-radius: 50%; color: rgba(220,236,242,.5); font-size: 9px; font-style: normal; font-weight: 900; }
.stage-viz-guide-progress i.is-active { border-color: #76def7; color: #061820; background: #76def7; }
.stage-viz-guide-progress span { height: 1px; background: rgba(151,194,211,.2); }
.stage-viz-guide-progress[hidden] { display: none; }
.stage-surface-options, .stage-viz-surface-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; }
.stage-surface-options[hidden], .stage-viz-geometry:not([data-mode="surfacecontour"]) .stage-viz-surface-controls { display: none; }
.stage-surface-options .stage-surface-check, .stage-viz-surface-controls .stage-surface-check { display: flex; align-items: center; gap: 8px; }
.stage-surface-check input { width: 17px; height: 17px; accent-color: #76def7; }
.stage-surface-options input[type="number"], .stage-viz-surface-controls input[type="number"] { box-sizing: border-box; width: 100%; min-width: 0; padding: 8px; border: 1px solid #526875; border-radius: 4px; color: #eaf8fc; background: #111f29; font: inherit; }
.stage-surface-options input[aria-invalid="true"] { border-color: #f18b8b; }
.stage-surface-options output { grid-column: 1 / -1; color: #a9c0ca; font-size: 11px; }
.stage-viz-guide[data-category="surface"] .stage-viz-guide-copy { display: none; }
.stage-viz-guide[data-category="surface"] { grid-template-rows: minmax(0, 1fr) auto; }
.stage-viz-guide[data-category="surface"] .stage-viz-guide-generic-color { grid-template-columns: minmax(0, 1fr); }
.stage-viz-guide[data-category="surface"] #stageVizGenericFinalSummary { display: none; }
.stage-viz-guide-hidden-select[hidden] { display: none !important; }
.stage-viz-guide-copy { display: grid; gap: 3px; }
.stage-viz-guide-copy small { color: #78ddf7; font-size: 8px; font-weight: 900; }
.stage-viz-guide-copy strong { font-size: 15px; }
.stage-viz-guide-copy p { margin: 0; color: rgba(211,230,237,.58); font-size: 10px; }
.stage-viz-guide-step { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 9px; min-height: 0; padding-right: 4px; overflow-y: auto; scrollbar-gutter: stable; }
.stage-viz-guide-step[hidden] { display: none; }
.stage-viz-guide-step label { display: grid; gap: 5px; color: rgba(213,233,240,.65); font-size: 9px; font-weight: 800; }
.stage-viz-guide-step label:first-child:last-child { grid-column: 1 / -1; }
.stage-viz-guide-step select { min-height: 34px; padding: 6px 8px; border: 1px solid rgba(144,190,207,.24); border-radius: 5px; color: #eaf8fc; background: #111f29; font: inherit; font-size: 10px; }
.stage-viz-guide-step input[type="range"] { width: 100%; accent-color: #72daf3; }
.stage-viz-guide-actions { display: flex; flex: 0 0 auto; justify-content: flex-end; gap: 7px; padding-top: 10px; border-top: 1px solid rgba(151,194,211,.16); background: rgba(7,17,25,.96); }
.stage-viz-guide-actions button { min-width: 82px; min-height: 33px; border: 1px solid rgba(151,194,211,.22); border-radius: 5px; color: #deedf2; background: rgba(255,255,255,.04); font: inherit; font-size: 10px; font-weight: 850; cursor: pointer; }
.stage-viz-guide-actions button.primary { border-color: rgba(111,221,247,.5); color: #061820; background: #76def7; }
.stage-viz-guide-actions button[hidden] { display: none; }

.stage-viz-guide-generic-placement,
.stage-viz-guide-generic-color {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.stage-viz-guide-generic-method[hidden],
.stage-viz-guide-generic-placement[hidden],
.stage-viz-guide-generic-color[hidden],
[data-viz-category-only][hidden],
[data-non-flow-guide-only][hidden],
[data-flow-guide-only][hidden],
.stage-viz-flow-palette[hidden],
.stage-viz-flow-solid[hidden],
.stage-viz-guide-palette[hidden],
.stage-viz-guide-solid[hidden],
.stage-viz-iso-level[hidden],
[data-viz-guide-field][hidden] { display: none; }

.stage-viz-flow-kind-grid,
.stage-viz-flow-color-grid,
.stage-viz-method-grid,
.stage-viz-field-grid,
.stage-viz-plane-grid,
.stage-viz-appearance-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.stage-viz-flow-kind-grid > button,
.stage-viz-flow-color-grid > button,
.stage-viz-method-grid > button,
.stage-viz-field-grid > button,
.stage-viz-plane-grid > button,
.stage-viz-appearance-grid > button {
  min-width: 0;
  min-height: 100px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  padding: 9px 7px;
  border: 1px solid rgba(151,194,211,.2);
  border-radius: 7px;
  color: rgba(231,245,250,.82);
  background: rgba(255,255,255,.035);
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.stage-viz-flow-kind-grid > button:hover,
.stage-viz-flow-kind-grid > button.is-selected,
.stage-viz-flow-color-grid > button:hover,
.stage-viz-flow-color-grid > button.is-selected,
.stage-viz-method-grid > button:hover,
.stage-viz-method-grid > button.is-selected,
.stage-viz-field-grid > button:hover,
.stage-viz-field-grid > button.is-selected,
.stage-viz-plane-grid > button:hover,
.stage-viz-plane-grid > button.is-selected,
.stage-viz-appearance-grid > button:hover,
.stage-viz-appearance-grid > button.is-selected {
  border-color: rgba(111,221,247,.68);
  color: #f6fdff;
  background: rgba(73,185,213,.15);
}

.stage-viz-flow-kind-grid strong,
.stage-viz-flow-color-grid strong,
.stage-viz-method-grid strong,
.stage-viz-field-grid strong,
.stage-viz-plane-grid strong,
.stage-viz-appearance-grid strong { max-width: 100%; font-size: 10px; letter-spacing: 0; overflow-wrap: anywhere; }
.stage-viz-flow-kind-grid small,
.stage-viz-flow-color-grid small,
.stage-viz-method-grid small,
.stage-viz-field-grid small,
.stage-viz-plane-grid small,
.stage-viz-appearance-grid small { color: rgba(205,226,235,.52); font-size: 8px; line-height: 1.3; letter-spacing: 0; overflow-wrap: anywhere; }

.stage-viz-method-grid[data-viz-category-only="surface"],
.stage-viz-method-grid[data-viz-category-only="slice"],
.stage-viz-appearance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.stage-viz-method-art,
.stage-viz-plane-art {
  position: relative;
  display: block;
  width: 76px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(126,218,241,.18);
  border-radius: 6px;
  background: #102733;
}

.stage-viz-method-art::before,
.stage-viz-method-art::after,
.stage-viz-method-art i,
.stage-viz-plane-art::before,
.stage-viz-plane-art::after { content: ""; position: absolute; display: block; }

.stage-viz-method-art.is-pressure-map {
  background: linear-gradient(115deg, #2649c7 0 22%, #44cddd 42%, #f1dd51 66%, #db3e35 100%);
}
.stage-viz-method-art.is-pressure-map::before {
  inset: 8px 15px;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 55% 20% 55% 24%;
  transform: skewX(-12deg);
}

.stage-viz-method-art.is-wall-flow { background: linear-gradient(115deg, #143a4a, #1b725f 55%, #d1bb4f); }
.stage-viz-method-art.is-wall-flow i { left: -5px; width: 88px; height: 14px; border: 1px solid transparent; border-top-color: rgba(255,255,255,.82); border-radius: 50%; }
.stage-viz-method-art.is-wall-flow i:nth-child(1) { top: 6px; transform: rotate(-5deg); }
.stage-viz-method-art.is-wall-flow i:nth-child(2) { top: 15px; transform: rotate(4deg); }
.stage-viz-method-art.is-wall-flow i:nth-child(3) { top: 25px; transform: rotate(-2deg); }

.stage-viz-method-art.is-contour-slice::before {
  inset: 5px 15px;
  border: 1px solid rgba(183,224,238,.34);
  transform: skewY(-10deg);
  background: linear-gradient(90deg, #244bc8, #3ed7ce 44%, #f2de50 72%, #dc3a35);
}
.stage-viz-method-art.is-contour-slice::after { left: 7px; right: 7px; top: 20px; height: 1px; background: rgba(255,255,255,.82); }

.stage-viz-method-art.is-lic-slice { background: #dae2e5; }
.stage-viz-method-art.is-lic-slice i { left: -8px; width: 92px; height: 13px; border: 1px solid transparent; border-top-color: rgba(20,45,57,.72); border-radius: 50%; }
.stage-viz-method-art.is-lic-slice i:nth-child(1) { top: 6px; transform: rotate(5deg); }
.stage-viz-method-art.is-lic-slice i:nth-child(2) { top: 16px; transform: rotate(-7deg); }
.stage-viz-method-art.is-lic-slice i:nth-child(3) { top: 27px; transform: rotate(3deg); }

.stage-viz-method-art.is-iso-surface::before {
  inset: 7px 20px;
  border: 2px solid #74e2ff;
  border-radius: 45% 60% 50% 38%;
  background: rgba(91,203,229,.28);
  transform: rotate(-9deg);
  box-shadow: 0 0 10px rgba(111,221,247,.38);
}
.stage-viz-method-art.is-vortex-core::before,
.stage-viz-method-art.is-vortex-core::after {
  width: 32px;
  height: 14px;
  border: 3px solid #a98cff;
  border-radius: 50%;
  transform: rotate(-12deg);
}
.stage-viz-method-art.is-vortex-core::before { left: 10px; top: 8px; }
.stage-viz-method-art.is-vortex-core::after { right: 8px; bottom: 7px; border-color: #67e3cb; }
.stage-viz-method-art.is-vortex-cloud {
  background-color: #102733;
  background-image:
    radial-gradient(circle at 18% 25%, #7bdfff 0 2px, transparent 2.6px),
    radial-gradient(circle at 38% 68%, #9b83ff 0 3px, transparent 3.6px),
    radial-gradient(circle at 57% 35%, #72e5b5 0 2px, transparent 2.6px),
    radial-gradient(circle at 81% 70%, #ffd568 0 2px, transparent 2.6px),
    radial-gradient(circle at 75% 20%, #7bdfff 0 1.5px, transparent 2px);
}

.stage-viz-category-panel {
  display: grid;
  grid-column: 1 / -1;
  gap: 9px;
}

.stage-viz-field-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stage-viz-field-grid.is-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stage-viz-field-grid > button { min-height: 78px; }
.stage-viz-field-grid > button i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 28px;
  border: 1px solid rgba(111,221,247,.35);
  border-radius: 5px;
  color: #8ce8ff;
  background: rgba(57,163,190,.12);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.stage-viz-plane-grid > button { min-height: 88px; }
.stage-viz-plane-art::before {
  left: 16px;
  top: 7px;
  width: 42px;
  height: 28px;
  border: 1px solid rgba(190,224,237,.38);
  transform: skewY(-12deg);
}
.stage-viz-plane-art::after { background: rgba(93,225,248,.58); box-shadow: 0 0 9px rgba(93,225,248,.35); }
.stage-viz-plane-art.is-xy::after { left: 10px; right: 10px; top: 19px; height: 4px; transform: skewY(-12deg); }
.stage-viz-plane-art.is-xz::after { left: 35px; top: 4px; bottom: 4px; width: 4px; transform: skewY(-12deg); }
.stage-viz-plane-art.is-yz::after { left: 17px; top: 7px; width: 5px; height: 29px; transform: skewY(-12deg); }

.stage-viz-position-control,
.stage-viz-iso-level,
.stage-viz-guide-palette,
.stage-viz-guide-solid {
  display: grid;
  gap: 6px;
  padding: 8px 9px;
  border: 1px solid rgba(151,194,211,.16);
  border-radius: 6px;
  background: rgba(255,255,255,.025);
}
.stage-viz-position-control > span,
.stage-viz-iso-level > span { display: flex; justify-content: space-between; gap: 8px; }
.stage-viz-position-control output,
.stage-viz-iso-level output { color: #83e6ff; font-size: 10px; font-weight: 900; }
.stage-viz-iso-level small { color: rgba(205,226,235,.52); font-size: 8px; }

.stage-viz-appearance-grid { grid-column: 1 / -1; }
.stage-viz-appearance-grid > button { min-height: 88px; }
.stage-viz-appearance-grid i {
  display: block;
  width: 72px;
  height: 29px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 5px;
}
.stage-viz-appearance-grid i.is-contour { background: linear-gradient(90deg, #244ac8, #37d2d0 38%, #f1dd50 68%, #d93839); }
.stage-viz-appearance-grid i.is-solid { background: #30d5ff; }
.stage-viz-guide-palette select,
.stage-viz-guide-solid input {
  width: 100%;
  min-height: 34px;
  box-sizing: border-box;
  padding: 5px 7px;
  border: 1px solid rgba(144,190,207,.24);
  border-radius: 5px;
  color: #eaf8fc;
  background: #111f29;
  font: inherit;
  font-size: 10px;
}

.stage-flow-kind-art {
  position: relative;
  display: block;
  width: 72px;
  height: 38px;
  overflow: hidden;
  border: 1px solid rgba(126,218,241,.18);
  border-radius: 6px;
  background: rgba(15,37,50,.74);
}

.stage-flow-kind-art i,
.stage-flow-kind-art::before,
.stage-flow-kind-art::after {
  content: "";
  position: absolute;
  display: block;
}

.stage-flow-kind-art.is-streamlines i {
  left: -5px;
  width: 82px;
  height: 14px;
  border: 2px solid transparent;
  border-top-color: #63ddff;
  border-radius: 50%;
}

.stage-flow-kind-art.is-streamlines i:nth-child(1) { top: 7px; transform: rotate(-5deg); }
.stage-flow-kind-art.is-streamlines i:nth-child(2) { top: 15px; border-top-color: #8df29b; transform: rotate(5deg); }
.stage-flow-kind-art.is-streamlines i:nth-child(3) { top: 23px; border-top-color: #ffd868; transform: rotate(-3deg); }

.stage-flow-kind-art.is-particles {
  background-color: rgba(15,37,50,.74);
  background-image:
    radial-gradient(circle at 14% 28%, #69e2ff 0 2px, transparent 2.6px),
    radial-gradient(circle at 37% 65%, #91f4a0 0 2px, transparent 2.6px),
    radial-gradient(circle at 62% 34%, #ffd969 0 2px, transparent 2.6px),
    radial-gradient(circle at 84% 70%, #69e2ff 0 2px, transparent 2.6px);
}

.stage-flow-kind-art.is-particles::before,
.stage-flow-kind-art.is-particles::after {
  left: 7px;
  right: 7px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103,220,255,.72), transparent);
}
.stage-flow-kind-art.is-particles::before { top: 12px; }
.stage-flow-kind-art.is-particles::after { top: 27px; }

.stage-flow-kind-art.is-ribbons::before {
  left: -7px;
  top: 8px;
  width: 86px;
  height: 18px;
  border-top: 5px solid #64dfff;
  border-bottom: 3px solid #af79ff;
  border-radius: 50%;
  transform: rotate(7deg);
  filter: drop-shadow(0 0 4px rgba(100,223,255,.35));
}

.stage-viz-flow-focus,
.stage-viz-flow-color {
  display: grid;
  grid-column: 1 / -1;
  gap: 9px;
}

.stage-viz-flow-copy { display: grid; gap: 2px; }
.stage-viz-flow-copy strong { font-size: 10px; }
.stage-viz-flow-copy span { color: rgba(205,226,235,.54); font-size: 8px; line-height: 1.4; }

.stage-flow-focus-scene {
  position: relative;
  min-height: 204px;
  overflow: hidden;
  border: 1px solid rgba(151,194,211,.22);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(11,27,42,.98), rgba(6,18,29,.99)),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(127,190,238,.08) 29px 30px);
  isolation: isolate;
}

.stage-flow-focus-domain,
.stage-flow-focus-ground,
.stage-flow-focus-wind,
.stage-flow-focus-object,
.stage-flow-focus-wake {
  position: absolute;
  pointer-events: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, filter 150ms ease, opacity 150ms ease;
}

.stage-flow-focus-domain {
  inset: 14px;
  border: 1px solid rgba(113,189,255,.32);
  border-radius: 6px;
  box-shadow: inset 0 0 24px rgba(35,118,195,.08);
}

.stage-flow-focus-ground {
  left: 28px;
  right: 24px;
  bottom: 38px;
  height: 1px;
  background: rgba(154,205,242,.24);
  transform: skewX(-34deg);
}

.stage-flow-focus-wind {
  left: 22px;
  top: 40px;
  width: 80px;
  height: 42px;
  background:
    linear-gradient(90deg, transparent 0 5%, rgba(89,222,255,.88) 8% 80%, transparent 82%) 0 5px / 72px 2px no-repeat,
    linear-gradient(90deg, transparent 0 5%, rgba(89,222,255,.60) 8% 70%, transparent 72%) 7px 19px / 68px 2px no-repeat,
    linear-gradient(90deg, transparent 0 5%, rgba(89,222,255,.42) 8% 62%, transparent 64%) 1px 33px / 63px 2px no-repeat;
  filter: drop-shadow(0 0 4px rgba(76,216,255,.25));
}

.stage-flow-focus-wind::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid #66defb;
}

.stage-flow-focus-object {
  left: 42%;
  top: 78px;
  width: 66px;
  height: 54px;
  border: 1px solid rgba(214,230,244,.58);
  border-radius: 7px 16px 8px 6px;
  background: linear-gradient(145deg, #90a7bb 0%, #425a72 46%, #17283b 100%);
  box-shadow: inset 12px 8px 15px rgba(255,255,255,.13), 0 12px 18px rgba(0,0,0,.28);
  transform: translateX(-50%) skewY(-5deg);
  z-index: 2;
}

.stage-flow-focus-object::before {
  content: "";
  position: absolute;
  left: 9px;
  right: 12px;
  top: 11px;
  height: 8px;
  border-radius: 50%;
  background: rgba(224,242,255,.18);
}

.stage-flow-focus-wake {
  left: calc(42% + 32px);
  right: 18px;
  top: 62px;
  height: 90px;
  opacity: .78;
  background:
    radial-gradient(ellipse at 14% 50%, rgba(76,221,255,.34), transparent 34%),
    repeating-radial-gradient(ellipse at 0 50%, transparent 0 9px, rgba(111,188,255,.24) 10px 11px, transparent 12px 21px);
  clip-path: polygon(0 32%, 100% 2%, 100% 98%, 0 68%);
  z-index: 1;
}

.stage-flow-focus-zone {
  position: absolute;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #eff7ff;
  cursor: pointer;
}

.stage-flow-focus-zone span {
  position: absolute;
  display: block;
  padding: 4px 7px;
  border: 1px solid rgba(151,201,245,.25);
  border-radius: 6px;
  background: rgba(7,18,33,.88);
  color: rgba(237,247,255,.80);
  font-size: 8px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: 0;
}

.stage-flow-focus-zone.is-all { inset: 6px; z-index: 3; }
.stage-flow-focus-zone.is-all span { left: 14px; top: 12px; }
.stage-flow-focus-zone.is-surface { left: calc(42% - 47px); top: 59px; width: 94px; height: 94px; z-index: 5; }
.stage-flow-focus-zone.is-surface span { left: 50%; bottom: -21px; transform: translateX(-50%); }
.stage-flow-focus-zone.is-wake { left: calc(42% + 34px); right: 12px; top: 50px; height: 116px; z-index: 4; }
.stage-flow-focus-zone.is-wake span { right: 7px; top: 7px; }

.stage-flow-focus-zone.is-selected span {
  border-color: #63c5ff;
  background: rgba(24,85,139,.94);
  color: #eff9ff;
  box-shadow: 0 0 10px rgba(99,197,255,.24);
}

.stage-flow-focus-zone:hover span,
.stage-flow-focus-zone:focus-visible span,
.stage-flow-focus-scene[data-hover-focus="all"] [data-viz-flow-focus="all"] span,
.stage-flow-focus-scene[data-hover-focus="surface"] [data-viz-flow-focus="surface"] span,
.stage-flow-focus-scene[data-hover-focus="wake"] [data-viz-flow-focus="wake"] span {
  border-color: #ffd84d;
  background: rgba(88,67,5,.94);
  color: #fff4b3;
  box-shadow: 0 0 12px rgba(255,216,77,.34);
}

.stage-flow-focus-zone:focus-visible { outline: 2px solid #ffd84d; outline-offset: 1px; }
.stage-flow-focus-scene[data-preview-focus="all"] .stage-flow-focus-domain { border-color: #63c5ff; box-shadow: inset 0 0 28px rgba(99,197,255,.14), 0 0 10px rgba(99,197,255,.18); }
.stage-flow-focus-scene[data-preview-focus="surface"] .stage-flow-focus-object { border-color: #79dcff; box-shadow: inset 12px 8px 15px rgba(255,255,255,.13), 0 0 0 5px rgba(99,197,255,.14), 0 0 18px rgba(99,197,255,.45); }
.stage-flow-focus-scene[data-preview-focus="wake"] .stage-flow-focus-wake { opacity: 1; filter: saturate(1.7) brightness(1.2) drop-shadow(0 0 8px rgba(99,197,255,.55)); }
.stage-flow-focus-scene:has(.is-all:hover) .stage-flow-focus-domain,
.stage-flow-focus-scene:has(.is-all:focus-visible) .stage-flow-focus-domain { border-color: #ffd84d; box-shadow: inset 0 0 30px rgba(255,216,77,.16), 0 0 12px rgba(255,216,77,.22); }
.stage-flow-focus-scene:has(.is-surface:hover) .stage-flow-focus-object,
.stage-flow-focus-scene:has(.is-surface:focus-visible) .stage-flow-focus-object { border-color: #ffe780; box-shadow: inset 12px 8px 15px rgba(255,255,255,.13), 0 0 0 5px rgba(255,216,77,.16), 0 0 20px rgba(255,216,77,.52); }
.stage-flow-focus-scene:has(.is-wake:hover) .stage-flow-focus-wake,
.stage-flow-focus-scene:has(.is-wake:focus-visible) .stage-flow-focus-wake,
.stage-flow-focus-scene[data-hover-focus="wake"] .stage-flow-focus-wake { opacity: 1; filter: sepia(1) saturate(4.5) hue-rotate(354deg) brightness(1.28) drop-shadow(0 0 8px rgba(255,216,77,.62)); }
.stage-flow-focus-scene[data-hover-focus="all"] .stage-flow-focus-domain { border-color: #ffd84d; box-shadow: inset 0 0 30px rgba(255,216,77,.16), 0 0 12px rgba(255,216,77,.22); }
.stage-flow-focus-scene[data-hover-focus="surface"] .stage-flow-focus-object { border-color: #ffe780; box-shadow: inset 12px 8px 15px rgba(255,255,255,.13), 0 0 0 5px rgba(255,216,77,.16), 0 0 20px rgba(255,216,77,.52); }

.stage-viz-flow-summary {
  min-height: 30px;
  padding: 7px 9px;
  border-left: 3px solid #72daf3;
  border-radius: 5px;
  color: rgba(226,241,247,.78);
  background: rgba(65,170,197,.10);
  font-size: 9px;
  line-height: 1.45;
}

.stage-viz-flow-color-grid > button { min-height: 88px; }
.stage-viz-flow-color-grid i {
  display: block;
  width: 64px;
  height: 27px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 5px;
}
.stage-viz-flow-color-grid i.is-speed { background: linear-gradient(90deg, #1845d8, #24d9de 35%, #78e458 58%, #ffe34c 78%, #e93624); }
.stage-viz-flow-color-grid i.is-pressure { background: linear-gradient(90deg, #244ac8, #f4f7ff 50%, #d6303e); }
.stage-viz-flow-color-grid i.is-solid { background: #30d5ff; }

.stage-viz-flow-palette,
.stage-viz-flow-solid { display: grid; gap: 5px; }
.stage-viz-flow-palette select,
.stage-viz-flow-solid input {
  width: 100%;
  min-height: 34px;
  box-sizing: border-box;
  padding: 5px 7px;
  border: 1px solid rgba(144,190,207,.24);
  border-radius: 5px;
  color: #eaf8fc;
  background: #111f29;
  font: inherit;
  font-size: 10px;
}

.stage-viz-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 55px;
  padding: 9px 13px;
  border-bottom: 1px solid rgba(151, 194, 211, 0.16);
  grid-column: 1 / -1;
}

.stage-viz-panel-head > span:first-child {
  display: grid;
  gap: 2px;
}

.stage-viz-panel-head small {
  color: #7adcf5;
  font-size: 9px;
  font-weight: 900;
}

.stage-viz-panel-head strong { font-size: 14px; }
.stage-viz-count {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  border: 1px solid rgba(137, 218, 241, 0.28);
  border-radius: 50%;
  color: #8be7ff;
  background: rgba(83, 199, 230, 0.1);
  font-size: 10px;
  font-weight: 900;
}

.stage-viz-add {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid rgba(151, 194, 211, 0.14);
  align-content: start;
  overflow-y: auto;
  border-right: 1px solid rgba(151, 194, 211, 0.14);
  border-bottom: 0;
}

.stage-viz-add-label {
  margin: 0 2px 2px;
  color: rgba(207, 230, 239, 0.54);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.stage-viz-create-group,
.stage-viz-advanced,
.stage-viz-data-tools {
  min-width: 0;
  border: 1px solid rgba(151, 194, 211, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.stage-viz-create-group > summary,
.stage-viz-advanced > summary,
.stage-viz-data-tools > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.stage-viz-create-group > summary::-webkit-details-marker,
.stage-viz-advanced > summary::-webkit-details-marker,
.stage-viz-data-tools > summary::-webkit-details-marker { display: none; }

.stage-viz-create-group > summary {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 7px;
  min-height: 39px;
  padding: 5px 8px;
  color: rgba(235, 247, 251, 0.86);
}
.stage-viz-create-group > summary .stage-viz-icon { grid-column: 1; grid-row: 1 / 3; }
.stage-viz-create-group > summary strong { grid-column: 2; grid-row: 1; }
.stage-viz-create-group > summary small { grid-column: 2; grid-row: 2; }
.stage-viz-create-group > summary::after { grid-column: 3; grid-row: 1 / 3; align-self: center; }

.stage-viz-create-group > summary::after,
.stage-viz-advanced > summary::after,
.stage-viz-data-tools > summary::after {
  content: "+";
  color: #79def7;
  font-size: 15px;
  font-weight: 500;
}

.stage-viz-create-group[open] > summary::after,
.stage-viz-advanced[open] > summary::after,
.stage-viz-data-tools[open] > summary::after { content: "−"; }
.stage-viz-create-group > summary strong { font-size: 10px; }
.stage-viz-create-group > summary small { color: rgba(205, 226, 235, 0.48); font-size: 8px; }
.stage-viz-create-group > div { display: grid; gap: 3px; padding: 0 5px 5px; }
.stage-viz-create-group > div button {
  min-height: 31px;
  padding: 5px 8px;
  border: 0;
  border-radius: 4px;
  color: rgba(230, 244, 249, 0.76);
  background: rgba(91, 189, 215, 0.07);
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.stage-viz-create-group > div button:hover,
.stage-viz-create-group > div button:focus-visible { color: #fff; background: rgba(91, 201, 229, 0.18); outline: 0; }

.stage-viz-launcher,
.stage-object-manager,
.stage-result-metrics-overlay {
  display: none;
}

.analysis-stage-experience.is-results .stage-viz-launcher {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 11;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid rgba(153, 213, 232, 0.3);
  border-radius: 6px;
  color: #edfaff;
  background: rgba(8, 20, 29, 0.48);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px) saturate(1.2);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  pointer-events: auto;
}

.analysis-stage-experience.is-results .stage-viz-launcher[aria-expanded="true"] {
  opacity: 0;
  pointer-events: none;
}

body.analysis-results-ready #scalarLegend { left: auto; right: 18px; bottom: 20px; }
body.analysis-results-ready #scalarLegendRestoreBtn { left: auto; right: 18px; bottom: 20px; }
@media (max-width: 520px) {
  body.analysis-results-ready #scalarLegend { right: 8px; bottom: 56px; }
}

.analysis-stage-experience.is-results .stage-object-manager {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 10;
  display: grid;
  grid-template-rows: 50px auto auto auto minmax(0, 1fr);
  width: min(306px, calc(100vw - 36px));
  max-height: min(64vh, 560px);
  overflow: hidden;
  border: 1px solid rgba(161, 205, 222, 0.2);
  border-radius: 7px;
  color: #eef8fc;
  background: rgba(7, 18, 27, 0.42);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(15px) saturate(1.2);
  pointer-events: auto;
}

.stage-object-manager .stage-viz-panel-head { min-height: 50px; }
.analysis-stage-experience.is-results .stage-case-tree { max-height: min(34vh, 300px); }
.stage-object-manager .stage-viz-layer-list { min-height: 76px; max-height: 180px; overflow-y: auto; border: 0; }

.stage-result-save { display: grid; gap: 6px; padding: 7px 10px 10px; }
.stage-result-save[hidden] { display: none; }
.stage-result-save-options { display: grid; gap: 6px; pointer-events: auto; }
.stage-result-save-options[hidden], .stage-force-components[hidden] { display: none; }
.stage-force-breakdown { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stage-force-components { display: grid; gap: 2px; padding: 5px 6px; font-size: 11px; text-align: center; color: #e2f7fc; overflow-wrap: anywhere; }
.stage-force-components[data-force-components="Cd"] { grid-column: 1; grid-row: 1; }
.stage-force-components[data-force-components="Cl"] { grid-column: 2; grid-row: 1; }
.stage-force-components span { color: #a9c3ce; }
[data-edit-model] :is(.stage-color-tabs, .stage-surface-options, .stage-viz-flow-summary) { display: none !important; }
.stage-result-save-options > button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  width: 100%;
  padding: 7px 8px;
  border: 1px solid rgba(151, 194, 211, 0.3);
  border-radius: 5px;
  background: rgba(23, 49, 62, 0.7);
  color: #e2f7fc;
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
}
.stage-result-save-options > button:hover { background: #214a5a; border-color: #72dbee; }
.stage-result-save-options > button:focus-visible { outline: 2px solid #72dbee; outline-offset: 2px; }
.stage-result-save-options > button:disabled { opacity: 0.5; cursor: wait; }
.stage-result-save svg { width: 15px; height: 15px; flex: 0 0 15px; }
.stage-result-save-status { color: #ffb9b4; font-size: 12px; overflow-wrap: anywhere; }
.stage-result-save-status:empty { display: none; }

.analysis-stage-experience:not(.is-results) .stage-object-manager {
  position: absolute;
  top: 82px;
  left: 18px;
  z-index: 9;
  display: grid;
  grid-template-rows: 50px minmax(0, 1fr);
  width: min(306px, calc(100vw - 36px));
  max-height: min(56vh, 460px);
  overflow: hidden;
  border: 1px solid rgba(161, 205, 222, 0.18);
  border-radius: 7px;
  color: #eef8fc;
  background: rgba(7, 18, 27, 0.34);
  backdrop-filter: blur(15px) saturate(1.2);
  pointer-events: auto;
}

.analysis-stage-experience:not(.is-results) .stage-case-divider,
.analysis-stage-experience:not(.is-results) .stage-viz-layer-list { display: none; }

.stage-case-tree {
  display: grid;
  gap: 3px;
  padding: 7px;
  overflow-y: auto;
}

.stage-case-node {
  border: 1px solid rgba(151, 194, 211, 0.1);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
}

.stage-case-node-main {
  display: grid;
  grid-template-columns: 8px minmax(72px, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 7px;
  min-height: 31px;
  padding: 5px 8px;
}

.stage-case-node-main i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7b8994;
}

.stage-case-node.is-ok .stage-case-node-main i { background: #66d8a0; }
.stage-case-node.is-warning .stage-case-node-main i { background: #f2c14e; }
.stage-case-node.is-error .stage-case-node-main i { background: #ff7373; }
.stage-case-node-main strong { font-size: 10px; color: rgba(239, 249, 252, .9); }
.stage-case-node-main span {
  overflow: hidden;
  color: rgba(213, 231, 238, .68);
  font-size: 9px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-case-children {
  display: grid;
  gap: 3px;
  padding: 0 8px 7px 23px;
}

.stage-case-children > div { display: flex; justify-content: space-between; gap: 8px; font-size: 8px; }
.stage-case-children span { color: rgba(191, 214, 223, .52); }
.stage-case-children strong { color: rgba(232, 244, 248, .74); font-weight: 700; text-align: right; }

.stage-case-divider {
  display: flex;
  justify-content: space-between;
  padding: 7px 10px 5px;
  border-top: 1px solid rgba(151, 194, 211, 0.12);
  color: rgba(190, 216, 226, .62);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.analysis-stage-experience.is-results .stage-result-metrics-overlay {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
  display: block;
  width: min(330px, calc(100vw - 36px));
  color: #f4fbfe;
  background: rgba(7, 18, 27, 0.26);
  border: 1px solid rgba(161, 205, 222, 0.14);
  border-radius: 7px;
  backdrop-filter: blur(12px) saturate(1.15);
  pointer-events: none;
}

.stage-result-metrics-overlay .stage-result-metrics { border: 0; }

.stage-result-quality {
  padding: 7px 10px;
  border-top: 1px solid rgba(151, 194, 211, 0.14);
  color: #ffd27a;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.stage-result-quality[data-status="pass"] { color: #7be2ae; }
.stage-result-quality[data-status="fail"] { color: #ff818a; }

.stage-viz-add > button,
.stage-flow-menu-trigger,
.stage-flow-submenu button {
  min-width: 0;
  min-height: 36px;
  padding: 7px 8px;
  border: 1px solid rgba(151, 194, 211, 0.18);
  border-radius: 5px;
  color: rgba(230, 243, 248, 0.78);
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.stage-viz-add > button,
.stage-flow-menu-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  text-align: left;
}

.stage-viz-add button:hover,
.stage-viz-add button:focus-visible {
  border-color: rgba(111, 221, 247, 0.66);
  color: #f7fdff;
  background: rgba(75, 196, 226, 0.14);
  outline: 0;
}

.stage-flow-menu { position: relative; }
.stage-flow-menu-trigger { width: 100%; }
.stage-flow-caret { margin-left: auto; font-size: 16px; }
.stage-flow-submenu {
  position: absolute;
  top: 0;
  left: calc(100% + 8px);
  z-index: 20;
  display: none;
  width: 126px;
  padding: 5px;
  border: 1px solid rgba(158, 204, 221, 0.28);
  border-radius: 6px;
  background: rgba(5, 15, 23, 0.97);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.4);
}

.stage-flow-submenu button { display: block; width: 100%; text-align: left; }
.stage-flow-submenu button + button { margin-top: 3px; }
.stage-flow-menu:hover .stage-flow-submenu,
.stage-flow-menu:focus-within .stage-flow-submenu,
.analysis-stage-experience.is-flow-menu-open .stage-flow-submenu { display: block; }

.stage-viz-icon {
  position: relative;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
  color: #75dff8;
}
.stage-viz-icon-plane { border: 1px solid currentColor; transform: skewY(-18deg) scale(.82); }
.stage-viz-icon-flow::before,
.stage-viz-icon-flow::after { content: ""; position: absolute; left: 1px; width: 13px; height: 1px; background: currentColor; }
.stage-viz-icon-flow::before { top: 5px; transform: rotate(-12deg); }
.stage-viz-icon-flow::after { top: 11px; transform: rotate(12deg); }
.stage-viz-icon-iso { border: 1px solid currentColor; border-radius: 50%; transform: scale(.85, .62); }
.stage-viz-icon-surface { border-bottom: 2px solid currentColor; border-radius: 50%; transform: rotate(-12deg); }
.stage-viz-icon-mesh { border: 1px solid currentColor; background: linear-gradient(90deg, transparent 45%, currentColor 46% 54%, transparent 55%), linear-gradient(transparent 45%, currentColor 46% 54%, transparent 55%); opacity: .9; }
.stage-viz-icon-lic { border: 1px solid currentColor; background: repeating-linear-gradient(165deg, transparent 0 3px, currentColor 3px 4px, transparent 4px 7px); opacity: .9; }

.stage-viz-layer-list {
  display: grid;
  gap: 3px;
  max-height: none;
  padding: 8px;
  overflow-y: auto;
  border-right: 1px solid rgba(151, 194, 211, 0.14);
  border-bottom: 0;
}

.stage-viz-empty { margin: 8px; color: rgba(216, 233, 240, 0.55); font-size: 10px; line-height: 1.45; }
.stage-viz-layer {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) 28px 28px;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 4px 5px 4px 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
}
.stage-viz-layer:hover { background: rgba(255,255,255,.04); }
.stage-viz-layer.is-active { border-color: rgba(112, 220, 247, .5); background: rgba(66, 188, 219, .1); }
.stage-viz-layer.is-hidden { opacity: .48; }
.stage-viz-layer-mark { width: 6px; height: 6px; border-radius: 50%; background: #d7dde2; box-shadow: 0 0 0 3px rgba(215,221,226,.1); }
.stage-viz-layer-copy { display: grid; min-width: 0; gap: 2px; }
.stage-viz-layer-copy strong,
.stage-viz-layer-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-viz-layer-copy strong { font-size: 11px; }
.stage-viz-layer-copy small { color: rgba(205,226,235,.52); font-size: 9px; }
.stage-viz-layer > button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: rgba(220,238,245,.65);
  background: transparent;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.stage-viz-layer > button:hover { color: #8ce9ff; background: rgba(255,255,255,.07); }

.stage-viz-geometry { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 8px; padding: 10px; overflow-y: auto; }
.stage-viz-layer-picker { display: grid; grid-column: 1 / -1; gap: 4px; }
.stage-viz-layer-picker span { color: rgba(204, 226, 235, 0.58); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.stage-viz-layer-picker select {
  width: 100%;
  min-height: 32px;
  padding: 5px 28px 5px 8px;
  border: 1px solid rgba(134, 211, 235, 0.22);
  border-radius: 5px;
  color: #e9f8fc;
  background: rgba(78, 185, 215, 0.08);
  font: inherit;
  font-size: 10px;
  font-weight: 750;
}
.stage-viz-geometry > .stage-result-label { grid-column: 1 / -1; }
.stage-viz-geometry > .stage-viz-selection-name { grid-column: 1 / -1; }
.stage-viz-iso-controls { display: none; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; border: 1px solid rgba(126, 218, 241, .22); border-radius: 5px; background: rgba(79, 189, 217, .07); }
.stage-viz-geometry[data-mode="isosurface"] .stage-viz-iso-controls { display: grid; }
.stage-viz-iso-controls label { display: grid; gap: 4px; color: rgba(213,233,240,.65); font-size: 9px; font-weight: 800; }
.stage-viz-iso-controls select,
.stage-viz-iso-controls input { width: 100%; min-height: 30px; box-sizing: border-box; padding: 5px 7px; border: 1px solid rgba(144,190,207,.24); border-radius: 4px; color: #eaf8fc; background: #111f29; font: inherit; font-size: 10px; }
.stage-viz-iso-controls small { grid-column: 1 / -1; color: rgba(205,226,235,.56); font-size: 9px; }
.stage-viz-arbitrary-controls,
.stage-viz-filter-controls,
.stage-viz-stream-controls,
.stage-viz-lic-controls { grid-column: 1 / -1; }
.stage-viz-arbitrary-controls { display: none; grid-template-columns: auto repeat(3, 1fr); align-items: end; gap: 6px; padding: 8px; border: 1px solid rgba(126,218,241,.18); border-radius: 5px; }
.stage-viz-geometry:is([data-mode="cutplane"],[data-mode="lic"])[data-plane="arbitrary"] .stage-viz-arbitrary-controls { display: grid; }
.stage-viz-arbitrary-controls > span { align-self: center; color: rgba(213,233,240,.62); font-size: 9px; font-weight: 900; }
.stage-viz-arbitrary-controls input,
.stage-viz-filter-controls input[type="number"],
.stage-viz-filter-controls select,
.stage-viz-stream-controls input,
.stage-viz-stream-controls select { width: 100%; min-height: 29px; box-sizing: border-box; padding: 4px 6px; border: 1px solid rgba(144,190,207,.24); border-radius: 4px; color: #eaf8fc; background: #111f29; font: inherit; font-size: 10px; }
.stage-viz-filter-controls,
.stage-viz-stream-controls,
.stage-viz-lic-controls { min-width: 0; margin: 0; padding: 8px; border: 1px solid rgba(126,218,241,.18); border-radius: 5px; }
.stage-viz-filter-controls legend,
.stage-viz-stream-controls legend,
.stage-viz-lic-controls legend { padding: 0 5px; color: rgba(219,240,247,.76); font-size: 9px; font-weight: 900; }
.stage-viz-switch { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 7px !important; margin-bottom: 7px; }
.stage-viz-switch input { accent-color: #72daf3; }
.stage-viz-six-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; }
.stage-viz-threshold-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 6px; }
.stage-viz-stream-controls { display: none; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.stage-viz-lic-controls { display: none; grid-template-columns: 1fr 1fr; gap: 7px; }
.stage-viz-lic-controls label { display: grid; gap: 4px; color: rgba(213,233,240,.62); font-size: 9px; font-weight: 800; }
.stage-viz-lic-controls input { width: 100%; accent-color: #72daf3; }
.stage-viz-stream-controls legend { grid-column: 1 / -1; }
.stage-viz-seed-place { grid-column: 1 / -1; min-height: 31px; border: 1px solid rgba(116,220,247,.38); border-radius: 4px; color: #dff8ff; background: rgba(70,190,221,.12); font: inherit; font-size: 10px; font-weight: 900; cursor: pointer; }
.stage-viz-auto-quality { display: grid; gap: 4px; min-width: 0; }
.stage-viz-auto-quality span { color: rgba(213,233,240,.58); font-size: 9px; font-weight: 800; }
.stage-viz-auto-quality strong { min-height: 29px; box-sizing: border-box; padding: 7px 8px; border: 1px solid rgba(116,220,247,.22); border-radius: 4px; color: #8fe9ff; background: rgba(60,177,207,.08); font-size: 10px; white-space: nowrap; }
.stage-viz-geometry[data-mode="streamlines"] .stage-viz-stream-controls { display: grid; }
.stage-viz-stream-appearance { display: none; grid-column: 1 / -1; min-width: 0; margin: 0; padding: 10px 0; border: 0; border-top: 1px solid rgba(126,218,241,.18); }
.stage-viz-geometry[data-mode="streamlines"] .stage-viz-stream-appearance { display: grid; gap: 10px; }
.stage-viz-stream-appearance legend { padding: 0 4px 0 0; color: #d8f3fa; font-size: 10px; font-weight: 800; }
.stage-stream-glow-controls { display: grid; min-width: 0; gap: 10px; }
.stage-stream-glow-controls[hidden] { display: none; }
.stage-stream-glow-controls label > span { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; }
.stage-stream-glow-controls output { color: #a5eaff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stage-stream-glow-controls .stage-viz-switch > span { display: block; }
.stage-viz-geometry[data-mode="lic"] .stage-viz-lic-controls { display: grid; }
.stage-viz-geometry:not([data-mode="cutplane"]):not([data-mode="lic"]) > .stage-viz-plane,
.stage-viz-geometry:not([data-mode="cutplane"]):not([data-mode="lic"]) > label:has(#stageVizPosition) { display: none; }
.stage-viz-geometry label,
.stage-viz-field,
.stage-viz-solid,
.stage-viz-range label { display: grid; gap: 4px; color: rgba(213,233,240,.58); font-size: 9px; font-weight: 800; }
.stage-viz-geometry input[type="range"] { width: 100%; margin: 5px 0 0; accent-color: #72daf3; }
.stage-viz-geometry select,
.stage-viz-field select,
.stage-viz-range input {
  width: 100%;
  min-height: 30px;
  box-sizing: border-box;
  padding: 5px 7px;
  border: 1px solid rgba(144,190,207,.24);
  border-radius: 4px;
  color: #eaf8fc;
  background: #111f29;
  font: inherit;
  font-size: 10px;
}
.stage-viz-update { grid-column: 1 / -1; min-height: 34px; border: 1px solid rgba(128,219,242,.32); border-radius: 5px; color: #dff7fc; background: rgba(65,184,214,.1); font: inherit; font-size: 10px; font-weight: 900; cursor: pointer; }
.stage-viz-advanced { grid-column: 1 / -1; }
.stage-viz-advanced > summary,
.stage-viz-data-tools > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 6px 9px;
  color: rgba(222, 239, 246, 0.7);
  font-size: 9px;
  font-weight: 900;
}
.stage-viz-advanced-body { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 8px 8px; }
.stage-viz-live-note { color: rgba(190, 218, 228, 0.58); font-size: 8px; }
.stage-viz-edit-actions {
  position: sticky;
  bottom: -10px;
  z-index: 2;
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 2px -10px -10px;
  padding: 10px;
  border-top: 1px solid rgba(151, 194, 211, 0.16);
  background: rgba(8, 20, 29, 0.97);
}
.stage-viz-edit-actions button {
  min-width: 88px;
  min-height: 34px;
  border: 1px solid rgba(111, 221, 247, 0.5);
  border-radius: 5px;
  color: #061820;
  background: #76def7;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.analysis-stage-experience.is-results .analysis-stage-head,
.analysis-stage-experience.is-results .stage-import-target,
.analysis-stage-experience.is-results .stage-scale-reference,
.analysis-stage-experience.is-results .stage-wind-orbit,
.analysis-stage-experience.is-results .stage-context,
.analysis-stage-experience.is-results .stage-drop-shield {
  display: none !important;
}

.stage-result-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 10px;
  min-height: 55px;
  padding: 9px 10px 9px 13px;
  border-bottom: 1px solid rgba(151, 194, 211, 0.16);
}

.stage-result-head > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.stage-result-head small,
.stage-result-label {
  color: #7adcf5;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.stage-result-head strong {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-result-head button {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid rgba(162, 204, 221, 0.2);
  border-radius: 6px;
  color: #dff5fb;
  background: rgba(255, 255, 255, 0.05);
  font: inherit;
  font-size: 19px;
  cursor: pointer;
}

.stage-result-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-height: calc(100% - 55px);
  overflow-y: auto;
}

.stage-viz-data-tools {
  margin: 9px 10px 0;
  overflow: hidden;
}
.stage-viz-data-tools-body { display: grid; }
.stage-viz-data-tools .stage-result-section:last-child { border-bottom: 0; }

.stage-viz-workspace.is-collapsed .stage-result-content {
  display: none;
}

.stage-result-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid rgba(151, 194, 211, 0.14);
}

.stage-result-metrics > :is(span, button) {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px 11px;
}

.stage-result-metrics > :is(span, button) + :is(span, button) {
  border-left: 1px solid rgba(151, 194, 211, 0.14);
}

.stage-result-metrics > button {
  appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  pointer-events: auto;
}
.stage-result-metrics > button + :is(span, button) { border-left: 1px solid rgba(151, 194, 211, 0.14); }
.stage-result-metrics > button[data-coefficient-arrow="Cd"] { --force-color: #ff6269; --force-background: rgba(255, 52, 62, 0.15); }
.stage-result-metrics > button[data-coefficient-arrow="Cl"] { --force-color: #4eea95; --force-background: rgba(37, 228, 124, 0.13); }
.stage-result-metrics > button[data-add-visualization="mesh"] { --force-color: #6fddf7; --force-background: rgba(68, 183, 212, 0.2); }
.stage-result-metrics > button:hover:not(:disabled),
.stage-result-metrics > button[aria-pressed="true"] { background: var(--force-background); }
.stage-result-metrics > button[aria-pressed="true"] small { color: var(--force-color); }
.stage-result-metrics > button:focus-visible { outline: 2px solid var(--force-color); outline-offset: -3px; }
.stage-result-metrics > button:disabled { cursor: default; }

.stage-result-metrics small {
  color: rgba(213, 233, 240, 0.58);
  font-size: 9px;
  font-weight: 800;
}

.stage-result-metrics strong {
  overflow: hidden;
  color: #f7fcff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-result-section {
  display: grid;
  gap: 7px;
  padding: 12px;
  border-bottom: 1px solid rgba(151, 194, 211, 0.14);
}

.stage-viz-style { gap: 10px; }
.stage-viz-selection-name { overflow: hidden; color: #f4fbfe; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.stage-viz-color-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border: 1px solid rgba(146,190,207,.2); border-radius: 6px; background: rgba(255,255,255,.035); }
.stage-viz-color-mode button { min-height: 31px; border: 0; border-radius: 4px; color: rgba(224,239,246,.62); background: transparent; font: inherit; font-size: 10px; font-weight: 900; cursor: pointer; }
.stage-viz-color-mode button.is-active { color: #061820; background: #78ddf7; }
.stage-viz-palette { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.stage-viz-palette button { min-height: 32px; padding: 4px; border: 1px solid rgba(151,194,211,.18); border-radius: 5px; background: rgba(255,255,255,.035); cursor: pointer; }
.stage-viz-palette button.is-active { border-color: #83e5fb; box-shadow: 0 0 0 1px rgba(131,229,251,.25); }
.stage-viz-palette i { display: block; height: 15px; border-radius: 3px; }
.palette-turbo { background: linear-gradient(90deg,#30123b,#466be3,#28c9a6,#f9e721,#e34a33); }
.palette-viridis { background: linear-gradient(90deg,#440154,#3b528b,#21918c,#5ec962,#fde725); }
.palette-coolwarm { background: linear-gradient(90deg,#3b4cc0,#f7f7f7,#b40426); }
.palette-magma { background: linear-gradient(90deg,#000004,#51127c,#b73779,#fc8961,#fcfdbf); }
.palette-grayscale { background: linear-gradient(90deg,#171a1d,#f2f4f5); }
.palette-custom { background: linear-gradient(90deg,#30123b,#28c9a6,#e34a33); }
.stage-viz-color-stops { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.stage-viz-color-stops label { display: grid; gap: 3px; color: rgba(213,233,240,.58); font-size: 8px; font-weight: 800; }
.stage-viz-color-stops input[type="color"] { width: 100%; height: 27px; padding: 2px; border: 1px solid rgba(151,194,211,.24); border-radius: 4px; background: transparent; }
.stage-viz-style:not([data-palette="custom"]) .stage-viz-color-stops { opacity: .35; pointer-events: none; }
.stage-viz-solid { grid-template-columns: 1fr auto; align-items: center; }
.stage-viz-style .stage-viz-solid input[type="color"] { width: 78px !important; height: 30px; padding: 2px; border: 1px solid rgba(151,194,211,.24); border-radius: 4px; background: transparent; }
.stage-viz-solid input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.stage-viz-solid input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 2px; }
.stage-viz-range { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.stage-viz-transfer { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.stage-viz-transfer > label { display: grid; gap: 4px; color: rgba(213,233,240,.58); font-size: 9px; font-weight: 800; }
.stage-viz-transfer > label:last-child { grid-column: 1 / -1; }
.stage-viz-transfer select { width: 100%; min-height: 30px; box-sizing: border-box; padding: 4px 6px; border: 1px solid rgba(151,194,211,.24); border-radius: 4px; color: #eaf8fc; background: #111f29; font: inherit; font-size: 10px; }
.stage-viz-transfer input[type="range"] { width: 100%; accent-color: #73dcf7; }
.stage-viz-opacity-curve { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; min-width: 0; margin: 0; padding: 8px; border: 1px solid rgba(151,194,211,.18); border-radius: 5px; }
.stage-viz-opacity-curve legend { padding: 0 5px; color: rgba(219,240,247,.72); font-size: 9px; font-weight: 900; }
.stage-viz-opacity-curve label { display: grid; gap: 4px; color: rgba(213,233,240,.58); font-size: 8px; font-weight: 800; }
.stage-viz-opacity-curve input { width: 100%; accent-color: #73dcf7; }
.stage-viz-transfer output,
.stage-viz-opacity-curve output,
.stage-viz-lic-controls output { float: right; color: #8be7ff; font-variant-numeric: tabular-nums; }
.stage-viz-apply { min-height: 39px; border: 1px solid #8be8ff; border-radius: 5px; color: #061820; background: #7edff7; font: inherit; font-size: 11px; font-weight: 950; cursor: pointer; }
.stage-viz-style[data-color-mode="solid"] .stage-viz-field,
.stage-viz-style[data-color-mode="solid"] .stage-viz-palette,
.stage-viz-style[data-color-mode="solid"] .stage-viz-color-stops,
.stage-viz-style[data-color-mode="solid"] .stage-viz-range,
.stage-viz-style[data-color-mode="solid"] .stage-viz-transfer > label:not(:last-child),
.stage-viz-style[data-color-mode="solid"] .stage-viz-opacity-curve { opacity: .35; pointer-events: none; }
.stage-viz-style[data-color-mode="contour"] .stage-viz-solid { opacity: .35; pointer-events: none; }

.stage-measurement { gap: 9px; }
.stage-measurement-modes { display: grid; grid-template-columns: repeat(5,1fr); gap: 3px; padding: 3px; border: 1px solid rgba(146,190,207,.2); border-radius: 6px; background: rgba(255,255,255,.035); }
.stage-measurement-modes button { min-height: 30px; border: 0; border-radius: 4px; color: rgba(224,239,246,.62); background: transparent; font: inherit; font-size: 10px; font-weight: 900; cursor: pointer; }
.stage-measurement-modes button.is-active { color: #061820; background: #78ddf7; }
.stage-measurement > label,
.stage-measure-grid label { display: grid; gap: 4px; color: rgba(213,233,240,.58); font-size: 9px; font-weight: 800; }
.stage-measurement select,
.stage-measurement input { width: 100%; min-height: 29px; box-sizing: border-box; padding: 4px 6px; border: 1px solid rgba(144,190,207,.24); border-radius: 4px; color: #eaf8fc; background: #111f29; font: inherit; font-size: 10px; }
.stage-measure-grid { display: none; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.stage-measurement[data-measurement-type="probe"] .stage-measure-probe,
.stage-measurement[data-measurement-type="line"] .stage-measure-line,
.stage-measurement[data-measurement-type="section"] .stage-measure-section,
.stage-measurement[data-measurement-type="area"] .stage-measure-section,
.stage-measurement[data-measurement-type="volume"] .stage-measure-volume { display: grid; }
.stage-measure-run { min-height: 34px; border: 1px solid rgba(128,219,242,.4); border-radius: 5px; color: #dff7fc; background: rgba(65,184,214,.12); font: inherit; font-size: 10px; font-weight: 900; cursor: pointer; }
.stage-measure-result { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 8px; min-height: 34px; padding: 8px; border: 1px solid rgba(126,218,241,.16); border-radius: 5px; color: rgba(220,239,246,.72); background: rgba(3,12,18,.42); font-size: 9px; line-height: 1.35; }
.stage-measure-result strong { grid-column: 1 / -1; color: #8be7ff; font-size: 10px; }
.stage-measure-chart { display: none; width: 100%; height: 130px; border: 1px solid rgba(126,218,241,.16); border-radius: 5px; }
.stage-state-actions { grid-template-columns: 1.15fr 1fr 1fr; }
.stage-state-actions button { min-height: 34px; border: 1px solid rgba(151,194,211,.22); border-radius: 5px; color: rgba(229,243,248,.8); background: rgba(255,255,255,.04); font: inherit; font-size: 10px; font-weight: 850; cursor: pointer; }
.stage-state-actions .stage-export-glb { border-color: rgba(111,221,247,.46); color: #061820; background: #76def7; }
.stage-calculator { gap: 7px; }
.stage-calculator label { display: grid; gap: 4px; color: rgba(213,233,240,.58); font-size: 9px; font-weight: 800; }
.stage-calculator input { width: 100%; min-height: 30px; box-sizing: border-box; padding: 5px 7px; border: 1px solid rgba(144,190,207,.24); border-radius: 4px; color: #eaf8fc; background: #111f29; font: inherit; font-size: 10px; }
.stage-calculator small { color: rgba(210,231,238,.5); font-size: 8px; line-height: 1.4; }
.stage-calculator button { min-height: 33px; border: 1px solid rgba(128,219,242,.38); border-radius: 5px; color: #dff7fc; background: rgba(65,184,214,.12); font: inherit; font-size: 10px; font-weight: 900; cursor: pointer; }

.stage-result-views {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.stage-result-views button {
  min-width: 0;
  min-height: 34px;
  padding: 6px 5px;
  border: 1px solid rgba(151, 194, 211, 0.18);
  border-radius: 5px;
  color: rgba(224, 239, 246, 0.68);
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.stage-result-views button:hover,
.stage-result-views button.is-active {
  border-color: rgba(111, 221, 247, 0.66);
  color: #061820;
  background: #78ddf7;
}

.stage-new-analysis {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  margin: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(121, 226, 251, 0.7);
  border-radius: 6px;
  color: #061820;
  background: #7cdff7;
  font: inherit;
  cursor: pointer;
}

.stage-new-analysis span {
  font-size: 19px;
  line-height: 1;
}

.stage-new-analysis strong {
  font-size: 12px;
}

.stage-icon-button,
.stage-progress button,
.stage-context button,
.stage-import-target,
.stage-wind-handle,
.stage-exit-dialog button {
  font: inherit;
}

.stage-icon-button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(186, 217, 234, 0.22);
  border-radius: 50%;
  color: #eaf8ff;
  background: rgba(6, 17, 26, 0.72);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  font-size: 28px;
  line-height: 1;
  pointer-events: auto;
  cursor: pointer;
}

.stage-icon-button:hover {
  border-color: rgba(103, 217, 255, 0.72);
  background: rgba(12, 38, 50, 0.9);
}

.stage-identity {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.44);
}

.stage-kicker,
.stage-panel-index {
  color: #79d9f4;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.stage-identity strong {
  overflow: hidden;
  color: #f7fbfd;
  font-size: 18px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-progress {
  justify-self: end;
  display: grid;
  grid-template-columns: repeat(6, minmax(32px, 1fr));
  width: min(100%, 430px);
  pointer-events: auto;
}

.stage-progress button {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  color: rgba(227, 240, 246, 0.48);
  background: transparent;
  cursor: pointer;
}

.stage-progress button:disabled {
  cursor: default;
}

.stage-progress button span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(180, 209, 223, 0.28);
  border-radius: 50%;
  background: rgba(7, 19, 29, 0.76);
  font-size: 10px;
  font-weight: 900;
}

.stage-progress button i {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(143, 186, 205, 0.22);
}

.stage-progress button:first-child i { left: 50%; }
.stage-progress button:last-child i { right: 50%; }

.stage-progress button.is-current span,
.stage-progress button.is-complete span {
  border-color: #67d9ff;
  color: #04151c;
  background: #67d9ff;
  box-shadow: 0 0 0 4px rgba(103, 217, 255, 0.12);
}

.stage-progress button.is-complete i,
.stage-progress button.is-current i {
  background: rgba(103, 217, 255, 0.58);
}

.stage-import-target {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(460px, calc(100vw - 42px));
  min-height: 218px;
  padding: 28px;
  transform: translate(-50%, -48%);
  border: 1px solid rgba(132, 214, 239, 0.38);
  border-radius: 50%;
  color: #edfaff;
  background: rgba(5, 18, 27, 0.42);
  box-shadow: inset 0 0 0 10px rgba(63, 142, 168, 0.06), 0 28px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
  cursor: pointer;
  pointer-events: auto;
  will-change: left, top;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.stage-import-target:hover,
.stage-import-target:focus-visible,
.stage-import-target:active {
  transform: translate(-50%, -48%);
}

.stage-import-target:hover,
.stage-import-target:focus-visible {
  border-color: rgba(103, 217, 255, 0.85);
  background: rgba(5, 24, 35, 0.58);
}

.stage-import-mark {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  border: 2px solid #78def9;
  border-radius: 50%;
}

.stage-import-mark::before,
.stage-import-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #78def9;
  transform: translate(-50%, -50%);
}

.stage-import-mark::before { width: 18px; height: 2px; }
.stage-import-mark::after { width: 2px; height: 18px; }

.stage-import-target strong { font-size: 22px; }
.stage-import-target > span:not(.stage-import-mark) { color: rgba(229, 244, 250, 0.76); font-size: 14px; }
.stage-import-target small { max-width: 310px; color: rgba(203, 224, 234, 0.58); font-size: 11px; line-height: 1.45; }

.stage-scale-reference {
  position: absolute;
  right: 130px;
  top: 50%;
  z-index: 3;
  display: none;
  align-items: center;
  gap: 8px;
  transform: translateY(-50%);
  color: rgba(232, 247, 252, 0.72);
  font-size: 11px;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.analysis-stage-experience[data-stage="scale"] .stage-scale-reference,
.analysis-stage-experience[data-stage="orient"] .stage-scale-reference {
  display: flex;
}

.stage-scale-reference i {
  display: block;
  width: 1px;
  height: 82px;
  background: linear-gradient(180deg, transparent, #87dff6 15%, #87dff6 85%, transparent);
}

.stage-wind-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  display: none;
  width: min(58vw, 650px);
  aspect-ratio: 1;
  transform: translate(-50%, -53%) rotateX(58deg);
  border: 1px dashed rgba(109, 211, 241, 0.42);
  border-radius: 50%;
  box-shadow: 0 0 46px rgba(70, 189, 224, 0.08);
  pointer-events: none;
}

.stage-wind-orbit.is-visible { display: block; }

.stage-wind-axis {
  position: absolute;
  color: rgba(212, 237, 247, 0.48);
  font-size: 10px;
  font-weight: 900;
  transform: rotateX(-58deg);
}

.axis-x-positive { left: -24px; top: 50%; }
.axis-x-negative { right: -24px; top: 50%; }
.axis-z-positive { left: 50%; bottom: -17px; }
.axis-z-negative { left: 50%; top: -17px; }

.stage-wind-handle {
  position: absolute;
  width: 54px;
  height: 54px;
  padding: 0;
  transform: translate(-50%, -50%) rotateX(-58deg);
  border: 2px solid rgba(218, 249, 255, 0.96);
  border-radius: 50%;
  background: #42c6e4;
  box-shadow: 0 0 0 8px rgba(74, 202, 240, 0.14), 0 12px 28px rgba(0,0,0,0.34);
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
}

.stage-wind-handle:active { cursor: grabbing; }

.stage-wind-handle span {
  position: absolute;
  left: 11px;
  top: 25px;
  width: 25px;
  height: 2px;
  background: #08242e;
}

.stage-wind-handle i {
  position: absolute;
  right: 10px;
  top: 19px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid #08242e;
}

.stage-wind-orbit.is-vertical .stage-wind-handle { opacity: 0.36; }

.stage-context {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 7;
  display: grid;
  width: min(840px, calc(100vw - 36px));
  min-height: 130px;
  transform: translateX(-50%);
  border: 1px solid rgba(151, 196, 214, 0.24);
  border-radius: 8px;
  background: rgba(6, 16, 24, 0.88);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  overflow: hidden;
}

body.analysis-setup-mode .analysis-stage-experience:not(.is-results) {
  --setup-preview-reserve: clamp(180px, 32vh, 360px);
}

body.analysis-setup-mode .analysis-stage-experience:not(.is-results) .stage-context {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100% - var(--setup-preview-reserve) - 116px);
}

body.analysis-setup-mode .analysis-stage-experience:not(.is-results) .stage-panel.is-active {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.analysis-setup-mode .analysis-stage-experience:not(.is-results) .stage-navigation { flex-shrink: 0; }

@media (max-height: 650px) {
  body.analysis-setup-mode .analysis-stage-experience:not(.is-results) {
    --setup-preview-reserve: clamp(72px, 24vh, 150px);
  }
}

@media (max-width: 760px) and (max-height: 650px) {
  body.analysis-setup-mode .analysis-stage-experience:not(.is-results) .stage-object-manager { display: none; }
}

.stage-panel {
  display: none;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 78px;
  padding: 15px 18px 8px;
}

.stage-panel.is-active { display: grid; }

.stage-panel-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.stage-panel-copy strong {
  font-size: 16px;
  line-height: 1.25;
}

.stage-panel-copy small {
  overflow: hidden;
  color: rgba(215, 232, 240, 0.64);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(64px, 1fr);
  padding: 3px;
  border: 1px solid rgba(147, 192, 209, 0.22);
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
}

.stage-segmented button,
.stage-axis-directions button {
  min-height: 36px;
  padding: 6px 12px;
  border: 0;
  border-radius: 4px;
  color: rgba(224, 239, 246, 0.66);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.stage-segmented button.is-active,
.stage-axis-directions button.is-active {
  color: #061820;
  background: #78ddf7;
}

.stage-axis-directions button:disabled {
  color: rgba(224, 239, 246, 0.24);
  background: transparent;
  cursor: not-allowed;
  opacity: 0.55;
}

.stage-orient-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.stage-ground-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  cursor: pointer;
}

.stage-ground-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.stage-ground-toggle > span {
  position: relative;
  width: 42px;
  height: 22px;
  border: 1px solid rgba(151, 190, 207, 0.34);
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
}

.stage-ground-toggle > span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #b5c8d0;
  transition: transform 180ms ease, background 180ms ease;
}

.stage-ground-toggle input:checked + span {
  border-color: #62d5f2;
  background: rgba(55, 190, 226, 0.34);
}

.stage-ground-toggle input:checked + span::after {
  transform: translateX(20px);
  background: #86e7ff;
}

.stage-ground-toggle b {
  font-size: 12px;
}

.stage-ground-face-field {
  display: grid;
  grid-template-columns: auto minmax(118px, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 38px;
  color: rgba(224, 239, 246, 0.72);
  font-size: 11px;
  font-weight: 800;
}

.stage-ground-face-field select {
  min-height: 34px;
  padding: 5px 28px 5px 9px;
  border: 1px solid rgba(151, 190, 207, 0.3);
  border-radius: 5px;
  color: #e6f3f8;
  background: rgba(7, 24, 32, 0.92);
  font: inherit;
}

.stage-ground-face-field select:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.stage-quiet-button {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(154, 194, 211, 0.24);
  border-radius: 5px;
  color: rgba(227, 240, 246, 0.8);
  background: rgba(255,255,255,0.04);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.stage-wind-panel {
  grid-template-columns: minmax(150px, 1fr) minmax(246px, auto) auto;
  gap: 12px;
}
.stage-wind-values { display: grid; grid-template-columns: 106px 76px 84px; gap: 8px; }
.stage-wind-values [hidden] { display: none; }

.stage-axis-directions {
  display: grid;
  grid-template-columns: repeat(6, minmax(38px, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(146, 190, 207, 0.2);
  border-radius: 6px;
  background: rgba(255,255,255,0.035);
}

.stage-axis-directions button {
  min-width: 38px;
  padding-inline: 7px;
}

.stage-axis-directions button:focus-visible {
  outline: 2px solid #9cecff;
  outline-offset: 2px;
}

.stage-number-field {
  display: grid;
  gap: 4px;
  color: rgba(215, 234, 242, 0.64);
  font-size: 10px;
  font-weight: 800;
}

.stage-number-field > span:last-child {
  display: flex;
  align-items: center;
  gap: 4px;
}

.stage-number-field input,
.stage-number-field select {
  width: 62px;
  min-height: 34px;
  box-sizing: border-box;
  padding: 5px 7px;
  border: 1px solid rgba(139, 190, 210, 0.28);
  border-radius: 4px;
  outline: 0;
  color: #effbff;
  background: rgba(255,255,255,0.06);
  font: inherit;
  font-size: 12px;
}
.stage-number-field select { width: 100%; background: #102536; }

.stage-number-field b { color: rgba(221, 240, 247, 0.76); font-size: 10px; }

.stage-mesh-panel {
  grid-template-columns: minmax(220px, 0.88fr) minmax(310px, 1.12fr);
}

.stage-domain-panel {
  grid-template-columns: minmax(220px, 0.82fr) minmax(390px, 1.18fr);
}

.stage-domain-controls {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.stage-domain-mode { justify-self: end; }

.stage-domain-auto-note {
  color: rgba(215, 232, 240, 0.7);
  font-size: 10px;
  text-align: right;
}

.stage-domain-manual {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 5px 10px;
}

.stage-domain-manual[hidden] { display: none; }

.stage-domain-manual label {
  display: grid;
  grid-template-columns: 20px minmax(44px, 1fr) 84px;
  align-items: center;
  gap: 4px;
  color: rgba(225, 240, 247, 0.84);
  font-size: 10px;
}

.stage-domain-manual input[type="range"] { width: 100%; accent-color: #78ddf7; }

.stage-domain-number {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px;
}

.stage-domain-number input {
  width: 100%;
  min-width: 0;
  height: 25px;
  box-sizing: border-box;
  padding: 3px 4px;
  border: 1px solid rgba(135, 207, 230, 0.24);
  border-radius: 4px;
  color: #eefaff;
  background: #102536;
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.stage-domain-number b { color: rgba(188, 225, 237, 0.68); font-size: 9px; }

.stage-mesh-control {
  display: grid;
  gap: 5px;
}

.stage-mesh-advanced {
  margin-top: 2px;
  border-top: 1px solid rgba(135, 207, 230, 0.16);
  color: rgba(220, 240, 247, 0.84);
}

.stage-mesh-advanced summary {
  padding: 6px 0 2px;
  color: rgba(166, 222, 240, 0.8);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.stage-mesh-advanced-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 6px 8px;
  padding-top: 5px;
}

.stage-mesh-primary label,
.stage-solver-controls label,
.stage-mesh-advanced-grid label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: rgba(220, 239, 246, 0.7);
  font-size: 9px;
}

.stage-mesh-primary label > span,
.stage-solver-controls label > span,
.stage-mesh-advanced-grid label > span { grid-column: 1 / -1; }
.stage-mesh-primary input,
.stage-solver-controls select,
.stage-mesh-advanced-grid input,
.stage-mesh-advanced-grid select {
  width: 100%;
  min-width: 0;
  height: 26px;
  padding: 3px 6px;
  border: 1px solid rgba(135, 207, 230, 0.22);
  border-radius: 4px;
  color: #eefaff;
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
}

.stage-solver-controls select,
.stage-mesh-advanced-grid select {
  color-scheme: dark;
  color: #eefaff;
  background-color: #102536;
}

.stage-solver-controls select option,
.stage-mesh-advanced-grid select option {
  color: #eefaff;
  background: #102536;
}

.stage-mesh-advanced-grid input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  padding: 0;
  justify-self: start;
  accent-color: #5bc7ec;
}

.stage-mesh-advanced-grid b { color: rgba(188, 225, 237, 0.62); font-size: 9px; }

.stage-mesh-readout,
.stage-range-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.stage-mesh-readout strong { color: #f2fbff; font-size: 14px; }
.stage-mesh-readout span {
  padding: 3px 7px;
  border: 1px solid rgba(131, 218, 244, 0.28);
  border-radius: 4px;
  color: #86e5ff;
  background: rgba(52, 176, 211, 0.1);
  font-size: 10px;
  font-weight: 900;
}
.stage-mesh-readout span.is-distributed { color: #ffd68d; border-color: rgba(255, 190, 87, 0.34); background: rgba(255, 166, 42, 0.1); }

#stageMeshRange {
  width: 100%;
  height: 20px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: ew-resize;
}

#stageMeshRange::-webkit-slider-runnable-track {
  height: 7px;
  border-radius: 4px;
  background: linear-gradient(90deg, #51cce9 0 var(--stage-range-progress, 21.2%), rgba(148, 186, 202, 0.2) var(--stage-range-progress, 21.2%) 100%);
}

#stageMeshRange::-webkit-slider-thumb {
  width: 19px;
  height: 19px;
  margin-top: -6px;
  appearance: none;
  border: 3px solid #071b24;
  border-radius: 50%;
  background: #8be9ff;
  box-shadow: 0 0 0 1px rgba(139, 233, 255, 0.8), 0 3px 9px rgba(0,0,0,0.32);
}

.stage-range-labels { color: rgba(205, 226, 235, 0.5); font-size: 9px; font-weight: 800; }

.stage-mesh-diagnostic {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding-top: 5px;
  border-top: 1px solid rgba(135, 207, 230, 0.14);
}

.stage-mesh-preview small {
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 10px;
}

.stage-mesh-preview button:disabled {
  opacity: 0.55;
  cursor: progress;
}

.stage-preview-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.stage-preview-state {
  padding: 3px 6px;
  border: 1px solid currentColor;
  border-radius: 3px;
  color: #b8c9d0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.stage-preview-state[data-state="building"] { color: #8be9ff; background: #143441; }
.stage-preview-state[data-state="current"] { color: #98e7ba; background: #16382c; }
.stage-preview-state[data-state="stale"] { color: #ffda8c; background: #3d321d; }
.stage-preview-state[data-state="invalid"],
.stage-preview-state[data-state="error"] { color: #ffb5b5; background: #40272b; }

.stage-mesh-issues[hidden] { display: none; }
.stage-mesh-issues p {
  margin: 4px 0;
  padding: 6px 8px;
  border-left: 2px solid #e8c176;
  color: #ffe1a4;
  background: rgba(124, 87, 24, 0.14);
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.stage-mesh-issues p[data-severity="error"] { color: #ffc4c4; border-color: #ed9393; background: rgba(159, 60, 60, 0.12); }
.stage-mesh-issues p[data-severity="info"] { color: #b9d8e6; border-color: #7cbbd1; background: rgba(63, 129, 154, 0.1); }

.stage-mesh-diagnostic > div {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.stage-mesh-diagnostic strong {
  overflow: hidden;
  color: rgba(231, 247, 252, 0.9);
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-mesh-diagnostic small {
  overflow: hidden;
  color: rgba(193, 220, 230, 0.56);
  font-size: 8px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#stageMeshCapacityTitle,
#stageMeshCapacityDetail {
  white-space: normal;
  overflow-wrap: anywhere;
}

#stageMeshCapacityDetail { font-size: 10px; line-height: 1.4; }

.stage-mesh-diagnostic button {
  min-height: 27px;
  padding: 4px 8px;
  border: 1px solid rgba(116, 218, 244, 0.36);
  border-radius: 4px;
  color: #bcefff;
  background: rgba(48, 166, 199, 0.1);
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.stage-mesh-diagnostic button:hover:not(:disabled) {
  border-color: rgba(116, 218, 244, 0.7);
  background: rgba(48, 166, 199, 0.2);
}

.stage-mesh-diagnostic button:disabled { cursor: wait; opacity: 0.58; }
.stage-mesh-diagnostic[data-state="ready"] strong { color: #8ceaff; }
.stage-mesh-diagnostic[data-state="error"] strong,
.stage-mesh-diagnostic[data-state="unavailable"] strong { color: #ffd08a; }

.stage-ready-panel {
  grid-template-columns: minmax(230px, 1fr) auto;
}

.stage-navigation .stage-run-button { display: none; }
.analysis-stage-experience[data-stage="ready"] .stage-navigation { grid-template-columns: 76px minmax(0, 1fr) 140px; min-height: 58px; }
.analysis-stage-experience[data-stage="ready"] .stage-navigation .stage-run-button { display: inline-flex; grid-column: 3; grid-row: 1; justify-self: end; }

.stage-analysis-mode { grid-auto-columns: minmax(82px, 1fr); }

.stage-duration-controls {
  grid-column: 1 / -1;
  display: grid;
  gap: 9px;
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(135, 207, 230, 0.18);
}
.stage-error-reporting { padding-top: 10px; border-top: 1px solid rgba(135, 207, 230, 0.18); min-width: 0; }
.stage-error-reporting label { display: flex; align-items: center; gap: 9px; width: fit-content; color: #e2f4fa; font-size: 12px; cursor: pointer; }
.stage-error-reporting input { width: 18px; height: 18px; margin: 0; accent-color: #71d9e9; flex-shrink: 0; }
.stage-error-reporting p { margin: 7px 0 0; color: #adc9d4; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.stage-duration-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stage-duration-heading > strong { font-size: 12px; color: #dceff6; }
.stage-duration-heading .stage-segmented { width: auto; grid-auto-columns: minmax(76px, 1fr); }
.stage-duration-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.stage-duration-fields[hidden], #stageDurationError[hidden] { display: none; }
.stage-duration-fields label { display: grid; gap: 5px; min-width: 0; }
.stage-duration-fields label > span { font-size: 11px; color: #adc9d4; }
.stage-duration-fields input, .stage-duration-fields select {
  box-sizing: border-box;
  width: 100%; min-width: 0; min-height: 34px;
  padding: 6px 9px; border: 1px solid #395c6a; border-radius: 5px;
  font: inherit; font-size: 12px; letter-spacing: 0; color: #eefaff; background: #102536;
}
.stage-duration-fields select option { color: #eefaff; background: #102536; }
.stage-duration-fields input[aria-invalid="true"] { border-color: #ee9d81; }
#stageDurationSummary { font-size: 11px; color: #99deeb; overflow-wrap: anywhere; }
#stageDurationError { margin: 0; color: #ffb8a3; font-size: 11px; overflow-wrap: anywhere; }
.stage-run-button:disabled { opacity: 0.5; cursor: not-allowed; }

@media (max-height: 600px) {
  .analysis-stage-experience:not(.is-results)[data-stage="ready"] .stage-object-manager { display: none; }
  .analysis-stage-experience[data-stage="ready"] .stage-context {
    max-height: max(150px, calc(100% - 120px));
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .analysis-stage-experience[data-stage="ready"] .stage-ready-panel {
    min-height: 0;
    overflow-y: auto;
    align-content: start;
  }
}

.stage-auto-model {
  display: block;
  margin-top: 4px;
  color: #8fe8ff !important;
  font-size: 10px !important;
  font-weight: 800;
}

.stage-run-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 132px;
  min-height: 46px;
  padding: 8px 17px;
  border: 1px solid #91e9ff;
  border-radius: 6px;
  color: #031219;
  background: #79def7;
  box-shadow: 0 10px 26px rgba(62, 192, 226, 0.24);
  font-weight: 950;
  cursor: pointer;
}

.stage-run-button i {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #031219;
}

.stage-navigation {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 122px;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-top: 1px solid rgba(142, 185, 202, 0.15);
}

.stage-navigation > span {
  overflow: hidden;
  color: rgba(209, 229, 237, 0.56);
  font-size: 10px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-back-button,
.stage-confirm-button {
  min-height: 32px;
  border: 0;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.stage-back-button {
  justify-self: start;
  color: rgba(226, 240, 246, 0.72);
  background: transparent;
}

.stage-confirm-button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 112px;
  color: #071820;
  background: #86e4fa;
}

.stage-confirm-button b {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #86e4fa;
  background: #0a2833;
  font-size: 11px;
}

.stage-drop-shield {
  position: absolute;
  inset: 18px;
  z-index: 20;
  display: none;
  place-content: center;
  justify-items: center;
  gap: 8px;
  border: 2px dashed rgba(123, 225, 255, 0.82);
  border-radius: 8px;
  color: #effcff;
  background: rgba(4, 21, 29, 0.88);
  backdrop-filter: blur(12px);
}

.analysis-stage-experience.is-file-over .stage-drop-shield { display: grid; }
.stage-drop-shield strong { font-size: 24px; }
.stage-drop-shield span { color: #7fe5ff; font-weight: 900; }

.stage-exit-dialog {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(1, 7, 11, 0.68);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.stage-exit-dialog.is-open { display: grid; }

.stage-exit-dialog > div {
  width: min(440px, calc(100vw - 36px));
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid rgba(150, 204, 224, 0.26);
  border-radius: 8px;
  background: #0b1821;
  box-shadow: 0 28px 80px rgba(0,0,0,0.44);
}

.stage-exit-dialog h2 { margin: 6px 0 8px; font-size: 22px; }
.stage-exit-dialog p { margin: 0; color: rgba(218,235,242,0.66); font-size: 13px; line-height: 1.5; }
.stage-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.stage-dialog-actions button { min-height: 36px; padding: 7px 12px; border: 1px solid rgba(146,190,207,0.24); border-radius: 5px; color: #dceff6; background: rgba(255,255,255,0.05); cursor: pointer; }
.stage-dialog-actions button.primary { border-color: #7ddff8; color: #061820; background: #7ddff8; font-weight: 900; }

.analysis-stage-experience.is-running .analysis-stage-head,
.analysis-stage-experience.is-running .stage-context,
.analysis-stage-experience.is-running .stage-wind-orbit,
.analysis-stage-experience.is-running .stage-scale-reference {
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

@media (max-width: 760px) {
  .stage-scene-toolbar {
    max-width: none;
    padding: 2px;
    gap: 2px;
  }
  .stage-scene-toolbar button { min-height: 20px; height: 20px; padding: 2px 5px; }
  .stage-scene-toolbar button > strong { display: none; }
  .stage-scene-toolbar .stage-toolbar-distributed > strong { display: inline; }
  .stage-scene-toolbar .stage-toolbar-share > strong { display: inline; }
  .stage-toolbar-share em { display: none; }
  .stage-toolbar-divider { margin: 0; }
  .analysis-stage-experience[data-stage="domain"] .stage-object-manager { display: none; }

  .stage-viz-workspace {
    left: 8px;
    bottom: 8px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: calc(100vw - 16px);
    height: min(58vh, 472px);
  }

  .analysis-stage-experience.is-results .stage-object-manager { top: 52px; left: 8px; width: calc(50vw - 12px); max-height: 32vh; }
  .analysis-stage-experience.is-results .stage-object-manager { grid-template-rows: 42px auto auto auto minmax(36px, 1fr); max-height: 45vh; }
  .stage-object-manager .stage-viz-panel-head { min-height: 42px; }
  .analysis-stage-experience.is-results .stage-case-tree { max-height: 110px; }
  .stage-object-manager .stage-viz-layer-list { min-height: 36px; }
  .stage-result-save { padding: 5px 7px 8px; }
  .stage-result-save-options > button { font-size: 11px; gap: 5px; }
  .analysis-stage-experience.is-results .stage-result-metrics-overlay { top: 52px; right: 8px; width: calc(50vw - 12px); }
  .stage-result-metrics-overlay .stage-result-metrics > :is(span, button) { padding: 9px 6px; }
  .stage-result-metrics-overlay .stage-result-metrics strong { font-size: 11px; }
  .analysis-stage-experience.is-results .stage-viz-launcher { left: 8px; bottom: 8px; }

  .stage-viz-browser {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(72px, 1fr) auto;
    overflow-y: auto;
  }

  .stage-flow-submenu { top: calc(100% + 5px); left: 0; width: 100%; }
  .stage-viz-add { grid-template-columns: 1fr; overflow: visible; border-right: 0; border-bottom: 1px solid rgba(151, 194, 211, 0.14); }
  .stage-viz-add > button,
  .stage-flow-menu-trigger { min-height: 31px; }
  .stage-viz-layer-list { max-height: 104px; border-right: 0; border-bottom: 1px solid rgba(151, 194, 211, 0.14); }
  .stage-viz-geometry { grid-template-columns: 1fr 1fr; }
  .stage-viz-six-grid,
  .stage-viz-threshold-grid,
  .stage-viz-stream-controls { grid-template-columns: 1fr 1fr; }
  .stage-viz-geometry > .stage-result-label,
  .stage-viz-update { grid-column: 1 / -1; }
  .stage-viz-geometry label { min-width: 0; }
  .stage-result-content { max-height: calc(100% - 55px); }

  .stage-result-metrics > :is(span, button) {
    padding: 10px 8px;
  }

  .stage-result-section {
    padding: 10px;
  }

  .analysis-stage-head {
    top: 10px;
    left: 10px;
    right: 92px;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 9px;
  }

  .stage-icon-button { width: 34px; height: 34px; font-size: 24px; }
  .stage-identity strong { font-size: 14px; }
  .stage-progress { grid-column: 1 / -1; justify-self: stretch; width: 100%; }
  .stage-progress button span { width: 20px; height: 20px; }
  .stage-progress button i { top: 10px; }
  .stage-import-target { min-height: 190px; padding: 22px; border-radius: 46%; }
  .stage-import-target strong { font-size: 18px; }
  .stage-context { bottom: 8px; width: calc(100vw - 16px); min-height: 176px; }
  .stage-panel,
  .stage-panel.is-active,
  .stage-wind-panel,
  .stage-mesh-panel,
  .stage-domain-panel,
  .stage-ready-panel {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 116px;
    padding: 12px 12px 8px;
  }
  .stage-panel-copy small { white-space: normal; }
  .stage-segmented { width: 100%; box-sizing: border-box; }
  .stage-orient-actions { justify-content: space-between; }
  .stage-ground-face-field { flex: 1 1 180px; }
  .stage-wind-panel { grid-template-columns: 1fr 1fr; }
  .stage-wind-panel .stage-panel-copy { grid-column: 1 / -1; }
  .stage-wind-values { grid-column: 1 / -1; order: 3; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stage-axis-directions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    order: 2;
  }
  .stage-number-field { order: 3; }
  .stage-mesh-control { min-width: 0; }
  .stage-mesh-diagnostic small { white-space: normal; }
  .stage-mesh-advanced-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-domain-mode { justify-self: stretch; }
  .stage-domain-auto-note { text-align: left; }
  .stage-domain-manual { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-ready-panel { grid-template-columns: 1fr auto; }
  .stage-ready-panel .stage-panel-copy { grid-column: 1 / -1; }
  .stage-run-button { min-width: 128px; }
  .stage-navigation { grid-template-columns: 76px minmax(0, 1fr) 88px; padding: 0 7px; }
  .stage-navigation > span { display: none; }
  .stage-confirm-button { min-width: 82px; }
  .stage-confirm-button span { display: none; }
  .stage-wind-orbit { width: min(95vw, 520px); }
  .stage-scale-reference { right: 96px; top: 44%; }
}

@media (max-height: 650px) {
  .stage-context { bottom: 6px; }
  .stage-panel { min-height: 66px; padding-top: 9px; }
  .stage-navigation { min-height: 36px; }
  .stage-import-target { top: 46%; min-height: 176px; }
}

@media (prefers-reduced-motion: reduce) {
  .analysis-stage-experience *,
  .analysis-stage-experience *::before,
  .analysis-stage-experience *::after { transition: none !important; animation: none !important; }
}

.analysis-stage-experience[data-stage="mesh"] .stage-context {
  display: flex;
  flex-direction: column;
  width: min(1120px, calc(100vw - 36px));
  max-height: calc(100% - 102px);
}
.analysis-stage-experience[data-stage="mesh"] .stage-mesh-panel.is-active {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 14px;
}
.analysis-stage-experience[data-stage="mesh"] .stage-navigation { flex-shrink: 0; }
.stage-mesh-domain-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.stage-mesh-domain-layout .stage-mesh-control { align-content: start; }
.stage-mesh-primary { display: grid; grid-template-columns: minmax(0, 1fr); padding-top: 10px; }
.stage-mesh-primary label, .stage-solver-controls label { font-size: 11px; }
.stage-mesh-primary input, .stage-solver-controls select { height: 34px; font-size: 12px; }
.stage-mesh-advanced-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stage-mesh-domain-layout .stage-domain-controls { gap: 10px; border-left: 1px solid rgba(151, 196, 214, .18); padding-left: 24px; }
.stage-domain-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stage-domain-heading > strong { font-size: 13px; }
#stageDomainDimensions, #stageDomainGridSummary { color: #b6d6e2; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.stage-domain-alignment { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 11px; font-variant-numeric: tabular-nums; }
.stage-domain-alignment caption { padding: 5px 0; text-align: left; font-size: 12px; font-weight: 700; }
.stage-domain-alignment th, .stage-domain-alignment td { padding: 7px 4px; border-bottom: 1px solid rgba(151, 196, 214, .12); text-align: right; overflow-wrap: anywhere; }
.stage-domain-alignment th:first-child { width: 18%; text-align: left; }
.stage-domain-alignment thead { color: #9fb9c6; font-size: 10px; }
.stage-domain-alignment [data-domain-aligned] { color: #8ceaff; font-weight: 700; }
.stage-domain-alignment [data-domain-change] { color: #b8c9d2; }
.stage-domain-bounds summary { color: #9fb9c6; font-size: 11px; cursor: pointer; }
.stage-domain-controls #stageDomainAlignmentError { margin: 0; color: #ffadb0; font-size: 11px; line-height: 1.5; }
.stage-domain-controls [aria-invalid="true"] { border-color: #ff8e96; }
.stage-domain-size { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 4px 0; }
.stage-domain-size dt { color: #9fb9c6; font-size: 11px; }
.stage-domain-size dd { margin: 4px 0 0; color: #8ceaff; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stage-domain-adjustments > summary { padding: 5px 0; }
.stage-domain-adjustments > .stage-domain-bounds { margin-top: 10px; }
.stage-confirm-button:disabled { opacity: .4; cursor: default; }
.stage-preview-button[hidden] { display: none; }
.stage-navigation .stage-confirm-button {
  box-sizing: border-box;
  height: 40px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
  transform: none;
}
.stage-navigation button { transform: none; }
.analysis-stage-experience[data-stage="mesh"] .stage-navigation {
  grid-template-columns: 76px minmax(0, 1fr) 142px 122px;
  gap: 10px;
  min-height: 52px;
}
.analysis-stage-experience[data-stage="mesh"] .stage-preview-button {
  width: 100%;
  min-width: 0;
}
@media (max-width: 760px) {
  .analysis-stage-experience[data-stage="mesh"] .stage-navigation {
    grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
  }
  .analysis-stage-experience[data-stage="mesh"] .stage-back-button { font-size: 0; }
  .analysis-stage-experience[data-stage="mesh"] .stage-back-button span { font-size: 16px; }
  .analysis-stage-experience[data-stage="mesh"] .stage-confirm-button { width: 100%; min-width: 0; padding: 8px 6px; gap: 5px; font-size: 11px; }
  .analysis-stage-experience[data-stage="mesh"] .stage-confirm-button span { display: inline; }
}
.analysis-stage-experience[data-stage="ready"] .stage-context { display: flex; flex-direction: column; width: min(840px, calc(100vw - 36px)); max-height: calc(100% - 102px); }
.analysis-stage-experience[data-stage="ready"] .stage-ready-panel.is-active { display: flex; flex-direction: column; align-items: stretch; gap: 14px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.analysis-stage-experience[data-stage="ready"] .stage-navigation { flex-shrink: 0; }
.stage-solver-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stage-analysis-mode-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.stage-analysis-mode-row > strong { font-size: 12px; }
.stage-solver-summary { min-width: 0; padding-top: 10px; border-top: 1px solid rgba(151, 196, 214, .18); font-size: 11px; }
.stage-solver-summary summary { color: #adc9d4; cursor: pointer; }
.stage-solver-summary small { display: block; overflow-wrap: anywhere; margin-top: 8px; }
.stage-solver-summary dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 10px 0; }
.stage-solver-summary dt { color: #9fb9c6; }
.stage-solver-summary dd { margin: 4px 0 0; color: #e2f4fa; }
@media (max-width: 760px) {
  .analysis-stage-experience[data-stage="mesh"] .stage-context { width: calc(100vw - 16px); max-height: calc(100% - 92px); }
  .analysis-stage-experience[data-stage="ready"] .stage-context { width: calc(100vw - 16px); max-height: calc(100% - 92px); }
  .stage-mesh-domain-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .stage-mesh-domain-layout .stage-domain-controls { border-left: 0; border-top: 1px solid rgba(151, 196, 214, .18); padding: 14px 0 0; }
  .analysis-stage-experience:not(.is-results)[data-stage="mesh"] .stage-object-manager { display: none; }
  .analysis-stage-experience:not(.is-results)[data-stage="ready"] .stage-object-manager { display: none; }
}
@media (max-height: 650px) {
  .analysis-stage-experience:not(.is-results)[data-stage="mesh"] .stage-object-manager { display: none; }
}
@media (max-width: 760px), (max-height: 650px) {
  body.mesh-inspection-visible .analysis-stage-experience[data-stage="mesh"] .stage-context,
  body.mesh-inspection-visible .analysis-stage-experience[data-stage="ready"] .stage-context {
    max-height: calc(100dvh - var(--mesh-panel-reserved-top, 192px) - 8px);
  }
  body.analysis-setup-mode.mesh-inspection-visible .analysis-stage-experience:not(.is-results) .stage-context {
    max-height: min(calc(100% - var(--setup-preview-reserve) - 116px), calc(100dvh - var(--mesh-panel-reserved-top, 192px) - 8px));
  }
}

@media (max-width: 760px) {
  .stage-viz-workspace[data-panel-mode="create"],
  .stage-viz-workspace[data-panel-mode="edit"] {
    top: auto;
    left: 8px;
    right: auto;
    bottom: 8px;
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .stage-viz-workspace[data-panel-mode="create"] { grid-template-columns: 1fr; }
  .stage-viz-workspace[data-panel-mode="create"].is-guided {
    height: min(620px, calc(100vh - 16px));
    overflow: hidden;
  }
  .stage-viz-workspace[data-panel-mode="create"] .stage-viz-add { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-viz-workspace[data-panel-mode="edit"] {
    grid-template-columns: 1fr;
    height: min(680px, calc(100vh - 16px));
    overflow-y: auto;
  }
  .stage-viz-workspace[data-panel-mode="edit"] .stage-viz-browser,
  .stage-viz-workspace[data-panel-mode="edit"] .stage-result-inspector { min-height: min(430px, calc(100vh - 32px)); }
  .stage-viz-guide-step { grid-template-columns: 1fr; }
  .stage-viz-guide-step label { grid-column: 1; }
  .stage-viz-method-grid,
  .stage-viz-flow-kind-grid,
  .stage-viz-flow-color-grid,
  .stage-viz-plane-grid,
  .stage-viz-field-grid,
  .stage-viz-field-grid.is-compact,
  .stage-viz-appearance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-viz-method-grid[data-viz-category-only="iso"] > button:last-child { grid-column: 1 / -1; }
  .stage-viz-method-grid > button,
  .stage-viz-flow-kind-grid > button,
  .stage-viz-flow-color-grid > button { min-height: 88px; }
  .stage-state-actions { grid-template-columns: 1fr; }
}

/* Visualization color controls share the existing rendering transfer map. */
.stage-color-tabs { display: flex; flex-wrap: wrap; grid-column: 1 / -1; gap: 0; border-bottom: 1px solid rgba(140,185,199,.22); }
.stage-color-tabs > button { flex: 0 1 auto; min-height: 38px; padding: 8px 14px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #abbfc7; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; }
.stage-color-tabs > button[aria-selected="true"] { color: #8be6f8; border-bottom-color: #71dbed; background: transparent; }
.stage-color-tabs > button:hover { color: #fff; }
.stage-color-tabs > button:focus-visible,
.stage-palette-options > button:focus-visible { outline: 2px solid #a7effc; outline-offset: -3px; }
.stage-palette-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.stage-palette-options > button,
.stage-viz-style .stage-viz-palette > button { display: grid; grid-template-columns: minmax(64px,auto) minmax(0,1fr); align-items: center; gap: 10px; width: 100%; min-width: 0; height: auto; min-height: 40px; padding: 8px 10px; border: 1px solid rgba(140,185,199,.22); border-radius: 4px; background: transparent; color: #c9dce3; text-align: left; font: inherit; font-size: 11px; cursor: pointer; }
.stage-palette-options > button[aria-checked="true"],
.stage-viz-style .stage-viz-palette > button[aria-checked="true"] { border-color: #69cddd; background: rgba(67,160,176,.09); }
.stage-palette-options i,
.stage-viz-style .stage-viz-palette i { display: block; width: 100%; height: 16px; border: 1px solid rgba(234,247,252,.22); border-radius: 2px; }
.stage-viz-style .stage-viz-palette { display: grid; grid-template-columns: 1fr; }
.stage-viz-style .stage-viz-field,
.stage-viz-color-mode[hidden],
.stage-viz-guide select[hidden] { display: none !important; }
.stage-viz-guide-palette { padding: 0; background: none; border: 0; }
.stage-viz-iso-level > label { display: flex; justify-content: space-between; gap: 8px; }
.stage-viz-iso-level input[type="number"] { box-sizing: border-box; width: 100%; min-height: 36px; padding: 6px 9px; border: 1px solid #456271; border-radius: 4px; color: #e9f4f8; background: #101d27; font: inherit; }
.stage-viz-iso-level input[aria-invalid="true"] { border-color: #f38d88; }
.scalar-legend { box-sizing: border-box; max-height: calc(100dvh - 16px); overflow-y: auto; border-radius: 6px; background: rgba(10,23,31,.94); }
.scalar-legend-head { cursor: grab; touch-action: none; user-select: none; grid-template-columns: minmax(0,1fr) auto auto; }
.scalar-legend-head:active { cursor: grabbing; }
.scalar-legend-title { min-width: 0; overflow-wrap: anywhere; letter-spacing: 0; }
#scalarLegendHideBtn { font-size: 16px; }
@media (max-width: 640px) {
  .stage-palette-options { grid-template-columns: 1fr; }
  .stage-color-tabs > button { padding: 8px 10px; }
}

/* Public-result album. Numerical and simulation surfaces are untouched. */
#openingScreen.has-public-album { height: 100dvh; overflow: hidden; background: #090d11; color: #eef6f8; }
#openingScreen.has-public-album > .opening-panel,
#openingScreen.has-public-album > #topPreviewCanvas,
#openingScreen.has-public-album > #topPreviewInfo,
#openingScreen.has-public-album > #topLearnMore { display: none !important; }
.public-result-album { position: relative; z-index: 2; isolation: isolate; display: grid; grid-template-rows: auto auto minmax(0,1fr) auto auto; height: 100%; min-height: 0; padding-top: 54px; box-sizing: border-box; overflow: hidden; }
.album-head { grid-row: 1; }
.album-intro { grid-row: 2; }
.album-about-title { color: inherit; text-decoration: none; }
.album-about-title:focus-visible { outline: 2px solid #72dbee; outline-offset: 5px; }
.album-bottom-links { display: flex; align-items: center; gap: 12px; }
.album-about-link { text-decoration: none; }
.album-stage { grid-row: 3; }
.album-controls { grid-row: 4; }
.album-bottom { grid-row: 5; }
.album-material-canvas { position: absolute; z-index: -1; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.has-material-surface .album-reflection { visibility: hidden; }
.public-result-album *, .album-more *, .album-viewer *, .album-auth * { box-sizing: border-box; letter-spacing: 0; }
.public-result-album button, .album-more button, .album-viewer button { box-shadow: none; }
.public-result-album button:hover, .album-more button:hover, .album-viewer button:hover { transform: none; box-shadow: none; }
.public-result-album .album-text-button, .public-result-album .album-dot, .album-more-item { border-radius: 0; }
.album-brand img[hidden] { display: none; }
.album-head { display: flex; align-items: center; justify-content: space-between; width: min(1280px, calc(100% - 80px)); min-height: 44px; margin: 0 auto; gap: 16px; }
.album-brand { display: flex; align-items: center; gap: 10px; color: #eaf3f5; font: 650 22px/1.2 Arial,sans-serif; white-space: nowrap; }
.album-brand img { width: 32px; height: 32px; object-fit: contain; filter: invert(1); mix-blend-mode: screen; }
.album-head-actions { display: flex; align-items: center; gap: 16px; }
.album-text-button, .album-primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 38px; padding: 8px 10px; border: 0; background: transparent; color: #bbcbd1; font: 500 13px/1.3 Arial,sans-serif; cursor: pointer; }
.album-text-button:hover { color: #8ce5eb; }
.album-primary-button { padding: 9px 16px; border: 1px solid #35616a; border-radius: 6px; background: #14272e; color: #d6f8fa; }
.album-primary-button:hover { background: #1b353d; border-color: #69bcc7; }
.album-primary-button svg { width: 17px; height: 17px; }
.album-icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 38px; height: 38px; padding: 8px; border: 1px solid #35434b; border-radius: 6px; color: #d2e1e6; background: #172127; cursor: pointer; text-decoration: none; }
.album-icon-button svg { width: 19px; height: 19px; stroke-width: 1.5; }
.album-icon-button:hover { color: #a0eff4; border-color: #6babb8; background: #1c3038; }
.album-icon-button:disabled { opacity: .28; cursor: default; }
.public-result-album :focus-visible, .album-more :focus-visible, .album-viewer :focus-visible { outline: 2px solid #92edf1; outline-offset: 5px; }
.album-intro { padding: 30px 20px 18px; text-align: center; }
.album-kicker { display: block; color: #70bdc4; font: 600 10px/1.4 Arial,sans-serif; }
#openingScreen.has-public-album .album-intro h1 { margin: 8px 0 7px; color: #eef6f8; font: 500 48px/1.12 Arial,sans-serif; letter-spacing: 0; }
.album-subtitle { margin: 0; color: #b1c1c8; font: 400 16px/1.5 Arial,sans-serif; }
.album-library-count { display: block; margin-top: 7px; color: #6d858f; font: 400 11px/1.4 Arial,sans-serif; }
.album-stage { --album-card-width: 580px; --album-card-height: 362px; --album-floor-space: 130px; --album-track-top: 22px; position: relative; width: 100%; min-height: 0; perspective: 1600px; perspective-origin: 50% 36%; touch-action: pan-y; outline: none; }
.album-track { position: absolute; inset: 22px 0 auto; margin: 0; padding: 0; height: var(--album-card-height); list-style: none; transform-style: preserve-3d; }
.album-foreground-title { position: absolute; z-index: 35; left: 50%; box-sizing: border-box;
  width: min(var(--album-card-width), calc(100% - 32px)); padding: 0 0 10px 12px;
  transform: translate3d(-50%, -100%, 0); transform-style: preserve-3d; transform-origin: left bottom;
  text-align: left; pointer-events: none; color: #f7fcff;
  font: italic 800 38px/1.08 Arial,sans-serif; overflow: hidden; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  text-shadow: 0 1px #fff, 0 2px #d8e6ec, 0 4px #9eafb9, 0 6px #697a84, 0 8px #303c45,
    0 10px 13px #000c, 0 0 18px #d9f6ff55; }
.album-card { position: absolute; top: 0; left: 50%; width: var(--album-card-width); height: var(--album-card-height); transform: translate3d(calc(-50% + var(--album-x)),var(--album-y),var(--album-z)) rotateY(var(--album-rotation)) scale(var(--album-scale)); transform-style: preserve-3d; transition: transform 480ms cubic-bezier(.2,.75,.25,1), opacity 400ms ease; }
.album-stage.is-dragging .album-card { transition: none; }
.album-stage.is-initializing .album-card { transition: none; }
.album-face { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; padding: 0; border: 1px solid #4e626c; border-radius: 8px; text-align: left; background: #1e2b34; color: #eefbff; cursor: pointer; box-shadow: 0 16px 35px #0005; backface-visibility: hidden; }
.album-card.is-selected > .album-face { border-color: #8bc9d0; box-shadow: 0 0 0 1px #75cdd019,0 22px 48px #0007; }
.public-result-album .album-card > .album-face { border-color: #adc4cc86;
  background: linear-gradient(146deg,#aec3cd29,#0b141ca8 46%,#233d41ab);
  box-shadow: 0 0 0 1px #081115, 0 20px 38px #0009; }
.public-result-album .album-card.is-selected > .album-face { border-color: #c1e4e7;
  box-shadow: 0 0 0 1px #d9f5ff33, 0 0 22px #8bc9d029, 0 28px 46px #000a; }
.album-card > .album-face::after { content: ''; position: absolute; z-index: 2; inset: 0; pointer-events: none;
  border-radius: inherit; background: linear-gradient(116deg, #f2fcff14, transparent 28%, transparent 77%, #fff8ee0c);
  box-shadow: inset 0 1px 0 #ffffff6b, inset 1px 0 0 #ffffff28, inset 0 -2px 0 #9ddde82b; }
.album-card.is-selected > .album-face::after { border-top: 1px solid #effbff5c; border-left: 1px solid #d7f3ff29; }
.album-image { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; }
.album-live-preview { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.album-face.has-live-preview > .album-image { visibility: hidden; }
.album-image[hidden] { display: none; }
.album-card.is-cover-loading > .album-face::before,
.album-card.is-cover-unavailable > .album-face::before { content: 'Loading preview'; position: absolute; top: 35%; left: 0; right: 0; color: #9cb5c1; text-align: center; font: 400 12px/1.4 Arial,sans-serif; }
.album-card.is-cover-unavailable > .album-face::before { content: 'Preview unavailable'; }
.album-caption { position: relative; grid-row: 2; min-width: 0; padding: 10px 56px 10px 16px; background: #0b141d;
  border-top: 1px solid #c6e0ed27; }
.album-card-field { display: block; margin-bottom: 5px; color: #91c9cf; font: 500 10px/1.2 Arial,sans-serif; }
#openingScreen.has-public-album .album-caption h2 { display: block; margin: 0 0 5px; overflow: hidden; color: #f0f8fa; font: 600 22px/1.15 Arial,sans-serif; text-overflow: ellipsis; white-space: nowrap; letter-spacing: 0; }
.album-card-meta { display: block; overflow: hidden; color: #adbec9; font: 400 11px/1.35 Arial,sans-serif; white-space: nowrap; text-overflow: ellipsis; }
.album-open { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #709aa3; border-radius: 50%; color: #c0f4f6; }
.album-open svg { width: 18px; height: 18px; }
.album-reflection { position: absolute; top: calc(100% + 10px); left: 0; width: 100%; height: 120px; overflow: hidden; opacity: .42; pointer-events: none; mask-image: linear-gradient(to bottom,#000d,transparent 96%); -webkit-mask-image: linear-gradient(to bottom,#000d,transparent 96%); }
.album-reflection > .album-face { height: 100%; transform: scaleY(-1); transform-origin: 50% 50%; border: 0; box-shadow: none; }
.album-reflection .album-image { object-fit: fill; }
.album-reflection .album-caption { display: none; }
.album-reflection .album-face { cursor: default; }
.album-controls { position: relative; z-index: 3; display: grid; grid-template-columns: 38px 64px 38px auto; justify-content: center; align-items: center; gap: 14px; min-height: 46px; margin: 0 auto 14px; padding: 0 16px; }
.album-position { color: #9cabb2; text-align: center; font: 400 11px/1.3 Arial,sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.album-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; max-width: 340px; }
.album-dot { position: relative; width: 14px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.album-dot::after { content: ''; position: absolute; top: 13px; left: 2px; width: 10px; height: 2px; background: #3a4b54; transition: background 180ms; }
.album-dot[aria-current="true"]::after { background: #7bdee6; box-shadow: 0 0 8px #5cdbe363; }
.album-bottom { display: flex; align-items: center; justify-content: space-between; width: min(1280px,calc(100% - 80px)); min-height: 48px; margin: 0 auto; border-top: 1px solid #27323a; color: #6c848e; font: 400 10px/1.3 Arial,sans-serif; }
.album-message { position: absolute; inset: 0; display: flex; gap: 16px; justify-content: center; align-items: center; color: #a9bac3; font: 400 14px/1.5 Arial,sans-serif; }
.album-message[hidden] { display: none; }
.album-more { position: relative; z-index: 2; margin: 0 auto; padding: 38px 0 64px; width: min(1280px,calc(100% - 80px)); border-top: 1px solid #27323a; }
#openingScreen.has-public-album .album-more h2 { margin: 0 0 24px; color: #c8d8de; font: 500 20px/1.3 Arial,sans-serif; letter-spacing: 0; }
.album-more-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px 24px; }
.album-more-item { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; text-align: left; color: #dbe9ee; background: transparent; cursor: pointer; }
.album-more-item img { display: block; width: 100%; aspect-ratio: 1.6; object-fit: cover; border-radius: 6px; }
.album-more-item img { border: 1px solid #7e98a238; box-shadow: 0 9px 24px #0007, 0 1px 0 #d5f1ff20; }
.album-more-item strong { overflow: hidden; font: 500 14px/1.3 Arial,sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.album-more-item span { color: #839ba6; font: 400 11px/1.4 Arial,sans-serif; }
.album-more-item:hover strong { color: #91e5ed; }
.album-auth { position: fixed; width: min(410px,calc(100% - 32px)); padding: 42px 24px 20px; border: 1px solid #38515d; border-radius: 8px; background: #101a23; color: #edf6fb; }
.album-auth > .album-icon-button { position: absolute; top: 10px; right: 10px; }
.album-auth .top-auth-panel { width: 100%; margin: 0; padding: 4px 0; border: 0; box-shadow: none; background: transparent; }
.album-auth::backdrop { background: #02070cce; }
.album-viewer { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: 0; background: #11191f; color: #e7f4fa; }
.album-viewer::backdrop { background: #0d151b; }
.album-viewer-canvas, .album-viewer-canvas canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.album-viewer-poster { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; padding: 72px 16px 24px; object-fit: contain; background: #11191f; opacity: 1; transition: opacity 350ms ease; pointer-events: none; }
.album-viewer-poster.is-hidden { opacity: 0; }
.album-viewer-head { position: absolute; z-index: 6; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding: 14px 26px; background: #11191fe8; border-bottom: 1px solid #30404a; }
.album-viewer-title { min-width: 0; }
.album-viewer-title small { display: block; color: #6ebfc9; font: 500 9px/1.3 Arial,sans-serif; }
.album-viewer-title h2 { margin: 5px 0 0; overflow: hidden; color: #edf8fc; font: 500 18px/1.2 Arial,sans-serif; white-space: nowrap; text-overflow: ellipsis; }
.album-viewer-tools { display: flex; flex: 0 0 auto; gap: 8px; }
.album-viewer-tools .album-icon-button[aria-pressed="true"] { color: #8ee9ee; border-color: #8ee9ee; }
.album-viewer-meta { position: absolute; z-index: 5; bottom: 0; left: 0; right: 0; display: flex; align-items: center; gap: 20px; padding: 18px 26px; color: #91aab8; background: #11191fe8; font: 400 12px/1.4 Arial,sans-serif; }
.album-viewer-meta strong { color: #bed8e3; font-weight: 500; }
.album-viewer-contours { position: absolute; z-index: 5; right: 16px; bottom: 64px;
  width: min(240px, calc(100% - 32px)); max-height: min(35dvh, 220px); overflow: auto;
  box-sizing: border-box; padding: 10px 12px; border: 1px solid #9dc5d646; border-radius: 8px;
  background: #101c26eb; color: #d9eef5; font: 12px/1.4 Arial,sans-serif; }
.album-contour-row + .album-contour-row { border-top: 1px solid #668b9c55; padding-top: 8px; margin-top: 8px; }
.album-contour-row strong { display: block; overflow-wrap: anywhere; }
.album-contour-bar { margin-top: 6px; height: 9px; border-radius: 2px; }
.album-contour-values { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; font-variant-numeric: tabular-nums; }
@media (max-width: 650px), (max-height: 620px) {
  .album-foreground-title { padding: 0 0 7px 8px; font-size: 24px; }
  .album-viewer-contours { bottom: 58px; right: 10px; }
}
.album-viewer-status { position: absolute; z-index: 5; bottom: 110px; left: 50%; display: flex; flex-direction: column; align-items: center; gap: 16px; width: min(300px,calc(100% - 48px)); transform: translateX(-50%); padding: 16px; color: #d4eaf2; background: #111e28ed; border-radius: 6px; text-align: center; font: 400 13px/1.5 Arial,sans-serif; }
.album-viewer-status[hidden] { display: none; }
.album-loading-line { display: block; width: 120px; height: 2px; overflow: hidden; background: #2b4e5b; }
.album-loading-line::after { content: ''; display: block; width: 45px; height: 100%; background: #7ddde3; animation: album-loading 1s linear infinite; }
@keyframes album-loading { from { transform: translateX(-45px); } to { transform: translateX(120px); } }
.album-opening-image { position: fixed; z-index: 4; object-fit: cover; border-radius: 8px; transform-origin: top left; pointer-events: none; }
@media (max-width: 650px) {
  .public-result-album { padding-top: 50px; }
  .album-head { width: calc(100% - 28px); gap: 8px; }
  .album-brand { gap: 7px; font-size: 18px; }
  .album-brand img { width: 26px; height: 26px; }
  .album-head-actions { gap: 7px; }
  .album-head-actions > .album-text-button { display: none; }
  .album-head-actions .album-icon-button { width: 32px; height: 34px; padding: 6px; }
  .album-primary-button { gap: 6px; min-height: 34px; padding: 7px 9px; font-size: 11px; }
  .album-primary-button svg { width: 15px; height: 15px; }
  .album-intro { padding: 25px 16px 20px; }
  #openingScreen.has-public-album .album-intro h1 { font-size: 36px; }
  .album-subtitle { font-size: 14px; }
  .album-stage { --album-floor-space: 115px; perspective: 1000px; }
  .album-caption { padding: 13px 44px 13px 13px; }
  #openingScreen.has-public-album .album-caption h2 { font-size: 17px; }
  .album-card-field { font-size: 9px; }
  .album-card-meta { font-size: 10px; }
  .album-open { right: 12px; bottom: 20px; width: 25px; height: 25px; }
  .album-open svg { width: 15px; height: 15px; }
  .album-reflection { height: 82px; }
  .album-controls { grid-template-columns: 38px 64px 38px; gap: 4px 12px; margin-bottom: 14px; }
  .album-pagination { grid-column: 1 / -1; max-width: 288px; }
  .album-bottom, .album-more { width: calc(100% - 32px); }
  .album-more-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 14px; }
  .album-viewer-head { min-height: 66px; padding: 10px 12px; gap: 8px; }
  .album-viewer-tools { gap: 4px; }
  .album-viewer-tools .album-icon-button { width: 30px; height: 32px; padding: 6px; }
  .album-viewer-tools a { display: none; }
  .album-viewer-title h2 { max-width: 130px; font-size: 14px; }
  .album-viewer-title small { font-size: 8px; }
  .album-viewer-meta { flex-wrap: wrap; gap: 4px 12px; padding: 13px; font-size: 11px; }
}
@media (min-height: 651px) and (max-height: 850px) and (min-width: 651px) {
  .public-result-album { padding-top: 44px; }
  .album-head { min-height: 38px; }
  .album-intro { padding: 8px 16px; }
  .album-kicker, .album-library-count { display: none; }
  .album-stage { --album-floor-space: 92px; --album-track-top: 12px; }
  .album-track { top: 12px; }
  .album-reflection { height: 72px; }
  .album-controls { min-height: 38px; margin-bottom: 8px; }
  .album-bottom { min-height: 38px; }
}
@media (max-height: 650px) and (max-width: 650px) {
  .album-intro { padding: 8px 16px; }
  .album-kicker, .album-library-count { display: none; }
  #openingScreen.has-public-album .album-intro h1 { margin: 4px 0; font-size: 28px; }
  .album-subtitle { font-size: 12px; }
  .album-stage { --album-floor-space: 90px; --album-track-top: 12px; }
  .album-controls { margin-bottom: 6px; }
  .album-bottom { min-height: 36px; }
}
@media (max-height: 650px) and (min-width: 651px) {
  .public-result-album { padding-top: 40px; }
  .album-head { min-height: 32px; }
  .album-intro { display: none; }
  .album-brand { font-size: 24px; }
  .album-kicker, .album-subtitle, .album-library-count, .album-bottom { display: none; }
  #openingScreen.has-public-album .album-intro h1 { font-size: 28px; margin: 2px 0; }
  .album-stage { --album-floor-space: 58px; --album-track-top: 2px; }
  .album-track { top: 2px; }
  .album-reflection { height: 45px; top: calc(100% + 5px); }
  .album-controls { min-height: 30px; margin-bottom: 4px; gap: 8px; }
  .album-controls .album-icon-button { width: 30px; height: 30px; padding: 5px; }
  .album-caption { padding: 8px 40px 8px 10px; }
  #openingScreen.has-public-album .album-caption h2 { font-size: 15px; margin: 0; }
  .album-card-field { display: none; }
  .album-card-meta { margin-top: 3px; font-size: 9px; }
  .album-open { width: 24px; height: 24px; right: 9px; bottom: 13px; }
  .album-more { padding-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .album-card, .album-viewer-poster { transition: none; }
  .album-loading-line::after { animation: none; }
}

/* Top album typography */
#openingScreen.has-public-album .album-intro h1 { white-space: nowrap; font-weight: 700; }
@media (max-width: 360px) {
  #openingScreen.has-public-album .album-intro h1 { font-size: 26px; }
}
.album-foreground-title {
  font-family: "Century Gothic", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  color: #dce6e8;
  text-shadow: none;
  filter: url("#album-title-bevel") drop-shadow(1px 3px 2px #000a);
}

.ui-operation-feedback [data-ui-operation-cancel] {
  pointer-events: auto;
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid #718d9c;
  border-radius: 5px;
  color: #eef7fb;
  background: #182c38;
  cursor: pointer;
}
.ui-operation-feedback [data-ui-operation-cancel][hidden] { display: none; }
