:root{--ayms-agent-width:min(430px,34vw)}
.ayms-agent-trigger{cursor:pointer!important;pointer-events:auto!important;outline:none}
.ayms-agent-trigger:focus-visible{filter:drop-shadow(0 0 0 3px #fff) drop-shadow(0 0 0 5px #30302e)}
.ayms-agent-panel{position:fixed;inset:0 0 0 auto;z-index:8000;width:var(--ayms-agent-width);display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;overscroll-behavior:contain;background:#f7f8f8;color:#30302e;border-left:1px solid rgba(48,48,46,.16);transform:translateX(100%);visibility:hidden;transition:transform 680ms cubic-bezier(.9,0,.1,1),visibility 0s 680ms;font-family:'Neue Montreal',sans-serif}
.ayms-agent-panel[aria-hidden=false]{transform:none;visibility:visible;transition:transform 680ms cubic-bezier(.9,0,.1,1),visibility 0s}
@media(min-width:901px){html body{width:100%;transition:width 680ms cubic-bezier(.9,0,.1,1)}html.ayms-agent-is-open body{width:calc(100% - var(--ayms-agent-width))}.project-floating-mascot.ayms-agent-trigger,.article-mascot.ayms-agent-trigger{transition:right 680ms cubic-bezier(.9,0,.1,1)}html.ayms-agent-is-open .project-floating-mascot.ayms-agent-trigger,html.ayms-agent-is-open .article-mascot.ayms-agent-trigger{right:calc(var(--ayms-agent-width) + 24px)}}
.ayms-agent-header{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:8px;min-height:72px;padding:18px 20px;border-bottom:1px solid rgba(48,48,46,.14)}
.ayms-agent-name{margin:0;font-size:15px;font-weight:500}
.ayms-agent-icon-button{display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:4px;background:#eaecec;color:#30302e;font:500 18px/1 inherit;cursor:pointer}
.ayms-agent-close svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.125;stroke-linecap:square;stroke-linejoin:miter}
.ayms-agent-icon-button:hover,.ayms-agent-icon-button:focus-visible{background:#dedfdf;outline:none}.ayms-agent-reset svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.125;stroke-linecap:square;stroke-linejoin:miter}
.ayms-agent-log{overflow-y:auto;overscroll-behavior:contain;padding:26px 20px 30px;scrollbar-width:none;-ms-overflow-style:none}
.ayms-agent-log::-webkit-scrollbar{display:none;width:0;height:0}
.ayms-agent-intro{display:flex;min-height:100%;flex-direction:column;justify-content:flex-end;padding-bottom:2px}.ayms-agent-intro h2{max-width:290px;margin:0 0 14px;font-size:24px;font-weight:500;line-height:1.05;letter-spacing:-1px}.ayms-agent-intro p{max-width:330px;margin:0 0 28px;color:#686866;font-size:15px;line-height:1.35}
.ayms-agent-suggestions{display:grid;gap:2px}.ayms-agent-suggestion{display:grid;grid-template-columns:18px 1fr;gap:4px;padding:8px 0;border:0;background:none;color:#5d5d5b;text-align:left;font:500 15px/1.25 inherit;cursor:pointer}.ayms-agent-suggestion::before{content:'';width:14px;height:14px;margin-top:2px;background:#ff8c4d;-webkit-mask:url('assets/arrow-enter.svg') center/contain no-repeat;mask:url('assets/arrow-enter.svg') center/contain no-repeat}.ayms-agent-suggestion:hover,.ayms-agent-suggestion:focus-visible{color:#111;outline:none}
.ayms-agent-messages{display:grid;align-content:start;gap:22px}.ayms-agent-message{display:grid;align-items:end;column-gap:8px;max-width:100%;font-size:15px;line-height:1.45}.ayms-agent-message p{margin:0;white-space:pre-wrap}.ayms-agent-message--user{grid-template-columns:minmax(0,auto) 32px;justify-self:end;color:#fff}.ayms-agent-message--user p{grid-column:1;padding:11px 13px;border-radius:12px 12px 2px 12px;background:#30302e}.ayms-agent-message--agent{grid-template-columns:32px minmax(0,1fr);align-items:start;justify-self:start}.ayms-agent-message--agent p{grid-column:2;grid-row:1}.ayms-agent-message--pending{align-items:center}.ayms-agent-message-mascot{display:block;width:32px;height:32px;object-fit:contain}.ayms-agent-message-mascot--user{grid-column:2;grid-row:1;transform:scaleX(-1)}.ayms-agent-message-mascot--agent{grid-column:1;grid-row:1}.ayms-agent-thinking-dots{display:inline-flex;align-items:flex-end;gap:2px;height:10px;margin-left:4px}.ayms-agent-thinking-dots i{display:block;width:3px;height:3px;border-radius:50%;background:#ff8c4d;animation:ayms-dot-hop 900ms cubic-bezier(.4,0,.2,1) infinite}.ayms-agent-thinking-dots i:nth-child(2){animation-delay:150ms}.ayms-agent-thinking-dots i:nth-child(3){animation-delay:300ms}.ayms-agent-error{color:#a33}
.ayms-agent-followups{display:grid;gap:0;padding-top:4px;border-top:1px solid rgba(48,48,46,.12)}.ayms-agent-followups .ayms-agent-suggestion{padding:9px 0;color:#747472}.ayms-agent-followups .ayms-agent-suggestion:hover,.ayms-agent-followups .ayms-agent-suggestion:focus-visible{color:#30302e}
.ayms-agent-form{display:grid;grid-template-columns:1fr auto;gap:10px;padding:14px 16px 18px;border-top:1px solid rgba(48,48,46,.14);background:#f7f8f8}.ayms-agent-input{box-sizing:border-box;width:100%;height:46px;min-width:0;padding:0 12px;border:1px solid rgba(48,48,46,.18);border-radius:4px;background:#fff;color:#30302e;font:500 15px/1.2 inherit}.ayms-agent-input::placeholder{color:#888}.ayms-agent-input:focus{border-color:#30302e;outline:none}.ayms-agent-send{display:grid;place-items:center;width:46px;height:46px;padding:0;border:0;border-radius:4px;background:#30302e;color:#fff;cursor:pointer}.ayms-agent-send-arrow{display:block;width:20px;height:20px;background:currentColor;-webkit-mask:url('assets/arrow-right.svg') center/contain no-repeat;mask:url('assets/arrow-right.svg') center/contain no-repeat;transform:rotate(-90deg)}.ayms-agent-send:disabled{opacity:.35;cursor:default}
@keyframes ayms-dot-hop{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-5px)}}
@media(max-width:900px){:root{--ayms-agent-width:100%}.ayms-agent-panel{width:100%;max-width:100vw;border-left:0}.ayms-agent-header{min-height:64px;padding:14px 12px}.ayms-agent-log{padding:22px 12px 24px}.ayms-agent-form{box-sizing:border-box;width:100%;max-width:100%;padding:12px max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}.ayms-agent-input{font-size:16px}.ayms-agent-is-open .ayms-agent-trigger{visibility:hidden;pointer-events:none!important}}
@media(prefers-reduced-motion:reduce){html body{transition:none}.ayms-agent-panel{transition:none}.ayms-agent-thinking-dots i{animation:none}}

/* Align the visible 80%-diameter circle, not its transparent SVG frame. */
.project-floating-mascot.ayms-agent-trigger,.article-mascot.ayms-agent-trigger{right:15.6px;bottom:15.6px}
@media(min-width:901px){html.ayms-agent-is-open .project-floating-mascot.ayms-agent-trigger,html.ayms-agent-is-open .article-mascot.ayms-agent-trigger{right:calc(var(--ayms-agent-width) + 15.6px)}}
@media(max-width:900px){.project-floating-mascot.ayms-agent-trigger,.article-mascot.ayms-agent-trigger{width:64px;height:64px;right:5.6px;bottom:5.6px}}
/* One-character mascot handoff: portfolio -> composer -> active reply. */
.ayms-agent-trigger .mascot-hover-layer{transform-origin:center;transition:transform 360ms cubic-bezier(.4,0,.2,1),opacity 240ms ease}
.ayms-agent-is-open .ayms-agent-trigger{pointer-events:none!important}
.ayms-agent-is-open .ayms-agent-trigger .mascot-hover-layer{transform:scale(0)!important;opacity:0}
.ayms-agent-form{display:flex;align-items:center;gap:0}
.ayms-agent-form-mascot{display:block;flex:0 0 32px;width:32px;height:32px;margin-right:10px;object-fit:contain;transform:scale(0);opacity:0;transition:flex-basis 360ms cubic-bezier(.2,.85,.25,1),width 360ms cubic-bezier(.2,.85,.25,1),margin-right 360ms cubic-bezier(.2,.85,.25,1),transform 360ms cubic-bezier(.2,.85,.25,1),opacity 180ms ease}
.ayms-agent-input{flex:1 1 auto}
.ayms-agent-send{flex:0 0 46px;margin-left:10px}
.ayms-agent-panel[aria-hidden=false] .ayms-agent-form-mascot{transform:scale(1);opacity:1;transition-delay:280ms}
.ayms-agent-form--sending .ayms-agent-form-mascot{flex-basis:0;width:0;margin-right:0;transform:scale(0)!important;opacity:0!important;transition-delay:0s!important}
.ayms-agent-message--pending .ayms-agent-message-mascot--agent{animation:ayms-mascot-arrive 420ms cubic-bezier(.2,.85,.25,1) 140ms both}
@keyframes ayms-mascot-arrive{from{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}
@media(max-width:900px){.ayms-agent-is-open .ayms-agent-trigger{visibility:visible}}
@media(prefers-reduced-motion:reduce){.ayms-agent-trigger .mascot-hover-layer,.ayms-agent-form-mascot{transition:none}.ayms-agent-message--pending .ayms-agent-message-mascot--agent{animation:none}}
.ayms-agent-message--materializing{visibility:hidden}.ayms-agent-message-flyer{position:fixed;z-index:9000;box-sizing:border-box;overflow:hidden;padding:11px 13px;background:#30302e;color:#fff;font:500 15px/1.45 'Neue Montreal',sans-serif;white-space:pre-wrap;pointer-events:none;transform-origin:top left;will-change:transform,background-color,border-radius,opacity}
.ayms-agent-message--agent a{color:#30302e;text-decoration-line:underline;text-decoration-thickness:1px;text-underline-offset:3px;transition:color 180ms ease}.ayms-agent-message--agent a:hover,.ayms-agent-message--agent a:focus-visible{color:#ff7d3c;outline:none}
.ayms-agent-enquiry-actions{display:flex;flex-wrap:wrap;gap:8px;padding:2px 0 4px 40px}.ayms-agent-enquiry-actions button{min-height:38px;padding:9px 12px;border-radius:4px;font:500 14px/1 inherit;cursor:pointer;transition:background 180ms ease,color 180ms ease,border-color 180ms ease}.ayms-agent-enquiry-send{border:1px solid #30302e;background:#30302e;color:#fff}.ayms-agent-enquiry-send:hover,.ayms-agent-enquiry-send:focus-visible{background:#ff8c4d;border-color:#ff8c4d;outline:none}.ayms-agent-enquiry-edit{border:1px solid rgba(48,48,46,.24);background:transparent;color:#30302e}.ayms-agent-enquiry-edit:hover,.ayms-agent-enquiry-edit:focus-visible{border-color:#30302e;outline:none}.ayms-agent-enquiry-actions button:disabled{opacity:.55;cursor:wait}
.ayms-agent-message--agent.ayms-agent-message--revealed p{transform-origin:left top;animation:ayms-reply-reveal 600ms cubic-bezier(.32,.72,0,1) both;will-change:transform,opacity}
@keyframes ayms-reply-reveal{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.ayms-agent-message--agent.ayms-agent-message--revealed p{animation:none}}
