/* v660: white-dot wave background + no-scroll new chat + mobile fit */
html,body{background:#0b0b10!important;overscroll-behavior:none;-webkit-text-size-adjust:100%}
html,body{position:fixed;inset:0;width:100%;overflow:hidden}
html body #win{background:transparent!important;position:relative;z-index:1;width:100%;max-width:100%;height:var(--app-h,100dvh);padding-left:env(safe-area-inset-left,0);padding-right:env(safe-area-inset-right,0)}
#dots660{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;display:block}
/* new chat page: nothing scrolls (no drag, no bounce, no wheel) */
body.n660 #log{overflow:hidden!important;overscroll-behavior:none;touch-action:none}
#log{overscroll-behavior:contain}
/* mobile fit: nothing wider than the screen, no sideways scroll, no iOS zoom on focus */
*{box-sizing:border-box}
img,video,canvas,svg,pre,table{max-width:100%}
#log{overflow-x:hidden;word-break:break-word}
@media(max-width:700px){
 #ta{font-size:16px!important}
 #log{padding:16px 14px 8px!important}
 html body #in{width:calc(100% - 16px)!important;margin-left:auto!important;margin-right:auto!important;padding-bottom:max(10px,env(safe-area-inset-bottom,0))!important}
 #hint{display:none!important}
}
@media(prefers-reduced-motion:reduce){#dots660{opacity:.6}}
