/* Scanner look (2026-10-20): canvas HUD over a photo/frame, and the sheet shown while a video is read */
.sfx{ position:relative; width:100%; border-radius:20px; overflow:hidden; background:#0a0c10; }
.sfx canvas{ position:absolute; inset:0; width:100%; height:100%; display:block; }
#attachPreview.analysing{ display:block; }
.vscan-in{ display:flex; align-items:center; gap:14px; }
.vscan-stage{ flex:0 0 auto; height:124px; max-width:58%; border-radius:14px; overflow:hidden; position:relative; box-shadow:0 0 0 1px rgba(255,255,255,.22); }
.vscan-stage .sfx{ position:absolute; inset:0; height:100%; border-radius:0; }
.vscan-side{ display:flex; flex-direction:column; align-items:flex-start; gap:4px; min-width:0; }
.vscan-title{ font:800 14px var(--font-ui, system-ui); color:var(--text); }
.vscan-status{ font:500 12px/1.4 var(--font-ui, system-ui); color:var(--text-dim); }
.vscan-skip{ border:0; background:none; padding:6px 0 0; color:var(--text-dim); font:700 12px var(--font-ui, system-ui); text-decoration:underline; text-underline-offset:3px; cursor:pointer; }

/* 2026-10-26: the analysis fades out and the clip's cover melts in, instead of a hard screen change */
#attachPreview.analysing .vscan-in{ transition:opacity .3s ease; }
#attachPreview.vscan-out .vscan-in{ opacity:0; }
#attachPreview.ap-fadein{ animation:apFade .55s ease both; }
@keyframes apFade{ from{ opacity:0; transform:translateY(6px) scale(.985); } to{ opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce){ #attachPreview.ap-fadein{ animation:none; } #attachPreview.analysing .vscan-in{ transition:none; } }

/* a long wait is explained, not silent */
.typing-slow{ margin-top:8px; max-width:min(86%, 420px); font:500 12px/1.45 var(--font-ui, system-ui); color:var(--text-dim); animation:apFade .5s ease both; }
