/* Tweaks panel */
#tweak-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 280px;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.22);
  font-family: var(--sans);
  z-index: 1000;
  transform: translateY(16px) scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: transform .24s ease, opacity .24s ease;
}
#tweak-panel.open {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
#tweak-panel .tp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
#tweak-panel .tp-close {
  background: transparent;
  border: 0;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  padding: 4px 8px;
}
#tweak-panel .tp-label {
  margin-bottom: 10px;
}
#tweak-panel .tp-segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px;
  background: var(--surface-2);
  border-radius: 10px;
}
#tweak-panel .tp-segmented button {
  padding: 10px 6px;
  border: 0;
  background: transparent;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fg);
  border-radius: 7px;
  transition: background .2s ease;
}
#tweak-panel .tp-segmented button.is-active {
  background: var(--fg);
  color: var(--bg);
}
#tweak-panel .tp-hint {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
