/* GENERATED by scripts/emit-pre-upgrade-css.mjs — do not edit.
 *
 * Pre-upgrade size floors for components that occupy persistent layout.
 * Gated on :not(.hydrated) — Stencil's per-element flag — so every rule
 * stops matching the instant the component's own styles take over. The
 * expressions are the components' own public properties and defaults, read
 * from (or pinned to) their source at build time, so they cannot drift.
 *
 * Opt-in: import '@bmxc/pami-elements/css/pre-upgrade.css' beside the token sheet.
 */

pami-navigation-rail:not(.hydrated) {
  display: block;
  min-inline-size: var(--pami-navigation-rail-container-width, calc(var(--md-sys-spacing-row-height) + var(--pami-navigation-rail-padding-inline,var(--md-sys-spacing-inset-md))*2));
  min-block-size: 100%;
}

/* pami-toolbar: the height token is declared on the bare :host but CONSUMED in the variant blocks. Both variants share the height; they differ in WIDTH, so the display split below is what varies. An author-written variant attribute is in the light DOM pre-upgrade; the docked default is not, so bare-tag means docked. */
pami-toolbar:not(.hydrated):not([variant='floating']) {
  display: block;
  min-block-size: var(--pami-toolbar-container-height, max(48px, calc(64px + var(--md-sys-density-scale, 0) * 4px)));
}

/* pami-toolbar: the floating variant is an inline pill — same height floor, but inline-block so an un-upgraded pill does not stretch across its row */
pami-toolbar[variant='floating']:not(.hydrated) {
  display: inline-block;
  min-block-size: var(--pami-toolbar-container-height, max(48px, calc(64px + var(--md-sys-density-scale, 0) * 4px)));
}

/* pami-app-bar: host height is the sum of inner rows; --_row-height lives on .pami-app-bar__row */
pami-app-bar:not(.hydrated) {
  display: block;
  min-block-size: var(--pami-app-bar-row-height, max(48px, calc(64px + var(--md-sys-density-scale, 0) * 4px)));
}

/* pami-navigation-bar: height lives on the inner .pami-navigation-bar__container; the token is public on :host */
pami-navigation-bar:not(.hydrated) {
  display: block;
  min-block-size: max(var(--pami-component-button-height),calc(var(--pami-navigation-bar-container-height,calc(var(--md-sys-spacing-row-height) + var(--md-sys-spacing-gap-sm))) + var(--md-sys-density-scale,0)*var(--md-sys-spacing-gap-xs)));
}

/* pami-fab: pami-fab publishes no container-size property; expression mirrors :host(.pami-fab--standard) */
pami-fab:not(.hydrated) {
  display: inline-block;
  min-inline-size: max(40px, calc(56px + var(--md-sys-density-scale, 0) * 4px));
  min-block-size: max(40px, calc(56px + var(--md-sys-density-scale, 0) * 4px));
}
