.ix-v5 .ix4-ai-track { min-height: var(--ix4-stage-size); }
.ix-v5 .ix4-ai-track .ix4-journey-grid { position: relative; top: auto; }
.ix-v5 .ix4-screen-0 { overflow: hidden; background: #101010; container-type: inline-size; }
.ix5-chat {
    display: grid;
    grid-template-columns: 38px clamp(150px, 18cqw, 210px) minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    color: #e9e9e9;
    background: #101010;
    font: 400 13px/1.5 var(--sans);
}
.ix5-chat-icon { flex-shrink: 0; display: inline-block; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ix5-chat-rail { display: flex; flex-direction: column; align-items: center; gap: clamp(15px, 3svh, 31px); padding: 11px 4px; border-right: 1px solid #242424; color: #b8b8b8; }
.ix5-chat-rail > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px !important; }
.ix5-chat-rail > .is-selected { background: #282828; color: #fafafa; }
.ix5-chat-rail .ix5-chat-avatar { margin-top: auto; width: 23px; height: 23px; background: #484848; color:#fff; border-radius: 50% !important; font-size: 9px; font-weight: 650; }
.ix5-chat-spark { font-size: 24px; }
.ix5-chat-sidebar { display: flex; flex-direction: column; gap: 2px; padding: 11px 8px; border-right: 1px solid #303030; min-height: 0; overflow: hidden; }
.ix5-sidebar-top { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 1px 4px 13px; }
.ix5-sidebar-top strong { font-size: 17px; font-weight: 620; letter-spacing: -.045em; }
.ix5-sidebar-top > span { display: flex; gap: 8px; color: #aaa; }
.ix5-sidebar-top .ix5-chat-icon { width: 14px; height: 14px; }
.ix5-sidebar-row { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 7px 6px; min-width: 0; border-radius: 6px !important; font-size: 11px; line-height: 1.3; }
.ix5-sidebar-row:hover { background: #242424; }
.ix5-sidebar-row.is-current { background: #272727; }
.ix5-chat-sidebar > small { padding: 11px 6px 5px; font-size: 10px; font-weight: 550; color: #999; }
.ix5-sidebar-muted { color: #aaa; font-size: 10px; }
.ix5-your-dot { flex-shrink: 0; width: 17px; height: 17px; border: 5px solid #b8b8b8; border-radius: 50% !important; }
.ix5-sidebar-bottom { margin-top: auto; padding: 12px 6px 0; color: #777; font-size: 9px; }
.ix5-chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ix5-chat-top { flex-shrink: 0; display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 8px 15px; }
.ix5-chat-top > span:first-child { font-size: 15px; font-weight: 560; letter-spacing: -.025em; }
.ix5-chat-top > span:first-child small { color: #999; }
.ix5-chat-top .ix5-chat-example { margin-left: auto; color: #939393; font-size: 9px; }
.ix-v5 .ix5-chat-top button { display: grid; place-items: center; width: 26px; height: 26px; padding: 3px; color: #bdbdbd; background: transparent; border-radius: 6px !important; }
.ix5-chat-top button:hover { background: #2a2a2a; color: #fff; }
.ix5-chat-share { display: flex; align-items: center; gap: 6px; font-size: 10px; }
.ix5-chat-share .ix5-chat-icon { width: 14px; height: 14px; }
.ix5-chat-share b { margin-left: 8px; font-size: 16px; letter-spacing: .05em; }
.ix5-chat-thread { flex: 1; min-height: 0; overflow: auto; scrollbar-width: none; padding: 14px clamp(13px, 4cqw, 45px) 22px; scroll-behavior: smooth; }
.ix5-chat-thread::-webkit-scrollbar { display: none; }
.ix5-message { margin: 0 0 22px; font: 400 clamp(12px, 1.5cqw, 16px)/1.6 var(--sans); }
.ix-v5 .ix5-message > p { margin: 0; font: inherit; }
.ix5-message[hidden], .ix5-chat-thinking[hidden] { display: none; }
.ix5-message-user { display: flex; justify-content: end; }
.ix5-message-user > p { max-width: 90%; padding: 9px 15px; border-radius: 19px !important; background: #2b2b2b; letter-spacing: -.015em; }
.ix5-message-assistant > p { padding-block: 1px; }
.ix5-chat-thinking { display: flex; align-items: center; gap: 9px; min-height: 24px; margin-bottom: 17px; color: #a8a8a8; font-size: 12px; }
.ix5-chat-thinking i { display: block; width: 8px; height: 8px; background: #ddd; border-radius: 50% !important; }
.ix-v5 .ix5-chat-recommendation { display: flex; align-items: center; gap: 12px; padding: 10px; margin-top: 13px; border: 1px solid #494949; border-radius: 12px !important; color: #eee; background: #1d1d1d; transition: background-color .18s, border-color .18s; }
.ix5-chat-recommendation > img { display: block; width: 72px; height: 76px; object-fit: cover; border-radius: 7px !important; }
.ix5-chat-recommendation > span { display: grid; gap: 4px; min-width: 0; }
.ix5-chat-recommendation strong { font-size: clamp(13px, 1.65cqw, 18px); font-weight: 620; }
.ix5-chat-recommendation > span > span { font-size: 11px; line-height: 1.35; color: #bcbcbc; }
.ix5-chat-recommendation small { font-size: 10px; color: #bbb; }
.ix5-chat-recommendation:hover { background: #292929; border-color: #727272; }
.ix-v5 .ix5-chat-visit { display: inline-flex; align-items: center; gap: 10px; margin-top: 9px; padding: 6px 11px; color: #e9e9e9; border: 1px solid #545454; border-radius: 7px !important; background: #242424; font-size: 11px; }
.ix5-chat-visit:hover { background: #3a3a3a; }
.ix5-response-actions { display: flex; align-items: center; gap: 13px; color: #9a9a9a; margin-top: 17px; }
.ix5-response-actions .ix5-chat-icon { width: 14px; height: 14px; }
.ix5-composer-wrap { flex-shrink: 0; padding: 6px clamp(12px, 3cqw, 32px) 5px; }
.ix5-composer { display: flex; align-items: center; gap: 11px; min-height: 48px; padding: 7px 8px 7px 14px; border: 1px solid #343434; border-radius: 27px !important; background: #252525; color: #aaa; }
.ix5-composer > span:first-of-type { flex: 1; }
.ix5-composer > small { font-size: 10px; white-space: nowrap; }
.ix5-composer .ix5-composer-send { flex: 0 0 30px; display: grid; place-items: center; width: 30px; height: 30px; color: #333; background: #fff; border-radius: 50% !important; }
.ix5-composer-wrap > p { text-align: center; margin-top: 5px; font-size: 8px; line-height: 1.3; color: #aaa; }

@media (max-width: 1100px) {
    .ix5-chat { grid-template-columns: 34px 150px minmax(0, 1fr); }
    .ix5-sidebar-top > span { gap: 5px; }
    .ix5-sidebar-top strong { font-size: 15px; }
}
@media (max-width: 720px) {
    .ix5-chat { grid-template-columns: 31px minmax(0, 1fr); }
    .ix5-chat-sidebar { display: none; }
    .ix5-chat-rail { gap: 19px; padding-inline: 2px; }
    .ix5-chat-rail > span { width: 24px; height: 25px; }
    .ix5-chat-top { min-height: 36px; padding: 5px 9px; gap: 6px; }
    .ix5-chat-top > span:first-child { font-size: 13px; }
    .ix5-chat-example { display: none; }
    .ix5-chat-top > button { margin-left: auto; }
    .ix5-chat-thread { padding: 9px 12px 15px; }
    .ix5-message { font-size: 12px; margin-bottom: 17px; }
    .ix5-message-user > p { max-width: 96%; padding: 8px 11px; }
    .ix5-chat-recommendation > img { width: 49px; height: 60px; }
    .ix5-chat-recommendation { gap: 8px; padding: 8px; }
    .ix5-chat-recommendation strong { font-size: 13px; }
    .ix5-chat-recommendation > span > span { font-size: 10px; }
    .ix5-composer-wrap { padding: 5px 8px; }
    .ix5-composer { min-height: 41px; gap: 7px; padding: 5px 6px 5px 10px; font-size: 11px; }
    .ix5-composer > small { display: none; }
    .ix5-composer .ix5-chat-icon { width: 16px; height: 16px; }
    .ix5-composer .ix5-composer-send { width: 26px; height: 26px; flex-basis: 26px; }
    .ix5-composer-wrap > p { font-size: 7px; }
}
@media (prefers-reduced-motion: no-preference) {
    .ix5-chat-playing .ix5-message:not([hidden]) { animation: ix5-message-in .32s ease-out both; }
    .ix5-chat-thinking i { animation: ix5-thinking 1s ease-in-out infinite; }
}
@keyframes ix5-message-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ix5-thinking { 50% { opacity: .3; transform: scale(.82); } }
@media (prefers-reduced-motion: reduce) { .ix5-chat-thread { scroll-behavior: auto; } }
