@media screen {
  table {
    font-size: 1rem;
    font-weight: 650;
  }

  th {
    font-size: .76rem;
    font-weight: 800;
  }

  .cell-input {
    font: inherit;
    font-weight: 650;
  }
}

@media screen and (max-width: 700px) {
  table,
  .cell-input {
    font-size: .92rem;
  }
}

.airflow-trigger {
  cursor: pointer !important;
  color: #0d5f68;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

.airflow-calculator {
  padding: 22px;
}

.airflow-calculator label {
  display: block;
  margin-top: 16px;
  font-weight: 700;
}

.airflow-calculator input {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.airflow-formula {
  margin-top: 18px;
  color: #527078;
  font-style: italic;
}

#airflow-result {
  display: block;
  min-height: 1.5em;
  margin-top: 8px;
  font-size: 1.2rem;
  font-weight: 800;
}

.history-panel {
  padding: 22px;
}

.history-results {
  display: grid;
  gap: 9px;
  max-height: 52vh;
  margin-top: 16px;
  overflow: auto;
}

.history-entry {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5fafa;
}

.history-entry p,
.history-entry small {
  display: block;
  margin-top: 4px;
  color: #527078;
}

.history-pressure {
  padding: 1px 4px;
  border: 0;
  border-bottom: 1px dotted var(--teal);
  border-radius: 0;
  color: var(--teal);
  background: transparent;
  font: inherit;
  font-weight: 800;
}

.history-filters {
  display: flex;
  gap: 7px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.history-filters button {
  padding: 7px 10px;
  color: var(--teal);
  border: 1px solid var(--line);
  background: #fff;
  font-size: .85rem;
}

.history-filters button.active {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

.history-position {
  padding: 1px 4px;
  border: 0;
  border-bottom: 1px dotted var(--teal);
  border-radius: 0;
  color: var(--teal);
  background: transparent;
  font: inherit;
  font-weight: 800;
}
