/* Strip workstream: stock faces (face.js). The rail's place colours are
   drawn by app.js and shell.css with placeColor.mjs. */

/* A face with no photo: the stock picture fills the caller's box, round. */
.face { flex: none; }
.face-stock {
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; border-radius: 50%; padding: 0;
  background: transparent !important;
}
.face-stock > svg { width: 100%; height: 100%; display: block; stroke: none; }
.face-initials {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; font-weight: 800;
}
/* A group's face (face.js groupFaceEl): the disc fills the caller's box and
   each person is a circle placed in percentages of it, wearing a ring of the
   disc's colour (the ring's padding is a percentage of the box's width). */
.face-group {
  display: inline-block; position: relative; padding: 0; overflow: visible;
  border-radius: 50%; background: transparent !important;
}
.face-group-ring {
  position: absolute; display: block; box-sizing: border-box; border-radius: 50%;
}
.face-group-in {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  overflow: hidden; object-fit: cover;
}

/* The Apps grid: four columns that never grow past the screen. `1fr` alone
   is minmax(auto, 1fr), so a long bold name ("ShmangNav", "Passwords") set
   the column's floor and pushed the fourth column off a 320 screen. Names
   that do not fit end in an ellipsis, as on the phone. */
.app-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.app-card { min-width: 0; }
.app-card .card-name {
  max-width: 100%; white-space: normal; overflow-wrap: break-word;
}
.app-card .card-meta { max-width: 100%; overflow-wrap: anywhere; }
/* A tile that opens on the phone only: its icon and name are dimmed, but its
   "Phone, tap for why" stays readable (dimming the whole card took it to 2:1). */
.app-card.soon { opacity: 1; }
.app-card.soon > .card-icon, .app-card.soon > .card-name { opacity: 0.6; }
.app-card.soon > .card-meta { color: var(--ink-muted); }
/* Three per row on the narrowest phones (320 wide): at four, nearly every
   name ended in an ellipsis. AppsPage.tsx does the same under 360. */
@media (max-width: 359px) {
  .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* The Apps head clears the floating rail, as every other page's first row
   does (health, ideas, flights: 46 to 52px under the rail). Before, the
   "Apps" title sat under the menu and favourite buttons. */
.apps-head { padding-top: calc(52px + env(safe-area-inset-top)); }

/* ---- few places stand still (14 Oct 2026, stripSemi.mjs) ----
   The user: "when there is 5 or less apps … they become semi stationary …
   instead of the buttons themselves moving … the cursor border around the
   app does … make all the apps … same size". With SEMI_MAX places or fewer
   (app.js sets .semi, and takes it off a rail that does not fit) every place
   is one size — the lit one is not widened by its name — and the light is one
   face over them, .rail-ring, that app.js placeRing sets over the lit place
   and slides there from the place it stood on before: the place's colour
   round its edge, through its face and on its lip, as the phone's strip
   draws its light. */
.float-nav.semi .float-fav.on {
  width: 30px; padding: 0; gap: 0;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 3px 0 var(--border), 0 2px 6px rgba(0, 0, 0, 0.08);
}
.float-nav.semi .float-fav.on .fav-name { display: none; }
.float-nav.semi .float-fav.on[data-place] svg { stroke: var(--place, currentColor); }
@media (max-width: 380px) { .float-nav.semi .float-fav.on { width: 28px; } }
.float-nav > .rail-ring {
  position: absolute; left: 0; top: 0; z-index: 1;
  width: 30px; height: 30px; box-sizing: border-box; border-radius: 10px;
  pointer-events: none;
  border: 1.5px solid var(--ring-place, var(--ink));
  background: color-mix(in srgb, var(--ring-place, var(--ink)) 20%, transparent);
  box-shadow: 0 3px 0 var(--ring-place, var(--ink));
  transition: transform 260ms cubic-bezier(.2, .8, .2, 1), border-color 260ms ease, background-color 260ms ease, box-shadow 260ms ease;
}
.float-nav > .rail-ring[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .float-nav > .rail-ring { transition: none; } }
