/* Outer height matches Add VIP, independent of each window's box model. */
:root {
  --text-control-height: 24px;
}

body.mobile-layout {
  --text-control-height: 40px;
}

body input:not([type]),
body input:is([type='text'], [type='search'], [type='password'], [type='email'], [type='number'], [type='tel'], [type='url'], [type='date'], [type='time'], [type='datetime-local'], [type='month'], [type='week']),
body select:not([multiple]):not([size]),
body select[size='1'] {
  box-sizing: border-box !important;
  height: var(--text-control-height) !important;
  min-height: var(--text-control-height) !important;
  max-height: none !important;
  padding-top: 2px !important;
  padding-bottom: 2px !important;
  line-height: normal !important;
}

body textarea,
body [contenteditable='true'] {
  box-sizing: border-box;
  min-height: var(--text-control-height);
}
