.lai-panel {
    position: relative;
    width: 100%;
    max-width: 660px;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(127, 208, 211, .25);
    border-radius: 18px;
    color: #eaf8f7;
    background: linear-gradient(150deg, rgba(16, 62, 76, .98), rgba(8, 34, 50, .98) 62%);
    box-shadow: 0 30px 72px rgba(0, 12, 23, .3), inset 0 1px rgba(255, 255, 255, .045);
    font-family: "Vazirmatn PP", Vazirmatn, Tahoma, sans-serif;
    text-align: right;
}
.lai-panel *, .lai-panel *::before, .lai-panel *::after { box-sizing: border-box; }
.lai-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6; background: radial-gradient(circle at 92% 3%, rgba(68, 204, 194, .13), transparent 38%); }
.lai-header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 70px; padding: 13px 22px; border-bottom: 1px solid rgba(160, 217, 216, .14); }
.lai-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lai-mark { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border: 1px solid rgba(120, 226, 213, .3); border-radius: 9px; color: #85e5d8; background: rgba(103, 217, 205, .1); font-size: 18px; }
.lai-identity > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lai-identity strong { font-size: 12px; font-weight: 800; white-space: nowrap; }
.lai-identity small { color: #89b6ba; font-size: 9px; }
.lai-demo-label { flex: 0 0 auto; padding: 5px 9px; border: 1px solid rgba(127, 208, 211, .18); border-radius: 999px; color: #9fcdca; background: rgba(105, 199, 190, .07); font-size: 9px; font-weight: 700; white-space: nowrap; }
.lai-sequence { position: relative; padding: 19px 22px 18px; }
.lai-case-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 15px; padding: 10px 13px; border: 1px solid rgba(129, 200, 205, .13); border-radius: 9px; background: rgba(5, 28, 43, .4); }
.lai-case-strip > div:first-child { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.lai-case-strip > div:first-child span { color: #86aeb7; font-size: 9px; }
.lai-case-strip strong { color: #cbe6e4; font: 700 10px/1.4 Consolas, monospace; }
.lai-case-title { min-width: 0; color: #d8eeec; font-size: 10px; font-weight: 700; }
.lai-case-stage { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; color: #d3bd89; font-size: 9px; white-space: nowrap; }
.lai-case-stage i { width: 5px; height: 5px; border-radius: 50%; background: #d8b56d; box-shadow: 0 0 0 3px rgba(216, 181, 109, .1); }
.lai-user-message { width: min(88%, 475px); margin: 17px 0 14px auto; padding: 11px 15px 13px; border: 1px solid rgba(136, 204, 208, .18); border-radius: 11px 11px 3px 11px; background: #174655; }
.lai-message-caption { color: #91bdc1; font-size: 9px; font-weight: 700; }
.lai-user-message p { margin: 4px 0 0; color: #f0f9f8; font-size: 12px; line-height: 1.9; }
.lai-analysis { width: min(94%, 525px); padding: 10px 13px 12px; border: 1px solid rgba(110, 214, 204, .12); border-radius: 10px; background: rgba(19, 70, 80, .42); }
.lai-analysis-head { display: flex; align-items: center; gap: 8px; color: #aad4d0; font-size: 10px; font-weight: 750; }
.lai-analysis-pulse { width: 6px; height: 6px; border-radius: 50%; background: #74dbce; box-shadow: 0 0 0 4px rgba(116, 219, 206, .1); }
.lai-analysis-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin-top: 10px; }
.lai-step { position: relative; min-width: 0; padding: 8px 4px; overflow: hidden; border: 1px solid rgba(139, 219, 209, .13); border-radius: 6px; color: #b0d4d0; background: rgba(101, 204, 194, .07); font-size: 8px; font-weight: 700; text-align: center; white-space: nowrap; }
.lai-step::before { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: #79dfd2; transform-origin: right; }
.lai-assistant-message { width: min(96%, 555px); margin-top: 14px; padding: 16px; border: 1px solid rgba(111, 218, 205, .24); border-radius: 11px 11px 11px 3px; background: linear-gradient(140deg, rgba(25, 82, 89, .93), rgba(16, 60, 76, .96)); }
.lai-assistant-heading { display: flex; align-items: center; gap: 9px; }
.lai-assistant-heading > span { display: grid; place-items: center; flex: 0 0 25px; width: 25px; height: 25px; border: 1px solid rgba(155, 237, 221, .33); border-radius: 7px; color: #8fe7d8; font-size: 15px; }
.lai-assistant-heading > div { display: flex; flex-direction: column; gap: 1px; }
.lai-assistant-heading small { color: #89c3bf; font-size: 8px; font-weight: 800; }
.lai-assistant-heading strong { font-size: 11px; font-weight: 800; }
.lai-findings { display: grid; gap: 6px; margin: 13px 0 0; padding: 0; list-style: none; }
.lai-finding { display: flex; align-items: center; gap: 8px; min-height: 29px; padding: 5px 8px; border: 1px solid rgba(176, 224, 219, .09); border-radius: 6px; background: rgba(3, 34, 47, .22); color: #deeeec; font-size: 10px; line-height: 1.55; }
.lai-finding-icon { display: grid; place-items: center; flex: 0 0 16px; width: 16px; height: 16px; border-radius: 50%; font: 800 10px/1 Tahoma, sans-serif; }
.lai-finding-ok .lai-finding-icon { color: #104940; background: #81deca; }
.lai-finding-attention .lai-finding-icon { color: #503916; background: #e9c784; }
.lai-finding > span:nth-child(2) { min-width: 0; }
.lai-finding small { margin-right: auto; color: #93cdbd; font-size: 8px; white-space: nowrap; }
.lai-finding-attention small { color: #e5ca97; }
.lai-recommendation { margin-top: 12px; padding: 10px 12px; border-right: 2px solid #6cdbca; border-radius: 5px; background: rgba(103, 220, 204, .07); }
.lai-recommendation > span { color: #8de5d7; font-size: 9px; font-weight: 800; }
.lai-recommendation p { margin: 4px 0 0; color: #d5eae7; font-size: 10px; line-height: 1.8; }
.lai-footer { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 9px 22px; border-top: 1px solid rgba(160, 217, 216, .12); color: #8db3b8; font-size: 9px; line-height: 1.65; }
.lai-footer button { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 6px 9px; border: 1px solid rgba(130, 218, 208, .22); border-radius: 6px; color: #b7e5dc; background: rgba(99, 198, 188, .08); cursor: pointer; font: inherit; font-weight: 800; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.lai-footer button:hover { transform: translateY(-2px); border-color: rgba(130, 218, 208, .5); background: rgba(99, 198, 188, .16); }
.lai-footer button:focus-visible { outline: 2px solid #8ee6da; outline-offset: 2px; }
.lai-footer button span { font-size: 15px; line-height: 1; }
@media (prefers-reduced-motion: no-preference) {
    .pp-landing.pl-motion-ready .lai-panel.is-visible .lai-user-message { animation: lai-enter .38s .12s both; }
    .pp-landing.pl-motion-ready .lai-panel.is-visible .lai-analysis { animation: lai-enter .38s .48s both; }
    .pp-landing.pl-motion-ready .lai-panel.is-visible .lai-step { animation: lai-step-on .35s both; }
    .pp-landing.pl-motion-ready .lai-panel.is-visible .lai-step:nth-child(1) { animation-delay: .72s; }
    .pp-landing.pl-motion-ready .lai-panel.is-visible .lai-step:nth-child(2) { animation-delay: 1.02s; }
    .pp-landing.pl-motion-ready .lai-panel.is-visible .lai-step:nth-child(3) { animation-delay: 1.32s; }
    .pp-landing.pl-motion-ready .lai-panel.is-visible .lai-step:nth-child(4) { animation-delay: 1.62s; }
    .pp-landing.pl-motion-ready .lai-panel.is-visible .lai-assistant-message { animation: lai-enter .4s 1.72s both; }
    .pp-landing.pl-motion-ready .lai-panel.is-visible .lai-finding { animation: lai-enter .32s both; }
    .pp-landing.pl-motion-ready .lai-panel.is-visible .lai-finding:nth-child(1) { animation-delay: 2.02s; }
    .pp-landing.pl-motion-ready .lai-panel.is-visible .lai-finding:nth-child(2) { animation-delay: 2.29s; }
    .pp-landing.pl-motion-ready .lai-panel.is-visible .lai-finding:nth-child(3) { animation-delay: 2.56s; }
    .pp-landing.pl-motion-ready .lai-panel.is-visible .lai-finding:nth-child(4) { animation-delay: 2.83s; }
    .pp-landing.pl-motion-ready .lai-panel.is-visible .lai-recommendation { animation: lai-enter .38s 3.16s both; }
    @keyframes lai-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes lai-step-on { from { opacity: .42; border-color: rgba(139, 219, 209, .1); } to { opacity: 1; border-color: rgba(139, 219, 209, .32); } }
}
@media (max-width: 640px) {
    .lai-panel { max-width: none; }
    .lai-header { min-height: 62px; padding-inline: 15px; }
    .lai-sequence { padding: 15px; }
    .lai-case-strip { gap: 6px 10px; }
    .lai-assistant-message { width: 100%; }
    .lai-footer { padding-inline: 15px; }
}
@media (max-width: 420px) {
    .lai-identity strong { font-size: 10px; }
    .lai-identity small, .lai-demo-label { font-size: 8px; }
    .lai-case-title { width: 100%; }
    .lai-case-stage { margin-right: 0; }
    .lai-user-message, .lai-analysis { width: 100%; }
    .lai-analysis-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lai-finding { flex-wrap: wrap; }
    .lai-finding small { padding-right: 24px; }
    .lai-footer { align-items: flex-start; flex-direction: column; }
    .lai-footer button { align-self: flex-end; }
}
@media (prefers-reduced-motion: reduce) { .lai-panel *, .lai-panel *::before, .lai-panel *::after { animation: none !important; transition: none !important; } }
