@import url('/tools/zt/eng/maths/workbench.css');

.ratio-terms:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 700px) {
  .maths-tabs { flex-wrap: wrap; }
  .maths-tabs button { flex: 1 1 65px; }
  #panel-simplify .maths-field { display: contents; }
  #panel-simplify .maths-field label { grid-row: 1; }
  #panel-simplify .maths-field input { grid-row: 2; }
  #panel-simplify .maths-field .zt-hint { grid-column: 1 / -1; }
}

#tool:has(:is(#panel-scale, #panel-convert, #panel-compare):not([hidden])) :is(.zt-ux-presets, .zt-example) {
  display: none;
}

@media (max-width: 700px) {
  .maths-tabs button { padding: 6px 4px; font-size: 0.8125rem; min-width: 0; overflow-wrap: anywhere; }
}
