/* Touch / mouse must not leave anything looking "selected": no tap flash, no long-press text
   selection on controls, no ring on the dialog that holds focus, and focus rings only while
   the keyboard is driving (terminal.js toggles .keyboard-navigation). Loaded last on purpose. */
*{-webkit-tap-highlight-color:transparent}
button,[role=button],[data-mobile-action],[data-mobile-screen],[data-mobile-pair],.x-dotted,label{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
dialog:focus,dialog:focus-visible{outline:none}
html:not(.keyboard-navigation) :is(button,a,select,[role=button],[tabindex]):focus-visible{outline:none!important;box-shadow:none}
html:not(.keyboard-navigation) .c-banner>button:focus-visible{opacity:inherit;background:inherit}
/* 一比一还原：点按不给任何视觉反馈（不下沉、不变亮、不变底色），也不许双击放大。
   :hover 在手机上点完会粘住，一并清掉。 */
html,body{-webkit-text-size-adjust:100%;text-size-adjust:100%}
/* pan-x pan-y 只放行滚动：没有 pinch-zoom，也就没有双击放大（manipulation 仍允许双指缩放） */
*{touch-action:pan-x pan-y!important}
.mobile-app :is(button,a,[role=button],[data-mobile-action]):is(:hover,:active){filter:none!important;transform:none!important}
.mobile-app button{transition:none}
.mobile-app .m-position-buttons button:hover,.mobile-app .m-size-presets button:hover{background:var(--m-fill)}

.mobile-app button.m-book-row:hover:before{opacity:.09}
/* 百分比滑块要能横向拖，只放行纵向滚动 */
.mobile-app .x-allocation>input,#trade-dialog.p-close-sheet .p-close-slider>input,.mobile-app input[type=range]{touch-action:pan-y!important}
