.research-hero {
  padding-top: 72px;
  padding-bottom: 45px;
}
.research-hero h1 {
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.16;
  letter-spacing: -2.5px;
  font-weight: 500;
  max-width: 1000px;
  margin: 22px 0;
}
.research-hero > p {
  max-width: 820px;
  font-size: 19px;
  color: #596151;
  line-height: 1.8;
}
.research-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 42px;
  border-top: 1px solid #d7ddcd;
  border-bottom: 1px solid #d7ddcd;
  padding: 26px 0;
  gap: 24px;
}
.research-facts strong {
  display: block;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -1px;
}
.research-facts span {
  display: block;
  font-size: 14px;
  color: #596151;
  margin-top: 5px;
}
.research-workspace {
  padding-bottom: 40px;
  min-width: 0;
}
.research-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  border-bottom: 1px solid #cbd3be;
  padding: 0 0 12px;
  margin-bottom: 35px;
}
.research-tabs a {
  padding: 16px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
  line-height: 1.5;
}
.research-tabs a > span {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 400;
  margin-top: 4px;
  color: #5d6752;
}
.research-tabs a:hover {
  background: #eef0e6;
}
.research-tabs a[aria-selected="true"] {
  background: #e7ecd9;
  border-color: #cbd4b8;
}
.research-tabs a:focus-visible,
.research-table-scroll:focus-visible,
.research-panel:focus-visible {
  outline: 2px solid #718052;
  outline-offset: 4px;
}
.research-panel {
  scroll-margin-top: 105px;
  padding-bottom: 34px;
  min-width: 0;
}
.research-panel[hidden],
.research-filters[hidden],
.research-table tr[hidden] {
  display: none;
}
.research-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-bottom: 16px;
}
.research-heading h2,
.research-method h2,
.research-samples h2,
.research-bottom h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -1.3px;
  line-height: 1.25;
  margin: 12px 0;
}
.research-heading .eyebrow {
  font-size: 12px;
  color: #697554;
}
.research-lead {
  max-width: 920px;
  font-size: 17px;
  line-height: 1.8;
  color: #596151;
  margin-bottom: 24px;
}
.research-filters {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.3fr 1fr;
  gap: 14px;
  padding: 22px;
  background: #eeefe7;
  border-radius: 7px;
  margin: 25px 0 14px;
}
.research-filters label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 8px;
}
.research-filters input,
.research-filters select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  font: inherit;
  font-size: 14px;
  background: #fefdf8;
  border: 1px solid #bdc7ae;
  border-radius: 4px;
  padding: 9px 11px;
  color: #232824;
}
.table-hint {
  font-size: 13px;
  color: #5d6556;
  margin: 15px 0;
}
.research-table-scroll {
  width: 100%;
  overflow: auto;
  border: 1px solid #d7ddcd;
  border-radius: 7px;
  background: #fefdf8;
  overscroll-behavior-x: contain;
}
.research-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.research-table caption {
  text-align: left;
  font-size: 13px;
  padding: 14px 18px;
  color: #5a6450;
  background: #f0f2e9;
}
.research-table th,
.research-table td {
  padding: 14px 18px;
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
  border-bottom: 1px solid #e1e5d9;
}
.research-table thead th {
  font-size: 12px;
  color: #4e5c40;
  font-weight: 650;
  background: #f0f2e9;
}
.research-table th:first-child,
.research-table th[scope="row"] {
  text-align: left;
}
.research-table th[scope="row"] {
  font-weight: 600;
  white-space: normal;
  min-width: 185px;
}
.research-table small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #606956;
  line-height: 1.6;
  margin-top: 3px;
}
.research-table .basal-row {
  background: #eff3e4;
}
.research-table .basal-row th {
  color: #3d532a;
}
.research-table tbody tr:last-child > * {
  border-bottom: 0;
}
.research-table tbody tr:hover {
  background: #f3f3ec;
}
.research-table abbr {
  margin-left: 3px;
  border: 0;
  text-decoration: none;
  cursor: help;
}
.leaderboard th:first-child {
  position: sticky;
  left: 0;
  background: #fefdf8;
  z-index: 1;
  min-width: 245px;
}
.leaderboard thead th:first-child {
  background: #f0f2e9;
}
.leaderboard .basal-row th:first-child {
  background: #eff3e4;
}
.leaderboard td:last-child {
  text-align: left;
  max-width: 230px;
  white-space: normal;
}
.score-cell {
  font-weight: 700;
}
.research-notes {
  font-size: 13px;
  color: #5e6655;
  line-height: 1.8;
  margin: 24px 0;
  max-width: 1050px;
}
.research-notes p {
  margin: 10px 0;
}
.research-plot {
  margin: 38px 0 0;
  padding: 28px 32px;
  background: #eef0e7;
  border: 1px solid #d7ddcd;
  border-radius: 8px;
}
.research-plot h3 {
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 8px;
}
.research-plot figcaption p {
  font-size: 14px;
  max-width: 780px;
  color: #596151;
}
.research-plot svg {
  width: 100%;
  display: block;
  max-height: 430px;
  margin-top: 20px;
}
.plot-grid {
  fill: none;
  stroke: #ccd2c0;
  stroke-width: 1;
  stroke-dasharray: 3 5;
}
.plot-labels {
  fill: #536248;
  font-size: 13px;
  font-family: "IBM Plex Mono", monospace;
}
.plot-point {
  fill: #758657;
  stroke: #fefdf8;
  stroke-width: 1.5;
}
.plot-basal {
  fill: #ab523b;
  stroke: #fff;
  stroke-width: 2;
}
.plot-api {
  fill: #364c55;
}
.plot-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
}
.plot-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.plot-legend i {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 50%;
}
.legend-basal {
  background: #ab523b;
}
.legend-open {
  background: #758657;
}
.legend-api {
  background: #364c55;
}
.polish-highlight {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 28px 32px;
  margin: 24px 0 30px;
  background: #e9eedc;
  border-radius: 7px;
  gap: 20px;
}
.polish-highlight strong {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -1px;
}
.polish-highlight span {
  display: block;
  font-size: 14px;
  letter-spacing: 0;
  margin-top: 4px;
}
.research-supplementary {
  scroll-margin-top: 105px;
}
.research-subheading {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.6px;
  margin: 40px 0 12px;
}
.heatmap {
  min-width: 1350px;
}
.heatmap thead th {
  white-space: normal;
  min-width: 105px;
  max-width: 120px;
}
.heatmap th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fefdf8;
  min-width: 230px;
}
.heatmap thead th:first-child {
  background: #f0f2e9;
}
.heatmap td {
  text-align: center;
  padding: 18px 14px;
}
.heat-high {
  background: #dce8c9;
}
.heat-mid {
  background: #edf2e3;
}
.heat-low {
  background: #f8ede2;
}
.table-total {
  font-weight: 700;
  background: #e8eddd;
}
.heatmap .table-total th {
  background: #e8eddd;
}
.category-explanations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 35px;
  margin-top: 35px;
}
.category-explanations h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 8px 0;
}
.category-explanations p {
  font-size: 14px;
  line-height: 1.8;
  color: #596151;
}
.category-explanations .eyebrow {
  font-size: 12px;
}
.research-takeaway {
  border-left: 3px solid #8b9a6d;
  padding: 24px 28px;
  background: #eef1e7;
  margin: 30px 0;
}
.research-takeaway .eyebrow {
  font-size: 12px;
  color: #566643;
}
.research-takeaway h3 {
  font-size: 24px;
  font-weight: 500;
  margin: 12px 0;
}
.research-takeaway p {
  margin: 8px 0;
  font-size: 16px;
  line-height: 1.9;
  color: #44503a;
}
.research-method {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  border-top: 1px solid #d7ddcd;
  padding-top: 56px;
  padding-bottom: 64px;
}
.research-method > div > p {
  font-size: 16px;
  line-height: 1.8;
  color: #596151;
}
.method-items details {
  border-bottom: 1px solid #d7ddcd;
  padding: 0 0 20px;
  margin-bottom: 20px;
}
.method-items summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
}
.method-items p {
  font-size: 15px;
  line-height: 1.9;
  color: #596151;
  margin-top: 16px;
}
.research-samples {
  padding-top: 35px;
  padding-bottom: 64px;
  border-top: 1px solid #d7ddcd;
}
.research-samples > p {
  max-width: 780px;
  color: #596151;
}
.sample-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 30px;
}
.sample-category {
  border: 1px solid #d7ddcd;
  border-radius: 6px;
  background: #fefdf8;
  min-width: 0;
}
.sample-category > summary {
  font-size: 16px;
  padding: 20px;
  cursor: pointer;
}
.sample-category > summary > span {
  color: #657154;
  font-size: 12px;
  margin-left: 12px;
}
.sample-item {
  padding: 18px 22px;
  border-top: 1px solid #e1e5d9;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.sample-item > summary {
  cursor: pointer;
  line-height: 1.7;
}
.sample-item h4 {
  font-size: 14px;
  margin-top: 24px;
}
.sample-item ul {
  padding-left: 20px;
}
.sample-state {
  max-height: 350px;
  overflow: auto;
  font-size: 14px;
  background: #f4f5ef;
  padding: 18px;
  margin-top: 18px;
}
.sample-answer {
  padding: 14px;
  background: #edf2e3;
  border-radius: 4px;
}
.research-bottom {
  padding-top: 40px;
  padding-bottom: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  border-top: 1px solid #d7ddcd;
}
.research-bottom p {
  max-width: 720px;
  font-size: 15px;
  color: #596151;
}
.research-hero > p a,
.research-bottom a:not(.button),
.research-notes a,
.lab-recording a {
  color: #435c2d;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.research-bottom .button {
  flex-shrink: 0;
}
.lab-version-note {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid #d7ddcd;
  border-radius: 6px;
  margin-top: 30px;
}
.lab-version-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.lab-version-note p {
  font-size: 14px;
  line-height: 1.7;
  color: #5d6653;
  margin: 0;
  text-wrap: pretty;
}
.lab-version-note .type-badge {
  flex-shrink: 0;
}
.lab-tabs a > .lab-tab-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  margin: 0 0 7px;
}
.lab-tab-hardware {
  padding: 2px 6px;
  border: 1px solid #d7ddcd;
  border-radius: 4px;
  background: #f3f5ed;
  color: #536347;
  font: 500 12px/1.4 "Manrope", sans-serif;
  white-space: nowrap;
}
.lab-tabs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.research-tabs.lab-tabs {
  gap: 10px;
}
.lab-tabs a {
  padding: 13px 16px;
  font-size: 15px;
  background: #fffef9;
  border-color: #c9d0bf;
  border-radius: 8px;
  box-shadow: 0 2px 4px #26352d06;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.lab-tabs a > .lab-tab-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  font: inherit;
  color: inherit;
}
.lab-tab-check {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: #efb387;
  color: #26392f;
  visibility: hidden;
}
.lab-tabs a:hover {
  background: #f9eedf;
  border-color: #c68253;
}
.lab-tabs a[aria-selected="true"] {
  background: #26392f;
  border-color: #b96137;
  color: #fffaf0;
  box-shadow: inset 0 0 0 1px #b96137, 0 3px 8px #26352d14;
}
.lab-tabs a[aria-selected="true"] > .lab-tab-meta {
  color: #d0d9c0;
}
.lab-tabs a[aria-selected="true"] .lab-tab-hardware {
  background: #f7e5d1;
  border-color: #eac5a3;
  color: #653719;
}
.lab-tabs a[aria-selected="true"] .lab-tab-check {
  visibility: visible;
}
.lab-tabs a:focus-visible {
  outline: 3px solid #b96137;
  outline-offset: 3px;
}
@media (max-width: 1000px) {
  .lab-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .lab-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-tabs a { font-size: 13px; padding: 10px; }
}
.lab-intro {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: end;
  margin-bottom: 28px;
}
.lab-intro h2 {
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -1.5px;
  margin: 16px 0 0;
}
.lab-intro .eyebrow {
  font-size: 12px;
  color: #63734e;
}
.lab-intro p {
  font-size: 17px;
  color: #596151;
  line-height: 1.85;
  margin: 0;
}
.lab-recording {
  margin: 0;
  border: 1px solid #d7ddcd;
  border-radius: 8px;
  overflow: hidden;
  background: #fefdf8;
}
.recording-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  background: #eef1e5;
  font-family: "IBM Plex Mono", monospace;
  color: #526145;
  font-size: 12px;
}
.recording-bar > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lab-recording video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 690px;
  object-fit: contain;
  background: #e8e8df;
}
.lab-recording figcaption {
  font-size: 13px;
  line-height: 1.8;
  color: #606954;
  padding: 18px 22px;
}
.lab-recording figcaption a {
  display: inline-block;
  margin-left: 5px;
}
.lab-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 35px 0;
  border-bottom: 1px solid #d7ddcd;
  margin-bottom: 34px;
}
.lab-metrics strong {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -1.5px;
}
.lab-metrics span {
  display: block;
  font-size: 14px;
  line-height: 1.7;
  color: #596151;
  max-width: 280px;
}
.lab-flow h3,
.lab-results h3 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.7px;
  margin: 0 0 18px;
}
.lab-flow > p {
  color: #596151;
  line-height: 1.9;
  max-width: 1000px;
}
.lab-diagram {
  --flow-line: #929d85;
  margin: 24px 0;
  padding: 30px;
  color: #f5f5ed;
  background-color: #242b25;
  background-image: radial-gradient(#ffffff0b 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1px solid #3d483c;
  border-radius: 10px;
}
.flow-heading {
  display: grid;
  gap: 10px;
  padding-bottom: 24px;
  border-bottom: 1px solid #ffffff1c;
}
.flow-kicker,
.flow-node-label,
.flow-step b {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.flow-kicker {
  color: #b4c5a2;
}
.flow-heading > strong {
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 500;
  line-height: 1.5;
}
.flow-stages {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 1.1fr 1fr;
  gap: 30px;
  list-style: none;
  margin: 26px 0 30px;
  padding: 0;
}
.flow-inbox {
  grid-template-columns: 0.8fr 1.35fr 1fr 1fr;
}
.flow-stage {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.flow-step {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 13px;
  line-height: 1.5;
  color: #c8d0bd;
}
.flow-step b {
  color: #aebd9e;
}
.flow-stage-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  position: relative;
  min-width: 0;
}
/* The same connections turn downwards when the diagram stacks on mobile. */
.flow-stage + .flow-stage > .flow-stage-body::before {
  content: "";
  position: absolute;
  width: 20px;
  top: 50%;
  left: -26px;
  border-top: 1px solid var(--flow-line);
}
.flow-stage + .flow-stage > .flow-stage-body::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -11px;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--flow-line);
  border-right: 1px solid var(--flow-line);
  transform: translateY(-50%) rotate(45deg);
}
.flow-node {
  position: relative;
  padding: 17px 15px;
  border: 1px solid #d0d5c5;
  border-radius: 7px;
  background: #2b332c;
  min-width: 0;
}
.flow-node-code {
  border: 1px dashed #a1ae8e;
  background: #2b342b;
}
.flow-node-basal {
  border-color: #ed9b6d;
  background: #3c3028;
  box-shadow: inset 0 3px 0 #d88553;
}
.flow-node-label {
  display: block;
  font-size: 11px;
  line-height: 1.7;
  margin-bottom: 9px;
  color: #c1cbb6;
}
.flow-node-basal .flow-node-label {
  color: #f5b18a;
}
.flow-node > strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: #f5f5ed;
}
.flow-node p {
  font-size: 14px;
  line-height: 1.65;
  margin: 9px 0 0;
  color: #c7cebf;
}
.flow-node-basal p {
  color: #ded0c4;
}
.flow-formula {
  border-top: 1px solid #ffffff24;
  padding-top: 12px;
  margin-top: 15px;
  font-size: 13px;
  line-height: 1.7;
  color: #e5dacd;
}
.flow-parallel,
.flow-outcomes {
  padding-left: 10px;
  border-left: 1px solid var(--flow-line);
}
.flow-parallel {
  padding-right: 10px;
  border-right: 1px solid var(--flow-line);
}
.flow-parallel > .flow-node::before,
.flow-outcomes > .flow-node::before,
.flow-parallel > .flow-node::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -11px;
  width: 10px;
  border-top: 1px solid var(--flow-line);
}
.flow-parallel > .flow-node::after {
  left: auto;
  right: -11px;
}
.flow-branch-label,
.flow-or {
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  color: #c1cbb6;
}
.flow-or {
  margin: -7px 0;
}
.flow-sequence {
  gap: 30px;
}
.flow-sequence > .flow-node + .flow-node::before {
  content: "↓";
  position: absolute;
  top: -31px;
  left: calc(50% - 5px);
  height: 30px;
  line-height: 30px;
  color: #bbc8aa;
  font-size: 19px;
}
.flow-labels {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 6px;
  margin: 15px 0 0;
  padding: 0;
}
.flow-labels li {
  border: 1px solid #a47354;
  border-radius: 4px;
  padding: 4px 7px;
  font-size: 12px;
  color: #f1d1b9;
}
.flow-questions {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.6;
}
.flow-questions > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid #ffffff20;
}
.flow-questions dt {
  color: #e5d8ca;
}
.flow-questions dd {
  margin: 0;
  white-space: nowrap;
  color: #f6b68e;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}
.flow-word-stream {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
}
.flow-word-stream i {
  width: 21px;
  height: 9px;
  border-radius: 2px;
  background: #b6c3a4;
}
.flow-word-stream i:nth-child(even) {
  width: 12px;
}
.flow-word-stream i:nth-last-child(2) {
  background: transparent;
  border: 1px dashed #b6c3a4;
}
.flow-result {
  display: block;
  margin-top: 18px;
  font-size: 34px;
  color: #d8e8c2;
  line-height: 1.2;
}
.flow-result > span {
  font-size: 14px;
  color: #c7cebf;
}
.flow-return {
  position: relative;
  margin: 0 12px 28px;
  padding: 12px 16px;
  border: 1px dashed #929d85;
  border-top: 0;
  border-radius: 0 0 7px 7px;
  text-align: center;
  font-size: 13px;
  color: #d3ddc7;
}
.flow-return::before {
  content: "↑";
  position: absolute;
  top: -15px;
  left: -6px;
  font-size: 19px;
  line-height: 1;
}
.flow-return > span > span {
  margin-right: 5px;
}
.flow-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 25px;
  padding-top: 20px;
  border-top: 1px solid #ffffff1c;
  color: #cdd5c4;
  font-size: 13px;
  line-height: 1.6;
}
.flow-dynamic-branches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.flow-dynamic-branches code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: #f5b18a;
}
@media (max-width: 850px) {
  .flow-dynamic-branches {
    grid-template-columns: 1fr;
  }
}
.flow-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.flow-legend i {
  width: 15px;
  height: 12px;
  border-radius: 3px;
}
.flow-key-basal {
  background: #3c3028;
  border: 1px solid #ed9b6d;
}
.flow-key-code {
  border: 1px dashed #a1ae8e;
}
.flow-key-io {
  border: 1px solid #d0d5c5;
}
@media (max-width: 1100px) {
  .flow-stages {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
  }
  .flow-stage {
    position: relative;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
  }
  .flow-stage + .flow-stage::before {
    content: "↓";
    position: absolute;
    top: -38px;
    left: calc(50% + 78px);
    font-size: 22px;
    color: #b8c6a7;
  }
  .flow-stage + .flow-stage > .flow-stage-body::before,
  .flow-stage + .flow-stage > .flow-stage-body::after {
    content: none;
  }
  .flow-stage-body {
    width: 100%;
  }
  .flow-parallel,
  .flow-outcomes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
    border: 0;
    gap: 12px;
  }
  .flow-rag .flow-outcomes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .flow-branch-label {
    grid-column: 1/-1;
  }
  .flow-or,
  .flow-parallel > .flow-node::before,
  .flow-parallel > .flow-node::after,
  .flow-outcomes > .flow-node::before {
    display: none;
  }
  .flow-rag .flow-sequence {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .flow-sequence > .flow-node + .flow-node::before {
    content: "→";
    top: calc(50% - 15px);
    left: -25px;
  }
  .flow-questions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 22px;
  }
}
@media (max-width: 700px) {
  .lab-diagram {
    padding: 22px 18px;
  }
  .flow-heading > strong {
    font-size: 19px;
  }
  .flow-stage {
    display: flex;
    gap: 12px;
  }
  .flow-stage + .flow-stage::before {
    left: calc(50% - 7px);
  }
  .flow-parallel,
  .flow-outcomes,
  .flow-rag .flow-outcomes,
  .flow-rag .flow-sequence,
  .flow-questions {
    display: flex;
    flex-direction: column;
  }
  .flow-or {
    display: block;
  }
  .flow-sequence > .flow-node + .flow-node::before {
    content: "↓";
    top: -31px;
    left: calc(50% - 5px);
  }
  .flow-parallel,
  .flow-outcomes {
    padding-left: 12px;
    border-left: 1px solid var(--flow-line);
  }
  .flow-parallel > .flow-node::before,
  .flow-outcomes > .flow-node::before {
    display: block;
    left: -13px;
    width: 12px;
  }
  .flow-legend {
    gap: 12px 18px;
  }
  .flow-return {
    margin-inline: 0;
    padding-inline: 10px;
  }
}
.lab-results {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 38px;
  margin-top: 38px;
  align-items: start;
}
.lab-results > div {
  min-width: 0;
}
.lab-results .eyebrow {
  font-size: 12px;
  display: block;
  margin-bottom: 14px;
}
.lab-results p {
  font-size: 15px;
  color: #596151;
  line-height: 1.8;
}
.lab-results .research-table td,
.lab-results .research-table th {
  padding: 13px 15px;
}
.lab-results .research-table th {
  white-space: normal;
  min-width: 120px;
}
.lab-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}
.publication-notice {
  padding: 18px 22px;
  background: #e9eedc;
  border: 1px solid #cbd4b8;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 28px;
}
.publication-notice p {
  margin: 4px 0;
}
.blog-tag-scheduled {
  background: #e9ddc7;
  color: #5b4325;
}
.homepage-lab {
  padding-top: 48px;
  padding-bottom: 54px;
  border-top: 1px solid #d7ddcd;
}
.homepage-lab-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 26px;
}
.homepage-lab h2 {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -1.1px;
  margin: 12px 0;
}
.homepage-lab-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.homepage-lab-cards a {
  display: block;
  border: 1px solid #d7ddcd;
  border-radius: 6px;
  overflow: hidden;
  background: #fefdf8;
}
.homepage-lab-cards img {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.homepage-lab-cards span {
  display: block;
  padding: 16px;
  font-size: 15px;
  font-weight: 650;
}
.homepage-lab-cards a:hover {
  border-color: #718052;
}
.homepage-lab > p {
  font-size: 13px;
  color: #596151;
  margin-top: 18px;
}
@media (min-width: 1700px) {
  .research-hero {
    padding-top: 88px;
  }
  .research-hero h1 {
    font-size: 70px;
  }
  .research-tabs a {
    font-size: 18px;
  }
}
@media (max-width: 1000px) {
  .research-tabs a {
    padding: 14px 12px;
    font-size: 14px;
  }
  .research-filters {
    grid-template-columns: 1fr 1fr;
  }
  .research-method {
    gap: 30px;
  }
  .category-explanations {
    grid-template-columns: 1fr 1fr;
  }
  .lab-results {
    grid-template-columns: 1fr;
  }
  .lab-intro {
    gap: 25px;
  }
  .homepage-lab-cards {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 650px) {
  .research-hero {
    padding-top: 42px;
    padding-bottom: 30px;
  }
  .research-hero h1 {
    font-size: 37px;
    letter-spacing: -1.4px;
  }
  .research-hero > p {
    font-size: 16px;
  }
  .research-facts {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 28px;
  }
  .research-facts strong {
    font-size: 25px;
  }
  .research-facts span {
    font-size: 12px;
  }
  .research-tabs {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 25px;
  }
  .research-tabs a {
    font-size: 14px;
    padding: 12px;
  }
  .research-tabs a > span {
    font-size: 11px;
  }
  .research-heading {
    display: block;
  }
  .research-heading .text-link {
    margin-top: 12px;
  }
  .research-heading h2 {
    font-size: 30px;
  }
  .research-lead {
    font-size: 15px;
  }
  .research-filters {
    padding: 16px;
    gap: 12px;
  }
  .research-filters > div:first-child,
  .research-filters > div:nth-child(3) {
    grid-column: 1/-1;
  }
  .research-filters > div:nth-child(2),
  .research-filters > div:nth-child(4) {
    grid-column: 1/-1;
  }
  .research-table th,
  .research-table td {
    padding: 12px 14px;
  }
  .research-table {
    font-size: 13px;
  }
  .leaderboard th:first-child {
    min-width: 185px;
    max-width: 185px;
  }
  .heatmap th:first-child {
    min-width: 170px;
    max-width: 170px;
  }
  .research-plot {
    padding: 20px 12px;
  }
  .research-plot h3 {
    font-size: 23px;
  }
  .research-plot svg {
    min-height: 190px;
  }
  .plot-legend {
    font-size: 11px;
    gap: 12px;
  }
  .polish-highlight {
    padding: 22px 18px;
    gap: 16px;
    grid-template-columns: 1fr;
  }
  .polish-highlight strong {
    font-size: 30px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 15px;
  }
  .polish-highlight span {
    font-size: 13px;
  }
  .category-explanations {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .research-takeaway {
    padding: 20px;
  }
  .research-method {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 35px;
    padding-bottom: 35px;
  }
  .sample-grid {
    grid-template-columns: 1fr;
  }
  .research-bottom {
    display: block;
    padding-bottom: 45px;
  }
  .research-bottom .button {
    margin-top: 20px;
  }
  .research-bottom .button,
  .lab-actions .button {
    white-space: normal;
  }
  .lab-version-note {
    display: block;
    padding: 16px;
  }
  .lab-version-copy {
    margin-top: 12px;
  }
  .lab-intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .lab-intro h2 {
    font-size: 34px;
  }
  .lab-intro p {
    font-size: 15px;
  }
  .recording-bar {
    font-size: 10px;
    padding: 12px;
    flex-wrap: wrap;
  }
  .lab-recording figcaption {
    padding: 15px;
    font-size: 12px;
  }
  .lab-metrics {
    gap: 22px;
    grid-template-columns: 1fr;
    padding: 26px 0;
  }
  .lab-metrics > div {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .lab-metrics strong {
    font-size: 35px;
    min-width: 120px;
  }
  .lab-metrics span {
    font-size: 13px;
    max-width: none;
  }
  .lab-flow > p {
    font-size: 15px;
  }
  .lab-results {
    gap: 20px;
  }
  .lab-actions {
    gap: 16px;
  }
  .homepage-lab-heading {
    display: block;
  }
  .homepage-lab-cards {
    gap: 12px;
  }
  .homepage-lab-cards span {
    padding: 12px;
    font-size: 13px;
  }
  .homepage-lab h2 {
    font-size: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .research-workspace * {
    scroll-behavior: auto;
  }
}

.sample-origin-note { margin: 14px 18px; color: #596151; font-size: 14px; line-height: 1.8; }
/* Five local MacBook processes: measured behavior and separate business assumptions. */
.lab-tabs .lab-tabs-label{grid-column:1/-1;font:500 12px/1.6 "IBM Plex Mono",monospace;letter-spacing:.05em;color:#647158;margin:2px 0 0;padding:0;background:none;min-height:0}.lab-tabs .lab-tabs-label:not(:first-child){margin-top:14px}.lab-business-value{margin:44px 0;padding:30px;border:1px solid #d7c3a9;border-radius:10px;background:#fcf7ed}.lab-business-heading{display:grid;grid-template-columns:1fr 1fr;gap:34px;margin-bottom:26px}.lab-business-heading h3{font-size:27px;line-height:1.35;margin:12px 0 0}.lab-business-heading p{font-size:16px;line-height:1.8;color:#5e6854;margin:0}.lab-value-layout{display:grid;grid-template-columns:.9fr 1.1fr;gap:24px}.lab-value-result{padding:27px;background:#233d2b;color:#f5f5e9;border-radius:8px}.lab-value-result>span{font-size:15px;line-height:1.7;color:#d5dcc9;display:block;max-width:330px}.lab-value-result>strong{display:block;font-size:48px;line-height:1.3;letter-spacing:-1.5px;color:#f4b889;margin:20px 0 14px;font-weight:500}.lab-value-result>strong small{font-size:17px;letter-spacing:0;white-space:nowrap}.lab-value-result>p{font-size:17px;line-height:1.75;color:#e7eada}.lab-value-result dl{display:grid;gap:14px;margin:24px 0;padding-top:18px;border-top:1px solid #5b6e4d}.lab-value-result dt{font-size:13px;line-height:1.7;color:#c8d3ba}.lab-value-result dd{margin:4px 0 0;font-size:21px}.lab-value-result .lab-value-disclaimer{font-size:13px;color:#cbd5bf;line-height:1.8;margin-bottom:0}.lab-value-inputs h4{font-size:17px;line-height:1.5;margin:0 0 14px}.lab-value-inputs dl{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0}.lab-value-inputs dl>div{padding:12px 14px;border:1px solid #d7ddce;background:#fffdf8;border-radius:6px}.lab-value-inputs dt{font-size:12px;line-height:1.55;color:#626e56}.lab-value-inputs dd{font-size:18px;line-height:1.5;font-weight:600;margin:5px 0 0}.lab-value-formula{font-size:14px;line-height:1.9;padding:14px;border:1px dashed #babfa7;border-radius:6px;margin:16px 0 0;overflow-wrap:anywhere}.lab-value-note{font-size:13px;line-height:1.9;color:#65705a;margin:22px 0 0}.homepage-lab-cards.business-preview{grid-template-columns:repeat(5,minmax(0,1fr))}.business-preview span{font-size:14px}.lab-recording video{aspect-ratio:16/9}
@media(max-width:1050px){.lab-value-layout{grid-template-columns:1fr 1.15fr}.lab-value-result{padding:22px}.lab-value-result>strong{font-size:39px}.homepage-lab-cards.business-preview{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.lab-business-value{padding:20px}.lab-business-heading,.lab-value-layout{grid-template-columns:1fr;gap:20px}.lab-business-heading h3{font-size:24px}.lab-value-result>strong{font-size:43px}.homepage-lab-cards.business-preview{grid-template-columns:repeat(2,minmax(0,1fr))}.lab-value-inputs dd{font-size:17px}}
@media(max-width:380px){.lab-value-inputs dl{grid-template-columns:1fr}.homepage-lab-cards.business-preview{grid-template-columns:1fr}.lab-tabs a{padding:9px 8px}.lab-tab-hardware{font-size:10px}}

/* Original, attributed source excerpts for the brand-monitoring demonstration. */
.lab-demo-notice{margin:0 0 24px;padding:18px 22px;border:1px solid #d7c3a9;border-left:4px solid #b66a35;border-radius:6px;background:#fcf7ed;color:#545e4b;font-size:15px;line-height:1.8}
.lab-demo-notice strong{color:#754320;margin-right:8px}
.lab-monitor-sources{margin:44px 0}
.lab-monitor-sources h3{font-size:28px;line-height:1.35;margin:12px 0}
.lab-monitor-sources>p{color:#5e6854;max-width:850px;font-size:16px;line-height:1.8}
.lab-source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:24px}
.lab-source-card{margin:0;padding:24px;border:1px solid #d7ddce;border-radius:8px;background:#fffdf8;min-width:0}
.lab-source-card figcaption{display:flex;align-items:baseline;justify-content:space-between;gap:14px;flex-wrap:wrap}
.lab-source-card figcaption a{font-size:16px;font-weight:650;color:#754320;text-underline-offset:4px}
.lab-source-card time{font:400 13px/1.6 "IBM Plex Mono",monospace;color:#626e56}
.lab-source-card blockquote{margin:20px 0;font-size:18px;line-height:1.8;overflow-wrap:anywhere}
.lab-source-card>p{font-size:14px;line-height:1.7;color:#65705a;margin:0}
.homepage-lab-cards.monitor-preview{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:760px){.lab-source-grid{grid-template-columns:1fr}.lab-source-card{padding:20px}.lab-source-card blockquote{font-size:17px}.lab-demo-notice{padding:16px}.homepage-lab-cards.monitor-preview{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:380px){.homepage-lab-cards.monitor-preview{grid-template-columns:1fr}}
