/* Superinvestors → All investors = the manager directory (2026-11-03), drawn by js/si-directory.js. The model portfolio
   browser's Attio look (css/mystocks-models-attio.css) on the page instead of in a dialog: Attio radii, so this file is
   excluded from square_corners.py like that one. docs/features/investors.md "Manager directory". */
#si-dir { --dA-ink: var(--a-ink, #101112); --dA-mute: var(--a-label, rgba(0,0,0,.63)); --dA-faint: rgba(0,0,0,.5);
  --dA-line: var(--a-line, #EEEFF1); --dA-ring: var(--a-ring, #E6E7EA); --dA-fill: rgba(0,0,0,.02); --dA-on: rgba(0,0,0,.04);
  --dA-hover: #F6F7F7; --dA-row: #F7F8FD; --dA-sorted: #F7F7FD; --dA-blue: #266DF0; --dA-solid: #FFFFFF;
  --dA-btn: inset 0 0 0 1px transparent, 0 0 2px 0 rgba(28,40,64,.18), 0 1px 3px 0 rgba(0,0,0,.04);
  display:block; padding:0; font:500 14px/20px Inter, sans-serif; color:var(--dA-ink); }
html[data-theme="dark"] #si-dir { --dA-ink: #F1F2F3; --dA-mute: rgba(255,255,255,.6); --dA-faint: rgba(255,255,255,.45);
  --dA-line: rgba(255,255,255,.08); --dA-ring: rgba(255,255,255,.12); --dA-fill: rgba(255,255,255,.03); --dA-on: rgba(255,255,255,.06);
  --dA-hover: rgba(255,255,255,.05); --dA-row: #24262C; --dA-sorted: #22232B; --dA-blue: #4E8CFC; --dA-solid: #1F1F1F;
  --dA-btn: inset 0 0 0 1px rgba(255,255,255,.10), 0 1px 2px 0 rgba(0,0,0,.3); }

#si-dir .sid-lib { display:grid; grid-template-columns:216px minmax(0,1fr); align-items:start; }
#si-dir .sid-main { min-width:0; padding:12px 16px 24px; border-left:1px solid var(--dA-line); min-height:calc(100vh - 110px); }

/* ── rail: Attio sidebar items with counts ── */
#si-dir .sid-rail { position:sticky; top:calc(var(--sh-top, 48px) + 44px); display:flex; flex-direction:column; gap:1px; padding:12px 8px 16px;
  max-height:calc(100vh - var(--sh-top, 48px) - 52px); overflow:auto; scrollbar-width:none; }
#si-dir .sid-rail::-webkit-scrollbar { display:none; }
#si-dir .sid-rail button { display:flex; align-items:center; gap:8px; height:30px; padding:0 8px; border:0; border-radius:9px; background:transparent;
  font:500 14px/20px Inter, sans-serif; color:var(--dA-ink); text-align:left; cursor:pointer; }
#si-dir .sid-rail button span { flex:1; min-width:0; display:flex; align-items:center; gap:8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#si-dir .sid-rail button:hover { background:var(--dA-hover); }
#si-dir .sid-rail button.on { background:var(--dA-on); }
#si-dir .sid-rail button em { min-width:20px; height:18px; padding:0 5px; display:inline-grid; place-items:center; border-radius:6px; font-style:normal;
  background:var(--dA-on); box-shadow:inset 0 0 0 1px var(--dA-line); font:500 11px/1 Inter, sans-serif; color:var(--dA-mute); font-variant-numeric:tabular-nums; }
#si-dir .sid-sec { font:500 12px/16px Inter, sans-serif; color:var(--dA-mute); padding:16px 8px 6px; }
#si-dir .sid-skr { display:block; height:22px; margin:4px 8px; border-radius:6px; }

/* style dots (the category colours of the models table) */
#si-dir .sid-dot { width:7px; height:7px; border-radius:2px; flex:none; background:var(--dA-faint); display:inline-block; }
#si-dir .sid-blue { background:#455DDC; } #si-dir .sid-green { background:#43D1A7; } #si-dir .sid-orange { background:#FF862E; }
#si-dir .sid-violet { background:#9646EF; } #si-dir .sid-teal { background:#14AABE; } #si-dir .sid-slate { background:#727C94; }
#si-dir .sid-st { display:inline-flex; align-items:center; gap:7px; color:var(--dA-mute); }

/* ── toolbar: title · count · filter chips … Sorted by · Cards | Table ── */
#si-dir .sid-tool { display:flex; align-items:center; gap:8px; margin-bottom:12px; min-height:32px; }
#si-dir .sid-sp { flex:1; }
#si-dir .sid-h { display:flex; align-items:center; gap:8px; flex-wrap:wrap; min-width:0; }
#si-dir .sid-h b { font:600 14px/20px Inter, sans-serif; }
#si-dir .sid-h > span { font:500 12px/16px Inter, sans-serif; color:var(--dA-mute); font-variant-numeric:tabular-nums; }
#si-dir .sid-chip { display:inline-flex; align-items:center; gap:6px; height:24px; padding:0 6px 0 8px; border:0; border-radius:7px; cursor:pointer;
  background:var(--dA-on); color:var(--dA-ink); font:500 12px/16px Inter, sans-serif; }
#si-dir .sid-chip i { font-size:11px; color:var(--dA-mute); }
#si-dir .sid-sortb { display:inline-flex; align-items:center; gap:6px; height:32px; padding:0 10px 0 8px; border:0; border-radius:8px; cursor:pointer;
  background:transparent; font:500 14px/20px Inter, sans-serif; color:var(--dA-mute); white-space:nowrap; }
#si-dir .sid-sortb b { font-weight:500; color:var(--dA-ink); }
#si-dir .sid-sortb:hover { background:var(--dA-hover); }
#si-dir .sid-arr { color:var(--dA-blue); font-size:12px; margin:0 3px; }
#si-dir .sid-seg { display:inline-flex; gap:2px; padding:2px; height:32px; border-radius:10px; background:var(--dA-on); flex:none; }
#si-dir .sid-seg button { display:inline-flex; align-items:center; gap:6px; height:28px; padding:0 10px; border:0; border-radius:8px; background:transparent;
  font:500 14px/20px Inter, sans-serif; color:var(--dA-mute); cursor:pointer; }
#si-dir .sid-seg button.on { background:var(--dA-solid); color:var(--dA-ink); box-shadow:0 1px 2px -1px rgba(0,0,0,.08), inset 0 0 0 1px var(--dA-line); }

/* ── cards ── */
#si-dir .sid-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap:12px; }
#si-dir .sid-card { display:flex; flex-direction:column; gap:10px; padding:14px; border-radius:12px; background:var(--dA-solid);
  box-shadow:inset 0 0 0 1px var(--dA-line); cursor:pointer; min-width:0; }
#si-dir .sid-card:hover { box-shadow:inset 0 0 0 1px var(--dA-ring), 0 1px 3px rgba(0,0,0,.04); }
#si-dir .sid-skc { cursor:default; }
#si-dir .sid-card .h { display:flex; align-items:center; gap:10px; min-width:0; }
#si-dir .sid-card .nm { flex:1; min-width:0; display:flex; flex-direction:column; }
#si-dir .sid-card .nm a { color:inherit; text-decoration:none; min-width:0; }
#si-dir .sid-card .nm b { display:block; font:500 14px/20px Inter, sans-serif; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#si-dir .sid-card .nm small { font:500 12px/16px Inter, sans-serif; color:var(--dA-mute); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#si-dir .sid-cs { display:flex; justify-content:space-between; font:500 12px/16px Inter, sans-serif; color:var(--dA-mute); }
#si-dir .sid-spark { width:100%; height:44px; display:block; overflow:visible; }
#si-dir .sid-spark polyline { fill:none; vector-effect:non-scaling-stroke; stroke-linejoin:round; stroke-linecap:round; }
#si-dir .sid-spark .m { stroke:#455DDC; stroke-width:1.75; }
#si-dir .sid-spark .m.dn { stroke:var(--tb-neg, #c8203f); }
#si-dir .sid-spark .b { stroke:var(--dA-faint); stroke-width:1.25; stroke-dasharray:4 3; }
#si-dir .sid-spl { display:flex; justify-content:space-between; margin-top:4px; font:500 11px/14px Inter, sans-serif; color:var(--dA-faint); }
#si-dir .sid-nosp { height:62px; display:grid; place-items:center; font:500 12px/16px Inter, sans-serif; color:var(--dA-faint); border-radius:8px; background:var(--dA-fill); }
#si-dir .sid-fig { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:8px; padding-top:10px; border-top:1px solid var(--dA-line); }
#si-dir .sid-fig span { display:flex; flex-direction:column; min-width:0; }
#si-dir .sid-fig small { font:500 11px/14px Inter, sans-serif; color:var(--dA-mute); white-space:nowrap; }
#si-dir .sid-fig b { font:500 13px/18px Inter, sans-serif; font-variant-numeric:tabular-nums; white-space:nowrap; }
#si-dir .sid-lk { font-size:12px; color:var(--dA-faint); margin-left:4px; }
#si-dir .sid-stale { font:500 11px/16px Inter, sans-serif; color:#FF862E; }

/* Follow: on hover only (Superinvestors' row-action rule), Following always */
#si-dir .sid-fol { display:inline-flex; align-items:center; gap:4px; height:24px; padding:0 8px; border:0; border-radius:7px; cursor:pointer; flex:none;
  background:var(--dA-solid); box-shadow:var(--dA-btn); font:500 12px/16px Inter, sans-serif; color:var(--dA-ink); visibility:hidden; }
#si-dir .sid-fol i { font-size:11px; }
#si-dir .sid-fol.on { visibility:visible; box-shadow:none; background:transparent; color:var(--tb-pos, #0d8a66); }
#si-dir .sid-card:hover .sid-fol, #si-dir tr:hover .sid-fol, #si-dir .sid-fol:focus-visible { visibility:visible; }

/* ── table: Attio grid (40px header, 36px rows, hairlines both ways); sticky header + name column inside its own box ── */
#si-dir .sid-twrap { border-radius:12px; box-shadow:inset 0 0 0 1px var(--dA-line); overflow:auto; max-height:calc(100vh - var(--sh-top, 48px) - 120px);
  overscroll-behavior:contain; }
#si-dir table.sid-tbl:not(#_) { border-collapse:separate; border-spacing:0; width:max(100%, 1620px); table-layout:auto;
  font:500 14px/20px Inter, sans-serif; font-variant-numeric:tabular-nums; color:var(--dA-ink); }
#si-dir table.sid-tbl:not(#_) > thead > tr > th { height:40px; padding:0 12px; background:var(--dA-solid) !important; color:var(--dA-ink) !important;
  font:500 14px/20px Inter, sans-serif !important; text-transform:none; letter-spacing:0; border:0; border-bottom:1px solid var(--dA-line);
  border-right:1px solid var(--dA-line); white-space:nowrap; cursor:pointer; position:sticky; top:0; z-index:2; }
#si-dir table.sid-tbl:not(#_) > thead > tr > th:hover { background:linear-gradient(var(--dA-hover), var(--dA-hover)), var(--dA-solid) !important; }
#si-dir table.sid-tbl:not(#_) > thead > tr > th[title] span { text-decoration:underline dotted var(--dA-ring); text-underline-offset:4px; }
#si-dir table.sid-tbl:not(#_):not(#_) > tbody > tr > td { height:36px; padding:0 12px; border:0; border-bottom:1px solid var(--dA-line); border-right:1px solid var(--dA-line);
  background:var(--dA-solid) !important; white-space:nowrap; font:500 14px/20px Inter, sans-serif; color:var(--dA-ink); vertical-align:middle; }
#si-dir table.sid-tbl:not(#_) > * > tr > :last-child { border-right:0; }
#si-dir table.sid-tbl:not(#_) > tbody > tr:last-child > td { border-bottom:0; }
#si-dir table.sid-tbl:not(#_):not(#_) > tbody > tr > td.is-sorted { background:var(--dA-sorted) !important; }
#si-dir table.sid-tbl:not(#_):not(#_) > tbody > tr[data-slug]:hover > td { background:var(--dA-row) !important; cursor:pointer; }
#si-dir table.sid-tbl .num { text-align:right; }
#si-dir table.sid-tbl .txt { text-align:left; }
#si-dir table.sid-tbl:not(#_) .nm { position:sticky; left:0; z-index:1; min-width:300px; max-width:300px; width:300px; text-align:left; box-shadow:1px 0 0 var(--dA-line); }
#si-dir table.sid-tbl:not(#_) thead .nm { z-index:3; }
#si-dir table.sid-tbl td.nm > div { display:flex; align-items:center; gap:8px; min-width:0; }
#si-dir table.sid-tbl td.nm a { color:inherit; text-decoration:none; min-width:0; flex:none; max-width:170px; }
#si-dir table.sid-tbl td.nm b { display:block; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#si-dir table.sid-tbl td.nm a:hover b { text-decoration:underline; text-decoration-color:var(--dA-ring); text-underline-offset:3px; }
#si-dir table.sid-tbl .sid-fund { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--dA-faint); font-size:13px; }
#si-dir table.sid-tbl .si-avatar { flex:none; }
#si-dir table.sid-tbl tr.sid-bench > td { background:linear-gradient(var(--dA-fill), var(--dA-fill)), var(--dA-solid) !important; color:var(--dA-mute); }
#si-dir .sid-bench-ic { width:20px; height:20px; border-radius:6px; display:inline-grid; place-items:center; box-shadow:inset 0 0 0 1px var(--dA-ring); font-size:11px; color:var(--dA-mute); }
#si-dir table.sid-tbl .sid-folc { width:104px; min-width:104px; text-align:right; cursor:default; }
#si-dir .sid-tk { font-weight:500; }
#si-dir .sid-m { color:var(--dA-faint); }
/* gains / losses: plain coloured numbers, no pills (user, 2026-11-03) */
#si-dir :is(.pos, .neg):not(#_):not(#_) { background:none !important; padding:0 !important; box-shadow:none !important; border-radius:0 !important; }
#si-dir .pos:not(#_):not(#_) { color:var(--tb-pos, #0d8a66) !important; }
#si-dir .neg:not(#_):not(#_) { color:var(--tb-neg, #c8203f) !important; }

#si-dir .sid-empty { display:flex; flex-direction:column; align-items:center; gap:10px; padding:64px 16px; text-align:center; color:var(--dA-mute); }
#si-dir .sid-empty b { font:600 14px/20px Inter, sans-serif; color:var(--dA-ink); }

/* the loading skeleton, in the Table view's shape */
#si-dir .sid-skt { display:flex; flex-direction:column; }
#si-dir .sid-skrow { display:flex; align-items:center; gap:16px; height:40px; border-bottom:1px solid var(--dA-line); padding:0 8px; }

/* phones: the rail becomes one scrolling row above the list */
@media (max-width: 767px) {
  #si-dir .sid-lib { grid-template-columns:minmax(0,1fr); }
  #si-dir .sid-rail { position:static; flex-direction:row; max-height:none; overflow-x:auto; padding:8px 12px; border-bottom:1px solid var(--dA-line); }
  #si-dir .sid-rail button { flex:none; }
  #si-dir .sid-sec { display:none; }
  #si-dir .sid-main { border-left:0; padding:12px; min-height:0; }
  #si-dir .sid-tool { flex-wrap:wrap; }
}

/* ── an investor's Overview tab (_overview_tab.html, js/si-overview.js): charts + buys / sells + top holdings, Key facts beside ── */
#si-ov { --oA-ink: var(--a-ink, #101112); --oA-mute: var(--a-label, rgba(0,0,0,.63)); --oA-faint: rgba(0,0,0,.5); --oA-line: var(--a-line, #EEEFF1);
  --oA-ring: var(--a-ring, #E6E7EA); --oA-solid: #FFFFFF; --oA-hover: #F6F7F7; container-type:inline-size; container-name:sio;
  font:500 14px/20px Inter, sans-serif; color:var(--oA-ink); font-variant-numeric:tabular-nums; }
html[data-theme="dark"] #si-ov { --oA-ink: #F1F2F3; --oA-mute: rgba(255,255,255,.6); --oA-faint: rgba(255,255,255,.45); --oA-line: rgba(255,255,255,.08);
  --oA-ring: rgba(255,255,255,.12); --oA-solid: #1F1F1F; --oA-hover: rgba(255,255,255,.05); }
#si-ov .sio-grid { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:16px; align-items:start; }
@container sio (max-width: 900px) { #si-ov .sio-grid { grid-template-columns:minmax(0,1fr); } }
#si-ov .sio-main { display:flex; flex-direction:column; gap:16px; min-width:0; }
#si-ov .sio-side { position:sticky; top:calc(var(--sh-top, 48px) + 56px); min-width:0; }
/* narrow pane: Key facts above the charts, not stuck over them */
@container sio (max-width: 900px) { #si-ov .sio-side { order:-1; position:static; } }
#si-ov .sio-card { border-radius:12px; box-shadow:inset 0 0 0 1px var(--oA-line); background:var(--oA-solid); padding:14px 16px; min-width:0; }
#si-ov .sio-flush { padding:14px 0 0; overflow:hidden; }
#si-ov .sio-flush > .sio-h { padding:0 16px; }
#si-ov .sio-h { display:flex; align-items:baseline; gap:10px; margin-bottom:10px; }
#si-ov .sio-h b { font:600 14px/20px Inter, sans-serif; }
#si-ov .sio-hm { font:500 12px/16px Inter, sans-serif; color:var(--oA-mute); }
#si-ov .sio-more { margin-left:auto; font:500 13px/18px Inter, sans-serif; color:var(--oA-mute); text-decoration:none; }
#si-ov .sio-more:hover { color:var(--oA-ink); text-decoration:underline; }
#si-ov .sio-m { color:var(--oA-faint); }
#si-ov .sio-none { padding:28px 16px; text-align:center; color:var(--oA-mute); }
#si-ov .pos { color:var(--tb-pos, #0d8a66); } #si-ov .neg { color:var(--tb-neg, #c8203f); }

/* charts */
#si-ov .sio-chart { position:relative; min-height:190px; touch-action:none; }
#si-ov .sio-chart svg { display:block; width:100%; height:auto; overflow:visible; font:500 11px Inter, sans-serif; }
#si-ov .sio-chart .g line { stroke:var(--oA-line); stroke-dasharray:3 3; }
#si-ov .sio-chart :is(.g, .yr) text { fill:var(--oA-faint); }
#si-ov .sio-chart .ln { fill:none; stroke:#455DDC; stroke-width:1.75; stroke-linejoin:round; stroke-linecap:round; }
#si-ov .sio-chart .ar { fill:url(#sio-fade); }
#si-ov .sio-chart .hit { fill:transparent; cursor:crosshair; }
#si-ov .sio-chart :is(.xh, .dot) { opacity:0; pointer-events:none; }
#si-ov .sio-chart.is-hover :is(.xh, .dot) { opacity:1; }
#si-ov .sio-chart .xh { stroke:var(--oA-ring); }
#si-ov .sio-chart .dot { fill:#455DDC; stroke:var(--oA-solid); stroke-width:2; }
#si-ov .sio-chart .bar.dim { opacity:.35; }
#si-ov .sio-tip { position:absolute; z-index:2; pointer-events:none; min-width:180px; padding:8px 10px; border-radius:10px; background:var(--pop-bg, #fff);
  box-shadow:inset 0 0 0 1px var(--oA-line), 0 4px 8px -4px rgba(28,40,64,.12), 0 4px 12px -2px rgba(24,41,75,.16); font:500 12px/16px Inter, sans-serif; }
#si-ov .sio-tip[hidden] { display:none; }
#si-ov .sio-tip .d { color:var(--oA-mute); margin-bottom:4px; }
#si-ov .sio-tip .r { display:flex; justify-content:space-between; gap:14px; padding:1px 0; }
#si-ov .sio-tip .r span { color:var(--oA-mute); display:inline-flex; align-items:center; gap:6px; }
#si-ov .sio-tip .r i, #si-ov .sio-leg i { width:8px; height:8px; border-radius:2px; display:inline-block; flex:none; }
#si-ov .sio-tip .r b { font-weight:600; }
#si-ov .sio-leg { display:flex; flex-wrap:wrap; gap:6px 14px; margin-top:8px; font:500 12px/16px Inter, sans-serif; color:var(--oA-mute); }
#si-ov .sio-leg span { display:inline-flex; align-items:center; gap:6px; }

/* tables: Attio grid, edge to edge inside the card */
#si-ov .sio-tw { overflow-x:auto; }
#si-ov table.sio-tbl:not(#_):not(#_) { width:100%; border-collapse:separate; border-spacing:0; font:500 13px/18px Inter, sans-serif; }
#si-ov table.sio-tbl:not(#_):not(#_) :is(th, td) { height:36px; padding:0 12px; border:0; border-top:1px solid var(--oA-line); background:var(--oA-solid) !important;
  color:var(--oA-ink) !important; font:500 13px/18px Inter, sans-serif !important; white-space:nowrap; text-transform:none; letter-spacing:0; }
#si-ov table.sio-tbl:not(#_):not(#_) th { height:34px; color:var(--oA-mute) !important; }
#si-ov table.sio-tbl :is(th, td):first-child { padding-left:16px; } #si-ov table.sio-tbl :is(th, td):last-child { padding-right:16px; }
#si-ov table.sio-tbl .num { text-align:right; }
#si-ov table.sio-tbl td :is(.pos, .neg):not(#_):not(#_) { background:none !important; padding:0 !important; box-shadow:none !important; border-radius:0 !important; }
#si-ov table.sio-tbl td .pos:not(#_):not(#_) { color:var(--tb-pos, #0d8a66) !important; } #si-ov table.sio-tbl td .neg:not(#_):not(#_) { color:var(--tb-neg, #c8203f) !important; }
#si-ov table.sio-tbl:not(#_):not(#_) td.sio-m { color:var(--oA-faint) !important; }
#si-ov .sio-tk { font-weight:600; color:inherit; text-decoration:none; }
#si-ov a.sio-tk:hover, #si-ov .sio-ql:hover { text-decoration:underline; }
#si-ov .sio-ql { color:inherit; text-decoration:none; }
#si-ov .sio-mvi { margin-right:14px; }
#si-ov .sio-stk { display:flex; align-items:center; gap:8px; min-width:0; }
#si-ov .sio-stk img { width:18px; height:18px; border-radius:4px; flex:none; }
#si-ov .sio-nm { color:var(--oA-mute); overflow:hidden; text-overflow:ellipsis; max-width:260px; }

/* Key facts: Attio record details */
#si-ov .sio-kv { padding:14px 0 6px; }
#si-ov .sio-kv > .sio-h { padding:0 16px; margin-bottom:4px; }
#si-ov .sio-kvg { padding:4px 0; } #si-ov .sio-kvg + .sio-kvg { border-top:1px solid var(--oA-line); }
#si-ov .sio-kvh { padding:8px 16px 2px; font:500 12px/16px Inter, sans-serif; color:var(--oA-mute); cursor:help; }
#si-ov .sio-kvr { display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:30px; padding:0 16px; font:500 13px/18px Inter, sans-serif; }
#si-ov .sio-kvr span { color:var(--oA-mute); }
#si-ov .sio-kvr span[title] { cursor:help; }
#si-ov .sio-kvr b { font-weight:500; text-align:right; white-space:nowrap; }
#si-ov .sio-kvr b small { font-size:11px; color:var(--oA-faint); }
/* phones build their own Overview (js/aiq-phone-record.js): this tab's link stays off the phone tab row */
@media (max-width: 767px) { html.aiq-phone .si-subtab[data-k="overview"] { display:none; } }
/* buys / sells wrap inside their cell instead of running off the card (one ticker + amount never splits) */
#si-ov table.sio-mv:not(#_):not(#_) td { white-space:normal; height:auto; padding-top:8px; padding-bottom:8px; }
#si-ov table.sio-mv .sio-mvi { white-space:nowrap; display:inline-block; }
/* narrow panes (a ~1000px window): a slimmer frozen name column without the fund line */
#si-dir .sid-main { container-type:inline-size; container-name:sidm; }
@container sidm (max-width: 760px) {
  #si-dir table.sid-tbl:not(#_) .nm { min-width:210px; max-width:210px; width:210px; }
  #si-dir table.sid-tbl .sid-fund { display:none; }
  #si-dir table.sid-tbl td.nm a { max-width:150px; }
}
#si-dir .sid-h b, #si-dir .sid-chip, #si-dir .sid-h > span { white-space:nowrap; }

/* ── round 2 (user, 2026-11-03: rail higher and in cards; table edge to edge like the Holdings table, hairline after the
   name, tint from B2, tick boxes, top border, blue Cards | Table, 1Y further left, tickers as pills) ── */
#si-dir { --dA-cell: #FAFAFE; }
html[data-theme="dark"] #si-dir { --dA-cell: rgba(255,255,255,.018); }
/* desktop only: on phones this undid the one-column grid and squeezed the list into 208px beside an empty column (2026-11-07) */
html.aiq-desk #si-dir .sid-lib { grid-template-columns:232px minmax(0,1fr); }
/* --sh-top is already the bottom of the page's sticky header: the rail sits flush under it, its first card level with the toolbar */
html.aiq-desk #si-dir .sid-rail { top:var(--sh-top, 48px); max-height:calc(100vh - var(--sh-top, 48px)); gap:8px; padding:12px 12px 16px; }
#si-dir .sid-rc { display:flex; flex-direction:column; gap:1px; padding:4px; border-radius:10px; background:var(--dA-solid); box-shadow:inset 0 0 0 1px var(--dA-line); }
#si-dir .sid-rc .sid-sec { padding:6px 8px 4px; }
#si-dir .sid-rc button { height:28px; border-radius:7px; }
#si-dir .sid-main { padding:12px 0 0; }
#si-dir .sid-tool { padding:0 16px; margin-bottom:12px; }
#si-dir .sid-grid { padding:0 16px 24px; }
#si-dir .sid-empty { padding-left:16px; padding-right:16px; }
/* the active Cards | Table half = the page's blue */
#si-dir .sid-seg button.on { background:var(--a-blue, #266DF0); color:#fff; box-shadow:none; }
#si-dir .sid-seln { font:500 13px/18px Inter, sans-serif; color:var(--dA-mute); white-space:nowrap; }
#si-dir .sid-selfol { height:30px; }
#si-dir .sid-selx { display:inline-grid; place-items:center; width:26px; height:26px; border:0; border-radius:7px; background:transparent; color:var(--dA-mute); cursor:pointer; }
#si-dir .sid-selx:hover { background:var(--dA-hover); }
/* table: the Holdings table's grid — edge to edge, a rule on top, 40px header, 36px rows, 1px lines both ways */
#si-dir .sid-twrap { border-radius:0; box-shadow:none; border-top:1px solid var(--dA-line); max-height:calc(100vh - var(--sh-top, 48px) - 56px); }
#si-dir table.sid-tbl:not(#_) > thead > tr > th { background:var(--dA-solid) !important; }
#si-dir table.sid-tbl:not(#_):not(#_) > tbody > tr > td { background:var(--dA-cell) !important; }
#si-dir table.sid-tbl:not(#_):not(#_) > tbody > tr > td:is(.sid-ckc, .nm) { background:var(--dA-solid) !important; }
#si-dir table.sid-tbl:not(#_):not(#_) > tbody > tr[data-slug]:hover > td { background:var(--dA-row) !important; }
/* opaque: the frozen columns sit over cells scrolling underneath */
#si-dir table.sid-tbl:not(#_):not(#_) > tbody > tr.is-ck > td { background:linear-gradient(rgba(38,109,240,.06), rgba(38,109,240,.06)), var(--dA-solid) !important; }
html[data-theme="dark"] #si-dir table.sid-tbl:not(#_):not(#_) > tbody > tr.is-ck > td { background:linear-gradient(rgba(78,140,252,.10), rgba(78,140,252,.10)), var(--dA-solid) !important; }
#si-dir table.sid-tbl:not(#_):not(#_) > tbody > tr > td.is-sorted { background:var(--dA-cell) !important; }
/* frozen tick + name columns; one hairline after the name (it was a border plus a shadow: two lines) */
#si-dir table.sid-tbl:not(#_) .sid-ckc { position:sticky; left:0; z-index:1; width:40px; min-width:40px; max-width:40px; padding:0 0 0 16px !important; border-right:0 !important; text-align:left; cursor:pointer; }
#si-dir table.sid-tbl:not(#_) thead .sid-ckc { z-index:3; }
#si-dir table.sid-tbl:not(#_) .nm { left:40px; box-shadow:none; border-right:1px solid var(--dA-line) !important; padding-left:8px; }
#si-dir table.sid-tbl:not(#_) .sid-folc { border-right:0 !important; }
/* ticker pills (the Holdings table's .at-pill.sm), inline beside their number */
#si-dir .sid-tk.at-pill { display:inline-flex; vertical-align:middle; margin-right:6px; color:var(--dA-ink); font-weight:500; }

/* ── Overview round 2 (user, 2026-11-03: "the tables are horrible… no columns, thick rows, no borders"; less white space):
   the two charts side by side, tables in the Holdings table's grid inside a bordered card, tighter gaps ── */
#si-ov { --oA-cell: #FAFAFE; --oA-row: #F7F8FD; }
html[data-theme="dark"] #si-ov { --oA-cell: rgba(255,255,255,.018); --oA-row: #24262C; }
#si-ov .sio-grid { gap:12px; }
#si-ov .sio-main { gap:12px; container-type:inline-size; container-name:siom; }
#si-ov .sio-side { top:calc(var(--sh-top, 48px) + 8px); }
#si-ov .sio-charts { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; }
@container siom (min-width: 760px) { #si-ov .sio-charts { grid-template-columns:minmax(0,1fr) minmax(0,1fr); } }
#si-ov .sio-card { padding:12px 14px 10px; }
#si-ov .sio-h { margin-bottom:6px; }
#si-ov .sio-chart { min-height:176px; }
#si-ov .sio-leg { margin-top:4px; gap:4px 12px; font-size:11.5px; }
#si-ov .sio-tcard { border-radius:12px; box-shadow:inset 0 0 0 1px var(--oA-line); background:var(--oA-solid); overflow:hidden; min-width:0; }
#si-ov .sio-tcard > .sio-h { padding:10px 14px; margin:0; }
#si-ov .sio-tcard .sio-tw { overflow-x:auto; border-top:1px solid var(--oA-line); }
#si-ov table.sio-gt:not(#_):not(#_):not(#_) { width:100%; min-width:640px; table-layout:fixed; border-collapse:separate; border-spacing:0;
  font:500 14px/20px Inter, sans-serif; font-variant-numeric:tabular-nums; }
#si-ov table.sio-gt:not(#_):not(#_):not(#_) > thead > tr > th { height:40px; padding:0 12px; background:var(--oA-solid) !important; color:var(--oA-ink) !important;
  font:500 14px/20px Inter, sans-serif !important; text-transform:none; letter-spacing:0; border:0; border-bottom:1px solid var(--oA-line);
  border-right:1px solid var(--oA-line); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#si-ov table.sio-gt:not(#_):not(#_):not(#_) > tbody > tr > td { height:36px; padding:0 12px; border:0; border-bottom:1px solid var(--oA-line);
  border-right:1px solid var(--oA-line); background:var(--oA-cell) !important; color:var(--oA-ink) !important; font:500 14px/20px Inter, sans-serif !important;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; vertical-align:middle; }
#si-ov table.sio-gt:not(#_):not(#_):not(#_) > tbody > tr > td:first-child { background:var(--oA-solid) !important; }
#si-ov table.sio-gt:not(#_):not(#_):not(#_) > tbody > tr:hover > td { background:var(--oA-row) !important; }
#si-ov table.sio-gt:not(#_):not(#_):not(#_) > * > tr > :last-child { border-right:0; }
#si-ov table.sio-gt:not(#_):not(#_):not(#_) > tbody > tr:last-child > td { border-bottom:0; }
#si-ov table.sio-gt :is(th, td):first-child { padding-left:14px !important; }
#si-ov table.sio-gt .num { text-align:right; }
/* the old in-card table rules (first round) no longer apply to these */
#si-ov table.sio-gt:not(#_):not(#_):not(#_) td.aiq-lock-td { background:var(--oA-cell) !important; color:var(--oA-mute) !important; }
#si-ov .sio-tk.at-pill { display:inline-flex; vertical-align:middle; color:var(--oA-ink); font-weight:500; text-decoration:none; }
#si-ov a.sio-tk.at-pill:hover { background:var(--oA-hover); text-decoration:none; }
#si-ov table.sio-mv .sio-mvi { display:inline-flex; align-items:center; gap:6px; margin-right:16px; }
#si-ov table.sio-mv:not(#_):not(#_):not(#_) td { white-space:nowrap; height:36px; padding-top:0; padding-bottom:0; }
#si-ov .sio-stk img { width:20px; height:20px; border-radius:5px; }
#si-ov .sio-nm { color:var(--oA-ink); max-width:none; }
/* vs last quarter: the Holdings table's tinted activity tags */
#si-ov .sio-tag { display:inline-flex; align-items:center; height:20px; padding:0 6px; border-radius:6px; font:500 12px/16px Inter, sans-serif; }
#si-ov .sio-tag.t-new { background:#E5EEFF; box-shadow:inset 0 0 0 1px #D6E5FF; color:#1D4FC4; }
#si-ov .sio-tag.t-add { background:#E0FCED; box-shadow:inset 0 0 0 1px #CBF7E1; color:#007D53; }
#si-ov .sio-tag.t-red { background:#FFF3CC; box-shadow:inset 0 0 0 1px #FFE59E; color:#874D00; }
html[data-theme="dark"] #si-ov .sio-tag.t-new { background:#1D2E55; box-shadow:inset 0 0 0 1px #2B3E6D; color:#A9C4FF; }
html[data-theme="dark"] #si-ov .sio-tag.t-add { background:#1D4034; box-shadow:inset 0 0 0 1px #244A3A; color:#A7F2CF; }
html[data-theme="dark"] #si-ov .sio-tag.t-red { background:#3A2D12; box-shadow:inset 0 0 0 1px #523817; color:#FFD269; }
#si-ov table.sio-mv:not(#_):not(#_):not(#_) { min-width:860px; }
#si-ov table.sio-mv .sio-mvi { margin-right:10px; }
/* gains / losses in these tables: plain coloured numbers (the house Attio rule pills them) */
#si-ov table.sio-gt td :is(.pos, .neg):not(#_):not(#_):not(#_) { background:none !important; padding:0 !important; box-shadow:none !important; border-radius:0 !important; height:auto; }
#si-ov table.sio-gt td .pos:not(#_):not(#_):not(#_) { color:var(--tb-pos, #0d8a66) !important; }
#si-ov table.sio-gt td .neg:not(#_):not(#_):not(#_) { color:var(--tb-neg, #c8203f) !important; }
#si-ov table.sio-top:not(#_):not(#_):not(#_) { min-width:760px; }

/* ── round 3 (user, 2026-11-03): rail back to one plain list (the cards were disliked); a ticked row opens a floating
   follow pop-up instead of a Follow column; a followed manager gets a small check after the name ── */
#si-dir .sid-rail { gap:1px; padding:12px 8px 16px; }
#si-dir .sid-rail .sid-sec { padding:16px 8px 6px; }
#si-dir .sid-rail button { height:30px; border-radius:9px; }
#si-dir .sid-fing { font-size:13px; color:var(--tb-pos, #0d8a66); flex:none; }
.sid-selbar { position:fixed; bottom:24px; transform:translateX(-50%); z-index:var(--z-menu, 1200); display:flex; align-items:center; gap:8px;
  padding:6px 6px 6px 14px; border-radius:12px; background:var(--pop-bg, #fff); color:var(--a-ink, #101112);
  box-shadow:inset 0 0 0 1px rgba(28,40,64,.08), 0 4px 8px -4px rgba(28,40,64,.12), 0 8px 24px -4px rgba(24,41,75,.2); font:500 14px/20px Inter, sans-serif; }
.sid-selbar .n { margin-right:6px; white-space:nowrap; }
.sid-selbar .at-btn { height:30px; }
.sid-selbar .sid-selx { display:inline-grid; place-items:center; width:28px; height:28px; border:0; border-radius:8px; background:transparent; color:var(--a-label, rgba(0,0,0,.6)); cursor:pointer; }
.sid-selbar .sid-selx:hover { background:var(--a-hover, rgba(0,0,0,.04)); }

/* ── Overview round 3 (user, 2026-11-03): room under the tab row; borders on every side of every card (an inset shadow
   is painted under the table cells, so the tables hid it — real borders now); Key facts as Attio's record details ── */
#si-ov { padding-top:8px; }
#si-ov :is(.sio-card, .sio-tcard):not(#_) { box-shadow:none; border:1px solid var(--oA-line); }
#si-ov .sio-tcard .sio-tw { border-top:1px solid var(--oA-line); }
#si-ov .sio-kv { border:1px solid var(--oA-line); border-radius:12px; background:var(--oA-solid); padding:4px 0 10px; }
#si-ov .sio-kvt { display:flex; align-items:baseline; justify-content:space-between; gap:10px; padding:10px 16px 6px; }
#si-ov .sio-kvt b { font:600 14px/20px Inter, sans-serif; }
#si-ov .sio-kvt span { font:500 12px/16px Inter, sans-serif; color:var(--oA-mute); }
#si-ov .sio-kvh { display:flex; align-items:center; gap:6px; margin:8px 16px 2px; padding-top:10px; border-top:1px solid var(--oA-line);
  font:500 12px/16px Inter, sans-serif; color:var(--oA-mute); cursor:default; }
#si-ov .sio-kvh:first-of-type { border-top:0; padding-top:2px; margin-top:2px; }
#si-ov .sio-kvh[title] { cursor:help; } #si-ov .sio-kvh i { font-size:12px; opacity:.7; }
#si-ov .sio-dl { display:grid; grid-template-columns:minmax(0, 132px) minmax(0, 1fr); margin:0; padding:0 8px; }
#si-ov .sio-dl dt, #si-ov .sio-dl dd { display:flex; align-items:center; min-height:32px; margin:0; padding:0 8px; border-radius:8px; min-width:0; }
#si-ov .sio-dl dt { gap:8px; font:500 13px/18px Inter, sans-serif; color:var(--oA-mute); white-space:nowrap; }
#si-ov .sio-dl dt[title] { cursor:help; }
#si-ov .sio-dl dt i { font-size:15px; color:var(--oA-faint); flex:none; }
#si-ov .sio-dl dd { gap:8px; font:500 14px/20px Inter, sans-serif; color:var(--oA-ink); font-variant-numeric:tabular-nums; white-space:nowrap; overflow:hidden; }
#si-ov .sio-kvtk { display:inline-flex; align-items:center; gap:6px; }
#si-ov .sio-kvtk img { width:18px; height:18px; border-radius:5px; }
#si-ov .sio-kvtk em { font-style:normal; color:var(--oA-mute); font-size:13px; }
#si-ov .sio-kvbar { flex:0 0 56px; height:6px; border-radius:3px; background:rgba(69,93,220,.12); overflow:hidden; }
#si-ov .sio-kvbar i { display:block; height:100%; background:#455DDC; border-radius:3px; }
#si-ov .sio-kvsp { height:20px; padding:0 6px; display:inline-flex; align-items:center; border-radius:6px; background:var(--oA-cell);
  box-shadow:inset 0 0 0 1px var(--oA-line); font:500 12px/16px Inter, sans-serif; color:var(--oA-mute); }
.sid-selbar { bottom:56px; }
.sid-selbar .at-btn.at-pri:not(#_) { background:#266DF0 !important; color:#fff !important; box-shadow:none !important; }
.sid-selbar .at-btn:not(#_) { display:inline-flex; align-items:center; gap:6px; padding:0 10px; border-radius:8px; font:500 14px/20px Inter, sans-serif; }

/* ── round 4 (user, 2026-11-03): no title row — Sorted by + Cards | Table sit in the tab row (#sid-vctl, built by
   si-directory.js before the search icon) and the table starts on the tab row's rule (that rule is its top border) ── */
#si-dir .sid-main { padding:0; }
#si-dir .sid-twrap { border-top:0; max-height:calc(100vh - var(--sh-top, 48px)); }
#si-dir .sid-grid { padding-top:12px; }
#si-dir .sid-empty { padding-top:64px; }
.sid-vctl { display:flex; align-items:center; gap:8px; flex:none; margin-right:4px; }
.sid-vctl .sid-sortb { display:inline-flex; align-items:center; gap:6px; height:32px; padding:0 10px 0 8px; border:0; border-radius:8px; cursor:pointer;
  background:transparent; font:500 14px/20px Inter, sans-serif; color:var(--a-label, rgba(0,0,0,.63)); white-space:nowrap; }
.sid-vctl .sid-sortb b { font-weight:500; color:var(--a-ink, #101112); }
.sid-vctl .sid-sortb i { font-size:14px; }
.sid-vctl .sid-sortb:hover { background:var(--a-hover, rgba(0,0,0,.04)); }
.sid-vctl .sid-arr { color:var(--a-blue, #266DF0); font-size:12px; }
.sid-vctl .sid-seg { display:inline-flex; gap:2px; padding:2px; height:32px; border-radius:10px; background:rgba(0,0,0,.04); }
html[data-theme="dark"] .sid-vctl .sid-seg { background:rgba(255,255,255,.06); }
.sid-vctl .sid-seg button { display:inline-flex; align-items:center; gap:6px; height:28px; padding:0 10px; border:0; border-radius:8px; background:transparent;
  font:500 14px/20px Inter, sans-serif; color:var(--a-label, rgba(0,0,0,.63)); cursor:pointer; }
.sid-vctl .sid-seg button i { font-size:14px; }
.sid-vctl .sid-seg button.on { background:var(--a-blue, #266DF0); color:#fff; }

/* ── round 5 (user, 2026-11-03): tickers as coloured tags (the sector tags' palette, one colour per ticker), never
   underlined on hover; no S&P 500 row in the directory; the header's Return period caret only where it opens a menu
   (the Holdings tab's return card drives it; on Overview there is none) ── */
:is(#si-dir, #si-ov) .at-tag.sid-tk, :is(#si-dir, #si-ov) .at-tag.sio-tk { display:inline-flex; align-items:center; height:22px; padding:0 6px; border-radius:6px;
  font:500 12.5px/16px Inter, sans-serif; text-decoration:none !important; vertical-align:middle; }
#si-dir .at-tag.sid-tk { margin-right:6px; }
:is(#si-dir, #si-ov) a.at-tag:hover { text-decoration:none !important; filter:brightness(.97); }
#si-ov .sio-kvtk .at-tag { margin:0; }
#si-content:not(:has(.sir-ret)) .si-ret-fact { cursor:default !important; }
#si-content:not(:has(.sir-ret)) .si-ret-fact .si-ret-w::after { display:none !important; }
/* the Key facts card isn't a table: the tag colours copied from aiq-table-attio.css */
html #si-ov .sio-kv .at-tag[data-c="0"] { background: #E9F7F0; color: #127A52; }
html #si-ov .sio-kv .at-tag[data-c="1"] { background: #E8F3FC; color: #1F6AA5; }
html #si-ov .sio-kv .at-tag[data-c="2"] { background: #FDF6DC; color: #8A6A08; }
html #si-ov .sio-kv .at-tag[data-c="3"] { background: #F3EDFD; color: #6B3FC2; }
html #si-ov .sio-kv .at-tag[data-c="4"] { background: #FDEEE6; color: #B04E17; }
html #si-ov .sio-kv .at-tag[data-c="5"] { background: #EEF0F3; color: #474C56; }
html[data-theme="dark"] #si-ov .sio-kv .at-tag[data-c="0"] { background: rgba(67,209,167,.14); color: #5FE0B9; }
html[data-theme="dark"] #si-ov .sio-kv .at-tag[data-c="1"] { background: rgba(80,160,240,.16); color: #8CC4F6; }
html[data-theme="dark"] #si-ov .sio-kv .at-tag[data-c="2"] { background: rgba(230,190,60,.15); color: #EBCB6B; }
html[data-theme="dark"] #si-ov .sio-kv .at-tag[data-c="3"] { background: rgba(150,70,239,.18); color: #C3A2F7; }
html[data-theme="dark"] #si-ov .sio-kv .at-tag[data-c="4"] { background: rgba(255,134,46,.15); color: #FFAD70; }
html[data-theme="dark"] #si-ov .sio-kv .at-tag[data-c="5"] { background: rgba(255,255,255,.08); color: #C9CCD2; }
/* header icons (round 6): the house .th-ic, a touch of the brand blue so they read as part of the label */
:is(#si-dir table.sid-tbl, #si-ov table.sio-gt) th i.th-ic { color:#7C8CE6; font-size:15px; margin-right:6px; vertical-align:-2px; }
html[data-theme="dark"] :is(#si-dir table.sid-tbl, #si-ov table.sio-gt) th i.th-ic { color:#8C9BF0; }
