.modal.chat-search-modal{width:min(560px,calc(100vw - 40px));max-height:min(640px,calc(100dvh - 64px));border-radius:14px;border-color:#e4e8ee;background:#fff;box-shadow:0 18px 70px #222c3d29}.chat-search-modal>header{padding:17px 20px 14px}.chat-search-modal>header h2{font-size:16px;font-weight:500}.chat-search-modal>.modal-body{padding:18px 20px 20px}.chat-search-content .feature-search{display:flex;gap:10px;align-items:center;margin:0 0 16px}.chat-search-content .feature-search input{flex:1;min-width:0;box-sizing:border-box;height:42px;padding:10px 12px;border:1px solid #dfe5ed;border-radius:8px;background:#fafbfc;color:#4d596a;font:inherit;font-size:14px}.chat-search-content .feature-search .primary{flex:none;min-height:42px;font-size:12px;padding:10px 18px}.chat-search-content .feature-results{max-height:min(420px,calc(100dvh - 240px));overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.chat-search-content .feature-result{display:flex;flex-direction:column;align-items:stretch;gap:7px;width:100%;padding:14px 10px;border:0;border-bottom:1px solid #edf0f3;border-radius:0;background:transparent;text-align:left;cursor:pointer}.chat-search-content .feature-result:hover{background:#f6f7f9}.chat-search-content .feature-result strong{font-size:12px;font-weight:500;color:#8b96a7;line-height:1.7}.chat-search-content .feature-result>span{font-size:14px;color:#4f5b6c;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.chat-search-hint{font-size:12px!important;color:#949eac!important;line-height:1.8;margin:14px 0}.chat-search-content .feature-more{display:block;margin:14px auto 0;font-size:12px}.chat-search-error{font-size:12px;line-height:1.8;color:#bf6262}.chat-search-content .feature-search input:focus-visible{outline:2px solid #9ca9bb;outline-offset:2px}

.chat-search-tabs{flex-wrap:wrap}
.chat-search-file{display:block;width:fit-content;max-width:100%;margin:8px 0;padding:8px 12px;border:1px solid #e0e5ec;border-radius:8px;background:#f7f8fa;color:#4f5b6c;font-size:13px;overflow-wrap:anywhere;text-decoration:none}
.chat-search-file:hover{text-decoration:underline}

.chat-search-result-meta{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;font-size:12px;line-height:1.6;color:#65707e}
.chat-search-result-meta strong{font-weight:400;overflow-wrap:anywhere}
.chat-search-result-meta time{font-variant-numeric:tabular-nums}
.chat-search-empty{padding:20px 12px 28px;text-align:center;color:#303740}
.chat-search-empty strong{display:block;font-size:14px;font-weight:600;line-height:1.55}
.chat-search-empty p{margin:4px 0 0;font-size:12px;line-height:1.6;color:#65707e}
.chat-search-empty-art{position:relative;width:116px;height:72px;margin:0 auto 8px}
.chat-search-empty-art::before{content:"";position:absolute;top:8px;left:32px;width:52px;height:52px;border-radius:50%;background:#eef2f6}
.chat-search-empty-route{position:absolute;top:22px;left:9px;width:94px;height:42px;border-top:1.5px dashed #94a5b5;border-radius:50%;transform:rotate(-26deg)}
.chat-search-empty-art svg{position:absolute}
.chat-search-empty-lens{top:20px;left:44px;width:28px;height:28px;color:#485767}
.chat-search-empty-plane{top:9px;right:9px;width:19px;height:19px;color:#566a7c}
@media(max-width:759px){
 .chat-search-result-meta strong{font-size:14px;font-weight:600;color:#303740}
 .chat-search-item .chat-search-body{font-size:15px;color:#303740}
 .chat-search-item .chat-search-file{font-size:14px}
 .chat-search-hint{font-size:13px!important;color:#65707e!important}
}

.chat-date-entry{align-self:flex-start;margin:4px 0 10px}
.chat-date-dialog .modal-body{display:grid;gap:12px;padding:16px 20px 20px}
.chat-date-month{display:flex;align-items:center;justify-content:space-between}
.chat-date-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center}
.chat-date-weekday{padding:6px 0;color:#6f7a89;font-size:12px}
.chat-date-cell{position:relative;min-height:37px;padding:0 0 3px;border:0;border-radius:8px;background:transparent;color:#2c333c;font-size:13px;font-variant-numeric:tabular-nums}
.chat-date-cell.has-messages::after{content:"";position:absolute;bottom:4px;left:calc(50% - 2px);width:4px;height:4px;border-radius:50%;background:currentColor}
.chat-date-cell.has-messages:hover{background:#eef1f4}
.chat-date-cell[aria-pressed=true],.chat-date-cell[aria-pressed=true]:hover{background:#292e36;color:#fff}
.chat-date-status{min-height:20px;margin:0;text-align:center;font-size:13px;line-height:20px}
