:root {
  color-scheme: light;
  --bg: #f1f0eb;
  --surface: #f8f7f3;
  --surface-soft: #ecebe5;
  --text: #101114;
  --copy: #343941;
  --muted: #6d7178;
  --faint: #e4e3dc;
  --line: #d1d0c8;
  --line-strong: #b7b6ae;
  --focus: #111111;
  --row-active: #e7e6df;
  --row-hover: #ecebe6;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.08);
  --max-radius: 6px;
  --panel-width: clamp(620px, 38vw, 980px);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141411;
  --surface: #1b1a16;
  --surface-soft: #24231e;
  --text: #f1f0e8;
  --copy: #d8d5cc;
  --muted: #a4a095;
  --faint: #22211d;
  --line: #38362f;
  --line-strong: #575348;
  --focus: #f1f0e8;
  --row-active: #24231e;
  --row-hover: #1b1b17;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

body.welcome-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.welcome-gate {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--max-radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.welcome-gate::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.welcome-dialog {
  padding: 28px;
}

.welcome-title {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 600;
}

.welcome-description {
  margin: 14px 0 0;
  color: var(--copy);
  font-size: 17px;
  line-height: 1.5;
}

.welcome-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.welcome-decline {
  flex: 0 1 auto;
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.welcome-decline:hover,
.welcome-decline:focus-visible {
  color: var(--text);
  border-bottom-color: var(--text);
}

.welcome-accept {
  min-width: 72px;
  min-height: 42px;
  border: 1px solid var(--text);
  border-radius: var(--max-radius);
  background: var(--text);
  color: var(--bg);
  padding: 7px 16px;
  cursor: pointer;
}

.welcome-accept:hover {
  opacity: 0.86;
}

.welcome-decline:focus-visible,
.welcome-accept:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--panel-width);
  min-height: 100vh;
}

.app-shell.panel-closed {
  grid-template-columns: minmax(0, 1fr);
}

.app-shell.panel-closed .detail-panel {
  display: none;
}

.workspace {
  min-width: 0;
  padding: 38px 48px 40px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(320px, 1fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 50px;
}

.brand-block {
  display: grid;
  gap: 10px;
}

.brand {
  display: inline-block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0;
  width: fit-content;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
  padding: 0;
  cursor: pointer;
}

.brand:hover {
  color: var(--text);
}

.source-attribution {
  max-width: 340px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.source-attribution a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.source-attribution a:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-width: 0;
}

.search {
  position: relative;
  display: block;
  flex: 1 1 auto;
  max-width: 900px;
  width: min(100%, 900px);
  justify-self: end;
  border-bottom: 1px solid transparent;
}

.search input {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  padding: 0 4px;
  text-align: right;
  outline: none;
}

.search:focus-within {
  border-bottom-color: var(--line);
}

.theme-toggle {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  padding: 0;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0.72;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
  opacity: 1;
}

.theme-icon {
  display: none;
  width: 16px;
  height: 16px;
}

.theme-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

:root[data-theme="light"] .theme-icon-moon {
  display: block;
}

:root[data-theme="dark"] .theme-icon-sun {
  display: block;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(280px, auto) minmax(320px, 1fr);
  align-items: baseline;
  gap: 16px;
  margin-bottom: 30px;
}

.heading-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-align: right;
}

.active-view-summary {
  max-width: 64ch;
  color: var(--copy);
  text-wrap: balance;
}

.heading-actions {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 10px;
}

.reset-button,
.export-button {
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: inherit;
  padding: 0 0 1px;
  line-height: inherit;
  cursor: pointer;
}

.reset-button:hover,
.reset-button:focus-visible,
.export-button:hover,
.export-button:focus-visible {
  color: var(--text);
  border-bottom-color: var(--text);
}

.export-button:disabled {
  opacity: 0.45;
  cursor: default;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: 0;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.table-wrap {
  --table-left-gutter: 48px;
  overflow: auto;
  margin-left: calc(0px - var(--table-left-gutter));
  margin-right: -48px;
  padding-left: var(--table-left-gutter);
}

.more-columns {
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: inherit;
  padding: 0 0 1px;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
  opacity: 0.8;
  white-space: nowrap;
}

.more-columns:hover,
.more-columns:focus-visible {
  color: var(--text);
  border-bottom-color: var(--text);
  opacity: 1;
}

.more-columns:focus-visible {
  outline: 1px solid var(--focus);
  outline-offset: 2px;
}

.outcomes-table {
  width: 100%;
  min-width: 2590px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.outcomes-table th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  height: 64px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  padding: 0 24px 0 0;
}

.outcomes-table th[data-column-id="outcome"] {
  left: 0;
  z-index: 7;
  width: 440px;
}

.outcomes-table th[data-column-id="area"] {
  width: 270px;
}

.outcomes-table th[data-column-id="sector"] {
  width: 210px;
}

.outcomes-table th[data-column-id="sector-impact"] {
  width: 190px;
}

.outcomes-table th[data-column-id="outcome-impact"] {
  width: 200px;
}

.outcomes-table th[data-column-id="percent-impact"] {
  width: 190px;
}

.outcomes-table th[data-column-id="neglectedness"] {
  width: 210px;
}

.outcomes-table th[data-column-id="companies"] {
  width: 150px;
}

.outcomes-table th[data-column-id="funding"] {
  width: 180px;
}

.outcomes-table th[data-column-id="employees"] {
  width: 220px;
}

.outcomes-table th[data-column-id="readiness"] {
  width: 160px;
}

.outcomes-table th[data-column-id="type"] {
  width: 170px;
}

.outcomes-table th[data-column-id="companies"],
.outcomes-table th[data-column-id="funding"],
.outcomes-table th[data-column-id="employees"],
.outcomes-table td[data-column-id="companies"],
.outcomes-table td[data-column-id="funding"],
.outcomes-table td[data-column-id="employees"] {
  font-variant-numeric: tabular-nums;
}

.outcomes-table th[data-column-id="readiness"] .column-button {
  max-width: 100%;
}

.column-label,
.column-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 0;
  line-height: 1.25;
  text-align: left;
}

.column-label {
  color: var(--text);
}

.column-button {
  justify-content: flex-start;
  border: 0;
  background: transparent;
  border-radius: var(--max-radius);
  cursor: pointer;
}

.column-button.has-menu::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: -3px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: rotate(45deg);
  flex: 0 0 5px;
}

.column-button[data-sort-indicator]::after {
  content: attr(data-sort-indicator);
  width: auto;
  height: auto;
  margin-top: 0;
  border: 0;
  color: var(--text);
  font-size: 11px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transform: none;
  flex-basis: auto;
}

.column-button:hover,
.column-button[aria-expanded="true"],
.column-button.is-filtered {
  color: var(--text);
}

.column-button:hover::after,
.column-button[aria-expanded="true"]::after,
.column-button.is-filtered::after {
  border-color: var(--text);
}

.column-button.is-filtered {
  font-weight: 600;
}

.column-button:focus-visible,
.close-button:focus-visible,
.estimate-trigger:focus-visible,
.market-show-more:focus-visible,
.theme-toggle:focus-visible,
.menu button:focus-visible,
.menu label:focus-within {
  outline: 1px solid var(--focus);
  outline-offset: 2px;
}

.outcomes-table th[draggable="true"] {
  cursor: grab;
  user-select: none;
}

.outcomes-table th[draggable="true"] .column-button {
  cursor: pointer;
}

.outcomes-table th[draggable="true"] {
  transition: opacity 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.outcomes-table th.is-dragging,
.outcomes-table th.is-dragging .column-label,
.outcomes-table th.is-dragging .column-button {
  cursor: grabbing;
}

.outcomes-table th.is-dragging {
  opacity: 0.42;
}

.outcomes-table th.is-drag-over-before,
.outcomes-table th.is-drag-over-after {
  background: var(--row-active);
}

.outcomes-table th.is-drag-over-before {
  box-shadow: inset 2px 0 0 var(--focus);
}

.outcomes-table th.is-drag-over-after {
  box-shadow: inset -2px 0 0 var(--focus);
}

.outcomes-table td {
  height: 108px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  padding: 24px 24px 24px 0;
  font-size: 15px;
  line-height: 1.45;
}

.market-metric-cell {
  font-variant-numeric: tabular-nums;
}

.market-metric-value {
  display: block;
}

.market-metric-value {
  color: var(--text);
  white-space: nowrap;
}

.outcomes-table tr {
  position: relative;
}

.outcomes-table tbody tr {
  cursor: pointer;
}

.outcomes-table tbody tr:hover:not(.is-selected) {
  background: var(--row-hover);
}

.outcomes-table tbody tr:hover:not(.is-selected) > td {
  background: var(--row-hover);
}

.outcomes-table tbody tr:focus-visible {
  outline: 0;
  background: var(--row-active);
}

.outcomes-table tbody tr:focus {
  outline: 0;
}

.outcomes-table th[data-column-id="outcome"],
.outcomes-table td[data-column-id="outcome"] {
  position: sticky;
  left: 0;
  padding-left: 0;
}

.outcomes-table td[data-column-id="outcome"] {
  z-index: 6;
  background: var(--bg);
}

.outcomes-table th[data-column-id="outcome"]::before,
.outcomes-table td[data-column-id="outcome"]::before {
  content: "";
  position: absolute;
  top: 0;
  right: 100%;
  bottom: -1px;
  left: auto;
  width: var(--table-left-gutter);
  background: inherit;
  border-bottom: 1px solid var(--line);
  pointer-events: none;
}

.outcomes-table tbody tr.is-selected > td,
.outcomes-table tbody tr:focus-visible > td {
  background: var(--row-active);
}

.outcomes-table tbody tr.is-selected,
.outcomes-table tbody tr:focus-visible {
  background: var(--row-active);
}

.outcomes-table tr.is-empty td {
  color: var(--muted);
  height: 120px;
}

.cell-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
}

.outcome-cell-stack {
  display: grid;
  gap: 0;
}

.mobile-row-meta {
  display: none;
}

.detail-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  border-left: 1px solid var(--line);
  background: var(--surface);
  padding: 0;
}

.detail-header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  padding: 38px 48px 24px;
  background: var(--surface);
}

.detail-panel-content {
  padding: 0 48px 40px;
}

.detail-panel-content > div {
  display: grid;
  gap: 28px;
}

.resize-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -4px;
  width: 8px;
  cursor: col-resize;
  z-index: 5;
}

.resize-handle::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 3px;
  width: 1px;
  background: transparent;
}

.resize-handle:hover::after,
body.is-resizing .resize-handle::after {
  background: var(--line);
}

body.is-resizing {
  cursor: col-resize;
  user-select: none;
}

.methodology-body {
  background: var(--bg);
}

.methodology-shell {
  width: min(100%, 840px);
  margin: 0 auto;
  padding: 38px 48px 72px;
}

.methodology-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 56px;
}

.methodology-nav {
  width: fit-content;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.methodology-nav:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

.methodology-content {
  max-width: 720px;
}

.methodology-title {
  font-size: 34px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.methodology-lede {
  color: var(--copy);
  font-size: 19px;
  line-height: 1.5;
}

.methodology-intro {
  margin-bottom: 42px;
}

.methodology-intro p + p {
  margin-top: 16px;
}

.methodology-intro p:not(.methodology-lede) {
  color: var(--copy);
  font-size: 16px;
  line-height: 1.6;
}

.methodology-section {
  margin-top: 34px;
}

.methodology-section h2 {
  font-size: 19px;
  line-height: 1.25;
  font-weight: 600;
  margin-bottom: 12px;
}

.methodology-section p,
.methodology-section li {
  color: var(--copy);
  font-size: 16px;
  line-height: 1.6;
}

.methodology-section p + p {
  margin-top: 14px;
}

.methodology-section ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  margin: 0;
}

.methodology-section a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.methodology-section a:hover {
  border-bottom-color: var(--text);
}

.close-button {
  position: static;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  margin-top: -2px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.close-button:hover {
  color: var(--text);
}

.detail-title {
  grid-column: 1;
  grid-row: 1;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0;
  padding-right: 0;
}

.detail-empty {
  color: var(--muted);
  line-height: 1.55;
}

.meta-list {
  border-top: 1px solid var(--line);
  margin-bottom: 0;
}

.meta-row {
  display: grid;
  grid-template-columns: 124px minmax(280px, 1fr);
  column-gap: 48px;
  row-gap: 8px;
  align-items: start;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.45;
}

.meta-row.has-long-value {
  padding: 24px 0;
}

.meta-label {
  color: var(--text);
  padding-top: 1px;
}

.meta-value {
  min-width: 0;
}

.value-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.property-inline {
  margin: 0;
  color: var(--copy);
  font-size: 15px;
  line-height: 1.55;
}

.property-inline a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.property-inline a:hover {
  border-bottom-color: var(--text);
}

.property-text {
  color: var(--copy);
  font-size: 15px;
  line-height: 1.58;
}

.property-text p {
  margin: 0;
}

.property-text p + p {
  margin-top: 12px;
}

.reference-list {
  gap: 10px;
}

.technology-list {
  gap: 14px;
}

.technology-item {
  max-width: 100%;
  margin: 0;
  color: var(--copy);
  font-size: 15px;
  line-height: 1.55;
}

.reference-item {
  max-width: 100%;
  line-height: 1.45;
}

.detail-section {
  margin-top: 0;
}

.property-section {
  max-width: 100%;
}

.source-page-note {
  margin-top: 0;
}

.detail-section h3 {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
  margin-bottom: 12px;
}

.detail-section p {
  color: var(--copy);
  font-size: 15px;
  line-height: 1.58;
}

.resource-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.resource-link:hover {
  border-bottom-color: var(--text);
}

.market-panel {
  min-width: 0;
}

.market-company-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--copy);
  font-size: 13px;
  line-height: 1.45;
}

.market-company-table th {
  padding: 7px 10px 7px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.025em;
  text-align: left;
  text-transform: uppercase;
}

.market-company-table td {
  padding: 10px 10px 10px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.market-company-table th:first-child,
.market-company-table td:first-child {
  width: 50%;
}

.market-company-table th:nth-child(2),
.market-company-table td:nth-child(2) {
  width: 18%;
}

.market-company-table th:nth-child(3),
.market-company-table td:nth-child(3) {
  width: 17%;
}

.market-company-table th:last-child,
.market-company-table td:last-child {
  width: 15%;
  padding-right: 0;
}

.market-company-table th:nth-child(3),
.market-company-table th:nth-child(4),
.market-company-table td:nth-child(3),
.market-company-table td:nth-child(4) {
  text-align: right;
  white-space: nowrap;
}

.market-company {
  display: grid;
  justify-items: start;
  gap: 3px;
  min-width: 0;
}

.market-company-name {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

a.market-company-name:hover,
a.market-company-name:focus-visible {
  color: var(--copy);
}

a.market-company-name:focus-visible {
  outline: 1px solid var(--focus);
  outline-offset: 2px;
}

.market-panel .market-company-focus {
  margin: 2px 0 0;
  color: var(--copy);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.market-table-footer {
  display: flex;
  justify-content: center;
  padding: 8px 0 2px;
}

.market-show-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 2px 5px;
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
}

.market-show-more::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: -3px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

.market-show-more:hover,
.market-show-more:focus-visible {
  color: var(--text);
  border-bottom-color: var(--text);
}

.missing-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.missing-link:hover {
  border-bottom-color: var(--line-strong);
}

.outcome-impact {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.estimate-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}

.estimate-trigger:hover {
  color: var(--text);
}

.estimate-popover {
  position: fixed;
  left: var(--estimate-left, 20px);
  top: var(--estimate-top, 20px);
  z-index: 30;
  box-sizing: border-box;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 15px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--max-radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--copy);
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.estimate-popover[hidden] {
  display: none;
}

.estimate-popover-title {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 600;
}

.estimate-popover-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.estimate-summary-item {
  padding: 4px 7px;
  border-radius: var(--max-radius);
  background: var(--surface-soft);
  color: var(--copy);
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
}

.estimate-summary-item.is-primary {
  color: var(--text);
  font-weight: 600;
}

.estimate-popover-range {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.neglectedness-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0 0;
}

.neglectedness-score strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
}

.neglectedness-score span {
  color: var(--muted);
  font-size: 11px;
}

.neglectedness-intro,
.neglectedness-caveat,
.neglectedness-weight-intro,
.neglectedness-weight-rationale,
.neglectedness-source-note,
.neglectedness-method-link {
  font-size: 11px;
  line-height: 1.5;
}

.neglectedness-intro {
  margin: 8px 0 0;
}

.neglectedness-caveat {
  margin: 11px 0 0;
  color: var(--muted);
}

.neglectedness-caveat strong {
  color: var(--text);
}

.neglectedness-signals {
  display: grid;
  gap: 7px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.neglectedness-signals li {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.neglectedness-signal-copy {
  display: grid;
  gap: 1px;
}

.neglectedness-signal-label {
  color: var(--text);
}

.neglectedness-signal-description {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.neglectedness-signal-weight {
  flex: 0 0 auto;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.neglectedness-weight-rationale {
  margin: 9px 0 0 !important;
  color: var(--copy);
}

.neglectedness-source-note {
  margin: 7px 0 0;
  color: var(--muted);
}

.neglectedness-popover .estimate-sources {
  font-size: 11px;
  line-height: 1.4;
}

.neglectedness-popover .estimate-sources ul {
  gap: 5px;
}

.neglectedness-method-link {
  margin: 11px 0 0;
}

.neglectedness-method-link a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.neglectedness-method-link a:hover,
.neglectedness-method-link a:focus-visible {
  color: var(--text);
  border-bottom-color: var(--text);
}

.estimate-popover-section {
  margin-top: 13px;
}

.estimate-popover-section h4 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.estimate-popover-section p {
  margin: 0;
}

.estimate-waterfall {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--max-radius);
}

.estimate-waterfall-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: baseline;
  padding: 7px 8px;
  color: var(--copy);
  font-size: 11px;
  line-height: 1.35;
}

.estimate-waterfall-row + .estimate-waterfall-row {
  border-top: 1px solid var(--line);
}

.estimate-waterfall-row.is-result {
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 600;
}

.estimate-waterfall-label-wrap {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.estimate-waterfall-label {
  min-width: 0;
}

.estimate-waterfall-basis {
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
}

.estimate-waterfall-value,
.estimate-waterfall-share {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.estimate-waterfall-share {
  min-width: 42px;
  color: var(--muted);
  text-align: right;
}

.estimate-waterfall-row.is-result .estimate-waterfall-share {
  color: inherit;
}

.estimate-waterfall-note {
  margin: 6px 1px 0 !important;
  color: var(--muted);
  font-size: 11px;
}

.estimate-interpretation {
  color: var(--muted);
  font-size: 11px;
}

.estimate-sources ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.estimate-sources li {
  padding-left: 1px;
}

.estimate-sources a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  overflow-wrap: anywhere;
}

.estimate-sources a:hover,
.estimate-sources a:focus-visible {
  color: var(--text);
  border-bottom-color: var(--text);
}

.estimate-source-meta {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
}

.menu-layer {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.menu {
  position: absolute;
  min-width: 230px;
  max-width: 320px;
  max-height: min(430px, calc(100vh - 180px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--max-radius);
  box-shadow: var(--shadow);
  pointer-events: auto;
}

.menu-title {
  color: var(--muted);
  font-size: 12px;
  padding: 8px 9px 7px;
}

.menu button,
.menu label {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: var(--max-radius);
  background: transparent;
  color: var(--text);
  padding: 7px 9px;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.menu button:hover,
.menu label:hover {
  background: var(--surface-soft);
}

.menu input {
  accent-color: var(--text);
}

.menu-divider {
  height: 1px;
  background: var(--line);
  margin: 6px 0;
}

@media (min-width: 1800px) {
  :root {
    --panel-width: clamp(820px, 43vw, 1280px);
  }

  .workspace {
    padding: 52px 64px 54px;
  }

  .table-wrap {
    --table-left-gutter: 64px;
    margin-left: -64px;
    margin-right: -64px;
    padding-left: 64px;
  }

  .topbar {
    grid-template-columns: minmax(400px, 480px) minmax(420px, 1fr);
    gap: 64px;
    margin-bottom: 66px;
  }

  .brand {
    font-size: 30px;
  }

  .source-attribution {
    max-width: 455px;
    font-size: 14px;
  }

  .search {
    max-width: 1200px;
    width: min(100%, 1200px);
  }

  .search input {
    height: 56px;
    font-size: 16px;
    padding: 0 5px;
  }

  .section-heading {
    grid-template-columns: minmax(375px, auto) minmax(420px, 1fr);
    gap: 22px;
    margin-bottom: 40px;
  }

  h1 {
    font-size: 32px;
  }

  .detail-panel {
    padding: 0;
  }

  .detail-header {
    padding: 52px 64px 30px;
  }

  .detail-panel-content {
    padding: 0 64px 52px;
  }

  .detail-panel-content > div {
    gap: 34px;
  }

  .close-button {
    font-size: 30px;
  }

  .detail-title {
    font-size: 30px;
  }

  .meta-row {
    grid-template-columns: 165px minmax(370px, 1fr);
    column-gap: 64px;
    row-gap: 10px;
    padding: 26px 0;
    font-size: 16px;
  }

  .meta-row.has-long-value {
    padding: 32px 0;
  }

  .value-list {
    gap: 10px;
  }

  .property-inline,
  .property-text,
  .technology-item,
  .detail-section p {
    font-size: 17px;
  }

  .property-text p + p {
    margin-top: 15px;
  }

  .reference-list {
    gap: 12px;
  }

  .technology-list {
    gap: 17px;
  }

  .detail-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .market-company-table th {
    font-size: 12px;
  }

  .market-company-table {
    font-size: 14px;
  }

  .market-panel .market-company-focus {
    font-size: 13px;
  }

  .estimate-trigger {
    gap: 8px;
  }

  .estimate-popover {
    width: min(440px, calc(100vw - 50px));
    padding: 16px 17px;
    font-size: 13px;
  }

}

@media (min-width: 761px) and (max-width: 1040px) {
  .outcomes-table {
    min-width: 2510px;
  }

  .outcomes-table th[data-column-id="outcome"] {
    width: 360px;
  }
}

@media (max-width: 1040px) {
  .app-shell {
    display: block;
  }

  .workspace {
    padding: 24px 20px;
  }

  .table-wrap {
    --table-left-gutter: 20px;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 34px;
  }

  .detail-panel {
    position: fixed;
    inset: 0;
    z-index: 10;
    height: 100vh;
    height: 100dvh;
    border-left: 0;
    border-top: 0;
    transform: none;
  }

  .resize-handle {
    display: none;
  }

  .detail-panel.is-closed {
    display: none;
  }
}

@media (max-width: 760px) {
  .more-columns {
    display: none;
  }

  .welcome-gate {
    width: min(480px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
  }

  .welcome-dialog {
    padding: 22px;
  }

  .welcome-title {
    font-size: 20px;
  }

  .welcome-description {
    font-size: 16px;
  }

  .welcome-actions {
    display: flex;
    margin-top: 22px;
  }

  .workspace {
    padding: 22px 18px 32px;
  }

  .table-wrap {
    --table-left-gutter: 18px;
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 0;
  }

  .topbar {
    gap: 18px;
    margin-bottom: 28px;
  }

  .brand {
    font-size: 24px;
  }

  .source-attribution {
    max-width: none;
    font-size: 12px;
    line-height: 1.45;
  }

  .search {
    justify-self: stretch;
    width: 100%;
    max-width: none;
  }

  .search input {
    height: 38px;
    padding: 0;
    text-align: left;
  }

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
    margin-bottom: 12px;
  }

  .heading-meta {
    justify-items: start;
    text-align: left;
    font-size: 12px;
  }

  .heading-actions {
    justify-content: flex-start;
  }

  h1 {
    font-size: 24px;
    max-width: none;
  }

  .table-wrap {
    overflow: visible;
  }

  .outcomes-table {
    display: block;
    min-width: 0;
  }

  .outcomes-table thead,
  .outcomes-table tbody,
  .outcomes-table tr {
    display: block;
  }

  .outcomes-table thead {
    position: sticky;
    top: 0;
    z-index: 8;
    background: var(--bg);
    padding: 0;
  }

  .outcomes-table thead tr {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    border-bottom: 1px solid var(--line);
    padding: 7px 18px;
    scrollbar-width: none;
  }

  .outcomes-table thead tr::-webkit-scrollbar {
    display: none;
  }

  .outcomes-table th {
    display: block;
    position: static;
    width: auto !important;
    height: auto;
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    font-size: 12px;
    line-height: 1.2;
  }

  .outcomes-table th[data-column-id="outcome"] {
    display: none;
  }

  .outcomes-table th[data-column-id="outcome"],
  .outcomes-table td[data-column-id="outcome"] {
    padding-left: 0;
  }

  .column-button {
    color: var(--muted);
    padding: 6px 0;
  }

  .column-button.is-filtered {
    color: var(--text);
  }

  .outcomes-table tbody tr {
    border-bottom: 1px solid var(--line);
    padding: 18px;
  }

  .outcomes-table tbody tr:hover {
    background: transparent;
  }

  .outcomes-table tbody tr.is-selected,
  .outcomes-table tbody tr:focus-visible {
    background: var(--row-active);
  }

  .outcomes-table td {
    display: none;
    height: auto;
    border: 0;
    padding: 0;
  }

  .outcomes-table td[data-column-id="outcome"] {
    display: block;
    position: static;
    left: auto;
    z-index: auto;
    background: transparent;
    font-size: 16px;
    line-height: 1.38;
  }

  .outcomes-table th[data-column-id="outcome"]::before,
  .outcomes-table td[data-column-id="outcome"]::before {
    content: none;
  }

  .outcomes-table tbody tr:hover td[data-column-id="outcome"],
  .outcomes-table tbody tr.is-selected td[data-column-id="outcome"],
  .outcomes-table tbody tr:focus-visible td[data-column-id="outcome"] {
    background: transparent;
  }

  .outcome-cell-stack {
    gap: 6px;
  }

  .mobile-row-meta {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
  }

  .detail-panel {
    inset: 0;
    height: 100vh;
    height: 100dvh;
    border-top: 0;
    padding: 0;
  }

  .detail-header {
    padding: 72px 24px 34px;
  }

  .detail-panel-content {
    padding: 0 24px 36px;
  }

  .estimate-popover {
    left: 18px;
    right: 18px;
    top: auto;
    bottom: 18px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
  }

  .meta-row {
    grid-template-columns: 1fr;
    column-gap: 0;
    padding: 17px 0;
  }

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

  .market-company-table,
  .market-company-table tbody,
  .market-company-table tr,
  .market-company-table td {
    display: block;
    width: 100% !important;
  }

  .market-company-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .market-company-table tbody {
    display: grid;
    gap: 10px;
  }

  .market-company-table tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: var(--max-radius);
    padding: 12px;
  }

  .market-company-table td {
    min-width: 0;
    padding: 9px 8px 0 0;
    border: 0;
  }

  .market-company-table td:first-child {
    grid-column: 1 / -1;
    padding: 0 0 9px;
    border-bottom: 1px solid var(--line);
  }

  .market-company-table td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: 0.025em;
    text-transform: uppercase;
  }

  .market-company-table td:last-child {
    padding-right: 0;
  }

  .methodology-shell {
    padding: 22px 18px 48px;
  }

  .methodology-header {
    margin-bottom: 44px;
  }

  .methodology-title {
    font-size: 30px;
  }

  .methodology-lede {
    font-size: 18px;
  }

}
