/* Tweaks panel — visible only when host activates edit mode */
.tweaks-panel {
  position: fixed; right: 20px; bottom: 96px;
  width: 290px; background: #fff;
  border: 1px solid var(--border-1);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-body);
  z-index: 95; display: none; overflow: hidden;
}
.tweaks-panel.open { display: block; animation: tpIn 0.25s var(--ease-out); }
@keyframes tpIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: var(--ink-900); color: #fff;
}
.tp-title { font-family: var(--font-sans); font-weight: 900; font-size: 16px; }
.tp-close { color: rgba(255,255,255,0.7); font-size: 22px; width: 28px; height: 28px; border-radius: 8px; }
.tp-close:hover { background: rgba(255,255,255,0.1); color: #fff; }
.tp-body { padding: 18px; display: flex; flex-direction: column; gap: 20px; }
.tp-sec { display: flex; flex-direction: column; gap: 10px; }
.tp-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-3);
  display: flex; justify-content: space-between; align-items: center;
}
.tp-val { font-weight: 600; letter-spacing: 0.02em; color: var(--ink-800); text-transform: none; }
.tp-seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px; background: var(--bg-2); border-radius: 12px;
}
.tp-seg button {
  padding: 8px 10px; border-radius: 8px;
  font-family: var(--font-sans); font-weight: 700; font-size: 12.5px;
  color: var(--ink-700); transition: all var(--dur-fast);
}
.tp-seg button.is-on { background: #fff; color: var(--ink-900); box-shadow: var(--shadow-sm); }
.tp-range {
  width: 100%; appearance: none; -webkit-appearance: none;
  background: var(--ink-100); height: 4px; border-radius: 2px;
}
.tp-range::-webkit-slider-thumb {
  appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--red-500); border: 3px solid #fff;
  box-shadow: var(--shadow-sm); cursor: pointer;
}
.tp-range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--red-500); border: 3px solid #fff; cursor: pointer;
}
.tp-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--ink-800); }
.tp-toggle input { width: 16px; height: 16px; accent-color: var(--red-500); }
