/* tpledit.css — module l1, Templates & bundles (/?p=tpl): the phone landing's kind rows (28-Oct-2026 nav redesign). Linked after app.css (mod_l1.json "css"). */
.tpehome { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 16px; }   /* rows 8 px apart (UX-M1) */
.tpehrow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 14px; border: 1px solid var(--line, #e1e7ea); border-radius: 12px; background: #fff; box-shadow: none; color: #1f2d3a; text-align: left; } .tpehrow > span { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tpehrow small { color: #5b6b78; font-size: 13px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tpehrow i { font-style: normal; font-size: 22px; color: #8aa0ae; }
/* R7a (Dr Shah 28-Oct-2026 desktop review, DESKTOP_CORE_REVIEW_2026-10-28.md R7): Templates & bundles takes the desktop width — >= 1280 px ONLY.
   The list and the editor were held at 980 / 1240 px; on a laptop they now use the shell width (1320 px), on a big monitor 1560 px with the
   editor's boxes three to a row, and the ✎ window over the prescription opens wider. Phones and tablets (< 1280 px): unchanged. */
@media (min-width: 1280px) {
  main.home.tpe, main.home.tpe:has(.tpegrid) { max-width: 1320px; }
  .tpegrid { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
  .tpemed { grid-template-columns: 90px minmax(200px, 2.4fr) minmax(90px, 1fr) 96px minmax(120px, 1.4fr) 96px auto; }
  dialog.tpedlg { width: min(1280px, 96vw); }
}
@media (min-width: 1600px) {
  main.home.tpe, main.home.tpe:has(.tpegrid) { max-width: 1560px; }
  .tpeform { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  dialog.tpedlg { width: min(1480px, 94vw); }
}
