.exact-assist{--xa-red:#e3202b;--xa-ink:#15171c;--xa-text2:#3a3f4a;--xa-text3:#5b616e;--xa-muted:#8a909c;--xa-page:#f4f5f7;--xa-line:#e6e8ec;--xa-control:#dcdfE4;--xa-field:#cdd1d8;box-sizing:border-box;min-height:100%;background:var(--xa-page);color:var(--xa-ink);font-family:'Golos Text',system-ui,-apple-system,sans-serif;display:flex;flex-direction:column}.exact-assist *{box-sizing:border-box}.exact-assist button,.exact-assist textarea{font:inherit;color:inherit}.exact-assist button{cursor:pointer}.exact-assist svg{width:24px;height:24px;flex:0 0 auto}.exact-assist__identity{min-height:61px;padding:10px 16px;border-bottom:1px solid var(--xa-line);background:#fff;display:flex;align-items:center;gap:12px}.exact-assist__identity>img{width:40px;height:40px;flex:0 0 40px;border-radius:50%;object-fit:cover}.exact-assist__identity>span{min-width:0;flex:1;display:flex;flex-direction:column}.exact-assist__identity b{font-size:15px;line-height:20px;font-weight:600}.exact-assist__identity small{color:var(--xa-text3);font-size:12px;line-height:16px}.exact-assist__unavailable{margin:12px 16px 0;padding:10px 12px;border:1px solid var(--xa-line);border-radius:12px;background:#fff;display:flex;align-items:flex-start;gap:10px}.exact-assist__unavailable>svg{width:20px;height:20px;color:var(--xa-text3)}.exact-assist__unavailable>span{display:flex;flex-direction:column;gap:2px}.exact-assist__unavailable b{font-size:14px;line-height:19px}.exact-assist__unavailable small{color:var(--xa-text3);font-size:13px;line-height:18px}.exact-assist__log{flex:1;padding:16px 16px 12px;display:flex;flex-direction:column;gap:12px}.exact-assist__starter{padding:12px 8px 8px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}.exact-assist__starter img{width:96px;height:96px;border:3px solid #fff;border-radius:50%;object-fit:cover;box-shadow:0 2px 8px rgba(0,0,0,.08)}.exact-assist__starter h2{margin:0;font-size:20px;line-height:26px}.exact-assist__starter p{max-width:320px;margin:0;color:var(--xa-text2);font-size:14px;line-height:20px;text-wrap:pretty}.exact-assist__prompts{display:flex;flex-direction:column;gap:8px}.exact-assist__prompts button{width:100%;min-height:48px;padding:10px 14px;border:1px solid var(--xa-control);border-radius:12px;background:#fff;text-align:left;font-size:15px;line-height:20px;display:flex;align-items:center;gap:10px}.exact-assist__prompts button svg{width:20px;height:20px;color:var(--xa-text3)}.exact-assist__prompts button span{flex:1}.exact-assist button:disabled{cursor:default;opacity:.55}.exact-assist__message{display:flex;flex-direction:column;gap:6px}.exact-assist__message--user{align-items:flex-end}.exact-assist__message--assistant{align-items:flex-start}.exact-assist__bubble{max-width:86%;padding:10px 14px;border:1px solid var(--xa-line);border-radius:4px 16px 16px 16px;background:#fff;font-size:15px;line-height:21px;white-space:pre-line;overflow-wrap:anywhere}.exact-assist__message--user .exact-assist__bubble{border:0;border-radius:16px 16px 4px 16px;background:var(--xa-ink);color:#fff}.exact-assist__message-photo{width:168px;height:124px;overflow:hidden;border-radius:14px;background:#121317;display:block}.exact-assist__message-photo img{width:100%;height:100%;display:block;object-fit:cover}.exact-assist__sources{width:min(86%,360px);display:flex;flex-direction:column;gap:6px}.exact-assist__sources>small{padding-left:4px;color:var(--xa-text3);font-size:12px;line-height:16px}.exact-assist__sources>a,.exact-assist__sources>button{width:100%;min-height:44px;padding:6px 10px 6px 8px;border:1px solid var(--xa-control);border-radius:10px;background:#fff;text-decoration:none;text-align:left;display:flex;align-items:center;gap:10px}.exact-assist__sources :is(a,button)>svg:first-child{width:18px;height:18px;color:var(--xa-red)}.exact-assist__sources :is(a,button)>span{min-width:0;flex:1;font-size:13px;line-height:17px}.exact-assist__sources :is(a,button)>svg:last-child{width:16px;height:16px;color:var(--xa-muted)}.exact-assist__source-current{padding:0 4px;color:var(--xa-text3);font-size:12px;line-height:16px}.exact-assist__actions{max-width:92%;display:flex;flex-wrap:wrap;gap:6px}.exact-assist__actions button{min-height:40px;padding:6px 12px;border:1px solid var(--xa-ink);border-radius:20px;background:#fff;text-align:left;font-size:14px;line-height:18px;font-weight:500}.exact-assist__error{max-width:86%;padding:10px 12px;border-radius:12px;background:#fdecec;color:#9b1c1c;display:flex;flex-direction:column;gap:8px}.exact-assist__error>span{display:flex;align-items:flex-start;gap:8px;font-size:14px;line-height:20px}.exact-assist__error>span>svg{width:18px;height:18px;color:#c81e1e}.exact-assist__error button{align-self:flex-start;height:40px;padding:0 14px;border:0;border-radius:10px;background:#fff;color:#9b1c1c;font-size:14px;font-weight:600;display:flex;align-items:center;gap:6px}.exact-assist__error button svg{width:18px;height:18px}.exact-assist__typing{align-self:flex-start;padding:14px 16px;border:1px solid var(--xa-line);border-radius:4px 16px 16px 16px;background:#fff;display:flex;gap:5px}.exact-assist__typing i{width:7px;height:7px;border-radius:50%;background:var(--xa-muted);animation:exact-assist-pulse 1s ease-in-out infinite}.exact-assist__typing i:nth-child(2){animation-delay:.2s}.exact-assist__typing i:nth-child(3){animation-delay:.4s}.exact-assist__form{position:sticky;bottom:0;margin-top:auto;padding:8px 8px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--xa-line);background:#fff;display:flex;flex-direction:column;gap:8px}.exact-assist__draft-photo{padding:0 8px;display:flex;align-items:center;gap:10px}.exact-assist__draft-photo>span{position:relative;width:64px;height:64px;flex:0 0 64px}.exact-assist__draft-photo a{width:64px;height:64px;overflow:hidden;border-radius:10px;background:#121317;display:block}.exact-assist__draft-photo img{width:100%;height:100%;display:block;object-fit:cover}.exact-assist__draft-photo button{position:absolute;top:-10px;right:-10px;width:32px;height:32px;padding:0;border:2px solid #fff;border-radius:50%;background:var(--xa-ink);color:#fff;display:grid;place-items:center}.exact-assist__draft-photo button svg{width:16px;height:16px;stroke-width:2.4}.exact-assist__draft-photo p{min-width:0;flex:1;margin:0;color:var(--xa-text3);font-size:13px;line-height:18px}.exact-assist__image-status,.exact-assist__image-error{margin:0;padding:0 8px;font-size:13px;line-height:18px}.exact-assist__image-status{color:var(--xa-text3)}.exact-assist__image-error{color:#9b1c1c}.exact-assist__composer{display:flex;align-items:flex-end;gap:6px}.exact-assist__composer>button{width:44px;height:44px;flex:0 0 44px;padding:0;border:0;border-radius:50%;background:transparent;display:grid;place-items:center}.exact-assist__composer>button:last-child{background:#c9ccd2;color:#fff}.exact-assist__composer textarea:valid+button,.exact-assist__composer>button:last-child.is-ready{background:var(--xa-red)}.exact-assist__composer>button:last-child:disabled{background:#c9ccd2;opacity:1}.exact-assist__composer>button:last-child svg{width:22px;height:22px;stroke-width:2.2}.exact-assist__composer textarea{min-width:0;min-height:44px;max-height:120px;flex:1;padding:11px 14px;border:1px solid var(--xa-field);border-radius:22px;background:#f7f8fa;font-size:16px;line-height:20px;resize:none}#chatAttachDialog{padding:0;border:0;background:transparent;max-width:none;width:100%;height:100%;overflow:visible}#chatAttachDialog::backdrop{background:rgba(14,15,18,.5)}#chatAttachDialog>div{position:absolute;right:0;bottom:0;left:0;padding:8px 16px max(32px,env(safe-area-inset-bottom));border-radius:20px 20px 0 0;background:#fff;font-family:'Golos Text',system-ui,-apple-system,sans-serif;display:flex;flex-direction:column;gap:12px}#chatAttachDialog .cd-sheet-handle{width:36px;height:4px;align-self:center;border-radius:2px;background:#cdd1d8}#chatAttachDialog .dialog-head{display:flex;align-items:center;justify-content:space-between}#chatAttachDialog h2{margin:0;font-size:20px;line-height:26px}#chatAttachDialog [data-close-chat-attach]{width:44px;height:44px;margin-right:-10px;border:0;border-radius:50%;background:transparent;font-size:0}#chatAttachDialog [data-close-chat-attach] svg{width:24px;height:24px}#chatAttachDialog .cd-photo-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}#chatAttachDialog [data-chat-image-picker]{min-height:88px;padding:14px;border:1px solid #dcdfE4;border-radius:12px;background:#fff;text-align:left;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between}#chatAttachDialog [data-chat-image-picker] svg{width:26px;height:26px}#chatAttachDialog [data-chat-image-picker]>span:last-child{font-size:15px;font-weight:600}#chatAttachDialog>div>p{margin:0;color:#5b616e;font-size:13px;line-height:18px}@keyframes exact-assist-pulse{0%,100%{opacity:.35;transform:translateY(0)}50%{opacity:1;transform:translateY(-2px)}}@media(prefers-reduced-motion:reduce){.exact-assist__typing i{animation:none}}@media(max-width:359px){.exact-assist__identity small{font-size:11px}.exact-assist__log{padding-right:12px;padding-left:12px}.exact-assist__bubble,.exact-assist__error{max-width:92%}}
.exact-assist__meta{padding:0 4px;color:var(--xa-text3);font-size:11px;line-height:14px}
.exact-assist__error>span>span{min-width:0;display:flex;flex-direction:column;gap:3px}.exact-assist__error>span small{font-size:12px;line-height:16px;color:#7d1717;overflow-wrap:anywhere}

/* C01 occupies the authenticated assistant viewport: 56px header + 52px source subheader. */
body.cdx-chat main{min-height:0;overflow:hidden}
body.cdx-chat #app{min-height:0;height:100%;display:flex;flex-direction:column}
body.cdx-chat .exact-assist{height:var(--cdx-content-height,calc(100dvh - 108px - env(safe-area-inset-top)));min-height:0;max-height:var(--cdx-content-height,calc(100dvh - 108px - env(safe-area-inset-top)));overflow:hidden;flex:1 1 auto}
body.cdx-chat .exact-assist__identity,body.cdx-chat .exact-assist__unavailable,body.cdx-chat .exact-assist__form{flex:0 0 auto}
body.cdx-chat .exact-assist__log{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scroll-padding-block:16px}
body.cdx-chat .exact-assist__form{z-index:2;margin-top:0}
