@layer legacy {
/*
 * Final cascade guard for the default performance mode.
 *
 * Feature styles and Liquid Glass load after the original performance rules.
 * Some of them use !important backdrop filters, which silently recreated live
 * compositor layers on every card and fixed shell surface. Keep this sheet
 * last in index.html so performance mode stays authoritative without changing
 * the full Liquid Glass presentation when the mode is disabled.
 */
#app .app-shell.performance-mode[data-active-view] *,
#app .app-shell.performance-mode[data-active-view] *::before,
#app .app-shell.performance-mode[data-active-view] *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Long feature collections should skip off-screen paint and layout work. */
#app .app-shell.performance-mode .sr2-card,
#app .app-shell.performance-mode .a2-card,
#app .app-shell.performance-mode .planner-task-card,
#app .app-shell.performance-mode .message-announcement-card,
#app .app-shell.performance-mode .request-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 220px;
}
}
