.citation-list{display:grid;gap:8px;margin-top:12px}
.citation-card{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:9px;align-items:center;width:100%;padding:9px 10px;border:1px solid #dce4f3;border-radius:11px;background:#f8faff;color:#24324b;text-align:left;cursor:pointer}
.citation-card:hover{border-color:#9db3ea;background:#f2f6ff}
.citation-index{display:grid;width:28px;height:28px;place-items:center;border-radius:8px;background:#e5edff;color:#315ecf;font-size:12px;font-weight:800}
.citation-main{min-width:0}.citation-main strong{display:block;overflow:hidden;color:#263650;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.citation-main small{display:block;margin-top:2px;color:#748198;font-size:10px}
.citation-open{color:#416fe5;font-size:11px}
.answer-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.answer-action{padding:6px 9px;border:1px solid #d7dfed;border-radius:8px;background:#fff;color:#53627a;font-size:11px}.answer-action:hover{border-color:#7d9ae4;color:#315ecf}.answer-action.selected{border-color:#6d8de3;background:#eef3ff;color:#315ecf}
.answer-inline-form{display:grid;gap:8px;margin-top:10px;padding:11px;border:1px solid #e0e6f0;border-radius:11px;background:#f8fafc}.answer-inline-form input,.answer-inline-form textarea{box-sizing:border-box;width:100%;padding:8px 9px;border:1px solid #d7deea;border-radius:8px;background:#fff;font:inherit}.answer-inline-form button{justify-self:start;padding:7px 11px}.answer-inline-note{color:#55709f;font-size:11px}
.source-drawer{position:fixed;inset:0;z-index:80;display:flex;justify-content:flex-end;background:rgba(8,17,35,.48)}.source-drawer.hidden{display:none}.source-drawer-panel{width:min(560px,94vw);height:100%;overflow:auto;padding:24px;background:#fff;box-shadow:-18px 0 55px rgba(14,28,55,.2)}.source-drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:16px;border-bottom:1px solid #e5eaf2}.source-drawer-head h3{margin:0}.source-drawer-close{padding:4px 9px;background:#eef2f8;color:#546178}.source-meta{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.source-meta span{padding:5px 8px;border-radius:7px;background:#eef3ff;color:#3c5ca6;font-size:11px}.source-content{padding:16px;border-radius:12px;background:#f6f8fb;color:#27344a;line-height:1.8;white-space:pre-wrap}.source-highlight{background:#fff0a8}
@media(max-width:600px){.citation-card{grid-template-columns:26px minmax(0,1fr)}.citation-open{display:none}.answer-actions{gap:5px}.answer-action{padding:7px 8px}.source-drawer-panel{width:100%}}
.chat-head-actions{display:flex;align-items:center;gap:8px}.chat-head-actions .ghost{width:auto;margin:0}
.search-results{display:grid;gap:10px;margin-top:12px}.search-result-card{display:block;width:100%;padding:12px 14px;border:1px solid #dce4f0;border-radius:12px;background:#fff;color:#2f3b50;text-align:left}.search-result-card:hover{border-color:#9fb2e5;background:#f8faff}.search-result-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.search-result-head strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search-result-head small{flex:none;color:#5370c9}.search-result-meta{display:block;margin-top:4px;color:#748097;font-size:11px}.search-result-snippet{display:-webkit-box;overflow:hidden;margin:8px 0 0;color:#566279;font-size:12px;line-height:1.6;-webkit-box-orient:vertical;-webkit-line-clamp:3}.search-response{max-width:94%}.ask-box.busy{opacity:.86}.ask-box.busy textarea{background:#f5f7fa}
@media(max-width:640px){.chat-head{align-items:flex-start;gap:12px}.chat-head-actions{flex-direction:column;align-items:stretch}.chat-head-actions .ghost{padding:6px 9px}.search-response{max-width:100%}}
.conversation-drawer{position:fixed;inset:0;z-index:78;display:flex;justify-content:flex-end;background:rgba(8,17,35,.48)}.conversation-drawer.hidden{display:none}.conversation-drawer-panel{display:flex;width:min(480px,96vw);height:100%;flex-direction:column;background:#fff;box-shadow:-18px 0 55px rgba(14,28,55,.2)}.conversation-drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:22px;border-bottom:1px solid #e5eaf2}.conversation-drawer-head h3{margin:0}.conversation-drawer-close{width:auto!important;margin:0!important;padding:5px 10px;background:#eef2f8;color:#546178}.conversation-history-list{display:flex;flex:1;min-height:0;flex-direction:column;gap:8px;overflow:auto;padding:16px}.conversation-history-item{display:block;width:100%;padding:12px 14px;border:1px solid #dce4f0;border-radius:12px;background:#fff;color:#2f3b50;text-align:left}.conversation-history-item:hover{border-color:#9fb2e5;background:#f8faff}.conversation-history-item strong,.conversation-history-item span,.conversation-history-item small{display:block}.conversation-history-item strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-history-item span{margin-top:5px;color:#5f6d84;font-size:12px}.conversation-history-item small{margin-top:4px;color:#8994a7;font-size:10px}.conversation-history-state{margin:16px;padding:18px;border:1px dashed #d6deeb;border-radius:12px;color:#748097;text-align:center}
/* Structured answer presentation */
.citation-heading{display:flex;align-items:center;justify-content:space-between;margin-top:15px;color:#34445f;font-size:12px}.citation-heading span{color:#7b879c;font-size:11px}
.answer-body{display:grid;gap:11px;color:#24324a;line-height:1.8;white-space:normal}.answer-body p{margin:0}.answer-body .answer-lead{font-size:15px;color:#1f2f49}.answer-heading{margin:4px 0 -2px;color:#1d376c;font-size:14px;line-height:1.45}.answer-list{display:grid;gap:6px;margin:0;padding-left:22px}.answer-list li{padding-left:3px}.answer-citation{display:inline-block;margin-left:2px;color:#416fe5;font-size:.72em;font-weight:800;line-height:1;vertical-align:super}.answer-body code{padding:2px 5px;border-radius:5px;background:#eef2f8;color:#3659a8;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.9em}
