/* Dotykové plochy: na mobilu a tabletu má každý ovládací prvek klikací plochu aspoň 44×44 px (test: node qa/touch_targets.js, STRICT=1 měří i vlastní rámeček).
   Vizuálně zůstává malé; plochu zvětšuje padding, ::before nebo skutečný rozměr prvku. V hustých mřížkách (heatmapa, timeline) se plochy nepřekrývají:
   buňka má vlastní sloupec, pruh timeline zůstává uvnitř řádku vysokého 44 px. */
@media (max-width: 768px), (pointer: coarse) and (max-width: 1100px) {
  /* výběr řádků (Čas, Tabulka): sám <input> má 44×44, nakreslený čtvereček 22 px uprostřed */
  .chk { width: 44px; height: 44px; }
  .chk input { -webkit-appearance: none; appearance: none; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; background: transparent; position: relative; cursor: pointer; border-radius: 8px; }
  .chk input::before { content: ""; position: absolute; inset: 11px; border: 2px solid var(--border-strong); border-radius: 6px; background: var(--surface); box-sizing: border-box; }
  .chk input:checked::before, .chk input:indeterminate::before { background: var(--primary); border-color: var(--primary); }
  .chk input:checked::after { content: ""; position: absolute; left: 17px; top: 12px; width: 6px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
  .chk input:indeterminate::after { content: ""; position: absolute; left: 15px; top: 20px; width: 14px; height: 3px; background: #fff; border-radius: 2px; }
  .chk input:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }

  /* heatmapa Týmu: sloupec týdne aspoň 52 px (buňka 44+ px, mezera 4 px), tabulka se posouvá vodorovně uvnitř svého boxu */
  .heat { width: max-content; min-width: 100%; }
  .heat td, .heat thead th:not(:first-child) { min-width: 52px; }
  .heat-c { min-width: 48px; }

  /* timeline: řádek 52 px, pruh 44 px vysoký a nejméně 44 px široký (skutečný rámeček, ne jen klikací plocha); milník má rozšířenou plochu */
  .tl-row { height: 52px; }
  .tl-lh { height: 44px; }
  .tl-bar { top: 4px; height: 44px; min-width: 44px; }
  .tl-bar.ms { min-width: 44px; }
  .tl-track.unsched::after { line-height: 52px; }

  /* odkazy na projekty a lidi uvnitř řádků (Čas, Plán, Členové) */
  a.plink, .te-main a, .tiny a, .small a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }

  /* kanban: název karty otevírá úkol, takže má plochu 44 px */
  .k-name { display: flex; align-items: center; min-height: 44px; }

  /* odkazy v tabulkách a upozorněních, hodnoty „Upravit“ */
  .tbl td a, .kv dd a { display: inline-flex; align-items: center; min-height: 44px; }
  .banner a { min-width: 44px; justify-content: center; }
  .tm-title { min-height: 44px; }

  /* grafy: sloupce a pruhy jsou jen znázornění (hodnoty jsou vypsané textem), na dotyku nejsou ovládací prvky */
  .hb-seg, .ch-svg rect { pointer-events: none; }
}
