/* The table's cell width, not the iframe viewport, determines how much
   space a score control has. Keep the Pain & Access controls stacked. */
table:has([data-testid="icp-market-sizing"]) {
  table-layout: fixed;
  min-width: 1040px;
}

table:has([data-testid="icp-market-sizing"]) th:nth-child(1) { width: 24%; }
table:has([data-testid="icp-market-sizing"]) th:nth-child(2) { width: 18%; }
table:has([data-testid="icp-market-sizing"]) th:nth-child(3) { width: 22%; }
table:has([data-testid="icp-market-sizing"]) th:nth-child(4) { width: 28%; }
table:has([data-testid="icp-market-sizing"]) th:nth-child(5) { width: 8%; }

table:has([data-testid="icp-market-sizing"]) td:nth-child(3) > .grid > .grid {
  grid-template-columns: minmax(0, 1fr);
}

table:has([data-testid="icp-market-sizing"]) td:nth-child(4) > .grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
}

table:has([data-testid="icp-market-sizing"]) td:nth-child(4) > .grid > .sm\:col-span-2 {
  grid-column: 1 / -1;
}

table:has([data-testid="icp-market-sizing"]) label:has(input[type="range"]) {
  min-width: 0;
  width: 100%;
}

table:has([data-testid="icp-market-sizing"]) label:has(input[type="range"]) > span {
  align-items: start;
  overflow-wrap: anywhere;
}

table:has([data-testid="icp-market-sizing"]) label:has(input[type="range"]) > span > span {
  flex-shrink: 0;
}

table:has([data-testid="icp-market-sizing"]) input[type="range"] {
  display: block;
  min-width: 0;
  margin-inline: 0;
  accent-color: #65263d;
}
