/* Keep the global header visible while the research feed scrolls. */
.topbar{
  position:fixed!important;
  inset:0 0 auto 0;
  z-index:50;
  width:100%;
}
.layout{
  margin-top:58px;
}
.wordmark{display:flex;align-items:center;gap:1px;min-width:210px;font-size:0}
.wordmark::before{content:"";display:block;width:28px;height:28px;flex:0 0 28px;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='10 6 28 36'%3E%3Cpath d='M24 7.5 36.5 12v11.8c0 8.3-4.9 13.9-12.5 16.8-7.6-2.9-12.5-8.5-12.5-16.8V12L24 7.5Z' fill='%239BF1E7'/%3E%3Cpath d='M24 12 32 15v9c0 5.7-3.1 9.9-8 12V12Z' fill='%2335BFB5'/%3E%3Cpath d='M29.4 15.4c-3.3-.9-6.5 0-8.2 2-1.6 1.9-1 4 1.7 5.2l2.8 1.2c1.2.5 1.3 1.2.5 2-1.1 1.1-3.4 1.4-6 .8l-1.3 3.1c2.9.9 6.4.3 8.5-1.6 2.3-2.1 1.9-4.7-1.1-6l-2.7-1.2c-1.1-.5-1.3-1.1-.6-1.8 1-1 3.1-1.2 5.3-.5l1.1-3.2Z' fill='white'/%3E%3Cpath d='M17.4 16.5c3 1.6 5.8 1.6 8.6 0' fill='none' stroke='%23E7FFFB' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E")}
.wordmark span{font-size:22px;margin-left:0}
.header-group-name{display:inline-block;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-left:1px solid #e2e7eb;padding-left:10px;color:#7c8795;font-size:13px;font-weight:500;line-height:1.2}
.search-wrap{position:relative;flex:1;max-width:560px;margin-left:8px}
.search-wrap .search{width:100%;max-width:none;margin-left:0;display:flex;align-items:center;gap:8px}
.search-wrap input{flex:1;min-width:0;border:0;background:transparent;outline:0;color:#16324a}
.search-wrap button{border:0;background:transparent;color:#ff7a00;font-weight:700;cursor:pointer}
.search-results{position:absolute;top:42px;left:0;right:0;z-index:80;max-height:min(520px,calc(100vh - 116px));background:#fff;border:1px solid #e6edf2;border-radius:10px;box-shadow:0 16px 40px #16324a22;overflow:auto;padding:8px}
.search-result-head{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:8px 10px;border-bottom:1px solid #edf2f3;color:#16324a}
.search-result-head small{color:#748398;white-space:nowrap}
.search-result-close{display:grid;place-items:center;width:22px;height:22px;border:0!important;background:transparent!important;color:#8a98a2!important;border-radius:50%;font-size:16px;line-height:1;cursor:pointer}
.search-result-close:hover{background:#f2f5f7!important;color:#314c5d!important}
.search-result-item{display:grid;grid-template-columns:42px 1fr;gap:4px 10px;width:100%;border:0;background:#fff;text-align:left;padding:10px;border-radius:8px;cursor:pointer;color:#16324a}
.search-result-item:hover{background:#fff3e8}
.search-result-item span{grid-row:1/3;align-self:center;justify-self:center;background:#fff1df;color:#ff7a00;border-radius:6px;padding:3px 6px;font-size:12px;font-weight:700}
.search-result-item b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.search-result-item small{display:block;color:#748398;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.search-result-empty{padding:18px 12px;color:#748398;text-align:center}
.version-viewer{max-width:760px;max-height:80vh;overflow:auto;text-align:left}.version-body{line-height:1.8;white-space:normal;background:#f8fbfc;border:1px solid #e3edf0;border-radius:8px;padding:14px;margin:12px 0 18px}.version-attachment{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid #edf2f3}.version-attachment small{color:#718795;text-align:right}
.collaboration-board h4{font-size:12px;margin:14px 0 7px;color:#58717e}.collab-actions{display:flex;gap:6px}.collab-actions button,.text-button{border:1px solid #dce9ec;background:#f7fbfb;border-radius:6px;padding:6px 8px;color:#087f83;font-size:12px}.collab-item{padding:8px 0;border-bottom:1px solid #edf2f3}.collab-item b,.collab-item small{display:block}.collab-item small{color:#7b8c97;margin-top:3px}.text-button{margin:6px 5px 0 0;padding:3px 7px}
@media(max-width:900px){
  .layout{margin-top:58px}
  .topbar{gap:8px;padding-left:12px!important;padding-right:12px!important}
  .wordmark{min-width:auto;font-size:0}
  .wordmark span{font-size:17px}
  .search{min-width:0;flex:1;height:32px;line-height:32px;padding:0 9px;font-size:11px}
  .top-stats{font-size:0}
  .top-stats .avatar{font-size:12px;margin-right:0}
}
