/* live-seg.css (ADROLAB, not part of Nikan's v2). Babak, 4 Nov 2026: every slider in ADROSUITE looks like
   Bookings' Day / Week / Month. That is .ix-seg: a soft teal track, grey labels, and the chosen one on a
   frosted glass thumb (brand.css .bx-thumb.seg, slid by motion.js). scripts/copy-v2.mjs loads this after
   v2's stylesheets (just before the boot cover), so it wins over v2's own looks without changing v2's files.
   Covered: Customers tabs (.cu-seg), filter chips (.chipbar), Marketing's 3-way pickers (.mk-seg3),
   Inbox "who replies" (.ix-mode), the bell's tabs (.v2n-tabs), Write it for me and reply style (.v2f-*-seg).
   Not covered on purpose: the top nav (a line, not a slider), Settings' side menu (.snav), the composer's
   Reply / Private note tabs (.ix-tabs), on/off switches (.sw). */

/* ---------- the track ---------- */
.cu-seg,.chipbar,.mk-seg3,.ix-mode,.v2n-tabs,.v2f-wi-seg,.v2f-style-seg{
  display:flex;flex-wrap:nowrap;gap:2px;padding:3px;border-radius:12px;background:var(--b-track);
  width:fit-content;max-width:100%;overflow-x:auto;scrollbar-width:none}
.cu-seg::-webkit-scrollbar,.chipbar::-webkit-scrollbar,.v2n-tabs::-webkit-scrollbar,.v2f-wi-seg::-webkit-scrollbar,.v2f-style-seg::-webkit-scrollbar{display:none}
.mk-seg3{width:auto}
.v2n-tabs{margin:0 18px 10px}

/* ---------- the labels ---------- */
html .cu-seg > button,html .chipbar > button,html .mk-seg3 > button,html .ix-mode > button,html .v2n-tabs > button,html .v2f-wi-seg > button,html .v2f-style-seg > button{
  flex:none;height:28px;padding:0 16px;border:0;border-radius:9px;background:transparent;box-shadow:none;
  font-size:12.5px;font-weight:600;color:var(--ink3);white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:6px;
  transition:color .2s,background-color .2s}
html .mk-seg3 > button{flex:1}
html .cu-seg > button:hover,html .chipbar > button:hover,html .mk-seg3 > button:hover,html .ix-mode > button:hover,html .v2n-tabs > button:hover,html .v2f-wi-seg > button:hover,html .v2f-style-seg > button:hover{color:var(--ink);background:transparent}
.chipbar.hasthumb{gap:2px}
html .chipbar.hasthumb > button:not(.on){background:transparent}

/* ---------- the chosen one: frosted glass ---------- */
/* Where motion.js slides a thumb (.cu-seg, .chipbar): the thumb is glass, like Day / Week / Month. */
html .cu-seg > .bx-thumb.seg,html .chipbar > .bx-thumb.seg{
  background:var(--glass-bg);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);border:1px solid var(--glass-brd);
  box-shadow:0 2px 8px -2px rgba(31,42,39,.25),inset 0 1px 0 var(--glass-brd),0 0 10px -4px rgb(127 181 163 / .5)}
html .cu-seg.hasthumb > button.on,html .chipbar.hasthumb > button.on,html[data-theme=dark] .cu-seg.hasthumb > button.on,html[data-theme=dark] .chipbar.hasthumb > button.on{background:transparent!important;box-shadow:none!important;color:var(--ink)}
/* No thumb (groups motion.js does not slide, or before it mounts): the button itself is the glass. */
html .cu-seg:not(.hasthumb) > button.on,html .chipbar:not(.hasthumb) > button.on,html .chipbar:not(.hasthumb) > button.on:hover,
html .mk-seg3 > button.on,html .ix-mode > button.on,html .v2n-tabs > button.on,html .v2f-wi-seg > button.on,html .v2f-style-seg > button.on,
html .ix-seg:not(.hasthumb) > button.on,html .seg:not(.hasthumb) > button.on,html .mk-wseg:not(.hasthumb) > button.on,
html[data-theme=dark] .cu-seg:not(.hasthumb) > button.on,html[data-theme=dark] .chipbar:not(.hasthumb) > button.on,html[data-theme=dark] .v2n-tabs > button.on{
  background:var(--glass-bg);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);color:var(--ink);
  box-shadow:inset 0 0 0 1px var(--glass-brd),0 2px 8px -2px rgba(31,42,39,.25),0 0 10px -4px rgb(127 181 163 / .5)}
html .ix-mode > button[data-mode=me].on{color:var(--warm)}

/* counts inside a label (Customers "All customers 412") stay quiet on the glass too */
html .cu-seg i,html .cu-seg button.on i,html[data-theme=dark] .cu-seg button.on i{background:color-mix(in srgb,var(--ink) 8%,transparent);color:var(--ink2)}
