/* The floating Liquid Glass tab bar of a server's page (views/server-glass-tabs.js, vendor/liquid-glass-tabbar.*). The bar
   is a child of <body>, built once and shown only on the pages of a server. */
.lgtb-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.lgtb.lgtb-away { display: none !important; }
:root { --lgtb-bg: var(--bg); --lgtb-accent: var(--accent); --lgtb-font: var(--font); --lgtb-bottom: 34px; } /* a good way off the bottom edge */
/* Room under the page so nothing hides behind the bar, and the unsaved-changes bar sits above it (never over it). */
body.has-lgtb .page { padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
body.has-lgtb .unsaved-bar { bottom: calc(118px + env(safe-area-inset-bottom, 0px)); }
/* Narrow screens have the portal's own tab bar at the bottom (72px): the glass bar floats above it. */
@media (max-width: 760px) {
  :root { --lgtb-bottom: 100px; }
  body.has-lgtb .page { padding-bottom: calc(205px + env(safe-area-inset-bottom, 0px)); }
  body.has-lgtb:has(.shell:not(.single-page)) .unsaved-bar { bottom: calc(186px + env(safe-area-inset-bottom, 0px)); }
}
/* The old tab bar of the page stays in the page for browsers where the glass bar could not start. */
.server-tabs.server-tabs-off { display: none; }
/* No shadow behind the bar. (In Safari the library also draws a faint shadow into the picture of the lens; that one is not CSS.) */
.lgtb .lgtb-shadow { box-shadow: none; }
/* The copy of the page that the bar draws its glass from must hold nothing that is drawn on a layer of its own: the frosted veil
   of the server page and the frosted cards (backdrop-filter), and everything that moves, would escape the glass filter and
   show as broken pieces while the lens moves. In the copy they are plain. */
.lgtb-mirror, .lgtb-mirror * {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  animation: none !important;
  transition: none !important;
}
/* The library puts its filters at the top of <body> as an <svg style="position:absolute…">; the portal's CSP drops that inline
   style, and a plain <svg> in the flow of the body makes a line of its own (a strip of the background above the page). */
#lgtb-filters, body > svg { position: absolute; width: 0; height: 0; overflow: hidden; }
