/* Shared bottom bar (div.sw > div.seg): the group switcher from Chats, now the one in-page menu on every page
   (Calls, Chats, Issues, Reports). Same look everywhere: a rounded panel with one pill per choice, the active one filled.
   Chats lays it out itself (in its own flex column). Other pages use .sw-fixed, which sits right above the bottom menu
   (.bn). _bottom_nav.html measures both bars and sets --bn-h / --sw-h so page content never hides behind them. */
.sw{flex:none;padding:8px 12px 10px}
.seg{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:4px;padding:4px;border-radius:14px;background:var(--panel,#242424)}
.seg button,.seg a{height:44px;min-width:0;display:flex;align-items:center;justify-content:center;gap:6px;padding:0 6px;border:0;border-radius:10px;
  background:transparent;font:600 14px/1 -apple-system,BlinkMacSystemFont,"Inter","Segoe UI",Roboto,sans-serif;color:var(--sub,#b8b6ae);
  text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.seg button.on,.seg a.on,.seg button.is-open,.seg button.active,.seg button[aria-pressed=true]{background:var(--text,#f4f3ef);color:#181818}
.seg button:focus-visible,.seg a:focus-visible{outline:2px solid var(--text,#f4f3ef);outline-offset:-2px}
.seg .d{width:7px;height:7px;border-radius:50%;background:var(--red,#ff7b6e);flex:none}
.seg svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.seg[data-many] button,.seg[data-many] a{font-size:12.5px;padding:0 2px}
.seg .phone-only{display:none}
@media(max-width:700px){.seg .phone-only{display:flex}.seg .wide-only{display:none}}

/* On pages that scroll as a whole, the bar is fixed above the bottom menu. */
.sw-fixed{position:fixed;left:0;right:0;bottom:var(--bn-h,64px);z-index:58;background:var(--bg,#181818);padding:6px 12px 8px;border-top:1px solid var(--line,#2c2c2c)}
body.has-sw{padding-bottom:calc(var(--bn-h,64px) + var(--sw-h,62px) + 10px)}
/* Wide screens have no bottom menu (the side menu is used), so the bar sits on the bottom edge beside the side menu. */
@media(min-width:901px){.sw-fixed{bottom:0;left:var(--desktop-sidebar-width,235px)}body.has-sw{padding-bottom:calc(var(--sw-h,62px) + 14px)}}
@media(min-width:701px) and (max-width:900px){.sw-fixed{left:var(--desktop-sidebar-width,235px)}}

/* Issues: the search row and filter drawer that phones always used now serve every width (the old desktop toolbar is gone). */
.app-main .mobile-workspace-tools{display:block;margin:0 auto 8px;max-width:1320px}
@media(min-width:701px){
 .mobile-workspace-tools .mobile-search-row{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:10px;align-items:center}
 .mobile-workspace-tools .mobile-search{height:47px;display:flex;align-items:center;gap:9px;min-width:0;padding:0 13px;border:1px solid #3a3a3a;border-radius:12px;background:#1f1f1f;color:#dedcd4}
 .mobile-workspace-tools .mobile-search svg,.mobile-workspace-tools .mobile-filter-toggle svg{width:20px;height:20px;flex:none}
 .mobile-workspace-tools .mobile-search input{width:100%;min-width:0;border:0;outline:none;background:none;color:#f4f3ef;font-size:14px;padding:0}
 .mobile-workspace-tools .mobile-filter-toggle{height:47px;border:1px solid #3a3a3a;border-radius:12px;background:#242424;color:#f4f3ef;font-size:14px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:7px;cursor:pointer}
 .mobile-workspace-tools .mobile-filter-toggle.is-open{background:#2c2c2c}
 .mobile-workspace-tools .mobile-filter-fields:not([hidden]){display:block;margin:11px 0 0;padding:13px;background:#242424;border:1px solid #2c2c2c;border-radius:12px}
 .mobile-workspace-tools .mobile-field-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
 .mobile-workspace-tools .mobile-field-grid label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:11px;color:#b8b6ae;font-weight:650}
 .mobile-workspace-tools .mobile-field-grid select,.mobile-workspace-tools .mobile-field-grid input{width:100%;min-width:0;height:39px;border:1px solid #3a3a3a;border-radius:8px;background:#181818;color:#f4f3ef;padding:0 8px;font-size:13px;color-scheme:dark}
 .mobile-workspace-tools .mobile-filter-actions{display:flex;gap:9px;margin-top:12px}
 .mobile-workspace-tools .mobile-filter-actions button{border:1px solid #3a3a3a;border-radius:8px;background:#2c2c2c;color:#f4f3ef;padding:10px 12px;font-size:12px;font-weight:700;cursor:pointer}
 .mobile-workspace-tools .mobile-filter-actions .mobile-apply{flex:1;background:#f4f3ef;color:#181818}
}
