/* ZabSys Cloud — AI & Automation pages (/ai/...). Loaded after vps.css, email.css, cloud.css and sdk.css. */

.ly-chat { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.ly-msg { display: grid; gap: 4px; max-width: 86%; }
.ly-msg__who { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ly-msg__text { margin: 0; padding: 10px 14px; border-radius: 12px; font-size: 15px; line-height: 1.55; }
.ly-msg--user { justify-self: end; }
.ly-msg--user .ly-msg__who { text-align: right; }
.ly-msg--user .ly-msg__text { background: var(--gray); color: var(--ink); border-bottom-right-radius: 4px; }
.ly-msg--bot .ly-msg__text { background: var(--red-tint); color: var(--ink); border-bottom-left-radius: 4px; }
.ai-noacct { margin-top: 16px; padding: 10px 12px; border-radius: var(--radius); background: var(--gray); }
.ai-noacct[hidden] { display: none; }

.ai-cta { margin-top: 24px; }
.ai-cta h3 { font-size: 19px; }

/* example chat: messages arrive one after another */
.ly-chat--wait .ly-msg { opacity: 0; }
.ly-chat--play .ly-msg { animation: lyIn .45s var(--ease) both; }
.ly-chat--play .ly-msg:nth-child(2) { animation-delay: 1s; }
.ly-chat--play .ly-msg:nth-child(3) { animation-delay: 2.2s; }
.ly-chat--play .ly-msg:nth-child(4) { animation-delay: 3.4s; }
@keyframes lyIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

/* screenshots with their explanation, picture and text taking turns */
.ly-shot { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 34px 0; border-top: 1px solid var(--line); }
.ly-shot--flip .ly-shot__pic { order: 2; }
.ly-shot--small { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ly-shot__pic { display: block; justify-self: center; max-width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 22px 40px -30px rgba(22, 24, 29, .45); }
.ly-shot--small .ly-shot__pic { max-width: 430px; }
.ly-shot__pic img { display: block; width: 100%; height: auto; transition: transform .4s var(--ease); }
.ly-shot__pic:hover img { transform: scale(1.03); }
.ly-shot__text h3 { font-size: 22px; margin-bottom: 8px; }
.ly-shot__text p { color: var(--muted); line-height: 1.65; }
.ly-panel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ly-panel div { padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: var(--radius); background: #fff; }
.ly-panel dt { font-weight: 600; color: var(--ink); }
.ly-panel dd { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) {
  .ly-shot, .ly-shot--small { grid-template-columns: 1fr; gap: 18px; }
  .ly-shot--flip .ly-shot__pic { order: 0; }
  .ly-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) { .ly-panel { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ly-shot__pic:hover img { transform: none; } }
@media (min-width: 861px) { .ly-shot--flip:not(.ly-shot--small) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); } }

/* an icon beside each part of the customer panel */
.ly-panel > div { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; align-items: center; border-left-width: 1px; transition: transform .25s var(--ease), border-color .2s, box-shadow .25s var(--ease); }
.ly-panel dt { display: contents; }
.ly-panel__ico { grid-row: 1 / span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--radius); background: var(--red-tint); color: var(--red); transition: background-color .2s, color .2s, transform .3s var(--ease); }
.ly-panel__ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ly-panel__name { font-weight: 600; color: var(--ink); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ly-panel > div:hover, .ly-panel.settled > div:hover { transform: translateY(-3px); border-color: var(--red); box-shadow: 0 14px 26px -20px rgba(22, 24, 29, .4); }
  .ly-panel > div:hover .ly-panel__ico { background: var(--red); color: #fff; transform: scale(1.08) rotate(-4deg); }
}
.ly-panel > div { border-left-color: var(--line); align-content: center; }
.ly-panel__ico { align-self: center; }
.ly-panel__name { align-self: end; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .ly-panel > div:hover { border-left-color: var(--red); } }

/* Lily Assistant logo */
.ly-logo { width: fit-content; max-width: 100%; margin: 8px 0 20px; }
.ly-logo img { display: block; width: 440px; max-width: 100%; height: auto; }
.page-head h1.ly-logo::after { display: none; }
.ly-head { display: flex; align-items: center; gap: 18px; margin-bottom: 4px; }
.ly-icon { flex: none; width: 76px; height: 76px; }
.ly-head h2 { margin-top: 6px; }
@media (max-width: 480px) { .ly-head { gap: 14px; } .ly-icon { width: 56px; height: 56px; } }
