section.calculator-ohm {
  display: flex;
  flex-direction: column;
  max-width: 645px;
  font-family: "IBM Plex Sans";
  font-size: 0.8em;
  gap: 0.6rem;
}

.formula-input {
  display: flex;
  flex-direction: row;
  justify-items: middle;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: 2px solid black;
  border-radius: 0.5em;
  box-shadow: inset 0em 0 0 black;
  transition: all 250ms ease;
  background: white;
  align-items: stretch;
}

.formula-input > label {
  font-size: 1.2em;
  text-align: right;
  width: 7em;
  min-width: 0;
  align-self: center;
  padding: 0.5em;
  text-overflow: clip;
  overflow: hidden;
  white-space: nowrap;
}
.formula-input > input {
  flex: 1 1 0;
  box-sizing: border-box;
  padding: 0.5em;
  border-radius: 0;
  border-bottom: 0;
  border-right: 0;
  border-top: 0;
  border-left: 2px solid black;
  font-size: 1.3em;
  background: none;
  min-width: 0;
}
.formula-input > .lock-toggle {
  background: 0;
  border: none;
  padding-right: 1em;
}
.formula-input.target {
  border-color: blue;
  color: blue;
  border-radius: 2em;
  transition: all 250ms ease;
}
.formula-input.target input {
  border: none;
  color: blue;
}
.formula-input.target .lock-toggle {
  color: blue;
}
.formula-input.error {
  border-color: red;
  box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.1);
}
.formula-input.error input {
  border-color: red;
}
.formula-input:has(:focus) {
  box-shadow: inset -5.5em 0 0 black;
  transition: box-shadow 250ms ease;
  transition-delay: 250ms;
}
.formula-input:has(:focus) input {
  outline: none;
}
.formula-input:has(:focus) .lock-icon {
  stroke: white;
}

.lock-icon {
  width: 2em;
  cursor: pointer;
}

.lock-icon.locked {
  display: none;
}
.lock-toggle.locked .lock-icon.locked {
  display: inline;
}
.lock-toggle.locked .lock-icon.unlocked {
  display: none;
}
.lock-toggle .lock-icon {
  stroke: black;
}
.lock-toggle.locked .lock-icon {
  stroke: red;
}

.eseries-controls {
  display: flex;
  flex-direction: column-reverse;
  align-self: stretch;
  padding: 0;
  height: auto; 
  border-left: 2px solid black;
  border-right: 2px solid black;
}
.eseries-controls button {
  flex: 1 1 0; 
  min-height: 0; 
  border: none;
  background: none;
  font-size: 0.8em;
  line-height: 1;
  cursor: pointer;
  padding: 0.2em 0.6em;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eseries-controls button:first-of-type {
  border-top: unset;
  border-bottom: unset;
}
.eseries-controls button:last-of-type {
  border-top: unset;
  padding-bottom: calc(0.2em + 2px);
}
.eseries-controls button:first-of-type {
  border-top: 1px solid black;
}
.eseries-controls button + button {
  border-bottom: 1px solid black;
}

.formula-input:has(:focus) .eseries-controls button {
  border-color: white;
  color: white;
}
.eseries-controls button:active {
  color: blue;
}

.formula-input .note {
  flex: 1 1 100%;
  padding: 0.35rem 0.5rem;
  font-size: 0.9em;
}


