/* Reuse the site's Persian text font; no third-party font service. */
@font-face{font-family:KhodrochiSans;src:url('/templates/khodroshop/assets/fonts/irsans-regular.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:KhodrochiSans;src:url('/templates/khodroshop/assets/fonts/irsans-bold.woff2') format('woff2');font-style:normal;font-weight:700;font-display:swap}
body.chat-simple{font-family:KhodrochiSans,Tahoma,Arial,sans-serif}
:root{--navy:#061730;--navy-2:#102846;--orange:#ef7200;--green:#00a85a;--ink:#152238;--muted:#6d7b8c;--line:#dfe6ee;--paper:#fff;--canvas:#f4f7fb;--soft:#eef3f8;--shadow:0 22px 60px rgba(6,23,48,.09);--radius-xl:28px;--radius-lg:20px;--radius-md:14px}
body{direction:rtl}
*{box-sizing:border-box}html{background:var(--canvas);scroll-behavior:smooth}body{margin:0;color:var(--ink);font-family:Tahoma,"Vazirmatn",Arial,sans-serif;background:radial-gradient(circle at 88% -10%,#fff 0,#f4f7fb 42%,#edf2f7 100%);min-height:100vh}button,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #ef720055;outline-offset:2px}.app-shell{width:min(1180px,100%);margin:0 auto;padding:24px 24px 40px}.topbar{display:flex;align-items:center;justify-content:space-between;padding:6px 0 28px}.brand-lockup{display:flex;align-items:center;gap:12px}.brand-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:15px;background:var(--navy);color:#fff;font-size:24px;font-weight:900;box-shadow:0 10px 24px #06173025}.eyebrow{font-size:11px;color:var(--orange);font-weight:700;letter-spacing:.08em}.brand-lockup h1{font-size:23px;line-height:1;margin:5px 0 0;color:var(--navy)}.topbar-actions{display:flex;align-items:center;gap:10px}.private-badge{display:inline-flex;align-items:center;gap:7px;color:#476071;background:#fff;border:1px solid var(--line);padding:8px 12px;border-radius:999px;font-size:12px}.status-dot{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px #00a85a1c}.icon-button,.text-button{border:0;background:transparent;color:var(--navy);padding:8px}.icon-button{font-size:21px}.welcome-panel{background:linear-gradient(135deg,#061730 0%,#142d4a 100%);color:#fff;border-radius:var(--radius-xl);padding:42px clamp(22px,5vw,64px) 30px;box-shadow:var(--shadow);position:relative;overflow:hidden}.welcome-panel:after{content:"";position:absolute;width:280px;height:280px;border:1px solid #ffffff12;border-radius:50%;left:-70px;top:-110px;box-shadow:0 0 0 28px #ffffff09,0 0 0 56px #ffffff05}.welcome-copy{position:relative;z-index:1;max-width:700px}.welcome-kicker{font-size:12px;color:#ffb778;letter-spacing:.04em}.welcome-copy h2{font-size:clamp(27px,5vw,48px);line-height:1.25;margin:15px 0 10px;letter-spacing:-.02em}.welcome-copy p{margin:0;color:#cfdae7;font-size:15px}.quick-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:31px;position:relative;z-index:1}.quick-action{border:1px solid #ffffff2e;background:#ffffff12;color:#fff;padding:11px 14px;border-radius:999px;display:flex;align-items:center;gap:8px;transition:.2s ease}.quick-action:hover{background:#ffffff22;transform:translateY(-1px)}.quick-action span{color:#ffb778;font-size:17px}.example-prompt{margin-top:24px;border:1px solid #ffffff3b;background:#fff;color:var(--navy);border-radius:16px;display:flex;align-items:center;gap:12px;padding:14px 16px;width:min(560px,100%);text-align:right;position:relative;z-index:1;box-shadow:0 10px 22px #00000015}.example-icon{color:var(--orange);font-size:18px}.example-prompt span:nth-child(2){flex:1}.example-arrow{font-size:20px;color:var(--orange)}.conversation-panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-lg);margin-top:18px;box-shadow:0 12px 38px #0617300b;padding:18px}.conversation-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 4px 14px;border-bottom:1px solid var(--line)}.section-label{font-size:14px;font-weight:800;color:var(--navy);display:block}.toolbar-state{font-size:12px;color:var(--muted);display:block;margin-top:3px}.toolbar-actions{display:flex;align-items:center;gap:12px}.diagnostics-toggle{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:5px}.diagnostics-toggle input{accent-color:var(--orange)}.text-button{font-size:12px;color:var(--orange)}.messages{min-height:280px;max-height:58vh;overflow:auto;padding:18px 5px;scrollbar-color:#b9c6d3 transparent}.empty-state{display:grid;place-items:center;min-height:240px;color:var(--muted);text-align:center;padding:30px}.empty-state strong{font-size:16px;color:var(--navy);display:block;margin-bottom:6px}.message{max-width:min(760px,92%);margin:10px 0;padding:13px 15px;border-radius:17px;line-height:1.9;white-space:pre-wrap;word-break:break-word}.message.user{margin-right:auto;background:#fff4e9;border:1px solid #ffd9b4;border-bottom-right-radius:5px}.message.assistant{margin-left:auto;background:#f3f7fb;border:1px solid #e0e8f0;border-bottom-left-radius:5px}.message-label{display:block;font-size:11px;font-weight:700;color:var(--muted);margin-bottom:4px}.message-body{font-size:14px}.cards-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:13px}.ui-card{border:1px solid var(--line);background:#fff;border-radius:16px;padding:13px;box-shadow:0 6px 20px #0617300b}.ui-card h3{font-size:14px;margin:0 0 8px;color:var(--navy)}.ui-card p{font-size:12px;color:#536275;margin:5px 0;line-height:1.7}.vehicle-card{overflow:hidden;padding:0}.vehicle-image{height:136px;background:linear-gradient(135deg,#edf2f7,#dce5ee);display:grid;place-items:center;color:#8291a0;font-size:12px;overflow:hidden}.vehicle-image img{width:100%;height:100%;object-fit:cover}.vehicle-body{padding:13px}.vehicle-title{font-weight:800;color:var(--navy);font-size:15px}.vehicle-meta{display:flex;gap:7px;flex-wrap:wrap;margin:8px 0}.pill{font-size:10px;border-radius:999px;padding:4px 7px;background:var(--soft);color:#506175}.price{font-size:17px;font-weight:900;color:var(--orange);margin:9px 0}.card-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:11px}.card-action{border:1px solid #ffb477;background:#fff8f2;color:#bf5900;padding:7px 9px;border-radius:9px;font-size:11px}.card-action.primary{background:var(--orange);color:#fff;border-color:var(--orange)}.finance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}.finance-item{padding:9px;border-radius:10px;background:#f6f8fb}.finance-item small{display:block;color:var(--muted);font-size:10px}.finance-item strong{font-size:13px;color:var(--navy);display:block;margin-top:3px}.finance-item.emphasis{background:#fff4e8}.finance-item.emphasis strong{color:#c75d00}.status-chip{display:inline-flex;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:700;background:#eef7f0;color:#168449}.status-chip.warn{background:#fff4e8;color:#aa5a05}.status-chip.muted{background:#eef1f4;color:#687482}.typing-indicator{align-items:center;gap:5px;padding:0 8px 12px;color:var(--muted);font-size:11px}.typing-indicator:not([hidden]){display:flex}.typing-indicator span{width:5px;height:5px;border-radius:50%;background:var(--orange);animation:pulse 1.2s infinite}.typing-indicator span:nth-child(2){animation-delay:.15s}.typing-indicator span:nth-child(3){animation-delay:.3s}.typing-indicator em{font-style:normal;margin-right:4px}.composer-wrap{display:flex;gap:10px;align-items:flex-end;border:1px solid var(--line);background:#fbfcfd;border-radius:16px;padding:8px;padding-bottom:calc(8px + env(safe-area-inset-bottom));margin-top:8px}.composer-wrap textarea{border:0;outline:0;resize:none;flex:1;min-height:42px;max-height:140px;background:transparent;color:var(--ink);padding:10px 8px;line-height:1.7}.send-button{border:0;background:var(--orange);color:#fff;border-radius:12px;padding:11px 14px;display:flex;gap:7px;align-items:center;box-shadow:0 8px 17px #ef720033}.send-button b{font-size:18px;line-height:1}.composer-meta{display:flex;justify-content:space-between;gap:12px;color:#8693a2;font-size:10px;padding:8px 5px 0}.secure-connect{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 16px;margin-top:16px}.secure-copy{display:flex;align-items:center;gap:10px}.lock-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#eef7f0;color:var(--green);font-size:19px}.secure-copy strong,.secure-copy small{display:block}.secure-copy strong{font-size:12px;color:var(--navy)}.secure-copy small{font-size:10px;color:var(--muted);margin-top:3px}.connect-form{display:flex;gap:8px}.connect-form input{width:230px;border:1px solid var(--line);border-radius:10px;padding:9px 10px;direction:ltr;text-align:left}.connect-form button{border:0;background:var(--navy);color:#fff;border-radius:10px;padding:9px 13px}.footer-note{text-align:center;color:#8a97a5;font-size:10px;margin-top:16px}.diag{margin-top:10px;padding:10px;border-radius:10px;background:#111c2a;color:#cad6e2;direction:ltr;text-align:left;font:11px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;overflow:auto}@keyframes pulse{0%,100%{opacity:.35;transform:translateY(0)}50%{opacity:1;transform:translateY(-2px)}}@media(max-width:760px){.app-shell{padding:15px 12px 28px}.topbar{padding-bottom:18px}.private-badge{font-size:10px}.welcome-panel{padding:30px 20px 22px;border-radius:22px}.welcome-copy h2{font-size:30px}.quick-action{font-size:11px;padding:9px 11px}.conversation-panel{padding:12px;border-radius:18px}.conversation-toolbar{align-items:flex-start;flex-direction:column}.toolbar-actions{width:100%;justify-content:space-between}.messages{min-height:300px;max-height:none}.message{max-width:96%;font-size:13px}.cards-grid{grid-template-columns:1fr}.composer-wrap{position:sticky;bottom:8px;z-index:4;background:#fbfcfdf2;backdrop-filter:blur(14px)}.composer-meta{font-size:9px}.composer-meta span:last-child{display:none}.secure-connect{align-items:stretch;flex-direction:column}.connect-form input{flex:1;width:auto}.connect-form button{white-space:nowrap}.example-prompt{font-size:12px}.vehicle-image{height:150px}}


/* Authenticated path additions; existing premium layout retained. */
.app-shell,.conversation-panel,.message,.vehicle-body{min-width:0}
.messages{max-height:65vh;overflow:auto;overscroll-behavior:contain}
.message{max-width:96%;overflow-wrap:anywhere;white-space:normal}
.message-body{white-space:pre-wrap;line-height:1.95}
.cards-grid{display:grid;grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:min(360px,88vw);overflow-x:auto;scroll-snap-type:x proximity;align-items:start;padding:4px 2px 14px;max-width:100%}
.cards-grid>.ui-card,.cards-grid>.installment-card{scroll-snap-align:start;min-width:0}
.installment-card{border-top:1px solid var(--line);padding-top:14px;margin-top:14px}
.budget-warning{color:#9b4800!important;background:#fff4e8;padding:9px;border-radius:10px}
.quote-meta{font-size:10px!important;overflow-wrap:anywhere}
.composer-wrap textarea{min-width:0;font-size:16px}
button:disabled{opacity:.5;cursor:wait}
.mobile-consent{font-size:12px;line-height:1.9;padding:10px;display:block}
.mobile-consent[hidden]{display:none}
@media(max-width:760px){.messages{max-height:65dvh;min-height:240px}.message{max-width:100%;padding:11px}.cards-grid{grid-auto-columns:min(305px,76vw)}.finance-grid{gap:5px}.finance-item strong{font-size:12px}.composer-wrap{bottom:0}.private-badge{white-space:nowrap}.brand-lockup{gap:7px}.brand-lockup h1{font-size:20px}.eyebrow{font-size:9px}.topbar-actions{gap:2px}.app-shell{padding-bottom:calc(20px + env(safe-area-inset-bottom))}.welcome-copy p{line-height:1.9}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}

#conversion-area:empty{display:none}.mobile-capture-card{margin:12px 20px;max-width:100%;display:grid;gap:12px}.mobile-capture-card input[type=tel]{width:100%;max-width:340px;padding:12px;border:1px solid var(--line);border-radius:10px;direction:ltr;text-align:left;background:#fff;color:var(--ink)}.mobile-capture-card label{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.8}.mobile-capture-card input[type=checkbox]{flex:none;margin-top:7px}.mobile-capture-card p{margin:0;overflow-wrap:anywhere}

/* Simple chat: the conversation is the page; controls and consumption stay compact. */
.chat-simple{background:#f5f7fa}

.chat-simple{background:#f8fafc;min-height:100dvh;overflow:visible;touch-action:pan-y pinch-zoom}
html:has(body.chat-simple){height:auto;overflow-y:auto;scroll-behavior:auto}
.chat-simple .app-shell{width:min(100%,1000px);min-height:100dvh;height:auto;margin:auto;padding:0 24px}
.chat-simple .conversation-panel{display:flex;flex-direction:column;min-height:100dvh;min-width:0;margin:0;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}
.chat-simple [hidden]{display:none!important}
.chat-simple .conversation-toolbar{position:sticky;top:0;z-index:8;display:flex;flex-direction:row;align-items:center;gap:12px;padding:16px 4px;background:#f8fafcf5;backdrop-filter:blur(14px);border-bottom:1px solid #e7edf3}
.chat-simple .brand-lockup{gap:10px}.chat-simple .brand-mark{width:40px;height:40px;border-radius:14px;font-size:25px;box-shadow:none}
.chat-simple .brand-lockup h1{font-size:19px;line-height:1.5;margin:0}.brand-caption{font-size:11px;color:#7b8797;margin:0;line-height:1.7}
.chat-menu{position:relative;margin-inline-start:auto}.chat-menu>summary{cursor:pointer;list-style:none;font-size:28px;line-height:1;padding:8px 12px;border-radius:12px;color:#58687c}.chat-menu>summary::-webkit-details-marker{display:none}
.chat-menu .toolbar-actions{position:absolute;inset-inline-end:0;top:100%;z-index:9;display:flex;flex-direction:column;align-items:stretch;min-width:160px;padding:6px;background:white;border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 28px #06173013}
.chat-simple .text-button{font-size:12px;color:#40536b;padding:10px 12px;border-radius:8px}.chat-simple .text-button:hover{background:#f2f5f9}
.chat-simple .messages{flex:1;min-width:0;min-height:200px;max-height:none;overflow:visible;overscroll-behavior:auto;display:flex;flex-direction:column;gap:22px;padding:26px 0 20px;overflow-anchor:none}
.chat-simple .message{flex:none;order:0;scroll-margin-top:100px;margin:0;padding:0;border:0;border-radius:0;line-height:1.95;max-width:100%;min-width:0}
.chat-simple .message.user{margin-left:auto;margin-right:0;max-width:min(80%,680px);background:#eaf0f7;padding:12px 18px;border-radius:20px 20px 5px 20px}
.chat-simple .message.assistant{width:100%;background:transparent;color:#16283c}
.chat-simple .message.system{background:#fff8ef;color:#80531e;border:1px solid #f1dfc8;padding:12px 16px;border-radius:14px}
.chat-simple .message-label{font-size:.8125rem;margin:0 0 8px;color:#465970}.chat-simple .message.user .message-label{display:none}
.chat-simple .message-body{font-size:1.125rem;white-space:pre-wrap;line-height:1.95;unicode-bidi:plaintext;overflow-wrap:anywhere}.chat-simple .message.assistant .message-label{display:flex;align-items:center;gap:7px;color:#50647d;font-weight:700}.chat-simple .message.assistant .message-label:before{content:'خ';display:grid;place-items:center;width:23px;height:23px;background:#0c203d;color:white;border-radius:8px;font-size:15px}
.chat-simple .typing-indicator{flex:none;order:0;margin:0;min-height:88px;padding:14px 18px;border:1px solid #e6edf5;border-radius:20px;background:linear-gradient(115deg,#fff,#eef4fb);gap:14px;align-items:center;scroll-margin-top:100px;box-shadow:0 5px 24px #153c6510}
.thinking-orb{position:relative;flex:none;display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:#0b2242;color:#fff;font-size:29px;box-shadow:0 0 0 6px #edf3fa;animation:thinking-glow 2s ease-in-out infinite}
.thinking-copy strong{display:block;font-size:14px;font-weight:600;color:#314c6a}.thinking-wave{display:flex;align-items:center;gap:4px;height:22px;margin-top:6px}.thinking-wave i{display:block;width:4px;height:8px;border-radius:9px;background:#ec8535;animation:thinking-wave 1.1s ease-in-out infinite}.thinking-wave i:nth-child(2){animation-delay:.12s}.thinking-wave i:nth-child(3){animation-delay:.24s}.thinking-wave i:nth-child(4){animation-delay:.36s}.thinking-wave i:nth-child(5){animation-delay:.48s}
@keyframes thinking-glow{50%{box-shadow:0 0 0 9px #e4edf8}}@keyframes thinking-wave{50%{height:20px;background:#1f5487}}
.chat-simple #conversion-area{max-height:none;overflow:visible;scroll-margin-top:100px}.chat-simple .mobile-capture-card{margin:10px 0 22px}
.composer-dock{position:sticky;bottom:0;z-index:7;padding:12px 0 max(10px,env(safe-area-inset-bottom));background:linear-gradient(0deg,#f8fafc 82%,#f8fafc00)}
.chat-simple .composer-wrap{position:relative;bottom:auto;margin:0;padding:8px;gap:10px;align-items:flex-end;background:#fff;border:1px solid #d9e3ed;border-radius:24px;box-shadow:0 5px 26px #1537550c;backdrop-filter:none}
.chat-simple .composer-wrap:focus-within{border-color:#91aec9;box-shadow:0 0 0 3px #3975a70b}
.chat-simple .composer-wrap textarea{min-width:0;min-height:44px;max-height:140px;padding:9px 12px;font-size:1.0625rem;line-height:1.85;outline:none}
.chat-simple .send-button{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border-radius:50%;background:#0c2444;box-shadow:none}.chat-simple .send-button:hover{background:#174571}.chat-simple .send-button:disabled{opacity:.45}
.chat-simple .composer-meta{min-height:20px;display:flex;justify-content:center;padding-top:6px;color:#77889b;font-size:10px}.latest-message{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);border:1px solid #d7e2ed;background:white;border-radius:24px;padding:9px 16px;box-shadow:0 4px 18px #17355114;color:#294b6f;font-size:12px;white-space:nowrap}
.chat-simple .cards-grid{display:grid;grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));overflow:visible;scroll-snap-type:none;min-width:0;gap:14px;margin-top:16px}
.chat-simple .ui-card{min-width:0;max-width:100%}.chat-simple .vehicle-image{aspect-ratio:16/10;height:auto;min-height:0}.chat-simple .vehicle-image img{width:100%;height:100%;object-fit:contain;background:#f3f5f8}
.vehicle-gallery{margin:12px 0}.vehicle-gallery summary{cursor:pointer;color:#20548b;font-size:13px;padding:6px 0}.vehicle-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}.vehicle-photo-grid a{display:block;min-width:0}.vehicle-photo-grid img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:8px}
.chat-simple #history-panel{min-height:0;margin:20px 0;padding:20px;background:#fff;border:1px solid var(--line);border-radius:16px}.chat-simple #history-panel h2{font-size:16px}.chat-simple #history-list{display:flex;gap:8px;flex-wrap:wrap}.chat-simple #history-list button{padding:8px;border:1px solid var(--line);border-radius:8px;background:#f5f8fb}.chat-simple #history-messages{white-space:pre-wrap;font-size:13px;line-height:1.9}
@media(max-width:600px){.chat-simple .app-shell{padding:0 14px}.chat-simple .conversation-toolbar{padding:12px 0}.chat-simple .brand-lockup h1{font-size:17px}.chat-simple .brand-mark{width:35px;height:35px}.brand-caption{font-size:10px}.chat-simple .messages{padding-top:20px;gap:20px}.chat-simple .message-body{font-size:1.0625rem}.chat-simple .message.user{max-width:88%;padding:10px 14px}.chat-simple .message{scroll-margin-top:86px}.chat-simple .cards-grid{grid-template-columns:minmax(0,1fr)}.chat-simple .composer-wrap textarea{font-size:1.0625rem}.chat-simple .composer-wrap{border-radius:22px}.chat-simple .typing-indicator{padding:13px;min-height:86px}.thinking-copy strong{font-size:.9375rem}.thinking-orb{width:42px;height:42px;font-size:26px}}
@media(prefers-reduced-motion:reduce){.thinking-orb,.thinking-wave i{animation:none!important}}

.knowledge-sources{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.knowledge-sources a{color:#416688;background:#edf3f9;border:1px solid #e0e8f1;border-radius:20px;padding:4px 12px;font-size:11px;text-decoration:none}.knowledge-sources a:hover{text-decoration:underline}

/* Khodrochi artwork: local scope; the document remains the scrolling surface. */
:root{--kh-launcher-size:76px;--kh-launcher-right:22px;--kh-launcher-bottom:22px;--kh-blue:#08376e;--kh-yellow:#f3c433}
.kh-mascot,.kh-avatar,.kh-welcome-logo{display:inline-block;flex:none;line-height:0}.kh-mascot picture,.kh-avatar img,.kh-welcome-logo img{display:block}.kh-mascot img,.kh-avatar img,.kh-welcome-logo img{max-width:100%;object-fit:contain;height:auto}
.kh-header-mascot{flex:none;width:48px;height:48px}.kh-header-mascot img{width:48px;height:48px}.kh-pending-mascot{flex:none;width:80px;height:80px}.kh-pending-mascot img{width:80px;height:80px}
.chat-simple .message.assistant .message-label:before{content:none}.chat-simple .message.assistant .message-label .kh-avatar{width:28px;height:28px}.chat-simple .message.user .kh-avatar{display:none}
.chat-simple .kh-welcome-message{display:grid;grid-template-columns:110px minmax(0,1fr);column-gap:20px;align-items:center;padding:20px 0 28px}.kh-welcome-message>.kh-welcome-logo{grid-column:1;grid-row:1/3;justify-self:center}.kh-welcome-message>.message-label{align-self:end}.kh-welcome-message>.message-body{align-self:start}
.chat-simple .conversation-toolbar{gap:10px}.kh-minimize{margin-inline-start:auto;border:1px solid #dce5ef;color:var(--kh-blue);background:#fff;border-radius:12px;min-width:44px;min-height:44px;font:28px/1 Tahoma;flex:none}.chat-simple .chat-menu{margin-inline-start:0}.kh-minimize:hover{background:#edf4fb}
.chat-simple .typing-indicator{min-height:112px;border-color:#dbe7f6;background:linear-gradient(110deg,#fff,#edf5ff);gap:18px}.thinking-copy strong{font-size:1rem}.thinking-wave i{background:var(--kh-yellow)}
body.chat-simple>.kh-chat-rest[hidden],body.chat-simple>.kh-chat-launcher[hidden],body.chat-simple>.app-shell[hidden]{display:none!important}.kh-chat-rest{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:30px 24px 130px;text-align:center}.kh-chat-rest h2{font-size:22px;color:var(--kh-blue);margin:0}.kh-chat-rest p{font-size:14px;color:#687e96;line-height:1.9;margin:0}
.kh-chat-launcher{position:fixed;right:calc(var(--kh-launcher-right) + env(safe-area-inset-right,0px));bottom:calc(var(--kh-launcher-bottom) + env(safe-area-inset-bottom,0px));z-index:12;width:var(--kh-launcher-size);height:var(--kh-launcher-size);padding:0;border:0;background:transparent;border-radius:50%;isolation:isolate;filter:drop-shadow(0 7px 12px #0b31632b);touch-action:manipulation}.kh-chat-launcher .kh-mascot,.kh-chat-launcher img{width:100%;height:100%;max-width:none}.kh-chat-launcher:focus-visible{outline:3px solid #e8b914;outline-offset:6px}.kh-reply-badge{display:none;position:absolute;bottom:100%;right:0;background:var(--kh-blue);color:white;border-radius:12px;white-space:nowrap;padding:6px 10px;font-size:11px;line-height:1.6}.kh-chat-launcher.has-reply .kh-reply-badge{display:block}
@media(max-width:600px){:root{--kh-launcher-size:64px;--kh-launcher-right:14px;--kh-launcher-bottom:16px}.kh-header-mascot,.kh-header-mascot img{width:42px;height:42px}.chat-simple .brand-caption{max-width:190px;font-size:10px}.chat-simple .kh-welcome-message{grid-template-columns:82px minmax(0,1fr);gap:12px;padding:12px 0 22px}.kh-welcome-message>.kh-welcome-logo{width:76px}.kh-pending-mascot,.kh-pending-mascot img{width:68px;height:68px}.chat-simple .typing-indicator{gap:12px;padding:12px;min-height:98px}.thinking-copy strong{font-size:.9375rem}}
@media(prefers-reduced-motion:reduce){.kh-chat-launcher{filter:none}.thinking-wave i{animation:none!important}}

.chat-simple .conversation-toolbar .brand-lockup{flex:1;min-width:0}.chat-simple .brand-lockup>div:last-child{min-width:0}.chat-simple .kh-minimize{margin-inline-start:0}

/* Read tools and auxiliary forms participate in the chronological document flow. */
.chat-simple .messages>#contact-area,.chat-simple .messages>#conversion-area{width:100%;min-width:0;flex:none;margin:10px 0;scroll-margin-top:100px}.vehicle-gallery>summary,.inspection-section>summary{display:flex;align-items:center;min-height:48px;padding:12px 14px;font-size:14px;font-weight:700;cursor:pointer;border:1px solid #d8e4f0;border-radius:12px;background:#f1f6fc;color:#08376e;list-style:none}.vehicle-gallery>summary:after,.inspection-section>summary:after{content:"⌄";margin-inline-start:auto;font-size:20px}.vehicle-gallery>summary:focus-visible,.inspection-section>summary:focus-visible{outline:3px solid #ef720055;outline-offset:2px}.vehicle-photo-grid a{min-height:44px}.vehicle-specifications{margin:14px 0}.vehicle-specifications>div{display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px solid #edf1f5}.vehicle-specifications dt{font-size:12px;color:#64748b}.vehicle-specifications dd{margin:0;text-align:left;font-size:13px}.inspection-section{margin-top:12px}.inspection-item{padding:10px;border-bottom:1px solid #e6edf4}.inspection-item>strong{display:inline-block;margin-inline-end:12px}.report-download{display:flex;justify-content:center;align-items:center;min-height:48px;margin-top:14px;font-size:14px;text-decoration:none}

/* IME overlay mode: reserve the obscured area without locking the document scroll. */
.chat-simple .app-shell[data-keyboard="open"] .composer-dock{position:fixed;bottom:var(--kh-keyboard-inset,0px);left:var(--kh-composer-left,14px);width:var(--kh-composer-width,calc(100% - 28px));padding-bottom:8px;z-index:10}
.chat-simple .app-shell[data-keyboard="open"] .messages{padding-bottom:calc(20px + var(--kh-composer-height,80px) + var(--kh-keyboard-inset,0px))}
.chat-simple .app-shell[data-keyboard="open"] .composer-wrap textarea{max-height:min(110px,25dvh)}
.chat-simple .app-shell[data-keyboard="open"] .typing-indicator{min-height:74px;padding:8px 12px;gap:10px}
.chat-simple .app-shell[data-keyboard="open"] .kh-pending-mascot,.chat-simple .app-shell[data-keyboard="open"] .kh-pending-mascot img{width:48px;height:48px}

/* Readable vehicle cards: keep the existing hierarchy and a compact two-column action row. */
.chat-simple .vehicle-card .vehicle-title{font-size:1rem;line-height:1.7;font-weight:700}
.chat-simple .vehicle-card .pill{font-size:.75rem;line-height:1.65;padding:5px 8px;color:#40536b}
.chat-simple .vehicle-card .vehicle-meta{gap:6px}
.chat-simple .vehicle-card .vehicle-body>p{font-size:.8125rem;line-height:1.8}
.chat-simple .vehicle-card .vehicle-body>.status-chip{font-size:.75rem}
.chat-simple .vehicle-card .vehicle-specifications{line-height:1.8}
.chat-simple .vehicle-card .vehicle-specifications dt{font-size:.8125rem;color:#52657a;flex:0 0 auto;max-inline-size:40%}
.chat-simple .vehicle-card .vehicle-specifications dd{font-size:.875rem;color:#16283c;min-width:0;overflow-wrap:anywhere}
.chat-simple .vehicle-card .card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.chat-simple .vehicle-card .card-actions .card-action{min-width:0;min-height:44px;padding:9px 8px;font-size:.875rem;line-height:1.65;font-weight:600;white-space:normal;text-align:center}
.chat-simple .vehicle-card .vehicle-gallery>summary{font-size:.9375rem}

/* Financial figures and public inspection text: visual presentation only. */
.chat-simple .installment-card{font-size:.875rem;line-height:1.8;min-width:0}
.chat-simple .installment-card h3,.chat-simple .inspection-card>h3{font-size:1rem;line-height:1.7}
.chat-simple .installment-card .finance-grid{gap:8px}
.chat-simple .installment-card .finance-item{min-width:0;padding:10px}
.chat-simple .installment-card .finance-item small{font-size:.8125rem;line-height:1.8;color:#52657a}
.chat-simple .installment-card .finance-item strong{font-size:.875rem;line-height:1.8;font-weight:700;word-break:normal;overflow-wrap:normal;font-variant-numeric:tabular-nums}
.chat-simple .installment-card .quote-meta{font-size:.75rem!important;line-height:1.85;color:#52657a}
.chat-simple .installment-card .budget-warning{font-size:.875rem;line-height:1.85}
.chat-simple .installment-card .status-chip,.chat-simple .inspection-card .status-chip{font-size:.75rem;line-height:1.7}
.chat-simple .installment-card>.card-action,.chat-simple .inspection-card .report-download{font-size:.875rem;line-height:1.8;min-height:44px;max-width:100%;padding:9px 12px;white-space:normal;text-align:center}
.chat-simple .inspection-card>p,.chat-simple .inspection-card .inspection-item p{font-size:.875rem;line-height:1.85;color:#40536b}
.chat-simple .inspection-card .inspection-section>summary{font-size:.9375rem;line-height:1.8}
.chat-simple .inspection-card .inspection-item{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 10px;line-height:1.85;padding:12px 0}
.chat-simple .inspection-card .inspection-item>strong{font-size:.875rem;line-height:1.85;flex:1 1 140px;min-width:0;margin-inline-end:0;overflow-wrap:anywhere}
.chat-simple .inspection-card .inspection-item>.status-chip{flex:none}
.chat-simple .inspection-card .inspection-item>p{flex-basis:100%;margin:0}
@media(max-width:380px){.chat-simple .installment-card .finance-grid{grid-template-columns:minmax(0,1fr)}.chat-simple .installment-card .finance-item{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:10px;align-items:start}.chat-simple .installment-card .finance-item strong{margin-top:0;text-align:left}}
