.jj-chat-app{--jj-accent:#5b36f2;--jj-bg:#101014;--jj-card:#18181d;--jj-text:#f4f4f5;--jj-muted:#a1a1aa;--jj-border:#2b2b32;--jj-soft:#24242b;color:var(--jj-text);color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5}
.jj-chat-app *{box-sizing:border-box}
.jj-chat-app{height:100%;min-height:0}
.jj-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;max-width:1040px;height:clamp(460px,60dvh,620px);max-height:100%;min-height:0;margin:0 auto;align-items:stretch;transition:grid-template-columns .24s ease,gap .24s ease}
.jj-layout.jj-brief-closed{grid-template-columns:minmax(0,1fr) 48px;gap:12px}
.jj-layout.jj-brief-hidden{grid-template-columns:minmax(0,1fr);gap:0}
.jj-layout.jj-brief-hidden .jj-aside{display:none}
.jj-chat{background:var(--jj-card);border:1px solid var(--jj-border);border-radius:22px;overflow:hidden;min-width:0;min-height:0;height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto}
.jj-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 22px;border-bottom:1px solid #2b2b32}
.jj-header-main{display:flex;align-items:center;gap:12px;min-width:0}
.jj-avatar{width:44px;height:44px;border-radius:50%;background:#00BDFF;background:linear-gradient(144deg,rgba(0,189,255,1) 0%,rgba(198,0,186,1) 100%);display:grid;place-items:center;color:#fff;flex:0 0 auto;box-shadow:0 0 16px rgba(111,56,255,.28)}
.jj-avatar svg{width:25px;height:25px;display:block}
.jj-header h2{font-size:16px;line-height:1.2;margin:0 0 3px;font-weight:750;color:inherit}
.jj-header p{font-size:12px;margin:0;color:var(--jj-muted)}
.jj-messages{padding:22px;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;display:flex;flex-direction:column;gap:12px;scroll-behavior:smooth;scrollbar-gutter:stable}
.jj-message{max-width:82%;padding:12px 14px;border-radius:16px;font-size:14px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.jj-bot{align-self:flex-start;background:var(--jj-soft);border-bottom-left-radius:5px}
.jj-user{align-self:flex-end;background:var(--jj-accent);color:#fff;border-bottom-right-radius:5px}
.jj-options{align-self:flex-start;display:flex;flex-wrap:wrap;gap:8px;max-width:95%}
.jj-option{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 13px;border:1px solid #3a3a43;border-radius:999px;background:#1c1c22;color:var(--jj-text);font:inherit;font-size:13px;text-decoration:none;cursor:pointer;transition:border-color .15s ease,transform .15s ease}
.jj-option:hover{border-color:#7659f6;color:var(--jj-text);transform:translateY(-1px)}
.jj-option:focus-visible,.jj-composer input:focus-visible,.jj-composer button:focus-visible,.jj-reset-icon:focus-visible,.jj-brief-toggle:focus-visible{outline:3px solid rgba(91,54,242,.22);outline-offset:2px}
.jj-link-row{align-self:flex-start;margin:0;font-size:12px}
.jj-link-row a{color:var(--jj-accent);text-decoration:underline;text-underline-offset:3px}
.jj-status{min-height:20px;padding:0 18px 4px;font-size:12px;color:var(--jj-muted)}
.jj-status.jj-error{color:#b42318}
.jj-composer{display:flex;gap:8px;padding:14px 16px;border-top:1px solid #2b2b32;background:#18181d}
.jj-composer input{min-width:0;flex:1;border:1px solid #3a3a43;background:#1c1c22;color:var(--jj-text);border-radius:13px;padding:12px 13px;font:inherit;font-size:16px;outline:none}
.jj-composer input:focus{border-color:#7659f6;box-shadow:0 0 0 3px rgba(118,89,246,.12)}
.jj-composer button{border:0;border-radius:13px;background:var(--jj-accent);color:#fff;padding:0 17px;min-height:44px;font:inherit;font-weight:700;cursor:pointer}
.jj-composer button:disabled,.jj-composer input:disabled{opacity:.58;cursor:not-allowed}
.jj-aside{min-width:0;min-height:0;height:100%;overflow-y:auto;overscroll-behavior:contain;transition:width .24s ease}
.jj-panel{background:var(--jj-card);border:1px solid var(--jj-border);border-radius:18px;padding:18px;margin-bottom:14px}
.jj-panel[hidden]{display:none!important}
.jj-brief-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:4px}
.jj-panel h3{font-size:12px;margin:0;text-transform:uppercase;letter-spacing:.08em;color:var(--jj-muted);font-weight:750}
.jj-brief-tools{display:flex;align-items:center;gap:8px}
.jj-brief-count{font-size:11px;color:var(--jj-muted);white-space:nowrap}
.jj-brief-toggle{width:32px;height:32px;flex:0 0 32px;border:1px solid #3b3b44;background:#18181d;color:#d4d4d8;border-radius:10px;display:grid;place-items:center;padding:0;cursor:pointer;transition:border-color .15s ease,color .15s ease,background .15s ease}
.jj-brief-toggle:hover{border-color:#7659f6;color:#7659f6;background:rgba(91,54,242,.04)}
.jj-brief-toggle:focus-visible{outline:3px solid rgba(91,54,242,.22);outline-offset:2px}
.jj-brief-toggle svg{width:17px;height:17px;display:block;transition:transform .18s ease}
.jj-panel.jj-brief-collapsed{padding:7px;margin-bottom:0;display:flex;align-items:flex-start;justify-content:center}
.jj-panel.jj-brief-collapsed .jj-brief-head{width:100%;margin:0;justify-content:center}
.jj-panel.jj-brief-collapsed .jj-brief-head h3,.jj-panel.jj-brief-collapsed .jj-brief-count{display:none!important}
.jj-panel.jj-brief-collapsed .jj-brief-tools{width:100%;justify-content:center}
.jj-panel.jj-brief-collapsed .jj-brief-toggle svg{transform:rotate(180deg)}
.jj-panel.jj-brief-collapsed .jj-brief-intro,.jj-panel.jj-brief-collapsed .jj-brief-empty,.jj-panel.jj-brief-collapsed .jj-row{display:none!important}
.jj-brief-intro{font-size:12px;line-height:1.45;color:var(--jj-muted);margin:0 0 12px}
.jj-brief-empty{font-size:13px;line-height:1.5;color:var(--jj-muted);margin:8px 0 0}
.jj-row{display:flex;justify-content:space-between;gap:12px;font-size:13px;padding:8px 0;border-bottom:1px solid #29292f;animation:jjBriefIn .18s ease-out}
.jj-row[hidden]{display:none!important}
@keyframes jjBriefIn{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
.jj-row:last-child{border-bottom:0}
.jj-row span{color:var(--jj-muted);min-width:105px}
.jj-row strong{text-align:right;overflow-wrap:anywhere;font-weight:650}
.jj-reset-icon{width:42px;height:42px;flex:0 0 42px;border:1px solid #3b3b44;background:#18181d;color:#d4d4d8;border-radius:12px;display:grid;place-items:center;padding:0;cursor:pointer;transition:border-color .15s ease,color .15s ease,background .15s ease}
.jj-reset-icon:hover{border-color:#7659f6;color:#7659f6;background:rgba(91,54,242,.04)}
.jj-reset-icon svg{width:19px;height:19px;display:block}
.screen-reader-text{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}
@media(max-width:760px){.jj-chat-app{height:auto}.jj-layout,.jj-layout.jj-brief-closed,.jj-layout.jj-brief-hidden{height:auto;max-height:none;grid-template-columns:1fr}.jj-chat{height:clamp(480px,70dvh,640px);max-height:calc(100dvh - 24px);min-height:420px}.jj-aside{order:2;height:auto;overflow:visible}.jj-layout.jj-brief-closed .jj-aside{justify-self:end;width:48px}.jj-messages{min-height:0;max-height:none}.jj-message{max-width:92%}.jj-row span{min-width:95px}}
