/*
 * z-scale.css — the single source of stacking-level truth for the desktop front end.
 * Lane 2 (layout / layering / motion) of REQ-B378F999E5, 2026-11-17.
 *
 * Why this exists: the platform previously grew ad-hoc z-index numbers
 * (1..60, 1450/1500/1600, 12000/13000, 3200 and even 2147483001 / 2147483647)
 * that "whoever is +1000 on top wins". A custom popup with a huge z-index still
 * loses whenever it falls inside an ancestor stacking context (transform /
 * filter / overflow / position), which is the root cause of "I clicked and
 * nothing happened". The fix is: real modals and dropdowns go to the browser
 * top layer (native <dialog>.showModal() / popover) where z-index is irrelevant;
 * everything that must stay in normal flow uses one of the finite tokens below.
 *
 * RULES
 *  1. Do not write a bare numeric z-index in any component stylesheet. Use a
 *     --z-* token here. (Consumer stylesheets keep a literal fallback so a load
 *     ordering problem can never collapse the layering to `auto`.)
 *  2. Anything that genuinely needs the top layer (modal dialog, popover,
 *     tooltip, dropdown) does NOT use these tokens at all — it uses
 *     <dialog>/popover, which the browser paints above everything.
 *  3. 2147483001 and 2147483647 are forbidden magic numbers (INT32 cliffs).
 *     The startup gate is a --z-modal surface; reminders are --z-toast.
 *
 * Semantic order (each tier sits above the one before it):
 *   base -> raised (hover/lift) -> sticky (pinned bars) -> drawer (side panels)
 *        -> overlay (scrim/attached sheet) -> popover (menu-like non-modal)
 *        -> modal (dialogs, gates) -> toast (transient reminders) -> menu
 *        (context menus / command surfaces, the ceiling for in-flow content).
 */
:root{
  --z-base:0;
  --z-raised:10;
  --z-sticky:100;
  --z-drawer:1000;
  --z-overlay:2000;
  --z-popover:3000;
  --z-modal:4000;
  --z-toast:5000;
  --z-menu:6000;
}
