/* Occupies the existing count slot, with no extra wrapper or display row. */
#content .total-files-badge {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  align-self:end;
  justify-self:end;
  flex:0 0 auto;
  gap:10px;
  width:max-content;
  min-width:max-content;
  min-height:40px;
  margin:0;
  padding:7px 13px;
  border:1px solid #bfddff;
  border-radius:12px;
  background:linear-gradient(120deg,#eef7ff,#e3f1ff);
  color:#354e68;
  font-size:12px;
  font-weight:700;
  line-height:1.2;
  white-space:nowrap;
  box-sizing:border-box;
}
#content .total-files-badge svg {width:19px;height:22px;flex:none;fill:none;stroke:#287aff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#content .total-files-badge .total-files-label {font:inherit;color:inherit;flex:none}
#content .total-files-badge .total-files-value {border-left:1px solid #a9d1ff;padding-left:12px;color:#287aff;font-size:22px;font-weight:800;line-height:1.1}
#content .total-files-badge[hidden] {display:none}
/* Keep the document count with Apply/Clear, not in a narrow one-track slot. */
@media(min-width:1181px) {
  #content .docs-filter {grid-template-columns:repeat(10,minmax(0,1fr)) repeat(4,minmax(85px,1fr))}
}
@media(min-width:761px) {
  #content .docs-filter-actions {grid-column:span 4;justify-self:stretch}
  #content .docs-filter-actions .docs-inline-result {margin-left:auto;align-self:center}
}
/* Keep the existing mobile filter toggle/count visibility rules. */
@media(max-width:760px) {
  #content .docs-inline-result.total-files-badge {display:none}
  #content .total-files-badge {gap:6px;padding:6px 8px;min-height:36px;font-size:11px}
  #content .total-files-badge .total-files-value {font-size:18px;padding-left:7px}
  #content .total-files-badge svg {width:16px;height:18px}
}
