.jy-ai-panel[hidden],.jy-ai-backdrop[hidden]{display:none!important}
.jy-ai-trigger{border:0;background:transparent;padding:0;cursor:pointer;flex:0 0 auto;display:inline-grid;place-items:center}
.jy-ai-desktop{width:36px;height:42px;margin-left:-12px;margin-right:-11px}
.jy-ai-orb{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;position:relative;overflow:hidden;background:conic-gradient(from 10deg,#5277ff,#8760f1,#e177d9,#64b5ff,#5277ff);box-shadow:0 0 0 1px rgba(93,110,221,.08),0 2px 8px rgba(75,97,205,.18);animation:jy-ai-glow 4s ease-in-out infinite}
.jy-ai-orb:before{content:"";position:absolute;inset:3px;border-radius:50%;background:radial-gradient(circle at 30% 25%,rgba(255,255,255,.4),transparent 52%)}
.jy-ai-orb svg{position:relative;z-index:1;width:21px;height:21px;fill:none;stroke:#fff;stroke-width:3.2;stroke-linecap:round;transform:rotate(-16deg);animation:jy-ai-twinkle 5s ease-in-out infinite}
.jy-ai-trigger:hover .jy-ai-orb,.jy-ai-trigger:focus-visible .jy-ai-orb{box-shadow:0 0 0 3px rgba(96,112,232,.2),0 3px 12px rgba(75,97,205,.24)}
.jy-ai-trigger:focus-visible,.jy-ai-close:focus-visible,.jy-ai-new:focus-visible,.jy-ai-compose button:focus-visible,.jy-ai-suggestions button:focus-visible{outline:2px solid #1665ec;outline-offset:3px}
@keyframes jy-ai-glow{0%,100%{filter:saturate(1);transform:scale(1)}50%{filter:saturate(1.28);transform:scale(1.08)}}
@keyframes jy-ai-twinkle{0%,100%{transform:rotate(-16deg) scale(1)}50%{transform:rotate(3deg) scale(.87)}}
.jy-ai-backdrop{position:fixed;inset:0;background:transparent;z-index:60;backdrop-filter:none;-webkit-backdrop-filter:none;pointer-events:none}
body.jy-ai-code-mode .jy-ai-backdrop{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}
.jy-ai-panel{position:fixed;right:24px;top:24px;bottom:24px;width:min(540px,calc(100vw - 48px));z-index:61;display:flex;flex-direction:column;overflow:hidden;border:1px solid #d6e0ee;border-radius:16px;background:#fff;box-shadow:0 24px 80px rgba(9,34,78,.26);color:#14253e}
body.jy-ai-open{overflow:hidden}
@media(min-width:781px){body.jy-ai-open{overflow:auto}.jy-ai-backdrop{pointer-events:none}}
.jy-ai-head{position:relative;min-height:72px;box-sizing:border-box;display:flex;align-items:center;gap:11px;padding:13px 20px;border-bottom:1px solid #e6edf5;background:#fff}
.jy-ai-head:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#245ff3 0%,#13b9e6 65%,#6e65ed 100%)}
.jy-ai-head .jy-ai-orb{width:36px;height:36px;flex:0 0 36px}.jy-ai-head .jy-ai-orb svg{width:24px;height:24px}
.jy-ai-head-title{min-width:0}.jy-ai-head h2{font-size:17px;line-height:1.25;margin:0;font-weight:700;letter-spacing:.01em}.jy-ai-head small{display:flex;align-items:center;gap:5px;font-size:11px;color:#7e8ca0;margin-top:4px}.jy-ai-head small i{width:6px;height:6px;border-radius:50%;background:#22b990}
.jy-ai-new,.jy-ai-close{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;height:34px;border:0;border-radius:7px;background:transparent;color:#6d7c90;cursor:pointer}.jy-ai-new{gap:4px;margin-left:auto;padding:0 8px;font-size:12px}.jy-ai-close{width:34px;padding:0}.jy-ai-new:hover,.jy-ai-close:hover{background:#edf4ff;color:#195eda}.jy-ai-new:disabled{opacity:.5;cursor:default}.jy-ai-new svg,.jy-ai-close svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.jy-ai-messages{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:14px;padding:22px 22px 28px;background:radial-gradient(circle at 88% 5%,rgba(90,187,255,.15),transparent 38%),radial-gradient(circle at 5% 30%,rgba(90,96,236,.09),transparent 42%),#f8fbff}
.jy-ai-intro{width:100%;box-sizing:border-box;display:flex;flex-direction:column;gap:22px;padding:9px 2px 12px;color:#14253e}
.jy-ai-hero{position:relative;padding:14px 4px 8px}.jy-ai-hero-mark{width:64px;height:64px;display:grid;place-items:center;margin-bottom:20px;border-radius:18px;background:linear-gradient(135deg,#e2edff,#eefbff);box-shadow:inset 0 0 0 1px rgba(44,114,224,.08)}.jy-ai-hero-mark .jy-ai-orb{width:46px;height:46px}.jy-ai-hero-mark .jy-ai-orb svg{width:31px;height:31px}
.jy-ai-eyebrow{font-size:11px;font-weight:650;letter-spacing:.06em;color:#5280b8}.jy-ai-hero h3{margin:12px 0 12px;font-size:30px;line-height:1.28;font-weight:750;letter-spacing:-.02em}.jy-ai-hero h3 em{font-style:normal;background:linear-gradient(95deg,#1b62e9,#168fd5 65%,#635de9);-webkit-background-clip:text;background-clip:text;color:transparent}.jy-ai-hero p{max-width:420px;margin:0;color:#65778e;font-size:13px;line-height:1.75}
.jy-ai-guide{padding:16px;border:1px solid #e0e9f6;border-radius:12px;background:rgba(255,255,255,.82);box-shadow:0 5px 22px rgba(37,80,150,.045)}.jy-ai-guide-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:12px}.jy-ai-guide-heading strong{font-size:14px}.jy-ai-guide-heading small{font-size:11px;color:#9aa9bc}
.jy-ai-suggestions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.jy-ai-suggestions button{display:flex;align-items:flex-start;gap:9px;min-width:0;min-height:66px;padding:12px;border:1px solid #e2eaf4;border-radius:8px;background:#fff;text-align:left;color:#2a425f;font-size:12px;line-height:1.5;cursor:pointer;transition:border-color .15s,transform .15s,box-shadow .15s}.jy-ai-suggestions button:hover{border-color:#83b2f9;transform:translateY(-2px);box-shadow:0 7px 18px rgba(44,104,205,.1)}.jy-ai-suggestions button>span:last-child{overflow-wrap:anywhere}.jy-ai-suggest-icon{flex:0 0 21px;width:21px;height:21px;display:grid;place-items:center;border-radius:6px;background:#eaf3ff;color:#1768e9;font-size:14px;line-height:1}
.jy-ai-intro-note{margin:0;color:#95a3b5;font-size:11px;line-height:1.6}
.jy-ai-bubble{max-width:90%;padding:11px 14px;line-height:1.7;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid #e0e9f5;border-radius:11px 11px 11px 3px;background:#fff;align-self:flex-start;box-shadow:0 2px 10px rgba(20,67,126,.04)}.jy-ai-bubble.user{align-self:flex-end;border-color:#cfe2ff;border-radius:11px 11px 3px 11px;background:#e8f2ff;color:#17477e}.jy-ai-bubble.status{border-color:#f2dfbf;background:#fffaf1;color:#806130}
.jy-ai-answer{max-width:90%;align-self:flex-start;display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}.jy-ai-answer .jy-ai-bubble{max-width:100%}
.jy-ai-sources{max-width:100%;font-size:11px;line-height:1.5;color:#8994a3}.jy-ai-sources summary{display:inline-flex;align-items:center;gap:5px;cursor:pointer;list-style:none;user-select:none}.jy-ai-sources summary::-webkit-details-marker{display:none}.jy-ai-sources summary:after{content:'⌄';font-size:13px;line-height:1;transition:transform .15s}.jy-ai-sources[open] summary:after{transform:rotate(180deg)}.jy-ai-sources summary:hover,.jy-ai-sources summary:focus-visible{color:#4e6c95}.jy-ai-sources ol{box-sizing:border-box;max-width:100%;margin:6px 0 0;padding:7px 10px 7px 27px;border:1px solid #e8ecf1;background:#fff}.jy-ai-sources li{padding:2px 0;overflow-wrap:anywhere}.jy-ai-sources a{color:#64758a;text-decoration:none}.jy-ai-sources a:hover{text-decoration:underline;color:#1766dc}
.jy-ai-compose{flex:0 0 auto;padding:14px 20px 12px;border-top:1px solid #e6edf5;background:#fff}.jy-ai-compose-box{border:1px solid #a8c3ed;border-radius:12px;background:#fff;box-shadow:0 0 0 3px rgba(48,114,234,.035);transition:border-color .15s,box-shadow .15s}.jy-ai-compose-box:focus-within{border-color:#2874ef;box-shadow:0 0 0 3px rgba(47,118,237,.12)}.jy-ai-compose textarea{box-sizing:border-box;display:block;width:100%;min-height:58px;max-height:160px;padding:13px 14px 4px;border:0;border-radius:12px;background:transparent;resize:vertical;outline:none;color:#1e314d;font-family:inherit;font-size:13px;line-height:1.6}.jy-ai-compose textarea::placeholder{color:#9eabbb}.jy-ai-compose-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 8px 8px 14px}.jy-ai-compose-foot>span{color:#9caabb;font-size:11px}.jy-ai-compose button{width:37px;height:37px;display:grid;place-items:center;border:0;border-radius:9px;background:linear-gradient(135deg,#2467ef,#1a9be4);color:#fff;cursor:pointer;box-shadow:0 5px 13px rgba(29,105,222,.2)}.jy-ai-compose button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.jy-ai-compose button:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}.jy-ai-disclaimer{display:block;margin-top:10px;text-align:center;font-size:10px;color:#a0adbc}
@media(max-width:780px){.jy-ai-desktop{display:none}.jy-ai-mobile{margin:0!important;padding:0!important}.jy-ai-mobile .jy-ai-orb{width:29px;height:29px}.jy-ai-panel{inset:0;width:100vw;height:100vh;height:100dvh;border:0;border-radius:0}.jy-ai-backdrop{display:none}.jy-ai-head{min-height:65px;padding:10px 14px}.jy-ai-messages{padding:18px 16px 24px}.jy-ai-compose{padding:12px 14px max(12px,env(safe-area-inset-bottom))}}
@media(max-width:520px){.jy-ai-hero h3{font-size:26px}.jy-ai-suggestions{grid-template-columns:1fr}.jy-ai-suggestions button{min-height:50px}.jy-ai-guide-heading small{display:none}}
@media(prefers-reduced-motion:reduce){.jy-ai-orb,.jy-ai-orb svg{animation:none}}
