/* Research workbench. The synthetic scenario workspace keeps its original theme. */
body[data-workspace="research"] {
  --lab-ink: #203a3e;
  --lab-muted: #657c80;
  --lab-line: #dce5e2;
  --lab-green: #246e5b;
  --lab-seafoam: #84debf;
  --lab-dark: #101f2d;
  background: #f7f8f5;
  color: var(--lab-ink);
}
body[data-workspace="research"] main {
  width: 100%;
  max-width: 1450px;
  margin: 0 auto;
  padding: 24px 42px 0;
}
body[data-workspace="research"] .topbar {
  background: #fcfdfa;
  border-bottom-color: #e2e8e0;
  padding-left: 32px;
  padding-right: 32px;
}
body[data-workspace="research"] .workspace-switch {
  margin-bottom: 0;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--lab-line);
}
body[data-workspace="research"] .workspace-switch button {
  padding: 8px 13px;
  border-radius: 6px;
  font-size: 11px;
}
body[data-workspace="research"] .workspace-switch button.active {
  background: #e6eee7;
  color: #315f4b;
}
body[data-workspace="research"] #research-workspace { min-width: 0; }
body[data-workspace="research"] #research-workspace :is(button,a,input,select,textarea,summary):focus-visible {
  outline: 3px solid #318d80;
  outline-offset: 4px;
}
body[data-workspace="research"] #research-workspace a { color: #2e725e; }
body[data-workspace="research"] #research-workspace a:hover { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.lab-hero {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  min-height: 245px;
  padding: 43px 0 34px;
}
.lab-hero > div:first-child { max-width: 780px; min-width: 0; }
.lab-eyebrow, .lab-hero .r-eyebrow, .lab-section-heading .r-eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  font-weight: 650;
  color: #6c8074;
  text-transform: uppercase;
}
.lab-hero h1 {
  font-size: clamp(37px, 4.15vw, 59px);
  letter-spacing: -2.7px;
  font-weight: 460;
  line-height: 1.1;
  margin: 17px 0;
  color: #223b39;
}
.lab-hero h1 :is(em,i,span) {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  color: #407854;
  letter-spacing: -2.7px;
}
.lab-hero p {
  max-width: 670px;
  margin: 0;
  color: #6f827b;
  font-size: 13px;
  line-height: 1.85;
}
.lab-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px 18px;
  flex-wrap: wrap;
  margin-top: 21px;
  font-size: 10px;
  color: #6b8275;
}
.lab-hero-meta > span { display: inline-flex; gap: 7px; align-items: center; }
.lab-hero-meta i { width: 5px; height: 5px; border-radius: 50%; background: #438260; }
.lab-orb {
  position: relative;
  width: 190px;
  height: 190px;
  flex: 0 0 190px;
  margin-right: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #c8d9c8;
  background: radial-gradient(circle, #e8efdf 0, #f7f8f500 65%);
  color: #648266;
  font: italic 39px Georgia, serif;
}
.lab-orb::before, .lab-orb::after, .lab-orb > span {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid #acc5ad;
  transform: rotate(35deg) scaleX(.38);
}
.lab-orb::after { transform: rotate(-35deg) scaleX(.38); border-color: #c0d1b8; }
.lab-orb > span { transform: rotate(90deg) scaleX(.38); }
.lab-orb > i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4e8b69;
  left: 30px;
  top: 24px;
  box-shadow: 0 0 0 6px #72a57718;
}
.lab-orb > b { font-weight: 400; }
.lab-nav {
  display: flex;
  gap: 6px 25px;
  flex-wrap: wrap;
  align-items: center;
  border-top: 1px solid var(--lab-line);
  border-bottom: 1px solid var(--lab-line);
  padding: 15px 0;
  margin-bottom: 8px;
}
.lab-nav :is(a,button) { padding: 4px 0; font-size: 11px; color: #698075; }
.lab-nav :is(a,button) > span { margin-right: 7px; color: #9aa89b; font-size: 9px; }
.lab-section { padding: 35px 0 0; min-width: 0; scroll-margin-top: 91px; }
.lab-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 22px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.lab-section-heading h2 { margin: 7px 0 0; font-size: 25px; line-height: 1.3; font-weight: 520; letter-spacing: -.7px; }
.lab-section-heading p { margin: 7px 0 0; max-width: 740px; color: var(--lab-muted); line-height: 1.75; font-size: 12px; }
.lab-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #cadfcf;
  background: #ecf3ea;
  color: #3c7553;
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 9px;
  letter-spacing: .35px;
  line-height: 1.5;
  max-width: 100%;
}
.lab-pill :is(i,span.dot) { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.lab-pill.blue, .lab-pill.estimated { background: #eef2f8; color: #4f698e; border-color: #d2dce9; }
.lab-pill.amber, .lab-pill.warning, .lab-pill.missing { background: #f8f3e8; color: #8a6833; border-color: #e8dabe; }
.lab-controls {
  display: grid;
  grid-template-columns: minmax(220px,1.3fr) minmax(170px,1fr) minmax(140px,.8fr) auto;
  gap: 18px;
  align-items: end;
  background: #fff;
  border: 1px solid #d8e2d9;
  padding: 20px 23px;
  border-radius: 11px 11px 0 0;
}
.lab-controls > *, .lab-source-fields > * { min-width: 0; }
.lab-controls label, .lab-source-fields label, .lab-benchmark-controls label {
  display: block;
  color: #61776c;
  font-size: 10px;
  font-weight: 550;
  line-height: 1.6;
}
.lab-controls select, .lab-source-fields :is(select,input), .lab-benchmark-controls select {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 7px;
  padding: 10px 12px;
  border: 1px solid #d6e0d8;
  background: #f8faf7;
  border-radius: 6px;
  color: #2b5243;
  font-size: 12px;
  min-height: 42px;
}
.lab-primary, .lab-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 39px;
  border: 1px solid #d3dfd5;
  border-radius: 6px;
  padding: 9px 13px;
  background: #fff;
  font-size: 11px;
  color: #4f6e59;
  text-align: center;
  transition: background .18s, border-color .18s, transform .18s;
}
.lab-primary { background: #32664e; border-color: #32664e; color: #fff; }
.lab-primary:hover { background: #234f3b; border-color: #234f3b; }
.lab-secondary:hover { background: #eef3eb; border-color: #a5c1ac; }
.lab-primary:active, .lab-secondary:active { transform: translateY(1px); }
.lab-measure-strip {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  border: 1px solid #d8e2d9;
  border-top: 0;
  border-radius: 0 0 11px 11px;
  background: #fff;
  padding: 19px 7px;
}
.lab-measure-strip > :is(div,article) { min-width: 0; padding: 0 19px; border-right: 1px solid #e4eae0; }
.lab-measure-strip > :last-child { border: 0; }
.lab-measure-strip :is(span,label) { display: block; font-size: 10px; color: #738677; }
.lab-measure-strip strong { display: block; font-size: 29px; line-height: 1.3; font-weight: 500; letter-spacing: -.9px; margin: 7px 0 3px; font-variant-numeric: tabular-nums; }
.lab-measure-strip strong small { font-size: 12px; letter-spacing: 0; font-weight: 400; margin-left: 3px; }
.lab-measure-strip > :first-child strong { color: #3d7960; }
.lab-measure-strip small { font-size: 9px; color: #718775; }
.lab-timing { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px 16px; font-size: 10px; color: #708273; padding: 12px 2px; }
.lab-timing strong { font-weight: 550; color: #4a6c55; }
.lab-composer { margin: 4px 0 0; border: 1px solid #dce5d8; border-radius: 8px; background: #f0f4eb; }
.lab-composer > summary { padding: 13px 17px; font-size: 11px; font-weight: 550; color: #526e53; cursor: pointer; }
.lab-composer > summary::marker { color: #719777; }
.lab-composer-body { border-top: 1px solid #dce5d8; padding: 18px; }
.lab-composer-body > p { font-size: 11px; color: #738575; line-height: 1.8; margin: 0 0 13px; }
.lab-source-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.lab-composer-body textarea { display: block; width: 100%; min-width: 0; min-height: 110px; resize: vertical; margin: 13px 0; padding: 13px 15px; border: 1px solid #d1dfd0; border-radius: 7px; background: #fbfcf8; color: #385547; font: 12px/1.75 var(--font); }
.lab-composer-body :is(input,textarea)::placeholder { color: #829382; }
.lab-graph-shell {
  --lab-night-line: #304553;
  border: 1px solid #233e49;
  border-radius: 13px;
  overflow: hidden;
  background: var(--lab-dark,#101f2d);
  color: #d8e8e5;
  box-shadow: 0 12px 30px #2034290b;
  margin-top: 19px;
}
.lab-graph-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; padding: 19px 23px; border-bottom: 1px solid #ffffff10; background: #132634; }
.lab-graph-toolbar h3 { margin: 0; font-weight: 500; font-size: 18px; letter-spacing: -.2px; color: #e0ece8; }
.lab-graph-toolbar p { font-size: 10px; color: #89a7aa; margin: 4px 0 0; }
.lab-segment { display: inline-flex; padding: 3px; gap: 3px; border: 1px solid #36505b; border-radius: 7px; background: #0d1c28; max-width: 100%; }
.lab-segment button { font-size: 10px; color: #95b3b7; padding: 8px 12px; border: 1px solid transparent; border-radius: 4px; line-height: 1.5; }
.lab-segment button:hover { color: #dbefe8; background: #1b3741; }
.lab-segment button.active, .lab-segment button[aria-pressed="true"] { background: #254a48; color: #a9e4ce; border-color: #416b61; }
.lab-segment.light { background: #eef2eb; border-color: #d9e3d7; }
.lab-segment.light button { color: #6c8374; }
.lab-segment.light button:hover { background: #e0e9dc; color: #3b6b4e; }
.lab-segment.light button.active, .lab-segment.light button[aria-pressed="true"] { background: #fff; border-color: #d7e1d3; color: #386e50; box-shadow: 0 1px 4px #273b2610; }
.lab-graph-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.lab-graph-actions button { border: 1px solid #3c5662; background: #172f3c; color: #bfd6d2; border-radius: 5px; font-size: 10px; padding: 7px 10px; min-height: 32px; }
.lab-graph-actions button:hover { border-color: #68958a; background: #24473f; color: #d5f3e5; }
.lab-graph-layout { display: grid; grid-template-columns: minmax(0,3fr) minmax(245px,1fr); min-width: 0; }
.lab-graph-layout > :first-child { min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #3a5c61 #122431; }
.lab-graph-layout > :first-child::-webkit-scrollbar { height: 6px; }
.lab-graph-layout > :first-child::-webkit-scrollbar-thumb { background: #3a5c61; border-radius: 4px; }
.lab-network { display: block; width: 100%; min-width: 720px; height: auto; min-height: 420px; touch-action: pan-y; background: radial-gradient(ellipse at 50% 40%,#12353955,#101f2d00 64%); }
.lab-column-label { fill: #839da3; font-size: 9px; letter-spacing: 1.25px; font-weight: 550; }
.lab-node { cursor: grab; outline: none; }
.lab-node:active { cursor: grabbing; }
.lab-node-halo { fill: #49c5a110; stroke: #59c8b21c; stroke-width: .8; transform-box: fill-box; transform-origin: center; animation: lab-halo-breathe 4.5s ease-in-out infinite; pointer-events: none; }
.lab-node-ring { fill: #142d36; stroke: #447769; stroke-width: 1.1; transition: fill .2s,stroke .2s; }
.lab-node-core { fill: #8dddd0; filter: drop-shadow(0 0 8px #58d8bdaa); }
.lab-orbit { fill: none; stroke: #9beacf; stroke-width: 1.7; stroke-linecap: round; opacity: .7; transform-origin: 0 0; animation: lab-orbit-turn 13s linear infinite; }
.lab-node-label { fill: #a3bbbe; font-size: 11.5px; font-weight: 500; }
.lab-node-value { fill: #e4f3ed; font-size: 16px; font-weight: 550; font-variant-numeric: tabular-nums; }
.lab-node-sub { fill: #879fa8; font-size: 9px; }
.lab-node.event .lab-node-ring { fill: #284334; stroke: #7fab71; stroke-width: 1.6; }
.lab-node.event .lab-node-halo { fill: #b7d78f13; stroke: #bedb892f; }
.lab-node.event .lab-node-core { fill: #dcecb6; filter: drop-shadow(0 0 10px #c9ed84bb); }
.lab-node.event .lab-orbit { stroke: #d4e5aa; }
.lab-node.context .lab-node-ring { fill: #1c2d3e; stroke: #4b6b89; }
.lab-node.context .lab-node-core { fill: #94bfe6; filter: drop-shadow(0 0 8px #7ba4d177); }
.lab-node.context .lab-node-halo { fill: #a4c0e509; stroke: #8fafd218; }
.lab-node.context .lab-orbit { stroke: #94b7d3; }
.lab-node.association .lab-node-ring { fill: #26313f; stroke: #76879f; }
.lab-node.association .lab-node-core { fill: #b8c7df; }
.lab-node.association .lab-orbit { stroke: #b9c4da; }
.lab-node.claim .lab-node-ring { fill: #39372f; stroke: #a28e61; }
.lab-node.claim .lab-node-core { fill: #eed1a0; filter: drop-shadow(0 0 9px #dec18588); }
.lab-node.claim .lab-orbit { stroke: #e4c595; }
.lab-node.claim .lab-node-halo { fill: #d2b57e10; stroke: #d7bd781e; }
.lab-node:hover .lab-node-ring, .lab-node.selected .lab-node-ring { fill: #214a45; stroke: #b0f1d7; stroke-width: 2; }
.lab-node:hover .lab-node-label, .lab-node.selected .lab-node-label { fill: #d6eee4; }
.lab-node.selected .lab-node-halo { fill: #72d6b920; stroke: #99eac050; }
.lab-node:focus-visible .lab-node-ring { stroke: #f3d896; stroke-width: 3; }
.lab-edge { cursor: pointer; outline: none; }
.lab-edge-line { fill: none; stroke: #447886; stroke-width: 1.25; opacity: .72; transition: stroke .15s,opacity .15s; }
.lab-edge-hit { fill: none; stroke: transparent; stroke-width: 18; }
.lab-edge.observed .lab-edge-line { stroke: #76c8a5; stroke-width: 1.5; }
.lab-edge.association .lab-edge-line { stroke: #72adb6; }
.lab-edge.context .lab-edge-line { stroke: #66869c; stroke-dasharray: 3 6; opacity: .53; }
.lab-edge.claim .lab-edge-line { stroke: #b69c6e; stroke-width: 1.7; }
.lab-flow { fill: #a5f1ce; filter: drop-shadow(0 0 4px #5fe8ce) drop-shadow(0 0 8px #52bca17a); pointer-events: none; }
.lab-edge.association .lab-flow { fill: #a3e2ed; filter: drop-shadow(0 0 5px #78d1dc); }
.lab-edge.context .lab-flow { fill: #aacbe0; opacity: .6; filter: drop-shadow(0 0 4px #81abd0); }
.lab-edge.claim .lab-flow { fill: #f1d59b; filter: drop-shadow(0 0 5px #d9b76d); }
.lab-edge:hover .lab-edge-line, .lab-edge.selected .lab-edge-line { stroke: #baf6d9; stroke-width: 2.5; opacity: 1; filter: drop-shadow(0 0 3px #89d3bb55); }
.lab-edge:focus-visible .lab-edge-line { stroke: #f3d896; stroke-width: 3; opacity: 1; }
.motion-paused :is(.lab-node-halo,.lab-orbit) { animation-play-state: paused; }
.motion-paused .lab-flow { display: none; }
.lab-inspector { min-width: 0; padding: 25px 23px; border-left: 1px solid #ffffff14; background: linear-gradient(130deg,#1a2d3c,#122431); color: #9bb5ba; font-size: 11px; line-height: 1.85; overflow-wrap: anywhere; }
.lab-inspector > span:first-child { color: #7eaaa1; font-size: 8px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; }
.lab-inspector h3 { margin: 14px 0 9px; color: #e1ede8; font-size: 21px; font-weight: 500; line-height: 1.35; letter-spacing: -.5px; }
.lab-inspector h4 { color: #c9dfd4; font-size: 12px; margin: 17px 0 8px; font-weight: 550; }
.lab-inspector p { margin: 11px 0; }
.lab-inspector strong { color: #cce3d8; font-weight: 550; }
.lab-inspector .lab-pill { border-color: #44645d; background: #2a443b; color: #b0dabd; }
.lab-inspector dl { margin: 17px 0; }
.lab-inspector dl > div { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-top: 1px solid #ffffff12; padding: 9px 0; font-size: 10px; }
.lab-inspector dt { color: #8fa9af; }
.lab-inspector dd { margin: 0; text-align: right; color: #d9e8df; max-width: 65%; }
.lab-inspector blockquote { margin: 15px 0; padding: 11px 0 11px 12px; border-left: 2px solid #688b70; color: #d0ded7; font-family: Georgia,serif; font-size: 13px; }
.lab-inspector :is(ul,ol) { padding-left: 17px; }
body[data-workspace="research"] #research-workspace .lab-inspector a { color: #9be2c5; font-size: 10px; }
.lab-legend { display: flex; gap: 11px 23px; align-items: center; flex-wrap: wrap; padding: 14px 22px; border-top: 1px solid #ffffff12; color: #a0b6b9; font-size: 9px; line-height: 1.8; }
.lab-legend > span { display: inline-flex; gap: 6px; align-items: center; }
.lab-legend i { width: 14px; height: 2px; display: inline-block; background: #75c6a9; }
.lab-legend i.association { background: #72aeb8; }
.lab-legend i.context { height: 0; background: transparent; border-top: 1px dashed #8aa8bc; }
.lab-legend i.claim { background: #d6b778; }
.lab-legend small { margin-left: auto; font-size: 9px; color: #8aa3ac; }
.lab-empty-graph { display: grid; align-content: center; justify-items: center; text-align: center; min-height: 440px; padding: 35px; color: #94b0b4; }
.lab-empty-graph > span { font-size: 50px; color: #75bca4; }
.lab-empty-graph h3 { font-size: 19px; font-weight: 500; color: #dcece4; }
.lab-empty-graph p { max-width: 440px; line-height: 1.9; font-size: 12px; }
.lab-window-comparison { padding-top: 22px; }
.lab-window-comparison > h3 { margin: 0 0 13px; font-size: 14px; font-weight: 550; color: #536c5a; }
.lab-window-grid, .lab-state-grid, .lab-paper-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.lab-card, .lab-state-card, .lab-window-grid > article, .lab-paper-grid > article { min-width: 0; border: 1px solid #dbe4d7; border-radius: 9px; background: #fff; padding: 22px; }
.lab-card h3, .lab-state-card h3, .lab-window-grid h3, .lab-paper-grid h3 { font-size: 14px; font-weight: 550; line-height: 1.55; margin: 8px 0 10px; color: #355240; }
.lab-card p, .lab-state-card p, .lab-window-grid p, .lab-paper-grid p { color: #728476; font-size: 11px; line-height: 1.8; margin: 9px 0; }
.lab-card > small, .lab-state-card > small, .lab-window-grid article > small, .lab-paper-grid article > small { color: #819082; font-size: 9px; line-height: 1.75; display: block; }
.lab-window-grid article.active, .lab-window-grid article.selected { background: #f0f6ec; border-color: #adcaaf; }
.lab-window-grid article > span, .lab-state-card > span { display: block; color: #6d8270; font-size: 9px; letter-spacing: .4px; }
.lab-window-grid article > strong, .lab-state-card > strong { display: block; font-size: 28px; font-weight: 500; letter-spacing: -.7px; color: #395e45; margin: 9px 0; }
.lab-window-grid dl, .lab-state-card dl { margin: 13px 0 0; }
.lab-window-grid dl > div, .lab-state-card dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid #e6ece1; font-size: 10px; }
.lab-window-grid dt, .lab-state-card dt { color: #798e7a; }
.lab-window-grid dd, .lab-state-card dd { margin: 0; color: #41664c; text-align: right; }
.lab-state-grid { margin-top: 16px; }
.lab-state-grid .lab-card > strong { display: block; font-size: 33px; line-height: 1.35; font-weight: 450; letter-spacing: -1px; color: #3b7252; margin: 12px 0; }
.lab-state-grid .lab-card > strong small { font-size: 14px; margin-left: 4px; letter-spacing: 0; }
.lab-state-grid .lab-card:nth-child(2) > strong { color: #4c7387; }
.lab-state-grid .lab-card:nth-child(3) > strong { color: #897751; }
.lab-state-grid svg { display: block; width: 100%; max-width: 100%; height: 47px; margin: 16px 0; }
.lab-model-grid { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(260px,1fr); gap: 17px; margin-top: 16px; }
.lab-model-grid > * { min-width: 0; }
.lab-model-grid :is(.r-scatter-card,.r-estimate-card) { background: #fff; border-color: #dbe4d7; border-radius: 9px; }
.lab-model-grid .r-estimate-card dd { white-space: normal; }
.lab-model-grid .r-scatter { width: 100%; min-width: 0; }
.lab-benchmark-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 23px; border: 1px solid #c9dccc; border-radius: 10px; background: linear-gradient(110deg,#eaf1e5,#f3f6ee); }
.lab-benchmark-banner h3 { margin: 0 0 5px; font-size: 16px; font-weight: 550; color: #3f674a; }
.lab-benchmark-banner p { margin: 0; font-size: 11px; line-height: 1.8; color: #71806b; max-width: 800px; }
.lab-benchmark-controls { display: flex; align-items: end; gap: 20px; flex-wrap: wrap; margin: 19px 0; }
.lab-benchmark-controls > label { flex: 1 1 220px; max-width: 370px; }
.lab-benchmark-grid { display: grid; grid-template-columns: minmax(0,1.75fr) minmax(250px,1fr); gap: 17px; margin-top: 16px; }
.lab-benchmark-grid > * { min-width: 0; }
.lab-benchmark-result { border: 1px solid #d7e1d4; border-radius: 9px; background: #fff; padding: 22px; min-width: 0; }
.lab-benchmark-result h3 { margin: 0 0 8px; color: #3c634b; font-size: 15px; font-weight: 550; }
.lab-benchmark-result > p { font-size: 11px; color: #6e8372; line-height: 1.85; }
.lab-benchmark-result > strong { display: block; color: #3a7458; font-size: 34px; font-weight: 500; margin: 12px 0; letter-spacing: -1px; }
.lab-benchmark-result dl > div { display: flex; justify-content: space-between; align-items: start; padding: 10px 0; gap: 13px; border-top: 1px solid #e5ebe1; font-size: 11px; }
.lab-benchmark-result dt { color: #768a79; }
.lab-benchmark-result dd { color: #3b614a; margin: 0; text-align: right; }
.lab-benchmark-details { margin-top: 16px; border: 1px solid #d9e3d5; border-radius: 8px; background: #f3f6ef; font-size: 11px; color: #6e826e; line-height: 1.8; }
.lab-benchmark-details summary { padding: 14px 18px; cursor: pointer; font-weight: 550; color: #527150; }
.lab-benchmark-details > :not(summary) { margin: 0 18px 17px; }
.lab-benchmark-details ul { padding-left: 17px; }
.lab-response-chart { width: 100%; max-width: 100%; height: auto; display: block; margin: 14px 0 7px; }
.lab-response-chart text { fill: #6c8274; font-family: var(--font); font-size: 10px; }
.lab-paper-grid { margin-top: 16px; }
.lab-paper-grid > article { position: relative; padding-top: 24px; padding-bottom: 22px; border-top: 3px solid #afc7a4; }
.lab-paper-grid .lab-pill { font-size: 8px; padding: 3px 7px; }
.lab-paper-grid h3 { font-size: 15px; line-height: 1.6; margin: 15px 0 10px; }
.lab-paper-grid article > a { display: inline-block; font-size: 10px; margin-top: 12px; font-weight: 550; }
.lab-paper-grid article > div { font-size: 9px; letter-spacing: .8px; color: #7f937a; text-transform: uppercase; }
.lab-method-note { border-left: 2px solid #abc2a0; padding: 12px 17px; border-radius: 0 6px 6px 0; margin-top: 17px; background: #eef3e9; color: #6d816b; font-size: 11px; line-height: 1.9; }
.lab-method-note strong { color: #506f4c; font-weight: 550; }
.lab-method-note p { margin: 4px 0; }
.lab-method-note.amber, .lab-method-note.warning { border-color: #c1ac75; background: #f8f4e9; color: #89794e; }
.lab-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 13px; margin-top: 40px; border-top: 1px solid #dce5d6; padding: 23px 0 30px; font-size: 9px; color: #82917a; line-height: 1.8; }
.lab-footer strong { color: #607d5c; font-weight: 550; }
.lab-footer > :last-child { text-align: right; }
/* Markup-specific details: small controls remain subordinate to the evidence. */
.lab-hero > .lab-hero-meta { display: block; flex: 0 0 195px; align-self: end; padding-bottom: 5px; margin-top: 0; font-size: 8px; letter-spacing: 1px; line-height: 2; color: #5b785b; }
.lab-hero > .lab-hero-meta > small { display: block; margin-top: 9px; color: #8a9780; font-size: 9px; line-height: 1.8; letter-spacing: 0; }
.lab-status-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #639360; box-shadow: 0 0 0 3px #6c9e6412; margin-right: 5px; vertical-align: middle; }
.lab-hero .lab-orb { width: 160px; height: 160px; flex-basis: 160px; margin: 0 12px 0 0; }
.lab-orb > span { inset: auto; border: 0; transform: none; font: italic 28px Georgia,serif; letter-spacing: -1.5px; }
.lab-orb > i:nth-child(2) { top: auto; bottom: 13px; left: auto; right: 36px; width: 5px; height: 5px; background: #98b37b; box-shadow: 0 0 0 5px #a3b97b15; }
.lab-orb > i:nth-child(3) { top: 90px; left: -3px; width: 5px; height: 5px; background: #658f73; }
.lab-orb > b { position: absolute; inset: 22px; border: 1px dashed #cbd8c3; border-radius: 50%; }
.lab-orb > b:last-child { inset: -12px; border-color: #dce4d5; border-style: dotted; }
.lab-nav > button { margin-left: auto; font-size: 10px; color: #54805b; }
.lab-controls .lab-secondary { min-height: 42px; }
.lab-measure-strip > .accent strong { color: #3d7960; }
.lab-measure-strip strong em { font-style: normal; font-size: 17px; letter-spacing: -.4px; color: #8b947f; }
.lab-composer > summary { display: flex; align-items: center; gap: 13px; list-style: none; }
.lab-composer > summary::-webkit-details-marker { display: none; }
.lab-source-icon { display: grid; place-items: center; width: 30px; height: 32px; flex-shrink: 0; border: 1px solid #d6e0cc; background: #f8faf3; border-radius: 5px; font-size: 21px; color: #75976e; }
.lab-composer > summary > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lab-composer > summary b { color: #496b4b; font-size: 11px; font-weight: 550; }
.lab-composer > summary div > span { font-size: 10px; color: #7a8a71; font-weight: 400; }
.lab-composer-action { margin-left: auto; flex-shrink: 0; color: #62805a; font-size: 9px; font-weight: 400; }
.lab-source-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 10px; color: #71886c; }
.lab-source-fields { grid-template-columns: minmax(0,1fr) auto auto; align-items: end; }
.lab-source-fields > button { min-height: 42px; }
.lab-composer-body > p { margin: 12px 0 0; font-size: 10px; }
.lab-text-button { font-size: 10px; color: #507f51; padding: 8px 0 0; }
.lab-text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
#graph-count { font-size: 9px; color: #8da9ac; margin-right: 5px; }
.lab-motion-note { font-size: 9px; line-height: 1.8; color: #819da5; margin: 0; padding: 0 23px 13px; }
.lab-legend i.dotted { height: 0; border-top: 1px dashed #8aa8bc; background: none; }
.lab-small-label { font-size: 9px; letter-spacing: 1.1px; color: #70876d; font-weight: 550; }
.lab-inspector .lab-small-label { color: #84a69c; font-size: 8px; letter-spacing: 1.4px; }
.lab-evidence-kind { display: inline-block; margin-top: 19px; border-radius: 4px; padding: 4px 7px; border: 1px solid #486354; color: #b6d1b3; background: #31483b; font-size: 9px; line-height: 1.5; }
.lab-inspector .lab-small-label { display: block; }
.lab-inspector-stat { font-size: 34px; font-weight: 450; line-height: 1.25; color: #bce5d1; margin: 20px 0 12px; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.lab-inspector-stat small { display: block; font-size: 9px; color: #8faeaf; margin: 5px 0 0; letter-spacing: 0; line-height: 1.7; font-weight: 400; }
.lab-inspector-note { font-size: 10px; line-height: 1.9; padding: 12px; background: #223640; border: 1px solid #3a4f54; border-radius: 5px; color: #adc2bd; margin-top: 20px; }
.lab-inspector-symbol { display: block; color: #7aac9a; font-size: 39px; line-height: 1.3; margin: 40px 0 18px; }
.lab-inspector-source { margin-top: 18px; }
.lab-inspector .lab-rule { font-size: 9px; line-height: 1.6; color: #9cafac; }
.lab-window-comparison { display: grid; grid-template-columns: minmax(180px,.9fr) minmax(0,2.4fr); gap: 20px; align-items: center; }
.lab-window-comparison > div:first-child p { font-size: 10px; line-height: 1.7; color: #84917d; max-width: 230px; margin: 6px 0 0; }
.lab-window-grid { gap: 10px; }
.lab-window-grid > button { border: 1px solid #dde5d7; border-radius: 7px; background: #fafbf7; padding: 15px 17px; text-align: left; min-width: 0; transition: background .18s,border-color .18s; }
.lab-window-grid > button:hover { background: #edf3e9; border-color: #b4cbad; }
.lab-window-grid > button.active { border-color: #a5c3a4; background: #edf4e8; box-shadow: inset 0 0 0 1px #bfdbb935; }
.lab-window-grid > button > span { display: block; color: #698366; font-size: 10px; }
.lab-window-grid > button > strong { display: block; font-size: 24px; font-weight: 450; color: #52734f; margin: 7px 0 1px; letter-spacing: -.5px; }
.lab-window-grid > button > strong small { font-size: 11px; font-weight: 400; }
.lab-window-grid > button > small { display: block; font-size: 8px; color: #86977c; line-height: 1.8; }
.lab-state-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 9px 17px; font-size: 10px; color: #7a8e74; line-height: 1.8; }
.lab-state-card { padding: 23px 24px; background: #fff; }
.lab-state-card.featured { background: #eef3e8; border-color: #d1dfc3; }
.lab-state-number { margin: 19px 0 10px; font-size: 44px; font-weight: 430; line-height: 1.2; letter-spacing: -1.5px; color: #436d43; font-variant-numeric: tabular-nums; }
.lab-state-number small { font-size: 14px; font-weight: 400; letter-spacing: 0; margin-left: 7px; color: #75916e; }
.lab-state-card .lab-state-status { display: inline-block; border-radius: 4px; font-size: 9px; line-height: 1.6; padding: 4px 8px; color: #68805b; background: #eaf0e3; letter-spacing: 0; }
.lab-state-card.featured .lab-state-status { background: #dfebd4; color: #587449; }
.lab-spark { width: 100%; display: block; max-width: 100%; height: 56px; margin: 17px 0; }
.lab-spark path { fill: none; stroke: #729760; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.lab-spark.blue path { stroke: #729baa; }
.lab-no-history { min-height: 56px; display: flex; align-items: center; color: #94a08b; font-size: 10px; }
.lab-card-meta { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin-top: 16px; font-size: 9px; color: #8a9b7d; border-top: 1px solid #e3eadc; padding-top: 11px; }
.lab-state-foot { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(200px,1fr); gap: 24px; margin-top: 13px; font-size: 10px; color: #7d8e75; line-height: 1.8; }
.lab-state-foot summary { cursor: pointer; color: #587c50; font-weight: 500; }
.lab-state-foot p { margin: 9px 0 0; }
.lab-empty { border: 1px dashed #d4dec9; border-radius: 8px; padding: 23px; background: #f1f5ec; color: #789071; }
.lab-empty h3 { font-size: 16px; color: #5c7b4f; font-weight: 500; margin: 0 0 9px; }
.lab-empty p { font-size: 12px; line-height: 1.8; margin: 0; }
.lab-macro-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; }
.lab-big-number { display: block; font-size: 35px; font-weight: 450; letter-spacing: -1px; color: #426947; margin: 15px 0 7px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.lab-big-number small { font-size: 13px; color: #7f9677; font-weight: 400; letter-spacing: 0; margin-left: 5px; }
.lab-caption { font-size: 10px; color: #81917b; line-height: 1.8; margin: 14px 0 0; }
.lab-card > .lab-caption { border-top: 1px solid #e6ece2; padding-top: 12px; font-size: 9px; }
.lab-chart-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px; font-size: 10px; color: #6c826b; }
.lab-chart-top > strong { font-weight: 550; color: #49664c; }
.lab-chart-top > span { display: flex; align-items: center; gap: 5px; font-size: 8px; color: #8c9b83; }
.lab-chart-top :is(i,b) { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #83a978; }
.lab-chart-top b { background: #bf995e; margin-left: 7px; }
.lab-model-card .lab-evidence-kind, .lab-benchmark-banner .lab-evidence-kind { background: #ebf1e7; color: #5f7b56; border-color: #d0dfc5; margin-top: 0; }
.lab-model-card h3 { font-size: 12px; color: #6d826a; font-weight: 500; margin: 19px 0 9px; }
.lab-model-card .lab-big-number { font-size: 37px; margin: 0 0 7px; }
.lab-model-card > p { font-size: 9px; color: #7e9275; margin: 0 0 17px; }
.lab-model-card dl > div { display: flex; justify-content: space-between; align-items: start; gap: 15px; padding: 9px 0; border-top: 1px solid #e2eade; font-size: 10px; }
.lab-model-card dt { color: #7a8d74; }
.lab-model-card dd { margin: 0; text-align: right; color: #496d49; }
.lab-model-verdict { border: 1px solid #dce6d2; border-left: 2px solid #8eb080; border-radius: 0 5px 5px 0; background: #f1f6eb; padding: 12px; margin-top: 18px; }
.lab-model-verdict b { font-size: 11px; font-weight: 550; color: #648154; }
.lab-model-verdict p { font-size: 10px; color: #7d8f70; line-height: 1.8; margin-bottom: 0; }
.lab-model-verdict.uncertain { background: #f8f5eb; border-color: #e8dfc5; border-left-color: #bea873; }
.lab-model-verdict.uncertain b { color: #8b7648; }
.lab-model-verdict.uncertain p { color: #948460; }
.lab-benchmark-banner .lab-evidence-kind { margin: 0 0 12px; background: #f4f7ef; }
.lab-benchmark-scale { flex: 0 0 190px; min-width: 0; padding-left: 23px; border-left: 1px solid #cfdcc5; }
.lab-benchmark-scale > span { display: block; color: #79916b; font-size: 8px; line-height: 1.8; }
.lab-benchmark-scale > span:first-child { letter-spacing: .8px; }
.lab-benchmark-scale > strong { display: block; color: #4d7850; font-size: 36px; font-weight: 450; line-height: 1.35; letter-spacing: -1px; margin: 4px 0; }
.lab-benchmark-scale > strong small { font-size: 14px; font-weight: 400; }
.lab-benchmark-controls > span { margin-left: auto; text-align: right; font-size: 9px; color: #819674; line-height: 1.8; }
.lab-horizon-label { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 15px 0 7px; font-size: 10px; color: #7c9274; }
.lab-horizon-label b { font-size: 11px; color: #527b50; font-weight: 550; }
#benchmark-horizon { accent-color: #6b9360; height: 4px; margin: 9px 0; }
.lab-response-band { fill: #89b799; fill-opacity: .2; stroke: none; }
.lab-response-line { fill: none; stroke: #497e58; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.lab-selected-horizon { stroke: #8ca47e; stroke-width: 1; stroke-dasharray: 4 4; }
.lab-zero { stroke: #c2ccb8; stroke-width: 1; stroke-dasharray: 4 3; }
.lab-benchmark-result > strong { font-size: 37px; margin: 24px 0 17px; }
.lab-benchmark-result > strong small { display: block; margin-top: 6px; font-size: 10px; font-weight: 400; color: #7d9772; letter-spacing: 0; }
.lab-benchmark-result dl { margin: 16px 0; }
.lab-benchmark-result .lab-inspector-note { background: #f2f5ec; border-color: #dee7d3; color: #7a916a; margin: 18px 0 15px; }
.lab-benchmark-result > a { font-size: 10px; }
.lab-validation-strip { display: flex; flex-wrap: wrap; gap: 9px 22px; align-items: center; padding: 14px 2px 0; font-size: 9px; line-height: 1.8; color: #7c9171; }
.lab-validation-strip b { color: #5a8056; font-weight: 550; margin-right: 4px; }
.lab-validation-strip > :last-child { margin-left: auto; }
.lab-diagnostic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.lab-diagnostic-grid > article { border: 1px solid #dae4cf; border-radius: 6px; padding: 15px; background: #fbfcf8; min-width: 0; }
.lab-diagnostic-grid article > span { font-size: 10px; color: #76906b; }
.lab-diagnostic-grid strong { display: block; font-size: 26px; font-weight: 450; color: #648958; margin: 5px 0; }
.lab-diagnostic-grid p { margin: 0 0 5px; font-size: 10px; color: #7e9274; }
.lab-diagnostic-grid small { font-size: 9px; color: #91a184; }
.lab-paper-grid article > div { display: flex; align-items: center; justify-content: space-between; gap: 13px; font-size: 8px; }
.lab-paper-grid article > div b { border-radius: 4px; padding: 3px 6px; background: #f0f4eb; color: #8a9e7c; font-size: 7px; font-weight: 500; text-align: right; }
.lab-paper-grid article h3 > a { color: #3f6652; }
.lab-paper-grid article > small { font-size: 10px; color: #83957c; }
.lab-paper-grid article > p { border-top: 1px solid #e4ebdc; padding-top: 12px; margin-top: 16px; font-size: 10px; line-height: 1.8; }
.lab-measure-strip strong:has(small:empty) { font-size: 18px; color: #85917a; letter-spacing: -.5px; margin-top: 11px; }
.lab-window-grid > button > strong:has(small:empty) { font-size: 16px; color: #849177; letter-spacing: -.5px; }
/* Small source labels retain readable contrast against the pale surfaces. */
.lab-hero p, .lab-hero > .lab-hero-meta > small,
.lab-measure-strip :is(span,label,small), .lab-timing,
.lab-composer > summary div > span, .lab-composer-body > p, .lab-source-note,
.lab-window-comparison > div:first-child p, .lab-window-grid > button > small,
.lab-state-meta, .lab-state-foot, .lab-card-meta, .lab-no-history,
.lab-card p, .lab-state-card p, .lab-paper-grid p,
.lab-caption, .lab-card > .lab-caption, .lab-chart-top > span,
.lab-model-card > p, .lab-model-card dt, .lab-model-verdict p,
.lab-benchmark-banner p, .lab-benchmark-scale > span,
.lab-benchmark-controls > span, .lab-benchmark-result > p,
.lab-benchmark-result dt, .lab-benchmark-result > strong small,
.lab-benchmark-result .lab-inspector-note, .lab-horizon-label,
.lab-validation-strip, .lab-diagnostic-grid p, .lab-diagnostic-grid small,
.lab-paper-grid article > small, .lab-paper-grid article > div,
.lab-paper-grid article > div b, .lab-method-note, .lab-footer {
  color: #5f725e;
}
.lab-model-verdict.uncertain p { color: #7c693f; }
.lab-response-chart text { fill: #5f725e; }
@keyframes lab-halo-breathe { 0%,100% { opacity: .45; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes lab-orbit-turn { to { transform: rotate(360deg); } }
@media (min-width:1600px) {
  .lab-network { min-height: 470px; }
  .lab-hero { min-height: 270px; padding-top: 45px; }
}
@media (max-width:1150px) {
  body[data-workspace="research"] main { padding: 21px 27px 0; }
  .lab-controls { grid-template-columns: minmax(190px,1.2fr) minmax(155px,1fr) minmax(130px,.8fr); }
  .lab-controls > :last-child:not(label) { grid-column: 1/-1; justify-self: start; }
  .lab-graph-layout { grid-template-columns: minmax(0,2.5fr) minmax(235px,1fr); }
  .lab-inspector { padding: 21px 18px; }
  .lab-orb { margin-right: 10px; width: 160px; height: 160px; flex-basis: 160px; }
  .lab-measure-strip > :is(div,article) { padding: 0 13px; }
  .lab-measure-strip strong { font-size: 26px; }
  .lab-hero .lab-orb { width: 135px; height: 135px; flex-basis: 135px; margin-right: 0; }
  .lab-hero > .lab-hero-meta { flex-basis: 165px; font-size: 7px; }
}
@media (max-width:900px) {
  .lab-hero { gap: 20px; }
  .lab-hero h1 { font-size: 43px; }
  .lab-orb { width: 130px; height: 130px; flex-basis: 130px; }
  .lab-graph-layout { grid-template-columns: 1fr; }
  .lab-inspector { border-left: 0; border-top: 1px solid #ffffff14; padding: 22px; }
  .lab-inspector h3 { font-size: 22px; }
  .lab-inspector dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 27px; }
  .lab-network { min-height: 370px; }
  .lab-legend small { margin-left: 0; flex-basis: 100%; }
  .lab-card, .lab-state-card, .lab-window-grid > article, .lab-paper-grid > article { padding: 18px; }
  .lab-benchmark-grid { grid-template-columns: 1fr; }
  .lab-benchmark-result dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .lab-model-grid { grid-template-columns: minmax(0,1.4fr) minmax(230px,1fr); }
  .lab-hero .lab-orb { display: none; }
  .lab-window-comparison { grid-template-columns: 1fr; gap: 13px; }
  .lab-window-comparison > div:first-child { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
  .lab-window-comparison > div:first-child p { max-width: none; margin: 0; }
  .lab-state-foot { grid-template-columns: 1fr; gap: 10px; }
  .lab-macro-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:700px) {
  body[data-workspace="research"] main { padding: 16px 18px 0; }
  body[data-workspace="research"] .topbar { padding-left: 18px; padding-right: 18px; }
  .lab-hero { padding: 30px 0 27px; min-height: 0; }
  .lab-hero h1 { font-size: 39px; letter-spacing: -1.7px; }
  .lab-hero h1 :is(em,i,span) { letter-spacing: -1.7px; }
  .lab-hero p { font-size: 12px; }
  .lab-orb { display: none; }
  .lab-nav { gap: 7px 18px; padding: 12px 0; }
  .lab-nav :is(a,button) { font-size: 10px; }
  .lab-section { padding-top: 29px; }
  .lab-section-heading { align-items: start; margin-bottom: 15px; }
  .lab-section-heading h2 { font-size: 23px; }
  .lab-controls { grid-template-columns: 1fr 1fr; padding: 17px; gap: 14px; }
  .lab-controls > :first-child { grid-column: 1/-1; }
  .lab-controls > :last-child:not(label) { grid-column: auto; }
  .lab-controls select { font-size: 11px; padding: 9px; }
  .lab-measure-strip { grid-template-columns: repeat(3,minmax(0,1fr)); padding: 15px 4px; gap: 18px 0; }
  .lab-measure-strip > :nth-child(3n) { border-right: 0; }
  .lab-measure-strip strong { font-size: 24px; }
  .lab-measure-strip :is(span,label) { font-size: 9px; }
  .lab-window-grid, .lab-state-grid { grid-template-columns: 1fr; gap: 10px; }
  .lab-window-grid > article, .lab-state-grid > article { padding: 19px; }
  .lab-window-grid dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .lab-state-grid .lab-card > strong { font-size: 32px; }
  .lab-paper-grid { grid-template-columns: 1fr; gap: 12px; }
  .lab-paper-grid > article { padding: 21px; }
  .lab-model-grid { grid-template-columns: 1fr; }
  .lab-graph-toolbar { padding: 17px; align-items: start; }
  .lab-graph-actions { width: 100%; }
  .lab-graph-actions .lab-segment { margin-right: auto; }
  .lab-graph-toolbar h3 { font-size: 17px; }
  .lab-segment button { padding: 7px 9px; font-size: 9px; }
  .lab-inspector { padding: 21px 18px; }
  .lab-legend { padding: 12px 17px; gap: 8px 15px; }
  .lab-source-fields { grid-template-columns: 1fr; gap: 12px; }
  .lab-benchmark-banner { padding: 19px; flex-direction: column; align-items: start; gap: 12px; }
  .lab-benchmark-controls { gap: 12px; align-items: stretch; }
  .lab-benchmark-controls > label { max-width: none; }
  .lab-footer { margin-top: 29px; align-items: start; flex-direction: column; }
  .lab-footer > :last-child { text-align: left; }
  .lab-hero { flex-wrap: wrap; }
  .lab-hero > .lab-hero-meta { flex-basis: 100%; margin: -3px 0 0; padding: 0; }
  .lab-hero > .lab-hero-meta > small { display: inline; margin-left: 12px; }
  .lab-hero > .lab-hero-meta > br, .lab-hero-meta small > br { display: none; }
  .lab-nav > button { margin-left: 0; }
  .lab-source-fields { grid-template-columns: 1fr 1fr; }
  .lab-source-fields > label { grid-column: 1/-1; }
  .lab-composer-action { font-size: 0; }
  .lab-composer-action::after { content: "+"; font-size: 16px; }
  .lab-state-card { padding: 21px; }
  .lab-state-number { font-size: 40px; margin: 15px 0 10px; }
  .lab-window-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .lab-window-grid > button { padding: 12px; }
  .lab-window-grid > button > span { font-size: 9px; min-height: 30px; }
  .lab-window-grid > button > strong { font-size: 22px; }
  #graph-count { margin-right: auto; }
  .lab-motion-note { padding: 0 18px 13px; }
  .lab-benchmark-scale { flex-basis: auto; padding-left: 0; padding-top: 13px; border-left: 0; border-top: 1px solid #cfdcc5; width: 100%; }
  .lab-benchmark-scale > strong { font-size: 30px; }
  .lab-benchmark-controls > span { margin-left: 0; text-align: left; flex-basis: 100%; }
  .lab-validation-strip > :last-child { margin-left: 0; flex-basis: 100%; }
  .lab-diagnostic-grid { grid-template-columns: 1fr; }
}
@media (max-width:440px) {
  body[data-workspace="research"] main { padding: 14px 14px 0; }
  body[data-workspace="research"] .workspace-switch { gap: 3px; }
  body[data-workspace="research"] .workspace-switch button { font-size: 10px; padding: 8px; gap: 6px; }
  .lab-hero h1 { font-size: 35px; letter-spacing: -1.5px; }
  .lab-hero h1 :is(em,i,span) { letter-spacing: -1.5px; }
  .lab-hero-meta { gap: 8px 13px; font-size: 9px; margin-top: 17px; }
  .lab-section-heading h2 { font-size: 22px; }
  .lab-controls { grid-template-columns: minmax(0,1fr); }
  .lab-controls > :first-child { grid-column: auto; }
  .lab-measure-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .lab-measure-strip > :nth-child(3n) { border-right: 1px solid #e4eae0; }
  .lab-measure-strip > :nth-child(2n), .lab-measure-strip > :last-child { border-right: 0; }
  .lab-measure-strip > :is(div,article) { padding: 0 14px; }
  .lab-measure-strip strong { font-size: 27px; }
  .lab-inspector dl, .lab-benchmark-result dl, .lab-window-grid dl { grid-template-columns: 1fr; }
  .lab-graph-actions { gap: 8px; }
  .lab-graph-actions .lab-segment { flex: 1 1 100%; }
  .lab-graph-actions .lab-segment button { flex: 1; }
  .lab-graph-toolbar > .lab-segment { width: 100%; }
  .lab-graph-toolbar > .lab-segment button { flex: 1; }
  .lab-timing { font-size: 9px; }
  .lab-benchmark-result { padding: 17px; }
  .lab-method-note { padding: 12px 14px; }
  .lab-window-grid { gap: 7px; }
  .lab-window-grid > button { padding: 11px 9px; }
  .lab-window-grid > button > strong { font-size: 20px; }
  .lab-window-grid > button > small { font-size: 7px; }
  .lab-inspector-stat { font-size: 31px; }
  .lab-source-fields > button { padding: 9px; font-size: 10px; }
  .desktop-only { display: none; }
  .lab-macro-grid { gap: 10px; }
  .lab-macro-grid .lab-card { padding: 15px; }
  .lab-macro-grid .lab-big-number { font-size: 30px; }
  .lab-window-grid > button > strong:has(small:empty) { font-size: 14px; }
  .lab-chart-top > span { font-size: 7px; }
}
@media (prefers-reduced-motion:reduce) {
  .lab-node-halo, .lab-orbit { animation: none !important; }
  .lab-flow { display: none !important; }
  .lab-primary, .lab-secondary, .lab-node-ring, .lab-edge-line { transition: none !important; }
}
