/* APP FOOTER -- a 5px strip that ends the app's frame (js/app-footer.js puts #app-footer on <body>).

   Simon, 15 Nov 2026 07:32: "we need some sort of 5px footer section of the platform just to end it. At the moment,
   things like the gallery just scroll down, and they go under the main window's bar, but it makes it feel incomplete.
   We want everything to sit within a frame."

   ONE STRIP, FIXED TO THE WINDOW'S FOOT: #0f0f12 with a 1px #1f1f25 top line, pointer-events off. Fixed rather than a
   grid row, so it is never a cell of the shell's grid (css/nle/01-grid.css) and no arrangement js/panelarrange.js makes
   can put a panel in it. Everything that scrolls ends ABOVE it, because everything that reaches the foot of the window
   is lifted by --app-foot:
     - the shell's grid (Create, the gallery, the Edit room, the docked node space...): the body's bottom padding, so the
       last row of panels -- and every scroller in them -- stops at the strip's top (it was 1px, 52-app-bottom-edge.css);
     - the rail, and #app while a room takes the window (nle.js .nle-room);
     - the rooms and pages fixed to the window's foot: the node space, Batch, Boards, the crop rooms (the Edit tool),
       the 3D pane, Inspire's whole-window view, Learn, Team, and the workspace overlays (keyframe editor, trim, frame and
       point pickers, the reference library, What's new);
     - the panel and the web build (no shell grid): the spend strip (the document ends on #app's own foot padding).
   Modals and full previews (the settings card, the lightbox, the confirm box) still cover the whole window, strip
   included, as a modal should; their cards sit inside their own padding, above it.
   The 1px line the shell drew at the foot (css/nle/03-shell.css body::after) is the strip's top border now.
   Not in the popped-out viewer window (a picture on black, no chrome). RECORDED REVERSAL: a 1px bottom edge. */
:root { --app-foot: 5px; }
#app-footer {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--app-foot); box-sizing: border-box;
  background: #0f0f12; border-top: 1px solid #1f1f25; z-index: 395; pointer-events: none;
}
html.viewer-win #app-footer { display: none; }
html.viewer-win { --app-foot: 0px; }
html.desktop:not(.viewer-win) body::after { display: none; }

/* the shell's grid, the rail, a room over the window */
html.desktop.nle-on body { padding-bottom: var(--app-foot); }
html #railnav, html.desktop.nle-on #railnav { bottom: var(--app-foot); }
html.desktop.nle-on.nle-room #app { bottom: var(--app-foot); }

/* the rooms and pages pinned to the window's foot */
html #ndmod, html #batchmod, html #sbmod, html #cumod, html #cvmod, html #cropmod,
html #inspmod.max, html #learn-page, html #team-page,
html #kfedit, html #pointpick, html #lumatl, html #trimmod, html #framepick, html #reflib, html #wn-back { bottom: var(--app-foot); }

/* the panel and the web build: the document already ends on #app's 18px foot padding, so only the spend strip pinned
   to the window's foot has to stand on the strip */
html:not(.nle-on) #spendbar { bottom: var(--app-foot); }
