/* Chat is intentionally separate from the rest of the prototype. */
.device:has(.chat-view),.chat-view{background:#fff}
.chat-view .chat-topbar{height:59px;flex:none;display:grid;grid-template-columns:48px 1fr 48px;align-items:center;padding:0 15px;background:#fff}
.chat-view .chat-topbar>.icon-btn:last-child{justify-self:end}
.chat-title{display:flex;justify-content:center;align-items:center;gap:7px;color:#162e40;font:800 16px Manrope,sans-serif;letter-spacing:-.6px}
.chat-title-mark{display:grid;place-items:center;width:24px;height:24px;border-radius:8px;background:#193c50;color:#fff}
.chat-title-mark svg{width:16px;height:16px}
.chat-view .chat-topbar .icon-btn{color:#566e7c}
.chat-view .screen-content{background:#fff;overscroll-behavior:contain}
.chat-welcome{padding:clamp(56px,12vh,108px) 23px 24px}
.welcome-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:15px;background:#eaf2f3;color:#315f68;margin-bottom:19px}
.welcome-mark svg{width:26px;height:26px}
.chat-welcome h2{font:700 20px/1.3 Manrope,sans-serif;letter-spacing:-.5px;max-width:100%;text-align:center;color:#182f40}
.voice-inline{display:flex;align-items:center;gap:9px;min-height:52px;padding:5px 8px 5px 15px;border-radius:26px;background:#fff;box-shadow:0 2px 8px #00000012;font-size:12px;color:#555}
.voice-inline>span:nth-child(2){flex:1}
.voice-inline-dot{width:9px;height:9px;border-radius:50%;background:#d35a5a}
.voice-inline button{border:0;background:transparent;color:#333;font-size:12px;font-weight:700;padding:8px}
.voice-inline button svg{display:block;width:18px;height:18px}
[dir="rtl"] .voice-inline{padding:5px 15px 5px 8px}
.chat-view .prompt-list{border:0;margin-top:30px;display:grid;gap:8px}
.chat-view .prompt{border:1px solid #edf1f3;border-radius:15px;min-height:58px;padding:7px 11px;background:#f8fafb;gap:11px}
.chat-view .prompt-icon{width:38px;height:38px;border-radius:12px;background:#edf3f3;color:#527c7d}
.chat-view .prompt-icon svg{width:18px;height:18px;stroke-width:1.7}
.chat-view .prompt-text{font-size:13px;font-weight:600;color:#324e5d}
.chat-view .prompt .chev{width:17px;height:17px;color:#a7b9bf}
.chat-view .composer-wrap{padding:8px 14px 12px;background:#fff}
.chat-view .composer{min-height:54px;align-items:end;border:1px solid #dce7eb;border-radius:21px;padding:5px 6px 5px 15px;background:#f8fafb;box-shadow:none}
.chat-view .composer:focus-within{border-color:#a8c0c6;background:#fff;box-shadow:0 0 0 3px #eaf2f3}
.chat-view .composer textarea{min-height:42px;max-height:120px;padding:11px 0 9px;font-size:14px;line-height:21px;color:#233d4d}
.chat-view .composer textarea::placeholder{color:#91a4ad}
.composer-actions{display:flex;align-items:center;flex:none;gap:1px}
.chat-view .voice-button{width:42px;height:42px;color:#748c97}
.chat-view .voice-button svg{width:19px;height:19px}
.chat-view .send{width:39px;height:39px;border-radius:14px;background:#193c50;color:#fff;transition:background 150ms ease,opacity 150ms ease}
.chat-view .send:disabled{opacity:1;background:#e5edf0;color:#a8bac2;cursor:default}
.chat-view .nav{background:#fff;border-color:#edf2f3}
.chat-view .nav-btn{color:#8a9da7}
.chat-view .nav-btn.active{color:#244e60}
.chat-view .chat{padding:17px 18px 24px;gap:23px}
.chat-view .user-msg{background:#edf3f5;color:#294654;padding:11px 14px;border-radius:17px 17px 5px 17px;font-size:14px;line-height:1.5;max-width:84%;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-view .answer{gap:10px;align-items:flex-start}
.chat-view .answer-mark{width:26px;height:26px;border-radius:9px;background:#e8f1f1;color:#365f66}
.chat-view .answer-mark svg{width:17px;height:17px}
.chat-view .answer-body{min-width:0;padding-top:2px}
.chat-view .answer-text{font-size:14px;line-height:1.55;color:#263f4d;margin:0 0 12px;overflow-wrap:anywhere}
.chat-results{display:grid;gap:7px;margin:10px 0 0}
.chat-result{border:1px solid #e5edef;border-radius:16px;background:#fff;overflow:hidden}
.chat-result-top{display:flex;align-items:center;gap:0;padding:8px 6px 4px 9px}
.chat-result-main{display:flex;align-items:center;gap:10px;flex:1;min-width:0;text-align:start;background:none;border:0;color:#1b3646;padding:0;border-radius:11px}
.chat-result-main .avatar{width:43px;height:43px;border-radius:12px;font-size:14px}
.chat-result-name{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;flex:1}
.chat-result-name strong{font-size:13px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.chat-result-name span{font-size:11px;color:#81949e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.chat-result-main .chev{width:15px;height:15px;color:#adbdc3}
.chat-result .result-save{width:42px;height:42px;color:#66818f}
.chat-result .result-save svg{width:19px;height:19px}
.chat-result-meta{display:flex;align-items:center;gap:9px;padding:5px 12px 11px 62px;color:#718791;font-size:11px;line-height:1.3}
.chat-result-meta .rating{font-size:11px;white-space:nowrap;color:#526c79}
.chat-result-meta .rating b{font-size:12px}
.result-divider{height:12px;width:1px;background:#dfe9eb;flex:none}
.chat-compare{display:inline-flex;align-items:center;gap:7px;border:0;border-radius:11px;background:#f0f5f5;color:#315b63;font-size:12px;font-weight:700;min-height:40px;padding:0 12px;margin-top:9px}
.chat-compare svg{width:16px;height:16px}
.chat-view .chips{flex-wrap:wrap;overflow:visible;gap:7px}
.chat-view .chip{background:#f3f7f8;border-color:#e5eff0;color:#456a73;min-height:38px}
[dir="rtl"] .chat-view .chat-title,[dir="rtl"] .chat-view .chat-welcome h2{font-family:'Noto Sans Arabic',Tahoma,sans-serif;letter-spacing:0}
[dir="rtl"] .chat-view .composer{padding:5px 15px 5px 6px}
[dir="rtl"] .chat-view .user-msg{border-radius:17px 17px 17px 5px}
[dir="rtl"] .chat-result-top{padding:8px 9px 4px 6px}
[dir="rtl"] .chat-result-meta{padding:5px 62px 11px 12px}
[dir="rtl"] .chat-result-name{align-items:flex-start}
[dir="rtl"] .chat-result-main .chev{transform:scaleX(-1)}
@media(max-height:700px){.chat-welcome{padding-top:42px}.chat-view .prompt-list{margin-top:23px}}
@media(prefers-reduced-motion:reduce){.chat-view .send{transition:none}}
.chat-review-card,.chat-comparison-card{display:flex;flex-direction:column;gap:9px;width:100%;padding:15px;border:0;border-radius:16px;background:#fff;text-align:start;color:#222}
.chat-rich-meta{display:block;color:#8a8a8a;font-size:11px}
.chat-review-card strong,.chat-comparison-card strong{font-size:13px}
.chat-review-quote{font-size:14px;line-height:1.5}
.chat-rich-link{display:flex;align-items:center;justify-content:space-between;color:#55796c;font-size:12px;font-weight:700}
.chat-rich-link svg{width:16px;height:16px}
.chat-gallery{display:flex;gap:7px;overflow:auto;margin-bottom:7px;scroll-snap-type:x mandatory}
.chat-gallery button{position:relative;flex:0 0 125px;height:145px;border:0;border-radius:13px;overflow:hidden;padding:0;background:#ddd;scroll-snap-align:start}
.chat-gallery img{width:100%;height:100%;object-fit:cover}
.chat-gallery button span{position:absolute;inset:auto 0 0;padding:20px 8px 8px;background:linear-gradient(transparent,#000a);color:#fff;text-align:start;font-size:11px;font-weight:700}
.chat-comparison-places{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.chat-comparison-places>span{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:10px;border-radius:12px;background:#f5f5f5}
.chat-comparison-places .avatar{width:40px;height:40px;border-radius:11px}
