.tj-chat{--tj-chat-bg:#0d1117;--tj-chat-panel:#161b22;--tj-chat-border:#30363d;--tj-chat-text:#e6edf3;--tj-chat-cmd:#e6edf3;--tj-chat-str:#f0b429;--tj-chat-arg:#f0b429;--tj-chat-dim:#8b949e;--tj-chat-ok:var(--color-success,#3fb950);--tj-chat-err:#f85149;--tj-chat-accent:var(--color-accent,#f0b429);--tj-chat-accent-dim:var(--color-accent-dim,#b88a1f);--tj-chat-bg-elevated:var(--color-bg-elevated,#161b22);--tj-chat-border-site:var(--color-border,#30363d);--tj-chat-font:var(--font-mono,ui-monospace, monospace);--tj-chat-panel-width:min(28rem, calc(100vw - 2.5rem));z-index:60;font-family:var(--tj-chat-font);position:fixed;bottom:1rem;right:1rem}.tj-chat__hidden{display:none!important}.tj-chat__launcher{border:2px solid var(--tj-chat-accent);background:var(--tj-chat-bg);color:var(--tj-chat-accent);letter-spacing:.06em;text-transform:uppercase;box-shadow:0 0 0 2px var(--tj-chat-bg), 0 0 0 4px var(--tj-chat-accent-dim), 4px 5px 0 #00000073;cursor:pointer;border-radius:0;align-items:center;gap:.5rem;padding:.65rem .95rem;font-family:inherit;font-size:.8125rem;font-weight:500;transition:transform .12s,box-shadow .12s;display:inline-flex}.tj-chat__launcher:hover{box-shadow:0 0 0 2px var(--tj-chat-bg), 0 0 0 4px var(--tj-chat-accent), 5px 6px 0 #00000073;transform:translate(-1px,-1px)}.tj-chat__launcher:focus-visible{outline:2px solid var(--tj-chat-accent);outline-offset:4px}.tj-chat__launcher--open{border-color:var(--tj-chat-border);min-height:3.15rem;box-shadow:0 10px 28px #0000008c}.tj-chat__launcher-glyph{font-size:.7rem}.tj-chat__launcher-label{color:var(--color-text,#e6edf3)}.tj-chat__badge{background:var(--tj-chat-err);color:#fff;text-align:center;border-radius:0;min-width:1.25rem;height:1.25rem;padding:0 .35rem;font-size:.7rem;font-weight:600;line-height:1.25rem}.tj-chat__panel{width:var(--tj-chat-panel-width);border:1px solid var(--tj-chat-border);background:var(--tj-chat-bg);flex-direction:column;max-height:min(34rem,100vh - 6rem);display:flex;position:absolute;bottom:calc(100% + .85rem);right:0;overflow:hidden;box-shadow:0 10px 28px #0000008c}.tj-chat__frame{background:var(--tj-chat-bg);flex-direction:column;min-height:16rem;max-height:min(32.5rem,100vh - 7rem);display:flex;overflow:hidden}.tj-chat__portrait{border:1px solid var(--tj-chat-border);background:#0a0c10;flex-shrink:0;justify-content:center;align-items:center;width:2.75rem;height:2.75rem;display:inline-flex;position:relative;overflow:hidden}.tj-chat__portrait-img{object-fit:cover;object-position:center 18%;filter:grayscale()contrast(1.15)brightness(.9);width:100%;height:100%;display:block}.tj-chat__portrait:after{content:"";mix-blend-mode:color;pointer-events:none;background:#f0b42961;position:absolute;inset:0}.tj-chat__portrait-fallback{width:100%;height:100%;color:var(--tj-chat-accent);letter-spacing:.04em;justify-content:center;align-items:center;font-size:.8rem;font-weight:600;display:flex}.tj-chat__dialog{background:radial-gradient(120% 90% at 50% 40%,#1a212b 0%,#0d1117 72%);flex-direction:column;flex:1;min-width:0;display:flex;position:relative}.tj-chat__nameplate{border-bottom:1px solid var(--tj-chat-border);background:#0d11178c;align-items:center;gap:.5rem;padding:.45rem .7rem;display:flex}.tj-chat__agent{top:0;bottom:0;left:calc(100% - var(--tj-chat-panel-width));border:1px solid var(--tj-chat-border);background:var(--tj-chat-bg);align-items:center;gap:.55rem;max-width:none;padding:.2rem .7rem .2rem .3rem;display:none;position:absolute;right:calc(100% + .7rem);box-shadow:0 10px 28px #0000008c}.tj-chat__launcher--open~.tj-chat__agent:not(.tj-chat__agent--empty){display:flex}.tj-chat__agent .tj-chat__portrait{width:2.35rem;height:2.35rem}.tj-chat__agent-meta{flex-direction:column;justify-content:center;gap:.1rem;min-width:0;display:flex}.tj-chat__agent-kicker{color:var(--tj-chat-dim);letter-spacing:.1em;text-transform:uppercase;font-size:.62rem;font-weight:500}.tj-chat__agent-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--tj-chat-text);letter-spacing:.03em;font-size:.8125rem;font-weight:500;overflow:hidden}.tj-chat__pip{background:var(--tj-chat-dim);flex-shrink:0;width:.55rem;height:.55rem;box-shadow:0 0 0 1px #0d1117}.tj-chat[data-connection=connected] .tj-chat__pip{background:var(--tj-chat-accent)}.tj-chat[data-connection=reconnecting] .tj-chat__pip,.tj-chat__pip--pulse{background:var(--tj-chat-accent);animation:1s steps(2,end) infinite tjChatDotPulse}.tj-chat[data-connection=closed] .tj-chat__pip{background:var(--tj-chat-err)}.tj-chat__title{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--tj-chat-accent);letter-spacing:.04em;flex:1;font-size:.75rem;font-weight:500;overflow:hidden}.tj-chat__close{border:1px solid var(--tj-chat-accent-dim);color:var(--tj-chat-accent);cursor:pointer;background:0 0;width:1.35rem;height:1.35rem;padding:0;font-size:.95rem;line-height:1}.tj-chat__close:hover{background:color-mix(in srgb, var(--tj-chat-accent) 18%, transparent)}.tj-chat__shell{scroll-behavior:smooth;min-height:14rem;max-height:min(28rem,100vh - 10rem);color:var(--tj-chat-text);scrollbar-width:thin;scrollbar-color:var(--tj-chat-accent-dim) #0d1117;flex:1;padding:.85rem .9rem .75rem;font-size:.8125rem;line-height:1.5rem;position:relative;overflow-y:auto}.tj-chat__dialog:after{content:"";pointer-events:none;opacity:.55;background:repeating-linear-gradient(#0000 0 3px,#0d111714 4px);position:absolute;inset:0}.tj-chat__shell::-webkit-scrollbar{width:8px;height:8px}.tj-chat__chat-input::-webkit-scrollbar{width:8px;height:8px}.tj-chat__shell::-webkit-scrollbar-track{background:#0d1117;border-left:1px solid #1a1a1a}.tj-chat__chat-input::-webkit-scrollbar-track{background:#0d1117;border-left:1px solid #1a1a1a}.tj-chat__shell::-webkit-scrollbar-thumb{background:var(--tj-chat-accent-dim);border:1px solid #0d1117;border-radius:0}.tj-chat__chat-input::-webkit-scrollbar-thumb{background:var(--tj-chat-accent-dim);border:1px solid #0d1117;border-radius:0}.tj-chat__shell::-webkit-scrollbar-thumb:hover{background:var(--tj-chat-accent)}.tj-chat__chat-input::-webkit-scrollbar-thumb:hover{background:var(--tj-chat-accent)}.tj-chat__shell::-webkit-scrollbar-corner{background:#0d1117}.tj-chat__chat-input::-webkit-scrollbar-corner{background:#0d1117}@media (width>=640px){.tj-chat__shell{font-size:.875rem}}.tj-chat__line{min-height:1.5rem;margin:0}.tj-chat__msg{align-items:flex-start;gap:.35rem;margin:.15rem 0 .45rem;display:flex}.tj-chat__sys{color:var(--tj-chat-dim);letter-spacing:.04em;text-align:center;margin:.45rem .5rem;font-size:.7rem}.tj-chat__msg-body{overflow-wrap:anywhere;flex:1;min-width:0}.tj-chat__msg-body p,.tj-chat__p{margin:0 0 .45em}.tj-chat__msg-body p:last-child,.tj-chat__p:last-child{margin-bottom:0}.tj-chat__msg-body h1,.tj-chat__msg-body h2,.tj-chat__msg-body h3,.tj-chat__msg-body h4,.tj-chat__msg-body h5,.tj-chat__msg-body h6{color:var(--tj-chat-text);margin:.55em 0 .3em;font-size:1em;font-weight:600}.tj-chat__msg-body h1:first-child,.tj-chat__msg-body h2:first-child,.tj-chat__msg-body h3:first-child{margin-top:0}.tj-chat__msg-body ul,.tj-chat__list{margin:.35em 0 .45em .25rem;padding-left:1.35rem;list-style-type:disc;list-style-position:outside}.tj-chat__msg-body ol{margin:.35em 0 .45em .25rem;padding-left:1.35rem;list-style-type:decimal;list-style-position:outside}.tj-chat__msg-body ul ul{margin:.15em 0;list-style-type:circle}.tj-chat__msg-body ul ul ul{list-style-type:square}.tj-chat__msg-body ol ol{margin:.15em 0;list-style-type:lower-alpha}.tj-chat__msg-body li,.tj-chat__list li{margin:.1em 0;padding-left:.25rem;display:list-item}.tj-chat__msg-body blockquote{border-left:2px solid var(--tj-chat-accent-dim);color:var(--tj-chat-dim);margin:.35em 0 .45em;padding:0 .65rem}.tj-chat__msg-body hr{border:0;border-top:1px solid var(--tj-chat-border);margin:.55em 0}.tj-chat__msg-body :not(pre)>code,.tj-chat__code{color:#e6edf3;background:#161b22;border:1px solid #30363d;border-radius:0;padding:.05em .3em;font-family:inherit;font-size:.92em}.tj-chat__msg-body pre,.tj-chat__pre{scrollbar-width:thin;scrollbar-color:var(--tj-chat-accent-dim) #0d1117;background:#0d1117;border:1px solid #30363d;border-radius:0;margin:.35em 0 .5em;padding:.55rem .65rem;overflow-x:auto}.tj-chat__msg-body pre code,.tj-chat__pre code{color:#e6edf3;white-space:pre;background:0 0;border:0;padding:0;font-family:inherit;font-size:.9em}.tj-chat__msg-body a,.tj-chat__link{color:var(--tj-chat-accent);text-underline-offset:2px;text-decoration:underline}.tj-chat__msg-body a:hover,.tj-chat__link:hover{color:#f7d067}.tj-chat__msg-body table{border-collapse:collapse;margin:.35em 0 .5em;font-size:.92em}.tj-chat__msg-body th,.tj-chat__msg-body td{border:1px solid var(--tj-chat-border);text-align:left;padding:.2em .45em}.tj-chat__msg-body th{background:#161b22;font-weight:600}.tj-chat__msg-body img{max-width:100%;height:auto}.tj-chat__msg-body del,.tj-chat__msg-body s{color:var(--tj-chat-dim)}@keyframes tjChatDotPulse{0%,to{opacity:1}50%{opacity:.25}}.tj-chat__active{min-height:1.5rem}.tj-chat__status{min-height:1.5rem;color:var(--tj-chat-dim);margin:0}.tj-chat__status:after{content:" ▼";color:var(--tj-chat-accent);font-size:.65em;animation:1s steps(2,end) infinite tjChatBlink}.tj-chat__cmd{color:var(--tj-chat-cmd)}.tj-chat__arg{color:var(--tj-chat-arg)}.tj-chat__str{color:var(--tj-chat-str)}.tj-chat__dim,.tj-chat__comment{color:var(--tj-chat-dim)}.tj-chat__ok{color:var(--tj-chat-ok)}.tj-chat__err{color:var(--tj-chat-err)}.tj-chat__prompt-line{flex-wrap:wrap;align-items:baseline;gap:0;margin:0;display:flex}.tj-chat__prompt-line--chat{align-items:flex-start;margin-top:.25rem}.tj-chat__handle{flex-shrink:0}.tj-chat__inline-input,.tj-chat__chat-input{color:var(--tj-chat-cmd);font-family:inherit;font-size:inherit;line-height:inherit;caret-color:var(--tj-chat-accent);background:0 0;border:none;outline:none;flex:1;min-width:0;margin:0;padding:0}.tj-chat__inline-input{min-width:6rem}.tj-chat__chat-input{resize:none;field-sizing:content;scrollbar-width:thin;scrollbar-color:var(--tj-chat-accent-dim) #0d1117;width:100%;max-height:140px;display:block;overflow-y:auto}.tj-chat__inline-input:focus,.tj-chat__chat-input:focus{box-shadow:0 2px 0 0 var(--tj-chat-accent);outline:none}.tj-chat__inline-input:focus-visible,.tj-chat__chat-input:focus-visible{outline:none}.tj-chat__honeypot{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.tj-chat__type-cursor:after{content:"▋";color:var(--tj-chat-accent);animation:1s steps(2,end) infinite tjChatBlink}@keyframes tjChatBlink{50%{opacity:0}}@media (prefers-reduced-motion:reduce){.tj-chat__launcher{transition:none}.tj-chat__shell{scroll-behavior:auto}.tj-chat__type-cursor:after,.tj-chat__status:after{opacity:1;animation:none}.tj-chat__pip--pulse,.tj-chat[data-connection=reconnecting] .tj-chat__pip{opacity:.55;animation:none}}@media (width<=480px){.tj-chat{--tj-chat-panel-width:calc(100vw - 1.75rem);bottom:.75rem;right:.75rem}.tj-chat__launcher-label{display:none}}
