/* zChat sign-in scene: an AI answer with a cited source, a handoff and a human reply (18 s loop). Layout = the 720 x 640
   stage of the shared Signature sign-in (signin.css scales it with --sig-s). Only transform / opacity animations.
   Base styles = the final frame (used as the still frame for reduced motion). Illustrative text only. */
.zsi-root .zcs-stage { position: absolute; inset: 0; font-family: "Inter", system-ui, sans-serif; color: #e6edff; }
.zsi-root .zcs-kicker { position: absolute; left: 0; right: 0; top: 18px; text-align: center; font: 600 11px/1 "Bank Gothic", "Inter", sans-serif; letter-spacing: .32em; color: rgba(200, 215, 255, .7); }
.zsi-root .zcs-grid { position: absolute; left: 20px; right: 20px; top: 60px; bottom: 40px; border-radius: 28px; opacity: .5;
  background-image: linear-gradient(rgba(120, 150, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 150, 255, .07) 1px, transparent 1px); background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent); }
.zsi-root .zcs-win { position: absolute; left: 110px; top: 78px; width: 500px; height: 500px; border-radius: 24px; overflow: hidden;
  background: linear-gradient(180deg, rgba(22, 36, 80, .92), rgba(10, 18, 44, .96)); border: 1px solid rgba(150, 180, 255, .28);
  box-shadow: 0 40px 80px rgba(2, 8, 30, .6), inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 60px rgba(76, 130, 255, .18); animation: zcs-float 8s ease-in-out infinite alternate; }
@keyframes zcs-float { from { transform: translateY(-5px); } to { transform: translateY(6px); } }
.zsi-root .zcs-top { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid rgba(150, 180, 255, .16); }
.zsi-root .zcs-av { width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, #5b8cff, #2b5bd0); display: grid; place-items: center; font: 700 14px/1 "Inter", sans-serif; color: #fff; }
.zsi-root .zcs-top b { display: block; font-size: 14px; color: #fff; } .zsi-root .zcs-top small { font-size: 11px; color: rgba(190, 210, 255, .7); }
.zsi-root .zcs-live { margin-left: auto; width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); }
.zsi-root .zcs-body { position: relative; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.zsi-root .zcs-msg { max-width: 78%; padding: 10px 14px; border-radius: 16px; font-size: 13px; line-height: 1.45; opacity: 1; }
.zsi-root .zcs-in { align-self: flex-start; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .08); border-bottom-left-radius: 5px; }
.zsi-root .zcs-out { align-self: flex-end; background: linear-gradient(135deg, #4c82ff, #2b5bd0); color: #fff; border-bottom-right-radius: 5px; }
.zsi-root .zcs-ai { align-self: flex-start; background: rgba(76, 130, 255, .16); border: 1px solid rgba(122, 167, 255, .32); border-bottom-left-radius: 5px; }
.zsi-root .zcs-tag { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 4px; font: 700 9.5px/1 "Inter", sans-serif; letter-spacing: .14em; color: #9cc0ff; }
.zsi-root .zcs-src { display: inline-flex; margin-top: 8px; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; color: #cfe0ff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(150, 180, 255, .25); }
.zsi-root .zcs-sys { align-self: center; font-size: 11px; color: #fbbf24; padding: 5px 12px; border-radius: 999px; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .3); }
.zsi-root .zcs-agent { align-self: flex-start; background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .32); border-bottom-left-radius: 5px; }
.zsi-root .zcs-agent .zcs-tag { color: #6ee7b7; }
.zsi-root .zcs-fa { direction: rtl; font-family: "YekanBakh", "Inter", sans-serif; }
.zsi-root .zcs-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .06); opacity: 0; }
.zsi-root .zcs-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9cc0ff; animation: zcs-dot 1s ease-in-out infinite; }
.zsi-root .zcs-typing i:nth-child(2) { animation-delay: .15s; } .zsi-root .zcs-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes zcs-dot { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-3px); opacity: 1; } }
.zsi-root .zcs-badge { position: absolute; padding: 9px 14px; border-radius: 14px; font: 600 11.5px/1.2 "Inter", sans-serif; background: rgba(8, 16, 40, .9);
  border: 1px solid rgba(150, 180, 255, .3); box-shadow: 0 18px 40px rgba(0, 4, 20, .5); color: #dbe6ff; }
.zsi-root .zcs-badge small { display: block; font-weight: 500; font-size: 10px; color: rgba(190, 210, 255, .65); margin-top: 3px; }
.zsi-root .zcs-b1 { left: 34px; top: 210px; } .zsi-root .zcs-b2 { right: 26px; top: 360px; }

/* the 18 s story: messages appear one after another, then the loop restarts */
.zsi-root .zcs-s1 { animation: zcs-s1 18s ease infinite; } .zsi-root .zcs-s2 { animation: zcs-s2 18s ease infinite; } .zsi-root .zcs-s3 { animation: zcs-s3 18s ease infinite; }
.zsi-root .zcs-s4 { animation: zcs-s4 18s ease infinite; } .zsi-root .zcs-s5 { animation: zcs-s5 18s ease infinite; } .zsi-root .zcs-s6 { animation: zcs-s6 18s ease infinite; }
.zsi-root .zcs-t1 { animation: zcs-t1 18s ease infinite; } .zsi-root .zcs-b1 { animation: zcs-s3 18s ease infinite; } .zsi-root .zcs-b2 { animation: zcs-s5 18s ease infinite; }
@keyframes zcs-s1 { 0%, 3% { opacity: 0; transform: translateY(8px); } 7%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes zcs-t1 { 0%, 9% { opacity: 0; } 11%, 20% { opacity: 1; } 22%, 100% { opacity: 0; height: 0; padding: 0; margin: 0; } }
@keyframes zcs-s2 { 0%, 21% { opacity: 0; transform: translateY(8px); } 25%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes zcs-s3 { 0%, 33% { opacity: 0; transform: translateY(8px); } 37%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes zcs-s4 { 0%, 46% { opacity: 0; transform: translateY(8px); } 50%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes zcs-s5 { 0%, 58% { opacity: 0; transform: translateY(8px); } 62%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes zcs-s6 { 0%, 71% { opacity: 0; transform: translateY(8px); } 75%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.zsi-is-paused .zsi-root .zcs-stage *, .zsi-root.zsi-is-paused .zcs-stage * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .zsi-root .zcs-stage * { animation: none !important; } .zsi-root .zcs-typing { display: none; } }
.zsi-is-still .zsi-root .zcs-stage * { animation: none !important; } .zsi-is-still .zsi-root .zcs-typing { display: none; }

/* sign-in form additions (zChat): two-column name row, OTP boxes, inline helper text */
.zsi-root .zcs-note { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.55; }
.zsi-root .zcs-note b { color: var(--ink); font-weight: 600; }
.zsi-root .zcs-ok { padding: 11px 14px; border-radius: 10px; font-size: 13.5px; color: #a7f3d0; background: rgba(52, 211, 154, .09); border: 1px solid rgba(52, 211, 154, .3); }
.zsi-root .zcs-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.zsi-root .zcs-linkbtn { background: none; border: 0; padding: 0; color: var(--accent-2); cursor: pointer; font: inherit; font-size: 13px; }
.zsi-root .zcs-linkbtn:hover { text-decoration: underline; }
.zsi-root .zcs-linkbtn:disabled { color: var(--faint); cursor: default; text-decoration: none; }
.zsi-root .zcs-hint { font-size: 12px; color: var(--faint); }
.zsi-root .zcs-err { font-size: 12.5px; color: var(--danger); }
.zsi-root .zcs-code { letter-spacing: .5em; font-family: "JetBrains Mono", ui-monospace, monospace !important; text-align: center; font-size: 20px !important; }
.zsi-root .zcs-mark { width: 44px; height: 44px; display: block; }
.zsi-root .zcs-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font: 700 22px/1 var(--brand); letter-spacing: .02em; }
.zsi-root a.zsi-submit { display: grid; place-items: center; text-decoration: none; }
.zsi-root .zcs-card { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--field); font-size: 13.5px; color: var(--ink-2); display: grid; gap: 6px; }
.zsi-root .zcs-card b { color: var(--ink); font-weight: 600; }
