.simulation-power-floor-popover {
  --sim-floor-thumb-size: 14px;
  --sim-floor-edge-offset: 7px;
  position: absolute;
  width: 286px;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line-1);
  border-radius: 6px;
  box-shadow: 0 8px 24px var(--overlay-2), var(--float-edge);
  color: var(--ink-1);
  z-index: 41;
  animation: sim-floor-pop var(--dur-enter) var(--ease-out);
}

.simulation-power-floor-popover[hidden] { display: none; }

@keyframes sim-floor-pop {
  from { opacity: 0; transform: translateX(-4px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

.simulation-power-floor-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-family: var(--font-ui);
}

.simulation-power-floor-title {
  font-size: 12px;
  font-weight: 600;
}

.simulation-power-floor-value {
  color: var(--ink-2-v1);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}

.simulation-power-floor-track {
  position: relative;
  height: var(--sim-floor-thumb-size);
  margin-top: 3px;
}

.simulation-power-floor-track::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--paper-deep);
  border-radius: 999px;
  transform: translateY(-50%);
}

.simulation-power-floor-marks {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: var(--sim-floor-edge-offset);
  left: var(--sim-floor-edge-offset);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  transform: translateY(-50%);
}

.simulation-power-floor-marks span {
  width: 4px;
  height: 4px;
  background: var(--ink-3-v1);
  border: 1px solid var(--surface-2);
  border-radius: 50%;
  box-sizing: border-box;
}

.simulation-power-floor-popover input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  transform: translateY(-50%);
}

.simulation-power-floor-popover input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: var(--sim-floor-thumb-size);
  height: var(--sim-floor-thumb-size);
  background: var(--bg);
  border: 1px solid var(--ctl-line);
  border-radius: 50%;
  box-shadow: 0 1px 3px -1px rgba(0, 0, 0, 0.45);
  cursor: grab;
  transition: transform 0.15s, box-shadow 0.15s;
}

.simulation-power-floor-popover input[type="range"]:hover::-webkit-slider-thumb {
  transform: scale(1.12);
  box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.55);
}

.simulation-power-floor-popover input[type="range"]::-webkit-slider-thumb:active {
  background: var(--ink-1);
  cursor: grabbing;
}

.simulation-power-floor-popover input[type="range"]::-moz-range-thumb {
  width: var(--sim-floor-thumb-size);
  height: var(--sim-floor-thumb-size);
  background: var(--bg);
  border: 1px solid var(--ctl-line);
  border-radius: 50%;
  cursor: grab;
}

.simulation-power-floor-popover input[type="range"]::-moz-range-track {
  height: 2px;
  background: transparent;
  border: none;
}

.simulation-power-floor-popover input[type="range"]:focus-visible {
  box-shadow: 0 0 0 3px var(--overlay-2);
}

.simulation-power-floor-ticks {
  position: relative;
  height: 11px;
  margin: 3px var(--sim-floor-edge-offset) 0;
  color: var(--ink-3-v1);
  font-family: var(--font-mono);
  font-size: 9px;
}

.simulation-power-floor-ticks span {
  position: absolute;
  top: 0;
  white-space: nowrap;
  transform: translateX(-50%);
}

.simulation-power-floor-ticks span:nth-child(1) { left: 0; }
.simulation-power-floor-ticks span:nth-child(2) { left: 25%; }
.simulation-power-floor-ticks span:nth-child(3) { left: 50%; }
.simulation-power-floor-ticks span:nth-child(4) { left: 75%; }
.simulation-power-floor-ticks span:nth-child(5) { left: 100%; }

.simulation-power-floor-note {
  margin: 10px 0 0;
  color: var(--ink-3-v1);
  font-family: var(--font-ui);
  font-size: 10px;
  line-height: 1.45;
}
