.thermistor-workspace {
  --thermistor-blue: #2365a8;
  --thermistor-border: #c4d2df;
}
.thermistor-note {
  padding: 1rem 1.2rem;
  border-left: 4px solid #28717d;
  background: #eff7f8;
  border-radius: 5px;
  color: #163d46;
}
.thermistor-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: end;
  margin: 1.25rem 0;
}
.thermistor-controls label {
  display: grid;
  gap: 0.4rem;
  flex: 1 1 180px;
}
.thermistor-workspace input[type="number"],
.thermistor-workspace select {
  max-width: 100%;
  width: 100%;
  padding: 0.65rem;
  border: 1px solid #8599ae;
  border-radius: 6px;
  background: #fff;
  color: #152f48;
  font: inherit;
}
.thermistor-workspace button {
  margin: 0.4rem 0.25rem 0.4rem 0;
}
.thermistor-instruments {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
}
.thermistor-instrument {
  flex: 1 1 210px;
  display: grid;
  gap: 0.5rem;
  border: 1px solid var(--thermistor-border);
  border-radius: 12px;
  padding: 1rem;
  background: #f2f6fa;
  color: #28415b;
}
.thermistor-instrument output {
  display: block;
  background: #102c40;
  color: #bcf5e1;
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  font:
    600 clamp(1.2rem, 3vw, 1.8rem)/1.3 ui-monospace,
    monospace;
  letter-spacing: 0.04em;
}
.thermistor-instrument span {
  font-size: 0.93rem;
}
.thermistor-bench,
.thermistor-ruler {
  width: 100%;
  display: block;
  background: #f7fafd;
  border: 1px solid var(--thermistor-border);
  border-radius: 12px;
  margin: 1.2rem 0;
}
.thermistor-workspace svg text {
  font:
    14px system-ui,
    sans-serif;
  fill: #243d55;
}
.thermistor-workspace [data-thermistor-live-trace] svg,
.thermistor-workspace [data-thermistor-recorded] svg,
.thermistor-workspace [data-thermistor-graph] svg {
  width: 100%;
  min-width: 560px;
  display: block;
  background: #fff;
}
.thermistor-workspace [data-thermistor-live-trace],
.thermistor-workspace [data-thermistor-recorded],
.thermistor-workspace [data-thermistor-graph] {
  overflow-x: auto;
  margin: 1.4rem 0;
}
.thermistor-minor {
  stroke: #e9eef3;
  stroke-width: 0.6;
}
.thermistor-major {
  stroke: #bac9d7;
  stroke-width: 1;
}
.thermistor-trace {
  fill: none;
  stroke: #226aab;
  stroke-width: 2.5;
}
.thermistor-point {
  fill: #2468a5;
}
.thermistor-fit {
  stroke: #d06e2d;
  stroke-width: 2.3;
}
.thermistor-table-wrap {
  overflow-x: auto;
  margin: 1.3rem 0;
}
.thermistor-workspace table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.92rem;
}
.thermistor-workspace th,
.thermistor-workspace td {
  padding: 0.7rem;
  text-align: left;
  border: 1px solid #d3dde7;
  white-space: nowrap;
}
.thermistor-workspace th {
  background: #eaf1f7;
  color: #193b5a;
}
.thermistor-workspace tbody tr:nth-child(even) {
  background: #f7fafc;
}
.thermistor-workspace td input {
  min-width: 115px;
}
.thermistor-correction {
  background: #fff1d2 !important;
  color: #734600;
  font-weight: 600;
}
.thermistor-restart {
  margin-top: 2rem;
  padding: 1rem;
  border-top: 1px solid #d2dce5;
}
.thermistor-workspace details summary {
  cursor: pointer;
  font-weight: 600;
}
.thermistor-workspace [data-thermistor-status]:not(:empty) {
  padding: 0.8rem;
  border: 1px solid #c8d9e7;
  border-radius: 7px;
  background: #f0f6fb;
}
.thermistor-workspace button:focus-visible,
.thermistor-workspace select:focus-visible,
.thermistor-workspace input:focus-visible {
  outline: 3px solid #d59a34;
  outline-offset: 3px;
}
.thermistor-workspace input:disabled,
.thermistor-workspace select:disabled {
  opacity: 0.65;
}
.thermistor-workspace form {
  margin: 1rem 0;
}

.thermistor-instruments > div {
  flex: 1 1 200px;
  padding: 1rem;
  border: 1px solid #c4d2df;
  border-radius: 12px;
  background: #f2f6fa;
}
.thermistor-instruments output {
  display: block;
  font:
    600 1.8rem ui-monospace,
    monospace;
  background: #102c40;
  color: #bcf5e1;
  padding: 0.7rem;
  border-radius: 6px;
  margin-top: 0.6rem;
}
.thermistor-workspace [data-thermistor-video],
.thermistor-workspace [data-thermistor-calibration] {
  display: block;
  width: 100%;
  background: #f4f8fb;
  border: 1px solid #a8bacb;
  border-radius: 10px;
  touch-action: none;
}
.thermistor-workspace [data-thermistor-video] {
  cursor: crosshair;
}
.thermistor-crosshair {
  stroke: #142b3c;
  stroke-width: 2;
  fill: none;
  cursor: move;
}
.thermistor-crosshair:focus {
  stroke: #a5367b;
  stroke-width: 3;
  outline: none;
}
.thermistor-crosshair .thermistor-hit {
  fill: transparent;
  stroke: none;
}
.thermistor-recorded {
  stroke: #21704b;
  stroke-width: 2;
  pointer-events: none;
}
.thermistor-workspace [data-thermistor-graph] svg {
  min-width: 640px;
}
.thermistor-workspace input[type="range"] {
  width: 100%;
  min-height: 36px;
}
@media (max-width: 600px) {
  .thermistor-controls {
    gap: 0.5rem;
  }
  .thermistor-controls label {
    flex-basis: 140px;
  }
}

.thermistor-crosshair text,
.thermistor-recorded text {
  stroke: none;
}

.thermistor-workspace [data-thermistor-apparatus] {
  display: block;
  width: 100%;
  background: #f6f9fb;
  border: 1px solid #b8c9d8;
  border-radius: 12px;
  margin: 1rem 0;
}
.thermistor-workspace [data-thermistor-resistance-graph],
.thermistor-workspace [data-thermistor-voltage-graph],
.thermistor-workspace [data-thermistor-log-graph] {
  overflow-x: auto;
  margin: 1.5rem 0;
}
.thermistor-workspace [data-thermistor-resistance-graph] svg,
.thermistor-workspace [data-thermistor-voltage-graph] svg,
.thermistor-workspace [data-thermistor-log-graph] svg {
  width: 100%;
  min-width: 620px;
  background: #fff;
}
.thermistor-instruments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.thermistor-curve {
  fill: none;
  stroke: #2769a3;
  stroke-width: 2.5;
}
.thermistor-equilibrated {
  color: #1c6743;
}

.thermistor-apparatus-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}
.thermistor-workspace [data-thermistor-apparatus] {
  min-width: 720px;
}

.thermistor-resistor-choice {
  cursor: pointer;
  touch-action: none;
  outline: none;
}
.thermistor-resistor-choice:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}
.thermistor-resistor-choice[aria-pressed="true"] > rect:first-child {
  stroke: #2563eb;
  stroke-width: 3;
}
.thermistor-resistor-choice[aria-disabled="true"] {
  opacity: 0.55;
  cursor: default;
}
