/* worker-slider.css — shared worker assignment slider (ws-slider) used by
 * building-window (bw-*), hex-panel (hxp-*) and city-mode (cmp-*) cards.
 * Theme: HUD gold/navy tokens, mirrors building-window.css / city-mode.css.
 */

.ws-slider {
  display: flex;
  align-items: center;
  gap: var(--spacing-8, 8px);
  min-width: 0;
}

.ws-slider-label {
  min-width: 84px;
  flex-shrink: 0;
  font-size: var(--text-12, 12px);
  color: var(--color-text-muted, #888);
}

.ws-slider-range {
  flex: 1;
  min-width: 0;
  height: 14px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.ws-slider-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: var(--radius-full, 999px);
  background: linear-gradient(
    to right,
    var(--color-accent, #ffd700) 0%,
    var(--color-accent, #ffd700) var(--ws-fill, 0%),
    rgba(255, 255, 255, 0.08) var(--ws-fill, 0%),
    rgba(255, 255, 255, 0.08) 100%
  );
}

.ws-slider-range::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -4px;
  border: none;
  border-radius: 50%;
  background: var(--color-accent, #ffd700);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.ws-slider-range::-moz-range-track {
  height: 6px;
  border-radius: var(--radius-full, 999px);
  background: rgba(255, 255, 255, 0.08);
}

.ws-slider-range::-moz-range-progress {
  height: 6px;
  border-radius: var(--radius-full, 999px);
  background: var(--color-accent, #ffd700);
}

.ws-slider-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: none;
  border-radius: 50%;
  background: var(--color-accent, #ffd700);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.ws-slider-range:disabled {
  opacity: 0.35;
  cursor: default;
}

.ws-slider-range:focus-visible {
  outline: 2px solid var(--color-accent, #ffd700);
  outline-offset: 2px;
  border-radius: var(--radius-4, 4px);
}

.ws-slider-value {
  min-width: 84px;
  flex-shrink: 0;
  text-align: right;
  font-size: var(--text-12, 12px);
  color: var(--color-text, #f5deb3);
  white-space: nowrap;
}

.ws-slider-value b {
  color: var(--color-accent, #ffd700);
}

.ws-slider-pct {
  color: var(--color-text-muted, #888);
}
