/* The conversation with Utiligize AI: on the front page and on every application's page.
   Loaded on every page, since the older pages show it too. */

.chat, .chat * { box-sizing: border-box; }
.chat { font-family: 'Open Sans', system-ui, sans-serif; font-size: 16px; text-align: left; }
.chat p { margin: 0; }
.chat { background: var(--paper); color: #1f1a3d; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(30, 19, 75, .45); font-size: 15px; }
.chat__tabs { display: flex; gap: 2px; background: var(--ink); padding: 8px 10px 0; font-size: 12.5px; color: var(--lilac); }
.chat__tabs span { padding: 6px 12px; border-radius: 6px 6px 0 0; } .chat__tabs .is-active { background: #3b2f6f; color: #fff; }
.chat__head { padding: 16px 16px 2px; } .chat__head span { font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.chat__plus { font-size: 20px; line-height: 1; color: var(--lilac-2); padding: 0 4px; }
/* A fixed height, like the real panel: the conversation scrolls inside it and nothing around it moves. */
.chat__body { padding: 14px 16px; display: grid; gap: 10px; height: 430px; overflow: hidden; align-content: start; scroll-behavior: smooth; }
.msg { line-height: 1.55; } .chat.is-live .msg:not(.is-shown) { display: none; }
.msg__who { font-size: 12.5px; font-weight: 600; color: var(--lilac-2); margin-bottom: 4px !important; }
.msg--q { background: #f0eff6; border: 1px solid #e3e1ee; border-radius: 6px; padding: 10px 14px; }
.msg--a { padding: 4px 2px 6px; } .msg--a .msg__who { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; }
.msg--a strong { font-weight: 700; }
.msg--think { display: flex; align-items: center; justify-content: center; gap: 8px; background: #f6f5fa; border: 1px solid #e3e1ee; border-radius: 6px; padding: 7px 12px; font-weight: 600; font-size: 14px; }
.msg--think .think__n { font-weight: 400; color: var(--lilac-2); font-size: 12px; font-variant-numeric: tabular-nums; min-width: 4ch; text-align: left; }
.msg--think small { font-weight: 400; color: var(--lilac-2); font-size: 12px; }
.msg--think i { width: 5px; height: 5px; border-radius: 50%; background: var(--lilac-2); animation: wait 1s infinite; } .msg--think i:nth-of-type(2) { animation-delay: .15s; } .msg--think i:nth-of-type(3) { animation-delay: .3s; }
.msg table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; font-variant-numeric: tabular-nums; }
.msg th { text-align: left; font-weight: 600; color: var(--lilac-2); padding: 6px 10px 6px 0; border-bottom: 1px solid #dcd9ea; }
.msg td { padding: 7px 10px 7px 0; border-bottom: 1px solid #ecebf3; }
.msg .hot { color: #c2410c; font-weight: 700; }
.msg__src { margin-top: 10px !important; font-size: 14px; }
.msg code { font: 13px ui-monospace, Menlo, monospace; background: #f0eff6; padding: 1px 6px; border-radius: 4px; }
.chat__box { margin: 0 14px 14px; border: 1px solid #dcd9ea; border-radius: 8px; padding: 12px 14px 10px; }
.chat__input { min-height: 46px; color: #6b6689; }
.chat__input.is-typing { color: #1f1a3d; }
.chat__input.is-typing::after { content: ''; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -3px; background: var(--ink); animation: blink 1s steps(2) infinite; }
.chat__tools { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.chip { border: 1px solid #dcd9ea; border-radius: 6px; padding: 4px 10px; }
.chat__send { margin-left: auto; background: #5f54b3; color: #fff; font-weight: 600; padding: 6px 14px; border-radius: 6px; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes wait { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.mark { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: #ededf5; color: #1e134b; }
.mark svg { display: block; }
.mark--big { width: 34px; height: 34px; }

.chat__body { height: 410px; }
.ai .chat__body { height: 430px; }
@media (max-width: 767px) { .chat { font-size: 14px; } .chat__body { height: 440px; } }
