/* Lite mode (ss_lite.js): the effects an old phone cannot draw smoothly, off. Nothing here hides or removes anything
   the person uses, and the offline copy is not touched. */
html.ss-lite .ss-tabbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg-color, #fff); }
html.ss-lite .ss-pop, html.ss-lite .ss-login-overlay { backdrop-filter: none; -webkit-backdrop-filter: none; }
/* pages and panes arrive without sliding, and the pane's frame does not flash; arranging Home does not rock every piece */
html.ss-lite .ss-in-ahead, html.ss-lite .ss-in-back { animation: none; }
html.ss-lite .ss-pane-arrive::after { animation: none; display: none; }
html.ss-lite .ssr-pieces.editing .ssr-piece { animation: none; }
html.ss-lite .ss-fan { animation: none; }
/* shadows: flat cards, and the drop shadows of sheets and widgets off */
html.ss-lite md-elevated-card { --md-elevated-card-container-elevation: 0; --md-elevated-card-hover-container-elevation: 0;
	--md-elevated-card-pressed-container-elevation: 0; --md-elevated-card-focus-container-elevation: 0; }
html.ss-lite .ssr-piece, html.ss-lite .ssr-frame, html.ss-lite .ss-sheet .modal-content, html.ss-lite .ss-me-card,
html.ss-lite .ss-rows, html.ss-lite .ss-compose { box-shadow: none; }
html.ss-lite * { scroll-behavior: auto !important; }
/* the headers that blur what scrolls under them (Frappe's page head, the page's tabs): solid instead, which costs nothing to draw */
html.ss-lite .page-head, html.ss-lite md-tabs.ss-tabs { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
/* plain colours: the app's frosted bar when the page is scrolled (ss_offline.js) is made with color-mix, which the old web view drops,
   so the header and the tabs were see-through; a solid one instead (the page's own top stays clear while it is at the top) */
html.ss-lite.ss-in-app.ss-scrolled .page-head, html.ss-lite.ss-in-app.ss-scrolled md-tabs.ss-tabs { background-color: #fcfcfc !important; }
html.ss-lite:not(.ss-in-app) .page-head, html.ss-lite:not(.ss-in-app) md-tabs.ss-tabs { background-color: #fcfcfc !important; }
html[data-theme="dark"].ss-lite.ss-in-app.ss-scrolled .page-head, html[data-theme="dark"].ss-lite.ss-in-app.ss-scrolled md-tabs.ss-tabs,
html[data-theme="dark"].ss-lite:not(.ss-in-app) .page-head, html[data-theme="dark"].ss-lite:not(.ss-in-app) md-tabs.ss-tabs { background-color: #0f1511 !important; }
/* the head's fade from clear to solid passed through a dark grey on the old web view (it blends from transparent black): no fade, it
   changes at once, so nothing flashes while the page moves under it */
html.ss-lite .page-head, html.ss-lite md-tabs.ss-tabs { transition: none !important; }
/* a header that does not change when the page starts to move: solid from the top, with the same edge, whether the page is scrolled or not */
html.ss-lite.ss-in-app .page-head, html.ss-lite.ss-in-app md-tabs.ss-tabs { background-color: #fcfcfc !important; box-shadow: 0 0.5px 0 rgba(0, 0, 0, .12) !important; }
html[data-theme="dark"].ss-lite.ss-in-app .page-head, html[data-theme="dark"].ss-lite.ss-in-app md-tabs.ss-tabs { background-color: #0f1511 !important; }
html.ss-lite.ss-in-app md-tabs.ss-tabs { --md-primary-tab-container-color: transparent; }
