/* /css/ai-lab.css — light-mode AI Lab workbench */
:root {
  color-scheme: light;
  --lab-page: #f4f8f7;
  --lab-panel: #ffffff;
  --lab-panel-soft: #edf5f3;
  --lab-text: #172326;
  --lab-muted: #5a6d70;
  --lab-border: #c9d9d6;
  --lab-border-strong: #86aaa5;
  --lab-grid: #26363a;
  --lab-brand: #006a70;
  --lab-brand-dark: #07545a;
  --lab-brand-soft: #d9efed;
  --lab-gold: #9a6700;
  --lab-gold-fill: rgba(218, 165, 32, .30);
  --lab-blue: #1565c0;
  --lab-blue-fill: rgba(21, 101, 192, .20);
  --lab-red: #b3261e;
  --lab-red-fill: rgba(179, 38, 30, .22);
  --lab-green: #137333;
  --lab-green-fill: rgba(19, 115, 51, .21);
  --lab-shadow: 0 14px 38px rgba(29, 61, 63, .10);
  --lab-radius: 16px;
  --lab-focus: 0 0 0 3px rgba(21, 101, 192, .28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--lab-page);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--lab-text);
  background:
    radial-gradient(circle at 7% 0%, rgba(0, 106, 112, .07), transparent 26rem),
    var(--lab-page);
}

button,
select,
textarea,
input {
  font: inherit;
}

button,
select,
input[type="range"],
input[type="checkbox"] {
  accent-color: var(--lab-brand);
}

button:focus-visible,
select:focus-visible,
textarea:focus-visible,
input:focus-visible {
  outline: 0;
  box-shadow: var(--lab-focus);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: var(--lab-brand-dark);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.lab-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 10px clamp(14px, 3vw, 38px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--lab-border);
  backdrop-filter: blur(12px);
}

.lab-brand,
.lab-header-actions,
.lab-header-status,
.card-heading,
.bench-heading,
.dialog-heading,
.button-row,
.input-action-row,
.recipe-navigation {
  display: flex;
  align-items: center;
}

.lab-brand {
  gap: 11px;
}

.lab-brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  font-family: Georgia, serif;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.04em;
  background: var(--lab-brand);
  border-radius: 50% 50% 46% 54%;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12);
}

.lab-eyebrow {
  margin: 0 0 2px;
  color: var(--lab-brand-dark);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.1;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  line-height: 1.2;
}

h3 {
  margin: 4px 0 7px;
  font-size: 1rem;
}

.lab-header-status {
  justify-content: center;
  gap: 8px;
}

.lab-header-actions {
  justify-content: flex-end;
  gap: 8px;
}

.status-badge,
.status-dot {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: var(--lab-brand-dark);
  font-size: .77rem;
  font-weight: 750;
  background: var(--lab-brand-soft);
  border: 1px solid #b7dcd8;
  border-radius: 999px;
}

.status-badge-muted {
  color: var(--lab-muted);
  background: #f4f6f6;
  border-color: var(--lab-border);
}

.status-dot::before {
  width: 7px;
  height: 7px;
  margin-right: 6px;
  content: "";
  background: #839295;
  border-radius: 50%;
}

.status-dot[data-state="working"]::before {
  background: var(--lab-gold);
  box-shadow: 0 0 0 4px var(--lab-gold-fill);
}

.status-dot[data-state="success"]::before {
  background: var(--lab-green);
}

.status-dot[data-state="failed"]::before {
  background: var(--lab-red);
}

.button,
.tool-button,
.digit-button,
.swatch,
.dialog-close {
  border: 0;
  cursor: pointer;
}

.button {
  min-height: 40px;
  padding: 8px 13px;
  color: var(--lab-text);
  font-size: .82rem;
  font-weight: 750;
  background: #fff;
  border: 1px solid var(--lab-border);
  border-radius: 9px;
}

.button:hover:not(:disabled) {
  border-color: var(--lab-border-strong);
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.button-primary {
  color: #fff;
  background: var(--lab-brand);
  border-color: var(--lab-brand);
}

.button-primary:hover:not(:disabled) {
  background: var(--lab-brand-dark);
  border-color: var(--lab-brand-dark);
}

.button-secondary {
  color: var(--lab-brand-dark);
  background: #fff;
  border-color: #91bdb9;
}

.button-quiet {
  background: var(--lab-panel-soft);
}

.button-full {
  width: 100%;
}

.button-row {
  gap: 8px;
}

.button-row > * {
  flex: 1 1 0;
}

.lab-main {
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: 22px clamp(12px, 2vw, 28px) 40px;
  display: grid;
  grid-template-columns: minmax(190px, 225px) minmax(450px, 660px) minmax(310px, 390px);
  align-items: start;
  justify-content: center;
  gap: clamp(14px, 1.7vw, 24px);
}

.lab-tools,
.lab-console {
  display: grid;
  gap: 14px;
}

.lab-tools {
  position: sticky;
  top: 98px;
  max-height: calc(100vh - 120px);
  padding-right: 4px;
  overflow: auto;
}

.tool-section,
.console-card,
.lab-bench {
  background: var(--lab-panel);
  border: 1px solid var(--lab-border);
  border-radius: var(--lab-radius);
  box-shadow: var(--lab-shadow);
}

.tool-section {
  padding: 14px;
}

.tool-section h2 {
  margin-bottom: 11px;
  font-family: inherit;
  font-size: .78rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.tool-button {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 8px;
  color: var(--lab-text);
  font-size: .75rem;
  font-weight: 720;
  background: var(--lab-panel-soft);
  border: 1px solid transparent;
  border-radius: 8px;
}

.tool-button:hover,
.tool-button.is-active {
  color: var(--lab-brand-dark);
  background: #fff;
  border-color: var(--lab-brand);
}

.line-sample {
  width: 20px;
  height: 0;
  border-top: 3px solid;
}

.line-sample-strong {
  border-color: var(--lab-gold);
}

.line-sample-weak {
  border-color: var(--lab-blue);
  border-top-style: dashed;
}

.tool-help,
.fine-print {
  margin: 9px 0 0;
  color: var(--lab-muted);
  font-size: .72rem;
  line-height: 1.45;
}

.palette {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  margin-top: 12px;
}

.swatch {
  width: 100%;
  aspect-ratio: 1;
  min-height: 27px;
  background: var(--swatch);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--lab-border);
}

.swatch[data-color="gold"] { --swatch: #b47b00; }
.swatch[data-color="blue"] { --swatch: #1b6fc5; }
.swatch[data-color="red"] { --swatch: #b9362e; }
.swatch[data-color="green"] { --swatch: #238044; }
.swatch[data-color="purple"] { --swatch: #7752b9; }
.swatch[data-color="teal"] { --swatch: #098779; }

.swatch.is-active {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--lab-grid);
}

.field-label {
  display: block;
  margin: 9px 0 6px;
  color: var(--lab-muted);
  font-size: .74rem;
  font-weight: 750;
}

select,
textarea {
  width: 100%;
  color: var(--lab-text);
  background: #fff;
  border: 1px solid var(--lab-border);
  border-radius: 8px;
}

select {
  min-height: 40px;
  padding: 7px 9px;
}

textarea {
  padding: 11px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem;
  line-height: 1.45;
}

input[type="range"] {
  width: 100%;
  margin: 1px 0 10px;
}

.check-row {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--lab-muted);
  font-size: .78rem;
  cursor: pointer;
}

.check-row input {
  width: 17px;
  height: 17px;
  margin: 0;
}

.lab-bench {
  min-width: 0;
  padding: clamp(14px, 2.2vw, 24px);
}

.bench-heading,
.card-heading,
.dialog-heading {
  justify-content: space-between;
  gap: 14px;
}

.bench-heading {
  margin-bottom: 14px;
}

.lab-grid-stage {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 1;
  margin: 0 auto;
  touch-action: manipulation;
}

.lab-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-template-rows: repeat(9, 1fr);
  overflow: hidden;
  background: var(--lab-grid);
  border: 3px solid var(--lab-grid);
  border-radius: 5px;
  user-select: none;
}

.lab-cell {
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
  isolation: isolate;
  color: var(--lab-text);
  background: #fff;
  border-right: 1px solid #9eaeae;
  border-bottom: 1px solid #9eaeae;
}

.lab-cell.box-right {
  border-right: 3px solid var(--lab-grid);
}

.lab-cell.box-bottom {
  border-bottom: 3px solid var(--lab-grid);
}

.lab-cell.last-col {
  border-right: 0;
}

.lab-cell.last-row {
  border-bottom: 0;
}

.lab-cell.is-given {
  background-color: #f1f4f3;
}

.lab-cell.has-cell-annotation {
  /* This is the CELL BACKGROUND only. Candidate styling is independent. */
  background: var(--cell-annotation-fill, #ffefb0);
}

.lab-cell.is-selected {
  box-shadow: inset 0 0 0 3px var(--lab-brand);
}

.lab-cell.is-peer:not(.is-selected) {
  box-shadow: inset 0 0 0 999px rgba(0, 106, 112, .045);
}

.lab-cell.is-link-start,
.lab-candidate.is-link-start {
  box-shadow: inset 0 0 0 3px var(--lab-gold);
}

.lab-value {
  position: relative;
  z-index: 2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 4.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1;
}

.is-given .lab-value {
  color: #12191b;
}

.is-entered .lab-value {
  color: var(--lab-blue);
}

.lab-candidates {
  position: absolute;
  inset: 2px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
}

.lab-candidate {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  color: #39736c;
  font-size: clamp(.44rem, 1.08vw, .78rem);
  font-weight: 650;
  line-height: 1;
  border-radius: 4px;
}

.lab-candidate:not(.is-live) {
  color: transparent;
  pointer-events: none;
}

.lab-candidate.has-candidate-annotation {
  color: var(--candidate-annotation-ink, var(--lab-blue));
  background: var(--candidate-annotation-fill, var(--lab-blue-fill));
  box-shadow: inset 0 0 0 1px currentColor;
}

.lab-grid.is-linking .lab-candidate.is-live,
.lab-grid.is-linking .lab-cell.is-solved {
  cursor: crosshair;
}

.lab-inference-svg {
  position: absolute;
  inset: 0;
  z-index: 9;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.lab-link {
  fill: none;
  stroke-width: 3.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, .95));
}

.lab-link-weak {
  stroke-width: 2.7;
  stroke-dasharray: 8 6;
}

.lab-link-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 14;
  pointer-events: stroke;
  cursor: pointer;
}

.lab-link-selection {
  fill: none;
  stroke: #fff;
  stroke-width: 8;
  stroke-linecap: round;
  opacity: .9;
  pointer-events: none;
}

.digit-pad {
  display: grid;
  grid-template-columns: auto repeat(9, minmax(34px, 1fr));
  align-items: center;
  gap: 5px;
  margin-top: 14px;
}

.digit-pad > span {
  padding-right: 4px;
  color: var(--lab-muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.digit-button {
  min-height: 38px;
  color: var(--lab-brand-dark);
  font-weight: 800;
  background: var(--lab-panel-soft);
  border: 1px solid transparent;
  border-radius: 7px;
}

.digit-button:hover,
.digit-button.is-active {
  color: #fff;
  background: var(--lab-brand);
}

.bench-readout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 13px;
}

.bench-readout > div {
  min-width: 0;
  padding: 10px 12px;
  background: var(--lab-panel-soft);
  border-radius: 9px;
}

.readout-label {
  display: block;
  margin-bottom: 3px;
  color: var(--lab-muted);
  font-size: .68rem;
  font-weight: 750;
  text-transform: uppercase;
}

.bench-readout strong {
  display: block;
  font-size: .82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lab-announcer {
  min-height: 1.5em;
  margin: 12px 2px 0;
  color: var(--lab-muted);
  font-size: .8rem;
  line-height: 1.45;
}

.console-card {
  padding: 16px;
}

.console-card .card-heading {
  margin-bottom: 13px;
}

.solver-test {
  margin-top: 12px;
}

.input-action-row {
  align-items: stretch;
  gap: 7px;
}

.input-action-row select {
  min-width: 0;
  flex: 1 1 auto;
}

.result-box {
  min-height: 112px;
  margin: 13px 0 10px;
  padding: 13px;
  background: #f7faf9;
  border: 1px solid var(--lab-border);
  border-left: 4px solid var(--lab-brand);
  border-radius: 10px;
}

.result-box.is-empty {
  border-left-color: #9aa8aa;
}

.result-box.is-failed {
  background: #fff8f7;
  border-left-color: var(--lab-red);
}

.result-box p {
  margin: 0;
  color: var(--lab-muted);
  font-size: .79rem;
  line-height: 1.47;
}

.result-kicker {
  color: var(--lab-brand-dark) !important;
  font-size: .66rem !important;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.result-action {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 7px;
  color: var(--lab-text) !important;
  font-family: ui-monospace, monospace;
  font-weight: 800;
  background: var(--lab-gold-fill);
  border-radius: 5px;
}

.comparison-box {
  display: grid;
  gap: 3px;
  margin: 0 0 11px;
  padding: 10px 11px;
  font-size: .76rem;
  line-height: 1.4;
  background: #f4f6f6;
  border-radius: 8px;
}

.comparison-box span {
  color: var(--lab-muted);
}

.comparison-box[data-state="exact"],
.comparison-box[data-state="equivalent"] {
  background: #e7f4ea;
  box-shadow: inset 3px 0 0 var(--lab-green);
}

.comparison-box[data-state="alternate"] {
  background: #fff5d9;
  box-shadow: inset 3px 0 0 var(--lab-gold);
}

.comparison-box[data-state="no-live-hint"] {
  background: #fff0ee;
  box-shadow: inset 3px 0 0 var(--lab-red);
}

.recipe-summary {
  margin-bottom: 10px;
  padding: 10px 11px;
  color: var(--lab-muted);
  font-size: .76rem;
  line-height: 1.45;
  background: var(--lab-panel-soft);
  border-radius: 8px;
}

.recipe-navigation {
  justify-content: space-between;
  gap: 7px;
  margin-bottom: 9px;
}

.recipe-navigation > span {
  color: var(--lab-muted);
  font-size: .74rem;
  font-weight: 750;
}

.recipe-list {
  max-height: 290px;
  margin: 0 0 11px;
  padding: 0;
  overflow: auto;
  list-style: none;
  border: 1px solid var(--lab-border);
  border-radius: 9px;
}

.recipe-list:empty::after {
  display: block;
  padding: 18px 12px;
  color: var(--lab-muted);
  font-size: .77rem;
  text-align: center;
  content: "No Control Recipe supplied";
}

.recipe-step {
  width: 100%;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  padding: 9px;
  color: var(--lab-text);
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #e1e9e7;
  cursor: pointer;
}

.recipe-step:hover,
.recipe-step.is-selected {
  background: var(--lab-brand-soft);
}

.recipe-step.is-past {
  color: var(--lab-muted);
  background: #f4f7f6;
}

.recipe-step-number {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--lab-muted);
  font-size: .68rem;
  font-weight: 800;
  background: #fff;
  border: 1px solid var(--lab-border);
  border-radius: 50%;
}

.recipe-step-copy {
  min-width: 0;
}

.recipe-step-copy strong,
.recipe-step-copy span {
  display: block;
}

.recipe-step-copy strong {
  font-size: .77rem;
}

.recipe-step-copy span {
  margin-top: 2px;
  color: var(--lab-muted);
  font-size: .69rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.button-stack {
  display: grid;
  gap: 7px;
}

.check-row-boxed {
  margin-top: 10px;
  padding: 8px;
  background: #f7faf9;
  border: 1px solid var(--lab-border);
  border-radius: 8px;
}

.audit-card > p:not(.fine-print) {
  margin: 0 0 11px;
  color: var(--lab-muted);
  font-size: .79rem;
  line-height: 1.45;
}

.analysis-report {
  display: grid;
  grid-template-columns: minmax(90px, .7fr) minmax(0, 1.3fr);
  gap: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--lab-border);
  border-radius: 9px;
}

.analysis-report dt,
.analysis-report dd {
  min-width: 0;
  margin: 0;
  padding: 8px 9px;
  font-size: .73rem;
  line-height: 1.4;
  border-bottom: 1px solid #e1e9e7;
}

.analysis-report dt {
  color: var(--lab-muted);
  font-weight: 800;
  background: #f5f8f7;
}

.analysis-report dd {
  overflow-wrap: anywhere;
}

.analysis-report dt:last-of-type,
.analysis-report dd:last-of-type {
  border-bottom: 0;
}

.lab-dialog {
  width: min(92vw, 680px);
  padding: 0;
  color: var(--lab-text);
  background: #fff;
  border: 1px solid var(--lab-border);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(18, 45, 47, .28);
}

.lab-dialog:not([open]):not(.is-fallback-open) {
  display: none;
}

.lab-dialog.is-fallback-open {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 1001;
  display: block;
  max-height: min(88vh, 760px);
  margin: 0;
  overflow: auto;
  transform: translate(-50%, -50%);
}

body.has-fallback-dialog {
  overflow: hidden;
}

body.has-fallback-dialog::before {
  position: fixed;
  inset: 0;
  z-index: 1000;
  content: "";
  background: rgba(22, 38, 40, .45);
  backdrop-filter: blur(3px);
}

.lab-dialog::backdrop {
  background: rgba(22, 38, 40, .45);
  backdrop-filter: blur(3px);
}

.lab-dialog form {
  padding: 20px;
}

.lab-dialog p {
  color: var(--lab-muted);
  font-size: .82rem;
  line-height: 1.5;
}

.dialog-close {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  color: var(--lab-brand-dark);
  font-size: 1.5rem;
  line-height: 1;
  background: #fff;
  border: 1px solid var(--lab-border);
  border-radius: 50%;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 13px;
}

.form-error {
  min-height: 1.3em;
  margin: 7px 0 0 !important;
  color: var(--lab-red) !important;
  font-weight: 700;
}

code {
  padding: 1px 4px;
  color: var(--lab-brand-dark);
  background: var(--lab-panel-soft);
  border-radius: 4px;
}

@media (max-width: 1230px) {
  .lab-main {
    grid-template-columns: minmax(190px, 225px) minmax(430px, 650px);
  }

  .lab-console {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-tools {
    position: static;
    max-height: none;
  }
}

@media (max-width: 800px) {
  .lab-header {
    position: static;
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .lab-header-status {
    display: none;
  }

  .lab-header-actions .button {
    padding-inline: 10px;
    font-size: .74rem;
  }

  .lab-main {
    display: flex;
    flex-direction: column;
    padding-top: 12px;
  }

  .lab-bench {
    width: 100%;
    order: 1;
  }

  .lab-console {
    width: 100%;
    order: 2;
    display: grid;
    grid-template-columns: 1fr;
  }

  .lab-tools {
    width: 100%;
    order: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .digit-pad {
    grid-template-columns: repeat(9, 1fr);
  }

  .digit-pad > span {
    display: none;
  }
}

@media (max-width: 500px) {
  .lab-header {
    min-height: 64px;
    padding: 8px 10px;
  }

  .lab-brand-mark {
    width: 38px;
    height: 38px;
  }

  .lab-brand .lab-eyebrow,
  .lab-header-actions .button:last-child {
    display: none;
  }

  .lab-main {
    padding-inline: 7px;
  }

  .lab-bench,
  .console-card,
  .tool-section {
    border-radius: 11px;
  }

  .lab-bench {
    padding: 10px;
  }

  .bench-heading {
    margin: 2px 2px 9px;
  }

  .bench-heading .button {
    min-height: 36px;
    padding: 6px 9px;
  }

  .lab-grid {
    border-width: 2px;
  }

  .lab-cell.box-right {
    border-right-width: 2px;
  }

  .lab-cell.box-bottom {
    border-bottom-width: 2px;
  }

  .lab-candidates {
    inset: 1px;
  }

  .lab-candidate {
    font-size: clamp(.38rem, 2.25vw, .68rem);
  }

  .digit-button {
    min-height: 36px;
  }

  .bench-readout {
    grid-template-columns: 1fr;
  }

  .lab-tools {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
