/* Unit converter (2026-11-17): the kind row scrolling sideways, faded at the
   right edge, and the unit rows (lib/views/tools/unit_converter_screen.dart). */
.tl-units__kinds { overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px;
  -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent); }
.tl-units__kinds::-webkit-scrollbar { display: none; }
.tl-units__kinds .tl-seg { flex-wrap: nowrap; white-space: nowrap; margin-right: 32px; }
.tl-units__card { padding: 4px 18px; gap: 0; }
.tl-units__row { padding: 12px 0; border-bottom: 1px solid var(--divider); }
.tl-units__row:last-child { border-bottom: 0; }
.tl-units__line { display: flex; align-items: center; gap: 12px; }
.tl-units__name { flex: 1; min-width: 0; font-size: 16px; line-height: 1.3; }
.tl-units__input { width: 170px; flex-shrink: 0; height: 48px; padding: 0 12px; }
.tl-units__spanner { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 12px; background: var(--bg); border-radius: 10px; }
.tl-units__spanner-name { flex: 1; font-size: 14px; }
.tl-units__fraction { font-family: var(--mono); font-size: 18px; font-weight: 500; }
.tl-units__fraction-mm { font-family: var(--mono); font-size: 13px; color: var(--subtle); }
/* Wide screens: room for every kind, so they wrap instead of scrolling. */
@media (min-width: 900px) {
  .tl-units__kinds { margin: 0; padding: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .tl-units__kinds .tl-seg { flex-wrap: wrap; margin-right: 0; }
}
