/* tweaks.css — styling for the in-page Tweaks panel */
#cc-tweaks {
  position: fixed; bottom: 18px; right: 18px; z-index: 100;
  width: 320px; max-height: 80vh;
  background: var(--cc-cream);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-sans);
}
#cc-tweaks .tw-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--cc-blue); color: var(--cc-cream);
}
#cc-tweaks .tw-head h3 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  margin: 0;
}
#cc-tweaks .tw-close {
  background: transparent; border: none; color: var(--cc-cream);
  cursor: pointer; font-size: 22px; line-height: 1; padding: 0 6px;
  opacity: 0.7; transition: opacity 140ms;
}
#cc-tweaks .tw-close:hover { opacity: 1; }
#cc-tweaks .tw-body {
  padding: 6px 14px 14px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
}
#cc-tweaks .tw-row {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 0; border-bottom: 1px dashed var(--border);
}
#cc-tweaks .tw-row:last-child { border-bottom: none; }
#cc-tweaks .tw-label {
  font-size: 12px; font-weight: 600; color: var(--cc-blue);
  letter-spacing: 0.02em;
}
#cc-tweaks .tw-section {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-soft);
  margin-top: 8px;
}
#cc-tweaks .tw-segmented {
  display: flex; background: var(--cc-white); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px;
}
#cc-tweaks .tw-segmented button {
  flex: 1; background: transparent; border: none;
  padding: 6px 10px; font-size: 11px; font-weight: 600;
  color: var(--fg-soft); border-radius: 999px; cursor: pointer;
  font-family: var(--font-sans);
  transition: all 140ms var(--ease-out);
}
#cc-tweaks .tw-segmented button.active {
  background: var(--cc-blue); color: var(--cc-cream);
}
#cc-tweaks .tw-switch {
  width: 38px; height: 22px; border-radius: 999px;
  background: rgba(0,58,93,0.18); border: none; cursor: pointer;
  position: relative; transition: background 180ms;
  padding: 0; align-self: flex-start;
}
#cc-tweaks .tw-switch.on { background: var(--cc-teal); }
#cc-tweaks .tw-switch .thumb {
  position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%; background: var(--cc-white);
  transition: transform 180ms var(--ease-out);
}
#cc-tweaks .tw-switch.on .thumb { transform: translateX(16px); }
#cc-tweaks .tw-note {
  font-size: 11px; color: var(--fg-soft);
  background: var(--cc-cream-deep);
  padding: 8px 10px; border-radius: 8px;
  line-height: 1.45;
}
