/* Four original characters. The 2x2 PNG sources are copied without alteration. */
.agent-dock{position:relative;max-width:520px;width:calc(100% - 40px);margin:24px auto 0;isolation:isolate}
section.wrap>.agent-dock{width:100%}
.agent-note{display:flex;align-items:center;gap:10px;min-height:92px;visibility:hidden;opacity:0;pointer-events:none;color:var(--ink,#031336)}
.agent-note.is-open{visibility:visible;opacity:1;pointer-events:auto}
.agent-sprite{flex:0 0 90px;width:90px;height:90px;background-repeat:no-repeat;background-size:200% 200%;background-position:100% 100%;transform-origin:50% 90%;pointer-events:none}
.agent-kontur .agent-sprite{background-image:url('assets/agent-kontur.webp')}
.agent-ritm .agent-sprite{background-image:url('assets/agent-ritm.webp')}
.agent-fokus .agent-sprite{background-image:url('assets/agent-fokus.webp')}
.agent-tochka .agent-sprite{background-image:url('assets/agent-tochka.webp')}
.agent-bubble{position:relative;flex:1;min-width:0;max-width:420px;padding:13px 35px 13px 16px;border:1px solid #c1d6e9;border-radius:17px 17px 17px 5px;background:#fffdfa;font-size:15px;line-height:1.4;box-shadow:0 3px 10px #03133606}
.agent-bubble p{margin:0;font-size:inherit;line-height:inherit}
.agent-close{position:absolute;top:2px;right:2px;width:30px;height:30px;padding:0;display:grid;place-items:center;border:0;background:transparent;border-radius:50%;color:#4c5c77;font-size:21px;line-height:1}
.agent-reopen{position:absolute;bottom:0;left:0;min-height:36px;padding:7px 12px;border:1px solid #a8c5e3;border-radius:20px;background:#faf8f5;color:#334b70;font-size:13px;line-height:1.3}
.agent-side-right .agent-reopen{left:auto;right:0}
.agent-reopen:hover,.agent-close:hover{background:#e8f1ff;color:#031336}
.agent-close:focus-visible,.agent-reopen:focus-visible{outline:3px solid #054ef5;outline-offset:3px}
.agent-note.is-open .agent-sprite{animation:agent-arrive 650ms ease-out both}
.agent-note.is-open .agent-bubble{animation:agent-bubble-arrive 330ms 120ms ease-out both}
@keyframes agent-arrive{0%{opacity:0;transform:translateY(20px) rotate(-3deg)}65%{opacity:1;transform:translateY(0) rotate(1deg)}100%{opacity:1;transform:none}}
@keyframes agent-bubble-arrive{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
@media(min-width:600px) and (min-height:560px) and (pointer:fine){
 .agent-dock{position:absolute;bottom:16px;left:max(32px,calc((100% - 1160px)/2));width:min(520px,calc(100% - 64px));margin:0}
 .agent-dock.agent-side-right{left:auto;right:max(32px,calc((100% - 1160px)/2))}
 section.wrap>.agent-dock{left:0;width:min(520px,100%)}
 section.wrap>.agent-dock.agent-side-right{left:auto;right:0}
 .agent-note{height:98px;min-height:0}
 .agent-bubble{max-height:98px}
}
@media(max-width:599px){
 .agent-note{gap:6px;align-items:flex-end}
 .agent-sprite{width:72px;height:72px;flex-basis:72px}
 .agent-bubble{padding:12px 30px 12px 12px;font-size:14px}
}
@media(prefers-reduced-motion:reduce){
 .agent-note,.agent-note *{animation:none!important;transition:none!important;transform:none!important}
}

/* Larger original characters and readable comments, requested by Yulia. */
.agent-dock{max-width:700px}.agent-note{gap:12px;min-height:120px}.agent-sprite{width:120px;height:120px;flex-basis:120px}.agent-bubble{font-size:17px;line-height:1.4;max-width:560px;padding:16px 40px 16px 20px;border-radius:20px 20px 20px 6px}.agent-reopen{font-size:14px;padding:8px 14px}
@media(min-width:600px) and (min-height:560px) and (pointer:fine){.agent-dock{width:min(700px,calc(100% - 64px))}.agent-note{height:128px;min-height:0}.agent-bubble{max-height:128px}section.wrap>.agent-dock{width:min(700px,100%)}}
@media(min-width:600px) and (max-width:899px){.agent-dock{width:calc(100% - 40px)}.agent-sprite{width:110px;height:110px;flex-basis:110px}}
@media(max-width:599px){.agent-note{gap:8px;min-height:112px;height:auto;align-items:center}.agent-sprite{width:88px;height:88px;flex-basis:88px}.agent-bubble{font-size:15px;padding:13px 32px 13px 14px;max-height:none}}

/* V8: use existing sprite-sheet poses according to each hint; source PNGs unchanged. */
#tasks .agent-kontur .agent-sprite{background-position:100% 0%} /* Invites a first task. */
#process .agent-ritm .agent-sprite{background-position:100% 0%} /* Moves the work forward. */
#result .agent-fokus .agent-sprite{background-position:100% 100%} /* Shows the prepared result. */
#pricing .agent-tochka .agent-sprite{background-position:0% 100%} /* Checks the included work. */
