/* צ'אט הבוט (chat/): רכיב אחד, משתמש במשתני הפלטה של shared/site.css ובפס העליון המשותף (.site-top).
   html.pg-chat. אין אנימציות חוץ ממחוון ההקלדה, והוא כבוי ב-prefers-reduced-motion. */
html.pg-chat, html.pg-chat body { height: 100%; }
html.pg-chat body { margin: 0; background: var(--cream); color: var(--ink); font-family: "Assistant", system-ui, sans-serif; display: flex; flex-direction: column; min-height: 100dvh; }
.ch-app { flex: 1; min-height: 0; display: flex; flex-direction: column; width: 100%; max-width: 40rem; margin: 0 auto; }
.ch-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1.25rem 1rem .5rem; display: flex; flex-direction: column; gap: .6rem; scrollbar-width: none; }
.ch-log::-webkit-scrollbar { display: none; }
.ch-who { font-size: .8rem; color: var(--muted); padding-inline: .25rem; margin-top: .4rem; }
.ch-msg { max-width: 86%; padding: .7rem .95rem; border-radius: var(--r); font-size: 1.05rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.ch-msg.bot { align-self: flex-start; background: var(--paper); border: 1px solid rgba(44, 35, 29, .12); }
.ch-msg.me { align-self: flex-end; background: var(--ink); color: var(--paper); }
/* מחוון הקלדה */
.ch-typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: .85rem 1rem; background: var(--paper); border: 1px solid rgba(44, 35, 29, .12); border-radius: var(--r); }
.ch-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .35; animation: chdot 1s infinite ease-in-out; }
.ch-typing i:nth-child(2) { animation-delay: .15s; }
.ch-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chdot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ch-typing i { animation: none; opacity: .6; } }
/* תשובות מוכנות וכפתורי המשך */
.ch-chips { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .2rem; }
.ch-chip, .ch-cta { font: inherit; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .45rem 1rem; border-radius: var(--r); }
.ch-chip { background: transparent; color: var(--ink); border: 1px solid rgba(44, 35, 29, .35); font-weight: 600; }
.ch-chip:active { background: rgba(44, 35, 29, .08); }
/* צעדים להמשך: שורת קישורים שקטה, לא כפתורים */
.ch-ctas { display: flex; flex-wrap: wrap; gap: .1rem 1.1rem; align-items: center; padding: .1rem .3rem; }
.ch-cta { font: inherit; font-size: .9rem; font-weight: 600; border: 0; background: none; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; padding: 0; }
.ch-cta:active { color: var(--ink); }
.ch-retry { align-self: flex-start; }
/* שורת הכתיבה */
.ch-bar { padding: .5rem 1rem calc(.4rem + env(safe-area-inset-bottom, 0px)); background: var(--cream); border-top: 1px solid rgba(44, 35, 29, .1); }
.ch-form { display: flex; align-items: flex-end; gap: .5rem; }
.ch-in { flex: 1; font: inherit; font-size: 1.05rem; line-height: 1.5; color: var(--ink); background: var(--paper); border: 1px solid rgba(44, 35, 29, .3); border-radius: var(--r); padding: .6rem .8rem; resize: none; max-height: 9rem; min-height: 44px; box-sizing: border-box; }
.ch-in:focus-visible, .ch-chip:focus-visible, .ch-cta:focus-visible, .ch-send:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }
.ch-send { flex: 0 0 auto; width: 44px; height: 44px; border: 0; border-radius: var(--r); background: var(--err); color: var(--paper); display: grid; place-items: center; cursor: pointer; }
.ch-send:disabled { opacity: .4; cursor: default; }
.ch-send svg { width: 20px; height: 20px; transform: scaleX(-1); }
.ch-note { margin: .45rem 0 0; font-size: .78rem; color: var(--muted); text-align: center; }
.ch-note a { color: inherit; text-decoration: underline; }
