/* Superinvestors' tab rows wear the house tab bar (user, 2026-11-04, same as Graphs + Dashboards + Markets): the shared
   .tbx look from aiq-tabbar.css on the page's own rows — the view row (All investors · Performance · Stock screens ·
   Latest moves, index.html) and the sub-tab rows (an investor's Overview · Holdings · Activity · Analytics, a stock's
   Holders · Insider buys · Past moves, Stock screens' six screens). Fixed views: no +, no tab menu. Desktop only
   (html.aiq-desk); phones keep their own layout. The open tab carries .is-on (and .on / .si-subtab-active, which the
   page's scripts still read); its SVG feet are in every tab and shown on the open one only. */
html.aiq-desk .tbx { --tbx-bed: var(--si-bed, var(--sh-bed, var(--a-page, #fff))); }
html.aiq-desk .tbx .tbx-t:not(.is-on) .fl { display: none; }
html.aiq-desk .tbx .tbx-t > :is(i, .cgr-n, .si-subtab-n) { display: none !important; }   /* plain words: no icon, no count */

/* the view row: tabs left (scroll in their own box), view settings / search / Add on the right, small and flat */
html.aiq-desk.si-at-on .si-vrow.si-one.tbx:not(#_) { height: 36px; padding: 0; gap: 0; border-bottom: 0 !important; align-items: flex-end; }
html.aiq-desk.si-at-on .si-vrow.si-one .si1-tabs.tbx-l:not(#_) { align-self: auto; align-items: flex-end; gap: 0; flex: 1 1 auto; height: 36px; }
html.aiq-desk.si-at-on .si-vrow.si-one > .si-vsp { display: none; }
html.aiq-desk.si-at-on .si-vrow.si-one > :is(.at-btn, .si-vq):not(#_) { align-self: center; margin-bottom: 1px; }
html.aiq-desk.si-at-on .si-vrow.si-one > :last-child:not(#_) { margin-right: 8px; }

/* the sub-tab rows: the panel's own strip (the Panel/si-attio rules paint it transparent !important, so the tint is too) */
html.aiq-desk.si-at-on .si-subtabs.tbx:not(#_):not(#_) { height: 36px; padding: 0; gap: 0; margin: 0; align-items: flex-end; flex-wrap: nowrap;
  border-bottom: 0 !important; overflow: visible;
  background: color-mix(in srgb, var(--tbx-tint) 8%, var(--sh-bed, var(--a-card, #fff))) !important; }
/* the same soft shade above the bottom line as the view row above (.si-panel zeroes the shared box-shadow) */
html.aiq-desk.si-at-on .si-subtabs.tbx:not(#_):not(#_):not(#_) { box-shadow: inset 0 -3px 4px -3px rgba(40, 50, 110, .16) !important; }
html.aiq-desk.si-at-on .si-subtabs.tbx > .tbx-l:not(#_) { align-items: flex-end; gap: 0; height: 36px; }
html.aiq-desk.si-at-on .si-subtabs.tbx > .si-subtab-tools:not(#_) { flex: none; align-self: center; margin: 0 8px 1px 12px; padding: 0; }
/* the shared tab look wins over the older Attio / underline subtab rules (those are !important in places) */
html.aiq-desk.si-at-on .si-subtabs .si-subtab.tbx-t:not(#_):not(#_):not(#_) { height: 35px !important; margin: 0 0 1px !important; padding: 0 16px !important; border: 0 !important; border-radius: 0 !important;
  background: none !important; box-shadow: none !important; font: 400 14px/1.3 Inter, system-ui, sans-serif !important; gap: 6px;
  color: color-mix(in srgb, var(--a-ink, #101112) 62%, transparent) !important; }
html.aiq-desk.si-at-on .si-subtabs .si-subtab.tbx-t:not(.is-on):hover:not(#_):not(#_):not(#_) { color: var(--a-ink, #101112) !important; }
html.aiq-desk.si-at-on .si-subtabs .si-subtab.tbx-t:not(.is-on):not(#_):not(#_):not(#_)::after { display: block !important; content: ''; position: absolute; right: 0; top: 11px; bottom: 11px; left: auto; width: 1px; height: auto;
  background: color-mix(in srgb, var(--tbx-tint) 22%, transparent); }
html.aiq-desk.si-at-on .si-subtabs .si-subtab.tbx-t:has(+ .tbx-t.is-on):not(#_):not(#_):not(#_)::after { display: none !important; }
html.aiq-desk.si-at-on .si-subtabs .si-subtab.tbx-t.is-on:not(#_):not(#_):not(#_) { height: 35.5px !important; margin: 0 5px 0 0 !important; padding: 0 14px 0 16px !important; font-weight: 500 !important;
  color: var(--a-ink, #101112) !important; background: var(--tbx-bed) !important; border: 1px solid var(--tbx-line) !important; border-bottom: 0 !important; border-radius: 4px 4px 0 0 !important;
  border-top-color: var(--ws-topline, var(--sh-line, var(--tbx-line))) !important; }
html.aiq-desk.si-at-on .si-subtabs .si-subtab.tbx-t.is-on:not(:first-child):not(#_):not(#_):not(#_) { margin-left: 5px !important; }
html.aiq-desk.si-at-on .si-subtabs .si-subtab.tbx-t.is-on:not(#_):not(#_):not(#_)::after { display: none !important; }

/* the view row's open tab: the old 2px bar is gone with the old rules; keep its words ink on the page colour */
html.aiq-desk.si-at-on .si1-tab.tbx-t.is-on:not(#_):not(#_) { color: var(--a-ink, #101112); }

/* the name bar is the sidebar's colour, every name black, its bottom line carried on over the tabs
   (--ws-sbbg / --ws-topline / --si-bed are read from the sidebar and the page by the script in index.html) */
html:has(.si-vrow.tbx) .at-pagebar:not(#_):not(#_) { background: var(--ws-sbbg, transparent) !important; }
html:has(.si-vrow.tbx).at-shell.at-done .at-pagebar:not(#_):not(#_):not(#_) { border-bottom-color: var(--ws-topline, var(--sh-line)) !important; }
html:has(.si-vrow.tbx) .at-pagebar:not(#_):not(#_):not(#_) :is(.at-pb-name, .at-pb-crumb, .at-pb-up):not(#_) { color: var(--a-ink, #101112) !important; }

/* the directory's view settings in the tab row (Sorted by · Cards | Table): plain borderless ink words like every other view
   setting (user, 2026-11-04) — no icons, no pill, no blue fill; the open view is ink 600. Search sits to their left. */
html.aiq-desk .tbx .sid-vctl { gap: 0; margin: 0 0 1px; align-self: center; }
html.aiq-desk .tbx .sid-vctl .sid-sortb:not(#_) { height: 28px; padding: 0 9px; gap: 4px; color: var(--a-label); }
html.aiq-desk .tbx .sid-vctl :is(.sid-sortb, .sid-seg button) > i:not(.sid-arr) { display: none; }
html.aiq-desk .tbx .sid-vctl .sid-seg:not(#_) { height: 28px; padding: 0; gap: 0; border-radius: 0; background: transparent; }
html.aiq-desk .tbx .sid-vctl .sid-seg button:not(#_) { height: 28px; padding: 0 9px; border-radius: 4px; color: var(--a-label); }
html.aiq-desk .tbx .sid-vctl .sid-seg button:hover:not(#_), html.aiq-desk .tbx .sid-vctl .sid-sortb:hover:not(#_) { background: var(--a-fill); color: var(--a-ink); }
html.aiq-desk .tbx .sid-vctl .sid-seg button.on:not(#_):not(#_) { background: transparent; color: var(--a-ink); font-weight: 600; }
/* no divider after the last sub-tab (Analytics) when nothing follows it (spacing pass 2026-11-07) */
html.aiq-desk.si-at-on .si-subtabs .si-subtab.tbx-t:last-child:not(#_):not(#_):not(#_)::after { display: none !important; }
