.ask-panel{position:absolute;z-index:14;top:92px;right:20px;bottom:24px;width:440px;max-width:calc(100% - 40px);display:flex;flex-direction:column;overflow:hidden}.ask-panel[hidden]{display:none}.ask-panel .panel-heading{height:58px;min-height:58px;padding:14px 18px}.ask-panel .panel-heading>div{display:flex;align-items:center;gap:16px}.ask-panel .panel-heading h2{font-size:16px}.ask-panel .text-button{font-size:13px;color:var(--panel-muted)}#ask-messages{flex:1;overflow:auto;overscroll-behavior:contain;padding:20px;scrollbar-width:thin}#ask-welcome{padding:28px 2px}#ask-welcome h2{font-size:23px;line-height:1.3;font-weight:550;letter-spacing:-.6px;margin:0 0 12px}#ask-welcome p{font-size:14px;color:var(--panel-muted);line-height:1.6;margin-bottom:28px}#ask-welcome button{width:100%;text-align:left;border-top:1px solid var(--panel-line);padding:16px 0;display:flex;justify-content:space-between;font-size:14px;gap:10px}#ask-welcome button:hover{color:var(--panel-muted)}.chat-turn{padding-bottom:30px}.chat-turn+.chat-turn{border-top:1px solid var(--panel-line);padding-top:22px}.chat-question{font-size:19px;font-weight:550;line-height:1.4;letter-spacing:-.3px;margin-bottom:20px}.chat-status{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--panel-muted);padding:8px 0}.chat-status[hidden]{display:none}.status-shimmer{display:inline-block;background:linear-gradient(90deg,var(--surface-muted) 0%,var(--surface-muted) 36%,var(--surface-ink) 50%,var(--surface-muted) 64%,var(--surface-muted) 100%);background-size:250% 100%;background-position:100% 0;-webkit-background-clip:text;background-clip:text;color:transparent;animation:status-shimmer 1.7s linear infinite}@keyframes status-shimmer{from{background-position:100% 0}to{background-position:0% 0}}.chat-answer p{font-size:15px;line-height:1.75;margin:0 0 15px}.citation{display:inline-grid;place-items:center;font-size:10px;min-width:18px;height:18px;border-radius:5px;background:var(--panel-hover);vertical-align:super;line-height:1;font-weight:550;margin:0 2px}.citation:hover{background:var(--panel-line)}.chat-sources h3,.answer-map h3,.answer-table h3{font-size:13px;font-weight:550;margin:15px 0 9px}.chat-sources>a{display:flex;text-decoration:none;gap:9px;color:var(--panel-ink);padding:9px 0;border-top:1px solid var(--panel-line);font-size:12px;line-height:1.5}.chat-sources>a>span:first-child{width:18px;height:18px;background:var(--panel-hover);border-radius:5px;display:grid;place-items:center;flex:none;font-size:10px}.chat-sources>a>div{flex:1}.chat-sources small{display:block;color:var(--panel-muted);font-size:11px;margin-top:2px}.highlight-source{background:var(--panel-hover)}.chat-actions{display:flex;gap:16px;margin-top:13px}.chat-actions button{font-size:12px;color:var(--panel-muted)}.chat-actions[hidden]{display:none}.chat-error{font-size:14px;line-height:1.6;padding:12px;background:var(--panel-hover);border-radius:8px}.chat-error button{display:block;text-decoration:underline;margin-top:8px}#ask-form{margin:0 14px;border:1px solid var(--panel-line);border-radius:12px;background:var(--panel-bg);padding:12px;box-shadow:0 2px 5px #00000006}#ask-input{display:block;width:100%;resize:none;border:0;outline:none;background:transparent;font:14px/1.5 Inter,sans-serif;color:var(--panel-ink);min-height:45px;max-height:100px}.ask-compose-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:8px}.ask-compose-bottom>span{font-size:11px;color:var(--panel-muted)}#ask-submit{background:var(--panel-ink);color:var(--panel-bg);width:30px;height:30px;border-radius:8px;display:grid;place-items:center}#ask-submit[hidden],#ask-stop[hidden]{display:none}#ask-submit svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.7;fill:none}#ask-stop{font-size:12px;padding:7px 9px;background:var(--panel-hover);border-radius:6px}.ask-disclosure{font-size:10px;color:var(--panel-muted);padding:9px 12px 12px;text-align:center}.answer-map{border:1px solid var(--panel-line);border-radius:10px;padding:10px 12px;margin:15px 0}.answer-map-heading{display:flex;align-items:center;justify-content:space-between}.answer-map h3{margin:0}.show-answer-map{font-size:12px;color:var(--panel-muted);padding:4px}.answer-place{display:flex;align-items:center;gap:8px;width:100%;text-align:left;padding:11px 0;border-top:1px solid var(--panel-line);margin-top:6px}.answer-place>span{border:1px solid var(--panel-line);border-radius:50%;width:21px;height:21px;display:grid;place-items:center;font-size:10px;flex:none}.answer-place strong{flex:1;font-size:13px;font-weight:500}.answer-place small{color:var(--panel-muted);font-size:11px}.answer-place svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.4}.answer-image{margin:14px 0}.answer-image img{display:block;width:100%;max-height:260px;object-fit:contain;border-radius:8px;background:var(--panel-hover)}.answer-image figcaption{font-size:10px;color:var(--panel-muted);line-height:1.5;margin-top:7px}.answer-table{margin:16px 0;font-size:12px}.table-scroll{overflow:auto;border:1px solid var(--panel-line);border-radius:8px}.answer-table table{border-collapse:collapse;width:100%;font-size:12px}.answer-table th,.answer-table td{text-align:left;padding:9px;border-bottom:1px solid var(--panel-line);white-space:normal;line-height:1.4}.answer-table th{background:var(--panel-hover);font-weight:550}.answer-table a{display:inline-block;font-size:11px;margin-top:7px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:700px){.ask-panel{left:10px;right:10px;top:130px;bottom:10px;width:auto;max-width:none;border-radius:16px}#ask-messages{padding:18px}.chat-answer p{font-size:15px}.chat-question{font-size:18px}.ask-disclosure{font-size:10px}}@media(prefers-reduced-motion:reduce){.status-shimmer{animation:none;background:none;color:var(--surface-muted)}}

@media(min-width:701px){.ask-panel{resize:both;min-width:330px;min-height:350px;max-height:calc(100dvh - 116px)}}

@media(max-width:700px){.ask-panel{left:14px!important;right:14px!important;top:124px!important;bottom:14px!important;width:auto!important;height:auto!important;max-width:none!important;max-height:calc(100dvh - 138px)!important;min-width:0!important;resize:none}}

.ask-panel{z-index:30}

.chat-question{width:fit-content;max-width:94%;margin:0 0 20px auto;padding:12px 15px;border-radius:16px 16px 4px 16px;background:var(--surface-hover);font-size:14px;font-weight:400;letter-spacing:0;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;animation:chat-message-in .22s cubic-bezier(.2,.7,.2,1)}
.chat-answer:not(:empty){animation:chat-answer-in .2s ease-out}
.chat-attachments:not(:empty){animation:chat-answer-in .24s ease-out}
@keyframes chat-message-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes chat-answer-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
#ask-form{position:relative;display:flex;align-items:flex-end;gap:12px;margin:0 16px;padding:12px;border-color:var(--surface-line);background:var(--surface);border-radius:16px;box-shadow:0 2px 8px #00000008;transition:border-color .15s,box-shadow .15s}
#ask-form:focus-within{border-color:var(--surface-muted);box-shadow:0 0 0 2px var(--surface-hover)}
#ask-input{min-height:36px;max-height:160px;flex:1;min-width:0;padding:7px 2px;font:14px/1.55 Inter,sans-serif;overflow-y:auto}
#ask-input::placeholder{color:var(--surface-muted);opacity:1}
.ask-compose-bottom{flex:none;margin:0;display:flex;align-items:center;justify-content:flex-end}
#ask-submit{width:34px;height:34px;border-radius:50%;transition:background .15s,transform .15s,color .15s;background:var(--surface-ink);color:var(--surface)}
#ask-submit:disabled{background:var(--surface-hover);color:var(--surface-muted);cursor:default;opacity:.65}
#ask-submit:not(:disabled):hover{transform:translateY(-1px)}
#ask-submit:not(:disabled):active{transform:scale(.94)}
#ask-stop{min-height:34px;padding:7px 10px;border-radius:9px;font-size:13px}
#ask-clear{display:inline-flex;align-items:center;gap:5px;padding:5px 7px;border-radius:6px}
#ask-clear .lucide{width:14px;height:14px}
#ask-clear:hover{background:var(--surface-hover)}
.chat-actions{gap:8px;flex-wrap:wrap;margin-top:16px}
.chat-actions button,.chat-error button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 12px;min-height:36px;border-radius:8px;background:var(--surface-hover);color:var(--surface-ink);font-size:13px;font-weight:450;line-height:1.4;transition:background .15s}
.chat-actions button:hover,.chat-error button:hover{background:var(--surface-line)}
.chat-actions .lucide,.chat-error button .lucide{width:15px;height:15px}
.chat-sources h3{font-size:14px;font-weight:500;margin:20px 0 10px}
.source-list{border:1px solid var(--surface-line);border-radius:10px;overflow:hidden}
.source-list>a{display:grid;grid-template-columns:22px minmax(0,1fr) 16px;align-items:start;gap:10px;padding:12px;text-decoration:none;color:var(--surface-ink);font-size:14px;line-height:1.5}
.source-list>a+a{border-top:1px solid var(--surface-line)}
.source-list>a:hover{background:var(--surface-hover)}
.source-number{display:grid;place-items:center;min-height:22px;border-radius:6px;background:var(--surface-hover);color:var(--surface-muted);font-size:11px}
.source-title{overflow-wrap:anywhere;font-weight:400}
.source-title small{display:block;margin-top:3px;color:var(--surface-muted);font-size:12px}
.source-list>a>.lucide{width:15px;height:15px;margin:3px 0 0;color:var(--surface-muted)}
@media(prefers-reduced-motion:reduce){.chat-question,.chat-answer,.chat-attachments{animation:none!important}#ask-submit{transition:none}}

.answer-map{--answer-line:#bcc4cb;padding:4px 12px;border-color:var(--answer-line);border-radius:12px;background:var(--surface)}
:root[data-theme=dark] .answer-map{--answer-line:#58636d}
.answer-map-heading{min-height:46px;gap:12px;padding:4px 0}
.answer-map h3.answer-map-title{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:500}
.answer-map-title .lucide{width:18px;height:18px;color:var(--surface-muted)}
.show-answer-map{padding:6px 8px;border-radius:6px;font-size:12px}
.show-answer-map:hover{background:var(--surface-hover);color:var(--surface-ink)}
.answer-place{display:grid;grid-template-columns:20px minmax(0,1fr) auto 16px;gap:10px;padding:13px 2px;margin:0;border-color:var(--answer-line)}
.answer-place>span{border:0;border-radius:0;width:auto;height:auto;color:var(--surface-muted);font-size:11px}
.answer-place strong{min-width:0;font-size:14px;line-height:1.5;font-weight:400}
.answer-place small{font-size:11px;white-space:nowrap}
.answer-place:hover{background:var(--surface-hover)}
.answer-place svg{width:16px;height:16px}
@media(max-width:420px){.answer-place{grid-template-columns:16px minmax(0,1fr) 16px;column-gap:8px;row-gap:4px}.answer-place small{grid-column:2;grid-row:2}.answer-place>svg{grid-column:3;grid-row:1 / span 2}}
