/* One rounded focus surface, and a centered raised send control. */
#smart-main #ia-message,#smart-main #ia-message:focus,#smart-main #ia-message:focus-visible{outline:0!important;outline-offset:0!important;border:0!important;box-shadow:none!important}
#smart-main .ia-compose-row{align-items:center!important;outline:0!important}
#smart-main .ia-compose-row:focus-within{outline:0!important;border-color:#c09d59!important;box-shadow:inset 0 1px 2px #fff,0 0 0 2px #cba55c18,0 5px 16px #77643a10!important}
#smart-main #ia-send{display:grid!important;place-items:center!important;align-items:center!important;justify-content:center!important;align-self:center!important;box-sizing:border-box!important;padding:0!important;margin:0!important;width:52px!important;height:52px!important;min-width:52px!important;flex:0 0 52px!important;border-radius:17px!important;line-height:1!important;outline:0!important;outline-offset:0!important}
#smart-main #ia-send svg{display:block!important;width:29px!important;height:29px!important;margin:0!important;padding:0!important;overflow:visible;filter:drop-shadow(0 1px .35px #fff6c9b8) drop-shadow(0 1px .65px #44391e35)!important;transform:none!important}
#smart-main #ia-send:not(:disabled):active{transform:none!important;filter:brightness(.99)}
#smart-main #ia-send:focus-visible{outline:0!important;box-shadow:inset 0 0 0 2px #7e62299c,inset 0 2px 1px #fffdf3,0 4px 10px #5e4b2024!important}
/* The popup and every highlight are contained by their own rounded frame. */
#smart-main .fw-picker{display:flex;flex-direction:column;gap:0;box-sizing:border-box;min-width:0;max-width:calc(100vw - 24px);overflow:hidden;padding:11px;border-radius:18px;isolation:isolate}
#smart-main .fw-picker[hidden]{display:none!important}
#smart-main .fw-picker-title{flex:none;margin:0 3px 9px}
#smart-main .fw-emoji-search{flex:none;box-sizing:border-box;min-width:0;width:100%;height:36px;margin:0 0 9px;padding:7px 10px;border:1px solid #dddcc9;border-radius:11px;background:#f8f9f1;color:#42624a;font:inherit;font-size:12px;outline:0;box-shadow:none}
#smart-main .fw-emoji-search:focus-visible{outline:0!important;border-color:#bca268;box-shadow:inset 0 0 0 1px #c7ac72!important}
#smart-main .fw-emoji-scroll{min-height:0;max-height:252px;overflow-x:hidden;overflow-y:scroll;overscroll-behavior:contain;scrollbar-gutter:stable;padding:3px 5px 3px 2px;border-radius:10px;scrollbar-width:thin;scrollbar-color:#b0bda4 #f0f2e8;outline:0}
#smart-main .fw-emoji-scroll::-webkit-scrollbar{width:8px}#smart-main .fw-emoji-scroll::-webkit-scrollbar-track{background:#f0f2e8;border-radius:9px}#smart-main .fw-emoji-scroll::-webkit-scrollbar-thumb{background:#b0bda4;border:2px solid #f0f2e8;border-radius:9px}
#smart-main .fw-emoji-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;min-width:0;padding:1px}
#smart-main .fw-picker button{box-sizing:border-box;min-width:0;max-width:100%;padding:0;transform:none!important;outline-offset:0!important;overflow:hidden}
#smart-main .fw-emoji-grid button{display:grid;place-items:center;min-width:0;width:100%;height:38px;padding:0;border:0;border-radius:10px;background:transparent;font-family:'Segoe UI Emoji','Apple Color Emoji','Noto Color Emoji',sans-serif;font-size:25px;line-height:1;cursor:pointer}
#smart-main .fw-emoji-grid button:hover,#smart-main .fw-emoji-grid button:active{background:#e8eddf;transform:none!important}
#smart-main .fw-picker button:focus-visible{outline:0!important;box-shadow:inset 0 0 0 2px #ba9c59!important}
#smart-main .fw-emoji-empty{grid-column:1/-1;margin:10px 4px;font-size:12px;color:#6a7a65;line-height:1.5}
#smart-main .fw-stickers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;min-height:0;overflow:hidden}
#smart-main .fw-stickers button{min-width:0;max-width:100%;height:104px;padding:6px;border-radius:13px;overflow:hidden;gap:4px;transform:none!important}
#smart-main .fw-stickers button:hover{background:#eaf0e1}
#smart-main .fw-stickers img{flex:none;width:64px;height:64px;max-width:100%;object-fit:contain;animation:none!important;transform:none}
#smart-main .fw-sticker-preview{overflow:hidden;padding:4px 0;min-height:48px}
#smart-main .fw-sticker-preview img{animation:none!important;transform:none;flex:none;object-fit:contain}
#smart-main .fw-stickers .fw-react-sleep,#smart-main .fw-sticker-preview .fw-react-sleep{transform-origin:50% 92%;animation:fw-sleep-breath 5.2s ease-in-out infinite!important;will-change:transform}
#smart-main .fw-stickers .fw-react-fedya,#smart-main .fw-sticker-preview .fw-react-fedya{transform-origin:50% 94%;animation:fw-cat-breath 4.8s ease-in-out infinite!important}
#smart-main .fw-stickers .fw-react-hello,#smart-main .fw-sticker-preview .fw-react-hello{animation:fw-robot-warmth 5s ease-in-out infinite!important}
@keyframes fw-sleep-breath{0%,100%{transform:scale(1,1)}48%{transform:scale(1.004,1.022)}}
@keyframes fw-cat-breath{0%,100%{transform:scale(1,1)}50%{transform:scale(1.002,1.008)}}
@keyframes fw-robot-warmth{0%,100%{filter:brightness(1)}50%{filter:brightness(1.045)}}
@media(prefers-reduced-motion:reduce){#smart-main .fw-stickers img,#smart-main .fw-sticker-preview img{animation:none!important;transform:none!important;filter:none!important;will-change:auto}}


/* CHAT1: fixed shell, one conversation scroller, pinned composer. */
.fw-widget-surface .fw-body{display:flex!important;flex-direction:column;overflow:hidden!important;min-height:0!important;min-width:0}
.fw-widget-surface #smart-main,.fw-widget-surface #smart-main>.ia-wrap,.fw-widget-surface #smart-main .ia-layout{display:flex!important;flex-direction:column!important;flex:1 1 0!important;height:100%!important;min-height:0!important;min-width:0!important;max-height:100%!important;overflow:hidden!important}
.fw-widget-surface #smart-main>.ia-wrap{width:100%!important}
.fw-widget-surface #smart-main .ia-layout{gap:0!important}
.fw-widget-surface #smart-main .ia-dialogue{display:flex!important;flex-direction:column!important;flex:1 1 0!important;height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important}
.fw-widget-surface #smart-main .ia-messages{flex:1 1 0!important;height:auto!important;min-height:0!important;max-height:none!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;overflow-anchor:auto;scroll-padding-block:12px;touch-action:pan-y;scrollbar-gutter:stable}
.fw-widget-surface #smart-main .ia-compose{flex:0 0 auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding:5px 12px 8px!important}
#smart-main #ia-chat-form{position:relative;min-width:0}
.fw-widget-surface #smart-main .ia-compose-row{padding:5px!important;min-height:60px!important}
.fw-widget-surface #smart-main #ia-message{height:49px!important;max-height:74px!important;overflow:auto!important;min-width:0}
.fw-widget-surface #smart-main .fw-tools{gap:2px;padding:0 0 3px;min-height:44px}
.fw-widget-surface #smart-main .fw-tools button{height:44px;min-width:44px;width:44px}
.fw-widget-surface #smart-main .fw-tools .fw-restart{margin-left:auto;padding:0 3px;width:auto;min-width:0;font-size:10px}
.fw-widget-surface #smart-main .fw-tools .fw-more{width:auto;padding:0 5px;font-size:10px}
.fw-widget-surface #smart-main .ia-compose>.ia-fine{margin:4px 1px 0!important;font-size:9px!important;line-height:1.35!important}
.fw-widget-surface #smart-main #ia-error{padding:5px 8px!important;margin:4px 0 0!important;font-size:10px!important;line-height:1.4!important;max-height:45px;overflow:auto}
#smart-main .fw-widget-actions{position:absolute;left:0;bottom:calc(100% - 40px);z-index:9;display:flex;flex-direction:column;gap:0;max-width:100%;min-width:190px;padding:6px;background:#fffdf7;border:1px solid #d6c9a9;border-radius:14px;box-shadow:0 7px 25px #16362926}
#smart-main .fw-widget-actions[hidden]{display:none!important}
#smart-main .fw-widget-actions button{display:block;width:100%;min-height:44px;padding:7px 11px;text-align:left;border:0;border-radius:9px;font-size:12px;white-space:normal}
#smart-main .fw-widget-actions button:hover{background:#edf2e5}
#smart-main .ia-contact-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px;margin-top:5px;min-width:0}
#smart-main .ia-contact-actions>a,#smart-main .ia-contact-actions>button{box-sizing:border-box;display:flex;align-items:center;justify-content:center;text-align:center;min-width:0;min-height:44px;height:auto;margin:0;padding:6px 7px;border:1px solid #cbd4bd;border-radius:12px;background:#eef3e7;color:#345940;font:inherit;font-size:11px;line-height:1.3;text-decoration:none;cursor:pointer;white-space:normal}
#smart-main .ia-contact-actions>a{background:#e6efe2;border-color:#c2cfb8}
#smart-main .ia-contact-actions>:focus-visible,#smart-main .ia-contact-card :focus-visible,.fw-header-close:focus-visible{outline:2px solid #b28d47;outline-offset:2px}
.fw-header-close{display:grid;place-items:center;flex:none;width:36px;height:36px;padding:0;border:1px solid #e5d1a640;border-radius:10px;background:transparent;color:#f6e6bd;font-size:26px;line-height:1;cursor:pointer}
.fw-heading>div:not(.ie-companions){min-width:0}
.fw-heading .fw-expand{margin-left:auto}
.fw-widget-surface .ia-section{margin:12px 0 6px!important;padding:12px 0!important;min-width:0}
.fw-widget-surface .ia-section-head{display:flex;align-items:start;gap:8px}
.fw-widget-surface .ia-section h2{font-size:20px!important;line-height:1.3}
.fw-widget-surface .ia-results{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
.fw-widget-surface .ia-card,.fw-widget-surface .ia-empty{min-width:0;max-width:100%}
.fw-widget-surface .ia-section .ia-button,.fw-widget-surface .ia-section .ia-handoff-action{font-size:12px!important;min-height:44px;padding:8px 10px!important;white-space:normal!important}
.fw-widget-surface .ia-context{flex:none;margin:0 0 10px;font-size:12px}
/* Whole approved images, with breathing only. Sent stickers have no speech bubble. */
#smart-main .ia-message.ia-sticker-message,#smart-main .ia-message.user.ia-sticker-message{display:flex;flex-direction:column;align-items:flex-end;gap:5px;margin:8px 0 15px!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;max-width:100%;overflow:visible}
#smart-main .ia-chat-sticker{display:block;flex:none;width:160px;height:160px;max-width:65%;object-fit:contain;background:transparent;border:0;transform-origin:50% 94%;animation:none!important}
#smart-main .ia-chat-sticker.fw-react-sleep{transform-origin:50% 92%;animation:fw-sleep-breath 5.2s ease-in-out infinite!important}
#smart-main .ia-chat-sticker.fw-react-fedya{animation:fw-cat-breath 4.8s ease-in-out infinite!important}
#smart-main .ia-chat-sticker.fw-react-hello{animation:fw-robot-warmth 5s ease-in-out infinite!important}
#smart-main .ia-sticker-status{font-size:10px;color:#687961;line-height:1.5;text-align:right}
#smart-main .ia-sticker-status button{min-height:44px;padding:5px;font-size:11px}
/* Sensitive callback fields exist only in this DOM card, never chat history/draft. */
#smart-main .ia-contact-card{box-sizing:border-box;margin:12px 0 18px;padding:14px;border:1px solid #c8d2bc;border-radius:17px;background:linear-gradient(145deg,#fffef8,#eff4e9);color:#31523d;box-shadow:0 4px 15px #2b4c3010;overflow-wrap:anywhere;min-width:0;max-width:100%}
#smart-main .ia-contact-caption{display:flex;align-items:center;justify-content:space-between;gap:8px}
#smart-main .ia-contact-card h3{margin:0;font-size:17px;line-height:1.35;color:#294d37}
#smart-main .ia-contact-caption>button{flex:none;min-height:44px;padding:5px 3px;font-size:11px;color:#607254}
#smart-main .ia-contact-intro,#smart-main .ia-contact-status,#smart-main .ia-contact-card form>p{margin:6px 0 10px;font-size:12px;line-height:1.5}
#smart-main .ia-contact-form{display:grid;gap:10px;min-width:0}
#smart-main .ia-contact-field{display:grid;gap:5px;font-size:11px;line-height:1.4;color:#58704f;min-width:0}
#smart-main .ia-contact-field>input,#smart-main .ia-contact-field>textarea{box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:44px;margin:0;padding:10px;border:1px solid #cbd5be;border-radius:10px;background:#fffefb;color:#244630;font:inherit;font-size:16px;line-height:1.4;resize:vertical}
#smart-main .ia-contact-field>textarea{min-height:86px;max-height:220px}
#smart-main .ia-contact-consent{display:flex;align-items:flex-start;gap:9px;font-size:11px;line-height:1.55;cursor:pointer}
#smart-main .ia-contact-consent>input,#smart-main .ia-contact-projects input{appearance:auto;flex:none;width:20px;height:20px;min-width:20px;margin:2px 0 0;accent-color:#3f6946}
#smart-main .ia-contact-consent a,#smart-main .ia-contact-card a{color:#365f42;text-decoration:underline;text-underline-offset:3px}
#smart-main .ia-contact-card .ia-button{box-sizing:border-box;width:100%;min-height:44px;padding:10px;border:1px solid #416448;border-radius:11px;background:#34583e;color:#fffdf2;font:inherit;font-size:13px;white-space:normal}
#smart-main .ia-contact-card .ia-button:disabled{opacity:.6}
#smart-main .ia-contact-projects{display:grid;gap:5px;min-width:0;margin:0;padding:9px;border:1px solid #d2dac7;border-radius:10px}
#smart-main .ia-contact-projects legend{padding:0 4px;font-size:11px}
#smart-main .ia-contact-projects label{display:flex;align-items:center;gap:8px;min-height:36px;font-size:12px}
#smart-main .ia-contact-beta{font-size:10px!important;color:#75836a}
#smart-main .ia-contact-status:empty{display:none}
#smart-main .ia-contact-success{font-size:13px!important;color:#315b3d}
/* The previous form remains available inside the same history scroller. */
.fw-widget-surface #ia-messages>#contact{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:8px 0!important;margin:8px 0!important;background:transparent!important;overflow:visible!important}
.fw-widget-surface #ia-messages>#contact input:not([type=checkbox]),.fw-widget-surface #ia-messages>#contact select,.fw-widget-surface #ia-messages>#contact textarea{font-size:16px!important}
.fw-widget-surface #ia-messages>#contact .quiz-card{padding:13px 10px!important}
/* Standalone /podbor keeps a bounded dialogue as well. Its other page sections stay usable. */
body:not(.ie-floating-open) #smart-main .ia-dialogue{display:flex;flex-direction:column;height:min(760px,calc(var(--ie-chat-vh,100dvh) - 30px));min-height:0;overflow:hidden}
body:not(.ie-floating-open) #smart-main .ia-messages{flex:1 1 0;min-height:0!important;max-height:none!important;overflow-y:auto;overscroll-behavior:contain}
body:not(.ie-floating-open) #smart-main .ia-compose{flex:none}
@media(max-width:800px){
 .fw-widget-surface .fw-panel,.fw-widget-surface.fw-is-expanded .fw-panel{top:calc(var(--fw-vtop,0px) + max(6px,env(safe-area-inset-top,0px)))!important;left:6px!important;right:6px!important;bottom:auto!important;width:auto!important;height:calc(var(--fw-vh,100dvh) - max(6px,env(safe-area-inset-top,0px)) - max(6px,env(safe-area-inset-bottom,0px)))!important;max-height:none!important;min-height:0!important;border-radius:18px}
 .fw-widget-surface.fw-is-open>.fw-launcher{display:none!important}
 .fw-widget-surface .fw-heading{padding:6px 9px!important;min-height:70px;gap:7px}
 .fw-widget-surface .fw-heading strong{font-size:12px;line-height:1.35}
 .fw-widget-surface .fw-heading small{font-size:9px;line-height:1.35}
 .fw-widget-surface .fw-expand{width:30px;height:36px}
 .fw-widget-surface .fw-header-close{width:36px;height:36px}
 body:not(.ie-floating-open) #smart-main .ia-dialogue{height:calc(var(--ie-chat-vh,100dvh) - 20px);max-height:900px}
}
@media(max-width:360px){
 .fw-widget-surface #smart-main .ia-compose{padding-left:8px!important;padding-right:8px!important}
 .fw-widget-surface .fw-heading strong{font-size:11px}
 .fw-widget-surface .fw-heading small{font-size:8px}
 #smart-main .ia-contact-actions>a,#smart-main .ia-contact-actions>button{font-size:10px}
 #smart-main .ia-contact-card{padding:10px}
}
@media(max-height:550px){
 .fw-widget-surface .fw-heading{min-height:49px!important;padding-top:4px!important;padding-bottom:4px!important}
 #ie-consultant-widget .fw-header-mascot{width:44px!important;height:44px!important;min-width:44px!important}
 #ie-consultant-widget .fw-header-mascot .ie-companions__stage,#ie-consultant-widget .fw-header-mascot canvas{width:44px!important;height:44px!important}
 .fw-widget-surface .fw-heading small{display:none}
 .fw-widget-surface #smart-main .ia-compose>.ia-fine{display:none}
 .fw-widget-surface #smart-main .ia-compose{padding-top:1px!important;padding-bottom:4px!important}
 .fw-widget-surface #smart-main .fw-tools{min-height:44px;padding:0}
 .fw-widget-surface #smart-main .fw-tools button{height:44px}
 .fw-widget-surface #smart-main .ia-contact-actions{margin-top:3px}
 .fw-widget-surface #smart-main .ia-compose-row{min-height:54px!important;padding:3px!important}
 .fw-widget-surface #smart-main #ia-message{height:44px!important;min-height:44px!important;padding:6px!important}
 .fw-widget-surface #smart-main #ia-send{width:44px!important;min-width:44px!important;height:44px!important;flex-basis:44px!important;border-radius:13px!important}
 .fw-widget-surface .fw-dialogue-duo{width:120px!important;height:76px!important}
 .fw-widget-surface .fw-dialogue-duo canvas,.fw-widget-surface .fw-dialogue-duo .ie-companions__stage{height:76px!important}
}
@media(prefers-reduced-motion:reduce){#smart-main .ia-chat-sticker{animation:none!important;transform:none!important;filter:none!important}}

@supports(overflow:clip){.fw-widget-surface .fw-body,.fw-widget-surface #smart-main,.fw-widget-surface #smart-main>.ia-wrap,.fw-widget-surface #smart-main .ia-layout,.fw-widget-surface #smart-main .ia-dialogue{overflow:clip!important}}

/* Mobile keyboards may resize visualViewport without changing CSS media height. */
.fw-widget-surface.fw-viewport-short .fw-heading{min-height:49px!important;padding-top:4px!important;padding-bottom:4px!important}
#ie-consultant-widget.fw-viewport-short .fw-header-mascot{width:44px!important;height:44px!important;min-width:44px!important}
#ie-consultant-widget.fw-viewport-short .fw-header-mascot .ie-companions__stage,#ie-consultant-widget.fw-viewport-short .fw-header-mascot canvas{width:44px!important;height:44px!important}
.fw-widget-surface.fw-viewport-short .fw-heading small,.fw-widget-surface.fw-viewport-short #smart-main .ia-compose>.ia-fine{display:none}
.fw-widget-surface.fw-viewport-short #smart-main .ia-compose{padding-top:1px!important;padding-bottom:4px!important}
.fw-widget-surface.fw-viewport-short #smart-main .fw-tools{padding:0;min-height:44px}
.fw-widget-surface.fw-viewport-short #smart-main .ia-compose-row{min-height:54px!important;padding:3px!important}
.fw-widget-surface.fw-viewport-short #smart-main #ia-message{height:44px!important;min-height:44px!important;padding:6px!important}
.fw-widget-surface.fw-viewport-short #smart-main #ia-send{width:44px!important;min-width:44px!important;height:44px!important;flex-basis:44px!important;border-radius:13px!important}

/* Clear, balanced window controls and one unread welcome. */
#ie-consultant-widget .fw-heading>.fw-expand,#ie-consultant-widget .fw-heading>.fw-header-close{position:relative;display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;min-width:42px;min-height:42px;box-sizing:border-box;padding:0;border:1px solid #e8cd8d99;border-radius:13px;color:#fff3cc;background:linear-gradient(145deg,#e9d49c22 0%,#416b512e 58%,#102f252b 100%);box-shadow:inset 0 1px 0 #fff4c926,inset 0 -1px 0 #071e1850,0 2px 6px #071c1526;cursor:pointer;transition:background .18s ease,border-color .18s ease,box-shadow .18s ease;transform:none}
#ie-consultant-widget .fw-heading>.fw-expand svg{width:20px;height:20px;stroke-width:2.25;filter:drop-shadow(0 1px 0 #08261d88)}
#ie-consultant-widget .fw-heading>.fw-header-close{font-size:0}
#ie-consultant-widget .fw-heading>.fw-header-close:before,#ie-consultant-widget .fw-heading>.fw-header-close:after{content:'';position:absolute;left:50%;top:50%;width:18px;height:2.4px;border-radius:3px;background:currentColor;box-shadow:0 1px 0 #08261d66;transform:translate(-50%,-50%) rotate(45deg);pointer-events:none}
#ie-consultant-widget .fw-heading>.fw-header-close:after{transform:translate(-50%,-50%) rotate(-45deg)}
#ie-consultant-widget .fw-heading>.fw-expand:hover,#ie-consultant-widget .fw-heading>.fw-header-close:hover{border-color:#f1d694e6;background:linear-gradient(145deg,#e9d49c35,#6b885638);box-shadow:inset 0 1px 0 #fff4c945,0 0 0 2px #e6ca8714,0 3px 8px #08221a26}
#ie-consultant-widget .fw-heading>.fw-expand:focus-visible,#ie-consultant-widget .fw-heading>.fw-header-close:focus-visible{outline:2px solid #fff0c4;outline-offset:2px}
#ie-consultant-widget .fw-heading>.fw-expand:active,#ie-consultant-widget .fw-heading>.fw-header-close:active{background:#c4b16b30;box-shadow:inset 0 2px 5px #071e1845;transform:none}
#ie-consultant-widget .fw-badge{right:-4px;top:-3px;min-width:26px;height:26px;box-sizing:border-box;padding:0 6px;border:2px solid #fffaf0;border-radius:50%;background:#e74e4e;color:#fff;font-size:13px;font-weight:800;line-height:1;box-shadow:0 3px 9px #9e303238;pointer-events:none;text-shadow:0 1px 1px #8b282826}
@media(max-width:360px){#ie-consultant-widget .fw-heading{gap:6px!important;padding-left:8px!important;padding-right:8px!important}#ie-consultant-widget .fw-heading strong{font-size:10.5px!important}}
@media(prefers-reduced-motion:reduce){#ie-consultant-widget .fw-heading>.fw-expand,#ie-consultant-widget .fw-heading>.fw-header-close{transition:none}}
