/* wave 41 lane stylesheet: rail-nav. Kept separate so no lane edits index.css. Tokens live in index.css :root and customer-grid/theme.ts -- declare there, consume here. */ /* ========================================================================== W41-T32 (owner instructions 4 + 29, ruling R2) -- THE RAIL IS A PATH STACK ========================================================================== R2: the rail shows ONE level at a time and swaps as you drill. The database list stopped being a portalled dialog (`.shell-dbfly`) and became a LEVEL inside `.shell-nav`, so it inherits the rail's own width, scroll and fold. Everything here consumes tokens; nothing declares one. No literal font-size anywhere -- `verify_ui.py` scans every sheet under `src/` for one, and this file is in that scan. NAMING: nothing new here is called `.shell-nav-*`. `verify_ui.py`'s `nav_type_drift` forbids a per-row `.shell-nav-` selector from declaring any font property, because that is how the rail's rows drifted out of one type register once already. The path chrome is not a row and does not borrow the row's namespace. -------------------------------------------------------------------------- */ /* The level swap. The same mechanism `.shell-nav.is-rail-loading` uses in `shell/navExtras.css`, aimed at a different child: hide every direct child of the rail that is not the level. A `display: none` row is out of the tab order and out of the accessibility tree, so "one level at a time" is true for a keyboard and a screen reader, not only for the eye. ORDER MATTERS AND IS DELIBERATE: while `/nav` is in flight, the skeleton rule hides `.shell-level` too (it is not `.shell-rail-skeleton`), so a database list can never paint over a loading frame. */ .shell-nav.is-datalevel > *:not(.shell-level) { display: none; } .shell-level { display: flex; flex-direction: column; min-height: 0; } /* --- the path header: `<` `>` and the level's name ----------------------- */ .shell-path { display: flex; align-items: center; gap: 2px; min-width: 0; padding: 2px 0 4px; } /* The quiet-button register, copied from `.shell-newfolder` in `shell/navExtras.css` -- transparent, muted ink, a wash on hover and nothing else. DESIGN 4: new nav joins the existing rhythm, never a new control shape. The four native-chrome resets are stated explicitly because a `