/* Group box size on Today (js/size.js steps, js/ui-size.js slider and fitting). Baz 1 Dec 2026:
   small squares, medium rectangles, big squares, always filling the row left to right.
   The measures come from CSS variables set per step on <html>; tiles.css holds the step 4 defaults. */
@layer views {
  /* hint line with the slider top right */
  .thintrow { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin: 4px 0 10px; }
  .thintrow .thint { margin: 0; flex: 1 1 260px; }
  .sizebox { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
  .sizebox .sza { font-weight: 650; color: var(--ink); line-height: 1; }
  .sizebox .sza.s { font-size: 11px; }
  .sizebox .sza.l { font-size: 20px; }
  .sizebox input[type="range"] { width: 150px; min-height: 32px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; accent-color: var(--blue); cursor: pointer; }

  /* small squares (steps 1-2): picture beside the group name */
  html[data-thead="row"] .gtile header { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; row-gap: 0; align-items: center; text-align: left; }
  html[data-thead="row"] .gtile header .tlogo { grid-row: 1 / 3; }
  html[data-thead="row"] .gtile h2 { margin: 0; align-self: end; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html[data-thead="row"] .gtile header small { align-self: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html[data-thead="row"] .tnames { margin-top: 8px; }

  /* names in two columns when the box is wide enough (ui-size.js sets data-nc on the grid, see namesCols
     in size.js); one column otherwise. Not a container query: that would break the shared rows (subgrid). */
  .tiles:not(.stgrid) .tnames { grid-template-columns: minmax(0, 1fr); }
  .tiles[data-nc="2"] .tnames { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; }
  .tiles .tname { padding: var(--t-npad, 3px 6px); line-height: 1.25; }
  .tnames em.tabsent { max-width: 100%; overflow: hidden; text-overflow: ellipsis; box-sizing: border-box; }
  .tiles[data-nc="2"] .tnames li.mv { grid-template-columns: minmax(0, 1fr) 26px; column-gap: 2px; }
  .tiles[data-nc="2"] .tmove { width: 26px; height: 26px; }
}
