.overlay-tuner {
  position: relative;
  z-index: 99990;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
}

/* свёрнуто — только иконка, без полосы */
.overlay-tuner.is-collapsed {
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.overlay-tuner__fab {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.overlay-tuner__fab:hover {
  background: rgba(255, 255, 255, 0.16);
}

#tcmo-switcher-tools .overlay-tuner__fab {
  display: inline-flex !important;
}

#tcmo-switcher-tools .overlay-tuner__fab.is-active {
  background: #fed100;
  color: #232f3e;
  border-color: #fed100;
}

.overlay-tuner__fab svg {
  width: 18px;
  height: 18px;
}

.overlay-tuner.is-collapsed .overlay-tuner__fab {
  display: inline-flex;
}

.overlay-tuner__panel {
  position: sticky;
  top: 44px;
  margin: 0;
  padding: 14px clamp(12px, 2vw, 28px);
  background: #232f3e;
  color: #fff;
  border-bottom: 3px solid #fed100;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.overlay-tuner.is-collapsed .overlay-tuner__panel {
  display: none;
}

.overlay-tuner__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.overlay-tuner__head-left {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  min-width: 0;
}

.overlay-tuner__title {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.overlay-tuner__hint {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

.overlay-tuner__toggle {
  flex: 0 0 auto;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: 600 12px Inter, system-ui, sans-serif;
  cursor: pointer;
}

.overlay-tuner__toggle:hover {
  background: rgba(255, 255, 255, 0.14);
}

.overlay-tuner__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px 18px;
}

.overlay-tuner__row {
  display: grid;
  gap: 4px;
}

.overlay-tuner__label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
  font-size: 12px;
}

.overlay-tuner__label code {
  font: 700 12px/1.2 ui-monospace, monospace;
  color: #fed100;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
}

.overlay-tuner input[type="range"] {
  width: 100%;
  accent-color: #fed100;
  cursor: pointer;
}

.overlay-tuner__vars {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  font: 11px/1.5 ui-monospace, monospace;
  color: #cbd5e1;
  word-break: break-all;
}

