/* Insiders' view row wears the house tab bar (user, 2026-11-04, same as Graphs / Dashboards / Superinvestors): the shared .tbx look from
   aiq-tabbar.css on .ins-bar.ins-one: All purchases · People · Companies (· My companies with the draft on) are the tabs, Export / View
   settings / Filter / search keep their kinds at the right end, small and flat. Desktop only (html.aiq-desk); phones keep their layout.
   The open tab carries .on (the page's scripts read it) and .is-on (the shared look); its SVG feet are in every tab, shown on the open
   one only. My companies is open by CSS while html.ins-onhome is set (before paint). */
html.aiq-desk .tbx { --tbx-bed: var(--sh-bed, var(--a-page, #fff)); }
/* phones: .tbx's strip never applies */
html:not(.aiq-desk) .ins-bar.tbx:not(#_):not(#_) { height: auto; box-shadow: none; }
html:not(.aiq-desk) .ins-bar.tbx::after { display: none; }

html.at-shell.at-done.aiq-desk .ins-bar.ins-one.tbx:not(#_):not(#_):not(#_) { height: 36px; min-height: 36px; padding: 0 8px 0 0 !important; gap: 0 !important; border: 0 !important; align-items: flex-end;
  background: color-mix(in srgb, var(--tbx-tint) 8%, var(--sh-bed, var(--a-card, #fff))) !important; }
html.aiq-desk .ins-bar.tbx > .ins-vtabs.tbx-l:not(#_) { align-self: auto; align-items: flex-end; gap: 0; flex: 0 1 auto; height: 36px; }
html.aiq-desk .ins-bar.tbx > .ins-sp { flex: 1; min-width: 0; }
html.aiq-desk .ins-bar.tbx > :not(.ins-vtabs):not(.ins-sp):not(#_) { align-self: center; margin-bottom: 1px; }
html.aiq-desk .ins-bar.tbx > #ins-filt { margin-left: 6px; }
html.aiq-desk .tbx .tbx-t:not(.is-on) .fl { display: none; }
/* the old underline tabs' rules (padding, bold, 2px bar) are gone from ins-one-row.css; keep link tabs plain */
html.aiq-desk .ins-vtab.tbx-t:not(#_):not(#_) { text-decoration: none; }
/* the open tab's bar: the page bar's line is carried over the row (aiq-tabbar.css), so the tab's top edge is that line */
/* My companies (draft) is open while html.ins-onhome; All purchases then reads as a closed tab */
html.aiq-desk.ins-onhome .tbx .ins-vtab.is-on:not(.ins-vtab-mine):not(#_):not(#_) { color: color-mix(in srgb, var(--a-ink, #101112) 62%, transparent); font-weight: 400; background: none; border: 0; border-radius: 0; height: 35px; margin: 0 0 1px; padding: 0 16px; }
html.aiq-desk.ins-onhome .tbx .ins-vtab.is-on:not(.ins-vtab-mine) .fl { display: none; }
html.aiq-desk.ins-onhome .tbx .ins-vtab-mine:not(#_):not(#_) { color: var(--a-ink, #101112); font-weight: 500; background: var(--tbx-bed); border: 1px solid var(--tbx-line); border-bottom: 0; border-radius: 4px 4px 0 0;
  border-top-color: var(--ws-topline, var(--sh-line, var(--tbx-line))); height: 35.5px; margin: 0 5px 0 0; padding: 0 14px 0 16px; }
html.aiq-desk.ins-onhome .tbx .ins-vtab-mine .fl-r { display: block; }
html.aiq-desk.ins-onhome .tbx .ins-vtab-mine::after { display: none; }
html.aiq-desk.ins-onhome .tbx .ins-vtab-mine + .ins-vtab::after { display: none; }

/* controls: smaller and flat (24px, 4px corners), kinds unchanged: Export outlined, View settings plain words, Filter the blue one */
html.at-shell.at-done.aiq-desk main .ins-bar.tbx :is(#ins-cbtn, #ins-sortbtn, #ins-days):not(#_):not(#_):not(#_) { height: 24px !important; padding: 0 8px !important; border-radius: 4px !important;
  font: 400 13px/20px Inter, system-ui, sans-serif !important; }
html.at-shell.at-done.aiq-desk main .ins .ins-bar.tbx #ins-csv:not(#_):not(#__):not(#___) { height: 24px !important; padding: 0 8px 0 6px !important; border-radius: 4px !important; margin: 0 6px 0 0;
  font: 400 13px/20px Inter, system-ui, sans-serif !important; box-shadow: inset 0 0 0 var(--hair, 1px) var(--a-ring, #E6E7EA) !important; }
/* ins-one-row.css turns Export into an icon under 560px, but this rule's 13px font outranked its font-size 0: the label
   spilled over View settings at 820px (2026-11-09) */
@container (max-width: 560px) {
  html.at-shell.at-done.aiq-desk main .ins .ins-bar.tbx #ins-csv:not(#_):not(#__):not(#___) { font-size: 0 !important; width: 24px; padding: 0 !important; justify-content: center; }
}
html.at-shell.at-done.aiq-desk main .ins-bar.tbx #ins-fbtn:not(#_):not(#_):not(#_) { height: 24px !important; padding: 0 8px 0 6px !important; border-radius: 4px !important;
  font: 400 13px/20px Inter, system-ui, sans-serif !important; box-shadow: none !important; }
html.at-shell.at-done.aiq-desk .ins-bar.tbx .ins-search:not(#_):not(#_):not(#_) { height: 24px; }
html.at-shell.at-done.aiq-desk .ins-bar.tbx .ins-search #ins-q:not(#_):not(#_):not(#_) { height: 24px; border-radius: 4px; font: 400 13px/20px Inter, system-ui, sans-serif !important; }

/* the name bar: the sidebar's colour, every name black (the line over the row and the colour come from aiq-tabbar.css's :has(.tbx) rules) */
html:has(.ins-bar.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 pages' tab row (People · Companies, directory.html .idr-tabs) is the same strip, so switching tabs never changes the bar */
html.aiq-desk .idr-tabs.tbx:not(#_):not(#_) { display: flex; height: 36px; padding: 0; gap: 0; border: 0; align-items: flex-end; overflow: visible;
  background: color-mix(in srgb, var(--tbx-tint) 8%, var(--sh-bed, var(--a-card, #fff))); }
html.aiq-desk .idr-tabs.tbx > .tbx-l { gap: 0; }
html.aiq-desk .idr-tab.tbx-t:not(#_):not(#_) { text-decoration: none; }
html:not(.aiq-desk) .idr-tabs.tbx { display: none; }
html:has(.idr-tabs.tbx) .at-pagebar:not(#_):not(#_):not(#_) :is(.at-pb-name, .at-pb-crumb, .at-pb-up, .at-pb-back):not(#_) { color: var(--a-ink, #101112) !important; }

/* this page's name row is .ins-top (not .at-pagebar): the sidebar's colour, its bottom line the sidebar logo row's line, carried on over the tab row */
html.aiq-desk:has(.ins-bar.tbx) .ins-top:not(#_):not(#_):not(#_) { background: var(--ws-sbbg, transparent) !important; border-bottom: var(--hair, 1px) solid var(--ws-topline, var(--sh-line)) !important; }
html.aiq-desk:has(.ins-bar.tbx) .ins-top:not(#_):not(#_) :is(*):not(svg):not(path):not(button):not(a):not(#_) { color: var(--a-ink, #101112) !important; }
html.aiq-desk:has(.idr-tabs.tbx) .idr-top:not(#_):not(#_):not(#_) { background: var(--ws-sbbg, transparent) !important; border-bottom: var(--hair, 1px) solid var(--ws-topline, var(--sh-line)) !important; }

/* name row reads "Insiders › All purchases" (the open tab), as People / Companies do: My companies while html.ins-onhome; desktop only */
.ins-sep, .ins-crumb { display: none; }
html.aiq-desk .ins-sep { display: inline-block; font-size: 11px; color: var(--a-mute); margin: 0 -2px; }
html.aiq-desk .ins-crumb { display: inline; font: 500 14px/20px Inter, system-ui, sans-serif; color: var(--a-ink, #101112); }
.ins-crumb-mine { display: none; }
html.ins-onhome .ins-crumb-mine { display: inline; }
html.ins-onhome .ins-crumb-all { display: none; }
html.aiq-desk .ins-top { gap: 10px; }

/* the icon glyph is white on every Insiders page (was a grey on All purchases) */
html.aiq-desk .ins-top .at-ico i:not(#_):not(#_):not(#_):not(#_) { color: #fff !important; }
/* "Insiders" in the People / Companies name row is a label, not a link (user, 2026-11-04) */
html:has(.idr-tabs.tbx) .at-pagebar:not(#_):not(#_) .at-pb-up:not(#_):not(#_) { pointer-events: none !important; cursor: default !important; background: none !important; text-decoration: none !important; }
/* the old 2px ink underline (ins-dir.css .idr-tab.on::after) drew under the raised open tab as well (spacing pass 2026-11-07) */
html.aiq-desk .idr-tabs.tbx .idr-tab.tbx-t.on:not(#_):not(#_)::after { display: none; }
