@font-face {
  font-family: Inter;
  src: url("/assets/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --page: #fff;
  --header: #fff;
  --text: #222;
  --muted: #646464;
  --border: #e6e6e6;
  --control-border: #cfcfcf;
  --control-icon: #686868;
  --header-icon: #606870;
  --table-header: #f8f8f8;
  --selected: #e7e7e7;
  --hover: #f6f6f6;
  --accent: #006ea6;
  --accent-text: #fff;
  --buy-background: #e0eaf2;
  --buy-text: #324f65;
  --sell-background: #f3e7e3;
  --sell-text: #714136;
  --gutter: 10.72px;
  --header-height: 52px;
  --radius: 4px;
  font: 16px/1.4 Inter, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #222;
    --header: #111;
    --text: #ddd;
    --muted: #a6a6a6;
    --border: #393939;
    --control-border: #555;
    --control-icon: #9b9b9b;
    --header-icon: #888;
    --table-header: #282828;
    --selected: #343434;
    --hover: #2c2c2c;
    --accent: #099dd7;
    --accent-text: #111;
    --buy-background: #283947;
    --buy-text: #bad1e1;
    --sell-background: #42302e;
    --sell-text: #e0bbb2;
  }
}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; overflow-y: scroll; }
body { margin: 0; color: var(--text); background: var(--page); -webkit-font-smoothing: antialiased; }
button, input, select { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: 1; }
a { color: var(--accent); text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }

.site-header {
  position: sticky; inset-block-start: 0; z-index: 5;
  height: calc(var(--header-height) + 1px); background: var(--header); border-bottom: 1px solid var(--border);
}
.site-header__inner {
  height: var(--header-height); padding: 0 var(--gutter); display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
}
.brand { color: var(--text); margin-inline-start: 12px; justify-self: start; display: inline-flex; align-items: center; font-size: 37px; line-height: 1; font-weight: 600; letter-spacing: -.045em; }
.brand img { height: 30px; width: auto; display: block; }
.primary-nav { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.primary-nav > * { color: var(--text); font-weight: 500; display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: var(--radius); }
.primary-nav [aria-current] { font-weight: 600; background: var(--selected); }
.primary-nav a:hover { background: var(--hover); }
.header-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 8px; }
.header-icon { display: grid; place-items: center; border: 0; border-radius: var(--radius); background: none; color: var(--header-icon); width: 40px; height: 40px; font-size: 25px; }
.header-icon:hover { background: var(--hover); }
.header-search { font-size: 22px; }
.header-search__close, .header-search[aria-expanded="true"] > svg { display: none; }
.header-search[aria-expanded="true"] .header-search__close { display: flex; }
.header-search[aria-expanded="true"] { background: var(--selected); }
.header-profile { border-radius: 50%; }
.header-profile:hover { background: transparent; }
.header-profile:hover .avatar { box-shadow: 0 0 0 2px var(--border); }
.header-profile .avatar { font-size: .875rem; }
.account-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 32px; padding: 0 10px; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-text); font-size: .875rem; font-weight: 500; white-space: nowrap;
}
.account-link:hover, .account-link[aria-current] { background: color-mix(in srgb, var(--accent) 88%, black); }
.mobile-menu, .mobile-toolbar { display: none; }

.shell {
  display: grid; grid-template-columns: clamp(190px, 21.25vw, 272px) minmax(0, 1fr);
  gap: clamp(16px, 2.5vw, 32px); padding: 0 var(--gutter);
}
.sidebar {
  position: sticky; top: calc(var(--header-height) + 1px); height: calc(100dvh - var(--header-height) - 1px);
  overflow-y: auto; scrollbar-width: none; padding: 12px; border-inline-end: 1px solid var(--border);
}
.sidebar form { margin: 0; }
.add-company { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 8px; margin-block-end: 6px; min-height: 40px; border: 0; background: none; color: var(--accent); text-align: start; }
.add-company:not(:disabled):hover { background: var(--hover); border-radius: var(--radius); }
.add-company:disabled { color: var(--muted); }
.add-company svg { font-size: 18px; }
.filter-group { display: grid; gap: 7px; margin: 0 0 16px; padding: 0; border: 0; min-inline-size: 0; }
label.filter-group { gap: 8px; }
.filter-group b, .filter-group legend { font-weight: 700; }
.filter-group legend { padding: 0; margin-block-end: 10px; }
.radio-option { min-height: 27px; display: flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; }
.radio-option input {
  appearance: none; width: 15px; height: 15px; border-radius: 50%; margin: 0; border: 1px solid #a3a3a3;
}
.radio-option input:checked { border: 4px solid var(--accent); }
.search-control, .select-control { position: relative; display: flex; align-items: center; min-height: 38px; }
.search-control svg, .select-control svg { color: var(--control-icon); position: absolute; font-size: 19px; pointer-events: none; }
.search-control svg { inset-inline-start: 7px; }
.select-control svg { inset-inline-end: 8px; }
.search-control input, .select-control select { width: 100%; height: 38px; border: 1px solid var(--control-border); border-radius: var(--radius); background: none; padding: 0 8px; }
.search-control input { padding-inline-start: 32px; }
.search-control input::placeholder { color: var(--control-icon); }
.select-control select { appearance: none; padding-inline-end: 32px; font-weight: 500; }
select option { background: var(--page); }
.interest-group { margin-block-start: -4px; margin-block-end: 12px; }
.interest-buttons { display: flex; overflow: hidden; border-radius: var(--radius); }
.interest-buttons button { flex: 1; border: 0; padding: 8px 0; background: var(--buy-background); color: var(--buy-text); }
.interest-buttons button + button { background: var(--sell-background); color: var(--sell-text); }
.interest-buttons button:hover { box-shadow: inset 0 0 0 2px currentColor; }
.interest-buttons button:focus-visible { outline-offset: -2px; }
.no-js-submit { margin-bottom: 12px; }
.js .no-js-submit { display: none; }
.site-links { display: flex; justify-content: center; gap: 16px; margin: 20px var(--gutter); font-size: .8125rem; }
.site-links a, .policy-date { color: var(--muted); }
.site-links a:hover { text-decoration: underline; }
.policy-page { max-width: 46rem; margin-inline: auto; padding: 32px var(--gutter); }
.policy-page h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.1rem); }
.policy-page h2 { font-size: 1.15rem; margin: 24px 0 6px; }
.policy-page p { margin: 0 0 12px; }
.policy-page .policy-date { margin-block: 4px 20px; }

.directory { padding-block-start: 15px; min-width: 0; }
.directory-tabs { display: flex; align-items: start; gap: 6px; padding-inline-start: 8px; margin-bottom: 12px; height: 38px; }
.directory-tabs a { color: var(--muted); padding: 8px 11px; border-radius: var(--radius); height: 38px; }
.directory-tabs a:hover { background: var(--hover); }
.directory-tabs [aria-current] { background: var(--selected); color: var(--text); }
.size-tabs { overflow-x: auto; scrollbar-width: none; }
.size-tabs a { flex: 0 0 auto; white-space: nowrap; }
.size-tabs a:focus-visible { outline-offset: -2px; }

.table-scroll { overflow-x: auto; scrollbar-width: none; container-type: inline-size; }
.table-scroll table {
  --track-name: minmax(285px, 4.16fr);
  --track-valuation: minmax(126px, 1fr);
  --track-sector: minmax(89px, 1.1fr);
  --track-people: 136px;
  --track-buyInterest: minmax(112px, 1fr);
  --track-sellInterest: minmax(112px, 1fr);
  --track-activityAt: 84px;
  --track-funding: 124px;
  display: block; width: 100%; border-collapse: collapse;
}
.table-scroll thead, .table-scroll tbody { display: block; }
.table-scroll tr { display: grid; grid-template-columns: var(--track-name) var(--track-order); border-bottom: 1px solid var(--border); }
.table-scroll thead tr { border: 0; }
.table-scroll th, .table-scroll td { min-width: 0; padding: 6px 8px; font-weight: 400; text-align: center; align-content: center; }
.table-scroll thead th { min-height: 42px; padding-block: 6px; background: var(--table-header); border-bottom: 1px solid var(--border); color: var(--muted); font-size: .8706rem; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.table-scroll .column-name { text-align: start; }
.table-scroll thead a { color: inherit; }
.sort-heading { display: inline-block; position: relative; }
.table-scroll td.mobile-directory-details { display: none; }
.sort-heading:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.sort-indicator {
  position: absolute; inset-inline-start: calc(100% + 4px); inset-block-start: 50%;
  translate: 0 -50%; width: 9px; height: 8px; fill: currentColor; pointer-events: none;
}
[aria-sort="ascending"] .sort-indicator { rotate: 180deg; }
.table-scroll tbody tr { cursor: pointer; min-height: 70.78px; }
.table-scroll tbody tr:not(.empty-row):hover { background: var(--hover); }
.table-scroll .identity { text-align: start; }
.identity__inner { display: flex; align-items: center; gap: 12px; }
.avatar { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.avatar--letter { display: grid; place-items: center; background: var(--selected); }
.account-avatar { position: relative; overflow: hidden; }
.account-avatar__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.identity__copy { min-width: 0; flex: 1; }
.identity__name { color: var(--text); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; line-height: 1.25; }
.sector-link { color: inherit; }
.identity__summary { color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: .8706em; line-height: 1.25; margin-block-start: 3px; }
.catalog-cell-label { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.stacked-entries { display: grid; width: fit-content; max-width: 100%; margin-inline: auto; line-height: 1.28; }
.stacked-entries--extra { grid-template-columns: minmax(0, auto) auto; column-gap: 5px; }
.stacked-entries--extra > .stacked-entry:first-child { grid-column: 1 / -1; }
.stacked-entries a { color: var(--text); }
.stacked-entries a:hover { text-decoration: underline; }
.more-people { font: inherit; color: var(--accent); border: 0; padding: 0; background: none; }
.more-people:hover { text-decoration: underline; }
.extra-mobile, .more-people--mobile { display: none; }
.people-popup, .directory-tooltip {
  position: fixed; inset: auto; margin: 0;
  max-width: min(280px, calc(100vw - 16px)); border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--page); color: var(--text);
  box-shadow: 0 4px 12px #0002; padding: 8px 12px; width: max-content;
  font-size: .875rem; text-align: start; overflow-wrap: anywhere;
}
.people-popup > span { display: block; padding-block: 2px; }
.directory-tooltip { z-index: 10; pointer-events: none; }
.table-scroll .empty-row { grid-template-columns: minmax(0, 1fr); width: 100%; cursor: default; }
.empty-row td { grid-column: 1 / -1; text-align: start; color: var(--muted); padding: 18px 8px; }
.empty-row a { white-space: nowrap; }

dialog {
  width: min(calc(100vw - 24px), 480px); max-height: min(88dvh, calc(100dvh - 24px));
  color: var(--text); background: var(--page); border: 1px solid var(--border); border-radius: 8px;
  padding: 16px; box-shadow: 0 8px 30px #0003; overscroll-behavior: contain;
}
dialog::backdrop { background: #0007; }
dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
dialog h2 { font-size: 1.25rem; margin: 0; }
dialog header button { width: 36px; height: 36px; padding: 0; background: transparent; border: 0; border-radius: var(--radius); display: grid; place-items: center; }
dialog header button:hover { background: var(--hover); }
dialog form b { display: block; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-block-start: 14px; }
.dialog-actions > a { margin-inline-end: auto; }
.dialog-done { min-height: 38px; border: 0; background: var(--accent); color: var(--accent-text); border-radius: var(--radius); padding: 7px 14px; }
.listing-form input, .listing-form select, .listing-form textarea {
  width: 100%; border: 1px solid var(--control-border); border-radius: var(--radius);
  padding: 8px; background: var(--page); color: inherit; font: inherit;
}
.listing-form textarea { resize: vertical; min-height: 88px; }
.listing-error { color: var(--sell-text); }
.listing-form > p:not(.listing-error), .interest-form-fields > p { margin-block: 0 16px; color: var(--muted); }
.listing-contact span { overflow-wrap: anywhere; }
.mobile-search { display: none; }
.mobile-navigation {
  position: fixed; inset: 0 0 0 auto; margin: 0;
  width: min(18rem, calc(100% - 56px)); height: 100dvh; max-width: none; max-height: none;
  overflow: auto; padding: 0; border: 0; border-inline-start: 1px solid var(--border); border-radius: 0;
  box-shadow: -8px 0 30px #0003;
}
.mobile-navigation__close { position: absolute; inset-block-start: 8px; inset-inline-end: var(--gutter); }
.mobile-navigation__close button { width: 44px; height: 44px; font-size: 22px; }
.mobile-navigation nav { padding: 8px var(--gutter); }
.mobile-navigation a { display: flex; align-items: center; min-height: 44px; padding-inline: 12px; color: var(--text); border-radius: var(--radius); }
.mobile-navigation a:first-child { margin-inline-end: 48px; }
.mobile-navigation a:hover { background: var(--hover); }
.mobile-navigation a[aria-current] { background: var(--selected); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .mobile-navigation[open] { animation: open-navigation .18s ease-out; }
}
@keyframes open-navigation { from { transform: translateX(100%); } }
@media (48rem <= width < 61rem) {
  .size-tabs { gap: 3px; padding-inline-start: 0; }
  .size-tabs a { padding-inline: 7px; font-size: .875rem; }
}
@media (width < 66rem) { .primary-nav--reference { display: none; } }
@media (width < 48rem) {
  .small-dialog[open]:has(.interest-form-fields) { display: flex; flex-direction: column; overflow: hidden; }
  .small-dialog .listing-form--interest { display: flex; flex-direction: column; min-height: 0; }
  .small-dialog .interest-form-fields {
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
    padding-inline: 3px; margin-inline: -3px;
  }
  .small-dialog .listing-form--interest .dialog-actions { flex: none; margin-block-start: 8px; }
  .interest-form-fields > p { margin-block-end: 12px; }
  .listing-form--interest .filter-group { gap: 5px; margin-block-end: 10px; }
  .listing-form--interest .listing-contact { display: flex; flex-wrap: wrap; gap: 3px 9px; }
  .listing-form--interest .listing-contact span { color: var(--muted); }
  .listing-form--interest textarea { min-height: 64px; }
  html:has(.mobile-navigation[open]) { overflow: hidden; }
  .site-header:has(.mobile-search:not([hidden])) { height: auto; }
  .site-header__inner { display: flex; justify-content: space-between; }
  .brand { font-size: 33px; margin: 0; }
  .brand img { height: 27px; }
  .header-actions { gap: 3px; }
  .header-actions .header-icon { width: 44px; height: 44px; }
  .mobile-search { display: block; margin: 0; padding: 3px var(--gutter) 8px; }
  .mobile-search .search-group { margin: 0; }
  .mobile-search .search-group > b { display: none; }
  .mobile-search input { height: 44px; background: var(--page); }
  .mobile-search input:focus { border-color: var(--accent); outline: 1px solid var(--accent); outline-offset: 0; }
  .primary-nav, .sidebar, .directory-tabs { display: none; }
  .mobile-menu { display: grid; }
  .shell { display: block; }
  .directory { padding-block-start: 19px; }
  .mobile-toolbar { display: flex; justify-content: space-between; align-items: start; gap: 8px; height: 46px; }
  .mobile-toolbar > div { display: flex; gap: 4px; }
  .mobile-toolbar button { display: flex; align-items: center; justify-content: center; width: 38.5px; height: 38px; background: var(--page); border: 1px solid var(--control-border); border-radius: var(--radius); font-size: 19px; padding: 0; }
  .mobile-toolbar .select-view { width: auto; border: 0; gap: 6px; color: var(--muted); font-size: 1.1487rem; font-weight: 700; justify-content: flex-start; }
  .mobile-toolbar .select-view svg { font-size: .85em; }
  .size-picker { position: relative; min-width: 0; }
  .size-picker .select-view[aria-expanded="true"] { color: var(--text); }
  .size-picker .select-view[aria-expanded="true"] svg { rotate: 180deg; }
  .size-picker nav {
    position: absolute; inset-block-start: calc(100% + 2px); inset-inline-start: 0; z-index: 3;
    min-inline-size: 12rem; max-block-size: calc(100dvh - 7rem);
    overflow: auto; overscroll-behavior: contain; padding: 4px;
    background: var(--page); border: 1px solid var(--control-border); border-radius: var(--radius);
    box-shadow: 0 6px 18px #0002;
  }
  .size-picker__measure { padding: 6px 8px 3px; color: var(--muted); font-size: .8125rem; }
  .size-picker nav a {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-block-size: 44px; padding-inline: 8px; border-radius: var(--radius); color: var(--text);
    white-space: nowrap; font-size: .9375rem;
  }
  .size-picker nav a:hover { background: var(--hover); }
  .size-picker nav a:focus-visible { outline-offset: -2px; }
  .size-picker nav a[aria-current] { background: var(--selected); font-weight: 550; }
  .size-picker nav svg { visibility: hidden; color: var(--accent); }
  .size-picker nav a[aria-current] svg { visibility: visible; }
  .mobile-toolbar .primary { background: var(--accent); border-color: transparent; color: var(--accent-text); }
  .mobile-toolbar .primary:disabled { background: var(--table-header); border-color: var(--border); color: var(--muted); }
  .table-scroll:not(.table-scroll--metrics) table {
    --mobile-identity-width: clamp(136px, 46cqi, 168px);
    --mobile-avatar-size: 24px;
    --mobile-identity-gap: 8px;
    --mobile-copy-indent: calc(var(--mobile-avatar-size) + var(--mobile-identity-gap));
    --mobile-summary-start: calc(8px + var(--mobile-copy-indent));
    --track-name: var(--mobile-identity-width); --track-valuation: 98px; --track-sector: 102px;
    --track-people: 138px; --track-buyInterest: 112px; --track-sellInterest: 112px;
  }
  .table-scroll:not(.table-scroll--metrics) tr { min-width: 100%; width: max-content; }
  .table-scroll:not(.table-scroll--metrics) tbody tr:not(.empty-row) { position: relative; min-height: 38px; font-size: .8706rem; }
  .table-scroll:not(.table-scroll--metrics) tbody tr:has(.identity__summary:not(:empty)) { padding-block-end: 20px; }
  .table-scroll:not(.table-scroll--metrics) tbody tr:not(.empty-row) > * { min-height: 37px; padding-block: 5px; }
  .table-scroll:not(.table-scroll--metrics) .identity__name { font-size: .8375rem; }
  .table-scroll:not(.table-scroll--metrics) .identity__inner { padding-inline-start: var(--mobile-copy-indent); }
  .table-scroll:not(.table-scroll--metrics) .identity__inner .avatar {
    position: absolute; inset-block: 0; inset-inline-start: 8px; margin-block: auto;
    inline-size: var(--mobile-avatar-size); block-size: var(--mobile-avatar-size);
  }
  .table-scroll:not(.table-scroll--metrics) .identity__summary {
    position: absolute; inset-block-start: 35px; inset-inline-start: var(--mobile-summary-start);
    inline-size: calc(100cqi - var(--mobile-summary-start) - 8px); margin: 0; display: block; font-size: .8125rem;
    white-space: nowrap; text-overflow: ellipsis;
  }
  .table-scroll--metrics thead, .table-scroll--metrics tr[data-profile] > td { display: none; }
  .table-scroll--metrics tbody { border-block-start: 1px solid var(--border); }
  .table-scroll--metrics tr[data-profile] {
    grid-template-columns: 32px minmax(0, 1fr); padding: 10px 8px 11px;
  }
  .table-scroll--metrics tr[data-profile] > .identity { grid-column: 1 / -1; grid-row: 1; padding: 0; }
  .table-scroll--metrics tr[data-profile] > .mobile-directory-details {
    display: flex; align-items: center; grid-column: 2; text-align: start; padding: 8px 0 0;
  }
  .mobile-metrics { flex: 1; min-width: 0; }
  .mobile-metrics dl { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 16px) / 3); gap: 8px; margin: 0; }
  .mobile-metrics--scroll { overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; scroll-snap-type: x mandatory; cursor: auto; }
  .mobile-metrics--scroll dl { grid-auto-columns: calc(100% / 3); gap: 0; }
  .mobile-metrics dl > div { min-width: 0; padding-inline-end: 5px; }
  .mobile-metrics--scroll dl > div { scroll-snap-align: start; }
  .mobile-metrics dt { color: var(--muted); font-size: .75rem; white-space: nowrap; }
  .mobile-metrics dd { margin: 0; font-size: .875rem; font-weight: 550; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-metrics .metric-missing { color: var(--muted); }
  .mobile-people { display: flex; align-items: baseline; gap: 3px; color: var(--text); }
  .mobile-people > :first-child { overflow: hidden; text-overflow: ellipsis; }
  .mobile-people > :nth-child(2) { color: var(--accent); font-size: .75rem; }
  .mobile-metrics-next { display: none; }
  .js .mobile-metrics-next {
    display: grid; place-items: center; flex: 0 0 28px; min-height: 40px; padding: 0;
    border: 0; border-radius: var(--radius); background: transparent; color: var(--muted);
  }
  .mobile-metrics-next:hover, .mobile-metrics-next:focus-visible { color: var(--text); background: var(--selected); }
  .mobile-metrics-next[data-at-end] svg { transform: rotate(180deg); }
  .table-scroll--metrics .identity__inner { gap: 8px; }
  .table-scroll--metrics .identity__inner .avatar { flex: 0 0 24px; width: 24px; height: 24px; }
  .table-scroll--metrics .identity__name { font-size: .9375rem; font-weight: 600; }
  .table-scroll--metrics .identity__summary { font-size: .8125rem; }
  .table-scroll--metrics .empty-row td { display: block; font-weight: 400; padding-block: 12px; }
  .stacked-entries { display: flex; justify-content: center; align-items: center; gap: 5px; }
  .stacked-entry:nth-child(2), .extra-desktop { display: none; }
  .more-people--mobile, .extra-mobile { display: inline; }
}
@media (width < 22.5rem) { .brand { font-size: 29px; } .brand img { height: 24px; } }
