/* Keep the caret and focus; only pointer-origin focus decoration is suppressed. */
body.tiktok-view-active :is(#tiktok-view,#tiktok-desktop-shell,#tiktok-mobile-shell) :is(a,button,input,select) {
  -webkit-tap-highlight-color:transparent;
}
body.tiktok-view-active[data-tiktok-input='pointer'] :is(#tiktok-view,#tiktok-desktop-shell,#tiktok-mobile-shell) :is(a,button,input,select):focus {
  outline:none!important;
  box-shadow:none!important;
}
body.tiktok-view-active[data-tiktok-input='keyboard'] :is(#tiktok-view,#tiktok-desktop-shell,#tiktok-mobile-shell) :is(a,button,input,select):focus,
body.tiktok-view-active:not([data-tiktok-input='pointer']) :is(#tiktok-view,#tiktok-desktop-shell,#tiktok-mobile-shell) :is(a,button,input,select):focus-visible {
  outline:2px solid var(--yellow,#ffd000)!important;
  outline-offset:3px;
  box-shadow:none!important;
}

/* Touch browsers may retain :hover after a tap. Restore only the known resting
   decoration; selected/current colors, checked states and real hover are intact. */
@media (hover:none) {
  body.tiktok-view-active #tiktok-view .tiktok-feed-launch:hover {background:#0002}
  body.tiktok-view-active #tiktok-view .tiktok-feed-control:hover {background:#111d}
  body.tiktok-view-active #tiktok-view .tiktok-feed-connect:hover {background:var(--yellow,#ffd000)}
  body.tiktok-view-active #tiktok-view .tiktok-explore-chip:not([aria-pressed='true']):hover {background:#202024}
  body.tiktok-view-active #tiktok-view .tiktok-explore-back:hover {background:#202024e8}
  body.tiktok-view-active #tiktok-view .tiktok-explore-card:hover .tiktok-explore-poster {transform:none}
  body.tiktok-view-active #tiktok-desktop-shell .tiktok-desktop-toggle:hover,
  body.tiktok-view-active #tiktok-desktop-shell .tiktok-desktop-nav > :is(a,button):not([data-tiktok-drawer='search']):hover,
  body.tiktok-view-active #tiktok-desktop-shell .tiktok-desktop-return:hover,
  body.tiktok-view-active #tiktok-desktop-shell .tiktok-desktop-following a:hover,
  body.tiktok-view-active #tiktok-desktop-shell .tiktok-desktop-drawer > :is(a,button):hover,
  body.tiktok-view-active #tiktok-desktop-shell .tiktok-desktop-search-row:hover {background:none}
}
@media (hover:none) and (min-width:761px) {
  body.tiktok-view-active #tiktok-view .tiktok-feed-rail-action:hover svg,
  body.tiktok-view-active #tiktok-view .tiktok-feed-navigation button:hover:not(:disabled) {background:#202022}
  body.tiktok-view-active[data-watch-theme='light'] #tiktok-view .tiktok-feed-rail-action:hover svg,
  body.tiktok-view-active[data-watch-theme='light'] #tiktok-view .tiktok-feed-navigation button:hover:not(:disabled),
  body.tiktok-view-active[data-watch-theme='light'] #tiktok-view .tiktok-explore-chip:not([aria-pressed='true']):hover {background:var(--tt-hover,#efefef)}
}
@media (hover:none) and (max-width:760px) {
  body.tiktok-view-active #tiktok-view .tiktok-feed-rail-action:hover svg {background:#202022b8}
  body.tiktok-view-active #tiktok-view .tiktok-feed-navigation button:hover:not(:disabled) {background:#202022d9}
}
