/* pk-calm.css — «السكون البصري» (owner P0 2026-12-01). ONE central file, injected into EVERY html answer by pk_fresh.py (site pages, Mini App pages, bot web_app pages, pages inside iframes). Kill switch: `touch pk_calm.off`.
   What it does: every decorative / automatic animation stops (infinite loops, shimmer, pulse, glow, float, shake, marquee, background-position, card/badge/icon motion); decorative transitions are cut to 120 ms.
   Whitelist (named, below, also documented in docs/CALM_MODE_20261201.md; the audit tools/layout_audit.py parses the "WL:" comments):
   WL-FUNC (keep their own animation until their job ends — no time limit): spinners, progress bars, countdowns, aria-busy, PKDiag indicator, [data-pk-anim].
   WL-UI   (keep their own short transition): dialogs, sheets, drawers, toasts/alerts/status, button press feedback.
   Never hides content: a stopped animation jumps to its END pose (reveal animations end visible); transitionend / animationend still fire. */
/* WL-FUNC: .pk-spin .ldSpin .pkpl-spin .au-spin .spinner .pk-spinner [role=progressbar] progress [aria-busy=true] [data-pk-anim] [data-countdown] .countdown .pk-countdown #shellProg [class*=pkdiag] [id*=pkdiag] [data-pk-diag] */
/* WL-UI: [role=dialog] [aria-modal=true] [role=alert] [role=status] .pkx-toast #pkx-toast .pkx-sheet .pkx-sheet-ov .pkps .pkps-sh .pkps-bd .pkd .pkd-bd .gc-sheet #dg-sheet #dg-ov .pkx-drawer .pk-sheet button:active a:active [role=button]:active */
@media all{
  *:not(.pk-spin):not(.ldSpin):not(.pkpl-spin):not(.au-spin):not(.spinner):not(.pk-spinner):not([role=progressbar]):not(progress):not([aria-busy=true]):not([data-pk-anim]):not([data-countdown]):not(.countdown):not(.pk-countdown):not(#shellProg):not([class*=pkdiag]):not([id*=pkdiag]):not([data-pk-diag]):not([role=dialog]):not([aria-modal=true]):not([role=alert]):not([role=status]):not(.pkx-toast):not(#pkx-toast):not(.pkx-sheet):not(.pkx-sheet-ov):not(.pkps):not(.pkps-sh):not(.pkps-bd):not(.pkd):not(.pkd-bd):not(.gc-sheet):not(#dg-sheet):not(#dg-ov):not(.pkx-drawer):not(.pk-sheet):not(button:active):not(a:active):not([role=button]:active),
  *:not(.pk-spin):not(.ldSpin):not(.pkpl-spin):not(.au-spin):not(.spinner):not(.pk-spinner):not([role=progressbar]):not(progress):not([aria-busy=true]):not([data-pk-anim]):not([data-countdown]):not(.countdown):not(.pk-countdown):not(#shellProg):not([class*=pkdiag]):not([id*=pkdiag]):not([data-pk-diag]):not([role=dialog]):not([aria-modal=true]):not([role=alert]):not([role=status]):not(.pkx-toast):not(#pkx-toast):not(.pkx-sheet):not(.pkx-sheet-ov):not(.pkps):not(.pkps-sh):not(.pkps-bd):not(.pkd):not(.pkd-bd):not(.gc-sheet):not(#dg-sheet):not(#dg-ov):not(.pkx-drawer):not(.pk-sheet):not(button:active):not(a:active):not([role=button]:active)::before,*:not(.pk-spin):not(.ldSpin):not(.pkpl-spin):not(.au-spin):not(.spinner):not(.pk-spinner):not([role=progressbar]):not(progress):not([aria-busy=true]):not([data-pk-anim]):not([data-countdown]):not(.countdown):not(.pk-countdown):not(#shellProg):not([class*=pkdiag]):not([id*=pkdiag]):not([data-pk-diag]):not([role=dialog]):not([aria-modal=true]):not([role=alert]):not([role=status]):not(.pkx-toast):not(#pkx-toast):not(.pkx-sheet):not(.pkx-sheet-ov):not(.pkps):not(.pkps-sh):not(.pkps-bd):not(.pkd):not(.pkd-bd):not(.gc-sheet):not(#dg-sheet):not(#dg-ov):not(.pkx-drawer):not(.pk-sheet):not(button:active):not(a:active):not([role=button]:active)::after{
    animation-iteration-count:1!important;animation-duration:.001s!important;animation-delay:0s!important;
    transition-duration:.12s!important;transition-delay:0s!important;
    scroll-behavior:auto!important}
}
/* every whitelisted functional animation stops with the tab (no CPU while hidden) */
html.pk-tab-hidden *,html.pk-tab-hidden *::before,html.pk-tab-hidden *::after{animation-play-state:paused!important}
/* a functional animation the page marks as finished: html-less opt-out hook (JS / server sets [data-pk-done]) */
[data-pk-done],[data-pk-done] *,[data-pk-done]::before,[data-pk-done]::after{animation:none!important}
