/* עיצוב לפי מסך: כניסה, בית, צ'אט, תלמידות */

/* כניסה */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(120% 80% at 50% 0%, var(--lavender-soft), var(--bg) 60%); }
.login-card { width: 100%; max-width: 380px; text-align: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 38px 26px; box-shadow: var(--shadow-lg); }
.login-logo { font: 800 34px var(--font-head); color: var(--brand); letter-spacing: 1px; }
.login form { text-align: start; }
.google-slot { display: flex; justify-content: center; min-height: 44px; }
.google-slot:empty { display: none; }

/* בית */
.goal { display: flex; align-items: center; gap: 18px; }
.goal-ring { position: relative; width: 86px; height: 86px; flex: none; }
.goal-ring .ring { width: 100%; height: 100%; }
.goal-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 800 19px var(--font-head); color: var(--brand-deep); }
.agent-card { display: flex; align-items: center; gap: 16px; color: inherit;
  background: linear-gradient(135deg, var(--surface) 40%, var(--lavender-soft)); }
.agent-icon { width: 54px; height: 54px; flex: none; border-radius: 16px; display: grid; place-items: center;
  background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(120, 96, 152, .35); }
.agent-icon svg { width: 28px; height: 28px; }
.agent-icon.big { width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 20px; }
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.link-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 10px;
  color: var(--ink); font-weight: 600; font-size: 14px; transition: border-color .15s, transform .12s; }
.link-tile:active { transform: scale(.97); }
.link-tile svg { width: 26px; height: 26px; color: var(--brand); }
@media (hover: hover) { .link-tile:hover { border-color: var(--lavender); } }

/* כרטיסי רשימה */
.badges { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; max-width: 45%; }
.block { padding: 16px 0; border-top: 1px solid var(--line); }
.block h3 { margin-bottom: 10px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); }
.check input { width: 20px; height: 20px; flex: none; accent-color: var(--brand); }
.script { background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--lavender);
  border-radius: var(--r-sm); padding: 14px; margin-bottom: 14px; }
.inline-ic { width: 20px; height: 20px; vertical-align: -4px; color: var(--brand); }
summary { cursor: pointer; }

/* צ'אט עם הסוכן */
.chat { display: flex; flex-direction: column; min-height: calc(100dvh - var(--nav-h) - var(--safe-b) - 60px); }
.msgs { flex: 1; display: flex; flex-direction: column; gap: 14px; padding-bottom: 12px; }
.msg { display: flex; flex-direction: column; max-width: 88%; }
.msg.user { align-self: flex-start; align-items: flex-start; }
.msg.assistant { align-self: flex-end; align-items: flex-end; }
.bubble { padding: 12px 15px; border-radius: 18px; font-size: 15.5px; line-height: 1.6; word-break: break-word; }
.msg.user .bubble { background: var(--brand); color: #fff; border-start-start-radius: 6px; }
.msg.assistant .bubble { background: var(--surface); border: 1px solid var(--line); border-start-end-radius: 6px; box-shadow: var(--shadow); }
.bubble p + p, .bubble p + ul, .bubble ul + p, .bubble p + ol, .bubble ol + p { margin-top: 8px; }
.bubble ul, .bubble ol { margin: 6px 0; padding-inline-start: 20px; }
.bubble h4 { margin: 10px 0 4px; font: 700 15.5px var(--font-head); color: var(--brand-deep); }
.msg .time { font-size: 11.5px; color: var(--muted); margin-top: 4px; padding: 0 6px; }
.typing i { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: var(--lavender); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .25; } }
.welcome { text-align: center; padding: 30px 8px; margin: auto 0; }
.welcome p { max-width: 420px; margin: 8px auto 18px; }
.prompts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.prompts .chip { border: 0; padding: 8px 13px; font-size: 13.5px; cursor: pointer; white-space: normal; }
.composer { position: sticky; bottom: calc(var(--nav-h) + var(--safe-b) + 8px); display: flex; gap: 8px; align-items: flex-end;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 8px; box-shadow: var(--shadow-lg); }
.composer textarea { border: 0; box-shadow: none; min-height: 44px; max-height: 160px; padding: 10px; resize: none; }
.composer .btn { border-radius: 14px; width: 46px; padding: 0; flex: none; }
@media (min-width: 900px) {
  .chat { min-height: calc(100dvh - 82px); }
  .composer { bottom: 18px; }
}

/* שיחות מכירה */
.rec-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--danger); margin: 0 auto; animation: blink 1.2s infinite; }
.analysis h4 { margin: 18px 0 8px; color: var(--brand-deep); }
.analysis h4:first-child { margin-top: 0; }
.analysis p + p, .analysis ul, .analysis ol { margin-top: 6px; }
.analysis ul, .analysis ol { padding-inline-start: 20px; }
.analysis li + li { margin-top: 4px; }
