/* panel-session-mode.css — the Chat | Proactive slider in the prompt box.
   ============================================================================ */

/* ---- the session-mode slider, in the prompt box -----------------------------
   Chat | Proactive, on the new-tab page only. The rail's old mode switch,
   moved here when the rail went back to one list: the same track, thumb and
   glyphs, made larger than the row's buttons so the choice reads at a
   glance. The markup puts a gap either side, which centres it between Effort
   and the mic. */
.session-mode {
  position: relative; display: none; grid-template-columns: 1fr 1fr;
  width: 92px; height: 32px; padding: 3px; margin: -2px 0; flex: none;
  border-radius: var(--r-ctl); background: var(--s-quiet);
}
.main.empty-mode .session-mode { display: grid; }
.main.px-incognito .session-mode { display: none; }
.session-mode button {
  position: relative; z-index: 1; min-width: 0;
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; cursor: pointer; padding: 0;
  color: var(--t-meta);
  transition: none;
}
.session-mode button svg {
  width: 17px; height: 17px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.session-mode button:hover { color: var(--t-strong); }
.session-mode button[aria-checked="true"] { color: var(--t-primary); }
.session-mode button:focus-visible { outline: 1px solid rgba(var(--rim-rgb), .6); outline-offset: -1px; border-radius: var(--r-ctl-sm); }
.session-mode-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  border-radius: var(--r-ctl-sm); background: var(--s-inter);
  box-shadow: var(--lit-pill), inset 0 0 0 1px rgba(var(--rim-rgb), .18);
  transition: translate var(--dur-3) var(--ease-out);
}
.session-mode[data-mode="proactive"] .session-mode-thumb { translate: 100% 0; }
@media (prefers-reduced-motion: reduce) { .session-mode-thumb { transition: none; } }
