.settings-anchor {
  position: relative;
}
.settings-gear-btn {
  padding: 6px 10px;
  font-size: 15px;
  line-height: 1;
}
.settings-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  max-width: calc(100vw - 24px);
  background: var(--surface-raised);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 16px;
  z-index: 900;
}
.settings-group {
  margin-bottom: 16px;
}
.settings-group:last-child {
  margin-bottom: 0;
}
.settings-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 10px;
}
.settings-segmented {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}
.settings-segmented button {
  flex: 1;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.settings-segmented button:hover {
  color: rgba(255, 255, 255, 0.85);
}
.settings-segmented button.active {
  background: var(--primary);
  color: #0d1515;
  font-weight: 600;
}
.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.settings-switch {
  width: 38px;
  height: 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
  cursor: pointer;
}
.settings-switch .settings-switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.settings-switch.on {
  background: var(--primary);
}
.settings-switch.on .settings-switch-knob {
  transform: translateX(16px);
}
