/* molecular-weight — tool CSS, trimmed in Chunk 4a.
   Retired: .example-box, .example-row, .field-err (the JS now creates
   .field-error, the Chunk 1 class), .data-toggle (the data table now
   uses the shared Show data button), .mw-tabs / .mw-tab / .mw-panel
   (Chunk 1 .tabs / .tab-panel), .unit-toggle / .unit-btn and .check
   (dead rules copied in by migrate.py — this tool never used them).
   Kept: the two blocks below, which have no Chunk 1 equivalent — the
   live formula preview and the compact element-mass editor grid.
   Sizes normalised to the Chunk 1 scales (preview 22px -> 20px,
   editor inputs 40px -> 36px, radius 8px -> --radius-control). */
.tool-body .formula-preview {
  font-size: 20px;
  margin-top: 8px;
  min-height: 32px;
}
.tool-body .mass-edit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tool-body .mass-edit label {
  font-size: 14px;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 8px;
}
.tool-body .mass-edit input {
  width: 100%;
  min-height: 36px;
  border-radius: var(--radius-control);
  border: 1px solid var(--line-strong);
  padding: 8px 8px;
  font-size: 14px;
  background: var(--surface);
  color: var(--ink);
}
