/* p5-146 Home "Apps" tiles - the Tree Shop board door look (tree-shop-board.css
   .tsb-door / .tsb-head) on tokens only: no new colour, no new type size.
   Phone first: 44 px+ tiles, 16 px gutters, never wider than the glass. */
.ha-section { margin: 0 0 16px; max-width: 100%; overflow: hidden; }
.ha-head { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--c-text-3);
  margin: 12px 2px 10px; border: 0; padding: 0; font-size: 18px; }
.ha-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.ha-tile { --tc: var(--c-blue-2); display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 48px;
  padding: 6px 14px; box-sizing: border-box; background: var(--c-panel); color: var(--c-text);
  border: 2px solid var(--c-border); border-left: 6px solid var(--tc); border-radius: 14px;
  font: 700 18px var(--font-ui); text-decoration: none; overflow-wrap: anywhere; }
.ha-tile .ha-meta { margin-left: auto; font-weight: 600; color: var(--c-text-3); white-space: nowrap; }
.ha-tile.ha-coming { --tc: var(--c-border); color: var(--c-text-3); pointer-events: none; }
/* books-tile-1027: the open-count badge (Books); tokens only */
.ha-tile .ha-badge { margin-left: auto; min-width: 28px; padding: 2px 8px; border-radius: 999px; text-align: center;
  background: var(--c-alert-bg); color: var(--c-alert-text); font-weight: 800; font-variant-numeric: tabular-nums; }
/* release-engineer glue 2026-10-14 (cand-board31): web/home.css has "#home-menu > * { display: none }" and shows only
   children that placeHome() gave a data-slot; #home-apps has none, so the built tiles never drew. One block, on the
   section's id: show it full width, and hide it while a Home folder is open like every slot (home.css .home-gate:target rules). */
#home-menu > #home-apps { display: block; grid-column: 1 / -1; }
.home-gate:target ~ #home-menu > #home-apps { display: none; }

/* FT-07 (fast-lane slice 5, app-tester 2026-10-14 21:28): owner and office
   only. (a) APPS is the first thing in the tile grid - right under the
   hazard / weather band and the notice slot (fuel), above PRODUCTION. The
   tiles keep the order placeHome() and his saved Home order give them;
   only #home-apps (never a tile, never in the saved order) moves, by CSS
   order, so Reset Home order still resets to the seat table. Row 1 is sized
   to the section, the tile rows stay 124 px. (b) On a phone the picture is
   a band no taller than 120 px; a desk (>= 900 px) keeps its 320 px.
   Other seats: no rule here matches, Home is as it was. */
#home-menu[data-seat="owner"]:has(> #home-apps:not([data-sec-off])),
#home-menu[data-seat="office"]:has(> #home-apps:not([data-sec-off])) { grid-template-rows: auto; }
#home-menu[data-seat="owner"] > #home-apps,
#home-menu[data-seat="office"] > #home-apps { order: -3; }
@media (max-width: 899px) {
  #screen-home:has(> #home-menu[data-seat="owner"]) > .mark,
  #screen-home:has(> #home-menu[data-seat="office"]) > .mark {
    height: 120px; max-height: 120px; object-fit: cover; object-position: center 40%;
  }
}
