:root {
  --bg: #f3f5f7;
  --panel: #ffffff;
  --panel-raised: #f7f9fb;
  --line: #dce2e8;
  --line-strong: #c4cdd7;
  --ink: #17212b;
  --muted: #627080;
  --muted-soft: #8793a1;
  --accent: #df5416;
  --accent-soft: rgba(223, 84, 22, 0.1);
  --accent-strong: #b9400d;
  --accent-surface: #fff7f2;
  --accent-line: #efad8d;
  --accent-ink: #96340c;
  --hover-surface: #eef2f3;
  --scroll-thumb: rgba(23, 33, 43, 0.28);
  --good: #12845c;
  --radius: 7px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, "SF Pro Display", "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(to right, rgba(23, 33, 43, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 33, 43, 0.045) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: min(1580px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 26px 0 56px;
}

.masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
}

.masthead h1 {
  margin: 0;
  font-weight: 760;
  letter-spacing: 0;
  font-size: clamp(1.8rem, 2.4vw, 2.7rem);
  line-height: 1;
}

.status-copy,
.table-caption,
th,
td {
  color: var(--muted);
}

.masthead-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-button {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 10px 14px;
  background: var(--panel-raised);
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
}

.secondary-button {
  background: transparent;
}

.secondary-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.secondary-link:hover {
  text-decoration: underline;
}

.primary-button:disabled {
  opacity: 0.55;
  cursor: progress;
}

.primary-button {
  transition:
    border-color 140ms ease,
    background 140ms ease,
    transform 120ms ease;
}

.primary-button:hover {
  border-color: var(--accent);
  background: var(--accent-surface);
}

.primary-button:active {
  transform: translateY(1px);
}

.primary-button:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.view-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--panel);
}

.tab-button {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 9px 14px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  transition:
    color 150ms ease,
    background 150ms ease,
    box-shadow 180ms ease;
}

.tab-button:last-child {
  border-right: 0;
}

.tab-button:hover:not(.is-active) {
  color: var(--ink);
  background: #f1f4f7;
}

.tab-button.is-active {
  color: var(--ink);
  background: var(--accent-surface);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.tab-button:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--accent);
}

.controls-bar,
.list-card {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.controls-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 13px 14px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) minmax(160px, 0.9fr) minmax(150px, 0.8fr) minmax(180px, 0.9fr);
  gap: 10px;
}

.portfolio-toolbar {
  grid-template-columns: minmax(260px, 1.4fr) minmax(180px, 0.8fr);
}

.admin-toolbar {
  grid-template-columns: minmax(280px, 1fr) auto auto;
}

/* Unified control styling for every input/select across the app so height,
   padding, border-radius, and focus state match. */
.control-input,
.toolbar input,
.toolbar select {
  width: 100%;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 0 12px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.2;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.control-input:hover,
.toolbar input:hover,
.toolbar select:hover {
  border-color: var(--line-strong);
}

.control-input:focus,
.control-input:focus-visible,
.toolbar input:focus,
.toolbar input:focus-visible,
.toolbar select:focus,
.toolbar select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: #ffffff;
}

.control-input[hidden] {
  display: none !important;
}

.toolbar input::placeholder,
.control-input::placeholder {
  color: var(--muted-soft);
}

.toolbar select,
.control-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='%239b9b9b'><path d='M2 4l4 4 4-4z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 10px;
  padding-right: 28px;
}

/* Plain inputs shouldn't get the chevron. */
.toolbar input,
.control-input[type="search"],
.control-input[type="text"],
.admin-form input.control-input {
  background-image: none;
  padding-right: 12px;
}

.table-caption {
  margin: 0;
  font-size: 0.95rem;
  font-family: "SFMono-Regular", Consolas, monospace;
}

.filter-chips {
  display: none;
  gap: 6px;
  margin-top: 9px;
  flex-wrap: wrap;
}

.filter-chips.is-visible {
  display: flex;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #f7f9fb;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.74rem;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease;
}

.filter-chip.is-bad {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.35);
}

.filter-chip:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: var(--accent-surface);
}

.filter-chip-x {
  font-size: 0.95rem;
  line-height: 1;
  color: var(--muted);
}

.filter-chip:hover .filter-chip-x {
  color: var(--accent);
}

.filter-chip-clear {
  background: transparent;
  border-style: dashed;
  color: var(--muted);
}

.filter-chip-clear:hover {
  color: var(--ink);
}

.status-copy {
  margin: 0;
  margin-top: 6px;
  line-height: 1.45;
  font-size: 0.9rem;
}

.import-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}

.import-form {
  display: grid;
  gap: 14px;
}

.import-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: end;
  gap: 14px;
}

.import-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.import-form input[type="text"],
.import-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #090909;
  padding: 12px 14px;
  color: var(--ink);
  resize: vertical;
}

.checkbox-row {
  display: flex !important;
  grid-auto-flow: column;
  align-items: center;
  justify-content: end;
  gap: 8px !important;
  padding-bottom: 12px;
  white-space: nowrap;
}

.import-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.table-wrap {
  overflow: auto;
  scroll-behavior: smooth;
}

.rounds-brief-list[hidden],
.table-wrap[hidden] {
  display: none;
}

.rounds-brief-list {
  display: grid;
  gap: 8px;
  padding: 8px;
  background: #f4f5f4;
}

.overview-dashboard {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.overview-dashboard[hidden] {
  display: none;
}

.overview-heading,
.overview-metrics,
.overview-panel {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
}

.overview-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  border-left: 4px solid var(--accent);
}

.overview-heading span,
.overview-panel header span,
.overview-metrics span {
  color: var(--muted-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
}

.overview-heading h2,
.overview-panel h3 {
  margin: 5px 0 0;
  letter-spacing: 0;
}

.overview-heading h2 {
  font-size: 1.35rem;
}

.overview-heading p,
.overview-heading time {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.overview-heading time {
  flex: 0 0 auto;
}

.overview-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.overview-metrics > div {
  min-width: 0;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}

.overview-metrics > div:last-child {
  border-right: 0;
}

.overview-metrics strong {
  display: block;
  margin-top: 7px;
  font-size: 1.18rem;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 10px;
}

.overview-panel {
  min-width: 0;
  overflow: hidden;
}

.overview-sector-panel {
  position: relative;
  z-index: 2;
  overflow: visible;
}

.overview-panel > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
}

.overview-panel h3 {
  font-size: 0.94rem;
}

.overview-panel header small,
.overview-panel header a {
  color: var(--muted);
  font-size: 0.7rem;
}

.overview-panel header a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.overview-sector-list {
  display: grid;
  padding: 6px 17px 11px;
}

.overview-sector-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(145px, 0.8fr) minmax(120px, 1.5fr) 74px;
  align-items: center;
  gap: 14px;
  min-height: 47px;
  margin: 0 -9px;
  padding: 0 9px 0 6px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  border-radius: 4px;
  transition: background-color 100ms ease, border-color 100ms ease, box-shadow 100ms ease;
}

.overview-sector-row:hover,
.overview-sector-row:focus-within {
  z-index: 13;
  border-left-color: var(--accent);
  background: var(--accent-surface);
  box-shadow: inset 0 0 0 1px rgba(223, 84, 22, 0.12);
}

.overview-sector-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.overview-sector-popover {
  position: absolute;
  z-index: 12;
  top: -7px;
  left: calc(100% + 14px);
  display: grid;
  width: min(390px, calc(100vw - 48px));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: 0 16px 36px rgba(27, 36, 44, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-5px);
  visibility: hidden;
  transition: opacity 90ms ease, transform 90ms ease, visibility 0s linear 90ms;
}

.overview-sector-row:hover .overview-sector-popover,
.overview-sector-row:focus-within .overview-sector-popover {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
  transition-delay: 0s;
}

.overview-sector-popover header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.overview-sector-popover header {
  padding: 11px 12px 10px;
  border-bottom: 1px solid var(--line);
  background: #f8f9f8;
}

.overview-sector-popover header div span,
.overview-sector-popover header div strong {
  display: block;
}

.overview-sector-popover header div span {
  color: var(--muted-soft);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.overview-sector-popover header div strong {
  margin-top: 2px;
  font-size: 0.78rem;
}

.overview-sector-popover header a {
  color: var(--accent-ink);
  font-size: 0.64rem;
  font-weight: 700;
  text-decoration: none;
  pointer-events: auto;
}

.overview-sector-deal {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 8px 11px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.7rem;
  text-decoration: none;
  pointer-events: auto;
}

.overview-sector-deal:last-child {
  border-bottom: 0;
}

.overview-sector-deal:hover,
.overview-sector-deal:focus-visible {
  background: var(--hover-surface);
  outline: none;
}

.overview-sector-deal .company-logo {
  width: 34px;
  height: 34px;
}

.overview-sector-deal-copy,
.overview-sector-deal-value {
  display: grid;
  min-width: 0;
}

.overview-sector-deal-copy strong,
.overview-sector-deal-copy small,
.overview-sector-deal-value strong,
.overview-sector-deal-value small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-sector-deal-copy strong {
  font-size: 0.73rem;
}

.overview-sector-deal-copy small,
.overview-sector-deal-value small {
  margin-top: 2px;
  color: var(--muted-soft);
  font-size: 0.59rem;
}

.overview-sector-deal-value {
  max-width: 116px;
  justify-items: end;
  text-align: right;
}

.overview-sector-deal-value strong {
  color: var(--ink);
  font-size: 0.72rem;
}

.overview-sector-row:last-child {
  border-bottom: 0;
}

.overview-sector-row > div:first-child strong,
.overview-sector-row > div:first-child small {
  display: block;
}

.overview-sector-row strong {
  color: var(--ink);
  font-size: 0.76rem;
}

.overview-sector-row > strong {
  text-align: right;
}

.overview-sector-row small {
  margin-top: 2px;
  color: var(--muted-soft);
  font-size: 0.64rem;
}

.overview-sector-bar {
  height: 7px;
  border-radius: 2px;
  background: #edf1f4;
  overflow: hidden;
}

.overview-sector-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.overview-sector-row:hover .overview-sector-bar,
.overview-sector-row:focus-within .overview-sector-bar {
  background: #f2d8cc;
}

.overview-sector-row:hover .overview-sector-bar span,
.overview-sector-row:focus-within .overview-sector-bar span {
  background: var(--accent-strong);
}

@media (min-width: 901px) {
  .overview-sector-list:hover .overview-sector-row:focus-within:not(:hover) {
    z-index: auto;
    border-left-color: transparent;
    background: transparent;
    box-shadow: none;
  }

  .overview-sector-list:hover .overview-sector-row:focus-within:not(:hover) .overview-sector-popover {
    opacity: 0;
    visibility: hidden;
  }
}

.overview-round-list {
  display: grid;
}

.overview-round-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 15px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.overview-round-row:last-child {
  border-bottom: 0;
}

.overview-round-row:hover,
.overview-round-row:focus-visible {
  outline: none;
  background: var(--hover-surface);
}

.overview-round-row .company-logo {
  width: 36px;
  height: 36px;
}

.overview-round-row span strong,
.overview-round-row span small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-round-financing {
  display: grid;
  min-width: 106px;
  justify-items: end;
  text-align: right;
}

.overview-round-financing small {
  max-width: 130px;
}

.overview-round-row span strong,
.overview-round-row b {
  color: var(--ink);
  font-size: 0.76rem;
}

.overview-round-row span small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.65rem;
}

.overview-months {
  display: grid;
  grid-template-columns: repeat(6, minmax(92px, 1fr));
  gap: 16px;
  min-height: 196px;
  padding: 17px 20px;
}

.overview-month {
  display: grid;
  grid-template-rows: 94px auto auto auto;
  align-items: end;
  gap: 4px;
  min-width: 0;
  text-align: center;
}

.overview-month-bar {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 94px;
  border-bottom: 1px solid var(--line-strong);
}

.overview-month-bar span {
  display: block;
  width: min(42px, 60%);
  min-height: 8px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
}

.overview-month > strong {
  color: var(--ink);
  font-size: 0.76rem;
}

.overview-month > span,
.overview-month > small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.65rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-loading {
  display: grid;
  gap: 12px;
  padding: 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
}

body[data-view="overview"] .controls-bar,
body[data-view="overview"] .rounds-layout {
  display: none;
}

.funding-brief-row {
  position: relative;
  min-width: 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  animation: row-in 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: min(calc(var(--row-index, 0) * 9ms), 140ms);
}

.funding-brief-row:last-child {
  border-bottom-color: var(--line);
}

.funding-brief-row:hover {
  background: var(--hover-surface);
}

.funding-brief-row.is-clickable {
  cursor: pointer;
  transition:
    background-color 140ms ease,
    box-shadow 140ms ease;
}

.funding-brief-row.is-clickable:focus-visible {
  z-index: 1;
  outline: none;
  background: var(--accent-surface);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.funding-brief-header,
.funding-brief-company {
  display: flex;
  align-items: center;
}

.funding-brief-header {
  justify-content: space-between;
  gap: 16px;
}

.funding-brief-company {
  min-width: 0;
  gap: 12px;
}

.funding-brief-title {
  min-width: 0;
}

.funding-brief-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 720;
  line-height: 1.3;
}

.funding-brief-title h2 span {
  color: var(--muted);
  font-weight: 500;
}

.round-source-link {
  color: inherit;
  text-decoration: none;
}

.round-source-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.funding-brief-sector {
  display: block;
  margin-top: 3px;
  color: var(--muted-soft);
  font-size: 0.75rem;
}

.funding-brief-header time {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.74rem;
}

.funding-brief-description {
  max-width: 980px;
  margin: 13px 0 16px 50px;
  color: #465465;
  font-size: 0.88rem;
  line-height: 1.58;
}

.funding-brief-metrics {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(130px, 0.8fr) minmax(180px, 1.5fr);
  margin-left: 50px;
  border: 1px solid var(--line);
  background: #f7f9fb;
}

.funding-brief-metrics > div {
  min-width: 0;
  padding: 11px 14px;
  border-right: 1px solid var(--line);
}

.funding-brief-metrics > div:last-child {
  border-right: 0;
}

.funding-brief-metrics span,
.funding-brief-metrics strong {
  display: block;
}

.funding-brief-metrics span {
  margin-bottom: 4px;
  color: var(--muted-soft);
  font-size: 0.66rem;
  font-weight: 750;
  text-transform: uppercase;
}

.funding-brief-metrics strong {
  color: var(--ink);
  overflow-wrap: anywhere;
  font-size: 0.88rem;
  line-height: 1.35;
}

.funding-brief-metrics strong.is-muted {
  color: var(--muted);
  font-weight: 550;
}

.funding-brief-skeleton .skeleton-line {
  max-width: 100%;
  margin: 0;
}

.funding-brief-skeleton .is-heading {
  width: 260px;
}

.funding-brief-skeleton .is-description {
  width: min(720px, 90%);
  margin: 18px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1180px;
}

th,
td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  background: #f4f6f8;
  border-bottom-color: var(--line-strong);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 5;
  /* The sticky background needs to fully cover the rows scrolling under it. */
  box-shadow: inset 0 -1px 0 var(--line-strong);
}

th.metric-header,
.amount-cell,
.series-cell,
.valuation-cell {
  text-align: right;
}

th.date-header,
.date-cell {
  text-align: left;
}

tbody tr:hover {
  background: var(--hover-surface);
}

tbody tr {
  animation: row-in 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: min(calc(var(--row-index, 0) * 9ms), 140ms);
  transition: background-color 140ms ease;
}

@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  tbody tr {
    animation: none;
  }

  .tab-button,
  .control-input,
  .toolbar input,
  .toolbar select {
    transition: none;
  }
}

.company-cell strong {
  display: block;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.25;
}

.company-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100%, 460px);
  cursor: default;
}

.company-logo,
.hover-logo {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background-color: #171717;
  background-image: var(--company-logo, none);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 27px 27px;
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.company-logo.has-logo,
.hover-logo.has-logo {
  color: #525252;
  background-color: #f4f4f1;
  border-color: #d9d9d2;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.78),
    0 1px 0 rgba(255, 255, 255, 0.04);
}

.company-logo.logo-on-dark,
.hover-logo.logo-on-dark {
  background-color: #101010;
  border-color: #343434;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.03);
}

.company-logo.logo-on-neutral,
.hover-logo.logo-on-neutral {
  background-color: #ecece7;
  border-color: #d1d1ca;
}

.company-logo.is-analyzing,
.hover-logo.is-analyzing {
  background-color: #f4f4f1;
}

.company-logo img,
.hover-logo img {
  max-width: calc(100% - 12px);
  max-height: calc(100% - 12px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: saturate(0.96) contrast(1.02);
  position: relative;
  z-index: 1;
}

.company-logo.logo-on-dark img,
.hover-logo.logo-on-dark img {
  filter: saturate(0.98) contrast(1.04);
}

.company-logo.has-logo .logo-initials,
.hover-logo.has-logo .logo-initials {
  opacity: 0;
}

.logo-initials {
  position: absolute;
  pointer-events: none;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-shell {
  width: min(1760px, calc(100vw - 28px));
  padding-left: 232px;
  overflow-x: clip;
}

.admin-side-nav {
  position: fixed;
  left: max(14px, calc((100vw - 1760px) / 2 + 14px));
  top: 112px;
  z-index: 20;
  display: grid;
  width: 210px;
  gap: 6px;
  padding: 8px;
  border-radius: var(--radius);
}

.admin-side-nav .tab-button {
  width: 100%;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.admin-side-nav .tab-button:last-child {
  border-bottom: 0;
}

.admin-login {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 12px;
  align-items: start;
}

.admin-main {
  display: grid;
  gap: 12px;
}

.admin-controls {
  margin-bottom: 0;
}

.admin-editor,
.admin-health-card {
  padding: 14px;
}

.admin-editor {
  position: sticky;
  top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.admin-research-card {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.admin-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 12px;
}

.admin-section-heading h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0;
}

.admin-form {
  display: grid;
  gap: 10px;
}

.admin-field,
.admin-field-grid {
  display: grid;
  gap: 6px;
}

.admin-field span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.field-hint {
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.35;
}

.admin-field-grid {
  grid-template-columns: 1fr 1fr;
}

.admin-textarea {
  min-height: 78px;
  padding-top: 10px;
  resize: vertical;
  line-height: 1.35;
}

.admin-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 4px;
  flex-wrap: wrap;
}

.danger-button {
  border-color: rgba(248, 113, 113, 0.55);
  color: #fecaca;
}

.admin-research-results {
  display: grid;
  gap: 10px;
}

.admin-research-result {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.admin-research-result a {
  display: block;
  color: var(--accent);
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 0.82rem;
}

.admin-research-result p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.84rem;
}

.provider-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}

.provider-health-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.provider-health-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.provider-health-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin: 0;
}

.provider-health-card dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.provider-health-card dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-weight: 700;
}

.provider-health-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.status-pill.is-good {
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.38);
  background: rgba(20, 83, 45, 0.34);
}

.status-pill.is-warn {
  color: #fed7aa;
  border-color: rgba(249, 115, 22, 0.42);
  background: rgba(124, 45, 18, 0.36);
}

.status-pill.is-mid {
  color: #fde68a;
  border-color: rgba(234, 179, 8, 0.42);
  background: rgba(113, 63, 18, 0.34);
}

.status-pill.is-bad {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(127, 29, 29, 0.36);
}

tr.is-selected {
  background: rgba(249, 115, 22, 0.11);
}

.admin-note-cell {
  max-width: 360px;
  white-space: normal;
}

.admin-masthead {
  margin-bottom: 12px;
}

.admin-tabs {
  margin-bottom: 12px;
}

.admin-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: calc(100vh - 152px);
}

.admin-workspace[hidden] {
  display: none;
}

.admin-overview-card {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 14px;
}

.admin-overview-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-overview-metric {
  display: grid;
  min-height: 118px;
  align-content: space-between;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #090909;
}

.admin-overview-metric span,
.admin-overview-metric small {
  color: var(--muted);
}

.admin-overview-metric span {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-overview-metric strong {
  font-size: 1.75rem;
  line-height: 1;
}

.admin-overview-metric small {
  line-height: 1.35;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  margin-top: 24px;
}

.admin-overview-section {
  min-width: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.admin-overview-pipeline,
.admin-completeness-list {
  display: grid;
  gap: 9px;
}

.admin-pipeline-row,
.admin-completeness-row > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-pipeline-row {
  min-height: 34px;
}

.admin-pipeline-row strong {
  font-size: 1rem;
}

.admin-completeness-row {
  display: grid;
  gap: 5px;
}

.admin-completeness-row span {
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-completeness-row progress {
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 3px;
  overflow: hidden;
  background: #202020;
}

.admin-completeness-row progress::-webkit-progress-bar {
  background: #202020;
}

.admin-completeness-row progress::-webkit-progress-value {
  background: var(--accent);
}

.admin-completeness-row progress::-moz-progress-bar {
  background: var(--accent);
}

.admin-overview-queue {
  margin-top: 24px;
}

.admin-overview-table {
  width: 100%;
  min-width: 0;
  max-height: 48vh;
  overflow: auto;
}

.admin-next-action {
  max-width: 360px;
  white-space: normal;
  color: var(--muted);
}

.admin-list-card {
  min-height: 0;
}

.admin-table-scroll,
.admin-source-scroll {
  max-height: calc(100vh - 238px);
  overflow: auto;
}

.admin-source-scroll {
  max-height: calc(100vh - 212px);
}

.admin-editor {
  max-height: calc(100vh - 154px);
  overflow: auto;
  padding: 0;
  scrollbar-gutter: stable;
}

.deal-editor {
  position: fixed;
  top: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 40;
  width: min(540px, calc(100vw - 28px));
  max-height: none;
  border: 1px solid var(--line-strong);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.56);
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(100% + 24px));
  transition:
    opacity 160ms ease,
    transform 180ms ease;
}

body.is-admin-drawer-open .deal-editor {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

body.is-admin-drawer-open::after {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.34);
  content: "";
}

.deal-editor {
  isolation: isolate;
}

.admin-editor-head,
.admin-sticky-actions {
  position: sticky;
  z-index: 8;
  background: rgba(13, 13, 13, 0.96);
  backdrop-filter: blur(8px);
}

.admin-editor-head {
  top: 0;
  display: grid;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-editor-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.admin-editor-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.admin-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.status-action {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101010;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}

.status-action:hover {
  border-color: var(--accent);
}

.status-action.is-danger {
  border-color: rgba(248, 113, 113, 0.42);
  color: #fecaca;
}

.admin-editor-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-editor-panel .admin-section-heading {
  margin-bottom: 0;
}

.admin-editor-panel h3 {
  margin: 0;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d6d6d6;
}

.missing-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.missing-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(249, 115, 22, 0.34);
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(124, 45, 18, 0.26);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
}

button.missing-chip {
  cursor: pointer;
  text-align: left;
}

button.missing-chip:hover {
  border-color: var(--accent);
  background: rgba(249, 115, 22, 0.38);
}

.missing-chip.compact {
  min-height: 22px;
  margin: 2px 4px 2px 0;
  padding: 2px 6px;
  font-size: 0.68rem;
}

.missing-chip.is-good {
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.34);
  background: rgba(20, 83, 45, 0.24);
}

.missing-chip.is-danger {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(127, 29, 29, 0.3);
}

.missing-chip-group,
.readiness-score-card,
.watchlist-legend,
.admin-priority-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.missing-chip-group {
  display: grid;
  align-items: start;
  gap: 7px;
}

.missing-chip-group strong,
.readiness-score-card span:first-child {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.missing-chip-group p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.readiness-score-card {
  justify-content: space-between;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #090909;
}

.admin-priority-summary,
.watchlist-legend {
  margin: 0 0 12px;
}

.watchlist-legend span {
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.admin-action-cell {
  white-space: nowrap;
}

.mini-action {
  min-height: 28px;
  margin: 2px 4px 2px 0;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #101010;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
}

.mini-action:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.admin-research-card {
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
  padding-bottom: 14px;
}

.admin-research-grid {
  display: grid;
  gap: 10px;
}

.admin-field-full {
  min-width: 0;
}

.compact-textarea {
  min-height: 86px;
}

.admin-form-actions-left {
  justify-content: flex-start;
}

.admin-logo-drop {
  min-height: 82px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 10px;
  background: #090909;
  cursor: pointer;
}

.admin-logo-drop::before {
  content: "";
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    var(--admin-logo-preview, none) center / contain no-repeat,
    #121212;
}

.admin-logo-drop span,
.admin-logo-drop strong {
  display: block;
  min-width: 0;
}

.admin-logo-drop span {
  color: var(--ink);
  font-weight: 700;
}

.admin-logo-drop strong {
  margin-top: 4px;
  color: var(--muted);
  overflow-wrap: anywhere;
  font-size: 0.8rem;
}

.admin-logo-drop:hover,
.admin-logo-drop.is-dragging {
  border-color: var(--accent);
  background: rgba(249, 115, 22, 0.08);
}

.admin-sticky-actions {
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.danger-button {
  border-color: rgba(248, 113, 113, 0.62);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.28);
}

.danger-button:hover {
  border-color: #f87171;
  background: rgba(127, 29, 29, 0.46);
}

.research-admin-workspace {
  grid-template-columns: minmax(520px, 0.86fr) minmax(520px, 1fr);
}

.research-admin-list {
  padding: 14px;
}

.research-entry-list {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 230px);
  overflow: auto;
}

.research-entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px;
  background: #090909;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.research-entry-row:hover,
.research-entry-row.is-selected {
  border-color: var(--accent);
  background: rgba(249, 115, 22, 0.08);
}

.research-entry-row strong,
.research-entry-row small {
  display: block;
}

.research-entry-row small {
  margin-top: 5px;
  color: var(--muted);
}

.research-body-input {
  min-height: 260px;
}

.research-page-shell {
  width: min(1180px, calc(100vw - 32px));
}

.research-hero {
  display: grid;
  gap: 14px;
  margin: 10px 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.research-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.research-hero p {
  max-width: 720px;
  margin: 0;
  color: #c9c9c9;
  font-size: 1rem;
  line-height: 1.6;
}

.research-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.research-feed {
  display: grid;
  gap: 12px;
}

.research-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--panel);
  text-decoration: none;
  color: inherit;
}

.research-card:hover {
  border-color: var(--accent);
  background: #111111;
}

.research-card-logo {
  width: 54px;
  height: 54px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: #f4f4f1 center / contain no-repeat;
}

.research-card h2 {
  margin: 0;
  font-size: 1.12rem;
}

.research-card p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.research-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.research-sidebar {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 12px;
}

.research-side-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--panel);
}

.research-side-panel h2 {
  margin: 0 0 10px;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.research-article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: clamp(18px, 3vw, 34px);
}

.research-article h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.98;
}

.research-article .research-subtitle {
  margin: 14px 0 0;
  color: #cfcfcf;
  line-height: 1.6;
  font-size: 1.02rem;
}

.research-article-body {
  margin-top: 26px;
  color: #d7d7d7;
  line-height: 1.72;
}

.research-article-body p {
  margin: 0 0 16px;
}

.research-article-body h2 {
  margin: 30px 0 10px;
  font-size: 1.28rem;
}

.company-copy {
  min-width: 0;
}

.company-subline,
.press-link {
  display: block;
  margin-top: 6px;
}

.company-subline,
.investor-cell {
  line-height: 1.45;
}

.company-subline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted-soft);
}

.sector-tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #111111;
  color: #c9c9c9;
  font-size: 0.72rem;
  line-height: 1.35;
}

.website-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 650;
}

.website-link:hover {
  text-decoration: underline;
}

.enrichment-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 1px 6px;
  border: 1px solid rgba(249, 115, 22, 0.34);
  border-radius: 4px;
  color: var(--accent-strong);
  background: rgba(249, 115, 22, 0.08);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.66rem;
  line-height: 1.4;
  text-transform: uppercase;
  vertical-align: 1px;
}

.company-link {
  color: inherit;
  text-decoration: none;
}

.company-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.investor-cell {
  min-width: 150px;
}

.sector-cell {
  min-width: 150px;
  color: var(--ink);
  font-size: 0.86rem;
  white-space: nowrap;
}

.rank-cell {
  min-width: 80px;
  color: var(--ink);
}

.source-cell {
  color: var(--muted);
  white-space: nowrap;
}

.investor-label {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  min-height: 24px;
  color: var(--ink);
  line-height: 1.35;
  overflow-wrap: anywhere;
  position: relative;
  cursor: default;
}

.investor-label.is-muted {
  color: var(--muted);
}

.verify-mark {
  display: inline-flex;
  margin-top: 5px;
  color: var(--good);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.metric-cell,
.date-cell,
.press-cell {
  white-space: nowrap;
}

.amount-cell {
  min-width: 112px;
  color: var(--ink);
  font-weight: 650;
}

.series-cell {
  min-width: 98px;
  color: var(--ink);
}

.valuation-cell {
  min-width: 118px;
  color: var(--ink);
}

.metric-cell,
.date-cell {
  font-size: 0.86rem;
}

.date-cell {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.date-cell {
  min-width: 136px;
  color: #b8b8b8;
}

.metric-cell.is-muted {
  color: var(--muted-soft);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-healthy {
  border-color: rgba(64, 186, 118, 0.42);
  color: var(--good);
}

.status-needs-review,
.status-empty-extraction {
  border-color: rgba(230, 174, 72, 0.42);
  color: #e6ae48;
}

.status-no-input {
  color: var(--muted-soft);
}

.press-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 4px;
  background: rgba(249, 115, 22, 0.05);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 650;
}

.vc-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.press-link a:hover,
.vc-link:hover {
  text-decoration: underline;
}

.empty-state {
  text-align: center;
  padding: 34px 18px;
  color: var(--muted);
}

.skeleton-row td {
  padding: 18px 14px;
}

.skeleton-line {
  height: 12px;
  width: 76%;
  border-radius: 4px;
  background: linear-gradient(90deg, #1a1a1a 0%, #232323 50%, #1a1a1a 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.skeleton-row td:first-child .skeleton-line {
  width: 60%;
}

.skeleton-row td:nth-child(even) .skeleton-line {
  width: 50%;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-line {
    animation: none;
  }
}

.load-sentinel {
  min-height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  background: #f7f9fb;
  color: var(--muted-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  cursor: pointer;
}

.load-sentinel.is-active {
  display: flex;
}

.load-sentinel:hover:not(:disabled) {
  color: var(--accent);
  background: var(--accent-surface);
}

.load-sentinel:disabled {
  cursor: default;
}

.is-loading-more .load-sentinel::before {
  width: 34px;
  height: 14px;
  margin-right: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0 8px, var(--accent) 8px 13px, transparent 13px 100%);
  background-size: 26px 100%;
  content: "";
  animation: loading-dash 780ms steps(4) infinite;
}

@keyframes loading-dash {
  to {
    background-position: 26px 0;
  }
}

.hover-card {
  position: fixed;
  z-index: 100;
  width: min(390px, calc(100vw - 24px));
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 18px 50px rgba(23, 33, 43, 0.18);
  pointer-events: none;
  overflow: hidden;
  animation: hover-in 120ms ease both;
}

.hover-card[hidden] {
  display: none;
}

@keyframes hover-in {
  from {
    opacity: 0;
    transform: translateY(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hover-title {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.hover-subtitle,
.hover-label {
  color: var(--muted-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hover-section {
  display: grid;
  gap: 7px;
  padding-top: 11px;
}

.hover-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hover-pill,
.hover-source {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  background: #f5f7fa;
  color: var(--ink);
  font-size: 0.76rem;
  line-height: 1.2;
}

.portfolio-company-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 760px;
}

.portfolio-expand {
  min-height: 25px;
  padding: 3px 8px;
  border: 1px solid var(--accent-line);
  border-radius: 4px;
  background: var(--accent-surface);
  color: var(--accent-ink);
  cursor: pointer;
  font: 700 0.66rem/1.2 "SFMono-Regular", Consolas, monospace;
}

.portfolio-expand:hover,
.portfolio-expand:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.portfolio-company-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 25px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  font-size: 0.7rem;
}

.portfolio-company-pill > a:first-child {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.portfolio-company-pill > a:first-child:hover {
  color: var(--accent-ink);
}

.portfolio-evidence-link {
  color: var(--accent-ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.58rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.hover-source-list {
  display: grid;
  gap: 5px;
}

.hover-source {
  border-radius: var(--radius);
  overflow-wrap: anywhere;
}

.company-hover-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hover-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  font-weight: 700;
}

.hover-description {
  max-width: 100%;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.48;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hover-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.hover-metrics div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  background: #f7f9fb;
}

.hover-metrics span {
  display: block;
  color: var(--muted-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.hover-metrics strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.company-page-shell {
  width: min(1160px, calc(100vw - 28px));
}

.company-profile-root {
  display: grid;
  gap: 12px;
}

.profile-hero,
.profile-section,
.profile-metric {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.profile-hero {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 22px;
}

.profile-logo-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  overflow: hidden;
}

.profile-logo-shell.logo-on-dark {
  background: #101010;
  border-color: #343434;
}

.profile-logo-shell.logo-on-neutral {
  background: #ecece7;
}

.profile-logo-image {
  position: relative;
  z-index: 1;
  max-width: 72px;
  max-height: 72px;
  object-fit: contain;
}

.profile-logo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 800;
}

.profile-hero-copy {
  min-width: 0;
}

.profile-tags,
.profile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-hero h2 {
  margin: 10px 0 8px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.profile-hero p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.profile-actions {
  margin-top: 18px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.profile-metric {
  min-width: 0;
  padding: 14px;
}

.profile-metric span,
.profile-section-heading span {
  display: block;
  color: var(--muted-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.profile-metric strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.profile-section {
  padding: 18px;
}

.profile-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.profile-section h3 {
  margin: 0;
  font-size: 1.08rem;
}

.profile-prose {
  max-width: 900px;
}

.profile-prose p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.profile-prose p + p {
  margin-top: 12px;
}

.profile-research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.profile-research-list,
.profile-news-list {
  display: grid;
}

.profile-research-row,
.profile-news-row {
  min-width: 0;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.profile-research-row:first-child,
.profile-news-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.profile-research-row:last-child,
.profile-news-row:last-child {
  padding-bottom: 0;
}

.profile-research-title {
  display: inline-block;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.35;
}

a.profile-research-title:hover {
  color: var(--accent);
}

.profile-research-row p,
.profile-news-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.profile-research-meta {
  display: block;
  margin-bottom: 4px;
  color: var(--muted-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
}

.profile-news-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
}

.profile-news-row time {
  color: var(--muted-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.69rem;
  line-height: 1.4;
}

.profile-news-row .profile-research-meta {
  margin: 7px 0 0;
}

.profile-detail-list {
  display: grid;
  gap: 8px;
}

.profile-detail-list p,
.profile-round-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.profile-detail-list strong,
.profile-round-row strong {
  color: var(--ink);
}

.profile-detail-list span,
.profile-round-row span {
  color: var(--muted);
  line-height: 1.45;
}

.profile-rounds {
  display: grid;
}

.profile-round-row > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.profile-round-summary.is-selected {
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}

.profile-section-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 750;
  text-transform: uppercase;
}

.profile-round-source {
  display: inline-flex;
  margin-top: 14px;
}

.profile-round-row.is-selected {
  margin: 0 -18px;
  padding-right: 18px;
  padding-left: 18px;
  border-color: var(--accent-line);
  background: var(--accent-surface);
  box-shadow: inset 3px 0 0 var(--accent);
}

.week-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 10px;
  padding: 15px 17px;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: #ffffff;
}

.week-summary[hidden],
.round-timeline[hidden] {
  display: none;
}

.week-summary > div {
  min-width: 0;
}

.week-summary span,
.timeline-heading span,
.timeline-month small {
  display: block;
  color: var(--muted-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.week-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1rem;
}

.week-summary p,
.week-summary time {
  display: block;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.week-summary-total {
  flex: 0 0 auto;
  padding-left: 22px;
  border-left: 1px solid var(--line);
  text-align: right;
}

.rounds-layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr) 210px;
  gap: 10px;
  align-items: start;
}

body[data-view="ai-startups"] .rounds-layout,
body[data-view="vc-portfolios"] .rounds-layout {
  grid-template-columns: 224px minmax(0, 1fr);
}

body[data-view="source-health"] .rounds-layout,
body[data-view="market-maps"] .rounds-layout {
  grid-template-columns: minmax(0, 1fr);
}

body[data-view="source-health"] .company-catalog,
body[data-view="market-maps"] .company-catalog,
body[data-view="ai-startups"] .round-timeline,
body[data-view="vc-portfolios"] .round-timeline,
body[data-view="source-health"] .round-timeline,
body[data-view="market-maps"] .round-timeline {
  display: none;
}

body[data-view="ai-startups"] .table-wrap,
body[data-view="vc-portfolios"] .table-wrap {
  overflow-x: auto;
}

body[data-view="ai-startups"] table {
  min-width: 980px;
}

body[data-view="vc-portfolios"] table {
  min-width: 0;
  table-layout: fixed;
}

body[data-view="vc-portfolios"] th:nth-child(1),
body[data-view="vc-portfolios"] td:nth-child(1) {
  width: 21%;
}

body[data-view="vc-portfolios"] th:nth-child(2),
body[data-view="vc-portfolios"] td:nth-child(2) {
  width: 14%;
}

body[data-view="vc-portfolios"] .portfolio-company-list {
  max-width: none;
}
.company-catalog {
  position: sticky;
  top: 12px;
  min-width: 0;
  max-height: calc(100vh - 24px);
  padding: 12px 10px 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.company-catalog-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 1px 2px 10px;
}

.company-catalog-heading > div {
  min-width: 0;
}

.company-catalog-heading span,
.company-catalog-heading small {
  display: block;
}

.company-catalog-heading span {
  color: var(--accent-ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.65rem;
  font-weight: 750;
  text-transform: uppercase;
}

.company-catalog-heading small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted-soft);
  font-size: 0.61rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-catalog-heading strong {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 28px;
  padding: 3px 6px;
  border: 1px solid var(--accent-line);
  border-radius: 5px;
  background: var(--accent-surface);
  color: var(--accent-ink);
  font-size: 0.68rem;
  text-align: center;
}

.company-catalog .control-input {
  height: 36px;
  font-size: 0.78rem;
}

.company-catalog-sort {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 8px 0;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f3f5f7;
}

.company-catalog-sort button {
  min-height: 29px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 650;
}

.company-catalog-sort button.is-active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(185, 64, 13, 0.2);
}

.company-catalog-list {
  max-height: calc(100vh - 170px);
  margin: 0 -10px;
  padding: 2px 8px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.company-catalog-group h3 {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0;
  padding: 13px 4px 6px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent-ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.61rem;
  text-transform: uppercase;
}

.company-catalog-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 5px 6px;
  border-radius: 5px;
  color: inherit;
  text-decoration: none;
}

.company-catalog-item:hover,
.company-catalog-item:focus-visible {
  outline: none;
  background: var(--accent-surface);
}

.company-catalog-item .company-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 0.58rem;
}

.company-catalog-item .company-logo img {
  max-width: calc(100% - 8px);
  max-height: calc(100% - 8px);
}

.company-catalog-item > span {
  min-width: 0;
}

.company-catalog-item strong,
.company-catalog-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-catalog-item strong {
  color: var(--ink);
  font-size: 0.76rem;
  line-height: 1.2;
}

.company-catalog-item small {
  margin-top: 2px;
  color: var(--muted-soft);
  font-size: 0.61rem;
}

.company-catalog-more {
  margin: 10px 5px 0;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.4;
}

.company-catalog-list,
.timeline-months,
.valuation-rail-list {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.company-catalog-list:hover,
.timeline-months:hover,
.valuation-rail-list:hover {
  scrollbar-color: var(--scroll-thumb) transparent;
}

.company-catalog-list::-webkit-scrollbar,
.timeline-months::-webkit-scrollbar,
.valuation-rail-list::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.company-catalog-list::-webkit-scrollbar-track,
.timeline-months::-webkit-scrollbar-track,
.valuation-rail-list::-webkit-scrollbar-track {
  background: transparent;
}

.company-catalog-list::-webkit-scrollbar-thumb,
.timeline-months::-webkit-scrollbar-thumb,
.valuation-rail-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: transparent;
}

.company-catalog-list:hover::-webkit-scrollbar-thumb,
.timeline-months:hover::-webkit-scrollbar-thumb,
.valuation-rail-list:hover::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
}


.round-timeline {
  position: sticky;
  top: 12px;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.timeline-heading {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.timeline-heading strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.82rem;
}

.timeline-months {
  display: grid;
  max-height: calc(100vh - 88px);
  overflow-y: auto;
}

.timeline-month {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 4px 8px;
  width: 100%;
  min-height: 61px;
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.timeline-month:last-child {
  border-bottom: 0;
}

.timeline-month:hover {
  background: var(--hover-surface);
}

.timeline-month.is-active {
  background: var(--accent-surface);
  box-shadow: inset 3px 0 0 var(--accent);
}

.timeline-month > span {
  min-width: 0;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.25;
}

.timeline-month > strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  background: var(--accent-surface);
  color: var(--accent-ink);
  font-size: 0.86rem;
}

.timeline-month > strong.is-wide-count {
  font-size: 0.68rem;
}

.timeline-month small {
  font-size: 0.61rem;
}

.valuation-rail-list {
  display: grid;
}

.valuation-rail-company {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 60px;
  padding: 10px 11px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.valuation-rail-company:last-child {
  border-bottom: 0;
}

.valuation-rail-company:hover,
.valuation-rail-company:focus-visible {
  outline: none;
  background: var(--accent-surface);
}

.valuation-rail-company > span {
  min-width: 0;
}

.valuation-rail-company > span strong,
.valuation-rail-company > span small {
  display: block;
}

.valuation-rail-company > span strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.75rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.valuation-rail-company > span small {
  margin-top: 3px;
  color: var(--muted-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.62rem;
}

.valuation-rail-company > b {
  display: grid;
  place-items: center;
  min-width: 54px;
  min-height: 36px;
  padding: 5px;
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  background: var(--accent-surface);
  color: var(--accent-ink);
  font-size: 0.72rem;
  text-align: center;
}

.funding-brief-row.is-current-week {
  border-color: #e8d4c8;
  background: #fffdfb;
  box-shadow:
    inset 4px 0 0 var(--accent),
    0 1px 2px rgba(24, 24, 24, 0.045);
}

.funding-brief-row.is-current-week + .funding-brief-row.is-current-week {
  margin-top: 2px;
}

.week-badge {
  display: inline-flex;
  margin-left: 7px;
  padding: 2px 5px;
  border: 1px solid var(--accent-line);
  border-radius: 4px;
  background: var(--accent-surface);
  color: var(--accent-ink);
  font-size: 0.62rem;
  font-weight: 750;
  text-transform: uppercase;
  vertical-align: middle;
}

.status-badge {
  display: inline-flex;
  margin-left: 7px;
  padding: 2px 5px;
  border: 1px solid #d7b76f;
  border-radius: 4px;
  background: #fff8e8;
  color: #795b18;
  font-size: 0.62rem;
  font-weight: 750;
  text-transform: uppercase;
  vertical-align: middle;
}

.funding-brief-sector .website-link {
  margin-left: 7px;
}

.valuation-rank {
  flex: 0 0 30px;
  color: var(--muted-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  text-align: center;
}

.largest-brief-row .funding-brief-description,
.largest-brief-row .funding-brief-metrics {
  margin-left: 92px;
}

.workspace-action,
.workspace-icon-button {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
}

.workspace-action {
  min-height: 34px;
  padding: 0 11px;
  font-size: 0.78rem;
  font-weight: 700;
}

.workspace-action:hover,
.workspace-action.is-primary {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.workspace-action.is-primary {
  background: var(--accent-surface);
}

.workspace-launcher {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.workspace-launcher > span:first-child {
  font-size: 1rem;
  line-height: 1;
}

.workspace-dialog {
  width: min(420px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(23, 33, 43, 0.22);
}

.workspace-dialog::backdrop {
  background: rgba(23, 33, 43, 0.34);
}

.workspace-dialog form {
  display: grid;
  gap: 15px;
  padding: 20px;
}

.workspace-dialog header,
.workspace-chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.workspace-dialog header span,
.workspace-chat-header span,
.workspace-message > span {
  color: var(--muted-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.66rem;
  text-transform: uppercase;
}

.workspace-dialog h2,
.workspace-chat-header h2 {
  margin: 4px 0 0;
  font-size: 1.1rem;
}

.workspace-icon-button {
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
}

.workspace-dialog label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.workspace-dialog input.control-input {
  background-image: none;
  padding-right: 12px;
}

.workspace-note,
.workspace-error {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.workspace-error {
  min-height: 1em;
  color: #b42318;
}

.workspace-submit {
  width: 100%;
}

.workspace-chat {
  position: fixed;
  z-index: 120;
  inset: 0 0 0 auto;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  width: min(620px, 100vw);
  border-left: 1px solid var(--line-strong);
  background: #ffffff;
  box-shadow: -18px 0 56px rgba(23, 33, 43, 0.16);
  animation: workspace-in 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.workspace-chat[hidden] {
  display: none;
}

@keyframes workspace-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

body.is-workspace-chat-open .page-shell {
  width: min(1120px, calc(100vw - 648px));
  margin-right: 634px;
  margin-left: 14px;
  transition: width 180ms ease, margin 180ms ease;
}

.workspace-chat-header {
  padding: 17px 18px 14px;
  border-bottom: 1px solid var(--line);
}

.workspace-mode-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #f7f9fb;
}

.workspace-mode {
  min-width: 0;
  min-height: 38px;
  padding: 0 7px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
}

.workspace-mode:last-child {
  border-right: 0;
}

.workspace-mode:hover,
.workspace-mode:focus-visible {
  outline: none;
  background: #eef2f6;
  color: var(--ink);
}

.workspace-mode.is-active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.workspace-chat-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.workspace-chat-tools .workspace-icon-button {
  width: 34px;
  height: 34px;
}

.workspace-mode-context {
  display: grid;
  gap: 10px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  background: #f7f9fb;
}

.workspace-mode-context > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.workspace-mode-context > div:first-child span {
  flex: 0 0 auto;
  color: var(--accent-strong);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 750;
  text-transform: uppercase;
}

.workspace-mode-context > div:first-child p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: right;
}

.workspace-quick-actions {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.workspace-quick-action {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.7rem;
}

.workspace-quick-action:hover,
.workspace-quick-action:focus-visible {
  outline: none;
  border-color: var(--accent-line);
  background: var(--accent-surface);
  color: var(--accent-ink);
}

.workspace-resource-form {
  display: grid;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.workspace-resource-form[hidden] {
  display: none;
}

.workspace-resource-form label {
  color: var(--muted-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.workspace-resource-form > div:nth-child(2) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.workspace-resources {
  display: flex;
  gap: 5px;
  overflow-x: auto;
}

.workspace-resource {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 260px;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.7rem;
}

.workspace-resource span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-resource b,
.workspace-resource-empty {
  color: var(--muted-soft);
  font-size: 0.68rem;
}

.workspace-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  overflow-y: auto;
}

.workspace-message {
  max-width: 92%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f7f9fb;
}

.workspace-message.is-user {
  justify-self: end;
  border-color: var(--accent-line);
  background: var(--accent-surface);
}

.workspace-message p,
.workspace-empty {
  margin: 5px 0 0;
  color: #384757;
  font-size: 0.82rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.workspace-empty {
  margin: auto;
  color: var(--muted);
  text-align: center;
}

.workspace-chat-form {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #f7f9fb;
}

.workspace-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: end;
  gap: 7px;
  padding: 8px 8px 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #ffffff;
}

.workspace-chat-form textarea {
  width: 100%;
  resize: none;
  min-height: 42px;
  max-height: 150px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.45;
}

.workspace-chat-form textarea:focus {
  outline: none;
}

.workspace-composer:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.workspace-send-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 750;
}

.workspace-send-button:hover,
.workspace-send-button:focus-visible {
  outline: none;
  background: var(--accent-strong);
}

.workspace-chat-form footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 16px;
}

.workspace-chat-form footer > span:last-child {
  color: var(--muted-soft);
  font-size: 0.65rem;
}

#workspace-chat-status {
  color: var(--muted);
  font-size: 0.72rem;
}

@media (max-width: 1180px) {
  .company-catalog {
    display: none;
  }

  .rounds-layout {
    grid-template-columns: minmax(0, 1fr) 210px;
  }

  body[data-view="ai-startups"] .rounds-layout,
  body[data-view="vc-portfolios"] .rounds-layout,
  body[data-view="source-health"] .rounds-layout,
  body[data-view="market-maps"] .rounds-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  body.is-workspace-chat-open .page-shell {
    width: min(1580px, calc(100vw - 28px));
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 900px) {
  .overview-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .overview-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-metrics > div:nth-child(2) {
    border-right: 0;
  }

  .overview-metrics > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .overview-sector-row {
    grid-template-columns: minmax(0, 1fr) 66px 62px;
    gap: 8px;
  }

  .overview-sector-popover {
    position: static;
    grid-column: 1 / -1;
    width: 100%;
    margin: 3px 0 8px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
  }

  .overview-sector-row:not(:hover):not(:focus-within) .overview-sector-popover {
    display: none;
  }

  .overview-sector-row > div:first-child {
    min-width: 0;
  }

  .overview-sector-row > div:first-child strong {
    overflow-wrap: anywhere;
  }

  .overview-months {
    overflow-x: auto;
  }

  .masthead,
  .controls-bar {
    align-items: stretch;
  }

  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rounds-layout {
    grid-template-columns: 1fr;
  }

  .round-timeline {
    position: static;
    grid-row: 1;
  }

  .timeline-heading {
    display: none;
  }

  .timeline-months {
    display: flex;
    max-height: none;
    overflow-x: auto;
  }

  .timeline-month {
    flex: 0 0 154px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .timeline-month.is-active {
    box-shadow: inset 0 -3px 0 var(--accent);
  }

  .valuation-rail-list {
    display: flex;
    overflow-x: auto;
  }

  .valuation-rail-company {
    flex: 0 0 204px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
}

@media (max-width: 1100px) {
  .admin-shell {
    padding-left: 0;
  }

  .admin-side-nav {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .admin-side-nav .tab-button {
    flex: 0 0 auto;
    width: auto;
    text-align: center;
  }

  .toolbar {
    grid-template-columns: minmax(220px, 1.6fr) minmax(140px, 1fr) minmax(140px, 1fr);
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-workspace,
  .research-admin-workspace,
  .research-layout {
    grid-template-columns: 1fr;
  }

  .admin-overview-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-editor:not(.deal-editor) {
    position: static;
    max-height: none;
  }

  .deal-editor {
    width: min(620px, calc(100vw - 24px));
  }

  .admin-table-scroll,
  .admin-source-scroll,
  .research-entry-list {
    max-height: 60vh;
  }

  .research-sidebar {
    position: static;
  }

  #sort-filter {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100vw - 24px, 1480px);
    padding-top: 20px;
  }

  .masthead {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .masthead-actions {
    width: 100%;
    gap: 10px 12px;
  }

  .workspace-chat {
    width: 100vw;
  }

  .workspace-mode-tabs {
    display: flex;
    overflow-x: auto;
  }

  .workspace-mode {
    flex: 0 0 92px;
  }

  .workspace-mode-context > div:first-child {
    display: grid;
    gap: 5px;
  }

  .workspace-mode-context > div:first-child p {
    text-align: left;
  }

  .workspace-chat-form footer > span:last-child {
    display: none;
  }

  .view-tabs {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .view-tabs .tab-button {
    flex: 0 0 auto;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .funding-brief-row {
    padding: 17px 14px;
  }

  .funding-brief-header {
    align-items: flex-start;
  }

  .funding-brief-header time {
    padding-top: 3px;
    font-size: 0.68rem;
  }

  .funding-brief-description,
  .funding-brief-metrics {
    margin-left: 0;
  }

  .funding-brief-description {
    margin-top: 13px;
  }

  .funding-brief-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .funding-brief-metrics > div:nth-child(2) {
    border-right: 0;
  }

  .funding-brief-metrics > div:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

  .week-summary {
    align-items: flex-start;
    padding: 13px 14px;
  }

  .week-summary p {
    display: none;
  }

  .week-summary-total {
    padding-left: 14px;
  }

  .week-summary-total time {
    display: none;
  }

  .largest-brief-row .funding-brief-description,
  .largest-brief-row .funding-brief-metrics {
    margin-left: 0;
  }

  .admin-field-grid,
  .admin-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-workspace {
    min-height: auto;
  }

  .admin-overview-metrics,
  .admin-overview-grid {
    grid-template-columns: 1fr;
  }

  .deal-editor {
    inset: 8px;
    width: auto;
  }

  .admin-quick-actions,
  .admin-sticky-actions {
    grid-template-columns: 1fr;
  }

  .admin-sticky-actions {
    display: grid;
  }

  .research-card {
    grid-template-columns: 1fr;
  }

  .profile-hero,
  .profile-detail-list p,
  .profile-round-row,
  .profile-news-row {
    grid-template-columns: 1fr;
  }

  .profile-grid,
  .profile-research-grid {
    grid-template-columns: 1fr;
  }

  .profile-logo-shell {
    width: 88px;
    height: 88px;
  }

  #sort-filter {
    grid-column: auto;
  }

  th,
  td {
    padding: 14px 12px;
  }

  th:nth-child(4),
  td:nth-child(4),
  th:nth-child(7),
  td:nth-child(7),
  th:nth-child(8),
  td:nth-child(8) {
    display: none;
  }

  body[data-view="ai-startups"] .table-wrap {
    overflow-x: hidden;
  }

  body[data-view="ai-startups"] table {
    min-width: 0;
    table-layout: fixed;
  }

  body[data-view="ai-startups"] th:nth-child(1),
  body[data-view="ai-startups"] td:nth-child(1) {
    width: 48px;
  }

  body[data-view="ai-startups"] th:nth-child(3),
  body[data-view="ai-startups"] td:nth-child(3),
  body[data-view="ai-startups"] th:nth-child(4),
  body[data-view="ai-startups"] td:nth-child(4),
  body[data-view="ai-startups"] th:nth-child(6),
  body[data-view="ai-startups"] td:nth-child(6),
  body[data-view="ai-startups"] th:nth-child(7),
  body[data-view="ai-startups"] td:nth-child(7),
  body[data-view="ai-startups"] th:nth-child(8),
  body[data-view="ai-startups"] td:nth-child(8) {
    display: none;
  }

  body[data-view="ai-startups"] th:nth-child(5),
  body[data-view="ai-startups"] td:nth-child(5) {
    width: 82px;
    padding-right: 10px;
  }

  body[data-view="ai-startups"] .company-cell {
    min-width: 0;
    padding-right: 6px;
  }

  body[data-view="ai-startups"] .company-brand,
  body[data-view="ai-startups"] .company-copy {
    min-width: 0;
  }

  body[data-view="ai-startups"] .company-copy strong {
    overflow-wrap: anywhere;
  }
}
