.topic-reference-card{display:flex;gap:14px;align-items:center;padding:16px;margin:16px 0;background:#f4f8f5;border:1px solid #e3ece5;border-radius:16px;color:inherit;text-decoration:none}
.topic-reference-card img,.topic-reference-symbol{width:64px;height:64px;flex:none;object-fit:cover;border-radius:10px}
.content .topic-reference-card img{width:64px!important;height:64px!important;margin:0!important;max-width:64px!important}
.content .topic-reference-user img{border-radius:50%!important}
.topic-reference-symbol{display:grid;place-items:center;background:#e4efe7;color:#168b54;font-size:28px}
.topic-reference-user img{border-radius:50%}.topic-reference-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.topic-reference-copy small{color:#168b54}.topic-reference-copy strong{font-size:16px}.topic-reference-copy>span{color:#777;font-size:13px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.topic-reference-unavailable{display:block;margin:16px 0;padding:16px;border-radius:12px;background:#f5f5f5;color:#888;font-size:14px}
.reference-insert-button{border:0;background:none;padding:12px 0;color:#168b54;cursor:pointer;font:inherit;font-size:14px}
.reference-dialog{width:min(520px,90vw);max-height:80vh;border:0;border-radius:20px;padding:24px;box-sizing:border-box}.reference-dialog::backdrop{background:#0005}
.reference-dialog h2{font-size:20px;margin:0 0 16px}.reference-dialog select,.reference-dialog input{padding:12px;border:1px solid #ddd;border-radius:12px;margin-bottom:12px}.reference-dialog input{width:70%;margin-left:8px;box-sizing:border-box}
.reference-search-results{max-height:45vh;overflow:auto;margin:12px 0;color:#777}.reference-search-result{display:flex;align-items:center;gap:12px;border:0;border-bottom:1px solid #eee;background:transparent;padding:14px 0;width:100%;text-align:left;cursor:pointer}.reference-search-result img{width:48px;height:48px;object-fit:cover;border-radius:8px}.reference-search-result span{min-width:0;display:flex;flex-direction:column;gap:6px}.reference-search-result small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#888}
