/* ── Superinvestors: one row on desktop (user 2026-10-30, as Government / Congress / Reports / Markets: "tabs on the
   left, all the settings on the right, always one single row"; plain-text style). superinvestors/index.html draws the
   row (tabs, View settings, search, Add investors) so the first paint is final (user 2026-10-31: no flash on load);
   every rule is gated on html.aiq-desk (set before paint in _phone.html), so phones keep their layout. ── */
html.aiq-desk.si-at-on .si-vrow.si-one { gap: 2px; flex-wrap: nowrap; padding-left: 7px; container-type: inline-size; }
html.aiq-desk.si-at-on .si-vrow.si-one #si-vbtn { display: none !important; }
html.aiq-desk.si-at-on .si-vrow.si-one .si-vsp { flex: 1 1 auto; min-width: 8px; }
html.aiq-desk.si-at-on .si-vrow.si-one > :is(.at-btn, .si-vq) { flex: none; }
html.aiq-desk.si-at-on .si-vrow.si-one > .si-goback { margin-right: 4px; }
/* no back arrow on desktop (user 2026-10-31): the "Superinvestors" name in the page bar leads back to My investors */
html.aiq-desk.si-at-on .si-vrow.si-one #si-goback:not(#_) { display: none !important; }
html:not(.aiq-desk) .si1-tabs { display: none; }
/* tabs, Airtable-style (as Congress's .cg-vtab): plain words, no fill, no count; the open tab is ink with a 2px bar on
   the row's bottom edge. Short of room they scroll and fade at their right edge instead of pushing the buttons off. */
.si1-tabs { display: flex; align-items: stretch; align-self: stretch; gap: 2px; flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.si1-tabs::-webkit-scrollbar { display: none; }
.si1-tabs.fade { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
/* right side: View settings as plain borderless words (its icon and caret go) */
html.aiq-desk.si-at-on main .si-vrow.si-one #si-vset2:not(#_):not(#_) { height: 28px; padding: 0 9px; border: 0 !important; box-shadow: none !important; background: transparent !important;
  color: var(--a-ink); font: 500 14px/20px Inter, system-ui, sans-serif; white-space: nowrap; }
html.aiq-desk.si-at-on main .si-vrow.si-one #si-vset2:hover:not(#_):not(#_) { background: var(--a-fill) !important; }
html.aiq-desk.si-at-on .si-vrow.si-one #si-vset2 > i { display: none; }
/* search: an icon that opens into a field, stays open while it holds a query */
html.aiq-desk.si-at-on .si-vrow.si-one .si-vq i { left: 8px; }
html.aiq-desk.si-at-on .si-vrow.si-one .si-vq input:not(#_):not(#_) { width: 30px; padding: 0 0 0 28px; cursor: pointer; }
html.aiq-desk.si-at-on .si-vrow.si-one .si-vq input:not(#_):not(#_)::placeholder { color: transparent; }
html.aiq-desk.si-at-on .si-vrow.si-one .si-vq:hover input:not(#_):not(#_) { background: var(--a-fill) !important; }
/* the transition only on opening: on the closed rule it played 180→30px when the JS added .si-one after first paint, and
   it sticks half-way in a background tab (CLAUDE.md: no transition on a property a class swap changes) */
html.aiq-desk.si-at-on .si-vrow.si-one .si-vq input:is(:focus, :not(:placeholder-shown)):not(#_):not(#_) { width: 180px; padding-right: 8px; cursor: text; background: var(--a-fill) !important;
  transition: width .16s ease; }
html.aiq-desk.si-at-on .si-vrow.si-one .si-vq input:focus:not(#_):not(#_)::placeholder { color: var(--a-mute); }
html.aiq-desk.si-at-on .si-vrow.si-one > :is(.si-home-add, .si-addwl) { margin-left: 8px; }
/* laptop widths: still one row, sized to the row (sidebar open or not) — the long "Add holdings to watchlist" goes to an
   icon first (an investor's row carries the most), then View settings and Add investors (titles say what they are);
   the tabs tighten and then scroll */
@container (max-width: 960px) {
  html.aiq-desk.si-at-on .si-vrow.si-one > .si-addwl:not(#_):not(#_):not(#_):not(#_) { width: 28px; padding: 0 !important; gap: 0; justify-content: center; }
  html.aiq-desk.si-at-on .si-vrow.si-one > .si-addwl > span { display: none; }
}
@container (max-width: 840px) {
  html.aiq-desk.si-at-on main .si-vrow.si-one:not(.si1-book) #si-vset2:not(#_):not(#_) { width: 28px; padding: 0; justify-content: center; }
  html.aiq-desk.si-at-on .si-vrow.si-one:not(.si1-book) #si-vset2 > .si1-l { display: none; }
  html.aiq-desk.si-at-on .si-vrow.si-one #si-vset2 > i:first-child { display: inline-block; font-size: 15px; }
}
@container (max-width: 720px) {
  html.aiq-desk.si-at-on .si-vrow.si-one > .si-home-add:not(#_):not(#_):not(#_):not(#_) { width: 28px; padding: 0 !important; gap: 0; justify-content: center; }
  html.aiq-desk.si-at-on .si-vrow.si-one > .si-home-add > span { display: none; }
}
/* control types (user 2026-10-30, every header row): tabs = words + bar; view settings + search = plain words; an action
   that makes or sends something = the outlined secondary .at-btn (Add holdings to watchlist keeps its hairline ring);
   the page's one create action = filled blue, far right — + Add investors (was the theme's accent) */
html.aiq-desk.si-at-on main .si-vrow.si-one > .si-home-add.at-btn.at-pri:not(#_):not(#_):not(#_):not(#_) { background: var(--a-blue, #266DF0) !important; color: #fff !important; }
html.aiq-desk.si-at-on main .si-vrow.si-one > .si-home-add.at-btn.at-pri:not(#_):not(#_):not(#_):not(#_):hover { background: #215BC4 !important; }
html.aiq-desk.si-at-on main .si-vrow.si-one > .si-home-add i { color: #fff !important; }
/* the investor's tab row (Holdings · Activity · Analytics), a stock's (Holders · Insider buys · Past moves) and Stock
   screens' — the same tabs as the header (user 2026-10-31): plain words, no icon, no count, no box; the open tab is ink
   600 with a 2px ink bar on the row's bottom rule. Server markup already carries si-subtab-active, so no flash. */
html.aiq-desk.si-at-on .si-subtab-tools:not(#_) { align-self: center; }
/* Stock screens' "Window ⌄" is a view setting: plain ink words */
html.aiq-desk.si-at-on .si-subtab-tools .si-dd:not(#_):not(#_) { height: 28px; padding: 0 9px; border: 0 !important; box-shadow: none !important; background: transparent !important;
  border-radius: 8px; color: var(--a-ink); font: 500 14px/20px Inter, system-ui, sans-serif; }
html.aiq-desk.si-at-on .si-subtab-tools .si-dd:hover:not(#_):not(#_) { background: var(--a-fill) !important; }
html.aiq-desk.si-at-on .si-subtab-tools .si-dd .k { color: var(--a-label); }
/* an investor's page (user 2026-10-31, an exception like Markets): View settings is the page's one blue button, at the
   right beside the outlined + (Add holdings to watchlist); the view row has no picker (the card's name is) */
html.aiq-desk.si-at-on main .si-vrow.si-one.si1-book #si-vset2.at-pri:not(#_):not(#_):not(#_) { background: var(--a-blue, #266DF0) !important; color: #fff !important;
  padding: 0 10px 0 8px; gap: 6px; margin-left: auto; order: 9; }
html.aiq-desk.si-at-on main .si-vrow.si-one.si1-book #si-vset2.at-pri:hover:not(#_):not(#_):not(#_) { background: #215BC4 !important; }
html.aiq-desk.si-at-on .si-vrow.si-one.si1-book #si-vset2 > i:first-child { display: inline-block; color: #fff !important; }
/* the card's name is the investor picker: the name + a small ⌄, no box */
html.aiq-desk .si-hh-name { display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 0 4px; margin-left: -4px; border: 0; border-radius: 4px; background: none;
  font: inherit; color: inherit; cursor: pointer; }
html.aiq-desk .si-hh-name:hover { background: var(--a-fill); }
html.aiq-desk .si-hh-name i { font-size: 13px; color: var(--a-mute); }
html:not(.aiq-desk) .si-hh-name i { display: none; }
html:not(.aiq-desk) .si-hh-name { all: unset; }
/* an investor's page (user 2026-11-04): "Add holdings to watchlist" (outlined, left) + View settings (blue, right) sit at
   the right end of the Overview · Holdings · Activity · Analytics row, not the page's top row (_content.html .si1-acts) */
/* margin-right 20px = .si-panel's side padding, so the button's right edge lines up with the cards / tables below
   (10px overshot the Key facts card, user 2026-11-07) */
html.aiq-desk.si-at-on .si-subtabs > .si1-acts { margin-left: auto; margin-right: 20px; display: inline-flex; align-items: center; gap: 8px; flex: none;
  align-self: center; /* the row is align-items:flex-end for the tab bar; centre with the Quarter / Table|Pie tools (user 2026-11-07: button sat 4px low) */ }
html.aiq-desk.si-at-on .si-subtabs > .si1-acts:empty { display: none; }
html.aiq-desk.si-at-on .si-subtab-tools + .si1-acts { margin-left: 8px; }
html.aiq-desk.si-at-on main .si-subtabs > .si1-acts > #si-vset2:not(#_):not(#_):not(#_) { height: 28px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px 0 8px;
  border: 0 !important; box-shadow: none !important; background: var(--a-blue, #266DF0) !important; color: #fff !important; font: 500 14px/20px Inter, system-ui, sans-serif; white-space: nowrap; }
html.aiq-desk.si-at-on main .si-subtabs > .si1-acts > #si-vset2:hover:not(#_):not(#_):not(#_) { background: #215BC4 !important; }
html.aiq-desk.si-at-on .si-subtabs > .si1-acts > #si-vset2 i { color: #fff !important; }
html.aiq-desk.si-at-on .si-subtabs > .si1-acts > #si-vset2 > .si-cd { display: none; }
html.aiq-desk.si-at-on .si-subtabs > .si1-acts > #si-vset2[hidden] { display: none !important; }
