/* โหงวเฮ้ง (#/face): the persistent iframe host lives outside #app (ui/face-bridge.js). Top = bottom of the top bar
   (--face-top, set from JS); bottom = the viewport (desktop) or the tab bar (mobile). Hidden keeps its real size. */
#face-host { position: fixed; left: 0; right: 0; top: var(--face-top, 58px); bottom: 0; z-index: 10; background: var(--ground);
  visibility: hidden; pointer-events: none; }
#face-host.on { visibility: visible; pointer-events: auto; }
#face-host .face-frame { display: block; width: 100%; height: 100%; border: 0; background: var(--ground); }
.page.view-face { min-height: 0; }
.face-wait { padding: 24px 0; }
@media (max-width: 900px) {
  #face-host { bottom: calc(var(--tabbar-h, 58px) + env(safe-area-inset-bottom)); }
}

/* Top bar with 8 menu items: still one row at 1000–1280px (tighter gaps / item padding; the name shrinks with an ellipsis). */
@media (min-width: 901px) {
  .topbar .who { min-width: 0; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (min-width: 901px) and (max-width: 1280px) {
  .topbar { gap: 10px 14px; padding-left: 16px; padding-right: 16px; }
  .nav { gap: 2px; }
  .nav a { padding: 10px 9px; }
  .topbar .who { max-width: 160px; }
}
/* Bottom tab bar with 8 tabs at 360–375px */
@media (max-width: 900px) { .tabbar a { padding: 4px 1px; } }
