body .argus-dock{left:4%!important;right:auto!important}
body.ae-has-launcher{padding-bottom:116px;scroll-padding-bottom:116px}
.ae-traveller{position:fixed;z-index:1200;pointer-events:none;filter:drop-shadow(0 3px 3px #07162233)}
.ae-traveller[hidden]{display:none}
.ae-studio-column{gap:0!important}
body #aspect-projects{left:max(20px,4%)!important;right:auto!important}
.ae-studio-column{min-width:0;display:flex;flex-direction:column;align-self:center;gap:80px}
.ae-studio-column .brand-promises{width:100%;margin:0}
@media(min-width:1201px) and (max-height:900px){.ae-studio-column{align-self:start}.ae-studio-column .brand-promise{padding-block:12px}.ae-studio-column .brand-promise:first-child{padding-top:0}.ae-studio-column .brand-promise:last-child{padding-bottom:0}.ae-studio-column .brand-promise h2{margin-bottom:0}}
.ae-studio{position:relative;width:330px;max-width:100%;margin-left:auto;isolation:isolate;color:#19364a;font:400 14px/1.45 'Segoe UI',Arial,sans-serif;letter-spacing:0;z-index:10}
.ae-studio *,.ae-chat *{box-sizing:border-box;letter-spacing:0}
.ae-studio .ae-stage{display:block;width:100%;aspect-ratio:1.12;padding:0;border:0;border-radius:0;background:transparent;min-height:0;min-width:0;cursor:pointer;touch-action:pan-y}
.ae-studio .ae-stage:disabled{cursor:default;opacity:1}
.ae-stage canvas{display:block;width:100%;height:100%}
.ae-static-fallback{display:block;margin:auto;max-height:230px;width:auto}
.ae-studio-tools{display:flex;justify-content:flex-end;gap:6px;margin-top:-4px}
.ae-studio button,.ae-studio summary,.ae-chat button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;min-width:44px;padding:10px;border:1px solid #8aa5b7;border-radius:6px;background:#edf4f7f2;color:#173c56;font:500 13px/1.3 'Segoe UI',Arial,sans-serif;cursor:pointer;touch-action:manipulation}
.ae-studio button svg,.ae-studio summary svg,.ae-chat button svg{width:19px;height:19px;flex:none;stroke-width:1.6}
.ae-studio button:focus-visible,.ae-studio summary:focus-visible,.ae-studio select:focus-visible,.ae-chat :focus-visible{outline:3px solid #e0b96f;outline-offset:3px}
.ae-studio .ae-ask{background:#153d52ed;color:#fff;border-color:#c3d7e391;padding-inline:14px}
.ae-studio .ae-ask:hover{background:#214e65}
.ae-ask{min-width:0!important}
.ae-ask span{overflow-wrap:anywhere}
.ae-motion-toggle{flex:none}
.ae-settings[hidden]{display:none!important}
body.ae-focus .ae-motion-toggle{display:none}
.ae-welcome{position:absolute;right:0;bottom:calc(100% - 20px);width:290px;max-width:calc(100vw - 32px);padding:14px 38px 14px 16px;border:1px solid #abc1c9;border-radius:8px;background:#f4f8faf7;box-shadow:0 5px 24px #06192922;color:#15354b;font-size:14px;line-height:1.5;z-index:15}
.ae-welcome p{margin:0;color:inherit;font:inherit;text-shadow:none}
.ae-welcome .ae-dismiss{position:absolute;right:0;top:0;border:0;background:transparent;min-width:34px;min-height:34px;padding:8px}
.ae-welcome .ae-dismiss svg{width:15px;height:15px}
.ae-settings{position:relative}
.ae-settings summary{list-style:none;width:44px;user-select:none}
.ae-settings summary::-webkit-details-marker{display:none}
.ae-settings-body{position:absolute;right:0;bottom:54px;width:300px;max-width:calc(100vw - 32px);border:1px solid #97b0bd;background:#f4f8fa;padding:14px;border-radius:8px;box-shadow:0 8px 30px #071c3030;z-index:30;color:#19364a}
.ae-settings-body label{display:grid;gap:6px;font-size:13px}
.ae-settings-body select{height:44px;width:100%;min-width:0;border:1px solid #94acb9;border-radius:4px;background:#fff;color:#173c56;font:14px 'Segoe UI',Arial,sans-serif;padding:8px}
.ae-test-actions{display:flex;gap:6px;margin-top:10px;align-items:center}
.ae-rate{margin-left:auto;font-size:12px;font-variant-numeric:tabular-nums}
.ae-review-header,.ae-preview-actions{display:none}
.ae-studio-dock{display:contents}
.ae-studio-dock.ae-active{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:end;padding:36px 20px 20px;position:relative;z-index:5}
body .ae-active .argus-dock{position:relative;bottom:auto;left:auto!important;right:auto!important;margin:0!important;max-width:100%;align-self:end}
.ae-focus-shade{position:fixed;inset:0;background:#06162277;backdrop-filter:blur(2px);z-index:1000}
body.ae-focus{overflow:hidden}
body.ae-focus .ae-studio{position:fixed;z-index:1001;top:50%;left:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);width:min(1100px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);margin:0;display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:20px;align-items:center;overflow:auto;overscroll-behavior:contain}
body.ae-focus .ae-stage{height:min(75dvh,650px);aspect-ratio:auto;min-width:0}
body.ae-focus .ae-welcome,body.ae-focus .ae-ask,body.ae-focus .ae-settings summary{display:none!important}
body.ae-focus .ae-studio-tools{display:block;margin:0;min-width:0}
body.ae-focus .ae-settings{width:100%}
body.ae-focus .ae-settings-body{position:static;width:100%;max-width:none;padding:16px;box-shadow:0 8px 30px #071c3030}
body.ae-focus .ae-review-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
body.ae-focus .ae-review-header strong{font-size:17px;line-height:1.4}
body.ae-focus .ae-review-header button{border:0;background:transparent;padding:8px}
body.ae-focus .ae-test-actions{margin-top:12px}
body.ae-focus .ae-test-actions button:nth-child(3){display:none}
body.ae-focus .ae-preview-actions{display:flex;gap:6px;align-items:center;margin-top:8px}
body.ae-focus .ae-preview-actions button[aria-pressed=true]{background:#214b60;color:#fff}
.ae-scene-count{margin-left:auto;font-size:12px;font-variant-numeric:tabular-nums}
body.ae-focus .ae-preview-actions button:disabled{opacity:.45;cursor:default}
@media(max-width:719px){body.ae-focus .ae-studio{display:flex;flex-direction:column;gap:12px;width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}body.ae-focus .ae-stage{height:clamp(180px,calc(100dvh - 290px),450px);flex:none}body.ae-focus .ae-studio-tools{width:100%}body.ae-focus .ae-settings-body{padding:10px 14px}body.ae-focus .ae-review-header{margin-bottom:4px}body.ae-focus .ae-test-actions{margin-top:8px}}
.ae-chat{position:fixed;bottom:24px;right:calc(4% + 360px);width:360px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 80px);display:flex;flex-direction:column;z-index:1100;border:1px solid #8ba7b7;border-radius:8px;background:#f4f8fa;box-shadow:0 12px 44px #071c3040;color:#19364a;font:14px/1.5 'Segoe UI',Arial,sans-serif}
.ae-chat header{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid #c6d6df}
.ae-chat strong{display:block;font-size:16px;color:#173c56}
.ae-chat small{display:block;font-size:10px;line-height:1.6;margin-top:4px;color:#4a6271}
.ae-chat header button{border:0;background:transparent}
.ae-messages{padding:16px;min-height:120px;max-height:320px;overflow:auto;overscroll-behavior:contain}
.ae-message{padding:10px 12px;border-radius:6px;margin:0 0 12px;max-width:95%;overflow-wrap:anywhere;color:#19364a;font:14px/1.55 'Segoe UI',Arial,sans-serif;text-shadow:none}
.ae-message.engineer{background:#e1ebef;margin-right:auto}
.ae-message.visitor{background:#214b60;color:#fff;margin-left:auto}
.ae-topics{display:grid;grid-template-columns:1fr;gap:6px;margin:0 0 14px}
.ae-chat .ae-topic{justify-content:flex-start;text-align:left;background:#fff;border-color:#b4c7d1;padding:10px 12px;font-size:14px}
.ae-chat .ae-topic:hover{background:#e3eef2;border-color:#527c92}
.ae-topic span{min-width:0;overflow-wrap:anywhere}
.ae-message-form{display:flex;gap:8px;align-items:end;padding:12px;border-top:1px solid #c6d6df}
.ae-message-form textarea{display:block;width:100%;min-width:0;resize:vertical;min-height:52px;max-height:140px;border:1px solid #94acb9;border-radius:4px;background:#fff;color:#19364a;padding:10px;font:16px/1.4 'Segoe UI',Arial,sans-serif}
.ae-message-form button{background:#214b60;color:#fff}
.ae-chat[hidden],.ae-welcome[hidden],.ae-focus-shade[hidden],.ae-studio-column[hidden]{display:none!important}
.ae-chat.ae-chat-inline{position:relative;inset:auto;z-index:10;margin:0 16px 24px auto;width:calc(100% - 32px);max-width:480px;max-height:490px}
.ae-chat-inline .ae-messages{min-height:50px;max-height:320px}
@media(max-width:600px){.ae-studio{scroll-margin-top:120px}}
@media(max-width:1200px){.ae-studio-dock.ae-active{grid-template-columns:minmax(0,1fr) 300px}.ae-chat{right:20px;bottom:20px}.ae-studio-column{display:none}}
@media(max-width:480px){.ae-studio-dock.ae-active{grid-template-columns:76px minmax(0,1fr);gap:10px;padding:46px 16px 20px}.ae-studio{width:250px}.ae-studio .ae-ask{padding-inline:8px;font-size:12px;gap:5px}.ae-studio-tools{gap:4px}.ae-studio button svg{width:17px;height:17px}.ae-studio summary{min-width:36px;width:36px;padding:7px}.ae-chat{right:16px;bottom:12px;max-height:48dvh}.ae-chat .ae-messages{min-height:50px}.ae-welcome{font-size:13px;width:270px}.ae-chat header{padding:8px 12px}}
@media(prefers-reduced-motion:reduce){.ae-studio *{transition:none!important;animation:none!important}}
@media(max-width:480px){.ae-studio-tools{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;gap:5px}.ae-studio .ae-ask{grid-column:1/-1}.ae-motion-toggle{grid-column:2}.ae-settings{grid-column:3}.ae-studio .ae-settings summary{width:44px;min-width:44px}.ae-focus .ae-studio-tools{display:block}}
body:not(.ae-focus) .ae-studio.ae-persistent{position:fixed;right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));width:300px;max-width:calc(100% - 24px);margin:0;z-index:80}
body:not(.ae-focus) .ae-persistent .ae-stage{cursor:grab;touch-action:none}
body:not(.ae-focus) .ae-persistent .ae-stage{width:min(240px,max(108px,calc((100dvh - 240px)*1.12)));margin-left:auto}
.ae-stage[aria-grabbed=true]{cursor:grabbing!important}
@media(max-width:480px){body:not(.ae-focus) .ae-persistent .ae-stage{max-width:210px}}
body .ae-chat{right:12px;bottom:120px;width:360px;max-height:calc(100dvh - 160px)}
body:has(dialog[open]) .ae-persistent{visibility:hidden}
@media(max-width:480px){body .ae-chat{max-height:calc(100dvh - 144px);bottom:116px}.ae-chat .ae-messages{max-height:none;flex:1;min-height:0}.ae-chat .ae-message-form{flex:none}.ae-chat header{flex:none}}
/* ASPECT-ARGUS-CONSULT-05V-01 — the real ARGUS assistant in the STUDIO11 chat (contract v1). Same palette as the chat above. */
.ae-chat .ae-message{white-space:pre-line}
.ae-chat .ae-head-actions{display:flex;align-items:center;gap:0;margin-left:auto;flex:none}
.ae-chat header>div:first-child{min-width:0}
.ae-chat .ae-reply{max-width:100%}
.ae-chat .ae-reply-body.ae-collapsed{max-height:calc(1.55em * 7);overflow:hidden;-webkit-mask-image:linear-gradient(#000 62%,transparent);mask-image:linear-gradient(#000 62%,transparent)}
.ae-chat .ae-reply-card{margin-top:10px}
.ae-chat .ae-reply-card strong{display:block;font-size:14px;margin:0 0 2px}
.ae-chat button.ae-more{min-height:36px;padding:2px 0;border:0;background:transparent;color:#174f6c;text-decoration:underline;font-weight:600}
.ae-chat .ae-reply-links-lead{margin:10px 0 0;padding-top:8px;border-top:1px solid #c6d6df;font-size:12px;color:#4a6271}
.ae-chat .ae-reply-links{list-style:none;margin:2px 0 0;padding:0}
.ae-chat .ae-reply-links a,.ae-chat .ae-contacts a{color:#174f6c;text-decoration:underline;text-underline-offset:2px}
.ae-chat .ae-reply-links a{position:relative;display:inline-flex;align-items:center;min-height:32px}
.ae-chat .ae-reply-notice{display:block;margin-top:8px;font-size:12px;color:#4a6271}
.ae-chat .ae-question{border-left:3px solid #2f6f8f}
.ae-chat .ae-typing{color:#4a6271;font-style:italic;background:transparent;padding-left:0}
.ae-chat .ae-actions{display:flex;flex-wrap:wrap;gap:8px;margin:-4px 0 12px}
.ae-chat .ae-actions button{min-height:40px;background:#fff;border-color:#527c92;font-size:13px}
.ae-chat .ae-error{background:#fbeee8;color:#6a2c17}
.ae-chat .ae-system{background:transparent;border:1px dashed #94acb9;font-size:13px}
.ae-chat .ae-consult-hint{margin:0;padding:6px 12px 0;font-size:12px;line-height:1.4;color:#6a2c17}
.ae-chat .ae-consult-hint:empty{display:none}
.ae-chat .ae-message-form button:disabled{opacity:.5;cursor:not-allowed}
.ae-chat .ae-confirm{padding:10px 14px 0;border-bottom:1px solid #c6d6df;font-size:14px}
.ae-chat .ae-confirm p{margin:0 0 8px}
.ae-chat .ae-confirm .ae-actions{margin:0 0 10px}
.ae-chat .ae-primary,.ae-chat .ae-actions .ae-primary{background:#214b60;color:#fff;border-color:#214b60}
.ae-chat button:disabled{opacity:.5;cursor:not-allowed}
/* the hidden note is anchored to its own link (position:relative above), never to the fixed chat panel: otherwise it adds invisible height to the panel */
.ae-chat .ae-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
body #ae-chat>.ae-consult-panel{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:14px 16px}
body #ae-chat:not([data-view=panel])>.ae-consult-panel{display:none}
body #ae-chat[data-view=panel]>.ae-messages,body #ae-chat[data-view=panel]>.ae-message-form,body #ae-chat[data-view=panel]>.ae-consult-hint{display:none}
.ae-chat .ae-consult-panel h3{margin:0 0 6px;font-size:16px;line-height:1.3;color:#173c56}
.ae-chat .ae-consult-panel h3:focus{outline:none}
.ae-chat .ae-panel-lead{margin:0 0 12px;font-size:13px;color:#4a6271}
.ae-chat .ae-field{display:grid;gap:4px;margin:0 0 12px}
.ae-chat .ae-field[hidden]{display:none}
.ae-chat .ae-field label{font-size:13px;font-weight:600;color:#19364a}
.ae-chat .ae-field input,.ae-chat .ae-field select,.ae-chat .ae-field textarea{display:block;width:100%;min-width:0;min-height:44px;border:1px solid #94acb9;border-radius:4px;background:#fff;color:#19364a;padding:9px 10px;font:16px/1.4 'Segoe UI',Arial,sans-serif}
.ae-chat .ae-field textarea{resize:vertical;min-height:72px;max-height:180px}
.ae-chat .ae-field [aria-invalid=true]{border-color:#b33a12;box-shadow:0 0 0 2px #f3c6b3}
.ae-chat .ae-field-error{margin:0;font-size:12px;color:#8a2a0f}
.ae-chat .ae-field-error:empty{display:none}
.ae-chat .ae-panel-status{margin:0 0 10px;font-size:13px;color:#6a2c17}
.ae-chat .ae-panel-status:empty{display:none}
.ae-chat .ae-panel-actions{display:flex;flex-wrap:wrap;gap:8px}
.ae-chat .ae-preview dl{margin:0 0 12px}
.ae-chat .ae-preview dt{font-size:12px;color:#4a6271}
.ae-chat .ae-preview dd{margin:0 0 8px;white-space:pre-line;overflow-wrap:anywhere}
.ae-chat .ae-unverified{font-size:12px;color:#6a5a1d}
.ae-chat .ae-preview-sub{margin:0 0 4px;font-size:12px;color:#4a6271}
.ae-chat .ae-preview-list{margin:0 0 12px;padding-left:18px;font-size:13px}
.ae-chat .ae-preview-list li{margin:0 0 4px;overflow-wrap:anywhere}
.ae-chat .ae-notice-box{margin:0 0 12px;padding:8px 10px;border:1px solid #e0c56f;border-radius:4px;background:#fff6dd;font-size:13px}
.ae-chat .ae-consent{display:flex;gap:10px;align-items:flex-start;margin:12px 0;font-size:14px;line-height:1.45;cursor:pointer}
.ae-chat .ae-consent input{width:22px;height:22px;flex:none;margin:1px 0 0;accent-color:#214b60}
.ae-chat .ae-receipt p{margin:0 0 10px}
.ae-chat .ae-receipt-no{font-size:22px;font-weight:700;letter-spacing:.02em;color:#173c56}
/* dictation button (owner request 16-11) */
.ae-chat .ae-message-form .ae-mic{background:#fff;color:#214b60;border-color:#94acb9}
.ae-chat .ae-message-form .ae-mic.ae-listening{background:#b33a12;border-color:#b33a12;color:#fff}
@media(prefers-reduced-motion:no-preference){.ae-chat .ae-message-form .ae-mic.ae-listening{animation:ae-mic-pulse 1.2s ease-in-out infinite}}
@keyframes ae-mic-pulse{50%{box-shadow:0 0 0 6px #b33a1233}}
.ae-chat .ae-consult-hint[data-kind=voice]{color:#174f6c}
/* resizable window (owner request 17-11, src/chat-size.js): the bottom-right corner stays where the layout put it; every size is
   clamped to the visible room, so the header with its buttons is always on screen */
body .ae-chat[data-ae-size]{width:min(var(--ae-size-w,360px),calc(100vw - 24px))}
body .ae-chat[data-ae-size][data-ae-size-h]{height:min(var(--ae-size-h,100000px),calc(100dvh - 160px))}
body .ae-chat[data-ae-size] .ae-messages{max-height:var(--ae-size-mh,320px)}
body .ae-chat[data-ae-size][data-ae-size-h] .ae-messages{max-height:none;flex:1 1 auto;min-height:0}
@media(min-width:1201px){body .ae-chat[data-ae-size]{--ae-size-w:440px;--ae-size-mh:460px}}
body .ae-chat[data-ae-size=max]{--ae-size-w:760px}
body #ae-chat[data-ae-placement][data-ae-size]{--ae-size-right:calc(var(--ae-chat-left) + var(--ae-chat-width));--ae-size-fit:min(var(--ae-size-w,360px),calc(var(--ae-size-right) - 12px));left:calc(var(--ae-size-right) - var(--ae-size-fit));width:var(--ae-size-fit)}
body #ae-chat[data-ae-placement][data-ae-size][data-ae-size-h]{height:min(var(--ae-size-h,100000px),var(--ae-chat-height))}
body #ae-chat[data-ae-placement][data-ae-size]>.ae-messages{max-height:var(--ae-size-mh,320px)}
body #ae-chat[data-ae-placement][data-ae-size][data-ae-size-h]>.ae-messages{max-height:none}
.ae-chat .ae-size-edge{position:absolute;z-index:3;touch-action:none}
.ae-chat .ae-size-y{top:0;left:16px;right:0;height:6px;cursor:ns-resize}
.ae-chat .ae-size-x{top:16px;left:0;bottom:0;width:6px;cursor:ew-resize}
.ae-chat .ae-size-xy{top:0;left:0;width:16px;height:16px;cursor:nwse-resize;background:linear-gradient(135deg,transparent 0 4px,#6f8ea0 4px 5.5px,transparent 5.5px 8px,#6f8ea0 8px 9.5px,transparent 9.5px)}
@media(max-width:719px),(pointer:coarse){.ae-chat .ae-size-edge{display:none}}
@media(max-width:479px){.ae-chat .ae-size-toggle{display:none}}
/* the field for the visitor's text grows with the text (owner request 17-11, src/input-grow.js); the script sets the limit */
.ae-chat .ae-message-form textarea{resize:none;max-height:var(--ae-input-max,140px);overflow-y:auto}
/* the chat on a phone (owner 17-11 via ARGUS №16, src/phone.js): no figure; closed — a round button with Argus's face; open — the whole
   visible screen, like a messenger. body[data-ae-phone] is set by the script; a wider screen keeps everything above as it is */
.ae-phone-ask,.ae-chat .ae-chat-face,.ae-chat .ae-phone-only{display:none}
#ae-chat:focus{outline:none}
body[data-ae-phone] #ae-studio{display:none!important}
body[data-ae-phone].ae-has-launcher{padding-bottom:76px;scroll-padding-bottom:76px}
body[data-ae-phone] .ae-phone-ask{display:inline-flex;align-items:center;justify-content:center;position:fixed;right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));z-index:80;width:56px;height:56px;margin:0;padding:0;border:2px solid #c3d7e3;border-radius:50%;background:#153d52;color:#fff;box-shadow:0 6px 20px #071c3059;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
body[data-ae-phone] .ae-phone-ask:focus-visible{outline:3px solid #e0b96f;outline-offset:3px}
.ae-phone-ask .ae-face{display:block;width:42px;height:42px}
.ae-phone-ask-text{position:absolute;right:64px;top:50%;transform:translateY(-50%);padding:8px 12px;border-radius:18px;background:#153d52;color:#fff;font:600 13px/1.2 'Segoe UI',Arial,sans-serif;white-space:nowrap;box-shadow:0 6px 20px #071c3059;pointer-events:none;animation:ae-phone-ask-text 9s steps(1) forwards}
@keyframes ae-phone-ask-text{0%{opacity:0}8%{opacity:1}92%{opacity:1}100%{opacity:0;visibility:hidden}}
html[data-ae-phone-open],html[data-ae-phone-open] body{overflow:hidden}
body[data-ae-phone] #ae-chat#ae-chat{position:fixed;inset:var(--ae-view-top,0px) 0 auto 0;width:auto;max-width:none;height:var(--ae-view-height,100dvh);max-height:none;margin:0;border:0;border-radius:0;box-shadow:none;overflow:hidden;overscroll-behavior:contain;z-index:1100}
body[data-ae-phone] #ae-chat#ae-chat>header{flex:none;gap:8px;min-height:56px;padding:6px 6px 6px 12px;padding-top:max(6px,env(safe-area-inset-top));touch-action:none}
body[data-ae-phone] #ae-chat .ae-chat-face{display:block;order:-1;flex:none;width:34px;height:34px}
body[data-ae-phone] #ae-chat .ae-chat-face .ae-face{display:block;width:100%;height:100%}
body[data-ae-phone] #ae-chat#ae-chat>header>div:first-child{flex:1 1 auto;min-width:0}
body[data-ae-phone] #ae-chat#ae-chat>header strong{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-ae-phone] #ae-chat#ae-chat>header small{display:none}
body[data-ae-phone] #ae-chat .ae-phone-off,body[data-ae-phone] #ae-chat .ae-size-toggle,body[data-ae-phone] #ae-chat .ae-size-edge{display:none}
body[data-ae-phone] #ae-chat .ae-phone-only{display:block}
body[data-ae-phone] #ae-chat#ae-chat>.ae-messages{flex:1 1 auto;min-height:0;max-height:none;padding:12px 12px 4px}
body[data-ae-phone] #ae-chat#ae-chat .ae-message{max-width:92%;padding:10px 12px;margin:0 0 12px;line-height:1.55}
body[data-ae-phone] #ae-chat#ae-chat>.ae-message-form{flex:none;padding:8px;padding-bottom:max(8px,env(safe-area-inset-bottom))}
body[data-ae-phone] #ae-chat#ae-chat .ae-message-form textarea{height:auto;max-height:var(--ae-input-max,140px)}
body[data-ae-phone] #ae-chat#ae-chat .ae-message-form button{min-width:52px;min-height:52px;border-radius:14px}
body[data-ae-phone] #ae-chat#ae-chat .ae-message-form button svg{width:22px;height:22px}
/* night scene on a phone: the full-screen chat is dark too */
body[data-ae-phone][data-scene=night] #ae-chat{background:#0f1e2a;color:#dbe7ee}
body[data-ae-phone][data-scene=night] #ae-chat header{border-bottom-color:#2a4254}
body[data-ae-phone][data-scene=night] #ae-chat strong{color:#eef5f8}
body[data-ae-phone][data-scene=night] #ae-chat small{color:#9db4c2}
body[data-ae-phone][data-scene=night] #ae-chat button{border-color:#3d5d72;background:#162a38;color:#dbe7ee}
body[data-ae-phone][data-scene=night] #ae-chat header button{background:transparent}
body[data-ae-phone][data-scene=night] #ae-chat .ae-message{color:#dbe7ee}
body[data-ae-phone][data-scene=night] #ae-chat .ae-message.engineer{background:#1b3040}
body[data-ae-phone][data-scene=night] #ae-chat .ae-message.visitor{background:#2a6585;color:#fff}
body[data-ae-phone][data-scene=night] #ae-chat .ae-topic{background:#162a38;border-color:#36566a}
body[data-ae-phone][data-scene=night] #ae-chat .ae-topic:hover{background:#1f394b;border-color:#5a8aa5}
body[data-ae-phone][data-scene=night] #ae-chat .ae-message-form{border-top-color:#2a4254}
body[data-ae-phone][data-scene=night] #ae-chat .ae-message-form textarea,body[data-ae-phone][data-scene=night] #ae-chat .ae-field input,body[data-ae-phone][data-scene=night] #ae-chat .ae-field select,body[data-ae-phone][data-scene=night] #ae-chat .ae-field textarea{border-color:#3d5d72;background:#0b1721;color:#eef5f8}
body[data-ae-phone][data-scene=night] #ae-chat textarea::placeholder,body[data-ae-phone][data-scene=night] #ae-chat input::placeholder{color:#8aa2b1}
body[data-ae-phone][data-scene=night] #ae-chat .ae-message-form button{background:#2a6585;border-color:#2a6585;color:#fff}
body[data-ae-phone][data-scene=night] #ae-chat .ae-message-form .ae-mic{background:#162a38;border-color:#3d5d72;color:#dbe7ee}
body[data-ae-phone][data-scene=night] #ae-chat .ae-message-form .ae-mic.ae-listening{background:#b33a12;border-color:#b33a12;color:#fff}
body[data-ae-phone][data-scene=night] #ae-chat button.ae-more{background:transparent;color:#8fc6e3}
body[data-ae-phone][data-scene=night] #ae-chat .ae-reply-links-lead{border-top-color:#2a4254;color:#9db4c2}
body[data-ae-phone][data-scene=night] #ae-chat .ae-reply-links a,body[data-ae-phone][data-scene=night] #ae-chat .ae-contacts a{color:#8fc6e3}
body[data-ae-phone][data-scene=night] #ae-chat .ae-reply-notice,body[data-ae-phone][data-scene=night] #ae-chat .ae-panel-lead,body[data-ae-phone][data-scene=night] #ae-chat .ae-preview dt,body[data-ae-phone][data-scene=night] #ae-chat .ae-preview-sub{color:#9db4c2}
body[data-ae-phone][data-scene=night] #ae-chat .ae-question{border-left-color:#5aa6cc}
body[data-ae-phone][data-scene=night] #ae-chat .ae-typing{color:#9db4c2;background:transparent}
body[data-ae-phone][data-scene=night] #ae-chat .ae-actions button{background:#162a38;border-color:#4b7a94;color:#dbe7ee}
body[data-ae-phone][data-scene=night] #ae-chat .ae-error{background:#3a1c14;color:#ffc9b5}
body[data-ae-phone][data-scene=night] #ae-chat .ae-system{background:transparent;border-color:#3d5d72}
body[data-ae-phone][data-scene=night] #ae-chat .ae-consult-hint,body[data-ae-phone][data-scene=night] #ae-chat .ae-panel-status{color:#ffb59b}
body[data-ae-phone][data-scene=night] #ae-chat .ae-consult-hint[data-kind=voice]{color:#8fc6e3}
body[data-ae-phone][data-scene=night] #ae-chat .ae-confirm{border-bottom-color:#2a4254}
body[data-ae-phone][data-scene=night] #ae-chat .ae-primary,body[data-ae-phone][data-scene=night] #ae-chat .ae-actions .ae-primary{background:#2a6585;border-color:#2a6585;color:#fff}
body[data-ae-phone][data-scene=night] #ae-chat .ae-consult-panel h3,body[data-ae-phone][data-scene=night] #ae-chat .ae-receipt-no{color:#eef5f8}
body[data-ae-phone][data-scene=night] #ae-chat .ae-field label{color:#dbe7ee}
body[data-ae-phone][data-scene=night] #ae-chat .ae-field [aria-invalid=true]{border-color:#ff8a65;box-shadow:0 0 0 2px #5a2a1c}
body[data-ae-phone][data-scene=night] #ae-chat .ae-field-error{color:#ffab91}
body[data-ae-phone][data-scene=night] #ae-chat .ae-unverified{color:#e6d48a}
body[data-ae-phone][data-scene=night] #ae-chat .ae-notice-box{border-color:#7a6a2d;background:#2b2716}
body[data-ae-phone][data-scene=night] #ae-chat .ae-consent input{accent-color:#5aa6cc}
/* «← На сайт» / «← Back to site»: the labelled way back from the full-screen chat on a phone (owner 17-11-2026, src/phone.js). A real
   button with its own ground and outline, at least 44 px high and wide, first in the header. The wide window keeps its own close button. */
.ae-chat .ae-phone-back{display:none}
body[data-ae-phone] #ae-chat#ae-chat>header .ae-phone-back{display:inline-flex;align-items:center;justify-content:center;order:-2;flex:none;box-sizing:border-box;width:auto;height:auto;min-width:44px;min-height:44px;margin:0;padding:0 12px;border:1.5px solid #7fa5ba;border-radius:12px;background:#e3eef4;color:#0d3850;font:600 14px/1 'Segoe UI',Arial,sans-serif;letter-spacing:0;white-space:nowrap;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
body[data-ae-phone] #ae-chat#ae-chat>header .ae-phone-back:active{background:#d2e3ec}
body[data-ae-phone] #ae-chat#ae-chat>header .ae-phone-back:focus-visible{outline:3px solid #e0b96f;outline-offset:2px}
body[data-ae-phone][data-scene=night] #ae-chat#ae-chat>header .ae-phone-back{border-color:#5f93af;background:#1f3a4d;color:#f1f7fa}
body[data-ae-phone][data-scene=night] #ae-chat#ae-chat>header .ae-phone-back:active{background:#284a61}
/* on a narrow phone the label and the title need the room of the small face */
@media(max-width:419px){body[data-ae-phone] #ae-chat .ae-chat-face{display:none}}

/* V6: server-owned conversation summary and consent; the log remains scrollable. */
.ae-handoff{margin-top:10px;min-width:0}
.ae-handoff-table{width:100%;table-layout:fixed;border-collapse:collapse;font:inherit;font-size:14px}
.ae-handoff-table th,.ae-handoff-table td{padding:8px 6px;border-bottom:1px solid var(--ae-line,#b8c4d0);vertical-align:top;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere}
.ae-handoff-table th{width:36%;font-weight:600}
.ae-handoff-contact{display:grid;grid-template-columns:minmax(70px,.4fr) minmax(0,1fr);gap:5px 12px;margin:12px 0}
.ae-handoff-contact dt{font-weight:600}.ae-handoff-contact dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
.ae-handoff-message,.ae-handoff-status{white-space:pre-wrap;overflow-wrap:anywhere}
.ae-handoff-status:empty{display:none}
.ae-handoff-actions{flex-wrap:wrap}.ae-handoff-actions button{min-height:44px;white-space:normal}
.ae-chat>header>div:first-child{min-width:0}
.ae-chat>header small{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.3}
.ae-topic span{white-space:normal}

/* This row belongs only to the animation preview dialog. */
body.ae-focus .ae-settings-body {
  padding-inline: 14px;
}

body.ae-focus .ae-preview-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 6px;
}

body.ae-focus .ae-preview-actions > button {
  position: static;
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
}

body.ae-focus .ae-preview-actions > .ae-scene-count {
  position: static;
  flex: 0 0 auto;
  margin-inline-start: auto;
  white-space: nowrap;
}

body[data-scene="night"].ae-focus .ae-settings-body {
  background: #142838;
  color: #e3edf3;
  border-color: #547589;
}

body[data-scene="night"].ae-focus .ae-settings-body :is(select, button) {
  background: #1c3445;
  color: #e3edf3;
  border-color: #66899c;
}

body[data-scene="night"].ae-focus .ae-settings-body :is(select, button):hover {
  background: #29495d;
  color: #fff;
}

body[data-scene="night"].ae-focus .ae-preview-actions > button[aria-pressed="true"] {
  background: #315e72;
  color: #fff;
}

