/* App-like feel: no tap flash, no rubber-band, press feedback, safe areas, standalone tweaks */
html{-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%;overscroll-behavior-y:none}
body{overscroll-behavior-y:none;-webkit-touch-callout:none}
input,textarea,select,[contenteditable],code,pre,td,.sel{-webkit-touch-callout:default}
.side a,.btn,button,.px-tabs button,.seg button,.seg-period button{-webkit-user-select:none;user-select:none;touch-action:manipulation}
@media (hover:none) and (pointer:fine),(hover:none){
  .btn:active,.px-tabs button:active,.seg button:active,.seg-period button:active{transform:scale(.96);transition:transform .08s}
  .side a:active{transform:scale(.93);transition:transform .08s}
  .box:active,.kx:active{transform:scale(.99);transition:transform .08s}
}
#view{animation:hxIn .18s ease both}
@keyframes hxIn{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){#view{animation:none}.btn:active,.side a:active{transform:none}}
@media (max-width:860px){
  html,body{max-width:100%;overflow-x:clip}
  .app,#view,.main{max-width:100vw}
}
@media (display-mode:standalone){
  .hx-install{display:none!important}
}
.hx-install{position:fixed;left:12px;right:68px;bottom:calc(84px + env(safe-area-inset-bottom));z-index:14;display:none;align-items:center;gap:12px;padding:12px 14px;border-radius:16px;background:#0d1735;color:#e6ecff;box-shadow:0 14px 34px rgba(13,23,53,.35);font:600 14px/1.3 inherit}
.hx-install.show{display:flex}
.hx-install img{width:38px;height:38px;border-radius:10px}
.hx-install span{flex:1}.hx-install small{display:block;font-weight:500;color:#9fb0dd}
.hx-install button{border:0;border-radius:10px;padding:9px 14px;font:700 13px inherit;cursor:pointer}
.hx-install .go{background:#2563eb;color:#fff}.hx-install .no{background:transparent;color:#9fb0dd;padding:9px 6px}
@media (min-width:861px){.hx-install{left:auto;right:76px;bottom:20px;width:340px}}
