/* Compact, non-modal portfolio chat. All styles stay inside this component. */
.ct-chat{--chat-inset:24px;--chat-keyboard:0px;--chat-vh:100dvh;position:fixed;z-index:900;right:max(var(--chat-inset),env(safe-area-inset-right));bottom:calc(var(--chat-inset) + env(safe-area-inset-bottom) + var(--chat-keyboard));font:14px/1.6 -apple-system,BlinkMacSystemFont,'PingFang SC','Segoe UI',sans-serif;color:#202020;pointer-events:none;text-align:left;transition:opacity .16s}
.home-page .ct-chat{right:max(4%,env(safe-area-inset-right));bottom:calc(var(--home-footer-bottom) + env(safe-area-inset-bottom) + var(--chat-keyboard))}
.ct-chat *{box-sizing:border-box}.ct-chat button,.ct-chat a,.ct-chat textarea{font:inherit;-webkit-tap-highlight-color:transparent}.ct-chat button{color:inherit;cursor:pointer}.ct-chat button:focus-visible,.ct-chat a:focus-visible,.ct-chat textarea:focus-visible{outline:2px solid #292929;outline-offset:3px}.ct-chat [hidden]{display:none!important}
.ct-chat-mark{position:relative;display:grid;place-items:center;border:0;border-radius:50%;background:#e60012;color:#fff!important;box-shadow:0 4px 12px #9a001524,0 1px 3px #00000012}
.ct-chat .ct-chat-mark .ct-chat-monogram{width:74%;height:74%;fill:currentColor;stroke:none;transform:translateX(1.6px)}
.ct-chat-launcher{width:46px;height:46px;padding:0;pointer-events:auto;transition:transform .2s,box-shadow .2s}
.ct-chat-launcher:hover{transform:translateY(-2px);background:#ce0010;box-shadow:0 6px 16px #9a00152e}.ct-chat-launcher:active{transform:scale(.95)}
.ct-chat-panel{position:absolute;right:0;bottom:62px;width:min(352px,calc(100vw - 32px));height:480px;max-height:calc(var(--chat-vh) - 110px - env(safe-area-inset-bottom));display:flex;flex-direction:column;overflow:hidden;border-radius:22px;border:1px solid #dedede;background:#fff;box-shadow:0 14px 48px #00000016,0 2px 7px #0000000d;pointer-events:auto;transform-origin:calc(100% - 23px) calc(100% + 39px);outline:none}
.ct-chat-heading{display:flex;align-items:center;gap:10px;min-height:74px;padding:17px 15px 13px 17px;flex-shrink:0;border-bottom:1px solid #eeeeee}
.ct-chat-avatar{width:34px;height:34px;flex:none}.ct-chat-avatar{box-shadow:none}.ct-chat-titles{flex:1;min-width:0}.ct-chat-titles h2{font-size:14px;line-height:1.4;font-weight:650;margin:0;letter-spacing:0}.ct-chat-titles p{font-size:10px;color:#818181;margin:3px 0 0;line-height:1.4}
.ct-chat-icon{display:grid;place-items:center;flex:none;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:none}.ct-chat-icon:hover{background:#f2f2f2}.ct-chat svg{display:block;width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.ct-chat-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d9d9d9 transparent;padding:18px 16px 12px}
.ct-chat-welcome{font-size:13px;margin:0 0 12px;font-weight:500}.ct-chat-message{max-width:92%;margin:0 0 13px;overflow-wrap:anywhere}.ct-chat-text{white-space:pre-wrap;background:#f2f2f2;border-radius:13px 13px 13px 4px;padding:11px 13px;font-size:13px;line-height:1.75;margin:0}.ct-chat-message[data-role=user]{margin-left:auto}.ct-chat-message[data-role=user] .ct-chat-text{background:#e60012;color:#fff;border-radius:13px 13px 4px 13px}.ct-chat-message-label{font-size:9px;line-height:1.5;color:#8a8a8a;display:block;margin:4px 2px 0}.ct-chat-options{display:flex;flex-wrap:wrap;gap:7px;margin:18px 0 12px}.ct-chat-options button{font-size:11px;line-height:1.5;border:1px solid #d4d4d4;border-radius:20px;background:#fff;padding:6px 10px;transition:background .15s,border-color .15s}.ct-chat-options button:hover{background:#fff2f3;border-color:#e60012;color:#c70010}.ct-chat-options button:active{transform:translateY(1px)}
.ct-chat-links{display:flex;flex-wrap:wrap;gap:12px;margin:10px 2px 0;font-size:11px}.ct-chat-links a{color:#333;text-decoration:underline;text-decoration-color:#bbb;text-underline-offset:3px}.ct-chat-links a:hover{color:#ce1022}
.ct-chat-form{padding:10px 16px 0;flex-shrink:0;background:#fff}.ct-chat-inputwrap{display:flex;align-items:flex-end;gap:8px;border:1px solid #dedede;border-radius:20px;padding:8px 8px 8px 13px;box-shadow:inset 0 1px 2px #00000004}.ct-chat-inputwrap:focus-within{border-color:#777}.ct-chat-inputwrap textarea{display:block;resize:none;width:100%;height:24px;max-height:80px;padding:2px 0;border:0;border-radius:0;outline:none!important;box-shadow:none;background:none;color:#222;font-size:13px;line-height:20px;overflow-y:auto}.ct-chat-inputwrap textarea::placeholder{color:#a2a2a2}.ct-chat-send{display:grid;place-items:center;width:27px;height:27px;flex:none;margin-bottom:0;border:0;border-radius:50%;background:#e60012!important;color:#fff!important;padding:0;transition:opacity .2s}.ct-chat-send:disabled{opacity:.22;cursor:default}.ct-chat-send svg{width:15px;height:15px}.ct-chat-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:30px;padding:3px 18px 8px;background:#fff;color:#8a8a8a;font-size:9px;flex-shrink:0}.ct-chat-foot button{border:0;background:none;padding:3px 0;color:#777;font-size:9px}.ct-chat-foot button:hover{color:#171717}.ct-chat-status{margin:3px 3px 0;font-size:10px;color:#b52531;min-height:0}.ct-chat-status:empty{display:none}
.ct-chat-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
body.route-nav-moving .ct-chat{visibility:hidden;opacity:0;pointer-events:none}body.route-nav-moving .ct-chat *{pointer-events:none}
@media(max-width:600px){.ct-chat{--chat-inset:16px}.ct-chat-panel{height:480px;max-height:calc(var(--chat-vh) - 100px - env(safe-area-inset-bottom));bottom:60px}.ct-chat-inputwrap textarea{font-size:16px}.ct-chat-heading{min-height:70px;padding-top:14px}.ct-chat-titles h2{font-size:14px}}
@media(max-height:500px){.ct-chat-panel{bottom:56px;max-height:calc(var(--chat-vh) - 86px)}.ct-chat-heading{min-height:52px;padding-top:9px;padding-bottom:9px}.ct-chat-scroll{padding-top:10px}.ct-chat-avatar{width:28px;height:28px}.ct-chat-titles p{margin-top:0}}
@media(prefers-reduced-motion:reduce){.ct-chat,.ct-chat *{transition:none!important}.ct-chat-launcher:hover,.ct-chat-launcher:active{transform:none}}

.ct-chat-options button:disabled{opacity:.5;cursor:default}.ct-chat-retry,.ct-chat-reconnect{font-size:11px!important;border:1px solid #dfb3b6;border-radius:20px;background:#fff;padding:4px 10px;color:#bd0010!important;margin-top:7px}.ct-chat-retry:disabled{opacity:.4;cursor:default}.ct-chat-message[data-state=error] .ct-chat-message-label{color:#b52531}.ct-chat-message[data-state=pending] .ct-chat-message-label{color:#777}.ct-chat-reconnect{margin:6px 0 0}.ct-chat-foot{font-size:9px}

/* Quiet invitation beside the retained chat launcher. */
.ct-chat .ct-chat-hint{position:absolute;right:58px;top:50%;transform:translateY(-50%);padding:8px 0;border:0;background:none;white-space:nowrap;font-size:11px;letter-spacing:.025em;line-height:1.4;color:var(--nav-ink,#292929);pointer-events:auto;animation:ct-chat-breathe 3s ease-in-out infinite;text-shadow:0 1px 6px #8882}
.ct-chat-hint:hover,.ct-chat-hint:focus-visible{animation-play-state:paused;opacity:1!important}
@keyframes ct-chat-breathe{0%,100%{opacity:.35}50%{opacity:.85}}
.entry-pending .ct-chat-hint{visibility:hidden!important}
@media(max-width:600px){.ct-chat .ct-chat-hint{font-size:10px;right:56px}.home-page .ct-chat .ct-chat-hint{top:auto;bottom:54px;right:0;transform:none}}
@media(prefers-reduced-motion:reduce){.ct-chat .ct-chat-hint{animation:none;opacity:.75}}
