/* ============================================================
   scale.css - segmented "how big?" output scale picker
   ============================================================ */

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 7px;
}

.scale-track {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 3px;
  margin-bottom: 18px;
}

.scale-btn {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 6px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  position: relative;
  line-height: 1.2;
  transition: color 0.16s ease, background 0.16s ease;
  outline: none;
}

.scale-btn:hover:not(.active) {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.045);
}

.scale-btn.active {
  background: var(--surface-raised);
  color: var(--text-primary);
  box-shadow:
    0 1px 3px rgba(0,0,0,0.45),
    0 0 0 1px rgba(139,92,246,0.3),
    0 1px 0 rgba(255,255,255,0.06) inset;
}

/* multiplier number e.g. "2x" */
.scale-btn .mult {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16.5px;
  line-height: 1;
}

.scale-btn:focus-visible {
  box-shadow: var(--button-focus);
}

/* output resolution hint e.g. "1920x1080" */
.scale-btn .res {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 2px;
  font-size: 10px;
  font-weight: 400;
  color: var(--text-secondary);
  min-height: 13px;
  transition: color 0.16s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: calc(100% - 12px);
}

.scale-btn.active .res { color: #b8a4ff; }
