/* v1.40: shared system-icon focus presentation.
   Pointer/touch focus has no outer ring. Keyboard focus remains visible inside
   the existing plate. Only outline properties change: no glyph, plate, border,
   selected/pressed state, click area, focus ownership or controller changes.
   The common button focus rule is included so action controls cannot fall back
   to the old global blue ring. Canvas/editing selection outlines are excluded.
   Separate app, voice iframe and review/static documents load the same bytes. */
body button:not(.worlds-instance):not(.placed-sticker):not(.slogan-layer):focus,
body :is(
 .app-header-control,button[data-nav-icon],.navigation-bar button,
 #study-listen,.study-voice-action,
 .sw-icon,.sw-sound,.sw-sentence-sound,.sw-letter-guide,
 .sw-word-nav button,.sw-small-tools .sw-secondary,
 .theme-room-lock,.scene-lock-button,.worlds-icon-control,.worlds-remove,
 .worlds-tray-close,#worlds-drawer-handle,.learning-world-tools button,
 .worlds-button,.worlds-category,.worlds-tray-sticker,
 .profile-header-control,.player-settings-close,
 #avatar-dialog .avatar-dialog-header>button,
 .profile-avatar,.profile-see-all,.profile-visit-buddy,
 .buddy-settings,#navigation-buddy-back,#buddy-name,#buddy-feed,#buddy-worlds,.buddy-hero,
 #daily-time-dialog .settings-action,#theme-unlock-preview-dialog .theme-dialog-actions>button,
 .buddy-dialog button,#daily-practice-dialog button,.settings-footer-actions button,
 .story-icon,.story-main-button,.story-footer-link,.story-modes button,.story-mode,
 #voices .favorite,#voices .play,#voices .use,#stop,#reload,#back,#samples button,
 #phone .control,#phone .footer button
):focus,
/* Match the ID specificity of the existing game-glass !important rule. */
body #screen-game :is(.app-header-control,#btn-speak,#learning-next,#btn-resume):focus{
 outline:none!important;
 outline-offset:0!important;
}
body button:not(.worlds-instance):not(.placed-sticker):not(.slogan-layer):focus-visible,
body :is(
 .app-header-control,button[data-nav-icon],.navigation-bar button,
 #study-listen,.study-voice-action,
 .sw-icon,.sw-sound,.sw-sentence-sound,.sw-letter-guide,
 .sw-word-nav button,.sw-small-tools .sw-secondary,
 .theme-room-lock,.scene-lock-button,.worlds-icon-control,.worlds-remove,
 .worlds-tray-close,#worlds-drawer-handle,.learning-world-tools button,
 .worlds-button,.worlds-category,.worlds-tray-sticker,
 .profile-header-control,.player-settings-close,
 #avatar-dialog .avatar-dialog-header>button,
 .profile-avatar,.profile-see-all,.profile-visit-buddy,
 .buddy-settings,#navigation-buddy-back,#buddy-name,#buddy-feed,#buddy-worlds,.buddy-hero,
 #daily-time-dialog .settings-action,#theme-unlock-preview-dialog .theme-dialog-actions>button,
 .buddy-dialog button,#daily-practice-dialog button,.settings-footer-actions button,
 .story-icon,.story-main-button,.story-footer-link,.story-modes button,.story-mode,
 #voices .favorite,#voices .play,#voices .use,#stop,#reload,#back,#samples button,
 #phone .control,#phone .footer button
):focus-visible,
body #screen-game :is(.app-header-control,#btn-speak,#learning-next,#btn-resume):focus-visible{
 outline:var(--sw-keyboard-outline,2px dashed transparent)!important;
 outline-offset:var(--sw-keyboard-outline-offset,-7px)!important;
}
